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

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