/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.5.0
*/
FusionCharts.register("module",["private","modules.renderer.js-gradientlegend",function(){function U(b,e,m){var l=b[0],n=b[1];b=b[2];l+=(e[0]-l)*m;n+=(e[1]-n)*m;e=b+(e[2]-b)*m;return{hex:(ra+(l<<16|n<<8|e).toString(16)).slice(-6),rgb:[l,n,e]}}function da(b,e){return b.maxvalue-e.maxvalue}function C(b){var e,m,l=b.colorRange||{},n=b.dataMin,B=b.dataMax,q=b.sortLegend||!1,g=b.mapByCategory||!1,u=b.defaultColor,d=b.numberFormatter,c=l.color;b=this.colorArr=[];var h,f,a;this.mapByCategory=g;"1"===l.mapbypercent&&
(this.mapbypercent=!0);if("1"===l.gradient&&!g){this.gradient=!0;m=Aa($(l.startcolor,l.mincolor,l.code));q=ga(Aa($(m,u,"CCCCCC")));g=this.scaleMin=F(l.startvalue,l.minvalue,this.mapbypercent?0:n);b.push({code:m,maxvalue:g,label:X(l.startlabel),codeRGB:ga(m)});if(c&&(e=c.length))for(n=0;n<e;n+=1)u=c[n],m=Aa($(u.color,u.code)),f=F(u.value,u.maxvalue),a=F(u.minvalue),f>g&&b.push({code:m,maxvalue:f,userminvalue:a,label:X($(u.label,u.displayvalue)),codeRGB:ga(m)});b.sort(da);e=b.length;for(n=1;n<e;n+=
1)u=b[n],m=u.maxvalue-g,0<m?(u.minvalue=g,u.range=m,g=u.maxvalue):(b.splice(n,1),n-=1,e-=1);2<=b.length&&(this.scaleMax=g,b[n-1].label=$(l.endlabel,b[n-1].label,b[n-1].displayvalue));1===b.length&&(f=F(l.maxvalue,this.mapbypercent?100:B),b.push({minvalue:g,maxvalue:f,range:f-g,label:l.endlabel}),this.scaleMax=f,delete b[0].code);l=b[0];B=b[b.length-1];l.code&&B.code||(m=ha(q),e=Da((m[2]=0,m)),m=Da((m[2]=100,m)),l.code||(l.codeRGB=e,l.code=sa(e)),B.code||(B.codeRGB=m,B.code=sa(m)));e=b.length;for(n=
1;n<e;n+=1)if(u=b[n],u.code){if(h)for(B=u,a=l.maxvalue,c=B.maxvalue-a;h<n;h+=1)q=b[h],m=U(l.codeRGB,B.codeRGB,(q.maxvalue-a)/c),q.code=m.hex,q.codeRGB=m.rgb;h=null;l=u}else h=h||n;if(void 0===this.scaleMin||void 0===this.scaleMax)this.noValidRange=!0}else if(c&&(e=c.length)){for(n=0;n<e;n+=1)u=c[n],m=$(u.color,u.code),f=F(u.maxvalue),a=F(u.minvalue),h=$(u.label,u.displayvalue,g?Y:d.dataLabels(a)+" - "+d.dataLabels(f)),(m&&f>a||g&&h)&&b.push({code:m,maxvalue:f,minvalue:a,label:X(h),labelId:h.toLowerCase()});
b.length?q&&b.sort(da):this.noValidRange=!0}}function N(b,e){return e?z(100*b)/100+"%":aa(b,Y).toString()}var ja=this,b=ja.hcLib,ta=ja.window,ta=/msie/i.test(ta.navigator.userAgent)&&!ta.opera,F=b.pluckNumber,ra=b.COLOR_BLACK,e=b.COLOR_GLASS,Ba=b.FC_CONFIG_STRING,va=b.graphics,Da=va.HSBtoRGB,ha=va.RGBtoHSB,sa=va.RGBtoHex,ga=va.HEXtoRGB,ka=b.COMMASTRING,Y=b.BLANKSTRING,X=b.parseUnsafeString,ua=b.graphics.convertColor,Ea=b.POSITION_TOP,ia=b.POSITION_MIDDLE,wa=b.POSITION_START,Fa=b.POSITION_END,xa=b.graphics.getDarkColor,
pa=b.graphics.getLightColor,$=b.pluck,aa=b.getValidValue,qa=b.toRaphaelColor,ya=b.hasTouch,z=Math.round,S=Math.max,P=Math.min,Ga=Math.abs,V,Ha,za,Ia="rgba(192,192,192,"+(ta?.002:1E-6)+")",Aa=function(b){return b&&b.replace(/^#?([a-f0-9]+)/ig,"$1")};C.prototype={getColorObj:function(b){var e=this.colorArr,m=this.gradient?1:0,l=e[m],n;if(this.mapByCategory){for(b=X(b).toLowerCase();l;){if(l.labelId===b)return{code:l.code,seriesIndex:m};m+=1;l=e[m]}return{outOfRange:!0}}if(this.gradient){if(this.scaleMin<=
b&&this.scaleMax>=b){for(;l&&l.maxvalue<b;)m+=1,l=e[m];b=(b-l.minvalue)/l.range;return{code:U(e[m-1].codeRGB,l.codeRGB,b).hex}}return{outOfRange:!0}}for(;l;){if(l.maxvalue>b&&l.minvalue<=b)return{code:l.code,seriesIndex:m};l.maxvalue===b&&(n=m);m+=1;l=e[m]}return(l=e[n])&&l.maxvalue===b?{code:l.code,seriesIndex:n}:{outOfRange:!0}}};C.prototype.constructor=C;b.colorRange=C;V=b.configureGradientLegendOptions=function(b,e){var m=b.legend,l=e.chart;m.legendSliderBorderWidth=F(l.legendpointerborderthickness,
1);m.legendSliderBorderColor=ua($(l.legendpointerbordercolor,ra),F(l.legendpointerborderalpha,100));m.legendSliderWidth=F(l.legendpointerwidth,l.legendpointerswidth,12);m.legendSliderHeight=F(l.legendpointerheight,l.legendpointersheight,12);m.legendColorBoxBorderColor=m.borderColor;m.legendColorBoxBorderWidth=m.borderWidth;m.legendScaleColor=ua($(l.legendscalelinecolor,ra),F(l.legendscalelinealpha,100));m.legendScalePadding=F(l.legendscalepadding,4);m.legendScaleLineThickness=F(l.legendscalelinethickness,
1);m.legendScaleTickDistance=F(l.legendscaletickdistance,6);m.itemStyle.cursor="default";m.interActivity=F(l.interactivelegend,1)};b.placeGLegendBlockRight=function(b,e,m,l,n){this.configureLegendOptions(b,e.chart,!0,n,m);V(b,e);n=this.snapLiterals||(this.snapLiterals={});var B=b[Ba],q=this.smartLabel||B.smartLabel,g=b.legend,u=b.chart.spacingRight,d,c,h=g.textPadding=2,f=2*h,a=g.title.padding,D=0,ea=0,k=2*g.padding;e=F(e.chart.legendpadding,7)+g.borderWidth/2+1;var v=b.colorRange||{},H=v.colorArr,
O=v.mapbypercent,T=v.scaleMin,s=v.scaleMax-T,ba=g.legendSliderWidth,x=g.legendSliderHeight/2;c=g.legendScalePadding;var r=g.legendScaleTickDistance,w=g.itemStyle||{};d=F(parseInt(w.lineHeight,10)||12);var y=.75*d,Q=m-k,A,M,p=0,G,t,I,K,E,J,ma;l-=k;if(!v.noValidRange&&H&&1<(M=H.length)){M-=1;g.title.text!==Y&&(q.setStyle(g.title.style),d=q.getSmartText(g.title.text,Q,S(d,l/4)),g.title.text=d.text,D=d.width+k,l-=ea=d.height+a);q.setStyle(w);d=q.lineHeight;Q-=r+c+ba;g.colorBoxX=ba;a=S(d,Q/2);Q=P(Q-a-
4,d);G=S(d,l/2);A=l/4;r=H[0];r.scaleLabel=N(r.maxvalue,O);d=q.getSmartText(r.label,A,Q);r.label=d.text;w=d.height;r.labelY=y-d.height/2;c=q.getSmartText(r.scaleLabel,a,G);r.scaleLabel=c.text;v=c.height/2;t=c.width;r.scaleLabelY=y-c.height/2;g.colorBoxY=S(v,d.width+f,x)+ea;r=ma=H[M];r.scaleLabel=N(r.maxvalue,O);d=q.getSmartText(r.label,A,Q);r.label=d.text;w=S(w,d.height);r.labelY=y-d.height/2;c=q.getSmartText(r.scaleLabel,a,G);r.scaleLabel=c.text;t=S(t,c.width);A=c.height/2;d=S(d.width+f,A,x);r.scaleLabelY=
y-c.height/2;g.colorBoxHeight=x=l-g.colorBoxY-d;G=x-A;I=x/s;E=P(x-p,G-v)-4;for(A=1;A<M;A+=1)r=H[A],K=(r.maxvalue-T)*I,d=q.getSmartText(r.label,2*P(K-p,x-K),Q),r.label=d.text,w=S(w,d.height),r.labelY=y-d.height/2,d=d.width/2,r.scaleLabel=N(r.maxvalue,O),c=q.getSmartText(r.scaleLabel,a,2*P(K-v,G-K)),r.scaleLabel=c.text,t=S(t,c.width),J=c.height/2,r.scaleLabelY=y-c.height/2,E=P(E,(K-S(J+v,d+p)-4)*s/r.range),p=d+K,v=J+K;E=S(P(E,(P(G-v,x-p)-4)*s/ma.range,.3*l),0);g.colorBoxHeight-=E;g.colorBoxWidth=w&&
w+f||15;g.height=g.totalHeight=l+ea+k-E;g.width=(t&&t+h)+g.colorBoxWidth+ba+g.legendScaleTickDistance+g.legendScalePadding+k;g.width<D&&(g.colorBoxX+=(D-g.width)/2,g.width=D);g.width>m&&(g.width=m);n.legendstartx=B.width-u-g.width;n.legendwidth=g.width;n.legendendx=n.legendstartx+n.legendwidth;n.legendheight=g.height;e+=g.width;b.chart.marginRight+=e;return e}g.enabled=!1;return 0};b.placeGLegendBlockBottom=function(b,e,m,l,n){this.configureLegendOptions(b,e.chart,!1,n,m);V(b,e);n=this.snapLiterals||
(this.snapLiterals={});var B=b[Ba],q=this.smartLabel||B.smartLabel,g=b.legend,u=b.chart,d=u.spacingBottom,c=u.spacingLeft,u=u.spacingRight,h,f,a=g.textPadding=2,D=g.title.padding,ea=0,k=0,v=2*g.padding;e=F(e.chart.legendpadding,7)+g.borderWidth/2+1;var H=b.colorRange||{},O=H.colorArr,T=H.mapbypercent,s=H.scaleMin,ba=H.scaleMax-s,x=g.legendSliderWidth,r=g.legendSliderHeight,w=g.legendScalePadding,y=g.legendScaleTickDistance,Q=g.itemStyle||{};h=F(parseInt(Q.lineHeight,10)||12);var A=.75*h,M=l-v,p,G,
t,I,K=0,E,J,ma;m-=v;if(!H.noValidRange&&O&&1<(G=O.length)){G-=1;g.title.text!==Y&&(q.setStyle(g.title.style),h=q.getSmartText(g.title.text,m,M/3),g.title.text=h.text,ea=h.width+v,M-=k=h.height+D);q.setStyle(Q);h=q.lineHeight;M-=y+w+r;D=S(h,M/2);Q=P(M-D-4,h);p=m/4;I=2*p;t=O[0];t.scaleLabel=N(t.maxvalue,T);h=q.getSmartText(t.label,p,Q);t.label=h.text;M=h.height;t.labelY=A-h.height/2;f=q.getSmartText(t.scaleLabel,I,D);t.scaleLabel=f.text;w=f.width/2;y=f.height;t.code||(t.code=$(g.minColor,"CCCCCC"));
g.colorBoxX=S(w,h.width+a,x);t=H=O[G];t.scaleLabel=N(t.maxvalue,T);h=q.getSmartText(t.label,p,Q);t.label=h.text;M=S(M,h.height);t.labelY=A-h.height/2;f=q.getSmartText(t.scaleLabel,I,D);t.scaleLabel=f.text;y=S(y,f.height);t=f.width/2;h=S(h.width+a,t,x);g.colorBoxWidth=x=m-g.colorBoxX-h;I=x-t;E=x/ba;ma=P(x-K,I-w)-4;for(p=1;p<G;p+=1)t=O[p],J=(t.maxvalue-s)*E,h=q.getSmartText(t.label,2*P(J-K,x-J),Q),t.label=h.text,M=S(M,h.height),t.labelY=A-h.height/2,h=h.width/2,t.scaleLabel=N(t.maxvalue,T),f=q.getSmartText(t.scaleLabel,
2*P(J-w,I-J),D),t.scaleLabel=f.text,y=S(y,f.height),f=f.width/2,ma=P(ma,(J-S(f+w,h+K)-4)*ba/t.range),K=h+J,w=f+J;ma=S(P(ma,(P(I-w,x-K)-4)*ba/H.range,.3*m),0);g.colorBoxWidth-=ma;g.width=m+v-ma;g.width<ea&&(g.colorBoxX+=(ea-g.width)/2,g.width=ea);g.colorBoxY=k+r;g.colorBoxHeight=M&&M+2*a||15;g.height=g.totalHeight=(y&&y+a)+g.colorBoxHeight+k+r+g.legendScaleTickDistance+g.legendScalePadding+v;g.height>l&&(g.height=l);n.legendstartx=c+.5*(B.width-c-u-g.width)+(g.x||0);n.legendwidth=g.width;n.legendendx=
n.legendstartx+n.legendwidth;n.legendstarty=B.height-d-g.height;n.legendheight=g.height;n.legendendy=n.legendstarty+n.legendheight;e+=g.height;b.chart.marginBottom+=e;return e}g.enabled=!1;return 0};Ha=function(){return{point:this}};za=function(b){return z(100*b)/100};b.rendererRoot.drawGradientLegendItem=function(b){var C=this,m=C.paper,l=C.options,n=C.canvasLeft,B=C.canvasTop,q=C.canvasWidth,g=C.canvasHeight,u=l.colorRange,d,c,h,f,a=l.legend,D=F(a.padding,4),ea=a.itemStyle,l=a.symbolStyle,k=a.interActivity,
v=b.elements;b=v.elementGroup.trackTooltip(!0);var H="vertical"===a.layout,O,T,s,ba,x,r,w=0,y=a.lighting3d,Q=a.colorBoxWidth,A=a.colorBoxHeight,M=Q,p=A,G={FCcolor:{color:Y,alpha:Y,angle:0,ratio:Y}},t=G.FCcolor,I=a.colorBoxX+D,K=a.colorBoxY+D,E,J,ma=a.legendColorBoxBorderColor,Ma=a.legendColorBoxBorderWidth,Ca=["M"],Ja=a.legendScaleColor;r=a.legendScalePadding;var ca=a.legendScaleLineThickness,V=ca%2/2;c=a.legendScaleTickDistance;var U=a.legendSliderWidth,P=a.legendSliderHeight;x=p/2;f=M/2;var N=U/
2,Z=P/2,aa,W,X;J=0;var da=pa("ABABAB",50),D=xa("ABABAB",70),a=ua("ABABAB",100),D=ua(D,100),da=ua(da,100),fa,R={isFirst:!0},L={},na,oa,ga,la;if(u&&(d=u.colorArr)&&1<(h=d.length)){R.toolText=na=s=u.scaleMin;L.toolText=oa=u=u.scaleMax;ba=u-s;R.snapPX=L.snapPX=0;R.tooltipConstraint=L.tooltipConstraint="chart";R.getLabelConfig=L.getLabelConfig=Ha;R.tooltipPos=[0,0];L.tooltipPos=[0,0];L.tooltipOffsetReference=R.tooltipOffsetReference={};L.tooltipOffsetReference.left=R.tooltipOffsetReference.left+=n-20;
L.tooltipOffsetReference.top=R.tooltipOffsetReference.top+=B;ga=v.colorBox=m.group("colorBox",b);if(H){R.tooltipPos[0]=L.tooltipPos[0]=q+n;J=270;t.angle=90;n=I-U;q=I+M;B=K-Z;O=K+Z;n=z(I-U)+.5;q=z(I)+.5;B=z(K-Z)+.5;O=z(K+Z)+.5;aa=z(I+M)+.5;X=z(K-2)+.5;T=z(K+2)+.5;E=z(K)+.5;g=I-N/2;W=z(g-Z)+.5;g=z(g)+.5;x=K-Z/2;Z=z(x+Z)+.5;x=z(x)+.5;Q/=2;N=["M",n,B,"L",q,B,q,X,aa,E,q,T,q,O,n,O,"Z","M",W,x,"L",g,x,"M",W,E,"L",g,E,"M",W,Z,"L",g,Z];Z=["M",n+1,B,"L",n+1,O,"M",W,x-1,"L",g,x-1,"M",W,E-1,"L",g,E-1,"M",W,Z-
1,"L",g,Z-1];x=I+M+r;O=z(x+c)+V;x=z(x)+V;E=I+f;W=h-1;for(c=0;c<h;c+=1)f=d[c],q=(f.maxvalue-s)/ba,T=p*q+K,r=z(T)+V,c?(t.ratio+=ka,t.color+=ka,t.alpha+=ka,Ca.push("L",x,r,O,r,"M",x,r),c===W?(g=Fa,r=T+2):(g=ia,r=T)):(Ca.push(x,r,"L",O,r,"M",x,r),g=wa,r=T-2),t.ratio+=100*(q-w),t.color+=$(f.code,ra),t.alpha+=$(f.alpha,100),w=q,f.legendItem=m.text(b).attr({text:f.label,x:E,y:r,"text-anchor":g,"vertical-align":ia}).rotate(J,E,r).css(ea),f.legendSymbol=m.text(b).attr({text:f.scaleLabel,x:O,y:T,"text-anchor":wa,
"vertical-align":ia}).css(ea);R.xMin=L.xMin=0;R.xMax=L.xMax=0;R.yMin=L.yMin=0;R.yMax=L.yMax=p;R.x=L.x=0;R.y=0;L.y=p;d=P+M;h=U}else{R.tooltipPos[1]=L.tooltipPos[1]=g+B;n=z(I-N)+.5;q=z(I+N)+.5;B=z(K-P)+.5;O=z(K+p)+.5;aa=z(I-2)+.5;g=z(I+2)+.5;W=z(I)+.5;X=z(K)+.5;T=K-Z/2;E=z(T-Z)+.5;T=z(T)+.5;J=I-N/2;f=z(J+N)+.5;J=z(J)+.5;A/=2;N=["M",n,B,"L",q,B,q,X,g,X,W,O,aa,X,n,X,"Z","M",J,E,"L",J,T,"M",W,E,"L",W,T,"M",f,E,"L",f,T];Z=["M",n,B+1,"L",q,B+1,"M",J-1,E,"L",J-1,T,"M",W-1,E,"L",W-1,T,"M",f-1,E,"L",f-1,T];
r=K+p+r;J=z(r+c)+V;r=z(r)+V;T=K+x;W=h-1;for(c=0;c<h;c+=1)f=d[c],q=(f.maxvalue-s)/ba,O=M*q+I,x=z(O)+V,c?(t.ratio+=ka,t.color+=ka,t.alpha+=ka,Ca.push("L",x,r,x,J,"M",x,r),c===W?(g=wa,x=O+2):(g=ia,x=O)):(Ca.push(x,r,"L",x,J,"M",x,r),g=Fa,x=O-2),t.ratio+=100*(q-w),t.color+=$(f.code,ra),t.alpha+=$(f.alpha,100),w=q,f.legendItem=m.text(b).attr({text:f.label,x:x,y:T,"text-anchor":g,"vertical-align":ia}).css(ea),f.legendSymbol=m.text(b).attr({text:f.scaleLabel,x:O,y:J,"text-anchor":ia,"vertical-align":Ea}).css(ea);
R.xMin=L.xMin=0;R.xMax=L.xMax=M;R.yMin=L.yMin=0;R.yMax=L.yMax=0;R.y=L.y=0;R.x=0;L.x=M;d=U;h=P+p}v.colorBox=m.rect(ga).attr({x:I,y:K,width:M,height:p,fill:qa(G),stroke:ma,strokeWidth:Ma});y&&(v.colorBoxEffect=m.rect(ga).attr({x:I,y:K,width:Q,height:A,fill:e,"stroke-width":0}));v.scale=m.path(b).attr({path:Ca,stroke:Ja,"stroke-width":ca});fa=function(a,c,d,b,h){var f;H?(f=c*ba/p+s,b=0<c?b:b+c+.01):(f=a*ba/M+s,d=0<a?d:d+a+.01);a=za(f);h?(v.slider1.translate(d,b),v.slider1Effect.translate(d,b),v.slider1Tracker.toFront().translate(d,
b).tooltip(a,null,null,!0),na=f):(v.slider2.translate(d,b),v.slider2Effect.translate(d,b),v.slider2Tracker.toFront().translate(d,b).tooltip(a,null,null,!0),oa=f);k&&(la=clearTimeout(la),la=setTimeout(function(){C.setScaleRange&&C.setScaleRange(na,oa)},100))};y=function(a,c){var d=0,b=d,h,f=this.isFirst,e=f?L:R;if(H){b=this._startY+c;0>=b&&(b=0);b>p&&(b=p);if(f?b>e.y:b<e.y)b=e.y;Ga(b-this.y)>=(this.snapPX||0)&&(h=!0)}else{d=this._startX+a;0>=d&&(d=0);d>M&&(d=M);if(f?d>e.x:d<e.x)d=e.x;Ga(d-this.x)>=
(this.snapPX||0)&&(h=!0)}h&&(fa(d,b,d-this.x,b-this.y,f),this.x=d,this.y=b)};Q=function(){var a=this.isFirst;this._startX=this.x;this._startY=this.y;this._scaleStart=na;this._scaleEnd=oa;ja.raiseEvent("LegendPointerDragStart",{pointerIndex:a?0:1,pointers:[{value:na},{value:oa}],legendPointerHeight:P,legendPointerWidth:U},C.logic.chartInstance)};A=function(){var a=this._scaleStart,c=this._scaleEnd;ja.raiseEvent("LegendPointerDragStop",{pointerIndex:this.isFirst?0:1,pointers:[{value:na},{value:oa}],
legendPointerHeight:P,legendPointerWidth:U},C.logic.chartInstance);a===na&&c===oa||ja.raiseEvent("LegendRangeUpdated",{previousMinValue:a,previousMaxValue:c,minValue:na,maxValue:oa},C.logic.chartInstance);delete this._scaleStart;delete this._scaleEnd};G=za(s);v.slider1=m.path(b).attr({path:N,fill:a,strokeWidth:1,stroke:D});v.slider1Effect=m.path(b).attr({path:Z,fill:"none",strokeWidth:1,stroke:da});ya&&(n-=.5*(S(30,d)-d),B-=.5*(S(40,h)-h),d=S(30,d),h=S(40,h));v.slider1Tracker=m.rect(b).attr({ishot:!0,
width:d,height:h,x:n,y:B,fill:Ia,stroke:"none"}).drag(y,Q,A,R,R,R).tooltip(G,null,null,!0).css(l);G=za(u);v.slider2=m.path(b).attr({path:N,fill:a,strokeWidth:1,stroke:D}).translate(L.x,L.y);v.slider2Effect=m.path(b).attr({path:Z,fill:"none",strokeWidth:1,stroke:da}).translate(L.x,L.y);v.slider2Tracker=m.rect(b).attr({ishot:!0,width:d,height:h,x:n,y:B,fill:Ia,stroke:"none"}).translate(L.x,L.y).css(l).drag(y,Q,A,L,L,L).tooltip(G,null,null,!0)}}}]);
FusionCharts.register("module",["private","modules.renderer.js-maps",function(){var U=this,da=U.window,C=U.hcLib,N=C.chartAPI,ja=da.document,b=C.pluck,ta=C.imprint,F=C.extend2,ra=C.parseTooltext,e=C.pluckNumber,Ba=C.pluckFontSize,va=C.HCstub,Da=F(C.defaultPaletteOptions,{foregroundcolor:"333333",foregroundalpha:"100",foregrounddarkcolor:"111111",foregrounddarkalpha:"100",foregroundlightcolor:"666666",foregroundlightalpha:"100",backgroundlightcolor:"FFFFFF",backgroundlightalpha:"100",backgroundlightangle:90,
backgroundlightratio:"",backgroundcolor:"FFFFCC",backgroundalpha:"100",backgrounddarkcolor:"ffcc66",backgrounddarkalpha:"100",backgrounddarkangle:270,backgrounddarkratio:"",shadow:1}),ha=C.setLineHeight,sa=C.getValidValue,ga=C.parseUnsafeString,ka=C.getFirstColor,Y=C.graphics.convertColor,X=C.hashify,ua=C.getDashStyle,Ea=da.navigator.userAgent,ia=/msie/i.test(Ea)&&!da.opera,wa=/AppleWebKit/.test(Ea),Fa=/stroke/ig,xa=C.hasSVG,pa=C.FC_CONFIG_STRING,$=da.Math,aa=$.min,qa=$.max,ya=$.ceil,z=C.toRaphaelColor,
S={left:"start",right:"end",center:"middle"},P=function(d,c){var b;d||(d={});for(b in c)d[b]=c[b];return d},Ga=function(d){var c=this.parentNode;if(!c)return!1;for(;c&&c!==ja.documentElement;){if(c===d)return!0;c=c.parentNode}return!1},V=function(d,c){var b=c?P(d.FCcolor,c):{FCcolor:d};b.toString=z;return b},Ha=function(d,c){var b,f;this.index=c;for(f in d)b=Da[d[f]],this[f]=b instanceof Array?b[c]:b},za={right:function(d,c){return c},left:function(d,c){return d-c},center:function(d,c){return 2*aa(c,
d-c)}},Ia={top:function(d,c){return c},middle:function(d,c){return 2*aa(c,d-c)},bottom:function(d,c){return d-c}},Aa=function(d,c,b,f){c=aa(d,c);d=.02*c;c*=.07;f=parseFloat(f);b=parseFloat(b);return isNaN(f)||isNaN(b)?isNaN(f)?isNaN(b)?{min:d,max:c}:{min:parseInt(b/10,10),max:b}:{min:f,max:10*f}:f<b?{min:f,max:b}:{min:b,max:f}},La=function(d){for(var c=d&&d.length||0,b={},f;c--;)f=d[c],void 0!==f.id&&(b[f.id.toLowerCase()]=f);return b},Ka=function(d,c){var b,f={};c=c||1;if(!d||"object"!==typeof d)return f;
for(b in d)Fa.test(b)||("stroke-width"===b?(f[b]=Number(d[b])/c,wa&&(f[b]=f[b]&&ya(f[b])||0)):f[b]=d[b]);return f},m=function(){this.hoverEntity&&(C.raiseEvent.apply(C,this.hoverEntityEventArgs),delete this.hoverEntityEventArgs,this.hoverEntity&&this.hoverEntityAttr&&this.hoverEntity.attr(this.hoverEntityAttr),delete this.hoverEntityAttr,this.hoverEntity=null)},l=function(d,c){var b=d&&d.length||!1,f=c||"id",a={},e;if(!d)return d;for(;b--;)e=d[b],void 0!==e[f]&&(a[e[f].toLowerCase()]=e);return a},
n=function(d,c,b,f){function a(){var a=this,c=a.entityPathMap,d=a.data,b=a.items,h,d=La(d);w=function(){for(var f,k=c[h];k;)b[h]?a=null:((f=d[h])?f.mapItem=b[h]=new B(h,ta(e(f),k),s,a.group):b[h]=new B(h,k,s,a.group),h=k.nextId&&k.nextId.toLowerCase(),k=void 0!==h&&c[h]||null);v.call(a)};y=function(){var h,f,k=r,w,g=0;for(w in l)if(!b[w]&&(h=c[w],(f=d[w])?f.mapItem=b[w]=new B(w,ta(e(f),h),s,a.group):b[w]=new B(w,h,s,a.group),g+=1,delete l[w],g===k))break;g<O?(O-=g,setTimeout(y,0)):v.call(a)};(h=H&&
H.toLowerCase())?w():y()}function e(a){delete a.outlines;delete a.label;delete a.shortlabel;delete a.labelposition;delete a.labelalignment;delete a.labelconnectors;return a}function g(){var a=this.items,c=[],d,b={id:"entityLabels",items:c};for(d in a)a[d].drawLabel(c);n.addGroup(b)}function k(){var a=this.items,c;for(c in a)a[c].destroy();delete this.entityPathMap;delete this.data;delete this.chartObj;delete this.items;delete this.group}function v(){x.entities.labelsOnTop&&g.call(this);this.ready=
!0;s.checkComplete()}if(b&&b.getEntityPaths()){var H=b.getFirstId(),O=b.entityCount,l=b.getEntityPaths(!0),s=c,n=c.mapAnnotations,x=s.options,r=ia?50:0,w,y,Q;this.entityPathMap=l;this.data=d;this.chartObj=s;this.items={};this.ready=!1;this.group=f||c.mapGroup;this.isReady=function(){return this.ready};a.call(this);this.drawLabels=g;this.destroy=k;this.init=a;this.initComplete=v;s.__canvasMouseOutListenerAdded||(s.__canvasMouseOutListenerAdded=!0,Q=c.paper.canvas,C.addEvent(Q,"mouseout",function(a){a=
a.originalEvent.relatedTarget||a.originalEvent.toElement;!ia||xa?a&&a.ownerSVGElement&&a.ownerSVGElement===Q||m.call(s):a===ja.documentElement||a===c.container||a===c.container.parentElement?m.call(s):Ga.call(a,Q)||m.call(s)}))}},B=function(d,c,h,f){function a(a){var c=this.featureConfig;return c&&"undefined"!==typeof c[a]?Boolean(c[a]):!1}function D(){var d;if(a.apply(this,["_ds"])){d=c.labels&&c.labels[0];if(!d)return;d=(p.useSNameInTooltip?d.shortText:d.text)+(isNaN(t)?"":p.tooltipSepChar+q)}else d=
(p.useSNameInTooltip?c.shortLabel:c.label)+(isNaN(t)?"":p.tooltipSepChar+q);return d}function g(a,d,h){d?h&&"undefined"!==typeof c.displayvalue?a=c.displayvalue:(a=b(p.includeNameInLabels?p.useShortName?a.shortText:a.text:""),p.includeValueInLabels&&!isNaN(t)&&(a=void 0===a?q:a+K+q)):a=a.text;return a}function k(a){for(var c=a&&a.length||0,d;c--;)d=a[c],this.connectorElem[c]=M.path(d,this.group).attr({transform:la.transform,stroke:Y(S,P),"shape-rendering":"crisp","stroke-width":N})}function v(){var a=
this.chart.paper,c=xa||!ia?"litepath":"path",d=this.eJSON.outlines,b=this.group,f,e,k;f=d&&d.length||0;if(this.hasFeature("_ds")){if(this.hasFeature("isDataEnabled"))if(na)for(;f--;)e=d[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=a[c](e,b).attr(la).tooltip(J).shadow(ka,h.shadowLayer);else for(;f--;)e=d[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=a[c](e,b).tooltip(J).attr(la);else if(na)for(;f--;)k=F(F({},la),Ka(d[f].style,ja)),e=d[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=
a[c](e,b).attr(k).tooltip(J).shadow(ka,h.shadowLayer);else for(;f--;)k=F(F({},la),Ka(d[f].style,ja)),e=d[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=a[c](e,b).tooltip(J).attr(k);this.hasFeature("isDataEnabled")&&this.addMouseGestures()}else{if(na)for(;f--;)e=d[f],this.svgElems[f]={},this.svgElems[f].graphic=a[c](e,b).attr(la).tooltip(J).shadow(ka,h.shadowLayer);else for(;f--;)e=d[f],this.svgElems[f]={},this.svgElems[f].graphic=a[c](e,b).tooltip(J).attr(la);this.addMouseGestures()}return this}
function H(a){var c=this.chart;c.hoverEntityEventArgs=["entityrollout",this.eventArgs,c.fusionCharts,[c.fusionCharts.id,"rollOut",this.legacyEventArgs],a];ha&&this.isVisible&&(c.hoverEntity=this,c.hoverEntityAttr=this.revertAttr,this.attr(this.hoverAttr));C.raiseEvent("entityrollover",this.eventArgs,c.fusionCharts,[c.fusionCharts.id,"rollOver",this.legacyEventArgs],a)}function O(a,c,d){var b=this,f=b.chart,e=a.labelPosition,k=a.labelAlignment,D=b.svgElems[0]&&b.svgElems[0].graphic,p=a.style,w,y,v,
A,t;e?(D=e[0],e=e[1]):(e=D.getBBox(),D=e.x+e.width/2,e=e.y+e.height/2);k?(w=k[0],k=k[1],"right"===w?D-=W:"left"===w&&(D+=W),"top"===k?e-=W:"bottom"===k&&(e+=W)):(w="center",k="middle");y=aa;v=parseFloat(Z)/h.sFactor;A=X;t=R;!c&&p&&(p.color&&(y=p.color),p["font-size"]&&(v=parseFloat(p["font-size"])/h.sFactor),p["font-family"]&&(A=p["font-family"]),void 0!==p["font-weight"]&&(t="bold"===p["font-weight"]));return{x:D.toString(),y:e.toString(),wrapwidth:za[w](sa,D+ua)-W,wrapheight:Ia[k](ta,e+va)-W,wrap:1,
type:"text",align:w,valign:k,text:g(a,c,d),tooltext:J,link:L,bgcolor:"",bordercolor:"",fillcolor:y,fontsize:v,font:A,bold:t,onclick:function(a){U.raiseEvent("entityclick",b.eventArgs,h.fusionCharts,a)},onmouseover:function(a){b!==f.hoverEntity&&(m.call(b.chart),H.call(b,a))},ontouchstart:function(a){b!==f.hoverEntity&&(m.call(b.chart),H.call(b,a))}}}function l(a){var c=this.eJSON,d=this.hasFeature("isDataEnabled"),b,f;if(!Ja)return null;if(this.hasFeature("_ds"))for(f=(c=c.labels)&&c.length||0;f--;)b=
c[f],a.push(this.getLabelObject(b,d,!f)),b.labelConnectors&&this.drawLabelConnectors(b.labelConnectors);else b={text:c.label,shortText:c.shortLabel,labelAlignment:c.labelAlignment,labelPosition:c.labelPosition},a.push(this.getLabelObject(b,!0,!0)),c.labelConnectors&&this.drawLabelConnectors(c.labelConnectors)}function s(a,c){var d=this.svgElems,b;for(b in d)d[b].graphic&&d[b].graphic.attr(a,c)}function n(){var a=this.svgElems,c;this.isVisible=!0;for(c in a)a[c].graphic&&a[c].graphic.attr(la)}function x(){var a=
this.svgElems,c=this.chart,d;this.isVisible=!1;c.hoverEntity===this&&m.call(c);for(d in a)a[d].graphic&&a[d].graphic.attr(oa)}function r(a){U.raiseEvent("entityclick",this.node.__entity.eventArgs,h.fusionCharts,a);void 0!==L&&h.logic.linkClickFN.call({link:L})}function w(a){var c=this.node.__entity,d=c.chart;c!==d.hoverEntity&&(m.call(d),H.call(c,a))}function y(){var a=this.eJSON,c=this.svgElems,d;this.eventArgs={value:this.value,label:a.label,shortLabel:a.shortLabel,originalId:this.originalId||this.id,
id:this.id};this.legacyEventArgs={value:this.value,lName:a.label,sName:a.shortLabel,id:this.originalId||this.id};ha&&(this.hoverAttr={fill:this.hoverColor.toString()},this.revertAttr={fill:this.fillColor.toString()},fa!==ca&&(this.hoverAttr["stroke-width"]=fa,this.revertAttr["stroke-width"]=ca));if(!isNaN(t)||da)for(d in c)void 0!==L&&c[d].graphic.css({cursor:"pointer",_cursor:"hand"}),c[d].graphic.node.__entity=this,c[d].graphic.click(r).hover(w)}function Q(){var a=this.svgElems,c=this.connectorElem,
d;for(d in a)a[d].remove&&a[d].remove();for(d in c)c[d].destroy&&c[d].destroy();delete this.value;delete this.formattedValue;delete this.toolText;delete this.fillColor;delete this.hoverColor;delete this.chart;delete this.group;delete this.id;delete this.isVisible;delete this.svgElems;delete this.connectorElem;delete this.renderer;delete this.options}if(c&&h&&void 0!==d){this.chart=h;this.eJSON=c;this.group=f;this.id=d;this.originalId=c.origId;this.isVisible=!0;this.svgElems={};this.connectorElem=
{};this.featureConfig=c.options;"object"===typeof this.featureConfig&&(this.featureConfig._ds=!0);var A=h.options,M=h.paper,p=A.entities,G=p.dataLabels.style;d=c.cleanValue;var t=null===d?void 0:d,q=this.formattedValue=c.formattedValue||"",K=p.labelSepChar,E=e(c.showtooltip,p.showTooltip);d=D.call(this);f={formattedValue:q,sName:c.shortLabel,lName:c.label};var J=E?ga(b(ra(b(c.tooltext,p.tooltext,d),[1,2,7,38,39],f,c))):"",u,B,z,Ja=e(c.showlabel,p.showLabels);f=b(c.bordercolor,p.borderColor);d=b(c.borderalpha,
p.borderAlpha);var E=1===p.scaleBorder,ca=e(c.borderthickness,p.borderThickness),S=b(c.labelconnectorcolor,p.connectorColor),P=b(c.labelconnectoralpha,p.connectorAlpha),N=e(c.labelconnectorthickness,p.connectorThickness),X=b(c.font,G.fontFamily),Z=e(parseInt(c.fontsize,10),parseInt(G.fontSize,10)),aa=b(c.fontcolor,G.color),W=e(c.labelpadding,p.labelPadding),da=p.hoverOnNull,ha=e(c.showhovereffect,c.usehovercolor,da?p.showHoverEffect:isNaN(t)?0:p.showHoverEffect),fa=e(c.borderhoverthickness,c.hoverborderthickness,
p.hoverBorderThickness),R=e(c.fontbold,0),L=c.link,na=p.shadow;z=!ia||xa;G=h.sFactor/p.baseScaleFactor;u=h.strokeWidth;B=(z?p.baseScaleFactor:1)*u;var oa=p.hiddenEntityFillObject||(p.hiddenEntityFillObject={fill:V({color:p.hiddenEntityColor,alpha:p.hiddenEntityAlpha}).toString()}),ja,la,ka,A=A[pa],sa=A._labelBaseWidth,ta=A._labelBaseHeight,ua=A._labelXOffset,va=A._labelYOffset;z?(ca=E?ca*B:ca/G,N/=G,ja=E?G:h.sFactor,wa&&(ca=ca&&ya(ca)||0,N=N&&ya(N)||0)):(ca=E?ca*u:ca,ja=E?h.scaleFactor:p.baseScaleFactor);
p.showHiddenEntityBorder||(oa["stroke-width"]=0);void 0===fa?fa=ca:z?(fa=E?ca*B:fa/G,wa&&(fa=fa&&ya(fa)||0)):fa=E?fa*u:fa;!p.showNullEntityBorder&&isNaN(t)&&(ca=0);void 0!==b(c.color,c.alpha,c.angle,c.ratio)?(E=b(c.color,p.fillColor),A=b(c.alpha,p.fillAlpha),u=b(c.angle,p.fillAngle),B=b(c.ratio,p.fillRatio),z=V({color:E,alpha:A,angle:u,ratio:B})):(p.fillColorObject||(p.fillColorObject=V({color:b(p.fillColor),alpha:b(p.fillAlpha),angle:b(p.fillAngle),ratio:b(p.fillRatio)})),p.emptyColorObject||(p.emptyColorObject=
V({color:b(p.nullEntityColor),alpha:b(p.nullEntityAlpha),angle:b(p.nullEntityAngle),ratio:b(p.nullEntityRatio)})),z=isNaN(t)?p.emptyColorObject:p.fillColorObject,E=z.FCcolor.color,A=z.FCcolor.alpha,u=z.FCcolor.angle,B=z.FCcolor.ratio);""===J&&(E=0);la={transform:xa||!ia?"":h.transformStr,stroke:Y(f,d),"stroke-width":ca,fill:(this.fillColor=z).toString()};f=A.split(",");ca&&f.push(d);ka={scalefactor:[G,h.sFactor],opacity:qa.apply($,f)/100};ha&&(void 0!==b(c.fillhovercolor,c.fillhoveralpha,c.fillhoverangle,
c.fillhoverratio,c.hoverfillcolor,c.hoverfillalpha,c.hoverfillratio,c.hoverfillangle)?(E=b(c.fillhovercolor,c.hoverfillcolor,p.hoverFillColor),A=b(c.fillhoveralpha,c.hoverfillalpha,p.hoverFillAlpha),u=b(c.fillhoverangle,c.hoverfillangle,p.hoverFillAngle),B=b(c.fillhoverratio,c.hoverfillratio,p.hoverFillRatio),d=V({color:E,alpha:A,angle:u,ratio:B})):(p.hoverColorObject||(p.hoverColorObject=V({color:p.hoverFillColor,alpha:p.hoverFillAlpha,angle:p.hoverFillAngle,ratio:p.hoverFillRatio})),d=p.hoverColorObject),
this.hoverColor=d);this.value=t;this.addMouseGestures=y;this.attr=s;this.draw=v;this.drawLabel=l;this.getLabelObject=O;this.destroy=Q;this.show=n;this.hide=x;this.hasFeature=a;this.drawLabelConnectors=k;v.call(this);p.hideNullEntities&&void 0===t&&this.hide()}},q=function(d,c,b,f){this.id=d;this.definition=c;this.application=b;this.rapi=f;this.markerLabel=this.markerShape=this.label=this.options=this.value=this.hasValue=null;this.drawOptions={shape:null,label:null};this.drawComplete=!1;if(d=f.options)this._conf=
d[pa];this.init()},g=function(d,c,b,f){this.options=d;this.from=c;this.to=b;this.api=f;if(d=f.options)this._conf=d[pa]},u=function(d,c){function h(){var d=H.definition,b=l(d)||{},f=l(H.application)||{},h=H.shapes,k,p;if(d&&d.length){if(h&&h.length)for(d=h.length;d;d-=1)if(k=h[d-1],p=k.id.toLowerCase())a[p]=k;for(p in b){k=b[p];h=new q(p,k,f[p],c);if(d=h.getShapeId())h.shapeObj=a[d];e[p]=h}}}function f(){var d=H.items,b=H.shapes,f,h,k,p;if(d&&d.length){if(b&&b.length)for(f=b.length;f;f-=1)if(h=b[f-
1],p=h.id.toLowerCase())a[p]=h;for(f=d.length;f--;)if(h=d[f],p=h.id&&h.id.toLowerCase())void 0!==h.value&&""!==h.value&&parseFloat(h.value),h.mapItem=b=new q(p,h,null,c),k=b.getShapeId(),h.__hideMarker&&(b._isHidden=!0),k&&(b.shapeObj=a[k]),e[p]=b}}var a={},e={},ea=[],k=c.options.markers,v=c.options.connectors,H=d,m=c.mapAnnotations,n,s,ba,x,r=[];this.items=e;(function(){var a=q.prototype,d=g.prototype,f;f=Boolean(b(k.hoverFillColor,k.hoverFillAlpha,k.hoverFillAngle,k.hoverFillRatio,k.hoverBorderThickness,
k.hoverBorderColor,k.hoverBorderAlpha));a.markerFont=k.dataLabels.style.fontFamily;a.markerFontSize=k.dataLabels.style.fontSize;a.markerFontColor=k.dataLabels.style.fontColor;a.showMarkerTooltip=k.showTooltip;a.showHoverEffect=f;a.tooltext=k.tooltext;a.showMarkerLabels=k.showLabels;a.markerLabelPadding=k.labelPadding;a.labelWrapWidth=k.labelWrapWidth;a.labelWrapHeight=k.labelWrapHeight;a.labelSepChar=k.labelSepChar;a.tooltipSepChar=k.tooltipSepChar;a.fillColor=k.fillColor;a.fillAlpha=k.fillAlpha;
a.fillRatio=k.fillRatio;a.fillAngle=k.fillAngle;a.hoverFillColor=k.hoverFillColor;a.hoverFillAlpha=k.hoverFillAlpha;a.hoverFillRatio=k.hoverFillRatio;a.hoverFillAngle=k.hoverFillAngle;a.startAngle=k.startAngle;a.shapeId=k.shapeId;a.borderThickness=k.borderThickness;a.borderColor=k.borderColor;a.borderAlpha=k.borderAlpha;a.hoverBorderThickness=k.hoverBorderThickness;a.hoverBorderColor=k.hoverBorderColor;a.hoverBorderAlpha=k.hoverBorderAlpha;a.markerRadius=k.radius;a.autoScale=k.autoScale?c.sFactor:
1;a.shadow=k.shadow;a.applyAll=k.applyAll;a.dataEnabled=k.dataEnabled;a.valueToRadius=k.valueToRadius;a=Boolean(b(v.hoverthickness,v.hovercolor,v.hoveralpha));d.showHoverEffect=a;d.showTooltip=v.showTooltip;d.tooltext=v.tooltext;d.thickness=v.thickness;d.color=v.color;d.alpha=v.alpha;d.hoverThickness=v.hoverthickness;d.hoverColor=v.hovercolor;d.hoverAlpha=v.hoveralpha;d.dashed=v.dashed;d.dashlen=v.dashLen;d.dashgap=v.dashGap;d.font=v.font;d.fontsize=v.fontSize;d.fontcolor=v.fontColor;d.bgcolor=v.labelBgColor;
d.bordercolor=v.labelBorderColor;d.shadow=v.shadow;d.hideOpen=v.hideOpen})();k.dataEnabled?f():h();(function(){var d=e,c=[],b,f,h,k;n=m.addGroup({fillalpha:"100",items:c});s=m.addGroup({items:[]});for(k in d)b=null,f=d[k],h=f.getShapeId(),f&&!f._isHidden&&(h&&(f.shapeObj=a[h]),b=f.draw()),b&&(f._annotationIndex=c.length,f.markerShape=b.markerShape&&n.addItem(b.markerShape),f.markerLabel=b.markerLabel&&s.addItem(b.markerLabel))})();(function(){var a=v.showLabels,d=H.connectors,b=d&&d.length,f=[],h=
[],k,m,t;if(b)for(r.push({id:"connectorLabels",fillalpha:"100",items:h}),r.push({id:"connectors",fillalpha:"100",items:f});b--;)if(t=d[b],t.from&&t.to&&(k=e[t.from.toLowerCase()],m=e[t.to.toLowerCase()],k&&m&&(!v.hideOpen||!k._isHidden&&!m._isHidden)&&(ea.push(m=new g(t,k,m,c)),m.connectJSON=k=m.computeConnectorJSON())))f.push(k),k.label&&a&&h.push(m.getLabelJSON())})();x=r.length;for(c.internalAnnotations={};x--;)ba=r.shift(),ba.id?c.internalAnnotations[ba.id]=m.addGroup(ba):m.addGroup(ba);this.addMarkerItem=
function(d){var b,f;if((b=d.id.toLowerCase())&&!e[b]){delete d.value;d=new q(b,d,null,c);if(f=d.getShapeId())d.shapeObj=a[f];e[b]=d;b=d.draw();n&&s&&(d.markerShape=b.markerShape&&n.addItem(b.markerShape,!0),d.markerLabel=b.markerLabel&&s.addItem(b.markerLabel,!0))}}};g.prototype={constructor:g,computeConnectorJSON:function(){var d=this.api,c=this.options,h=this.from,f=this.to,a=c.link,D=c.label,g=e(c.showtooltip,this.showTooltip),k=g?b(c.tooltext,this.tooltext):"",v=b(c.thickness,this.thickness),
H=b(c.color,this.color),l=b(c.alpha,this.alpha),n=e(c.showhovereffect,this.showHoverEffect),s=b(c.hovercolor,this.hoverColor,H),q=b(c.hoveralpha,this.hoverAlpha,l),x=b(c.hoverthickness,this.hoverThickness,v),r=b(c.dashed,this.dashed),w=e(c.dashlen,this.dashlen),y=e(c.dashgap,this.dashgap),u;k&&(this.tooltext=k=ga(ra(k,[3,40,41,42,43],{label:D,fromId:h.definition.id,toId:f.definition.id,fromLabel:h.definition.label,toLabel:f.definition.label},c)));return h&&f?(u={fromMarkerId:h.id,toMarkerId:f.id,
label:D},F({type:"line"},{x:h.definition.x,y:h.definition.y,tox:f.definition.x,toy:f.definition.y,dashed:r,dashlen:w,dashgap:y,link:a,tooltext:g?k:"",thickness:v,color:H,alpha:l,label:D,showshadow:this.shadow,_hovereffect:n,_defaultattrs:{stroke:V({color:H,alpha:l}).toString(),"stroke-width":v},_hoverattrs:{stroke:V({color:s,alpha:q}).toString(),"stroke-width":x},onmouseover:function(a){var c=a.data,b=c.wrapper;b&&c.options._hovereffect&&(m.call(d),b.attr(c.options._hoverattrs));U.raiseEvent("connectorrollover",
u,d.fusionCharts,a)},onmouseout:function(a){var c=a.data,b=c.wrapper;b&&c.options._hovereffect&&b.attr(c.options._defaultattrs);U.raiseEvent("connectorrollout",u,d.fusionCharts,a)},onclick:function(a){U.raiseEvent("connectorClick",u,d.fusionCharts,a)}})):null},getLabelJSON:function(){var d=this.connectJSON;return F({type:"text"},{x:((Number(d.x)+Number(d.tox))/2).toString(),y:((Number(d.y)+Number(d.toy))/2).toString(),text:d.label,align:"center",valign:"middle",font:this.font,fontsize:this.fontsize/
this.api.sFactor,fillcolor:this.fontcolor,bgcolor:this.bgcolor,bordercolor:this.bordercolor,tooltext:this.tooltext})}};q.prototype={constructor:q,init:function(){var d;d=this.options=F({},this.definition);this.dataEnabled?isNaN(d.value)||""===d.value||(this.value=parseFloat(d.value),this.hasValue=!0):this.applyAll?this.options=F(d,this.application):this.application&&(this.options=F(d,this.application))},getShapeId:function(){return this.options.shapeid&&this.options.shapeid.toLowerCase()||this.shapeId},
getLabelOptions:function(d,c,b,f,a){var e,g=d&&d.toLowerCase();this.getLabelAlignment[g]||(g="center");d=Number(b.x);e=Number(b.y);b=void 0===f||void 0===a?b.radius||0:/^(top|bottom)$/ig.test(g)&&.5*a||/^(left|right)$/ig.test(g)&&.5*f||0;b=Number(b)+Number(c);return this.getLabelAlignment[g](d,e,b)},draw:function(){if(this.options){var d=this.rapi,c=this._conf,h=d.translateX,f=d.translateY,a=this.options,D=this.getShapeId(),g=a.scale||1,k=a.label||"",v=(a.labelpos||"top").toLowerCase(),H=void 0===
a.formattedValue?void 0:a.formattedValue,l=a.tooltext||this.tooltext,n=e(a.radius,this.markerRadius)*g*this.autoScale||1E-4,s=b(a.fillcolor,a.color,this.fillColor),q=b(a.fillalpha,a.alpha,this.fillAlpha),x=b(a.fillratio,this.fillRatio),r=b(a.fillangle,this.fillAngle),w=e(a.borderthickness,this.borderThickness),y=b(a.bordercolor,this.borderColor),u=b(a.borderalpha,this.borderAlpha),A=a.labelpadding||this.markerLabelPadding;if(D){l=l?ga(ra(l,[1,2,3],{formattedValue:H,label:k},a)):H?k+this.tooltipSepChar+
H:k;void 0!==H&&null!==H?k=k+this.labelSepChar+H:isNaN(g)?g=1:0>g?g=0:5<g&&(g=5);a={x:a.x.toString(),y:a.y.toString(),fillcolor:s,fillalpha:q,fillratio:x,fillangle:r,borderthickness:w,bordercolor:y,borderalpha:u,hovereffect:b(a.showhovereffect,this.showHoverEffect),radius:n.toString(),tooltext:this.showMarkerTooltip?l:"",link:a.link,showshadow:e(a.showshadow,this.shadow),_markerLabel:k,_markerId:a.id,id:(a.id+"").toLowerCase(),onmouseover:function(a){var c=a.data,b=c.options,e=c.bounds,k=b._markerEventArgs;
(c=c.wrapper)&&b.hovereffect&&(m.call(d),c.attr(b._hoverattrs));k||(k=b._markerEventArgs={x:e.x1/e.xs,y:e.y1/e.ys,scaledX:e.x1,scaledY:e.y1,chartX:h+e.x1,chartY:f+e.y1,id:b._markerId,label:b._markerLabel});U.raiseEvent("markerRollOver",k,d.fusionCharts,a)},onmouseout:function(a){var c=a.data,b=c.wrapper;b&&c.options.hovereffect&&b.attr(c.options._defaultattrs);U.raiseEvent("markerRollOut",c.options._markerEventArgs,d.fusionCharts,a)},onclick:function(a){U.raiseEvent("markerClick",a.data.options._markerEventArgs,
d.fusionCharts,a)}};"triangle"===D?F(a,{type:"polygon",sides:3,startangle:this.startAngle}):"diamond"===D?F(a,{type:"polygon",sides:4,startangle:this.startAngle}):"arc"===D?F(a,{type:"arc",startangle:0,endangle:360,innerradius:.6*n}):"circle"===D?a.type="circle":(A=this.getShapeArgs(),this.dataEnabled&&this.valueToRadius&&void 0!==a.radius?delete A.radius:(!A.radius&&(A.radius=this.markerRadius),A.radius=A.radius*g*this.autoScale),F(a,A));F(a,{hoverfillcolor:b(a.fillhovercolor,this.hoverFillColor,
a.fillcolor),hoverfillalpha:b(a.fillhoveralpha,this.hoverFillAlpha,a.fillalpha),hoverfillratio:b(a.fillhoverratio,this.hoverFillRatio,a.fillratio),hoverfillangle:b(a.fillhoverangle,this.hoverFillAngle,a.fillangle),hoverborderthickness:e(a.borderhoverthickness,this.hoverBorderThickness,a.borderthickness),hoverbordercolor:b(a.borderhovercolor,this.hoverBorderColor,a.bordercolor),hoverborderalpha:b(a.borderhoveralpha,this.hoverBorderAlpha,a.borderalpha)});a._defaultattrs={fill:V({alpha:a.fillalpha,color:a.fillcolor,
angle:a.fillangle,ratio:a.fillratio}).toString(),"stroke-width":"0"!==a.showborder?a.borderthickness:0,stroke:Y(a.bordercolor,a.borderalpha)};a._hoverattrs={fill:V({alpha:a.hoverfillalpha,color:a.hoverfillcolor,angle:a.hoverfillangle,ratio:a.hoverfillratio}).toString(),"stroke-width":"0"!==a.showborder?a.hoverborderthickness:0,stroke:Y(a.hoverbordercolor,a.hoverborderalpha)};"image"===a.type&&(a.borderthickness=a.borderthickness||0,a.onload=function(a){var c=this.options,b=a.width;a=a.height;var f=
(Number(c.x)-b/(2*d.sFactor))*d.sFactor,c=(Number(c.y)-a/(2*d.sFactor))*d.sFactor,h;if(b&&a)for(h in{wrapper:1,tracker:1})this[h]&&this[h].attr({x:f,y:c,width:b,height:a})});this.drawOptions.shape=a;if(!this.showMarkerLabels)return{markerShape:a};A=a.labelpadding||this.markerLabelPadding;g=this.getLabelOptions(v,A,a);v=g.align;D=g.valign;l=c._labelBaseWidth;H=c._labelBaseHeight;n=c._labelXOffset;c=c._labelYOffset;l=this.labelWrapWidth?this.labelWrapWidth:this.getWrapWidth[v](l,Number(g.x)+n);c=this.labelWrapHeight?
this.labelWrapHeight:this.getWrapHeight[D](H,Number(g.y)+c);l>A&&(l-=A);c>A&&(c-=A);this.drawOptions.label=F({type:"text"},{text:k,tooltext:a.tooltext,x:g.x,y:g.y,align:v,valign:g.valign,wrap:1,wrapwidth:l,wrapheight:c,fontsize:this.markerFontSize/d.sFactor,font:this.markerFont,fillcolor:this.markerFontColor});return{markerShape:a,markerLabel:this.drawOptions.label}}}},show:function(){this.setMarkerVisibility(!0)},hide:function(){this.setMarkerVisibility(!1)},setMarkerVisibility:function(d){var c=
this.rapi&&this.rapi.internalAnnotations;if(c=(c=c&&c.markers)&&c.items)if(c=c[this._annotationIndex])this._origFill||(this._origFill=V({alpha:c.fillAlpha,color:c.fillColor,angle:c.fillAngle,ratio:c.fillRatio}),this._hideFill=V({alpha:"0",color:c.fillColor,angle:c.fillAngle,ratio:c.fillRatio})),d?c.wrapper.attr({fill:this._origFill}):c.wrapper.attr({fill:this._hideFill})},getShapeArgs:function(){var d=F({},this.shapeObj),c;return d?("polygon"===d.type?3>d.sides?d.type="circle":d.startangle=this.startAngle:
"arc"===d.type&&(c=(d.radius||this.markerRadius)*this.autoScale,d.radius=c,d.innerradius=d.innerradius&&d.innerradius*this.autoScale||.6*c),d):null},destroy:function(){var d=this.markerShape,c=this.markerLabel,b;d&&d.destroy();c&&c.destroy();for(b in this)delete this[b]},getLabelAlignment:{top:function(d,c,b){return{x:d.toString(),y:(c-b).toString(),align:"center",valign:"top"}},left:function(d,c,b){return{x:(d-b).toString(),y:c.toString(),align:"right",valign:"middle"}},right:function(d,c,b){return{x:(d+
b).toString(),y:c.toString(),align:"left",valign:"middle"}},bottom:function(d,c,b){return{x:d.toString(),y:(c+b).toString(),align:"center",valign:"bottom"}},center:function(d,c){return{x:d.toString(),y:c.toString(),align:"center",valign:"middle"}}},getWrapWidth:{right:function(d,c){return c},left:function(d,c){return d-c},center:function(d,c){return 2*aa(c,d-c)}},getWrapHeight:{top:function(d,c){return c},middle:function(d,c){return 2*aa(c,d-c)},bottom:function(d,c){return d-c}}};P(C.eventList,{entityrollover:"FC_Event",
entityrollout:"FC_Event"});N("geo",{name:"geo",friendlyName:"Map",revision:1,creditLabel:!1,standaloneInit:!1,annotationInteractionEvents:!1,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,baseWidth:400,baseHeight:300,baseScaleFactor:1,defaultSeriesType:"geo",rendererId:"maps",entities:{},draw:function(d,c){var b=this.renderer,f=this.chartInstance;b||(b=this.renderer=new N("renderer."+this.rendererId));this.updateDefaultAnnotations();f.addEventListener("internal.mapdrawingcomplete",
function(a,d){c&&c.apply(this,[d.renderer]);a.detachHandler()});return b.init(this,d,function(a){a.checkComplete()})},chart:function(d,c){F(this.dataObj.chart,{charttopmargin:this.dataObj.chart.maptopmargin,chartrightmargin:this.dataObj.chart.maprightmargin,chartbottommargin:this.dataObj.chart.mapbottommargin,chartleftmargin:this.dataObj.chart.mapleftmargin,animation:this.dataObj.chart.animation||"0"});var h=this.dataObj,f=va(h,d,c,this),a=h.chart,g=h.markers,m=f.chart,k=f[pa],v=m.useRoundEdges=1===
e(a.useroundedges),l=v?1:0,v=v?0:1,n=m.use3DLighting=1===e(a.use3dlighting,1),q=F({},f.tooltip.style),s=new Ha(this.colorPaletteMap,(0<a.palette&&6>a.palette?a.palette:e(this.paletteIndex,1))-1),u=b(a.basefont,"Verdana,sans"),x=Ba(a.basefontsize,10),r=b(a.basefontcolor,s.basefontcolor),w=Ba(a.outcnvbasefontsize,x),y=b(a.outcnvbasefont,u),B=w+"px",A=X(b(a.outcnvbasefontcolor,r)),z=b(a.bgcolor,a.canvasbgcolor,s.canvasbgcolor),p=b(a.bgalpha,a.canvasbgalpha,s.canvasbgalpha),G=e(a.usevaluesformarkers,
h.markers&&h.markers.items&&h.markers.items.length,!(h.markers&&h.markers.application&&h.markers.application.length&&h.markers.definition&&h.markers.definition.length)),t,I,K,E,J,N,P,x=x+"px",r=X(r);this.realtimeEnabled&&this.postHCJSONCreation&&this.postHCJSONCreation.call(this,f);m.events.click=this.linkClickFN;k.numberFormatter=this.numberFormatter;F(k,{width:d,height:c,showTooltip:e(a.showtooltip,this.showtooltip,1),showHoverEffect:e(a.showhovereffect,1),tooltipSepChar:b(a.tooltipsepchar,", "),
showValues:e(a.showvalues,this.showValues,1),showCanvasBG:b(a.showcanvasbg,1),useValuesForMarkers:G,adjustViewPortForMarkers:e(a.adjustviewportformarkers,G),flatScrollBars:e(a.flatscrollbars,0),scrollBar3DLighting:e(a.scrollbar3dlighting,1),outCanvasStyle:{fontFamily:y,color:A,fontSize:B},inCanvasStyle:{fontFamily:u,fontSize:x,color:r}});ha(k.outCanvasStyle);t=ha(k.inCanvasStyle);k.trendStyle=k.outCanvasStyle;"0"==k.showCanvasBG&&(p="0");I=b(a.entitybordercolor,a.bordercolor,s.plotbordercolor);K=
b(a.entityfillcolor,a.fillcolor,s.plotfillcolor);E=b(a.entityfillalpha,a.fillalpha,s.plotfillalpha);J=b(a.entityfillratio,a.fillratio,s.plotfillratio);N=b(a.entityfillangle,a.fillangle,s.plotfillangle);P=b(a.nullentityfillcolor,a.nullentitycolor,K);G=e(a.showcanvasborder,v)?e(a.canvasborderthickness,1):0;F(f,{chart:{emulateFlashGutter:e(a._emulateflashgutter,1),defaultSeriesType:this.defaultSeriesType,paletteIndex:s.index,borderRadius:e(a.canvasborderradius,0),borderColor:Y(b(a.canvasbordercolor,
s.canvasbordercolor),b(a.canvasborderalpha,s.canvasborderalpha)),borderWidth:G,borderDashStyle:e(a.canvasborderdashed,0)?ua(e(a.canvasborderdashlen,4),e(a.canvasborderdashgap,2),G):void 0,backgroundColor:V({color:z,alpha:p,angle:b(a.bgangle,a.canvasbgangle,s.canvasbgangle),ratio:b(a.bgratio,a.canvasbgratio,s.canvasbgratio)}),plotBorderColor:"#ffffff",plotBorderWidth:0,plotBackgroundColor:V({color:"#ffffff",alpha:0}),bgSWF:b(a.bgimage,a.bgswf),bgSWFAlpha:e(a.bgimagealpha,a.bgswfalpha,100),bgImageScale:e(a.bgimagescale,
100),bgImageDisplayMode:b(a.bgimagedisplaymode,"none").toLowerCase(),logoURL:sa(a.logourl),logoPosition:b(a.logoposition,"tl").toLowerCase(),logoAlpha:e(a.logoalpha,100),logoLink:sa(a.logolink),logoScale:e(a.logoscale,100),logoLeftMargin:e(a.logoleftmargin,0),logoTopMargin:e(a.logotopmargin,0),toolbar:function(){var f={button:{}},h=f.button,k;h.scale=e(a.toolbarbuttonscale,1.15);h.width=e(a.toolbarbuttonwidth,15);h.height=e(a.toolbarbuttonheight,15);h.radius=e(a.toolbarbuttonradius,2);h.spacing=e(a.toolbarbuttonspacing,
5);h.fill=Y(b(a.toolbarbuttoncolor,"ffffff"));h.labelFill=Y(b(a.toolbarlabelcolor,"cccccc"));h.symbolFill=Y(b(a.toolbarsymbolcolor,"ffffff"));h.hoverFill=Y(b(a.toolbarbuttonhovercolor,"ffffff"));h.stroke=Y(b(a.toolbarbuttonbordercolor,"bbbbbb"));h.symbolStroke=Y(b(a.toolbarsymbolbordercolor,"9a9a9a"));h.strokeWidth=e(a.toolbarbuttonborderthickness,1);h.symbolStrokeWidth=e(a.toolbarsymbolborderthickness,1);k=h.symbolPadding=e(a.toolbarsymbolpadding,5);h.symbolHPadding=e(a.toolbarsymbolhpadding,k);
h.symbolVPadding=e(a.toolbarsymbolvpadding,k);k=f.position=b(a.toolbarposition,"tr").toLowerCase();switch(k){case "tr":case "tl":case "br":case "bl":break;default:k="tr"}h=f.hAlign="left"===(""+a.toolbarhalign).toLowerCase()?"l":k.charAt(1);k=f.vAlign="bottom"===(""+a.toolbarvalign).toLowerCase()?"b":k.charAt(0);f.hDirection=e(a.toolbarhdirection,"r"===h?-1:1);f.vDirection=e(a.toolbarvdirection,"b"===k?-1:1);f.vMargin=e(a.toolbarvmargin,6);f.hMargin=e(a.toolbarhmargin,10);f.x=e(a.toolbarx,"l"===h?
0:d);f.y=e(a.toolbary,"t"===k?0:c);return f}()},title:{text:ga(a.caption),offsetX:Number(a.captionxshift),offsetY:Number(a.captionyshift),position:b(a.captionposition,void 0!==a.captionxshift||void 0!==a.captionyshift?"top left":"top"),padding:e(a.captionpadding,10),style:{fontFamily:b(a.captionfontfamily,y),color:b(a.captionfontcolor,A).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:e(a.captionfontsize,w+3)+"px",fontWeight:0===e(a.captionfontbold)?"normal":"bold"}},subtitle:{text:ga(a.subcaption),style:{fontFamily:b(a.subcaptionfontfamily,
a.captionfontfamily,y),color:b(a.subcaptionfontcolor,a.captionfontcolor,A).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:e(a.subcaptionfontsize,e(qa(a.captionfontsize-3,1),w))+"px",fontWeight:0===e(a.subcaptionfontbold)?"normal":"bold"}},orphanStyles:{defaultStyle:{style:F({},k.inCanvasStyle)}},tooltip:{enabled:0!==k.showTooltip,style:{fontFamily:u,fontSize:x,lineHeight:t,color:r,padding:e(a.tooltippadding,this.tooltippadding,3)+"px",backgroundColor:Y(b(q.backgroundColor,a.tooltipbgcolor,s.tooltipbgcolor),
b(a.tooltipbgalpha,"100")),borderColor:Y(b(q.borderColor,a.tooltipbordercolor,s.tooltipbordercolor),b(a.tooltipborderalpha,"100")),borderWidth:e(a.tooltipborderthickness,v)+"px",borderRadius:e(a.tooltipborderradius,l+1)+"px"},constrain:e(a.constraintooltip,1),shadow:e(a.showtooltipshadow,a.showshadow,1)?{enabled:!0,opacity:qa(e(a.tooltipbgalpha,100),e(a.tooltipborderalpha,100))/100}:!1},legend:{itemStyle:{fontFamily:b(a.legenditemfont,y),fontSize:e(a.legenditemfontsize,w)+"px",color:X(b(a.legenditemfontcolor,
A)),fontWeight:e(a.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:y,fontSize:B,color:X(b(a.legenditemhiddencolor,A))},itemHoverStyle:{color:X(b(a.legenditemhoverfontcolor,a.legenditemfontcolor,A))},enabled:e(a.showlegend,1),title:{text:ga(a.legendcaption),style:{fontFamily:b(a.legendcaptionfont,y),fontSize:e(a.legendcaptionfontsize,w)+"px",color:X(b(a.legendcaptionfontcolor,A)),fontWeight:e(a.legendcaptionfontbold,1)?"bold":"normal"},align:S[b(a.legendcaptionalignment)]},position:b(a.legendposition,
0===e(h.colorrange&&h.colorrange.gradient,0)?"right":"bottom"),backgroundColor:b(a.legendbgcolor,s.bgcolor),backgroundAlpha:b(a.legendbgalpha,"100"),borderColor:b(a.legendbordercolor,s.legendbordercolor),borderThickness:b(a.legendborderthickness,"1"),borderAlpha:b(a.legendborderalpha,"100"),shadow:e(a.legendshadow,1),allowDrag:e(a.legendallowdrag,0),scroll:{scrollBgColor:b(a.legendscrollbgcolor,a.scrollcolor,"AAAAAA"),scrollBtnColor:b(a.legendscrollbtncolor,"BBBBBB"),scrollBarColor:b(a.legendscrollbarcolor,
"CCCCCC")},reversed:e(a.reverselegend,0),interactive:e(a.interactivelegend,0),minColor:P,lighting3d:n},markers:{dataLabels:{style:{fontFamily:b(a.markerfont,u),fontSize:e(a.markerfontsize,parseInt(x,10)),fontColor:b(a.markerfontcolor,r)}},showTooltip:e(a.showmarkertooltip,k.showTooltip),showLabels:e(a.showmarkerlabels,a.showlabels,1),showHoverEffect:e(a.showmarkerhovereffect,1),labelPadding:b(a.markerlabelpadding,"5"),labelWrapWidth:e(a.markerlabelwrapwidth,0),labelWrapHeight:e(a.markerlabelwrapheight,
0),fillColor:b(a.markerfillcolor,a.markerbgcolor,s.markerfillcolor),fillAlpha:b(a.markerfillalpha,s.markerfillalpha),fillAngle:b(a.markerfillangle,s.markerfillangle),fillRatio:b(a.markerfillratio,s.markerfillratio),fillPattern:b(a.markerfillpattern,s.markerbgpattern),hoverFillColor:a.markerfillhovercolor,hoverFillAlpha:a.markerfillhoveralpha,hoverFillRatio:a.markerfillhoverratio,hoverFillAngle:a.markerfillhoverangle,borderThickness:b(a.markerborderthickness,1),borderColor:b(a.markerbordercolor,s.markerbordercolor),
borderAlpha:e(a.markerborderalpha,s.markerborderalpha),hoverBorderThickness:a.markerborderhoverthickness,hoverBorderColor:a.markerborderhovercolor,hoverBorderAlpha:a.markerborderhoveralpha,radius:e(a.markerradius&&C.trimString(a.markerradius),7),shapeId:b(a.defaultmarkershape,"circle"),labelSepChar:b(a.labelsepchar,", "),tooltipSepChar:k.tooltipSepChar,autoScale:e(a.autoscalemarkers,0),tooltext:b(g&&g.tooltext,a.markertooltext),dataEnabled:k.useValuesForMarkers,valueToRadius:e(a.markerradiusfromvalue,
1),valueMarkerAlpha:b(a.valuemarkeralpha,"75"),hideNull:e(a.hidenullmarkers,0),nullRadius:e(a.nullmarkerradius,a.markerradius,7),adjustViewPort:e(a.adjustviewportformarkers,0),startAngle:e(a.markerstartangle,90),maxRadius:e(a.maxmarkerradius,0),minRadius:e(a.minmarkerradius,0),applyAll:e(a.applyallmarkers,0),shadow:e(a.showmarkershadow,a.showshadow,0)},connectors:{showHoverEffect:e(a.showconnectorhovereffect,1),thickness:e(a.connectorthickness,a.markerconnthickness,"2"),color:b(a.connectorcolor,a.markerconncolor,
s.markerbordercolor),alpha:b(a.connectoralpha,a.markerconnalpha,"100"),hoverthickness:e(a.connectorhoverthickness,a.connectorthickness,a.markerconnthickness,"2"),hovercolor:b(a.connectorhovercolor,a.connectorcolor,a.markerconncolor,s.markerbordercolor),hoveralpha:b(a.connectorhoveralpha,a.connectoralpha,a.markerconnalpha,"100"),dashed:e(a.connectordashed,a.markerconndashed,0),dashLen:e(a.connectordashlen,a.markerconndashlen,3),dashGap:e(a.connectordashgap,a.markerconndashgap,2),font:b(a.connectorfont,
a.markerconnfont,u),fontColor:b(a.connectorfontcolor,a.markerconnfontcolor,r),fontSize:e(a.connectorfontsize,a.markerconnfontsize,parseInt(x,10)),showLabels:e(a.showconnectorlabels,a.showmarkerlabels,a.showlabels,1),labelBgColor:b(a.connectorlabelbgcolor,a.markerconnlabelbgcolor,s.plotfillcolor),labelBorderColor:b(a.connectorlabelbordercolor,a.markerconnlabelbordercolor,s.markerbordercolor),shadow:e(a.showconnectorshadow,a.showmarkershadow,a.showshadow,0),showTooltip:e(a.showconnectortooltip,a.showmarkertooltip,
k.showTooltip),tooltext:b(g&&g.connectortooltext,a.connectortooltext),hideOpen:e(a.hideopenconnectors,1)},entities:{baseScaleFactor:this.baseScaleFactor,dataLabels:{style:{fontFamily:u,fontSize:x,lineHeight:t,color:f.plotOptions.series.dataLabels.color=r}},fillColor:K,fillAlpha:E,fillRatio:J,fillAngle:N,borderColor:I,borderAlpha:b(a.entityborderalpha,a.borderalpha,this.borderAlpha,"100"),borderThickness:e(a.showentityborder,a.showborder,1)?e(a.entityborderthickness,a.borderthickness,1):0,scaleBorder:e(a.scaleentityborder,
a.scaleborder,0),hoverFillColor:b(a.entityfillhovercolor,a.hoverfillcolor,a.hovercolor,s.plothoverfillcolor),hoverFillAlpha:b(a.entityfillhoveralpha,a.hoverfillalpha,a.hoveralpha,s.plothoverfillalpha),hoverFillRatio:b(a.entityfillhoverratio,a.hoverfillratio,a.hoverratio,s.plothoverfillratio),hoverFillAngle:b(a.entityfillhoverangle,a.hoverfillangle,a.hoverangle,s.plothoverfillangle),hoverBorderThickness:b(a.entityborderhoverthickness,a.hoverborderthickness),hoverBorderColor:b(a.entityborderhovercolor,
s.plotbordercolor),hoverBorderAlpha:b(a.entityborderhoveralpha,s.plotborderalpha),nullEntityColor:P,nullEntityAlpha:b(a.nullentityfillalpha,a.nullentityalpha,E),nullEntityRatio:b(a.nullentityfillratio,a.nullentityratio,J),nullEntityAngle:b(a.nullentityfillangle,a.nullentityangle,N),connectorColor:b(a.labelconnectorcolor,a.connectorcolor,r),connectorAlpha:b(a.labelconnectoralpha,a.connectoralpha,"100"),connectorThickness:e(a.labelconnectorthickness,a.borderthickness,1),showHoverEffect:e(a.showentityhovereffect,
a.usehovercolor,k.showHoverEffect),hoverOnNull:e(a.hoveronnull,a.entityhoveronnull,1),labelPadding:e(a.labelpadding,5),showLabels:e(a.showlabels,1),labelsOnTop:e(a.entitylabelsontop,1),includeNameInLabels:e(a.includenameinlabels,1),includeValueInLabels:e(a.includevalueinlabels,0),useSNameInTooltip:e(a.usesnameintooltip,0),useShortName:e(a.usesnameinlabels,1),labelSepChar:b(a.labelsepchar,", "),showTooltip:e(a.showentitytooltip,k.showTooltip),tooltipSepChar:k.tooltipSepChar,tooltext:a.entitytooltext,
hideNullEntities:e(a.hidenullentities,0),showHiddenEntityBorder:e(a.showhiddenentityborder,1),showNullEntityBorder:e(a.shownullentityborder,1),hiddenEntityColor:b(a.hiddenentitycolor,a.hiddenentityfillcolor,a.hiddenentityalpha||a.hiddenentityfillalpha?P:"ffffff"),hiddenEntityAlpha:b(a.hiddenentityalpha,a.hiddenentityfillalpha,.001),shadow:e(a.showshadow,this.defaultPlotShadow,s.shadow)},entitydef:{useSNameAsId:e(a.usesnameasid,0)}});f.legend.title.style.lineHeight=ha(f.legend.title.style);f.legend.itemStyle.lineHeight=
ha(f.legend.itemStyle);f.legend.itemHiddenStyle.lineHeight=ha(f.legend.itemHiddenStyle);g=Aa(d,c,a.markermaxradius,a.markerminradius);f.markers.maxRadius=g.max;f.markers.minRadius=g.min;a.tooltipcolor&&(f.tooltip.style.color=ka(a.tooltipcolor));void 0!==b(a.clickurl)&&(m.link=a.clickurl,m.style.cursor="pointer",ia&&(m.style._cursor="hand"),f.plotOptions.series.point.events.click=function(){m.events.click.call({link:a.clickurl})});g=m.bgImageDisplayMode;k=sa(a.bgimagevalign,"").toLowerCase();l=sa(a.bgimagehalign,
"").toLowerCase();"tile"==g||"fill"==g||"fit"==g?("top"!=k&&"middle"!=k&&"bottom"!=k&&(k="middle"),"left"!=l&&"middle"!=l&&"right"!=l&&(l="middle")):("top"!=k&&"middle"!=k&&"bottom"!=k&&(k="top"),"left"!=l&&"middle"!=l&&"right"!=l&&(l="left"));m.bgImageVAlign=k;m.bgImageHAlign=l;this.parseStyles(f);ha(f.title.style);ha(f.subtitle.style);ha(f.tooltip.style);f.plotOptions.series.allowPointSelect=!0;this.parseExportOptions(f);this.preSeriesAddition&&this.preSeriesAddition(f,h,d,c);this.series&&this.series(h,
f,this.name,d,c);this.postSeriesAddition&&this.postSeriesAddition(f,h,d,c);this.spaceManager(f,h,d,c);da.console&&da.FC_DEV_ENVIRONMENT&&da.console.log(f);return f},series:function(d,c){function h(d){for(I=d&&d.length||0;I--;)y=d[I],p=y.value,y.cleanValue=a.getCleanValue(p),y.formattedValue=null!==y.cleanValue?a.dataLabels(p):void 0,y.origValue=p,null!==y.cleanValue&&(r=aa(y.cleanValue,r),w=qa(y.cleanValue,w))}function f(a,d,f){for(I=a&&a.length||0;I--;){y=a[I];var h;a:{h=e(y.value);for(var g=void 0,
l=void 0,g=void 0,D=z&&z.length||0;D--;)if(g=z[D],l=Number(g.maxvalue),g=e(g.minvalue,c.colorRange.scaleMin),h>=g&&h<=l){h=D;break a}h=null}G=h;null!==G&&(B="gradient"===u.type?c.colorRange.getColorObj(y.value).code:s&&s[G]&&b(s[G].color,s[G].code),x[G]||(x[G]=[]),B&&(y.color=y.color?y.color:B,d&&(y.alpha=y.alpha?y.alpha:d),f&&(v||y.fillhoveralpha||(y.fillhoveralpha=y.alpha),k||y.fillhovercolor||(y.fillhovercolor=y.color)),x[G].push(y)))}}var a=this.numberFormatter,g=this.hcJSON.series,m=c.markers.valueMarkerAlpha,
k=c.markers.hasHoverColor,v=c.markers.hasHoverAlpha,l=this.dataObj,n=c[pa],q=l.colorrange,s=q&&q.color,u=c.legend,x={},q={legendClick:function(){var a;if(a=this.chart)!this.legend&&(this.legend=this.plot.legend),a.legendClick(this,!this.visible)},getEventArgs:function(){var a;if(a=this.chart)return!this.legend&&(this.legend=this.plot.legend),a.getEventArgs(this)},setVisible:function(a){var d=this.data,b=this.legendItem,c=this.visible;this.visible=a=void 0===a?!c:a;b&&u.colorizeItem&&u.colorizeItem(this,
a);for(c=d&&d.length;c--;)(b=d[c].mapItem)&&(a?b.show&&b.show():b.hide&&b.hide())}},r=Infinity,w=-Infinity,y,B,A,z,p,G,t,I;h(l.data||[]);n.useValuesForMarkers&&h(l.markers&&l.markers.items||[]);n._doNotShowLegend=!0;u.type=l.colorrange&&"1"===l.colorrange.gradient?"gradient":"point";Infinity===r&&(r=void 0);-Infinity===w&&(w=void 0);n.dataMin=r;n.dataMax=w;c.colorRange=new C.colorRange({colorRange:l.colorrange,dataMin:r,dataMax:w,defaultColor:u.minColor,numberFormatter:a});I=(z=c.colorRange.colorArr)&&
z.length||0;if(0<I){for(;I--;)A=z[I],!n._doNotShowLegend||""===A.label&&void 0===A.label||(n._doNotShowLegend=!1),g.push(F({type:this.defaultSeriesType,showInLegend:!0,data:[],plot:{},name:A.label,color:A.code,rangeMin:A.minvalue,rangeMax:A.maxvalue,visible:!0},q));f(l.data||[]);n.useValuesForMarkers&&f(l.markers&&l.markers.items||[],m,!0);g=g.reverse();for(t in x)g[t]&&(g[t].data=x[t])}else g.push({type:this.defaultSeriesType,data:[]});n._doNotShowLegend&&(this.hcJSON.legend.enabled=!1)},preliminaryScaling:function(d,
b){for(var h=b.markers&&b.markers.items||[],f=h&&h.length||0,a=Infinity,e=Infinity,g=-Infinity,k=-Infinity,l,m;f--;)m=h[f],l=Number(m.x),m=Number(m.y),a=aa(a,l),e=aa(e,m),g=qa(g,l),k=qa(k,m);return{x:a,y:e,x1:g,y1:k}},getScalingParameters:function(d,b,h,f){var a=d/b,e=h/(d*this.baseScaleFactor),g=f/(b*this.baseScaleFactor),k=0,l=0;e>g?(e=g,k+=(h-f*a)/2,d=200/(b*e)):(l+=(f-h/a)/2,d=200/(d*e));return{scaleFactor:e,strokeWidth:d,translateX:k,translateY:l}},calculateMarkerBounds:function(d,b,h,f,a){var e=
d.markers,g=d[pa];d=g.dataMin;for(var g=g.dataMax,k=e.minRadius,l=e.maxRadius,m=e.hideNull,n=e.nullRadius,e=e.valueToRadius,q=(b=b.markers&&b.markers.items||[],b.length)||0,s=Infinity,u=Infinity,x=-Infinity,r=-Infinity,w,y,z;q--;)y=b[q],null!==y.cleanValue?(e&&void 0===y.radius&&(y.radius=k+(l-k)*(y.cleanValue-d)/(g-d)),z=Number(y.radius),w=(Number(y.x)+f)*h,y=(Number(y.y)+a)*h,s=aa(s,w-z),u=aa(u,y-z),x=qa(x,w+z),r=qa(r,y+z)):m?y.__hideMarker=!0:void 0===y.radius&&(y.radius=n);return{x:s,y:u,x1:x,
y1:r}},spaceManager:function(b,c,h,f){var a=b.chart,e=b[pa],g=a.spacingLeft,k=a.spacingTop,l=this.baseWidth,m=this.baseHeight;h-=a.spacingRight+g;a=f-(a.spacingBottom+k);f=e._captionBlock=this.manageTitleSpace(b,c,h,a);var n=e._legendBlock=this.placeLegendBlock(b,c,h,a-f.height,f.isBottom?f.height:0);h-=n.width;var a=a-f.height-n.height,q=n=0;e.useValuesForMarkers?(e.adjustViewPortForMarkers?(e=this.preliminaryScaling(b,c),e.x1>l&&(l=e.x1),0>e.x&&(l+=-e.x,q=-e.x),e.y1>m&&(m=e.y1),0>e.y&&(m+=-e.y,
n=-e.y),e=this.getScalingParameters(l,m,h,a),e=this.calculateMarkerBounds(b,c,e.scaleFactor*this.baseScaleFactor,q,n),b=a,c=h,0>e.x&&(g+=-e.x,h+=e.x),0>e.y&&(k+=-e.y,a+=e.y),e.x1>c&&(h-=e.x1-c),e.y1>b&&(a-=e.y1-b)):(e=this.getScalingParameters(l,m,h,a),this.calculateMarkerBounds(b,c,e.scaleFactor*this.baseScaleFactor,q,n)),e=this.getScalingParameters(l,m,h,a),g+=q*e.scaleFactor*this.baseScaleFactor,k+=n*e.scaleFactor*this.baseScaleFactor):e=this.getScalingParameters(l,m,h,a);/bottom/i.test(f.position)||
(k+=f.height);this.scaleFactor=e.scaleFactor;this.strokeWidth=e.strokeWidth;this.translateX=e.translateX+g;this.translateY=e.translateY+k},placeGLegendBlockRight:C.placeGLegendBlockRight,placeGLegendBlockBottom:C.placeGLegendBlockBottom,placeLegendBlock:function(b,c,e,f,a){var g=b.legend,l=b[pa],k=g.position.toLowerCase(),m={position:k};if("0"===c.chart.showlegend||l._doNotShowLegend)return m.height=0,m.width=0,m;"bottom"===k?(m.height="gradient"===g.type?this.placeGLegendBlockBottom(b,c,e,f):this.placeLegendBlockBottom(b,
c,e,f),m.width=0,a&&(g.y=-a)):(e/=2,m.width="gradient"===g.type?this.placeGLegendBlockRight(b,c,e,f):this.placeLegendBlockRight(b,c,e,f),m.height=0);return m},manageTitleSpace:function(b,c,e,f){var a=this.hcJSON;b=a.title;c=a.chart;var a=a.subtitle,g=this.smartLabel,l=f/2,k=0,m=b.position.toLowerCase(),n=b.padding,q=!1,u=b.offsetX,s=b.offsetY,z=0,x={},r,w;if(""===b.text&&""===a.text)return{height:0,position:m};isNaN(u)&&isNaN(s)||(q=!0,u=isNaN(u)?0:u,s=isNaN(s)?0:s);r=b.text;if(""!==r){g.setStyle(b.style);
w=g.getOriSize(r);if(w.width>e||w.height>l)w=g.getSmartText(r,e,l),b.text=w.text,w.tooltext&&(b.originalText=w.tooltext);b.height=z=w.height;k+=z}l-=k;r=a.text;if(""!==r){g.setStyle(a.style);w=g.getOriSize(r);if(w.width>e||w.height>l)w=g.getSmartText(r,e,l),a.text=w.text,w.tooltext&&(a.originalText=w.tooltext);k+=a.height=w.height}k=k+n>l?l:k+n;m.match(/left/)?(a.align=b.align="start",a.x=b.x=c.marginLeft):m.match(/right/)?(a.align=b.align="end",a.x=b.x=e):(a.align=b.align="middle",a.x=b.x=e/2);/bottom/.test(m)?
(e=f-k+c.marginTop+n,b.y=e,a.y=e+z,q?(b.y+=s,a.y+=s,b.x+=u,a.x+=u):(c.marginBottom+=k,x.isBottom=!0)):q?(b.y+=s,a.y+=s,b.x+=u,a.x+=u):c.marginTop+=k;x.height=q?0:k;x.position=m;return x},getFirstId:function(){return this.firstEntity},getEntityPaths:function(b){var c={},e=this.entities,f;if(b){for(f in e)c[f]=e[f];return c}return e},redefineEntities:function(b,c){var e=this.entities,f={},a={},g=0,l,k,m,n,q,u,s,z;for(s=b.length;s--;)if(l=b[s],k=l.internalid,q=l.newid?l.newid:k,m=l.sname,l=l.lname,n=
e[k],k=C.trimString(k),q=C.trimString(q),n){f[q]=q={origId:k};a[k]=!0;for(u in n)q[u]=n[u];q.shortLabel=m?m:n.shortLabel;q.label=l?l:n.label}this.entities={};for(z in f)f[z].origId=z,this.entities[z.toLowerCase()]=f[z],g+=1;for(z in e)if(q=e[z],z=C.trimString(z),!a[z]){c.useSNameAsId?(this.entities[q.shortLabel.toLowerCase()]=n={},n.origId=q.shortLabel):(this.entities[z.toLowerCase()]=n={},n.origId=z);for(u in q)n[u]=q[u];g+=1}this.entityCount=g},colorPaletteMap:{basefontcolor:"foregroundcolor",bordercolor:"foregrounddarkcolor",
borderalpha:"foregrounddarkalpha",bgcolor:"backgroundlightcolor",bgalpha:"backgroundlightalpha",bgangle:"backgroundlightangle",bgratio:"backgroundlightratio",canvasbordercolor:"foregrounddarkcolor",canvasborderalpha:"foregrounddarkalpha",canvasbgcolor:"backgroundlightcolor",canvasbgalpha:"backgroundlightalpha",canvasbgangle:"backgroundlightangle",canvasbgratio:"backgroundlightratio",tooltipbordercolor:"foregrounddarkcolor",tooltipborderalpha:"foregrounddarkalpha",tooltipbgcolor:"backgroundlightcolor",
tooltipbgalpha:"backgroundlightalpha",tooltipfontcolor:"foregroundcolor",legendbordercolor:"foregrounddarkcolor",legendborderalpha:"foregrounddarkalpha",markerbordercolor:"foregroundlightcolor",markerborderalpha:"foregroundlightalpha",markerfillcolor:"backgrounddarkcolor",markerfillalpha:"backgrounddarkalpha",markerfillangle:"backgrounddarkangle",markerfillratio:"backgrounddarkratio",plotfillcolor:"backgroundcolor",plotfillalpha:"backgroundalpha",plotfillangle:"backgroundangle",plotfillratio:"backgroundratio",
plothoverfillcolor:"backgrounddarkcolor",plothoverfillalpha:"backgrounddarkalpha",plothoverfillangle:"backgrounddarkangle",plothoverfillratio:"backgrounddarkratio",plotbordercolor:"foregroundcolor",plotborderalpha:"foregroundalpha",shadow:"shadow"},eiMethods:{getMapName:function(){return this.jsVars.hcObj.logic.name},getEntityList:function(){var b=this.jsVars.hcObj,b=b.entities&&b.entities.items,c,e=[],f,a;for(f in b)a=b[f],c=a.eJSON,e.push({id:a.id,originalId:a.originalId||a.id,label:c.label,shortlabel:c.shortLabel,
value:a.value,formattedValue:a.formattedValue,toolText:a.toolText});return e},getDataAsCSV:function(){var b=this.jsVars,b=b.hcObj&&b.hcObj.entities&&b.hcObj.entities.items,c='"Id","Short Name","Long Name","Value","Formatted Value"',e,f,a,g;for(e in b)f=b[e],a=f.eJSON,g=f.value,c+='\r\n"'+f.id+'","'+a.shortLabel+'","'+a.label+'","'+(void 0===g?"":g)+'","'+f.formattedValue+'"';return c},getMapAttribute:function(){var b=this.jsVars.fcObj;U.raiseWarning(this,"12061210581","run","JavaScriptRenderer~getMapAttribute()",
'Use of deprecated "getMapAttribute()". Replace with "getChartAttribute()".');return b.getChartAttribute.apply(b,arguments)},exportMap:function(){var b=this.jsVars.fcObj;U.raiseWarning(this,"12061210581","run","JavaScriptRenderer~exportMap()",'Use of deprecated "exportMap()". Replace with "exportChart()".');return b.exportChart&&b.exportChart.apply(b,arguments)},addMarker:function(b){this.jsVars.hcObj.markers.addMarkerItem(b)||U.raiseWarning(this,"1309264086","run","MapsRenderer~addMarker()","Failed to add marker. Check the options and try again.")},
updateMarker:function(b,c){var e=this.jsVars.hcObj,f=e.markers,e=e.mapAnnotations,a;b&&(b=(b+"").toLowerCase(),f=f.items[b])&&(a=f.options,F(a,c),f=f.draw().markerShape,e.update(b,f))},removeMarker:function(b){var c=this.jsVars.hcObj.markers,e;b&&(b=(b+"").toLowerCase(),(e=c.items[b])&&e.destroy(),delete c.items[b])}}},N.linebase);N("renderer.maps",{drawGraph:function(){var b=this.paper,c=this.layers,e,f,a;if(!this.options.nativeMessage){c.dataset||(c.dataset=b.group("dataset").insertAfter(c.background),
c.tracker=b.group("hot").insertAfter(c.dataset));this.shadowLayer||(this.shadowLayer=c.shadow=b.group("shadow").insertBefore(c.dataset));this.strokeWidth=this.logic.strokeWidth;e=this.logic.scaleFactor;this.translateX=f=this.logic.translateX;this.translateY=a=this.logic.translateY;this.sFactor=e*this.logic.baseScaleFactor;this.transformStr=["t",f,",",a,"s",e,",",e,",0,0"].join("");this.options.tooltip&&!1!==this.options.tooltip.enabled&&b.tooltip(this.options.tooltip.style,this.options.tooltip.shadow,
this.options.tooltip.constrain);this.mapAnnotations=new C.Annotations;this.mapAnnotations.reset(null,{id:"geo",showbelow:0,autoscale:0,grpxshift:this.translateX?this.translateX:0,grpyshift:this.translateY?this.translateY:0,xscale:100*(this.sFactor?this.sFactor:1),yscale:100*(this.sFactor?this.sFactor:1),options:{useTracker:!0}});this.processEntityDefs();this.drawEntities();if(!ia||xa)c.dataset.attr({transform:this.transformStr}),c.shadow.attr({transform:this.transformStr});this.drawMarkers()}},setScaleRange:function(b,
c){for(var e=this.options.series,f=e.length,a,g,l,k;f--;)if(l=e[f],g=(a=l.data)&&a.length)if(l.rangeMin>=b&&l.rangeMax<=c)l.setVisible(!0);else if(l.rangeMax<b||l.rangeMin>c)l.setVisible(!1);else for(;g--;)l=(k=a[g].mapItem)&&k.value,isNaN(l)||""===l||(l>=b&&l<=c?k.show():k.hide())},processEntityDefs:function(){var b=this.logic,c=this.options.series,e=c&&c.length;for(b.redefineEntities(b.dataObj.entitydef||[],this.options.entitydef);e--;)c[e].chart=this},drawEntities:function(){this.entities=new n(this.logic&&
this.logic.dataObj&&this.logic.dataObj.data,this,this.logic,this.layers.dataset)},drawMarkers:function(){var b=this.logic&&this.logic.dataObj&&this.logic.dataObj.markers||null;b&&(this.markers=new u(b,this,this.group));this.options.entities.labelsOnTop||this.entities.drawLabels()},checkComplete:function(){var b=this.logic,c=b.chartInstance;this.entities&&this.entities.isReady()&&(this.mapAnnotations.draw(this),b.hasRendered=!0,U.raiseEvent("internal.mapdrawingcomplete",{renderer:this},c))}},N["renderer.root"])},
[3,2,0,"release"]]);
