if(!_.circular_gauge){_.circular_gauge=1;(function($){var IU=function(a,b,c){a=$.Du.prototype.hl.call(a,b,c,void 0,void 0);return $.jn(a)},JU=function(a,b){return $.xk(Lfa,a,b||"center")},LU=function(a,b){return $.xk(KU,a,b||"bar")},MU=function(a){return null===a?a:$.to(a)},NU=function(){$.Y.call(this);this.hb=new $.Px;this.hb.pa("positionFormatter",$.Xo);this.hb.pa("size",10);this.hb.pa("anchor","center");this.hb.pa("offsetX",0);this.hb.pa("offsetY",0);this.hb.pa("rotation",0);this.hb.ib(this);this.wl={};$.T(this.ua,[["length",0,9],["type",0,9],["stroke",
0,1],["fill",0,1],["hatchFill",0,9],["position",0,9]])},OU=function(a,b){var c=$.Qc(a.wl);return $.E(b)?b.call(c,c):b},PU=function(){$.Y.call(this);this.Fa("defaultAxis");this.Qh=[];this.lk=[];this.V1=[];this.z2=[];this.af=388;$.T(this.ua,[["overlapMode",this.af,1],["startAngle",this.af,9],["sweepAngle",this.af,9],["fill",16,1],["width",this.af,1],["radius",this.af,9],["cornersRounding",this.af,9],["drawFirstLabel",this.af,9],["drawLastLabel",this.af,9]])},QU=function(a){switch($.xk(Mfa,a,"linear")){case "log":return $.Us()}return $.Ts()},
RU=function(a){var b=a.i("sweepAngle");return $.n(b)?b:a.Ke.i("sweepAngle")},SU=function(a,b,c){var d=b?a.Qa():a.tb();b=b?a.labels():a.kb();b=JU(b.i("position"));var e=a.mq,f=d.i("position");"outside"==b?(e+=a.Vi/2+c,d.enabled()&&("outside"==f?e+=d.Es:"center"==f&&(e+=d.Es>a.Vi?(d.Es-a.Vi)/2:0))):"inside"==b&&(e-=a.Vi/2+c,d.enabled()&&("inside"==f?e-=d.Es:"center"==f&&(e-=d.Es>a.Vi?(d.Es-a.Vi)/2:0)));return e},TU=function(a,b,c){var d=c?a.V1:a.z2;if($.n(d[b]))return d[b];var e=c?a.labels():a.kb(),
f=e.Vd(b),h=a.na;c=(c?h.Qa():h.tb()).get()[b];a=a.im(b,c);c={value:{angle:0,radius:0}};d[b]=f?IU(e,f):IU(e,a,c);return d[b]},UU=function(a,b){b=$.ab($.Sm(b,6));var c="center",d=JU(a.labels().i("position"));"inside"==d?b?0<b&&90>b?c="right-bottom":90==b?c="center-bottom":90<b&&180>b?c="left-bottom":180==b?c="left-center":180<b&&270>b?c="left-top":270==b?c="center-top":270<b&&(c="right-top"):c="right-center":"outside"==d&&(b?0<b&&90>b?c="left-top":90==b?c="center-top":90<b&&180>b?c="right-top":180==
b?c="right-center":180<b&&270>b?c="right-bottom":270==b?c="center-bottom":270<b&&(c="left-bottom"):c="left-center");return c},VU=function(){$.Y.call(this);$.T(this.ua,[["fill",16,1],["axisIndex",4,5],["position",4,9],["startSize",4,9],["endSize",4,9],["from",4,1],["to",4,1],["radius",4,1],["cornersRounding",4,9]])},WU=function(a,b,c,d,e,f,h){h=$.n(h)?h:!1;var k=(f-e)/(d-c),l=a.Ke.qc,m=a.Ke.rc;if(d>c)for(a=c;a<=d;a++){var p=e+k*(a-c);var q=a*Math.PI/180;var r=l+p*Math.cos(q);p=m+p*Math.sin(q);h&&a==
c?b.moveTo(r,p):b.lineTo(r,p)}else for(a=c;a>=d;a--)p=e+k*(a-c),q=a*Math.PI/180,r=l+p*Math.cos(q),p=m+p*Math.sin(q),h&&a==c?b.moveTo(r,p):b.lineTo(r,p);q=d*Math.PI/180;r=l+f*Math.cos(q);p=m+f*Math.sin(q);b.lineTo(r,p)},XU=function(a,b,c,d,e){a=a.i("position");return"outside"==a?b*(1+(e?0:d))+c/2:"inside"==a?b*(1-(e?0:d))-c/2:b*(1+(e?-.5:.5)*d)},YU=function(a,b,c,d){var e=a.Ke.rc;d=$.bb(d);b.x=a.Ke.qc+c*Math.cos(d);b.y=e+c*Math.sin(d)},Nfa=function(a,b,c,d,e,f,h,k,l,m,p,q,r,t,u,v,w){var x=(c+d)/2,
y=(e+f)/2,B=(h+k)/2,G=a.Ke.qc,C=a.Ke.rc,I=b[r],P={},Q={},S={},sa={};YU(a,P,e,c);YU(a,Q,f,d);YU(a,S,k,d);YU(a,sa,h,c);var va=$.gn(0,0,0,0);va.left=Math.min(P.x,Q.x,S.x,sa.x);va.top=Math.min(P.y,Q.y,S.y,sa.y);va.width=Math.max(P.x,Q.x,S.x,sa.x)-va.left;va.height=Math.max(P.y,Q.y,S.y,sa.y)-va.top;P=[];Q={};S={};Q.position="0";Q.opacity=m;Q.color=l;P.push(Q);S.position="1";S.opacity=q;S.color=p;P.push(S);m=(l=ZU(a.Ke,a.i("axisIndex")).scale().Uf())?-1:1;p={};p.angle=-(x+90*m);p.keys=P;q=$.nk();WU(a,q,
c,x,(h+e)/2,(B+y)/2,!0);WU(a,q,x,d,(B+y)/2,(k+f)/2,!1);p.mode=q.pb();WU(a,I,c,x,e,y,!0);WU(a,I,x,c,B,h,!1);!r&&t&&(h=G+$.db(c,e),c=C+$.eb(c,e),t<u/2?I.kf(h,c,u-t,u-t,!1,l):I.kf(h,c,t,t,!0,l));WU(a,I,x,d+.1*m,y,f,!0);r==b.length-1&&v&&(h=G+$.db(d+.1,k),c=C+$.eb(d+.1,k),v<w/2?I.kf(h,c,w-v,w-v,!1,l):I.kf(h,c,v,v,!0,l));WU(a,I,d+.1*m,x,k,B,!1);I.fill(p);$.qd(q)},$U=function(a){a.wa&&a.wa.length&&(0,$.Qe)(a.wa,function(a){a.clear()})},Ofa=function(a,b,c,d,e,f){var h=b.Bj();b=XU(a,h,c,e,!0);var k=XU(a,
h,c,f,!0),l=XU(a,h,c,e,!1);h=XU(a,h,c,f,!1);if(l<b){var m=l;l=b;b=m}h<k&&(m=h,h=k,k=m);var p=l-b,q=h-k;b=XU(a,d,c,e,!0);k=XU(a,d,c,f,!0);l=XU(a,d,c,e,!1);h=XU(a,d,c,f,!1);l<b&&(m=l,l=b,b=m);h<k&&(m=h,h=k,k=m);a=(p-(l-b))/2;c=(q-(h-k))/2;return[l+a,b-a,h+c,k-c]},aV=function(){$.Y.call(this);this.Wa=$.lk();this.Jd=$.kk();$.T(this.ua,[["radius",4,9],["stroke",16,1],["fill",16,1],["hatchFill",65536,1]])},bV=function(){$.jv.call(this);this.rc=this.qc=window.NaN},cV=function(){$.Y.call(this);this.j=$.nk();
this.j.stroke("none").fill($.Ul);this.f={};this.state=new $.Vw(this);$.T(this.ua,[["stroke",16,1],["fill",16,1],["hatchFill",65536,1],["axisIndex",4,5]])},dV=function(a,b,c){$.E(b)?(a=b.call(a.f,a.f),a=c?$.Vb(a):$.Yb(a)):a=b;return a},eV=function(a,b){return $.n(b)?(a.G=b,a):a.G},fV=function(a){a.fa||(a.fa=$.nk())},gV=function(a,b){b&&(b.tag={W:a},b.tag.index=a.aa().la())},hV=function(){cV.call(this);$.T(this.ua,[["width",4,9],["position",4,9],["radius",4,9],["barDrawer",4,1]])},iV=function(){cV.call(this);
$.T(this.ua,[["verticesCount",4,9],["verticesCurvature",4,9],["topRatio",4,9],["bottomRatio",4,9],["topRadius",4,9],["bottomRadius",4,9]])},jV=function(a,b,c,d,e,f,h,k,l,m,p,q,r,t){t?(f=$.ab(c+f),d=$.ab(c+d/2-e)):(f=$.ab(c+d-f),d=$.ab(c+d/2+e));c=l+Math.cos($.bb(f))*k;k=m+Math.sin($.bb(f))*k;l+=Math.cos($.bb(d))*h;h=m+Math.sin($.bb(d))*h;d=(c+l)/2;m=(k+h)/2;var u=$.bb(f+90);e=c+1E4*Math.cos(u);var v=k+1E4*Math.sin(u);u=(c*Math.pow(v-k,2)+l*Math.pow(e-c,2)+(e-c)*(v-k)*(h-k))/(Math.pow(v-k,2)+Math.pow(e-
c,2))||0;e=(e-c)*(l-u)/(v-k)+h||0;e=$.cb(Math.atan($.dn(l,h,u,e)/$.dn(c,k,u,e)));u=a.i("topRatio");v=a.i("bottomRatio");p=f+(t?-p:p)+(u<1-v?t?90-e:-(90-e):t?-(90-e):90-e);d+=Math.cos($.bb(p))*q;m+=Math.sin($.bb(p))*q;u=a.i("verticesCurvature");e=.5>u?90:-90;a=d+.5*Math.cos($.bb(p+e))*q;f=m+.5*Math.sin($.bb(p+e))*q;e=.5>u?-90:90;d+=.5*Math.cos($.bb(p+e))*q;q=m+.5*Math.sin($.bb(p+e))*q;t?r?b.yk(a,f,d,q,l,h):b.yk(d,q,a,f,l,h):r?b.yk(a,f,d,q,c,k):b.yk(d,q,a,f,c,k)},kV=function(){cV.call(this);$.T(this.ua,
[["size",4,9],["position",4,9],["radius",4,9],["type",4,9]]);this.fa=new $.Px;this.fa.ib(this);this.fa.pa("positionFormatter",$.Xo);this.fa.pa("size",10);this.fa.pa("anchor","center");this.fa.pa("offsetX",0);this.fa.pa("offsetY",0);this.fa.pa("rotation",0)},lV=function(){cV.call(this);$.T(this.ua,[["startWidth",4,9],["startRadius",4,9],["middleWidth",4,9],["middleRadius",4,9],["endWidth",4,9],["endRadius",4,9]])},mV=function(a,b,c,d){d=d||0;var e=d+d,f=a.Bk(),h=b.scale(),k=f.qc,l=f.rc,m=b.Bj(),p=
b.Dl(),q=RU(b),r=f.Bj();f=$.M(a.i("startRadius"),r);f-=d;b=$.M(a.i("startWidth"),r);b+=e;var t=a.i("endRadius");m=null!=t?$.M(t,r):m;m+=d;d=a.i("endWidth");d=null!=d?$.M(d,r):0;d+=e;t=a.i("middleRadius");t=null!=t?$.M(t,r):.9*m;a=$.M(a.i("middleWidth"),r);a+=e;r=$.Za(h.transform(c),0,1);c=$.ab(p+r*q);h=$.bb(c);e=$.bb($.ab(p+r*q+90));p=$.bb($.ab(p+r*q-90));q=k+f*Math.cos(h);r=l+f*Math.sin(h);var u=k+t*Math.cos(h),v=l+t*Math.sin(h),w=k+m*Math.cos(h);h=l+m*Math.sin(h);return{angle:c,Cc:k,yc:l,gha:f,
hha:b,eha:t,fha:a,cha:m,dha:d,TW:q+b*Math.cos(e),VW:r+b*Math.sin(e),UW:q+b*Math.cos(p),WW:r+b*Math.sin(p),YU:u+a*Math.cos(e),$U:v+a*Math.sin(e),ZU:u+a*Math.cos(p),aV:v+a*Math.sin(p),gS:w+d*Math.cos(e),iS:h+d*Math.sin(e),hS:w+d*Math.cos(p),jS:h+d*Math.sin(p)}},nV=function(a,b){$.V(this);$.gx.call(this);this.Fa("circularGauge");this.D=[];this.O=[];this.f=[];this.ga=[];this.ba=[];this.ad=[];this.g=[];this.Ra=this.Ga=this.eb=0;this.data(a||null,b);$.eu(this,this,this.rg,this.Gg,null,this.rg,null,this.Cj);
$.T(this.ua,[["fill",16,65],["stroke",16,1],["circularPadding",4,1],["encloseWithStraightLine",4,1],["startAngle",4,1],["sweepAngle",4,1],["defaultPointerType",0,0]]);this.da(!0);$.jr(this,"tooltip")},oV=function(a,b){switch(b){case "bar":return a.O;case "marker":return a.f;case "needle":return a.ga;case "knob":return a.ba}return null},pV=function(a,b){return $.xa(a.g,function(a){return a.id()==b})},qV=function(a){return!($.K(a,$.zr)||$.K(a,$.pr)||$.K(a,$.wr)||$.A(a))&&!$.E(a)&&$.D(a)},rV=function(a){for(var b=
0,c=a.g.length;b<c;b++){var d=a.g[b];d&&d.B(4)}},ZU=function(a,b){return a.D[b]},sV=function(a,b,c,d,e){var f=a.i("sweepAngle"),h=a.Dl(),k=h+f,l=$.bb(h),m=$.bb(k);a.U=a.G&&a.G.enabled()?$.M(a.G.i("radius"),e):0;var p=c+e*Math.cos(l);l=d+e*Math.sin(l);var q=c+e*Math.cos(m);m=d+e*Math.sin(m);if(0==f%360&&0!=f)b.ze(c,d,e+a.b,e+a.b,h,f);else if(180<Math.abs(f)&&a.i("encloseWithStraightLine")){var r=90-(360-Math.abs(f))/2;b.ze(p,l,a.b,a.b,0>f?h+90-r:h+270+r,0>f?-90+r:90-r);b.ze(c,d,e+a.b,e+a.b,h,f,!0);
b.ze(q,m,a.b,a.b,k,0>f?-90+r:90-r,!0)}else if(r=360-Math.abs(f)-90,0<r)b.ze(p,l,a.b,a.b,0>f?h+90:h+270,0>f?-90:90),b.ze(c,d,e+a.b,e+a.b,h,f,!0),b.ze(q,m,a.b,a.b,k,0>f?-90:90,!0),b.ze(c,d,a.b+a.U,a.b+a.U,0>f?k-45:k+45,0>f?-r:r,!0);else{r=$.bb(0>f?k-45:k+45);var t=c+Math.cos(r)*(a.b+a.U),u=d+Math.sin(r)*(a.b+a.U);r=$.bb(0>f?k-90:k+90);var v=q+Math.cos(r)*a.b,w=m+Math.sin(r)*a.b;r=$.bb(0>f?k-45+360-f+90:k+405-f-90);var x=c+Math.cos(r)*(a.b+a.U),y=d+Math.sin(r)*(a.b+a.U);r=$.bb(0>f?h+90:h-90);var B=p+
Math.cos(r)*a.b,G=l+Math.sin(r)*a.b;r=u-w;var C=v-t;t=t*w-v*u;u=y-G;v=B-x;y=x*G-B*y;x=(C*y-v*t)/(r*v-u*C);r=(t*u-y*r)/(r*v-u*C);$.dn(x,r,c,d)<e?(b.ze(p,l,a.b,a.b,0>f?h+90:h+270,0>f?-90:90),b.ze(c,d,e+a.b,e+a.b,h,f,!0),b.ze(q,m,a.b,a.b,k,0>f?-90:90,!0),b.lineTo(x,r)):b.ze(c,d,e+a.b,e+a.b,0,360)}b.close()},Pfa=function(a,b){a.N?a.N.clear():a.N=a.La.path();a.ka=1;a.b=$.M(a.i("circularPadding"),a.ka);a.ya=a.ka-a.b;sV(a,a.N,0,0,a.ya);var c=a.N.pb();var d=Math.min(b.width/c.width,b.height/c.height);var e=
b.left+b.width/2-c.width/2*d;var f=b.top+b.height/2-c.height/2*d;a.ka=d;a.qc=e+Math.abs(c.left)*d;a.rc=f+Math.abs(c.top)*d;a.b*=a.ka;a.ya=a.ka-a.b;a.ab=new $.J(e,f,c.width*d,c.height*d);a.Ja=new $.J(e+a.b,f+a.b,c.width*d-a.b,c.height*d-a.b)},tV=function(a){return a.ab?a.ab.clone():$.gn(0,0,0,0)},uV=function(a,b){var c=new nV(a,b);c.pa("defaultPointerType","needle");c.sg();return c},Lfa={rP:"inside",$y:"center",UX:"outside"},KU={AE:"bar",vla:"knob",yu:"marker",Hla:"needle"},Mfa={LINEAR:"linear",g7:"log"};
$.H(NU,$.Y);var vV=function(){var a={};$.hq(a,[[0,"length",function(a){return null===a?a:$.to(a)}],$.Z.lY,$.Z.DE,$.Z.tB,$.Z.qP,[0,"position",function(a){return JU(a)}]]);return a}();$.U(NU,vV);$.g=NU.prototype;$.g.qa=$.Y.prototype.qa;$.g.sa=$.Y.prototype.sa;$.g.remove=function(){this.hb&&this.hb.remove();this.f&&this.f.remove()};
$.g.rd=function(){var a=this.i("length");this.Es=null!=a?$.M(a,this.b.Bj()):this.b.Vi;this.Hc=this.b.Bj();a=this.i("position");"outside"==a?this.Hc+=this.b.Vi/2+this.Es/2:"inside"==a&&(this.Hc-=this.b.Vi/2+this.Es/2);this.wl.length=this.Es;this.wl.radius=this.Hc;this.wl.cx=this.b.Bk().qc;this.wl.cy=this.b.Bk().rc;this.hb.clear();var b=this.i("stroke");a=this.i("fill");$.E(b)||this.hb.pa("stroke",b);$.E(a)||this.hb.fill(a);this.hb.pa("size",this.Es/2);b=this.i("type");this.hb.type(b);var c=this.i("hatchFill");
this.f||!c||$.Vo(c)||(this.f=new $.Px,this.f.pa("positionFormatter",$.Xo),this.f.pa("size",10),this.f.pa("anchor","center"),this.f.pa("offsetX",0),this.f.pa("offsetY",0),this.f.pa("rotation",0),this.f.P(this.P()),this.f.zIndex(wV));this.f&&(this.f.clear(),this.f.td(!0),this.f.pa("size",this.Es/2),this.f.pa("type",b),this.f.pa("fill",a),this.f.pa("stroke",null))};
$.g.Pp=function(a,b){var c=$.bb(a),d=this.b.Bk().qc,e=this.b.Bk().rc;d+=this.Hc*Math.cos(c);c=e+this.Hc*Math.sin(c);e=this.hb.add({value:{x:d,y:c}});var f;$.n(e.i("rotation"))?f=e.i("rotation"):$.n(this.hb.i("rotation"))?f=this.hb.i("rotation"):f=0;this.wl.rotation=f+a+90;this.wl.x=d;this.wl.y=c;this.wl.angle=$.ab(a-xV);this.wl.value=b;e.pa("rotation",f+a+90);var h=this.i("fill"),k=this.i("stroke");$.E(h)&&e.pa("fill",$.Vb(OU(this,h)));$.E(k)&&e.pa("stroke",$.Yb(OU(this,k)));this.f&&this.f.add({value:{x:d,
y:c}}).rotation(f+a+90)};$.g.zl=function(){if(this.Bc()){if(this.J(8)){var a=this.zIndex(),b=.1*yV;this.hb.zIndex(a+Qfa*b);this.f&&this.f.zIndex(a+wV*b);this.I(8)}this.J(2)&&(this.hb.P(this.P()),this.f&&this.f.P(this.P()),this.I(2));this.hb.$();this.f&&this.f.$();this.I(4)}};$.g.F=function(){var a=NU.u.F.call(this);$.Hq(this,vV,a);return a};$.g.X=function(a,b){NU.u.X.call(this,a,b);$.zq(this,vV,a,b)};$.H(PU,$.Y);var zV=function(){function a(a){return null===a?a:$.to(a)}var b={};$.hq(b,[$.Z.az,$.Z.uB,[0,"startAngle",function(a){return null===a?a:$.ab($.N(a)||0)}],[0,"width",a],[0,"sweepAngle",function(a){return null===a?a:$.Za($.N(a)||0,-360,360)}],[0,"radius",a],[0,"cornersRounding",$.to],[0,"drawFirstLabel",$.uq],[0,"drawLastLabel",$.uq]]);return b}();$.U(PU,zV);PU.prototype.qa=$.Y.prototype.qa|2;PU.prototype.sa=$.Y.prototype.sa|912;var Qfa=2,wV=3;$.g=PU.prototype;$.g.Lc=null;$.g.Da=null;
$.g.oc=null;$.g.hb=null;$.g.Nc=null;$.g.scale=function(a){if($.n(a)){if(a=$.Xs(this.na,a,null,3,null,this.Vh,this)){var b=this.na==a;this.na=a;a.da(b);b||this.B(this.af,3)}return this}this.na||(this.na=$.Ts(),$.L(this.na,this.Vh,this));return this.na};$.g.Vh=function(a){$.X(a,2)&&this.B(this.af,3)};$.g.kb=function(a){this.oc||(this.oc=new $.Nx,$.W(this,"minorLabels",this.oc),this.oc.ib(this),$.L(this.oc,this.Zd,this));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.oc.K(a),this):this.oc};
$.g.labels=function(a){this.Da||(this.Da=new $.Nx,$.W(this,"labels",this.Da),this.Da.ia(!0,this.mf("labels")),this.Da.ib(this),$.L(this.Da,this.Zd,this));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Da.K(a),this):this.Da};$.g.Zd=function(){this.$i();this.B(384,1)};$.g.tb=function(a){this.Nc||(this.Nc=new NU,$.W(this,"minorTicks",this.Nc),this.Nc.ib(this),this.Nc.b=this,$.L(this.Nc,this.Yh,this));return $.n(a)?(this.Nc.K(a),this):this.Nc};
$.g.Qa=function(a){this.hb||(this.hb=new NU,$.W(this,"ticks",this.hb),this.hb.ib(this),this.hb.b=this,$.L(this.hb,this.Yh,this));return $.n(a)?(this.hb.K(a),this):this.hb};$.g.Yh=function(a){var b=0;$.X(a,8)&&(b=384,this.$i());$.X(a,1)&&(b|=256);this.B(b,1)};$.g.Bj=function(){return this.mq};$.g.Dl=function(){var a=this.i("startAngle");return null!=a?a+xV:this.Ke.Dl()};$.g.$i=function(){this.Qh.length=0;this.lk.length=0;this.V1.length=0;this.z2.length=0;this.Qj=null};
$.g.Px=function(){if(!this.Qj||this.J(512)){if("allow-overlap"==this.i("overlapMode"))return!1;for(var a=this.scale(),b=[],c=[],d=this.i("drawFirstLabel"),e=this.i("drawLastLabel"),f=a.Qa().get(),h=f.length,k=-1,l=e&&!d?h-1:-1,m=-1,p=-1,q,r,t,u,v,w,x,y=this.labels().enabled(),B=a.tb().get(),G=0,C=0,I=B.length,P,Q=this.kb().enabled();G<h||C<I;){q=f[G];t=B[C];r=a.transform(q);P=a.transform(t);t=q=u=v=null;if(-1==m&&y)for(x=G;-1==m&&x<h;)!x&&d||x==h-1&&e||0!=x&&x!=h-1?t=this.hd(x,!0):t=null,-1!=l?q=
this.hd(l,!0):q=null,e&&!d?u=x==h-1?null:this.hd(h-1,!0):x!=k?u=this.hd(k,!0):u=null,$.Zm(t,q)||$.Zm(t,u)||(w=a.transform(f[x]),0>=w&&d||1<=w&&e?m=x:0<w&&1>w&&(m=x)),x++;r<=P&&G<h||C==I?(y&&G==m&&this.labels().enabled()?(-1==k&&(k=G),l=G,m=-1,b.push(!0)):b.push(!1),G++,r==P&&(this.labels().enabled()||this.Qa().enabled())&&(c.push(!1),C++)):(Q?(t=this.hd(C,!1),-1!=l&&(q=this.hd(l,!0)),-1!=m&&(u=this.hd(m,!0)),-1!=p&&(v=this.hd(p,!1)),r=(r=this.kb().Vd(C))?$.n(r.enabled())?r.enabled():!0:!0,$.Zm(t,
q)||$.Zm(t,u)||$.Zm(t,v)||!r?c.push(!1):(w=a.transform(B[C]),0>=w||1<=w?(-1==k&&(k=C),p=C,c.push(!0)):0<w&&1>w?(-1==k&&(k=C),p=C,c.push(!0)):c.push(!1))):c.push(!1),C++)}Q||(c=!1);y||(b=!1);this.Qj={labels:b,kb:c};this.I(512)}return this.Qj};
$.g.hd=function(a,b){var c=b?this.Qh:this.lk;if($.n(c[a]))return c[a];var d=TU(this,a,b),e=b?this.labels():this.kb(),f=this.na,h=(b?f.Qa():f.tb()).get()[a],k=f.transform(h);h=(f=e.Vd(a))&&$.n(f.i("autoRotate"))?f.i("autoRotate"):e.i("autoRotate");var l=f&&$.n(f.i("offsetX"))?f.i("offsetX"):e.i("offsetX"),m=f&&$.n(f.i("offsetY"))?f.i("offsetY"):e.i("offsetY"),p=SU(this,b,h?d.height:0);p+=$.M(m,this.Ke.Bj());var q=this.Dl();m=RU(this);k=$.ab(q+k*m);k+=$.M(l,m);m=$.bb(k);l=this.Ke.qc+p*Math.cos(m);m=
this.Ke.rc+p*Math.sin(m);p=f&&$.n(f.i("rotation"))?f.i("rotation"):e.i("rotation");h&&(p+=0<k&&180>k?k+270:k+90);e=f&&$.n(f.i("anchor"))?f.i("anchor"):h?e.i("anchor"):UU(this,k);d.left=l;d.top=m;f=$.xo(new $.J(0,0,d.width,d.height),e);d.left-=f.x;d.top-=f.y;e=$.xo(d,e);e=$.Jb($.bb(p),e.x,e.y);d=$.hn(d);e.transform(d,0,d,0,4);return c[a]=d};
$.g.im=function(a,b){var c=this.scale();c={axis:{value:this,type:""},index:{value:a,type:"number"},value:{value:c.UD((0,window.parseFloat)(b)),type:"number"},tickValue:{value:(0,window.parseFloat)(b),type:"number"},max:{value:$.n(c.max)?c.max:null,type:"number"},min:{value:$.n(c.min)?c.min:null,type:"number"},scale:{value:c,type:""}};c=new $.rw(c);c.sm({"%AxisScaleMax":"max","%AxisScaleMin":"mix"});return $.av(c)};
$.g.ce=function(a,b,c){var d=this.na,e=c?d.Qa().get():d.tb().get();d=c?this.labels():this.kb();var f=d.Vd(a),h=f&&$.n(f.i("autoRotate"))?f.i("autoRotate"):d.i("autoRotate");f=TU(this,a,c);c=SU(this,c,h?f.height:0);e=this.im(a,e[a]);f=d.add(e,{value:{angle:b,radius:c}},a);h||(a=RU(this),d=f&&$.n(f.offsetX())?f.offsetX():d.offsetX(),b+=$.M(d,a),f.anchor(UU(this,b)))};$.g.Bk=function(a){return $.n(a)?(this.Ke!=a&&(this.Ke=a),this):this.Ke};
$.g.remove=function(){this.Lc&&this.Lc.parent(null);this.Qa().remove();this.labels().remove();this.tb().remove();this.kb().remove()};
$.g.$=function(){if(!this.Bc())return this;var a=this.scale(),b=this.Dl(),c=RU(this),d=this.Ke.qc,e=this.Ke.rc;this.Lc||(this.Lc=$.nk(),$.du(this,this.Lc));if(this.J(4)){var f=this.i("radius"),h=this.i("width");this.mq=$.M(null!=f?f:"100%",this.Ke.Bj());this.Vi=$.M(null!=h?h:"3%",this.Ke.Bj());f=$.M(this.i("cornersRounding"),this.Vi);var k=this.mq-this.Vi/2;var l=this.mq+this.Vi/2;this.Lc.clear();this.Lc.ze(d,e,this.mq-this.Vi/2,this.mq-this.Vi/2,b,c);f&&(h=d+$.db(b+c,l),l=e+$.eb(b+c,l),f<this.Vi/
2?this.Lc.kf(h,l,this.Vi-f,this.Vi-f,!1,!1):this.Lc.kf(h,l,f,f,!0,!1));this.Lc.ze(d,e,this.mq+this.Vi/2,this.mq+this.Vi/2,b+c,-c,!f);f&&(h=d+$.db(b,k),l=e+$.eb(b,k),f<this.Vi/2?this.Lc.kf(h,l,this.Vi-f,this.Vi-f,!1,!1):this.Lc.kf(h,l,f,f,!0,!1));this.Lc.close();this.$i();this.B(384);this.I(4)}$.V(this.labels());$.V(this.kb());$.V(this.Qa());$.V(this.tb());this.J(16)&&(this.Lc.fill(this.i("fill")),this.Lc.stroke(null),this.I(16));if(this.J(256)){var m=this.Qa();m.B(4);m.rd();m=m.Pp;var p=this.tb();
p.B(4);p.rd();p=p.Pp;this.I(256)}if(this.J(128)){var q=this.labels();q.ja(tV(this.Ke));q.Cc(d);q.yc(e);q.lE(b);q.Hy(c);q.qy(this.Ke.Bj());q.clear();q=this.ce;var r=this.kb();r.ja(tV(this.Ke));r.Cc(d);r.yc(e);r.lE(b);r.Hy(c);r.qy(this.Ke.Bj());r.clear();r=this.ce;this.I(128)}this.J(8)&&(d=this.zIndex(),e=.1*yV,this.Lc.zIndex(d+e),this.Qa().zIndex(d),this.tb().zIndex(d),this.labels().zIndex(d+4*e),this.kb().zIndex(d+4*e),this.I(8));this.J(2)&&(d=this.P(),this.Lc.parent(d),this.Qa().P(d),this.tb().P(d),
this.labels().P(d),this.kb().P(d),this.I(2));if(m||q||p||r){var t,u;e=a.Qa().get();f=e.length;h=a.tb().get();k=h.length;l=this.Px();if($.D(l)){d=l.labels;var v=l.kb}else d=!l,v=!l;var w=t=0;for(var x,y,B;t<f||w<k;){var G=e[t];x=h[w];var C=a.transform(G);y=a.transform(x);if(C<=y&&t<f||w==k){l=$.ab(b+C*c);var I=$.A(d)?d[t]:d;(u=$.A(d)&&d[t]||$.da(d))&&m&&m.call(this.hb,l,G);I&&q&&q.call(this,t,l,!0);B=C;t++}else l=$.ab(b+y*c),I=$.A(v)?v[w]:v,(u=$.A(v)&&v[w]||$.da(v))&&p&&B!=y&&p.call(this.Nc,l,x),I&&
r&&B!=y&&r.call(this,w,l,!1),w++}}m&&this.Qa().zl();p&&this.tb().zl();q&&this.labels().$();r&&this.kb().$();this.labels().da(!1);this.kb().da(!1);this.Qa().da(!1);this.tb().da(!1);return this};$.g.F=function(){var a=PU.u.F.call(this);$.Hq(this,zV,a);a.scale=this.scale().F();a.ticks=this.Qa().F();a.minorTicks=this.tb().F();a.labels=this.labels().F();a.minorLabels=this.kb().F();return a};
$.g.X=function(a,b){PU.u.X.call(this,a,b);$.zq(this,zV,a,b);var c=a.scale;if($.z(c))var d=QU(c);else $.D(c)?(d=QU(c.type),d.K(c)):d=null;d&&this.scale(d);this.Qa(a.ticks);this.tb(a.minorTicks);this.labels().ia(!!b,a.labels);this.kb().ia(!!b,a.minorLabels)};$.g.R=function(){$.td(this.Da,this.oc,this.hb,this.Nc,this.Lc);this.Lc=this.Nc=this.hb=this.Da=this.oc=null;PU.u.R.call(this)};var AV=PU.prototype;AV.scale=AV.scale;AV.ticks=AV.Qa;AV.minorTicks=AV.tb;AV.labels=AV.labels;AV.minorLabels=AV.kb;$.H(VU,$.Y);var BV={};$.hq(BV,[[0,"fill",$.Vb],[0,"axisIndex",$.qq],[0,"position",JU],[0,"startSize",MU],[0,"endSize",MU],[0,"from",$.qq],[0,"to",$.qq],[0,"radius",MU],[0,"cornersRounding",$.to]]);$.U(VU,BV);$.g=VU.prototype;$.g.sa=$.Y.prototype.sa|65552;$.g.qa=$.Y.prototype.qa|4;$.g.Bk=function(a){return $.n(a)?(this.Ke!=a&&(this.Ke=a),this):this.Ke};$.g.remove=function(){this.fa&&this.fa.parent(null);this.wa&&this.wa.length&&(0,$.Qe)(this.wa,function(a){a.parent(null)})};
$.g.$=function(){var a=this.Ke,b=ZU(a,this.i("axisIndex"));if(!this.Bc())return this;if(!b||!b.enabled())return this.fa&&this.fa.clear(),$U(this),this;var c=this.i("fill"),d=$.D(c)&&$.n(c.keys)&&!$.n(c.cx)&&!$.n(c.cy);d&&this.B(4);$U(this);if(this.J(4)){var e=b.scale(),f=this.i("from"),h=this.i("to");if(e.gk(f)||e.gk(h))return this.fa&&this.fa.clear(),this.I(4),this;this.fa?this.fa.clear():this.fa=$.nk();this.wa||(this.wa=[]);$U(this);if(f!=h){var k=h<f,l=$.Za(e.transform(k?h:f),0,1),m=$.Za(e.transform(k?
f:h),0,1);if(l==m)return this;f=b.Dl();h=RU(b);e=f+l*h;f+=m*h;(h=f-e)||(h=l==m?0:360);m=$.bb(e);l=$.bb(f);var p=this.i("startSize"),q=this.i("endSize");p=null!=p?p:0;q=null!=q?q:"10%";var r=(0,window.parseFloat)(k?q:p)/100;k=(0,window.parseFloat)(k?p:q)/100;p=this.i("radius");p=Ofa(this,a,null!=p?0:b.Vi,null!=p?$.M(p,a.Bj()):b.Bj(),r,k);var t=p[0];k=p[1];r=p[2];var u=p[3],v=this.i("cornersRounding");p=t-k;q=$.M(v,p);var w=r-u;v=$.M(v,w);var x,y=a.qc;a=a.rc;if(d){for(var B=c.keys,G=c.keys.length,C=
0;C<G-1;C++)this.wa[C]?x=this.wa[C]:this.wa[C]=x=$.nk(),x.clear().stroke("none").fill("none").parent(this.P()).zIndex(this.zIndex());for(C=0;C<G-1;C++){x=B[C];var I=B[C+1],P=x.offset,Q=I.offset;Nfa(this,this.wa,e+h*P,e+h*Q,k+(u-k)*P,k+(u-k)*Q,t+(r-t)*P,t+(r-t)*Q,x.color,$.n(x.opacity)?x.opacity:$.n(c.opacity)?c.opacity:1,I.color,$.n(I.opacity)?I.opacity:$.n(c.opacity)?c.opacity:1,C,q,p,v,w)}}k==u?(c=y+Math.cos(m)*k,x=a+Math.sin(m)*k,this.fa.moveTo(c,x),this.fa.arcTo(k,k,e,h)):(c=y+Math.cos(m)*k,x=
a+Math.sin(m)*k,this.fa.moveTo(c,x),WU(this,this.fa,e,f,k,u));b=b.scale().Uf();v&&(c=y+$.db(f,r),x=a+$.eb(f,r),v<w/2?this.fa.kf(c,x,w-v,w-v,!1,b):this.fa.kf(c,x,v,v,!0,b));r==t?(c=y+Math.cos(l)*r,l=a+Math.sin(l)*r,v||this.fa.lineTo(c,l),this.fa.arcTo(r,r,f,-h)):WU(this,this.fa,f,e,r,t);q&&(c=y+$.db(e,k),x=a+$.eb(e,k),q<p/2?this.fa.kf(c,x,p-q,p-q,!1,b):this.fa.kf(c,x,q,q,!0,b));this.fa.close()}else this.fa.clear();this.I(4)}this.J(16)&&(d?this.fa.fill("none"):this.fa.fill(this.i("fill")),this.fa.stroke("none"),
this.I(16));this.J(8)&&(this.fa.zIndex(this.zIndex()),this.wa&&this.wa.length&&(0,$.Qe)(this.wa,function(a){a.zIndex(this.zIndex())},this),this.I(8));this.J(2)&&(this.fa.parent(this.P()),this.wa&&this.wa.length&&(0,$.Qe)(this.wa,function(a){a.parent(this.P())},this),this.I(2));return this};$.g.F=function(){var a=VU.u.F.call(this);$.Hq(this,BV,a);return a};$.g.X=function(a,b){VU.u.X.call(this,a,b);$.zq(this,BV,a)};$.g.R=function(){$.td(this.wa,this.fa);this.fa=this.wa=null;VU.u.R.call(this)};$.H(aV,$.Y);var CV={};$.hq(CV,[[0,"radius",MU],$.Z.Jn,$.Z.az,$.Z.qP]);$.U(aV,CV);$.g=aV.prototype;$.g.sa=$.Y.prototype.sa|65552;$.g.remove=function(){this.Wa&&this.Wa.parent(null)};$.g.Bk=function(a){return $.n(a)?(this.Ke!=a&&(this.Ke=a),this):this.Ke};
$.g.$=function(){if(!this.Bc())return this;this.J(16)&&(this.Jd.fill(this.i("fill")),this.Jd.stroke(this.i("stroke")),this.I(16));var a=this.i("hatchFill");this.J(65536)&&(this.f||!a||$.Vo(a)||(this.f=$.kk(),this.f.parent(this.Wa),this.f.zIndex(1)),this.f&&(this.f.fill(a),this.f.stroke(null),this.B(4)),this.I(65536));this.J(2)&&(this.Wa.parent(this.P()),this.Jd.parent(this.Wa),this.f&&this.f.parent(this.Wa),this.I(2));this.J(8)&&(this.Wa.zIndex(this.zIndex()),this.Jd.zIndex(0),this.f&&this.f.zIndex(1),
this.I(8));if(this.J(4)){a=$.M(this.i("radius"),this.Ke.Bj());var b=this.Ke.qc,c=this.Ke.rc;this.Jd.zp(b);this.Jd.Ap(c);this.Jd.Wb(0>a?0:a);this.f&&(this.f.zp(b),this.f.Ap(c),this.f.Wb(a));this.I(4)}return this};$.g.F=function(){var a=aV.u.F.call(this);$.Hq(this,CV,a);return a};$.g.X=function(a,b){aV.u.X.call(this,a,b);$.zq(this,CV,a,b)};$.g.R=function(){$.td(this.Jd,this.f,this.Wa);this.Wa=this.f=this.Jd=null;aV.u.R.call(this)};$.H(bV,$.jv);$.g=bV.prototype;$.g.Cc=function(a){return $.n(a)?(a=$.N(a),this.qc!=a&&(this.qc=a,this.B(4,9)),this):this.qc};$.g.yc=function(a){return $.n(a)?(a=$.N(a),this.rc!=a&&(this.rc=a,this.B(4,9)),this):this.rc};$.g.qy=function(a){return $.n(a)?(a=$.N(a),this.D!=a&&(this.D=a,this.B(4,9)),this):this.D};$.g.lE=function(a){$.n(a)&&(a=null===a?a:$.ab($.N(a)||0),this.O!=a&&(this.O=a,this.B(4,1)))};
$.g.Hy=function(a){return $.n(a)?(a=null===a?a:$.Za($.N(a)||0,-360,360),this.G!=a&&(this.G=a,this.B(4,1)),this):this.G};
$.g.yf=function(){var a=this.ja()||$.gn(0,0,0,0),b=a.left,c=a.top,d=a.width,e=a.height;a=new $.J(0,0,this.yi,this.wi);var f=new $.gb(0,0);if(this.ja()||!(0,window.isNaN)(this.qc)&&!(0,window.isNaN)(this.rc)){var h=this.i("offsetX"),k=this.i("offsetY");b=(0,window.isNaN)(this.qc)?b+d/2:this.qc;c=(0,window.isNaN)(this.rc)?c+e/2:this.rc;var l=null!=this.O?this.O:0,m=null!=this.G?this.G:360;d=$.n(this.D)&&!(0,window.isNaN)(this.D)?$.M(k,this.D):this.ja()?$.M(k,Math.min(d,e)/2):0;h=l+$.M(h,m);f.x=b+Math.cos($.bb(h))*
d;f.y=c+Math.sin($.bb(h))*d}else f.x=0,f.y=0;d=this.i("anchor");d=$.xo(new $.J(0,0,this.yi,this.wi),d);f.x-=d.x;f.y-=d.y;this.ug+=f.x;this.vg+=f.y;a.left=f.x;a.top=f.y;this.rb.jc(1,0,0,1,0,0);this.rb.translate(this.ug,this.vg);this.rb.clip(new $.J(0,0,this.Ym,this.Wm));return a};$.H(cV,$.Y);cV.prototype.sa=$.Y.prototype.sa|65552;cV.prototype.qa=$.Y.prototype.qa|4;var DV={};$.hq(DV,[$.Z.DE,$.Z.tB,$.Z.qP,[0,"axisIndex",$.qq]]);$.U(cV,DV);$.g=cV.prototype;$.g.Rg=function(){return!0};$.g.hk=function(){return!1};$.g.Ii=function(){return!0};$.g.Qt=function(){return!1};$.g.Yi=function(a){return $.n(a)?(this.O!=a&&(this.O=a,this.B(4,5)),this):null!=this.O?this.O:this.g?0:eV(this)};$.g.Bk=function(a){return $.n(a)?(this.Ke!=a&&(this.Ke=a),this):this.Ke};
$.g.la=function(){return this.fd?-1:(0,$.za)(this.Ke.Te(),this)};$.g.mh=function(a){return $.n(a)?(this.Dq=a,this):this.Dq};$.g.id=function(a){return $.n(a)?(this.Yd=a,this):this.Yd||String(this.Dq)};$.g.remove=function(){this.fa&&($.K(this.fa,$.zg)?this.fa.parent(null):this.fa.P(null));this.b&&($.K(this.b,$.zg)?this.b.parent(null):this.b.P(null))};
$.g.data=function(a,b){return $.n(a)?(this.lI!==a&&(this.lI=a,$.qd(this.Ql),this.Nd=null,$.K(a,$.pr)?this.g=this.Ql=a.tj():$.K(a,$.zr)?this.g=this.Ql=a.ie():this.g=null===a?null:(this.Ql=new $.zr($.A(a)||$.z(a)?a:null,b)).ie(),this.g&&$.L(this.g,this.Id,this),this.B(4,5)),this):this.g};$.g.Id=function(a){$.X(a,16)&&this.B(4,5)};$.g.aa=function(){return this.g?this.Nd||(this.Nd=this.g.aa()):this.Ke.aa()};$.g.vc=function(){return this.g?this.Nd=this.g.aa():this.Ke.vc()};
$.g.$=function(){if(this.J(16)){var a=this.i("fill"),b=this.i("stroke");this.fa.fill(dV(this,a,!0));this.fa.stroke(dV(this,b,!1));this.I(16)}this.J(8)&&(this.fa.zIndex(this.zIndex()),this.j.zIndex(this.zIndex()+1),this.b&&(this.b.zIndex(this.zIndex()+.1*yV),this.j.zIndex(this.b.zIndex()+1)),this.I(8));this.J(2)&&($.K(this.fa,$.zg)?this.fa.parent(this.P()):this.fa.P(this.P()),this.b&&($.K(this.b,$.zg)?this.b.parent(this.P()):this.b.P(this.P())),this.j.parent(this.P()),this.I(2));return this};
$.g.Ec=function(a){if(!this.de||a)this.de=new $.rw;a=this.aa();var b={series:{value:this,type:""},index:{value:a.la(),type:"number"},value:{value:a.get("value"),type:"number"}};this.de.Ag(a).mj([this]);return $.av(this.de,b)};$.g.xk=function(){return this.Ec()};$.g.Xj=$.ia;$.g.fm=$.ia;$.g.Uk=$.ia;$.g.Wp=$.ia;$.g.ig=function(a){a=cV.u.ig.call(this,a);a.pointIndex=$.N($.mo(a.domTarget).index);return a};
$.g.Ig=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":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in a&&(c=a.markerIndex);c=$.N(c);a.pointIndex=c;var d=this.aa();d.select(c)||d.reset();
return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a}};$.g.sh=function(a){(a=this.Ig(a))&&this.dispatchEvent(a)};$.g.Oj=function(a){$.n(a)?this.Hi(a):this.Ek();return this};$.g.Pd=function(){var a;if(a=!$.Zw(this.state,$.po))a=!(this.state.Nj()&$.po);if(a||!this.enabled())return this;this.state.Hh($.po,this.state.Ac==$.Zl?window.NaN:void 0);return this};
$.g.Hi=function(a){if(!this.enabled())return this;if($.A(a)){for(var b=$.ex(this.state,$.po),c=0;c<b.length;c++)$.Aa(a,b[c])||this.state.Hh($.po,b[c]);$.cx(this.state,a)}else $.ea(a)&&(this.Pd(),$.cx(this.state,a));return this};$.g.Ek=function(){this.enabled()&&this.state.xh($.po)};$.g.ae=function(){return this};$.g.Ni=function(a){return $.n(a)?(a=null===a?null:$.zk(a),a!=this.Ls&&(this.Ls=a),this):this.Ls};$.g.Fl=function(a){return $.n(a)?(a=$.yk(a),a!=this.N&&(this.N=a),this):this.N};
$.g.F=function(){var a=cV.u.F.call(this);$.Hq(this,DV,a);a.pointerType=this.Na();this.g&&(a.data=this.data().F());$.n(this.O)&&(a.dataIndex=this.O);this.Yd&&(a.id=this.id());this.Dq!=this.la()&&(a.autoIndex=this.mh());return a};$.g.X=function(a,b){cV.u.X.call(this,a,b);$.zq(this,DV,a,b);this.id(a.id);this.mh(a.autoIndex);this.Yi(a.dataIndex);"data"in a&&this.data(a.data||null)};$.g.R=function(){$.td(this.fa,this.b,this.j);this.j=this.b=this.fa=null;cV.u.R.call(this)};var EV=cV.prototype;EV.id=EV.id;
EV.data=EV.data;EV.dataIndex=EV.Yi;$.H(hV,cV);hV.prototype.Na=function(){return"bar"};var FV={};$.hq(FV,[[0,"width",MU],[0,"position",JU],[0,"radius",MU],[0,"barDrawer",$.Vq]]);$.U(hV,FV);
hV.prototype.$=function(){var a=this.Bk(),b=ZU(a,this.i("axisIndex"));if(!this.Bc())return this;fV(this);if(!b||!b.enabled())return this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.J(4)&&this.I(4),this;if(this.J(65536)){var c=this.i("hatchFill");this.b||!c||$.Vo(c)||(this.b=$.nk(),this.b.parent(this.P()),this.b.zIndex(this.zIndex()+1));this.b&&(this.b.td(!0),this.b.fill(c),this.b.stroke(null),this.B(4));this.I(65536)}if(this.J(4)){c=a.qc;var d=a.rc,e=b.scale(),f=this.vc();f.select(this.Yi());
var h=(0,window.parseFloat)(f.get("value"));if(e.gk(h))return this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.I(4),this;this.fa?this.fa.clear():this.fa=$.nk();var k=b.Bj(),l=b.Vi;f=b.Dl();var m=RU(b),p=this.i("radius");b=null!=p?$.M(p,a.Bj()):k;k=this.i("width");a=null!=k?$.M(k,a.Bj()):l;l=$.n(p)?a/2:a/2+l/2;p=this.i("position");"outside"==p?b+=l:"inside"==p&&(b-=l);l=$.Za(e.transform(0),0,1);h=$.Za(e.transform(h),0,1);0<=m^h>=l?(e=h,p=l):(e=l,p=h);e=$.ab(f+e*m);(f=$.ab($.ab(f+p*m)-e))||(f=h==
l?0:360);this.f.cx=c;this.f.cy=d;this.f.radius=b;this.f.startAngle=$.ab(e-xV);this.f.sweepAngle=f;this.f.width=a;h={centerX:c,centerY:d,radius:b,startAngle:e,sweepAngle:f,width:a,path:this.fa};m=this.i("barDrawer");m.call(h,h);gV(this,this.fa);this.b&&(c={centerX:c,centerY:d,radius:b,startAngle:e,sweepAngle:f,width:a,path:this.b},m.call(c,c));($.E(this.i("fill"))||$.E(this.i("stroke")))&&this.B(16);this.I(4)}hV.u.$.call(this);return this};
hV.prototype.F=function(){var a=hV.u.F.call(this);$.Hq(this,FV,a,"Bar pointer");return a};hV.prototype.X=function(a,b){hV.u.X.call(this,a,b);$.zq(this,FV,a,b)};$.H(iV,cV);iV.prototype.Na=function(){return"knob"};var GV=function(){var a={};$.hq(a,[[0,"verticesCount",function(a){return(a=$.N(a))?a:this.i("verticesCount")}],[0,"verticesCurvature",$.tq],[0,"topRatio",$.Tq],[0,"bottomRatio",$.Tq],[0,"topRadius",MU],[0,"bottomRadius",MU]]);return a}();$.U(iV,GV);
iV.prototype.$=function(){var a=this.Bk(),b=ZU(a,this.i("axisIndex"));if(!this.Bc())return this;fV(this);if(!b||!b.enabled())return this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.J(4)&&this.I(4),this;if(this.J(65536)){var c=this.i("hatchFill");this.b||!c||$.Vo(c)||(this.b=$.nk(),this.b.parent(this.P()),this.b.zIndex(this.zIndex()+1));this.b&&(this.b.td(!0),this.b.fill(c),this.b.stroke(null),this.B(4));this.I(65536)}if(this.J(4)){c=a.qc;var d=a.rc,e=b.scale(),f=this.vc();f.select(this.Yi());
var h=(0,window.parseFloat)(f.get("value"));if(e.gk(h))return this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.I(4),this;this.fa?this.fa.clear():this.fa=$.nk();f=b.Bj();var k=b.Dl(),l=RU(b);b=this.i("topRadius");b=null!=b?$.M(b,a.Bj()):.7*f;var m=this.i("bottomRadius");a=null!=m?$.M(m,a.Bj()):.6*f;f=this.i("verticesCount");var p=this.i("topRatio"),q=this.i("bottomRatio");m=360/f;p*=m/2;q*=m/2;e=$.Za(e.transform(h),0,1);e=$.ab(k+e*l);this.f.cx=c;this.f.cy=d;this.f.topRadius=b;this.f.bottomRadius=
a;this.f.angle=$.ab(e-xV);l=Math.abs(b-a)/2;k=b<a;var r=this.i("verticesCurvature");h=.5>r?90:-90;l*=Math.abs(.5-r);this.fa.clear();for(r=0;r<f;r++){var t=$.ab(e+r*m);this.fa.ze(c,d,a,a,t,q,0!=r);jV(this,this.fa,t,m,p,q,b,a,c,d,h,l,k,!0);var u=$.ab(t+m/2-p);this.fa.ze(c,d,b,b,u,2*p);jV(this,this.fa,t,m,p,q,b,a,c,d,h,l,k,!1);t=$.ab(t+m-q);this.fa.ze(c,d,a,a,t,q)}this.fa.close();gV(this,this.fa);if(this.b){this.b.clear();for(r=0;r<f;r++)t=$.ab(e+r*m),this.b.ze(c,d,a,a,t,q,0!=r),jV(this,this.b,t,m,p,
q,b,a,c,d,h,l,k,!0),u=$.ab(t+m/2-p),this.b.ze(c,d,b,b,u,2*p),jV(this,this.b,t,m,p,q,b,a,c,d,h,l,k,!1),t=$.ab(t+m-q),this.b.ze(c,d,a,a,t,q);this.b.close()}this.I(4)}iV.u.$.call(this);return this};iV.prototype.F=function(){var a=iV.u.F.call(this);$.Hq(this,GV,a,"Knob pointer");return a};iV.prototype.X=function(a,b){iV.u.X.call(this,a,b);$.zq(this,GV,a,b)};$.H(kV,cV);kV.prototype.Na=function(){return"marker"};var HV=function(){var a={};$.hq(a,[[0,"size",$.to],[0,"position",JU],[0,"radius",MU],[0,"type",function(a){return $.E(a)?a:$.Ik(a,"line")}]]);return a}();$.U(kV,HV);
kV.prototype.$=function(){var a=this.Bk(),b=ZU(a,this.i("axisIndex"));if(!this.Bc())return this;fV(this);if(!b||!b.enabled())return this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.J(4)&&this.I(4),this;var c=this.i("type");if(this.J(65536)){var d=this.i("hatchFill");this.b||!d||$.Vo(d)||(this.b=new $.Px,this.b.pa("positionFormatter",$.Xo),this.b.pa("size",10),this.b.pa("anchor","center"),this.b.pa("offsetX",0),this.b.pa("offsetY",0),this.b.pa("rotation",0),this.b.P(this.P()),this.b.zIndex(this.zIndex()+
1));this.b&&(this.b.td(!0),this.b.pa("fill",d),this.b.pa("stroke",null),this.b.pa("size",this.D),this.b.pa("type",c),this.B(4));this.I(65536)}if(this.J(4)){var e=a.qc;d=a.rc;var f=b.scale(),h=this.vc();h.select(this.Yi());var k=(0,window.parseFloat)(h.get("value"));if(f.gk(k))return this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.I(4),this;var l=b.Bj(),m=b.Vi,p=b.Dl(),q=RU(b);b=this.i("radius");b=null!=b?$.M(b,a.Bj()):l;l=this.i("size");this.D=null!=l?$.M(l,a.Bj()):m;a=this.i("position");"outside"==
a?b+=this.D+m/2:"inside"==a&&(b-=this.D+m/2);a=$.Za(f.transform(k),0,1);a=$.ab(p+a*q);f=$.bb(a);p=e+b*Math.cos(f);f=d+b*Math.sin(f);this.f.cx=e;this.f.cy=d;this.f.radius=b;this.f.size=this.D;this.f.angle=$.ab(a-xV);this.fa.pa("size",this.D);this.fa.pa("type",c);e=this.fa.add({value:{x:p,y:f}},0);e.pa("rotation",a+90);this.b&&(this.b.pa("size",this.D),this.b.pa("type",c),this.b.add({value:{x:p,y:f}},0).pa("rotation",a+90));($.E(this.i("fill"))||$.E(this.i("stroke")))&&this.B(16);this.I(4)}kV.u.$.call(this);
this.fa.$();this.b&&this.b.$();e&&e.Kd()&&(e.Kd().tag=h.la());return this};kV.prototype.F=function(){var a=kV.u.F.call(this);$.Hq(this,HV,a,"Marker pointer");return a};kV.prototype.X=function(a,b){kV.u.X.call(this,a,b);$.zq(this,HV,a,b)};$.H(lV,cV);lV.prototype.Na=function(){return"needle"};var IV={};$.hq(IV,[[0,"startWidth",MU],[0,"startRadius",MU],[0,"middleWidth",MU],[0,"middleRadius",MU],[0,"endWidth",MU],[0,"endRadius",MU]]);$.U(lV,IV);$.g=lV.prototype;$.g.th=function(a){return null!=this.Ma[a]};$.g.remove=function(){lV.u.remove.call(this);this.j.clear()};
$.g.$=function(){var a=ZU(this.Bk(),this.i("axisIndex"));if(!this.Bc())return this;fV(this);if(!a||!a.enabled())return this.j.clear(),this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.J(4)&&this.I(4),this;if(this.J(65536)){var b=this.i("hatchFill");this.b||!b||$.Vo(b)||(this.b=$.nk(),this.b.parent(this.P()),this.b.zIndex(this.zIndex()+1));this.b&&(this.b.td(!0),this.b.fill(b),this.b.stroke(null),this.B(4));this.I(65536)}if(this.J(4)){b=a.scale();var c=this.vc();c.select(this.Yi());c=(0,window.parseFloat)(c.get("value"));
var d=mV(this,a,c);if(b.gk(c))return this.j.clear(),this.fa&&this.fa.clear(),this.b&&this.b.clear(),this.I(4),this;this.fa||(this.fa=$.nk());this.f.cx=d.Cc;this.f.cy=d.yc;this.f.startRadius=d.gha;this.f.startWidth=d.hha;this.f.middleRadius=d.eha;this.f.middleWidth=d.fha;this.f.endRadius=d.cha;this.f.endWidth=d.dha;this.f.angle=$.ab(d.angle-xV);this.fa.clear().moveTo(d.gS,d.iS).lineTo(d.YU,d.$U).lineTo(d.TW,d.VW).lineTo(d.UW,d.WW).lineTo(d.ZU,d.aV).lineTo(d.hS,d.jS).close();this.b&&this.b.clear().moveTo(d.gS,
d.iS).lineTo(d.YU,d.$U).lineTo(d.TW,d.VW).lineTo(d.UW,d.WW).lineTo(d.ZU,d.aV).lineTo(d.hS,d.jS).close();a=mV(this,a,c,5);this.j.clear().moveTo(a.gS,a.iS).lineTo(a.YU,a.$U).lineTo(a.TW,a.VW).lineTo(a.UW,a.WW).lineTo(a.ZU,a.aV).lineTo(a.hS,a.jS).close();gV(this,this.j);($.E(this.i("fill"))||$.E(this.i("stroke")))&&this.B(16);this.I(4)}lV.u.$.call(this);return this};$.g.F=function(){var a=lV.u.F.call(this);$.Hq(this,IV,a,"Needle pointer");return a};
$.g.X=function(a,b){lV.u.X.call(this,a,b);$.zq(this,IV,a,b)};$.H(nV,$.gx);nV.prototype.sa=$.gx.prototype.sa|446480;nV.prototype.Na=function(){return"circular-gauge"};var xV=-90,yV=1E-4;$.g=nV.prototype;$.g.Pn=function(){nV.u.Pn.call(this);for(var a=this.Ia("chartElements")||{},b=0,c=this.D.length;c--;)this.D[c]&&b++;a.axes=b;this.Ia("chartElements",a)};$.g.Te=function(){return this.g};$.g.At=function(){return[this]};$.g.es=function(){return[]};$.g.uu=function(){return!0};$.g.tK=function(){return new bV};
$.g.data=function(a,b){return $.n(a)?(this.jg!==a&&(this.jg=a,$.qd(this.jd),this.Nd=null,$.K(a,$.pr)?this.j=this.jd=a.tj():this.j=$.K(a,$.zr)?this.jd=a.ie():(this.jd=new $.zr($.A(a)||$.z(a)?a:null,b)).ie(),this.oa=this.j,$.L(this.oa,this.Id,this),rV(this),this.B(266496,5)),this):this.oa};$.g.Id=function(a){$.X(a,16)&&(rV(this),this.B(266496,5))};$.g.aa=function(){return this.Nd||this.vc()};$.g.vc=function(){return this.Nd=this.data().aa()};
$.g.Ik=function(a,b,c,d,e){a={type:"hovered"==a?"pointshover":"pointsselect",seriesStatus:this.CF(c,d),currentPoint:this.oD(c,a,d),actualTarget:b.target,target:this,originalEvent:b};e&&(a.BS=!0);return a};$.g.YQ=function(a){this.G||(this.G=new aV,$.W(this,"cap",this.G),this.G.Bk(this),$.L(this.G,this.qga,this),this.B(16384,1));return $.n(a)?(this.G.K(a),this):this.G};$.g.qga=function(a){var b=0,c=0;$.X(a,1)&&(b|=16384,c|=1);$.X(a,8)&&(b|=4);this.B(b,c)};
$.g.qe=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.ad[c];e||(e=new VU,this.ad[c]=e,e.zIndex(30+yV*this.Ga),this.Ga++,e.Bk(this),e.Fa(this.mf("defaultRangeSettings")),$.L(e,this.rga,this),this.B(266240,5));return $.n(d)?(e.K(d),this):e};$.g.rga=function(){this.B(131072,1)};
$.g.Bz=function(a,b,c,d){a=LU(a);var e="knob"==a,f=JV[a],h=oV(this,a);if(f){f=new f;var k=this.g[this.g.length-1];k=k?k.mh()+1:0;this.g.push(f);h[b]=f;b=e?this.Ra++:this.eb++;e=(e?20:40)+yV*b;f.mh(k);eV(f,b);f.zIndex(e);$.ea(c)?f.Yi(c):f.data(c,d);f.Bk(this);c=this.mf("defaultPointerSettings");f.Fa(c.base);f.Fa(c[$.om(a)]);$.L(f,this.nb,this);this.B(266244,5)}else f=null;return f};
$.g.z9=function(a){var b=[],c=this.i("defaultPointerType"),d=arguments.length,e=oV(this,c).length;$.V(this);if(d)for(var f=0;f<d;f++)b.push(this.Bz(c,e+f,arguments[f]));this.da(!0);return b};$.g.D9=function(a){return this.FY(pV(this,a))};$.g.FY=function(a){var b=this.g[a];if(b){$.Fp++;$.Ca(this.g,a,1);a=b.Na();a=oV(this,a);var c=(0,$.za)(a,b);-1!=c&&$.Ca(a,c,1);$.qd(b);this.B(266240,5);$.Ip()}return this};
$.g.C9=function(){if(this.g.length){$.Fp++;var a=this.g;this.g=[];this.O=[];this.ba=[];this.f=[];this.ga=[];this.Ra=this.eb=0;$.td(a);this.B(266240,5);$.Ip()}return this};$.g.A9=function(a){return this.EY(pV(this,a))};$.g.EY=function(a){return this.g[a]||null};$.g.aT=function(a){return $.ya(this.g,function(b){return b.mh()==a})};$.g.B9=function(){return this.g.length};
(function(){function a(a){return function(b,c,d,e){var f=arguments.length;var h=$.A(b)?window.NaN:$.N(b);if(3<f){(0,window.isNaN)(h)&&(h=0);var k=c;var l=d;var t=e}else 2<f?qV(b)?(h=0,k=b,l=c,t=d):((0,window.isNaN)(h)&&(h=0),qV(c)?(k=c,l=d):(l=c,t=d)):1<f?qV(b)?(h=0,k=b,l=c):(0,window.isNaN)(h)?(h=0,l=b,t=c):qV(c)?k=c:l=c:0<f?(0,window.isNaN)(h)&&(h=0,qV(b)?k=b:l=b):h=0;(f=oV(this,a)[h])||(f=this.Bz(a,h,l,t));return $.n(k)?(f.K(k),this):f}}var b=nV.prototype,c;for(c in KU){var d=$.om(KU[c]);b[d]=
a(KU[c])}})();nV.prototype.nb=function(a){var b=0,c=0;$.X(a,1)&&(b|=4096,c|=1);$.X(a,4)&&(b|=266240,c|=5);this.B(b,c)};nV.prototype.axis=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.D[c];e||(e=new PU,e.Fa(this.mf("defaultAxisSettings")),e.Bk(this),this.D[c]=e,$.L(e,this.ko,this),this.B(32772,1));return $.n(d)?(e.K(d),this):e};nV.prototype.ko=function(a){var b=0,c=0;$.X(a,1)&&(b|=32768,c|=1);$.X(a,8)&&(b|=135172);$.X(a,2)&&(b|=262148);this.B(b,c)};var JV={};
JV.bar=hV;JV.knob=iV;JV.marker=kV;JV.needle=lV;var KV=function(){var a={};$.hq(a,[$.Z.az,$.Z.Jn,$.Z.bz,[0,"circularPadding",$.to],[0,"encloseWithStraightLine",$.tq],[0,"sweepAngle",function(a){return $.Za($.N(a)||0,-360,360)}],[0,"defaultPointerType",LU]]);return a}();$.U(nV,KV);$.g=nV.prototype;$.g.Bj=function(){return this.ya};$.g.Dl=function(){return this.i("startAngle")+xV};$.g.gi=function(){return this.Ja?this.Ja.clone():$.gn(0,0,0,0)};
$.g.sW=function(a){a.ja(tV(this));a.qy(this.Bj());a.Cc(this.qc);a.yc(this.rc);a.lE(this.Dl());a.Hy(this.i("sweepAngle"))};
$.g.ei=function(a){var b,c,d=$.Ga(this.O,this.f,this.ga,this.ba);$.kr(this.G,this.D,this.ad,d);if(this.J(262144)){var e=!1;(0,$.Qe)(this.D,function(a){a.scale().tg();e=e||a.scale().Hf()});if(e){var f=0;for(b=d.length;f<b;f++)if(c=d[f]){var h=c.aa();var k=c.i("axisIndex");h.select(c.Yi());if(k=this.D[k])k.scale().Uc(h.get("value")),$.K(c,hV)&&k.scale().Uc(0)}}(0,$.Qe)(this.D,function(a){a.scale().Cg()});rV(this);this.B(32768);this.B(131072);this.I(262144)}if(this.J(4)){Pfa(this,a);this.N.clear();sV(this,
this.N,this.qc,this.rc,this.ya);this.N.zIndex(1);this.N.parent(this.La);this.G&&this.G.B(4);f=0;for(b=this.D.length;f<b;f++)(k=this.D[f])&&k.B(4);rV(this);f=0;for(b=this.ad.length;f<b;f++)(a=this.ad[f])&&a.B(4);this.B(184320)}this.J(16)&&(this.N.stroke(this.i("stroke")),this.N.fill(this.i("fill")),this.I(16));this.J(16384)&&(this.G&&this.G.P(this.La).$(),this.I(16384));if(this.J(32768)){f=0;for(b=this.D.length;f<b;f++)(k=this.D[f])&&k.P(this.La).$();this.I(32768)}if(this.J(4096)){f=0;for(b=d.length;f<
b;f++)if(c=d[f])c.ib(this),c.P(this.La).$();this.I(4096)}if(this.J(131072)){f=0;for(b=this.ad.length;f<b;f++)(a=this.ad[f])&&a.P(this.La).$();this.I(131072)}$.mr(this.G,this.D,this.ad,d)};$.g.Ej=function(){for(var a=this.aa().Gb(),b=0,c=$.Ga(this.O,this.f,this.ga,this.ba),d=c.length,e=0;e<d;e++){var f=c[e];if(f&&!f.enabled())b++;else break}return!a||!d||b==d};
$.g.sg=function(a){a=a?a:this.ma;var b,c=a.axes;if(c){var d=0;for(b=c.length;d<b;d++)c[d]&&this.axis(d,c[d])}if("pointers"in a){if(b=a.pointers,$.A(b))for(d=0;d<b.length;d++){c=b[d];var e=c.pointerType||this.i("defaultPointerType"),f=c.dataIndex,h=c.data||null;if(e=this.Bz(e,oV(this,e).length))e.Yi(f),e.data(h),e.K(c)}}else{if(c=a.bars)for(d=0,b=c.length;d<b;d++)c[d]&&this.bar(d,c[d]);if(c=a.markers)for(d=0,b=c.length;d<b;d++)c[d]&&this.marker(d,c[d]);if(c=a.needles)for(d=0,b=c.length;d<b;d++)c[d]&&
this.needle(d,c[d]);if(c=a.knobs)for(d=0,b=c.length;d<b;d++)c[d]&&this.knob(d,c[d])}if(a=a.ranges)for(d=0,b=a.length;d<b;d++)a[d]&&this.qe(d,a[d])};$.g.X=function(a,b){nV.u.X.call(this,a,b);$.zq(this,KV,a,b);this.data(a.data);$.n(a.cap)&&this.YQ(a.cap);this.Vc(a.interactivity);this.sg(a)};
$.g.F=function(){var a=nV.u.F.call(this);$.Hq(this,KV,a);a.data=this.data().F();this.G&&(a.cap=this.YQ().F());a.interactivity=this.Vc().F();var b,c=[];var d=0;for(b=this.D.length;d<b;d++){var e=this.D[d];e&&c.push(e.F())}c.length&&(a.axes=c);b=[];for(d=0;d<this.g.length;d++)(c=this.g[d])&&b.push(c.F());b.length&&(a.pointers=b);c=[];d=0;for(b=this.ad.length;d<b;d++)(e=this.ad[d])&&c.push(e.F());c.length&&(a.ranges=c);return{gauge:a}};
$.g.R=function(){$.td(this.jd,this.j,this.oa,this.G,this.ad,this.D,this.O,this.f,this.ga,this.ba,this.g);this.G=this.Nd=this.oa=this.j=this.jd=null;this.ad.length=0;this.D.length=0;this.O.length=0;this.f.length=0;this.ga.length=0;this.ba.length=0;this.g.length=0;nV.u.R.call(this)};var LV=nV.prototype;LV.data=LV.data;LV.cap=LV.YQ;LV.axis=LV.axis;LV.addPointer=LV.z9;LV.removePointer=LV.D9;LV.removePointerAt=LV.FY;LV.removeAllPointers=LV.C9;LV.getPointer=LV.A9;LV.getPointerAt=LV.EY;
LV.getPointersCount=LV.B9;LV.range=LV.qe;LV.getType=LV.Na;LV.noData=LV.Pm;$.Kp["circular-gauge"]=uV;$.F("anychart.gauges.circular",uV);}).call(this,$)}
