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

 @version fusioncharts/3.3.1-sr2.19840
*/
(function(){var i=FusionCharts(["private","modules.renderer.js-lib"]);if(i!==void 0){var l=window,u="",r="0",d=".",h=document,M=!!h.createElementNS&&!!h.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,e=/msie/i.test(navigator.userAgent)&&!window.opera,k=/\s+/g,V=/^#?/,ga=/^rgba/i,w=/[#\s]/ig,Q=/\{br\}/ig,K=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,G=Math.abs,aa=Math.pow,A=Math.round,ia=aa(2,-24),H=Object.prototype.toString,D=h.documentElement.ontouchstart!==void 0,q=Math,G=q.abs,j=q.max,
s=q.min,fa={pageX:0,pageY:0},ea=function(b){var g=b.data,f=g.chart,c=f.paper,d=b.type,t=b.target||b.originalTarget||b.srcElement||b.relatedTarget||b.fromElement,e=D&&a(b)||fa,m=f.elements.resizeBox,o=b.layerX||e.layerX,p=b.layerY||e.layerY,I=o-g.ox,N=p-g.oy,x=g.bBox,J=g.ox,y=g.oy,x=g.zoomX,ma=g.zoomY,q=g.canvasY,h=g.canvasX,n=g.canvasW,$=g.canvasH,v=g.canvasX2,ea=g.canvasY2,k=g.strokeWidth,I=g.chartPosLeft,N=g.chartPosTop,J=g.attr;o===void 0&&(o=(b.pageX||e.pageX)-I,p=(b.pageY||e.pageY)-N);switch(d){case "dragstart":g.oy=
p;g.ox=o;g.allowMove=!1;if(!m)m=f.elements.resizeBox=c.rect(f.layers.tracker).attr(J);if(o>h&&o<v&&p>q&&p<ea)g.allowMove=!0;if(t&&t.ishot)g.allowMove=!1;m.attr({x:0,y:0,width:0,height:0}).show();break;case "dragend":x=m.getBBox();b={chart:f,selectionLeft:x.x,selectionTop:x.y,selectionHeight:x.height,selectionWidth:x.width};g.allowMove&&g.callback(b);m.hide();delete g.oy;delete g.ox;break;default:if(!g.allowMove)break;I=o-g.ox;N=p-g.oy;J=g.ox;y=g.oy;I=-(J-s(J-(J-j(J+I,h)),v));N=-(y-s(y-(y-j(y+N,q)),
ea));m.attr({x:(x?s(J,J+I):h)+k*0.5,y:(ma?s(y,y+N):q)+k*0.5,width:x?G(I):n,height:ma?G(N):$})}},U=function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,g=a.data,f=a.type,c=a.layerX,d=a.layerY;c===void 0&&(c=a.pageX-g.chartPosLeft,d=a.pageY-g.chartPosTop);if(f==="mousedown")b.ishot=c>g.canvasX&&c<g.canvasX2&&d>g.canvasY&&d<g.canvasY2;f==="mouseup"&&setTimeout(function(){b.ishot=!1},1)},q=function(){var a="innerWidth",b="innerHeight",g=h.documentElement||h.body,
f=g;"innerWidth"in l?f=l:(a="clientWidth",b="clientHeight");return function(){return{width:f[a],height:f[b],scrollTop:g.scrollTop,scrollLeft:g.scrollLeft}}}(),W=function(a,b){for(var g={left:a.offsetLeft||0,top:a.offsetTop||0},a=a.offsetParent;a;)g.left+=a.offsetLeft||0,g.top+=a.offsetTop||0,a!==h.body&&a!==h.documentElement&&!b&&(g.left-=a.scrollLeft,g.top-=a.scrollTop),a=a.offsetParent;return g},X=function(a,b){return!a&&a!==!1&&a!==0?b:a},v=function(){var a,b,g;b=0;for(g=arguments.length;b<g;b+=
1)if((a=arguments[b])||!(a!==!1&&a!==0))return a;return u},n=function(){var a,b,g;b=0;for(g=arguments.length;b<g;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a},R={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},b=function(a,b,g,f){jQuery(a).bind(D&&R[b]||b,f,g)},f=function(a,b,g){var f=h.removeEventListener?"removeEventListener":"detachEvent";h[f]&&!a[f]&&(a[f]=function(){});jQuery(a).unbind(D&&R[b]||b,g)},a=function(a){var b=a.sourceEvent||a.originalEvent;return D&&b&&b.touches&&
b.touches[0]||a},g=function(){var a,b,g;b=0;for(g=arguments.length;b<g;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a},c=function(a,b){a=!a&&a!==!1&&a!==0?NaN:Number(a);return isNaN(a)?null:b?G(a):a},t=function(a){return typeof a==="string"?a.replace(Q,"<br />"):u},x=function(a,b,g){var f,c;if(b instanceof Array)for(f=0;f<b.length;f+=1)if(typeof b[f]!=="object")g&&b[f]===void 0||(a[f]=b[f]);else{if(a[f]===null||typeof a[f]!=="object")a[f]=b[f]instanceof Array?[]:{};x(a[f],
b[f],g)}else for(f in b)if(b[f]!==null&&typeof b[f]==="object")if(c=H.call(b[f]),c==="[object Object]"){if(a[f]===null||typeof a[f]!=="object")a[f]={};x(a[f],b[f],g)}else if(c==="[object Array]"){if(a[f]===null||!(a[f]instanceof Array))a[f]=[];x(a[f],b[f],g)}else a[f]=b[f];else a[f]=b[f];return a},J=function(a,b,g){if(typeof a!=="object"&&typeof b!=="object")return null;if(typeof b!=="object"||b===null)return a;typeof a!=="object"&&(a=b instanceof Array?[]:{});x(a,b,g);return a},ja=function(a,b){var g;
if(b instanceof Array)for(g=b.length-1;g>=0;g-=1)typeof b[g]!=="object"?b[g]===!0&&a&&a.splice&&a.splice(g,1):H.call(b[g])===H.call(a[g])&&ja(a[g],b[g]);else for(g in b)typeof b[g]!=="object"?b[g]===!0&&a&&a.splice&&a.splice(g,1):H.call(b[g])===H.call(a[g])&&ja(a[g],b[g]);return a},la=function(){var a=/^@window_/g;return function(b,g){var f=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,u).replace(/\[/g,".@window_").replace(/\]/g,u).split("."),c=l,d,t;t=u;var m,o,p;o=f.length;for(p=0;p<o;p+=1){m=
f[p];d=c;if(m.match(a))t=l[m.replace(a,u)],c=c[t];else if(c===void 0||c===null)throw(t||m).replace(a,u)+" is not defined";else c=c[m];t=m}c&&(typeof c.call==="function"||c===l.alert)?c===l.alert?c(g):c.call(d,g):setTimeout(function(){throw m.replace(a,u)+"() is not a function";},0)}}(),ba=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(b){try{l[a]=new Function(b),eval("window['"+a+"']();")}catch(g){setTimeout(function(){throw g;},0)}M?delete l[a]:l[a]=null}}(),Ha=function(a,
b){a=Number(a);a=isNaN(a)?100:a;b!==void 0&&(a=a*b/100);return a%101},Ba=function(a,b,f){var a=a.split(","),c;f!==void 0&&(f=g(f.split(",")[0]));a[0]=Ha(a[0],f);for(c=1;c<b;c+=1)a[c]=a[0]*Ha(a[c],f)/100;return a.join(",")},qa=function(a,b,g){var f=0,c=0,d=0;g&&g.match(ga)&&(g=g.split(","),f=g[0].slice(g[0].indexOf("(")+1),c=g[1],d=g[2],!b&&b!==0&&(b=parseInt(g[3].slice(0,g[3].indexOf(")"))*100,10)));if(a)if(a.match(ga))g=a.split(","),f=g[0].slice(g[0].indexOf("(")+1),c=g[1],d=g[2];else{a=a.replace(w,
u).split(",")[0];switch(a.length){case 3:a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2];break;case 6:break;default:a=(a+"FFFFFF").slice(0,6)}f=parseInt(a.slice(0,2),16);c=parseInt(a.slice(2,4),16);d=parseInt(a.slice(4,6),16)}!b&&b!=0&&(b=100);typeof b==="string"&&(b=b.split(",")[0]);b=parseInt(b,10)/100;return"rgba("+f+","+c+","+d+","+b+")"},da=function(a){return a.replace(w,u).replace(V,"#")},Da=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(w,u),g=parseInt(a,16),f=Math.floor(g/65536),c=Math.floor((g-
f*65536)/256);return("000000"+(f*b<<16|c*b<<8|(g-f*65536-c*256)*b).toString(16)).slice(-6)},ya=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(w,u),g=parseInt(a,16),f=Math.floor(g/65536),c=Math.floor((g-f*65536)/256);return("000000"+(256-(256-f)*b<<16|256-(256-c)*b<<8|256-(256-(g-f*65536-c*256))*b).toString(16)).slice(-6)},Ea={circle:"circle",triangle:"triangle",square:"square",diamond:"diamond",poly:"poly_",spoke:"spoke_"},za={font:"font",fontFamily:"font-family","font-family":"font-family",
fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position",
"background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",
borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness",
"border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",
borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},Ka=function(){var a=document.createElement("span"),b,f={lineHeight:!0,"line-height":!0},c=function(){return g(parseInt(a.style.fontSize,10),10)*1.4+"px"};a.innerHTML="fy";b=window.getComputedStyle?function(){var b=window.getComputedStyle(a,null);return b&&b.getPropertyValue("line-height")?b.getPropertyValue("line-height"):c.apply(this,
arguments)}:a.currentStyle?function(){return a.currentStyle.lineHeight}:c;return function(g){var d,t="";for(d in g)!f[d]&&za[d]&&(t+=za[d]+" : "+g[d]+";");e&&!M?a.style.setAttribute("cssText",t):a.setAttribute("style",t);d=b();parseFloat(d)||(d=c());return g.lineHeight=d}}(),$a=function(){var a={top:{align:"center",verticalAlign:"top",textAlign:"center"},right:{align:"right",verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",
verticalAlign:"middle",textAlign:"right"}},b=/([^\,^\s]+)\)$/g,f=function(a,b){var f;if(/^(bar|bar3d)$/.test(a))this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right";f=parseInt(b.labelstep,10);this.labelStep=f>1?f:1;this.showLabel=g(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};f.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(g,f,c,d,m,o,p,t){var e=c===""?!1:!0,x=d>0||o.match(b)[1]>0?!0:!1,J;if(e||x){x||
(o="rgba(0,0,0,0)",d=0.1);J={isGrid:!0,width:d,dashStyle:m,color:o,value:f,zIndex:p===void 0?2:p};if(e)f=g.opposite?t?this.xOppPos:this.yOppPos:t?this.xPos:this.yPos,f=a[f],J.label={text:c,style:g.labels.style,textAlign:f.textAlign,align:f.align,verticalAlign:f.verticalAlign,rotation:0,x:0,y:0};g.plotLines.push(J)}return J},addAxisAltGrid:function(a,b){if(!this.is3D){var f=g(a._lastValue,a.min),c=n(a._altGrid,!1);c&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:f,zIndex:1});a._lastValue=
b;a._altGrid=!c}},addXaxisCat:function(b,g,f,c){var m=a[b.opposite?this.xOppPos:this.xPos],g={isGrid:!0,width:0.1,color:"rgba(0,0,0,0)",value:g,label:{text:c,style:b.labels.style,textAlign:m.textAlign,align:m.align,verticalAlign:m.verticalAlign,rotation:0,x:0,y:0}};if(f%this.labelStep!==0)g.stepped=!0,g.label.style=b.steppedLabels.style;b.plotLines.push(g)},addVline:function(a,b,f,c){var m=c._FCconf,o=m.isBar,c=c.chart.plotBorderWidth,p=c%2,d=m.divlineStyle,e=t(b.label),x=Boolean(g(b.showlabelborder,
m.showVLineLabelBorder,1)),J=Boolean(g(b.showlabelbackground,1)),y=n(b.labelhalign,o?"left":"center"),ma=n(b.labelvalign,o?"middle":"bottom").toLowerCase(),q=g(b.labelposition,0),j=g(b.lineposition,0.5),h=g(b.showvlines,m.showVLines,1),$=g(b.alpha,m.vLineAlpha,80),s=n(b.color,m.vLineColor,"333333").replace(/^#?/,"#"),v=J?n(b.labelbgcolor,m.vLineLabelBgColor,"333333").replace(/^#?/,"#"):u,ea=s,k=g(b.thickness,m.vLineThickness,1),l=k*0.5,ja=Boolean(Number(n(b.dashed,0))),C=g(b.dashlen,5),F=g(b.dashgap,
2),E=m.smartLabel,L=parseInt(d.fontSize,10)+2,z=0,Wa=g(b.rotatelabel,m.rotateVLineLabels)?270:0,j=j<0||j>1?0.5:j,q=q<0||q>1?0:q;E.setStyle(d);E=E.getOriSize(e);s=qa(s,h?$:"0");if(o){switch(ma){case "top":L-=E.height+l+2;break;case "middle":L-=E.height*0.5+1;break;default:L+=l}b.labelhalign||(z-=E.width*q)}else{switch(ma){case "top":L-=E.height+2+(c||1)*(1-q)+q;break;case "middle":L-=E.height*0.5+c*(1-q*2);break;default:L+=(c-p)*q}switch(y){case "left":z+=k;break;case "right":z-=k+1}}a.plotLines.push({isVline:!0,
color:s,width:k,value:f-1+j,zIndex:g(b.showontop,m.showVLinesOnTop)?5:3,dashStyle:ja?Za(C,F,k):void 0,label:{text:e,align:o?"left":"center",offsetScale:q,rotation:Wa,y:L,x:z,textAlign:y,backgroundColor:v,borderWidth:h&&x?"1px":u,borderType:h&&x?"solid":u,borderColor:h&&x?ea:u,backgroundOpacity:h&&J?n(b.labelbgalpha,m.vLineLabelBgAlpha)/100:0,style:{color:h?ea:s,fontSize:d.fontSize,fontFamily:d.fontFamily,lineHeight:d.lineHeight,backgroundColor:v}}})}};return f.prototype.constructor=f}();(function(){function a(b,
g,f){var c;if(g<=0)return String(A(b));if(isNaN(g))return b=b.toString(),b.length>12&&b.indexOf(d)!=-1&&(g=12-b.split(d)[0].length,c=aa(10,g),b=String(A(b*c)/c)),b;c=aa(10,g);b=String(A(b*c)/c);if(f==1){b.indexOf(d)==-1&&(b+=".0");f=b.split(d);g-=f[1].length;for(f=1;f<=g;f++)b+=r}return b}function b(a,g,f,c){var t=Number(a);if(isNaN(t))return u;var e=u,x=!1,J=u,y=u,q=J=0,J=0,q=a.length;a.indexOf(d)!=-1&&(e=a.substring(a.indexOf(d)+1,a.length),q=a.indexOf(d));t<0&&(x=!0,J=1);J=a.substring(J,q);a=J.length;
t=c.length-1;q=c[t];if(a<q)y=J;else for(;a>=q;)y=(a-q?f:u)+J.substr(a-q,q)+y,a-=q,q=(t-=1)<=0?c[0]:c[t],a<q&&(y=J.substring(a,0)+y);e!=u&&(y=y+g+e);x==!0&&(y="-"+y);return y}var f={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:u,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:u,numbersuffix:u,decimals:u,forcedecimals:r,yaxisvaluedecimals:"2",decimalseparator:d,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:u,inthousandseparator:u,sformatnumber:"1",
sformatnumberscale:r,sdefaultnumberscale:u,snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:u,snumbersuffix:u,sdecimals:"2",sforcedecimals:r,syaxisvaluedecimals:"2",xFormatNumber:r,xFormatNumberScale:r,xDefaultNumberScale:u,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:u,xNumberSuffix:u},c={mscombidy2d:{formatnumberscale:"1"}},t=function(a,b,o){var p,d,t,e,x,y,q,j,h,s=b.name,$=J({},f),ea,k;(t=c[s])&&($=J($,t));this.csConf=$;this.chartAPI=b;X(a.numberscaleunit)&&
(p=a.numberscaleunit.split(","));if(d=X(a.snumberscaleunit,a.numberscaleunit))d=d.split(",");if(t=X(a.xnumberscaleunit,a.numberscaleunit))t=t.split(",");if(e=X(a.ticknumberscaleunit,a.numberscaleunit))e=e.split(",");if(x=X(a.ynumberscaleunit,a.numberscaleunit))x=x.split(",");X(a.numberscalevalue)&&(y=a.numberscalevalue.split(","));if(k=X(a.snumberscalevalue,a.numberscalevalue))k=k.split(",");if(q=X(a.xnumberscalevalue,a.numberscalevalue))q=q.split(",");if(j=X(a.ticknumberscalevalue,a.numberscalevalue))j=
j.split(",");if(h=X(a.ynumberscalevalue,a.numberscalevalue))h=h.split(",");if(X(a.thousandseparatorposition)){ea=a.thousandseparatorposition.split(",");for(var l=ea.length,ja,Ta=g(ea[l]),Ta=Ta?Ta:f.thousandseparatorposition[0];l;)l-=1,(ja=g(Math.abs(ea[l])))?Ta=ja:ja=Ta,ea[l]=ja}b||(b={});l=g(a.scalerecursively,0);ja=g(a.sscalerecursively,l);var Ta=g(a.xscalerecursively,l),i=g(a.maxscalerecursion,-1),C=g(a.smaxscalerecursion,i),F=g(a.xmaxscalerecursion,i),E=X(a.scaleseparator," "),L=X(a.sscaleseparator,
E),z=X(a.xscaleseparator,E);if(!i||i==0)i=-1;this.baseConf=p={cacheStore:[],formatnumber:n(a.formatnumber,b.formatnumber,$.formatnumber),formatnumberscale:n(a.formatnumberscale,b.formatnumberscale,$.formatnumberscale),defaultnumberscale:v(a.defaultnumberscale,b.defaultnumberscale,$.defaultnumberscale),numberscaleunit:n(p,b.numberscaleunit,$.numberscaleunit).concat(),numberscalevalue:n(y,b.numberscalevalue,$.numberscalevalue).concat(),numberprefix:v(a.numberprefix,b.numberprefix,$.numberprefix),numbersuffix:v(a.numbersuffix,
b.numbersuffix,$.numbersuffix),decimalprecision:parseInt(a.decimals==="auto"?$.decimalprecision:n(a.decimals,a.decimalprecision,b.decimals,$.decimals,b.decimalprecision,$.decimalprecision),10),forcedecimals:n(a.forcedecimals,b.forcedecimals,$.forcedecimals),decimalseparator:n(a.decimalseparator,b.decimalseparator,$.decimalseparator),thousandseparator:n(a.thousandseparator,b.thousandseparator,$.thousandseparator),thousandseparatorposition:n(ea,b.thousandseparatorposition,$.thousandseparatorposition),
indecimalseparator:v(a.indecimalseparator,b.indecimalseparator,$.indecimalseparator),inthousandseparator:v(a.inthousandseparator,b.inthousandseparator,$.inthousandseparator),scalerecursively:l,maxscalerecursion:i,scaleseparator:E};this.Y=[];if(!o){o={cacheStore:[],formatnumber:p.formatnumber,formatnumberscale:p.formatnumberscale,defaultnumberscale:p.defaultnumberscale,numberscaleunit:p.numberscaleunit.concat(),numberscalevalue:p.numberscalevalue.concat(),numberprefix:p.numberprefix,numbersuffix:p.numbersuffix,
decimalprecision:p.decimalprecision,forcedecimals:p.forcedecimals,decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition,indecimalseparator:p.indecimalseparator,inthousandseparator:p.inthousandseparator,scalerecursively:l,maxscalerecursion:i,scaleseparator:E};if(!b.useScaleRecursively||(o.numberscalevalue&&o.numberscalevalue.length)!=(o.numberscaleunit&&o.numberscaleunit.length))o.scalerecursively=l=0;y={cacheStore:[],formatnumber:o.formatnumber,
formatnumberscale:o.formatnumberscale,defaultnumberscale:o.defaultnumberscale,numberscaleunit:o.numberscaleunit.concat(),numberscalevalue:o.numberscalevalue.concat(),numberprefix:o.numberprefix,numbersuffix:o.numbersuffix,decimalprecision:parseInt(n(a.yaxisvaluedecimals,o.decimalprecision,2)),forcedecimals:n(a.forceyaxisvaluedecimals,o.forcedecimals),decimalseparator:o.decimalseparator,thousandseparator:o.thousandseparator,thousandseparatorposition:o.thousandseparatorposition.concat(),indecimalseparator:o.indecimalseparator,
inthousandseparator:o.inthousandseparator,scalerecursively:l,maxscalerecursion:i,scaleseparator:E};k={cacheStore:[],formatnumber:n(a.sformatnumber,b.sformatnumber,f.sformatnumber),formatnumberscale:n(a.sformatnumberscale,b.sformatnumberscale,f.sformatnumberscale),defaultnumberscale:v(a.sdefaultnumberscale,b.sdefaultnumberscale,o.defaultnumberscale),numberscaleunit:n(d,b.snumberscaleunit,f.snumberscaleunit).concat(),numberscalevalue:n(k,b.snumberscalevalue,f.snumberscalevalue).concat(),numberprefix:v(a.snumberprefix,
b.snumberprefix,f.snumberprefix),numbersuffix:v(a.snumbersuffix,b.snumbersuffix,f.snumbersuffix),decimalprecision:parseInt(n(a.syaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,f.sdecimals),10),forcedecimals:n(a.forcesyaxisvaluedecimals,a.sforcedecimals,a.forcedecimals,b.sforcedecimals,f.sforcedecimals),decimalseparator:n(a.decimalseparator,b.decimalseparator,f.decimalseparator),thousandseparator:n(a.thousandseparator,b.thousandseparator,f.thousandseparator),thousandseparatorposition:o.thousandseparatorposition.concat(),
indecimalseparator:n(a.indecimalseparator,b.indecimalseparator,f.indecimalseparator),inthousandseparator:n(a.inthousandseparator,b.inthousandseparator,f.inthousandseparator),scalerecursively:ja,maxscalerecursion:C,scaleseparator:L};d=J({},k);d.decimalprecision=parseInt(n(a.sdecimals,a.decimals,a.syaxisvaluedecimals,b.sdecimals,f.sdecimals),10);d.forcedecimals=n(a.sforcedecimals,a.forcedecimals,a.forcesyaxisvaluedecimals,b.sforcedecimals,f.sforcedecimals);d.cacheStore=[];if(!b.useScaleRecursively||
(k.numberscalevalue&&k.numberscalevalue.length)!=(k.numberscaleunit&&k.numberscaleunit.length))k.scalerecursively=ja=0;if(/^(bubble|scatter|selectscatter)$/.test(s))y.formatnumber=n(a.yformatnumber,y.formatnumber),y.formatnumberscale=n(a.yformatnumberscale,y.formatnumberscale),y.defaultnumberscale=v(a.ydefaultnumberscale,y.defaultnumberscale),y.numberscaleunit=n(x,y.numberscaleunit),y.numberscalevalue=n(h,y.numberscalevalue),y.numberprefix=n(a.ynumberprefix,y.numberprefix),y.numbersuffix=n(a.ynumbersuffix,
y.numbersuffix),o.formatnumber=n(a.yformatnumber,o.formatnumber),o.formatnumberscale=n(a.yformatnumberscale,o.formatnumberscale),o.defaultnumberscale=v(a.ydefaultnumberscale,o.defaultnumberscale),o.numberscaleunit=n(a.ynumberscaleunit,o.numberscaleunit.concat()),o.numberscalevalue=n(a.ynumberscalevalue,o.numberscalevalue.concat()),o.numberprefix=n(a.ynumberprefix,o.numberprefix),o.numbersuffix=n(a.ynumbersuffix,o.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(s))k.formatnumberscale=g(a.sformatnumberscale,
"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(s))o.decimalprecision=n(a.decimals,"2");l&&(o.numberscalevalue.push(1),o.numberscaleunit.unshift(o.defaultnumberscale),y.numberscalevalue.push(1),y.numberscaleunit.unshift(y.defaultnumberscale));ja&&(k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale),d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale));this.Y[0]={yAxisLabelConf:y,dataLabelConf:o};this.Y[1]={yAxisLabelConf:k,
dataLabelConf:d};this.paramLabels=o;this.param1=y;this.param2=k;this.paramLabels2=d}this.paramX={cacheStore:[],formatnumber:n(a.xformatnumber,p.formatnumber),formatnumberscale:n(a.xformatnumberscale,p.formatnumberscale),defaultnumberscale:v(a.xdefaultnumberscale,p.defaultnumberscale),numberscaleunit:n(t,p.numberscaleunit.concat()),numberscalevalue:n(q,p.numberscalevalue.concat()),numberprefix:n(a.xnumberprefix,p.numberprefix),numbersuffix:n(a.xnumbersuffix,p.numbersuffix),decimalprecision:parseInt(n(a.xaxisvaluedecimals,
a.xaxisvaluesdecimals,p.decimalprecision,2),10),forcedecimals:n(a.forcexaxisvaluedecimals,0),decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,inthousandseparator:p.inthousandseparator,scalerecursively:Ta,maxscalerecursion:F,scaleseparator:z};if(!b.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=
Ta=0;Ta&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:n(a.tickformatnumber,p.formatnumber),formatnumberscale:n(a.tickformatnumberscale,p.formatnumberscale),defaultnumberscale:v(a.tickdefaultnumberscale,p.defaultnumberscale),numberscaleunit:n(e,p.numberscaleunit.concat()),numberscalevalue:n(j,p.numberscalevalue.concat()),numberprefix:n(a.ticknumberprefix,p.numberprefix),numbersuffix:n(a.ticknumbersuffix,
p.numbersuffix),decimalprecision:parseInt(n(a.tickvaluedecimals,p.decimalprecision,"2")),forcedecimals:n(a.forcetickvaluedecimals,p.forcedecimals,0),decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,inthousandseparator:p.inthousandseparator,scalerecursively:l,maxscalerecursion:i,scaleseparator:E};l&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));
this.timeConf={inputDateFormat:n(a.inputdateformat,a.dateformat),outputDateFormat:n(a.outputdateformat,a.inputdateformat,a.dateformat),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]}};
t.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(a,b){var c=this.baseConf,d=this.csConf,t=this.chartAPI,e=g(a.scalerecursively,c.scalerecursively),x=g(a.maxscalerecursion,
c.maxscalerecursion),J=X(a.scaleseparator,c.scaleseparator),y,q,j,h,s,$,b=g(b,this.Y.length);X(a.numberscaleunit)&&(y=a.numberscaleunit.split(","));X(a.numberscalevalue)&&(q=a.numberscalevalue.split(","));x||(x=-1);if(X(a.thousandseparatorposition)){j=a.thousandseparatorposition.split(",");h=j.length;for($=f.thousandseparatorposition[0];h--;)(s=g(G(j[h])))?$=s:s=$,j[h]=s}c={cacheStore:[],formatnumber:n(a.formatnumber,c.formatnumber),formatnumberscale:n(a.formatnumberscale,c.formatnumberscale),defaultnumberscale:v(a.defaultnumberscale,
c.defaultnumberscale),numberscaleunit:n(y,c.numberscaleunit).concat(),numberscalevalue:n(q,c.numberscalevalue).concat(),numberprefix:v(a.numberprefix,c.numberprefix),numbersuffix:v(a.numbersuffix,c.numbersuffix),forcedecimals:n(a.forcedecimals,c.forcedecimals),decimalprecision:parseInt(a.decimals==="auto"?d.decimalprecision:n(a.decimals,c.decimalprecision),10),decimalseparator:n(a.decimalseparator,c.decimalseparator),thousandseparator:n(a.thousandseparator,c.thousandseparator),thousandseparatorposition:n(j,
c.thousandseparatorposition),indecimalseparator:v(a.indecimalseparator,c.indecimalseparator),inthousandseparator:v(a.inthousandseparator,c.inthousandseparator),scalerecursively:e,maxscalerecursion:x,scaleseparator:J};if(!t.useScaleRecursively||(c.numberscalevalue&&c.numberscalevalue.length)!=(c.numberscaleunit&&c.numberscaleunit.length))c.scalerecursively=e=0;t={cacheStore:[],formatnumber:c.formatnumber,formatnumberscale:c.formatnumberscale,defaultnumberscale:c.defaultnumberscale,numberscaleunit:c.numberscaleunit.concat(),
numberscalevalue:c.numberscalevalue.concat(),numberprefix:c.numberprefix,numbersuffix:c.numbersuffix,decimalprecision:parseInt(n(a.yaxisvaluedecimals,c.decimalprecision,2)),forcedecimals:n(a.forceyaxisvaluedecimals,c.forcedecimals),decimalseparator:c.decimalseparator,thousandseparator:c.thousandseparator,thousandseparatorposition:c.thousandseparatorposition.concat(),indecimalseparator:c.indecimalseparator,inthousandseparator:c.inthousandseparator,scalerecursively:e,maxscalerecursion:x,scaleseparator:J};
e&&(c.numberscalevalue.push(1),c.numberscaleunit.unshift(c.defaultnumberscale),t.numberscalevalue.push(1),t.numberscaleunit.unshift(t.defaultnumberscale));this.Y[b]={dataLabelConf:c,yAxisLabelConf:t}},percentValue:function(g){var f=this.percentStrCacheStore[g];f===void 0&&(f=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,f=this.percentStrCacheStore[g]=b(a(g,f,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+
"%");return f},getCleanValue:function(a,b){var g=this.cleaneValueCacheStore[a],f;if(g===void 0){g=a;f=this.baseConf.indecimalseparator;var c=this.baseConf.inthousandseparator;g+=u;X(c)&&(c=c.replace(/(\W)/ig,"\\$1"),g=g.toString().replace(RegExp(c,"g"),u));X(f)&&(g=g.replace(f,d));f=!isNaN(g=parseFloat(g))&&isFinite(g)?g:NaN;this.cleaneValueCacheStore[a]=g=isNaN(f)?null:b?G(f):f}return g},dataLabels:function(a,b){var g=this.Y[b]||(b?this.Y[1]:this.Y[0]),f,g=g&&g.dataLabelConf||this.baseConf;f=g.cacheStore[a];
f===void 0&&(f=g.cacheStore[a]=e(a,g));return f},yAxis:function(a,b){var g=this.Y[b]||(b?this.Y[1]:this.Y[0]),f,g=g&&g.yAxisLabelConf||this.baseConf;f=g.cacheStore[a];f===void 0&&(f=g.cacheStore[a]=e(a,g));return f},xAxis:function(a){var b=this.paramX.cacheStore[a];b===void 0&&(b=this.paramX.cacheStore[a]=e(a,this.paramX));return b},sYAxis:function(a){var b=this.Y[1],g,b=b&&b.yAxisLabelConf||this.baseConf;g=b.cacheStore[a];g===void 0&&(g=b.cacheStore[a]=e(a,b));return g},scale:function(a){var b=this.paramScale.cacheStore[a];
b===void 0&&(b=this.paramScale.cacheStore[a]=e(a,this.paramScale));return b},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&b.getTime()},getDateValue:function(a){a=a&&/^dd/.test(this.timeConf.inputDateFormat)&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a;a=new Date(a);return{ms:a.getTime(),date:a}},getFormatedDate:function(a,b){var g=typeof a==="object"&&a||this.getDateValue(a).date,f=this.timeConf,
c=n(b,f.outputDateFormat),d=g.getFullYear(),t=g.getMonth(),e=g.getDate(),x=g.getDay(),J=g.getMinutes(),q=g.getSeconds(),g=g.getHours();c.match(/dnl/)&&(c=c.replace(/dnl/ig,f.days[x]));c.match(/dns/)&&(c=c.replace(/dns/ig,f.days[x].substr(0,3)));c.match(/dd/)&&(c=c.replace(/dd/ig,e));c.match(/mnl/)&&(c=c.replace(/mnl/ig,f.months[t]));c.match(/mns/)&&(c=c.replace(/mns/ig,f.months[t].substr(0,3)));c.match(/mm/)&&(c=c.replace(/mm/ig,t+1));c.match(/yyyy/)&&(c=c.replace(/yyyy/ig,d));c.match(/yy/)&&(c=c.replace(/yy/ig,
(d%1E3%100+"").replace(/^(\d)$/,"0$1")));c.match(/hh12/)&&(c=c.replace(/hh12/ig,g%12||12));c.match(/hh/)&&(c=c.replace(/hh/ig,g));c.match(/mn/)&&(c=c.replace(/mn/ig,J));c.match(/ss/)&&(c=c.replace(/ss/ig,q));c.match(/ampm/)&&(c=c.replace(/ampm/ig,g<12?"AM":"PM"));c.match(/ds/)&&(c=c.replace(/ds/ig,f.daySuffix[e]));return c}};t.prototype.constructor=t;var e=function(f,c){if(f!==null){var f=Number(f),d=f+u,t;t=c.formatnumberscale==1?c.defaultnumberscale:u;var e;e=(e=d.split(".")[1])?e.length:c.forcedecimals?
"2":u;if(c.formatnumberscale==1){var x,d=f;t=c.numberscalevalue;x=c.numberscaleunit;var J={},q=c.defaultnumberscale,y=0,j,h=[],s=[];if(c.scalerecursively){for(y=0;y<t.length;y++)if(j=g(t[y])||1E3,Math.abs(Number(d))>=j&&y<t.length-1)q=d%j,d=(d-q)/j,q!=0&&(h.push(q),s.push(x[y]));else{h.push(d);s.push(x[y]);break}h.reverse();s.reverse();J.value=h;J.scale=s}else{if(t.length===x.length)for(y=0;y<t.length;y++)if((j=g(t[y])||1E3)&&Math.abs(Number(d))>=j)q=x[y]||u,d=Number(d)/j;else break;J.value=d;J.scale=
q}x=J;f=d=x.value;t=x.scale}if(c.scalerecursively&&c.formatnumberscale!=0){t=x.value;x=x.scale;J=c.maxscalerecursion==-1?t.length:Math.min(t.length,c.maxscalerecursion);if(c.formatnumber==1){d="";for(h=0;h<J;h++)y=h==0?t[h]:Math.abs(t[h]),j=String(y),h==J-1&&(j=a(y,n(c.decimalprecision,e),c.forcedecimals)),d=d+b(j,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+x[h]+(h<J-1?c.scaleseparator:"")}else{d="";for(h=0;h<J;h++)d=d+String(h==0?t[h]:Math.abs(t[h]))+x[h]+(h<J-1?c.scaleseparator:
"")}d=(c.numberprefix||u)+d+(c.numbersuffix||u);delete t;delete x}else c.formatnumber==1&&(d=a(f,n(c.decimalprecision,e),c.forcedecimals),d=b(d,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)),d=(c.numberprefix||u)+d+t+(c.numbersuffix||u);return d}};return t})();var oa=function(){var a=function(a,g,c,f,d){a=Math.abs(g-a);g=a/(c+1);b(a/(c+1))>b(f)&&(d&&Number(g)/Number(f)<(f>1?2:0.5)&&(f/=10),g=(Math.floor(g/f)+1)*f,a=g*(c+1));return a},b=function(a){var a=Math.abs(a),a=String(a),
b=0,g=a.indexOf(d);g!=-1&&(b=a.length-g-1);return b};return function(g,c,f,d,t,m,o,p){var e,g=isNaN(g)==!0||g==void 0?0.1:g,c=isNaN(c)==!0||c==void 0?0:c;g==c&&g==0&&(g=0.1);var m=typeof m===void 0?!0:m,x=Math.max(Math.floor(Math.log(Math.abs(c))/Math.LN10),Math.floor(Math.log(Math.abs(g))/Math.LN10));e=Math.pow(10,x);Math.abs(g)/e<2&&Math.abs(c)/e<2&&(x--,e=Math.pow(10,x));x=Math.pow(10,Math.floor(Math.log(g-c)/Math.LN10));g-c>0&&e/x>=10&&(e=x);var x=(Math.floor(g/e)+1)*e,J;c<0?J=-1*(Math.floor(Math.abs(c/
e))+1)*e:m?J=0:(J=Math.floor(Math.abs(c/e)-1)*e,J=J<0?0:J);(typeof t===void 0||t)&&g<=0&&(x=0);t=f==null||f==void 0||f==u?!1:!0;m=d==null||d==void 0||d==u||isNaN(Number(d))?!1:!0;g=t==!1||t==!0&&Number(f)<g&&g-Number(f)>ia?x:Number(f);c=m==!1||m==!0&&Number(d)>c&&Number(d)-c>ia?J:Number(d);d=Math.abs(g-c);if(m==!1&&t==!1&&p==!0)if(g>0&&c<0)for(var p=!1,f=e>10?e/10:e,t=a(c,g,o,f,!1)-(o+1)*f,q,y,h,j;p==!1;){if(t+=(o+1)*f,!(b(t/(o+1))>b(f)))if(q=t-d,m=t/(o+1),J=Math.min(Math.abs(c),g),x=J==Math.abs(c)?
-1:1,o==0)p=!0;else for(j=1;j<=Math.floor((o+1)/2);j++)y=m*j,!(y-J>q)&&y>J&&(h=t-y,h/m==Math.floor(h/m)&&y/m==Math.floor(y/m)&&(d=t,g=x==-1?h:y,c=x==-1?-y:-h,p=!0))}else p=a(c,g,o,e,!0),q=p-d,d=p,g>0?g+=q:c-=q;else if(p==!0&&o>0){p=0;for(f=1;;){q=o+p*f;q=q==0?1:q;if(!(b(d/(q+1))>b(e)))break;p=f==-1||p>o?++p:p;if(p>25){q=0;break}f=p<=o?f*-1:1}o=q}return{Max:g,Min:c,Range:d,interval:e,divGap:(g-c)/(o+1)}}}(),La=function(){var a=function(a,b){this.title.y=a.offsetHeight/2;if(b!==void 0)this.title.text=
b};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:"FusionCharts",enabled:!0},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=a}(),db={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right",
"false":"left"},"false":{"true":"left","false":"right"}}},Pa=function(){return function(a,b,c,f,d,e,x){var m,o=c.trendStyle,p,I,N,q,h,y,j,s,v,ea,$,k;parseInt(o.fontSize,10);if(!(e?!c.showVLines:!c.showTrendlines)){m=0;for(I=a.length;m<I;m+=1)if(a[m].line){p=0;for(N=a[m].line.length;p<N;p+=1)if(q=a[m].line[p],ea=c.numberFormatter.getCleanValue(n(q.startvalue,q.value,0)),$=c.numberFormatter.getCleanValue(n(q.endvalue,n(q.startvalue,q.value,0))),e?s=b:f&&q.parentyaxis&&/^s$/i.test(q.parentyaxis)?(s=
b[1],k=1):s=b[0],y=s.max,j=s.min,h=!1,y>=ea&&y>=$&&j<=ea&&j<=$){f&&q.parentyaxis&&/^s$/i.test(q.parentyaxis)?h=n(q.valueonleft,c.trendlineValuesOnOpp)!=="1":f||(h=n(q.valueonright,c.trendlineValuesOnOpp)==="1");y=Boolean(g(q.istrendzone,e?1:0));if(j=(e?c.showVLineLabels:c.showTrendlineLabels)?t(n(q.displayvalue,c.numberFormatter[e?"xAxis":"dataLabels"](ea,k))):u){if(v=ea<$,h={text:j,textAlign:d?"center":h?"left":"right",align:d?db[y][!x][v]:h?"right":"left",verticalAlign:d?"bottom":"middle",rotation:0,
x:0,y:0,style:o},j=n(q.color,c.trendlineColor),q.alwaysVisible=y,j)h.style=J({},o),h.style.color=j.replace(V,"#")}else h=void 0;j=n(q.tooltext);v=g(q.thickness,c.trendlineThickness,1);y?s.plotBands.push({isTrend:!0,color:qa(n(q.color,c.trendlineColor),n(q.alpha,c.trendlineAlpha,40)),from:ea,to:$,label:h,zIndex:!c.is3d&&n(q.showontop,c.showTrendlinesOnTop)==="1"?5:3,tooltext:j,alwaysVisible:q.alwaysVisible}):s.plotLines.push({isTrend:!0,color:qa(n(q.color,c.trendlineColor,c.trendlineColor),n(q.alpha,
c.trendlineAlpha,99)),value:ea,to:$,width:v,dashStyle:n(q.dashed,c.trendlinesAreDashed)=="1"?Za(g(q.dashlen,c.trendlinesDashLen),g(q.dashgap,c.trendlinesDashGap),v):void 0,label:h,zIndex:!c.is3d&&n(q.showontop,c.showTrendlinesOnTop)==="1"?5:3,tooltext:j})}}}}}(),Za=function(a,b,g,c){return c||c===void 0?[a,b]:u},Ia=function(){},bb=function(a,b,g){var c,f=bb[a];if(!f)f=function(){},f.prototype=g instanceof Ia?g:new Ia,f.prototype.constructor=f,f=bb[a]=new f;if(g)f.base=g;f.name=a;for(c in b)switch(typeof b[c]){case "object":if(b[c]instanceof
Ia){f[c]=b[c][c];break}default:f[c]=b[c];break;case "undefined":delete f[c]}return this instanceof bb?(a=function(){},a.prototype=f,a.prototype.constructor=a,new a):f};i.extend(i.hcLib,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:u,COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:r,SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",
DECIMALSTRING:d,STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",regex:{stripWhitespace:k,dropHash:V,startsRGBA:ga,cleanColorCode:w,breakPlaceholder:Q,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,g,c){var f=jQuery.Event(b),
d="detached"+b;extend(f,g);a[b]&&(a[d]=a[b],a[b]=null);jQuery(a).trigger(f);a[d]&&(a[b]=a[d],a[d]=null);c&&!f.isDefaultPrevented()&&c(f)},addEvent:b,removeEvent:f,getTouchEvent:a,extend2:J,deltend:function(a,b){if(typeof a!=="object"||typeof b!=="object")return null;ja(a,b);return a},imprint:function(a,b,g){var c;if(typeof a!=="object"||a===null)return b;if(typeof b!=="object"||b===null)return a;for(c in b)if(a[c]===void 0||!g&&a[c]===null)a[c]=b[c];return a},pluck:n,pluckNumber:g,getFirstDefinedValue:function(){var a,
b,g;b=0;for(g=arguments.length;b<g;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0&&a!=u))return a},createElement:function(a,b,g){var a=h.createElement(a),c;for(c in b)a.setAttribute(c,b[c]);g&&g.appendChild&&g.appendChild(a);return a},hashify:function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},pluckFontSize:function(){var a,b,g;b=0;for(g=arguments.length;b<g;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a<1?1:a;return 1},getValidValue:X,getPosition:W,getViewPortDimension:q,
bindSelectionEvent:function(a,c,d){var d=d||{},t=a.options.chart,e=a.container,x=t.zoomType,q=J({},d.attr||{}),d=q["stroke-width"]=g(q.strokeWidth,q["stroke-width"],1),m=W(e),d={chart:a,zoomX:/x/.test(x),zoomY:/y/.test(x),canvasY:a.canvasTop,canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:d,chartPosLeft:m.left,chartPosTop:m.top,attr:q,callback:c};q.stroke=v(q.stroke,"rgba(51,153,255,0.8)");q.fill=
v(q.fill,"rgba(185,213,241,0.3)");q.ishot=!0;e&&(f(e,"dragstart drag dragend",ea),b(e,"dragstart drag dragend",ea,d));t.link&&(f(a.container,"mouseup mousedown",U),b(a.container,"mouseup mousedown",U,d))},createContextMenu:function(a){var b=a.chart,g=b.smartLabel,c=a.labels,f=a.hover||{fill:"rgba(64, 64, 64, 1)"},d=a.attrs||{fill:"rgba(255, 255, 255, 1)"},t=c&&c.style||{fontSize:"12px",color:"000000"},m=c&&c.attrs||{},e=c&&c.hover||{color:"FFFFFF"},p=a.items,x=a.position,J=a.verticalPadding||5,q=
a.horizontalPadding||10,h=i.hcLib.Raphael,y={},j,s,v;if(b)j=W(b.container);else return!1;var ea=function(){v=this;var a=y.items,b=a.length,c=0,f=0,E=0,L=0,z,e=y.group;if(!y.menuItems)y.menuItems=[];for(g.setStyle(t);b--;)z=a[b],z=g.getOriSize(z.text),E||(E=z.height+2*J),c+=E,f=Math.max(f,z.width+2*q);y.height=c;y.width=f;y.itemH=E;v.setSize(f+5,c+5);if(!e)e=y.group=v.group("contextmenu-container");y.menuRect?y.menuRect.attr({width:f,height:c}):y.menuRect=v.rect(0,0,f,c,0,e).shadow(!0).attr({"stroke-width":1,
fill:"rgba(255, 255, 255, 1)"});c=a.length;for(b=0;b<c;b+=1)z=a[b],y.menuItems[b]?y.menuItems[b].label.attr({text:z.text}):(y.menuItems[b]={},y.menuItems[b].box=v.rect(0,L,f,E,0,e).attr({stroke:"none"}).attr(d).click(ja).hover(k,l),y.menuItems[b].label=v.text(q/2,L+E/2,z.text,e).attr({"text-anchor":"start"}).attr(m).css(t).click(ja).hover(k,l),y.menuItems[b].box._itemIdx=b,y.menuItems[b].label._itemIdx=b,L+=E);for(;y.menuItems[b];)y.menuItems[b].box.remove(),y.menuItems[b].label.remove(),y.menuItems.splice(b,
1)},$=function(a){var g=a.x,a=a.y,c={x:g+j.left,y:a+j.top},f=y.width,E=y.height,L=b.chartHeight;g+f>b.chartWidth&&g-f>0&&(c.x-=f);a+E>L&&a-E>0&&(c.y-=E);return c},n=function(){y.hide()},k=function(){var a=y.menuItems[this._itemIdx];s&&clearTimeout(s);a.box.attr(f);a.label.css(e)},l=function(){var a=y.menuItems[this._itemIdx];a.box.attr(d);a.label.css(t);s=setTimeout(y.hide,800)},ja=function(a){var b=y.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);y.hide()};y.showItem=function(a){var b=this.menuItems[a],
g=this.height,c=this.itemH;if(b&&b._isHidden){g=this.height=g+c;this.menuRect.attr({height:g});b.box.show();b.label.show();b._isHidden=!1;b=$(x);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y+c}),b.label.attr({y:b.label.attrs.y+c}),a+=1}};y.hideItem=function(a){var b=this.menuItems[a],g=this.height,c=this.itemH;if(b&&!b._isHidden){b.box.hide();b.label.hide();g=this.height=g-c;this.menuRect.attr({height:g});b._isHidden=!0;b=$(x);this.left=b.x;this.top=b.y;for(a+=
1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y-c}),b.label.attr({y:b.label.attrs.y-c}),a+=1}};y.redraw=function(){var a=this.paper;this.items=p;a?ea.call(this.paper):x&&x.x!==void 0&&x.y!==void 0?(this.paper=h(0,0,100,100),ea.call(this.paper),a=$(x),this.left=a.x,this.top=a.y,this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px"):(this.paper=h(0,0,100,100),ea.call(this.paper))};y.show=function(a){this.visible=!0;a&&a.x!==void 0&&a.y!==void 0?(a=$(a),this.paper.canvas.style.left=
a.x+"px",this.paper.canvas.style.top=a.y+"px"):(this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px");y.group.show();setTimeout(function(){h.click(n)},50)};y.hide=function(){this.visible=!1;y.group.hide();y.paper.canvas.style.left=-y.width+"px";y.paper.canvas.style.top=-y.height+"px";h.unclick(n)};y.update=function(a){if(a&&a.length)this.items=a,this.redraw()};y.updatePosition=function(a){var g={left:j.left,top:j.top};j=W(b.container);a?(x=a,a=$(a),this.left=a.x,this.top=
a.y):(this.left-=g.left-j.left,this.top-=g.top-j.top)};y.add=function(a){var b=this.paper,g=this.menuItems,c=g.length;g[c]={};g[c].box=b.rect(0,this.height,this.width,this.itemH,0).attr(d).hover(k,l);y.menuItems[c].label=b.text(this.width/2,this.height+this.itemH/2,a.text).attr(m).css(t).hover(k,l);y.menuItems[c].box._itemIdx=c;y.menuItems[c].label._itemIdx=c;this.height+=this.itemH;this.menuRect.attr({height:this.height})};y.removeItems=function(){for(var a=this.menuItems,b=a&&a.length,g;b--;)g=
a[b],g.box&&g.box.remove&&g.box.remove(),g.label&&g.label.remove&&g.label.remove();delete this.menuItems;delete this.items};y.setPosition=function(a){a.x!==void 0&&a.y!==void 0&&this.paper.setViewBox(a.x,a.y,this.width,this.height)};y.destroy=function(){this.removeItems();this.menuRect.remove()};p&&p.length&&(y.redraw(),y.hide());return y},getDefinedColor:function(a,b){return!a&&a!=0&&a!=!1?b:a},getFirstValue:v,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(k,u);a==u&&(a="000000");return a.replace(V,
"#")},getColorCodeString:function(a,b){var g="",c,f,d=0,t=b.split(",");for(f=t.length;d<f;d+=1)c=t[d].split("-"),g+=c.length===2?c[0].indexOf("dark")!=="-1"?ya(a,100-parseInt(c[1],10))+",":Da(a,100-parseInt(c[1],10))+",":t[d]+",";return g.substring(0,g.length-1)},pluckColor:function(a){if(X(a))return a=a.split(",")[0],a=a.replace(k,u),a==u&&(a="000000"),a.replace(V,"#")},trimString:function(a){for(var a=a.replace(/^\s\s*/,""),b=/\s/,g=a.length;b.test(a.charAt(g-=1)););return a.slice(0,g+1)},getFirstAlpha:function(a){a=
parseInt(a,10);if(isNaN(a)||a>100||a<0)a=100;return a},parsePointValue:c,parseUnsafeString:t,toPrecision:function(a,b){var g=aa(10,b);return A(a*g)/g},hasTouch:D,getSentenceCase:function(a){a=a||u;return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,b,g){var c=g%2/2,g=A(a+c)-c,a=A(a+b+c)-c-g;return{position:g,distance:a}},stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var g=a.length,c;for(c=0;c<g;c++)a[c].ss_i=c;a.sort(function(a,g){var c=b(a,g);return c===
0?a.ss_i-g.ss_i:c});for(c=0;c<g;c++)delete a[c].ss_i},hasSVG:M,isIE:e,getLinkAction:function(a,b){var c=function(a){return a};return function(){var f=g((a.chart||a.map||{}).unescapelinks,1),d=v(this.link,u),t=n(d,this.options&&this.options.chart&&this.options.chart.link||u,this.series&&this.series.chart&&this.series.chart.options&&this.series.chart.options.chart&&this.series.chart.options.chart.link||u),e=t,m,o,p,x,J,q,h,y,j,s;if(t!==void 0){f&&(t=l.decodeURIComponent?l.decodeURIComponent(t):unescape(t));
t=t.replace(/^\s+/,u).replace(/\s+$/,u);if(t.search(/^[a-z]*\s*[\-\:]\s*/i)!==-1)J=t.split(/\s*[\-\:]\s*/)[0].toLowerCase(),s=J.length;setTimeout(function(){switch(J){case "j":t=t.replace(/^j\s*\-/i,"j-");m=t.indexOf("-",2);m===-1?la(t.slice(2)):la(t.substr(2,m-2).replace(/\s/g,u),t.slice(m+1));break;case "javascript":ba(t.replace(/^javascript\s*\:/i,u));break;case "n":t.replace(/^n\s*\-/i,"n-");l.open(c(t.slice(2),f));break;case "f":t=t.replace(/^f\s*\-/i,"f-");m=t.indexOf("-",2);m!==-1?(o=t.substr(2,
m-2))&&l.frames[o]?l.frames[o].location=c(t.slice(m+1),f):l.open(c(t.slice(m+1),f),o):l.open(c(t.slice(2),f));break;case "p":t=t.replace(/p\s*\-/i,"p-");m=t.indexOf("-",2);p=t.indexOf(",",2);m===-1&&(m=1);x=c(t.slice(m+1),f);l.open(x,t.substr(2,p-2),t.substr(p+1,m-p-1)).focus();break;case "newchart":case "newmap":t.charAt(s)===":"&&(m=t.indexOf("-",s+1),j=t.substring(s+1,m),s=m);m=t.indexOf("-",s+1);q=t.substring(s+1,m).toLowerCase();switch(q){case "xmlurl":case "jsonurl":y=t.substring(m+1,t.length);
break;case "xml":case "json":var g=h=t.substring(m+1,t.length),d={chart:{}},v,g=g.toLowerCase();if(a.linkeddata)for(v=0;v<a.linkeddata.length;v+=1)a.linkeddata[v].id.toLowerCase()===g&&(d=a.linkeddata[v].linkedchart||a.linkeddata[v].linkedmap);y=d;q="json"}i.raiseEvent("LinkedChartInvoked",{alias:j,linkType:q.toUpperCase(),data:y},b);break;default:l.location.href=t}i.raiseEvent("linkclicked",{linkProvided:e,linkInvoked:t,linkAction:J&&J.toLowerCase()},b)},0)}}},graphics:{parseAlpha:Ba,convertColor:qa,
getDarkColor:Da,getLightColor:ya,mapSymbolName:function(a,b){var g=Ea.circle,a=c(a);a>=3&&(g=(b?Ea.spoke:Ea.poly)+a);return g},getColumnColor:function(a,b,g,c,f,d,t,m,e){var p,x;p=a.split(",");x=b.split(",");d=d.split(",");t=t.split(",");a=a.replace(/\s/g,u).replace(/\,$/,u);e?m={FCcolor:{color:p[0],alpha:x[0]}}:f?(a=p[0],x=x[0],m={FCcolor:{color:Da(a,75)+","+ya(a,10)+","+Da(a,90)+","+ya(a,55)+","+Da(a,80),alpha:x+","+x+","+x+","+x+","+x,ratio:"0,11,14,57,18",angle:m?"90":"0"}},d=[Da(a,70)]):(b=Ba(b,
p.length),m={FCcolor:{color:a,alpha:b,ratio:g,angle:m?-c:c}});return[m,{FCcolor:{color:d[0],alpha:t[0]}}]},getAngle:function(a,b,g){a=Math.atan(b/a)*180/Math.PI;g==2?a=180-a:g==3?a+=180:g==4&&(a=360-a);return a},parseColor:da,getValidColor:function(a){return K.test(da(a))&&a},HSBtoRGB:function(a){var b=a[0],g=0,c=0,f=0,d=[],d=a[1]/100,a=a[2]/100,t=b/60-Math.floor(b/60),m=a*(1-d),e=a*(1-t*d),d=a*(1-(1-t)*d);switch(Math.floor(b/60)%6){case 0:g=a;c=d;f=m;break;case 1:g=e;c=a;f=m;break;case 2:g=m;c=a;
f=d;break;case 3:g=m;c=e;f=a;break;case 4:g=d;c=m;f=a;break;case 5:g=a,c=m,f=e}return d=[A(g*255),A(c*255),A(f*255)]},RGBtoHSB:function(a){var b=a[0],g=a[1],a=a[2],c=Math.max(Math.max(b,g),a),f=Math.min(Math.min(b,g),a),d=0,t=0;c==f?d=0:c==b?d=(60*(g-a)/(c-f)+360)%360:c==g?d=60*(a-b)/(c-f)+120:c==a&&(d=60*(b-g)/(c-f)+240);t=c==0?0:(c-f)/c;return[A(d),A(t*100),A(c/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:function(a){var a=parseInt(a,
16),b=Math.floor(a/65536),g=Math.floor((a-b*65536)/256);return[b,g,Math.floor(a-b*65536-g*256)]}},setImageDisplayMode:function(a,b,g,c,f,d,t,m){var e=m.width*(c/100),c=m.height*(c/100),m={},p,x=d-f*2;p=t-f*2;var J=function(a,b,g,c,d,m){var t={};switch(a){case "top":t.y=f;break;case "bottom":t.y=m-c-f;break;case "middle":t.y=(m-c)/2}switch(b){case "left":t.x=f;break;case "right":t.x=d-g-f;break;case "middle":t.x=(d-g)/2}return t};switch(a){case "center":m.width=e;m.height=c;m.y=t/2-c/2;m.x=d/2-e/2;
break;case "stretch":m.width=d-f*2;m.height=t-f*2;m.y=f;m.x=f;break;case "tile":m.width=e;m.height=c;m.tileInfo={};m.tileInfo.xCount=a=Math.ceil(x/e);m.tileInfo.yCount=p=Math.ceil(p/c);alignObj=J(b,g,e*a,c*p,d,t);m.y=alignObj.y;m.x=alignObj.x;break;case "fit":a=e/c>x/p?x/e:p/c;m.width=e*a;m.height=c*a;alignObj=J(b,g,m.width,m.height,d,t);m.y=alignObj.y;m.x=alignObj.x;break;case "fill":a=e/c>x/p?p/c:x/e;m.width=e*a;m.height=c*a;alignObj=J(b,g,m.width,m.height,d,t);m.y=alignObj.y;m.x=alignObj.x;break;
default:alignObj=J(b,g,e,c,d,t),m.width=e,m.height=c,m.y=alignObj.y,m.x=alignObj.x}return m},setLineHeight:Ka,supportedStyle:za,getAxisLimits:oa,createTrendLine:Pa,getDashStyle:Za,axisLabelAdder:$a,chartAPI:bb,createDialog:La,defaultPaletteOptions:{bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF",
"FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[u,u,u,u,u],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,
20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF",
"FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100","100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:[u,u,u,u,u],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,
100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A","666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]}})}})();
(function(i){i.fn.drag=function(d,e,h){var l=typeof d=="string"?d:"",r=i.isFunction(d)?d:i.isFunction(e)?e:null;l.indexOf("drag")!==0&&(l="drag"+l);h=(d==r?e:h)||{};return r?this.bind(l,h,r):this.trigger(l)};var l=i.event,u="ontouchstart"in document.documentElement,r=u?"touchstart":"mousedown",d=u?"touchmove touchend":"mousemove mouseup",h=function(d,e){var h;if(!e.touchXY||!d.originalEvent)return d;h=d.originalEvent||d.sourceEvent;(h=h.changedTouches||h.touches)&&h.length&&i.extend(d,h[0]);return d},
M=l.special,e=M.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!1,click:!1,touchXY:!0},datakey:"dragdata",livekey:"livedrag",add:function(d){var h=i.data(this,e.datakey)||i.data(this,e.datakey,i.extend({related:0},e.defaults)),r=d.data||{};h.related+=1;if(!h.live&&d.selector)h.live=!0,l.add(this,"draginit."+e.livekey,e.delegate);i.each(e.defaults,function(d){r[d]!==void 0&&(h[d]=r[d])})},remove:function(){(i.data(this,e.datakey)||{}).related-=1},setup:function(){if(!i.data(this,
e.datakey)){var d=i.extend({related:0},e.defaults);i.data(this,e.datakey,d);l.add(this,r,e.init,d);this.attachEvent&&this.attachEvent("ondragstart",e.dontstart)}},teardown:function(){(i.data(this,e.datakey)||{}).related||(i.removeData(this,e.datakey),l.remove(this,r,e.init),l.remove(this,"draginit",e.delegate),e.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",e.dontstart))},init:function(k){var r=k.data,ga;if((ga=(ga=k.originalEvent||k.sourceEvent)?ga.changedTouches||ga.touches:[])&&
ga.length)if(ga.length>1)return;else h(k,r);else if(r.which>0&&k.which!=r.which)return;if(!i(k.target).is(r.not)&&(!r.handle||i(k.target).closest(r.handle,k.currentTarget).length))if(r.propagates=1,r.interactions=[e.interaction(this,r)],r.target=k.target,r.pageX=k.pageX,r.pageY=k.pageY,r.dragging=null,ga=e.hijack(k,"draginit",r),r.propagates){if((ga=e.flatten(ga))&&ga.length)r.interactions=[],i.each(ga,function(){r.interactions.push(e.interaction(this,r))});r.propagates=r.interactions.length;r.drop!==
!1&&M.drop&&M.drop.handler(k,r);e.textselect(!1);l.add(document,d,e.handler,r);if(!u)return!1}},interaction:function(d,h){return{drag:d,callback:new e.callback,droppable:[],offset:i(d)[h.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(k){var i=k.data,r;if(!i.dragging&&(k.type==="mousemove"||k.type==="touchmove")){if(Math.pow(k.pageX-i.pageX,2)+Math.pow(k.pageY-i.pageY,2)<Math.pow(i.distance,2))return;k.target=i.target;e.hijack(k,"dragstart",i);if(i.propagates)i.dragging=!0}switch(k.type){case "touchmove":r=
k.originalEvent||k.sourceEvent,r=r.touches,i.dragging&&(r&&r.length>1||k.preventDefault(),h(k,i));case "mousemove":if(i.dragging){e.hijack(k,"drag",i);if(i.propagates){i.drop!==!1&&M.drop&&M.drop.handler(k,i);break}k.type="mouseup"}case "touchend":i.dragging&&h(k,i);case "mouseup":if(l.remove(document,d,e.handler),i.dragging&&(i.drop!==!1&&M.drop&&M.drop.handler(k,i),e.hijack(k,"dragend",i)),e.textselect(!0),i.click===!1&&i.dragging)jQuery.event.triggered=!0,setTimeout(function(){jQuery.event.triggered=
!1},20),i.dragging=!1}},delegate:function(d){var h=[],r,w=i.data(this,"events")||{};i.each(w.live||[],function(w,K){if(K.preType.indexOf("drag")===0&&(r=i(d.target).closest(K.selector,d.currentTarget)[0]))l.add(r,K.origType+"."+e.livekey,K.origHandler,K.data),i.inArray(r,h)<0&&h.push(r)});if(!h.length)return!1;return i(h).bind("dragend."+e.livekey,function(){l.remove(this,"."+e.livekey)})},hijack:function(d,h,r,w,Q){if(r){var K={event:d.originalEvent,type:d.type},G=h.indexOf("drop")?"drag":"drop",
aa,A=w||0,u,H,w=!isNaN(w)?w:r.interactions.length;d.type=h;d.sourceEvent=K.event;d.originalEvent=null;r.results=[];do if((u=r.interactions[A])&&!(h!=="dragend"&&u.cancelled)){H=e.properties(d,r,u);u.results=[];i(Q||u[G]||r.droppable).each(function(w,q){aa=(H.target=q)?l.handle.call(q,d,H):null;if(aa===!1){if(G=="drag")u.cancelled=!0,r.propagates-=1;h=="drop"&&(u[G][w]=null)}else h=="dropinit"&&u.droppable.push(e.element(aa)||q);if(h=="dragstart")u.proxy=i(e.element(aa)||u.drag)[0];u.results.push(aa);
delete d.result;if(h!=="dropinit")return aa});r.results[A]=e.flatten(u.results);if(h=="dropinit")u.droppable=e.flatten(u.droppable);h=="dragstart"&&!u.cancelled&&H.update()}while(++A<w);d.type=K.type;d.originalEvent=K.event;return e.flatten(r.results)}},properties:function(d,h,l){var i=l.callback;i.drag=l.drag;i.proxy=l.proxy||l.drag;i.startX=h.pageX;i.startY=h.pageY;i.deltaX=d.pageX-h.pageX;i.deltaY=d.pageY-h.pageY;i.originalX=l.offset.left;i.originalY=l.offset.top;i.offsetX=d.pageX-(h.pageX-i.originalX);
i.offsetY=d.pageY-(h.pageY-i.originalY);i.drop=e.flatten((l.drop||[]).slice());i.available=e.flatten((l.droppable||[]).slice());return i},element:function(d){if(d&&(d.jquery||d.nodeType==1))return d},flatten:function(d){return i.map(d,function(d){return d&&d.jquery?i.makeArray(d):d&&d.length?e.flatten(d):d})},textselect:function(d){i(document)[d?"unbind":"bind"]("selectstart",e.dontstart).attr("unselectable",d?"off":"on").css("MozUserSelect",d?"":"none")},dontstart:function(){return!1},callback:function(){}};
e.callback.prototype={update:function(){M.drop&&this.available.length&&i.each(this.available,function(d){M.drop.locate(this,d)})}};M.draginit=M.dragstart=M.dragend=e})(jQuery);
(function(i){function l(l){var d=l||window.event,h=[].slice.call(arguments,1),u=0,e=0,k=0,l=i.event.fix(d);l.type="wheelchange";l.wheelDelta&&(u=l.wheelDelta/120);l.detail&&(u=-l.detail/3);k=u;d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS&&(k=0,e=-1*u);d.wheelDeltaY!==void 0&&(k=d.wheelDeltaY/120);d.wheelDeltaX!==void 0&&(e=-1*d.wheelDeltaX/120);h.unshift(l,u,e,k);return i.event.handle.apply(this,h)}var u=["DOMMouseScroll","mousewheel"];i.event.special.wheelchange={setup:function(){if(this.addEventListener)for(var i=
u.length;i;)this.addEventListener(u[--i],l,!1);else this.onmousewheel=l},teardown:function(){if(this.removeEventListener)for(var i=u.length;i;)this.removeEventListener(u[--i],l,!1);else this.onmousewheel=null}};i.fn.extend({wheelchange:function(l){return l?this.bind("wheelchange",l):this.trigger("wheelchange")},unwheelchange:function(l){return this.unbind("wheelchange",l)}})})(jQuery);
FusionCharts(["private","modules.renderer.js-smartlabel",function(){var i=this.hcLib,l=i.isIE,u=i.hasSVG,r=document,d=!!r.createElement("canvas").getContext,h=function(){function h(d,e,q,j){if(!d||!d.length)return 0;var s,l=j?function(a){return j.measureText(a).width}:function(a){q.innerHTML=a;return q.offsetWidth},i=0,b=0,b=l(d),f=b/d.length;s=e;i=Math.ceil(e/f);if(b<e)return d.length-1;if(i>d.length)s=e-b,i=d.length;for(;s>0;)if(s=e-l(d.substr(0,i)),b=Math.floor(s/f))i+=b;else return i;for(;s<0;)if(s=
e-l(d.substr(0,i)),b=Math.floor(s/f))i+=b;else break;return i}function e(d,e){e=e>5?e:5;this.maxContainers=e<20?e:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=d}function k(d,h,j){if(!(typeof d==="undefined"||typeof d==="object")){this.id=d;var s,v;typeof h==="string"&&(h=r.getElementById(h));if(h&&h.offsetWidth&&h.offsetHeight){if(h.appendChild)h.appendChild(s=document.createElement("div")),s.className="_SmartLabel_Container"}else if((d=document.getElementsByTagName("body")[0])&&
d.appendChild)s=document.createElement("div"),s.className="_SmartLabel_Container",q+=1,d.appendChild(s);s=this.parentContainer=s;for(v in w)s.style[v]=w[v];this.containerManager=new e(s,10);this.showNoEllipses=!j;this.init=!0;this.style={};this.setStyle()}}var V=i.supportedStyle,ga={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,fontSize:1,"font-size":1,fontFamily:1,"font-family":1},w={position:"absolute",top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},
Q=0,K=/\b_SmartLabel\b/,G=/\b_SmartLabelBR\b/,aa=/(\<[^\<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,A=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),ia=/<[^>][^<]*[^>]+>/i,H=0,D=0,q=0,j,s,fa;r.getElementsByClassName?(j="getElementsByClassName",s="_SmartLabel",fa=!0):(j="getElementsByTagName",s="span",fa=!1);e.prototype={get:function(d){var e=this.containers,h=this.length,q=this.maxContainers,j,s="",l="",l=this.getCanvasFont(d);for(j in V)d[j]!==void 0&&(s+=V[j]+":"+d[j]+";");if(!s)return!1;
if(e[s]){if(s=e[s],this.first!==s)s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),s.next=this.start,s.prev=null,this.last===s&&(this.last=s.prev),this.start=s}else{if(h>=q)for(d=h-q+1;d--;)this.removeContainer(this.last);s=this.addContainer(s,l)}return s},getCanvasFont:function(e){var h,q=[];if(!d)return!1;for(h in ga)e[h]!==void 0&&q.push(e[h]);return q.join(" ")},setMax:function(d){var e=this.length,d=d>5?d:5,d=d<20?d:20;if(d<e){for(e-=d;e--;)this.removeContainer(this.last);this.length=
d}this.maxContainers=d},addContainer:function(d,e){var h,q;this.containers[d]=q={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:d,canvasStr:e,charCache:{}};q.next=this.start;q.next&&(q.next.prev=q);this.start=q;this.length+=1;h=q.node=r.createElement("span");this.rootNode.appendChild(h);l&&!u?h.style.setAttribute("cssText",d):h.setAttribute("style",d);h.style.display="inline-block";h.innerHTML="WgI";q.lineHeight=h.offsetHeight;q.avgCharWidth=h.offsetWidth/
3;e?(h=q.canvas=r.createElement("canvas"),h.style.height=h.style.width="0px",this.rootNode.appendChild(h),q.context=h=h.getContext("2d"),h.font=e,q.ellipsesWidth=h.measureText("...").width,q.dotWidth=h.measureText(".").width):(h.innerHTML="...",q.ellipsesWidth=h.offsetWidth,h.innerHTML=".",q.dotWidth=h.offsetWidth,h.innerHTML="");return q},removeContainer:function(d){var e=d.keyStr;if(e&&this.length&&d)this.length-=1,d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),this.first===d&&(this.first=
d.next),this.last===d&&(this.last=d.prev),delete this.containers[e],delete d}};e.prototype.constructor=e;k.prototype={dispose:function(){var d=this.container,e;if(this.init){if(d&&(e=d.parentNode))e.removeChild(d),delete this.container;delete this.id;delete this.style;delete this.parentContainer;delete this.showNoEllipses}},useEllipsesOnOverflow:function(d){if(this.init)this.showNoEllipses=!d},getSmartText:function(d,e,q,l){if(!this.init)return!1;if(d===void 0||d===null)d="";var v={text:d,maxWidth:e,
maxHeight:q,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:d,isTruncated:!1},i=!1,k,b,f,a,g=-1,c=-1,t=-1,x=this.container,J=this.context,ja=g=0,la,r=[],w=0,u=this.showNoEllipses?"":"...",g=this.lineHeight,V=function(a){for(var a=a.replace(/^\s\s*/,""),b=/\s/,g=a.length;b.test(a.charAt(g-=1)););return a.slice(0,g+1)};la=J?function(a){return J.measureText(a).width}:function(a){x.innerHTML=a;return x.offsetWidth};if(x){x.innerHTML=d;v.oriTextWidth=f=x.offsetWidth;v.oriTextHeight=
i=x.offsetHeight;if(i<=q&&f<=e)return v.width=v.oriTextWidth=f,v.height=v.oriTextHeight=i,v;if(g>q)return v.text="",v.width=v.oriTextWidth=0,v.height=v.oriTextHeight=0,v;d=V(d).replace(/(\s+)/g," ");i=ia.test(d);f=this.showNoEllipses?e:e-Q;if(i){a=d.replace(aa,"$2");d=d.replace(aa,'$1<span class="_SmartLabel">$2</span>');d=d.replace(/(\<br\s*\/*\>)/g,"<span class='_SmartLabel _SmartLabelBR'>$1</span>");x.innerHTML=d;w=x[j](s);la=[];ja=c=-1;i=0;for(V=w.length;i<V;i+=1)if(d=w[i],fa||K.test(d.className))if(g=
d.innerHTML,g!=""){if(g==" ")ja=la.length;else if(g=="-")c=la.length;la.push({spaceIdx:ja,dashIdx:c,elem:d});r.push(g)}delete w;w=0;i=la.length;H=la[0].elem.offsetWidth;if(H>e)return v.text="",v.width=v.oriTextWidth=v.height=v.oriTextHeight=0,v;else H>f&&!this.showNoEllipses&&(f=e-2*D,f>H?u="..":(f=e-D,f>H?u=".":(f=0,u="")));if(l)for(;w<i;w+=1)d=la[w].elem,l=d.offsetLeft+d.offsetWidth,l>f&&(b||(b=w),x.offsetWidth>e&&(k=w,w=i));else for(;w<i;w+=1)if(d=la[w].elem,V=d.offsetHeight+d.offsetTop,l=d.offsetLeft+
d.offsetWidth,r=null,l>f){if(b||(b=w),l>e)c=la[w].spaceIdx,g=la[w].dashIdx,c>t?(la[c].elem.innerHTML="<br/>",t=c):g>t?(la[g].elem.innerHTML=g===w?"<br/>-":"-<br/>",t=g):d.parentNode.insertBefore(r=document.createElement("br"),d),d.offsetHeight+d.offsetTop>q?(r?r.parentNode.removeChild(r):t===g?la[g].elem.innerHTML="-":la[c].elem.innerHTML=" ",k=w,w=i):b=null}else V>q&&(k=w,w=i);if(k<i){v.isTruncated=!0;b=b?b:k;for(w=i-1;w>=b;w-=1)d=la[w].elem,d.parentNode.removeChild(d);for(;w>=0;w-=1)d=la[w].elem,
G.test(d.className)?d.parentNode.removeChild(d):w=0}v.text=x.innerHTML.replace(A,"$1");if(v.isTruncated)v.text+=u,v.tooltext=a}else{r=d.split("");i=r.length;k="";b=[];c=r[0];this.cache[c]?H=this.cache[c].width:(H=la(c),this.cache[c]={width:H});if(f>H)b=d.substr(0,h(d,f,x,J)).split(""),w=b.length;else if(H>e)return v.text="",v.width=v.oriTextWidth=v.height=v.oriTextHeight=0,v;else u&&(f=e-2*D,f>H?u="..":(f=e-D,f>H?u=".":(f=0,u="")));g=la(b.join(""));ja=this.lineHeight;if(l)for(;w<i;w+=1){if(c=b[w]=
r[w],this.cache[c]?H=this.cache[c].width:(H=la(c),this.cache[c]={width:H}),g+=H,a=b.join(""),g>f&&(k||(k=a.substr(0,a.length-1)),g>e))return x.innerHTML=v.text=V(k)+u,v.tooltext=v.oriText,v.width=x.offsetWidth,v.height=x.offsetHeight,v}else for(;w<i;w+=1)if(c=b[w]=r[w],c===" "&&!J&&(c="&nbsp;"),this.cache[c]?H=this.cache[c].width:(H=la(c),this.cache[c]={width:H}),g+=H,a=b.join(""),g>f&&(k||(k=a.substr(0,a.length-1)),g>e))if(c=d.substr(0,b.length).lastIndexOf(" "),g=d.substr(0,b.length).lastIndexOf("-"),
c>t?(b.splice(c,1,"<br/>"),t=c,l=c+1):g>t?(g===b.length-1?b.splice(g,1,"<br/>-"):b.splice(g,1,"-<br/>"),t=g,l=g+1):(b.splice(b.length-1,1,"<br/>"+r[w]),l=w),x.innerHTML=a=b.join(""),ja+=this.lineHeight,ja>q)return v.text=x.innerHTML=V(k)+u,v.tooltext=v.oriText,v.width=x.offsetWidth,v.height=x.offsetHeight,v;else k=null,c=h(d.substr(l),f,x,J),g=la(d.substr(l,c||1)),b.length<l+c&&(b=b.concat(d.substr(b.length,l+c-b.length).split("")),w=b.length-1);v.text=x.innerHTML=a;v.width=x.offsetWidth;v.height=
x.offsetHeight;return v}v.height=x.offsetHeight;v.width=x.offsetWidth}else v.error=Error("Body Tag Missing!");return v},setStyle:function(d){if(!this.init)return!1;if(d!==this.style||this.styleNotSet){if(!d)d=this.style;this.style=d;(this.containerObj=d=this.containerManager.get(d))?(this.container=d.node,this.context=d.context,this.cache=d.charCache,this.lineHeight=d.lineHeight,Q=d.ellipsesWidth,D=d.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(d,e,h){if(!this.init)return!1;
var q={text:d,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},j=this.container;if(j&&(j.innerHTML=d,q.oriTextWidth=j.offsetWidth,q.oriTextHeight=j.offsetHeight,q.width=Math.min(q.oriTextWidth,e),q.height=Math.min(q.oriTextHeight,h),q.width<q.oriTextWidth||q.height<q.oriTextHeight))q.isTruncated=!0;return q},getOriSize:function(d){if(!this.init)return!1;var e={text:d,width:null,height:null},q=this.container;if(q)q.innerHTML=d,e.width=q.offsetWidth,e.height=q.offsetHeight;
return e}};return k.prototype.constructor=k}();i.SmartLabelManager=h}]);
FusionCharts(["private","modules.renderer.js-numberformatter",function(){var i=this.hcLib,l=i.pluckNumber,u=i.extend2,r=i.getValidValue,l=i.pluckNumber,d=i.pluck,h=i.getFirstValue,M=Math.abs,e=Math.pow,k=Math.round,V="",ga="0",w=".",Q="-",K=function(d){return d&&d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};i.NumberFormatter=function(){function i(d,h,s){var l;if(h<=0)return k(d)+V;if(isNaN(h))return d+=V,d.length>12&&d.indexOf(w)!=-1&&(h=12-d.split(w)[0].length,l=e(10,h),d=k(d*l)/l+V),d;l=e(10,h);
d=k(d*l)/l+V;if(s==1){d.indexOf(w)==-1&&(d+=".0");s=d.split(w);h-=s[1].length;for(s=1;s<=h;s++)d+=ga}return d}function aa(d,e,h,l){var i=Number(d);if(isNaN(i))return V;var k=V,r=!1,A=V,v=V,n=A=0,A=0,n=d.length;d.indexOf(w)!=-1&&(k=d.substring(d.indexOf(w)+1,d.length),n=d.indexOf(w));i<0&&(r=!0,A=1);A=d.substring(A,n);d=A.length;i=l.length-1;n=l[i];if(d<n)v=A;else for(;d>=n;)v=(d-n?h:V)+A.substr(d-n,n)+v,d-=n,n=(i-=1)<=0?l[0]:l[i],d<n&&(v=A.substring(d,0)+v);k!=V&&(v=v+e+k);r==!0&&(v=Q+v);return v}
var A={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:V,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:V,numbersuffix:V,decimals:V,forcedecimals:ga,yaxisvaluedecimals:"2",decimalseparator:w,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:V,inthousandseparator:V,sformatnumber:"1",sformatnumberscale:ga,sdefaultnumberscale:V,snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:V,snumbersuffix:V,sdecimals:"2",sforcedecimals:ga,syaxisvaluedecimals:"2",
xFormatNumber:ga,xFormatNumberScale:ga,xDefaultNumberScale:V,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:V,xNumberSuffix:V},ia={mscombidy2d:{formatnumberscale:"1"}},H=function(e,j,s){var i,k,w,G,aa,v,n,R,b,f=j.name,a=u({},A),g,c;(w=ia[f])&&(a=u(a,w));this.csConf=a;this.chartAPI=j;r(e.numberscaleunit)&&(i=e.numberscaleunit.split(","));if(k=r(e.snumberscaleunit,e.numberscaleunit))k=k.split(",");if(w=r(e.xnumberscaleunit,e.numberscaleunit))w=w.split(",");if(G=r(e.ticknumberscaleunit,
e.numberscaleunit))G=G.split(",");if(aa=r(e.ynumberscaleunit,e.numberscaleunit))aa=aa.split(",");r(e.numberscalevalue)&&(v=e.numberscalevalue.split(","));if(c=r(e.snumberscalevalue,e.numberscalevalue))c=c.split(",");if(n=r(e.xnumberscalevalue,e.numberscalevalue))n=n.split(",");if(R=r(e.ticknumberscalevalue,e.numberscalevalue))R=R.split(",");if(b=r(e.ynumberscalevalue,e.numberscalevalue))b=b.split(",");if(r(e.thousandseparatorposition)){g=e.thousandseparatorposition.split(",");for(var t=g.length,x,
J=A.thousandseparatorposition[0];t--;)x=parseInt(g[t],10),x>0||(x=J),J=g[t]=x}j||(j={});t=l(e.scalerecursively,0);x=l(e.sscalerecursively,t);var J=l(e.xscalerecursively,t),ja=l(e.maxscalerecursion,-1),la=l(e.smaxscalerecursion,ja),D=l(e.xmaxscalerecursion,ja),Q=r(e.scaleseparator," "),H=r(e.sscaleseparator,Q),M=r(e.xscaleseparator,Q);ja||(ja=-1);this.baseConf=i={cacheStore:[],formatnumber:d(e.formatnumber,j.formatnumber,a.formatnumber),formatnumberscale:d(e.formatnumberscale,j.formatnumberscale,a.formatnumberscale),
defaultnumberscale:h(e.defaultnumberscale,j.defaultnumberscale,a.defaultnumberscale),numberscaleunit:d(i,j.numberscaleunit,a.numberscaleunit).concat(),numberscalevalue:d(v,j.numberscalevalue,a.numberscalevalue).concat(),numberprefix:h(e.numberprefix,j.numberprefix,a.numberprefix),numbersuffix:h(e.numbersuffix,j.numbersuffix,a.numbersuffix),decimalprecision:parseInt(e.decimals==="auto"?a.decimalprecision:d(e.decimals,e.decimalprecision,j.decimals,a.decimals,j.decimalprecision,a.decimalprecision),10),
forcedecimals:d(e.forcedecimals,j.forcedecimals,a.forcedecimals),decimalseparator:d(e.decimalseparator,j.decimalseparator,a.decimalseparator),thousandseparator:d(e.thousandseparator,j.thousandseparator,a.thousandseparator),thousandseparatorposition:d(g,j.thousandseparatorposition,a.thousandseparatorposition),indecimalseparator:h(e.indecimalseparator,j.indecimalseparator,a.indecimalseparator),inthousandseparator:h(e.inthousandseparator,j.inthousandseparator,a.inthousandseparator),scalerecursively:t,
maxscalerecursion:ja,scaleseparator:Q};if(r(i.inthousandseparator))this.baseConf._REGinthousandseparator=RegExp(K(i.inthousandseparator),"g");if(r(i.indecimalseparator))this.baseConf._REGindecimalseparator=RegExp(K(i.indecimalseparator));this.Y=[];if(!s){s={cacheStore:[],formatnumber:i.formatnumber,formatnumberscale:i.formatnumberscale,defaultnumberscale:i.defaultnumberscale,numberscaleunit:i.numberscaleunit.concat(),numberscalevalue:i.numberscalevalue.concat(),numberprefix:i.numberprefix,numbersuffix:i.numbersuffix,
decimalprecision:i.decimalprecision,forcedecimals:i.forcedecimals,decimalseparator:i.decimalseparator,thousandseparator:i.thousandseparator,thousandseparatorposition:i.thousandseparatorposition,indecimalseparator:i.indecimalseparator,inthousandseparator:i.inthousandseparator,scalerecursively:t,maxscalerecursion:ja,scaleseparator:Q};if(!j.useScaleRecursively||(s.numberscalevalue&&s.numberscalevalue.length)!=(s.numberscaleunit&&s.numberscaleunit.length))s.scalerecursively=t=0;v={cacheStore:[],formatnumber:s.formatnumber,
formatnumberscale:s.formatnumberscale,defaultnumberscale:s.defaultnumberscale,numberscaleunit:s.numberscaleunit.concat(),numberscalevalue:s.numberscalevalue.concat(),numberprefix:s.numberprefix,numbersuffix:s.numbersuffix,decimalprecision:parseInt(d(e.yaxisvaluedecimals,s.decimalprecision,2)),forcedecimals:d(e.forceyaxisvaluedecimals,s.forcedecimals),decimalseparator:s.decimalseparator,thousandseparator:s.thousandseparator,thousandseparatorposition:s.thousandseparatorposition.concat(),indecimalseparator:s.indecimalseparator,
inthousandseparator:s.inthousandseparator,scalerecursively:t,maxscalerecursion:ja,scaleseparator:Q};c={cacheStore:[],formatnumber:d(e.sformatnumber,j.sformatnumber,A.sformatnumber),formatnumberscale:d(e.sformatnumberscale,j.sformatnumberscale,A.sformatnumberscale),defaultnumberscale:h(e.sdefaultnumberscale,j.sdefaultnumberscale,s.defaultnumberscale),numberscaleunit:d(k,j.snumberscaleunit,A.snumberscaleunit).concat(),numberscalevalue:d(c,j.snumberscalevalue,A.snumberscalevalue).concat(),numberprefix:h(e.snumberprefix,
j.snumberprefix,A.snumberprefix),numbersuffix:h(e.snumbersuffix,j.snumbersuffix,A.snumbersuffix),decimalprecision:parseInt(d(e.syaxisvaluedecimals,e.sdecimals,e.decimals,j.sdecimals,A.sdecimals),10),forcedecimals:d(e.forcesyaxisvaluedecimals,e.sforcedecimals,e.forcedecimals,j.sforcedecimals,A.sforcedecimals),decimalseparator:d(e.decimalseparator,j.decimalseparator,A.decimalseparator),thousandseparator:d(e.thousandseparator,j.thousandseparator,A.thousandseparator),thousandseparatorposition:s.thousandseparatorposition.concat(),
indecimalseparator:d(e.indecimalseparator,j.indecimalseparator,A.indecimalseparator),inthousandseparator:d(e.inthousandseparator,j.inthousandseparator,A.inthousandseparator),scalerecursively:x,maxscalerecursion:la,scaleseparator:H};k=u({},c);k.decimalprecision=parseInt(d(e.sdecimals,e.decimals,e.syaxisvaluedecimals,j.sdecimals,A.sdecimals),10);k.forcedecimals=d(e.sforcedecimals,e.forcedecimals,e.forcesyaxisvaluedecimals,j.sforcedecimals,A.sforcedecimals);k.cacheStore=[];if(!j.useScaleRecursively||
(c.numberscalevalue&&c.numberscalevalue.length)!=(c.numberscaleunit&&c.numberscaleunit.length))c.scalerecursively=x=0;if(/^(bubble|scatter|selectscatter)$/.test(f))v.formatnumber=d(e.yformatnumber,v.formatnumber),v.formatnumberscale=d(e.yformatnumberscale,v.formatnumberscale),v.defaultnumberscale=h(e.ydefaultnumberscale,v.defaultnumberscale),v.numberscaleunit=d(aa,v.numberscaleunit),v.numberscalevalue=d(b,v.numberscalevalue),v.numberprefix=d(e.ynumberprefix,v.numberprefix),v.numbersuffix=d(e.ynumbersuffix,
v.numbersuffix),s.formatnumber=d(e.yformatnumber,s.formatnumber),s.formatnumberscale=d(e.yformatnumberscale,s.formatnumberscale),s.defaultnumberscale=h(e.ydefaultnumberscale,s.defaultnumberscale),s.numberscaleunit=d(e.ynumberscaleunit,s.numberscaleunit.concat()),s.numberscalevalue=d(e.ynumberscalevalue,s.numberscalevalue.concat()),s.numberprefix=d(e.ynumberprefix,s.numberprefix),s.numbersuffix=d(e.ynumbersuffix,s.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(f))c.formatnumberscale=l(e.sformatnumberscale,
"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(f))s.decimalprecision=d(e.decimals,"2");t&&(s.numberscalevalue.push(1),s.numberscaleunit.unshift(s.defaultnumberscale),v.numberscalevalue.push(1),v.numberscaleunit.unshift(v.defaultnumberscale));x&&(c.numberscalevalue.push(1),c.numberscaleunit.unshift(c.defaultnumberscale),k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale));this.Y[0]={yAxisLabelConf:v,dataLabelConf:s};this.Y[1]={yAxisLabelConf:c,
dataLabelConf:k};this.paramLabels=s;this.param1=v;this.param2=c;this.paramLabels2=k}this.paramX={cacheStore:[],formatnumber:d(e.xformatnumber,i.formatnumber),formatnumberscale:d(e.xformatnumberscale,i.formatnumberscale),defaultnumberscale:h(e.xdefaultnumberscale,i.defaultnumberscale),numberscaleunit:d(w,i.numberscaleunit.concat()),numberscalevalue:d(n,i.numberscalevalue.concat()),numberprefix:d(e.xnumberprefix,i.numberprefix),numbersuffix:d(e.xnumbersuffix,i.numbersuffix),decimalprecision:parseInt(d(e.xaxisvaluedecimals,
e.xaxisvaluesdecimals,i.decimalprecision,2),10),forcedecimals:d(e.forcexaxisvaluedecimals,0),decimalseparator:i.decimalseparator,thousandseparator:i.thousandseparator,thousandseparatorposition:i.thousandseparatorposition.concat(),indecimalseparator:i.indecimalseparator,inthousandseparator:i.inthousandseparator,scalerecursively:J,maxscalerecursion:D,scaleseparator:M};if(!j.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=
J=0;J&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:d(e.tickformatnumber,i.formatnumber),formatnumberscale:d(e.tickformatnumberscale,i.formatnumberscale),defaultnumberscale:h(e.tickdefaultnumberscale,i.defaultnumberscale),numberscaleunit:d(G,i.numberscaleunit.concat()),numberscalevalue:d(R,i.numberscalevalue.concat()),numberprefix:d(e.ticknumberprefix,i.numberprefix),numbersuffix:d(e.ticknumbersuffix,
i.numbersuffix),decimalprecision:parseInt(d(e.tickvaluedecimals,i.decimalprecision,"2")),forcedecimals:d(e.forcetickvaluedecimals,i.forcedecimals,0),decimalseparator:i.decimalseparator,thousandseparator:i.thousandseparator,thousandseparatorposition:i.thousandseparatorposition.concat(),indecimalseparator:i.indecimalseparator,inthousandseparator:i.inthousandseparator,scalerecursively:t,maxscalerecursion:ja,scaleseparator:Q};t&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));
this.timeConf={inputDateFormat:d(e.inputdateformat,e.dateformat,"mm/dd/yyyy"),outputDateFormat:d(e.outputdateformat,e.inputdateformat,e.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th",
"th","th","th","th","st"]}};H.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.paramLabels&&delete this.paramLabels;this.param1&&delete this.param1;this.param2&&delete this.param2;this.paramLabels2&&delete this.paramLabels2;this.csConf&&delete this.csConf;this.chartAPI&&delete this.chartAPI;this.baseConf&&delete this.baseConf;
this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(e,j){var s=this.baseConf,i=this.csConf,k=this.chartAPI,w=l(e.scalerecursively,s.scalerecursively),G=l(e.maxscalerecursion,s.maxscalerecursion),aa=r(e.scaleseparator,s.scaleseparator),v,n,u,b,f,a,j=l(j,this.Y.length);r(e.numberscaleunit)&&(v=e.numberscaleunit.split(","));r(e.numberscalevalue)&&(n=e.numberscalevalue.split(","));G||(G=-1);if(r(e.thousandseparatorposition)){u=
e.thousandseparatorposition.split(",");b=u.length;for(a=A.thousandseparatorposition[0];b--;)(f=l(M(u[b])))?a=f:f=a,u[b]=f}s={cacheStore:[],formatnumber:d(e.formatnumber,s.formatnumber),formatnumberscale:d(e.formatnumberscale,s.formatnumberscale),defaultnumberscale:h(e.defaultnumberscale,s.defaultnumberscale),numberscaleunit:d(v,s.numberscaleunit).concat(),numberscalevalue:d(n,s.numberscalevalue).concat(),numberprefix:h(e.numberprefix,s.numberprefix),numbersuffix:h(e.numbersuffix,s.numbersuffix),forcedecimals:d(e.forcedecimals,
s.forcedecimals),decimalprecision:parseInt(e.decimals==="auto"?i.decimalprecision:d(e.decimals,s.decimalprecision),10),decimalseparator:d(e.decimalseparator,s.decimalseparator),thousandseparator:d(e.thousandseparator,s.thousandseparator),thousandseparatorposition:d(u,s.thousandseparatorposition),indecimalseparator:h(e.indecimalseparator,s.indecimalseparator),inthousandseparator:h(e.inthousandseparator,s.inthousandseparator),scalerecursively:w,maxscalerecursion:G,scaleseparator:aa};if(!k.useScaleRecursively||
(s.numberscalevalue&&s.numberscalevalue.length)!=(s.numberscaleunit&&s.numberscaleunit.length))s.scalerecursively=w=0;k={cacheStore:[],formatnumber:s.formatnumber,formatnumberscale:s.formatnumberscale,defaultnumberscale:s.defaultnumberscale,numberscaleunit:s.numberscaleunit.concat(),numberscalevalue:s.numberscalevalue.concat(),numberprefix:s.numberprefix,numbersuffix:s.numbersuffix,decimalprecision:parseInt(d(e.yaxisvaluedecimals,s.decimalprecision,2)),forcedecimals:d(e.forceyaxisvaluedecimals,s.forcedecimals),
decimalseparator:s.decimalseparator,thousandseparator:s.thousandseparator,thousandseparatorposition:s.thousandseparatorposition.concat(),indecimalseparator:s.indecimalseparator,inthousandseparator:s.inthousandseparator,scalerecursively:w,maxscalerecursion:G,scaleseparator:aa};w&&(s.numberscalevalue.push(1),s.numberscaleunit.unshift(s.defaultnumberscale),k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale));this.Y[j]={dataLabelConf:s,yAxisLabelConf:k}},percentValue:function(d){var e=
this.percentStrCacheStore[d];e===void 0&&(e=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,e=this.percentStrCacheStore[d]=aa(i(d,e,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return e},getCleanValue:function(d,e){var h=this.cleaneValueCacheStore[d];if(h===void 0){var h=d,i=this.baseConf;h+=V;i._REGinthousandseparator&&(h=h.replace(i._REGinthousandseparator,V));
i._REGindecimalseparator&&(h=h.replace(i._REGindecimalseparator,w));h=parseFloat(h);h=isFinite(h)?h:NaN;this.cleaneValueCacheStore[d]=h=isNaN(h)?null:e?M(h):h}return h},dataLabels:function(d,e){var h=this.Y[e]||(e?this.Y[1]:this.Y[0]),i,h=h&&h.dataLabelConf||this.baseConf;i=h.cacheStore[d];i===void 0&&(i=h.cacheStore[d]=D(d,h));return i},yAxis:function(d,e){var h=this.Y[e]||(e?this.Y[1]:this.Y[0]),i,h=h&&h.yAxisLabelConf||this.baseConf;i=h.cacheStore[d];i===void 0&&(i=h.cacheStore[d]=D(d,h));return i},
xAxis:function(d){var e=this.paramX.cacheStore[d];e===void 0&&(e=this.paramX.cacheStore[d]=D(d,this.paramX));return e},sYAxis:function(d){var e=this.Y[1],h,e=e&&e.yAxisLabelConf||this.baseConf;h=e.cacheStore[d];h===void 0&&(h=e.cacheStore[d]=D(d,e));return h},scale:function(d){var e=this.paramScale.cacheStore[d];e===void 0&&(e=this.paramScale.cacheStore[d]=D(d,this.paramScale));return e},getCleanTime:function(d){var e;this.timeConf.inputDateFormat&&Date.parseExact&&(e=Date.parseExact(d,this.timeConf.inputDateFormat));
return e&&e.getTime()},getDateValue:function(d){var e,h,i,d=/^dd/.test(this.timeConf.inputDateFormat)&&d&&d.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||d;e=new Date(d);h=e.getTime();!h&&d&&/\:/.test(d)&&(d=d.split(":"),h=l(d[0],0),i=l(d[1],0),d=l(d[2],0),h=h>23?h===24&&i===0&&d===0?h:23:h,i=i>59?59:i,d=d>59?59:d,e=new Date,e.setHours(h),e.setMinutes(i),e.setSeconds(d),h=e.getTime());return{ms:h,date:e}},getFormatedDate:function(e,h){var i=typeof e==="object"&&e||new Date(e),l=this.timeConf,
k=d(h,l.outputDateFormat),w=i.getFullYear(),r=i.getMonth(),A=i.getDate(),v=i.getDay(),n=i.getMinutes(),G=i.getSeconds(),i=i.getHours(),n=n>9?V+n:ga+n,G=G>9?V+G:ga+G,i=i>9?V+i:ga+i;k.match(/dnl/)&&(k=k.replace(/dnl/ig,l.days[v]));k.match(/dns/)&&(k=k.replace(/dns/ig,l.days[v]&&l.days[v].substr(0,3)));k.match(/dd/)&&(k=k.replace(/dd/ig,A));k.match(/mnl/)&&(k=k.replace(/mnl/ig,l.months[r]));k.match(/mns/)&&(k=k.replace(/mns/ig,l.months[r]&&l.months[r].substr(0,3)));k.match(/mm/)&&(k=k.replace(/mm/ig,
r+1));k.match(/yyyy/)&&(k=k.replace(/yyyy/ig,w));k.match(/yy/)&&(k=k.replace(/yy/ig,(w%1E3%100+"").replace(/^(\d)$/,"0$1")));k.match(/hh12/)&&(k=k.replace(/hh12/ig,i%12||12));k.match(/hh/)&&(k=k.replace(/hh/ig,i));k.match(/mn/)&&(k=k.replace(/mn/ig,n));k.match(/ss/)&&(k=k.replace(/ss/ig,G));k.match(/ampm/)&&(k=k.replace(/ampm/ig,i<12?"AM":"PM"));k.match(/ds/)&&(k=k.replace(/ds/ig,l.daySuffix[A]));return k}};H.prototype.constructor=H;var D=function(e,h){if(e!==null){var e=Number(e),k=e+V,r;r=h.formatnumberscale==
1?h.defaultnumberscale:V;var A;A=(A=k.split(w)[1])?A.length:h.forcedecimals?"2":V;if(h.formatnumberscale==1){var u,k=e;r=h.numberscalevalue;u=h.numberscaleunit;var D={},K=h.defaultnumberscale,v=0,n,Q=[],b=[];if(h.scalerecursively){for(v=0;v<r.length;v++)if(n=l(r[v])||1E3,Math.abs(Number(k))>=n&&v<r.length-1)K=k%n,k=(k-K)/n,K!=0&&(Q.push(K),b.push(u[v]));else{Q.push(k);b.push(u[v]);break}Q.reverse();b.reverse();D.value=Q;D.scale=b}else{if(r.length===u.length)for(v=0;v<r.length;v++)if((n=l(r[v])||1E3)&&
Math.abs(Number(k))>=n)K=u[v]||V,k=Number(k)/n;else break;D.value=k;D.scale=K}u=D;e=k=u.value;r=u.scale}if(h.scalerecursively&&h.formatnumberscale!=0){r=u.value;u=u.scale;D=h.maxscalerecursion==-1?r.length:Math.min(r.length,h.maxscalerecursion);if(h.formatnumber==1){k="";for(Q=0;Q<D;Q++)v=Q==0?r[Q]:Math.abs(r[Q]),n=v+V,Q==D-1&&(n=i(v,d(h.decimalprecision,A),h.forcedecimals)),k=k+aa(n,h.decimalseparator,h.thousandseparator,h.thousandseparatorposition)+u[Q]+(Q<D-1?h.scaleseparator:"")}else{k="";for(Q=
0;Q<D;Q++)k=k+(Q==0?r[Q]:Math.abs(r[Q])+V)+u[Q]+(Q<D-1?h.scaleseparator:"")}k=(h.numberprefix||V)+k+(h.numbersuffix||V);delete r;delete u}else h.formatnumber==1&&(k=i(e,d(h.decimalprecision,A),h.forcedecimals),k=aa(k,h.decimalseparator,h.thousandseparator,h.thousandseparatorposition)),k=(h.numberprefix||V)+k+r+(h.numbersuffix||V);return k}};return H}()}]);
FusionCharts(["private","modules.renderer.js-raphael",function(){var i=this.hcLib,l,u=window.Raphael,r;(function(d){var h=/[\.\/]/,l=function(){},e=function(d,e){return d-e},k,r,u={n:{}},w=i.eve=function(d,h){var i=r,l=Array.prototype.slice.call(arguments,2),A=w.listeners(d),u=0,H,D=[],q={},j=[],s=k;k=d;for(var M=r=0,ea=A.length;M<ea;M++)"zIndex"in A[M]&&(D.push(A[M].zIndex),A[M].zIndex<0&&(q[A[M].zIndex]=A[M]));for(D.sort(e);D[u]<0;)if(H=q[D[u++]],j.push(H.apply(h,l)),r)return r=i,j;for(M=0;M<ea;M++)if(H=
A[M],"zIndex"in H)if(H.zIndex==D[u]){j.push(H.apply(h,l));if(r)break;do if(u++,(H=q[D[u]])&&j.push(H.apply(h,l)),r)break;while(H)}else q[H.zIndex]=H;else if(j.push(H.apply(h,l)),r)break;r=i;k=s;return j.length?j:null};w.listeners=function(d){var d=d.split(h),e=u,i,l,k,r,w,D,q,j=[e],s=[];k=0;for(r=d.length;k<r;k++){q=[];w=0;for(D=j.length;w<D;w++){e=j[w].n;i=[e[d[k]],e["*"]];for(l=2;l--;)if(e=i[l])q.push(e),s=s.concat(e.f||[])}j=q}return s};w.on=function(d,e){for(var i=d.split(h),k=u,r=0,w=i.length;r<
w;r++)k=k.n,!k[i[r]]&&(k[i[r]]={n:{}}),k=k[i[r]];k.f=k.f||[];r=0;for(w=k.f.length;r<w;r++)if(k.f[r]==e)return l;k.f.push(e);return function(d){if(+d==+d)e.zIndex=+d}};w.stop=function(){r=1};w.nt=function(d){if(d)return RegExp("(?:\\.|\\/|^)"+d+"(?:\\.|\\/|$)").test(k);return k};w.off=w.unbind=function(d,e){var i=d.split(h),k,l,r,w,D,q,j=[u];w=0;for(D=i.length;w<D;w++)for(q=0;q<j.length;q+=r.length-2){r=[q,1];k=j[q].n;if(i[w]!="*")k[i[w]]&&r.push(k[i[w]]);else for(l in k)k.hasOwnProperty(l)&&r.push(k[l]);
j.splice.apply(j,r)}w=0;for(D=j.length;w<D;w++)for(k=j[w];k.n;){if(e){if(k.f){q=0;for(i=k.f.length;q<i;q++)if(k.f[q]==e){k.f.splice(q,1);break}!k.f.length&&delete k.f}for(l in k.n)if(k.n.hasOwnProperty(l)&&k.n[l].f){r=k.n[l].f;q=0;for(i=r.length;q<i;q++)if(r[q]==e){r.splice(q,1);break}!r.length&&delete k.n[l].f}}else for(l in delete k.f,k.n)k.n.hasOwnProperty(l)&&k.n[l].f&&delete k.n[l].f;k=k.n}};w.once=function(d,e){var h=function(){var i=e.apply(this,arguments);w.unbind(d,h);return i};return w.on(d,
h)};w.version="0.3.4";w.toString=function(){return"You are running Eve 0.3.4"};typeof module!="undefined"&&module.exports?module.exports=w:typeof define!="undefined"?define("eve",[],function(){return w}):d.eve=w})(i);l=i.eve;(function(){function d(a){if(d.is(a,"function"))return ia?a():l.on("raphael.DOMload",a);else if(d.is(a,Da))return d._engine.create[W](d,a.splice(0,3+d.is(a[0],da))).add(a);else{var b=Array.prototype.slice.call(arguments,0);if(d.is(b[b.length-1],"function")){var g=b.pop();return ia?
g.call(d._engine.create[W](d,b)):l.on("raphael.DOMload",function(){g.call(d._engine.create[W](d,b))})}else return d._engine.create[W](d,arguments)}}function h(a){if(Object(a)!==a)return a;var b=new a.constructor,g;for(g in a)a[j](g)&&(b[g]=h(a[g]));return b}function i(){return this.hex}function e(a,b){for(var g=[],c=0,d=a.length;d-2*!b>c;c+=2){var f=[{x:+a[c-2],y:+a[c-1]},{x:+a[c],y:+a[c+1]},{x:+a[c+2],y:+a[c+3]},{x:+a[c+4],y:+a[c+5]}];b?c?d-4==c?f[3]={x:+a[0],y:+a[1]}:d-2==c&&(f[2]={x:+a[0],y:+a[1]},
f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[d-2],y:+a[d-1]}:d-4==c?f[3]=f[2]:c||(f[0]={x:+a[c],y:+a[c+1]});g.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return g}function k(a,b,c,g,d,f,e,z,C){C==null&&(C=1);for(var C=(C>1?1:C<0?0:C)/2,F=[-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],E=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],t=
0,m=0;m<12;m++){var L=C*F[m]+C,h=L*(L*(-3*a+9*c-9*d+3*e)+6*a-12*c+6*d)-3*a+3*c,L=L*(L*(-3*b+9*g-9*f+3*z)+6*b-12*g+6*f)-3*b+3*g;t+=E[m]*Ha(h*h+L*L)}return C*t}function u(a,b,c,g,d,f,e,z,C){if(!(C<0||k(a,b,c,g,d,f,e,z)<C)){var F=0.5,E=1-F,L;for(L=k(a,b,c,g,d,f,e,z,E);J(L-C)>0.01;)F/=2,E+=(L<C?1:-1)*F,L=k(a,b,c,g,d,f,e,z,E);return E}}function ga(a,b,c){for(var a=d._path2curve(a),b=d._path2curve(b),g,f,e,z,C,F,E,L,m,h,p=c?0:[],o=0,Wa=a.length;o<Wa;o++)if(m=a[o],m[0]=="M")g=C=m[1],f=F=m[2];else{m[0]==
"C"?(m=[g,f].concat(m.slice(1)),g=m[6],f=m[7]):(m=[g,f,g,f,C,F,C,F],g=C,f=F);for(var O=0,Ra=b.length;O<Ra;O++)if(h=b[O],h[0]=="M")e=E=h[1],z=L=h[2];else{h[0]=="C"?(h=[e,z].concat(h.slice(1)),e=h[6],z=h[7]):(h=[e,z,e,z,E,L,E,L],e=E,z=L);var va;var i=m,Z=h;va=c;var Ua=d.bezierBBox(i),y=d.bezierBBox(Z);if(d.isBBoxIntersect(Ua,y)){for(var Ua=k.apply(0,i),y=k.apply(0,Z),Ua=~~(Ua/5),y=~~(y/5),I=[],jb=[],N={},l=va?0:[],Sa=0;Sa<Ua+1;Sa++){var Xa=d.findDotsAtSegment.apply(d,i.concat(Sa/Ua));I.push({x:Xa.x,
y:Xa.y,t:Sa/Ua})}for(Sa=0;Sa<y+1;Sa++)Xa=d.findDotsAtSegment.apply(d,Z.concat(Sa/y)),jb.push({x:Xa.x,y:Xa.y,t:Sa/y});for(Sa=0;Sa<Ua;Sa++)for(i=0;i<y;i++){var ha=I[Sa],j=I[Sa+1],Z=jb[i],Xa=jb[i+1],$=J(j.x-ha.x)<0.001?"y":"x",v=J(Xa.x-Z.x)<0.001?"y":"x",Qa;b:{Qa=ha.x;var T=ha.y,r=j.x,s=j.y,P=Z.x,Y=Z.y,ma=Xa.x,Ya=Xa.y;if(!(t(Qa,r)<x(P,ma)||x(Qa,r)>t(P,ma)||t(T,s)<x(Y,Ya)||x(T,s)>t(Y,Ya))){var w=(Qa-r)*(Y-Ya)-(T-s)*(P-ma);if(w){var q=((Qa*s-T*r)*(P-ma)-(Qa-r)*(P*Ya-Y*ma))/w,w=((Qa*s-T*r)*(Y-Ya)-(T-s)*
(P*Ya-Y*ma))/w,ja=+q.toFixed(2),hb=+w.toFixed(2);if(!(ja<+x(Qa,r).toFixed(2)||ja>+t(Qa,r).toFixed(2)||ja<+x(P,ma).toFixed(2)||ja>+t(P,ma).toFixed(2)||hb<+x(T,s).toFixed(2)||hb>+t(T,s).toFixed(2)||hb<+x(Y,Ya).toFixed(2)||hb>+t(Y,Ya).toFixed(2))){Qa={x:q,y:w};break b}}}Qa=void 0}Qa&&N[Qa.x.toFixed(4)]!=Qa.y.toFixed(4)&&(N[Qa.x.toFixed(4)]=Qa.y.toFixed(4),ha=ha.t+J((Qa[$]-ha[$])/(j[$]-ha[$]))*(j.t-ha.t),Z=Z.t+J((Qa[v]-Z[v])/(Xa[v]-Z[v]))*(Xa.t-Z.t),ha>=0&&ha<=1&&Z>=0&&Z<=1&&(va?l++:l.push({x:Qa.x,y:Qa.y,
t1:ha,t2:Z})))}va=l}else va=va?0:[];if(c)p+=va;else{Ua=0;for(y=va.length;Ua<y;Ua++)va[Ua].segment1=o,va[Ua].segment2=O,va[Ua].bez1=m,va[Ua].bez2=h;p=p.concat(va)}}}return p}function w(a,b,g,c,d,f){a!=null?(this.a=+a,this.b=+b,this.c=+g,this.d=+c,this.e=+d,this.f=+f):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function Q(){return this.x+n+this.y+n+this.width+" \u00d7 "+this.height}function K(a,b,g,c,d,f){function e(a,b){var ra,g,c,d;c=a;for(g=0;g<8;g++){d=((F*c+C)*c+z)*c-a;if(J(d)<b)return c;
ra=(3*F*c+2*C)*c+z;if(J(ra)<1.0E-6)break;c-=d/ra}ra=0;g=1;c=a;if(c<ra)return ra;if(c>g)return g;for(;ra<g;){d=((F*c+C)*c+z)*c;if(J(d-a)<b)break;a>d?ra=c:g=c;c=(g-ra)/2+ra}return c}var z=3*b,C=3*(c-b)-z,F=1-z-C,E=3*g,m=3*(d-g)-E,L=1-E-m;return function(a,b){var ra=e(a,b);return((L*ra+m)*ra+E)*ra}(a,1/(200*f))}function G(a,b){var c=[],g={};this.ms=b;this.times=1;if(a){for(var d in a)a[j](d)&&(g[oa(d)]=a[d],c.push(oa(d)));c.sort(Ma)}this.anim=g;this.top=c[c.length-1];this.percents=c}function aa(a,c,
g,f,e,z){var g=oa(g),C,F,L,t,h,p,o=a.ms,O={},va={},x={};if(f){p=0;for(i=sa.length;p<i;p++){var Ra=sa[p];if(Ra.el.id==c.id&&Ra.anim==a){Ra.percent!=g?(sa.splice(p,1),L=1):F=Ra;c.attr(Ra.totalOrigin);break}}}else f=+va;p=0;for(var i=a.percents.length;p<i;p++)if(a.percents[p]==g||a.percents[p]>f*a.top){g=a.percents[p];h=a.percents[p-1]||0;o=o/a.top*(g-h);t=a.percents[p+1];C=a.anim[g];break}else f&&c.attr(a.anim[a.percents[p]]);if(C){if(F)F.initstatus=f,F.start=new Date-F.ms*f;else{for(var Z in C)if(C[j](Z)&&
(Za[j](Z)||c.ca[Z]))switch(O[Z]=c.attr(Z),O[Z]==null&&(O[Z]=Pa[Z]),va[Z]=C[Z],Za[Z]){case da:x[Z]=(va[Z]-O[Z])/o;break;case "colour":O[Z]=d.getRGB(O[Z]);p=d.getRGB(va[Z]);x[Z]={r:(p.r-O[Z].r)/o,g:(p.g-O[Z].g)/o,b:(p.b-O[Z].b)/o};break;case "path":p=E(O[Z],va[Z]);Ra=p[1];O[Z]=p[0];x[Z]=[];p=0;for(i=O[Z].length;p<i;p++){x[Z][p]=[0];for(var J=1,Ua=O[Z][p].length;J<Ua;J++)x[Z][p][J]=(Ra[p][J]-O[Z][p][J])/o}break;case "transform":p=c._;if(i=jb(p[Z],va[Z])){O[Z]=i.from;va[Z]=i.to;x[Z]=[];x[Z].real=!0;p=
0;for(i=O[Z].length;p<i;p++){x[Z][p]=[O[Z][p][0]];J=1;for(Ua=O[Z][p].length;J<Ua;J++)x[Z][p][J]=(va[Z][p][J]-O[Z][p][J])/o}}else i=c.matrix||new w,p={_:{transform:p.transform},getBBox:function(){return c.getBBox(1)}},O[Z]=[i.a,i.b,i.c,i.d,i.e,i.f],Wa(p,va[Z]),va[Z]=p._.transform,x[Z]=[(p.matrix.a-i.a)/o,(p.matrix.b-i.b)/o,(p.matrix.c-i.c)/o,(p.matrix.d-i.d)/o,(p.matrix.e-i.e)/o,(p.matrix.f-i.f)/o];break;case "csv":i=R(C[Z])[b](H);Ra=R(O[Z])[b](H);if(Z=="clip-rect"){O[Z]=Ra;x[Z]=[];for(p=Ra.length;p--;)x[Z][p]=
(i[p]-O[Z][p])/o}va[Z]=i;break;default:i=[][X](C[Z]);Ra=[][X](O[Z]);x[Z]=[];for(p=c.ca[Z].length;p--;)x[Z][p]=((i[p]||0)-(Ra[p]||0))/o}p=C.easing;Z=d.easing_formulas[p];if(!Z)if((Z=R(p).match(Ka))&&Z.length==5){var y=Z;Z=function(a){return K(a,+y[1],+y[2],+y[3],+y[4],o)}}else Z=m;p=C.start||a.start||+new Date;Ra={anim:a,percent:g,timestamp:p,start:p+(a.del||0),status:0,initstatus:f||0,stop:!1,ms:o,easing:Z,from:O,diff:x,to:va,el:c,callback:C.callback,prev:h,next:t,repeat:z||a.times,origin:c.attr(),
totalOrigin:e};sa.push(Ra);if(f&&!F&&!L&&(Ra.stop=!0,Ra.start=new Date-o*f,sa.length==1))return Ca();if(L)Ra.start=new Date-Ra.ms*f;sa.length==1&&ob(Ca)}l("raphael.anim.start."+c.id,c,a)}}function A(a){for(var b=0;b<sa.length;b++)sa[b].el.paper==a&&sa.splice(b--,1)}r=d;d.version="2.1.0";d.eve=l;var ia,H=/[, ]+/,D={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},q=/\{(\d+)\}/g,j="hasOwnProperty",s={doc:document,win:window},fa=function(){};d.ca=fa.prototype;var ea={was:Object.prototype[j].call(s.win,
"Raphael"),is:s.win.Raphael},U=function(){this.ca=this.customAttributes=new fa;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca},W="apply",X="concat",v=d._supportsTouch="createTouch"in s.doc,n=" ",R=String,b="split",f="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[b](n),a=d._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},g=R.prototype.toLowerCase,c=Math,t=c.max,x=c.min,J=c.abs,ja=c.pow,
la=c.cos,ba=c.sin,Ha=c.sqrt,Ba=c.PI,qa=Ba/180,da="number",Da="array",ya=Object.prototype.toString;d._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var Ea=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,za={NaN:1,Infinity:1,"-Infinity":1},Ka=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,
$a=c.round,oa=parseFloat,La=parseInt,db=R.prototype.toUpperCase,Pa=d._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"",
"stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,"shape-rendering":"default",target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},Za=d._availableAnimAttrs={blur:da,"clip-rect":"csv","clip-path":"path",cx:da,cy:da,fill:"colour","fill-opacity":da,"font-size":da,height:da,opacity:da,path:"path",r:da,rx:da,ry:da,stroke:"colour","stroke-opacity":da,"stroke-width":da,transform:"transform",width:da,
x:da,y:da},Ia=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,bb={hs:1,rg:1},Ta=/,?([achlmqrstvxz]),?/gi,eb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
cb=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,fb=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
d._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var ab={},Ma=function(a,b){return oa(a)-oa(b)},Ga=function(){},m=function(a){return a},o=d._rectPath=function(a,b,c,g,d){if(d)return[["M",a+d,b],["l",c-d*2,0],["a",d,d,0,0,1,d,d],["l",0,g-d*2],["a",d,d,0,0,1,-d,d],["l",d*2-c,0],["a",d,d,0,0,1,-d,-d],["l",0,d*2-g],["a",d,d,0,0,1,d,-d],["z"]];return[["M",a,b],["l",c,0],["l",0,g],["l",-c,0],["z"]]},p=function(a,b,c,g){g==null&&(g=c);return[["M",a,b],["m",0,-g],["a",c,g,0,1,1,0,2*g],["a",c,g,0,1,1,0,-2*g],["z"]]},
I=d._getPath={group:function(){return!1},path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return p(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return p(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return o(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return o(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return o(a.x,a.y,a.width,a.height)}},N=d.mapPath=function(a,b){if(!b)return a;var c,g,d,f,e,z,C,a=E(a);d=0;for(e=a.length;d<e;d++){C=a[d];f=1;
for(z=C.length;f<z;f+=2)c=b.x(C[f],C[f+1]),g=b.y(C[f],C[f+1]),C[f]=c,C[f+1]=g}return a};d.pick=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a};d._g=s;d.type=s.win.ENABLE_RED_CANVAS&&(s.win.CanvasRenderingContext2D||s.doc.createElement("canvas").getContext)?"CANVAS":s.win.SVGAngle||s.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(d.type=="VML"){var T=s.doc.createElement("div");T.innerHTML=
'<v:shape adj="1"/>';T=T.firstChild;T.style.behavior="url(#default#VML)";if(!(T&&typeof T.adj=="object"))return d.type="";T=null}d.svg=!((d.vml=d.type=="VML")||(d.canvas=d.type=="CANVAS"));d._Paper=U;d.fn=U=U.prototype=d.prototype;d._id=0;d._oid=0;d.is=function(a,b){b=g.call(b);if(b=="finite")return!za[j](+a);if(b=="array")return a instanceof Array;if(b==="object"&&(a===void 0||a===null))return!1;return b=="null"&&a===null||b==typeof a&&a!==null||b=="object"&&a===Object(a)||b=="array"&&Array.isArray&&
Array.isArray(a)||ya.call(a).slice(8,-1).toLowerCase()==b};d.angle=function(a,b,g,f,e,z){if(e==null){a-=g;b-=f;if(!a&&!b)return 0;return(c.atan2(-b,-a)*180/Ba+540)%360}else return d.angle(a,b,e,z)-d.angle(g,f,e,z)};d.rad=function(a){return a%360*qa};d.deg=function(a){return a*180/Ba%360};d.snapTo=function(a,b,c){c=d.is(c,"finite")?c:10;if(d.is(a,Da))for(var g=a.length;g--;){if(J(a[g]-b)<=c)return a[g]}else{a=+a;g=b%a;if(g<c)return b-g;if(g>a-c)return b-g+a}return b};d.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,
b).toUpperCase()}}(/[xy]/g,function(a){var b=c.random()*16|0;return(a=="x"?b:b&3|8).toString(16)});d.setWindow=function(a){l("raphael.setWindow",d,s.win,a);s.win=a;s.doc=s.win.document;d._engine.initWin&&d._engine.initWin(s.win)};var P=function(a){if(d.vml){var b=/^\s+|\s+$/g,c;try{var g=new ActiveXObject("htmlfile");g.write("<body>");g.close();c=g.body}catch(f){c=createPopup().document.body}var e=c.createTextRange();P=$(function(a){try{c.style.color=R(a).replace(b,"");var g=e.queryCommandValue("ForeColor");
return"#"+("000000"+((g&255)<<16|g&65280|(g&16711680)>>>16).toString(16)).slice(-6)}catch(d){return"none"}})}else{var z=s.doc.createElement("i");z.title="Rapha\u00ebl Colour Picker";z.style.display="none";s.doc.body.appendChild(z);P=$(function(a){z.style.color=a;return s.doc.defaultView.getComputedStyle(z,"").getPropertyValue("color")})}return P(a)},y=function(){return"hsb("+[this.h,this.s,this.b]+")"},ma=function(){return"hsl("+[this.h,this.s,this.l]+")"},pa=function(){return this.hex},Aa=function(a,
b,c){if(b==null&&d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a)c=a.b,b=a.g,a=a.r;if(b==null&&d.is(a,"string"))c=d.getRGB(a),a=c.r,b=c.g,c=c.b;if(a>1||b>1||c>1)a/=255,b/=255,c/=255;return[a,b,c]},ka=function(a,b,c,g){a*=255;b*=255;c*=255;a={r:a,g:b,b:c,hex:d.rgb(a,b,c),toString:pa};d.is(g,"finite")&&(a.opacity=g);return a};d.color=function(a){var b;d.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=d.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):d.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(b=d.hsl2rgb(a),
a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):(d.is(a,"string")&&(a=d.getRGB(a)),d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(b=d.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=d.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=pa;return a};d.hsb2rgb=function(a,b,c,g){if(this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a)c=a.b,b=a.s,a=a.h,g=a.o;a*=360;var d,f,z,a=a%360/60;z=c*b;b=z*(1-J(a%2-1));c=d=f=c-z;a=~~a;c+=[z,b,0,0,b,z][a];d+=[b,z,z,b,0,0][a];f+=[0,0,b,z,z,b][a];return ka(c,d,f,g)};
d.hsl2rgb=function(a,b,c,g){if(this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a)c=a.l,b=a.s,a=a.h;if(a>1||b>1||c>1)a/=360,b/=100,c/=100;a*=360;var d,f,z,a=a%360/60;z=2*b*(c<0.5?c:1-c);b=z*(1-J(a%2-1));c=d=f=c-z/2;a=~~a;c+=[z,b,0,0,b,z][a];d+=[b,z,z,b,0,0][a];f+=[0,0,b,z,z,b][a];return ka(c,d,f,g)};d.rgb2hsb=function(a,b,c){var c=Aa(a,b,c),a=c[0],b=c[1],c=c[2],g,d;g=t(a,b,c);d=g-x(a,b,c);return{h:((d==0?0:g==a?(b-c)/d:g==b?(c-a)/d+2:(a-b)/d+4)+360)%6*60/360,s:d==0?0:d/g,b:g,toString:y}};d.rgb2hsl=function(a,
b,c){var c=Aa(a,b,c),a=c[0],b=c[1],c=c[2],g,d,f;d=t(a,b,c);g=x(a,b,c);f=d-g;g=(d+g)/2;return{h:((f==0?0:d==a?(b-c)/f:d==b?(c-a)/f+2:(a-b)/f+4)+360)%6*60/360,s:f==0?0:g<0.5?f/(2*g):f/(2-2*g),l:g,toString:ma}};d._path2string=function(){return this.join(",").replace(Ta,"$1")};var $=d._cacher=function(a,b,c){function g(){var d=Array.prototype.slice.call(arguments,0),f=d.join("\u2400"),z=g.cache=g.cache||{},e=g.count=g.count||[];if(z[j](f)){a:for(var d=e,e=f,C=0,F=d.length;C<F;C++)if(d[C]===e){d.push(d.splice(C,
1)[0]);break a}return c?c(z[f]):z[f]}e.length>=1E3&&delete z[e.shift()];e.push(f);z[f]=a[W](b,d);return c?c(z[f]):z[f]}return g};d._preload=function(a,b){var c=s.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;s.doc.body.removeChild(this)};c.onerror=function(){s.doc.body.removeChild(this)};s.doc.body.appendChild(c);c.src=a};d.getRGB=$(function(a){var c;a&&d.is(a,"object")&&"opacity"in a&&(c=a.opacity);if(!a||(a=
R(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:i};if(a=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:i};!(bb[j](a.toLowerCase().substring(0,2))||a.charAt()=="#")&&(a=P(a));var g,f,z,e;if(a=a.match(Ea)){a[2]&&(z=La(a[2].substring(5),16),f=La(a[2].substring(3,5),16),g=La(a[2].substring(1,3),16));a[3]&&(z=La((e=a[3].charAt(3))+e,16),f=La((e=a[3].charAt(2))+e,16),g=La((e=a[3].charAt(1))+e,16));a[4]&&(e=a[4][b](Ia),g=oa(e[0]),e[0].slice(-1)=="%"&&(g*=2.55),f=oa(e[1]),e[1].slice(-1)==
"%"&&(f*=2.55),z=oa(e[2]),e[2].slice(-1)=="%"&&(z*=2.55),a[1].toLowerCase().slice(0,4)=="rgba"&&(c=oa(e[3])),e[3]&&e[3].slice(-1)=="%"&&(c/=100));if(a[5])return e=a[5][b](Ia),g=oa(e[0]),e[0].slice(-1)=="%"&&(g*=2.55),f=oa(e[1]),e[1].slice(-1)=="%"&&(f*=2.55),z=oa(e[2]),e[2].slice(-1)=="%"&&(z*=2.55),(e[0].slice(-3)=="deg"||e[0].slice(-1)=="\u00b0")&&(g/=360),a[1].toLowerCase().slice(0,4)=="hsba"&&(c=oa(e[3])),e[3]&&e[3].slice(-1)=="%"&&(c/=100),d.hsb2rgb(g,f,z,c);if(a[6])return e=a[6][b](Ia),g=oa(e[0]),
e[0].slice(-1)=="%"&&(g*=2.55),f=oa(e[1]),e[1].slice(-1)=="%"&&(f*=2.55),z=oa(e[2]),e[2].slice(-1)=="%"&&(z*=2.55),(e[0].slice(-3)=="deg"||e[0].slice(-1)=="\u00b0")&&(g/=360),a[1].toLowerCase().slice(0,4)=="hsla"&&(c=oa(e[3])),e[3]&&e[3].slice(-1)=="%"&&(c/=100),d.hsl2rgb(g,f,z,c);a={r:g,g:f,b:z,toString:i};a.hex="#"+(16777216|z|f<<8|g<<16).toString(16).slice(1);d.is(c,"finite")&&(a.opacity=c);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:i}},d);d.tintshade=$(function(a,b){var c=d.getRGB(a),
g;g=255;b<0&&(b*=-1,g=0);b>1&&(b=1);g=b===0?c:{r:g-(g-c.r)*b,g:g-(g-c.g)*b,b:g-(g-c.b)*b,toString:i};g.hex=d.rgb(g.r,g.g,g.b);c.error&&(g.error=c.error);"opacity"in c?(g.rgba="rgba("+[g.r,g.g,g.b,c.opacity].join(",")+")",g.opacity=c.opacity):g.rgba="rgb("+[g.r,g.g,g.b].join(",")+")";return g},d);d.hsb=$(function(a,b,c){return d.hsb2rgb(a,b,c).hex});d.hsl=$(function(a,b,c){return d.hsl2rgb(a,b,c).hex});d.rgb=$(function(a,b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});d.getColor=function(a){var a=
this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75},b=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;if(a.h>1)a.h=0,a.s-=0.2,a.s<=0&&(this.getColor.start={h:0,s:1,b:a.b});return b.hex};d.getColor.reset=function(){delete this.start};d.parsePathString=function(a){if(!a)return null;var b=S(a);if(b.arr)return na(b.arr);var c={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},g=[];d.is(a,Da)&&d.is(a[0],Da)&&(g=na(a));g.length||R(a).replace(eb,function(a,b,d){var f=[],a=b.toLowerCase();d.replace(fb,function(a,
b){b&&f.push(+b)});a=="m"&&f.length>2&&(g.push([b][X](f.splice(0,2))),a="l",b=b=="m"?"l":"L");if(a=="r")g.push([b][X](f));else for(;f.length>=c[a];)if(g.push([b][X](f.splice(0,c[a]))),!c[a])break});g.toString=d._path2string;b.arr=na(g);return g};d.parseTransformString=$(function(a){if(!a)return null;var b=[];d.is(a,Da)&&d.is(a[0],Da)&&(b=na(a));b.length||R(a).replace(cb,function(a,c,d){var f=[];g.call(c);d.replace(fb,function(a,b){b&&f.push(+b)});b.push([c][X](f))});b.toString=d._path2string;return b});
var S=function(a){var b=S.ps=S.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b[j](c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};d.findDotsAtSegment=function(a,b,g,d,f,e,z,C,F){var E=1-F,L=ja(E,3),m=ja(E,2),t=F*F,p=t*F,h=L*a+m*3*F*g+E*3*F*F*f+p*z,L=L*b+m*3*F*d+E*3*F*F*e+p*C,m=a+2*F*(g-a)+t*(f-2*g+a),p=b+2*F*(d-b)+t*(e-2*d+b),o=g+2*F*(f-g)+t*(z-2*f+g),t=d+2*F*(e-d)+t*(C-2*e+d),a=E*a+F*g,b=E*b+F*d,f=E*f+F*z,e=E*e+F*C,C=90-c.atan2(m-o,p-t)*180/Ba;
(m>o||p<t)&&(C+=180);return{x:h,y:L,m:{x:m,y:p},n:{x:o,y:t},start:{x:a,y:b},end:{x:f,y:e},alpha:C}};d.bezierBBox=function(a,b,c,g,f,e,z,C){d.is(a,"array")||(a=[a,b,c,g,f,e,z,C]);a=F.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};d.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};d.isBBoxIntersect=function(a,b){var c=d.isPointInsideBBox;return c(b,a.x,a.y)||c(b,a.x2,a.y)||c(b,a.x,a.y2)||c(b,a.x2,a.y2)||c(a,b.x,
b.y)||c(a,b.x2,b.y)||c(a,b.x,b.y2)||c(a,b.x2,b.y2)||(a.x<b.x2&&a.x>b.x||b.x<a.x2&&b.x>a.x)&&(a.y<b.y2&&a.y>b.y||b.y<a.y2&&b.y>a.y)};d.pathIntersection=function(a,b){return ga(a,b)};d.pathIntersectionNumber=function(a,b){return ga(a,b,1)};d.isPointInsidePath=function(a,b,c){var g=d.pathBBox(a);return d.isPointInsideBBox(g,b,c)&&ga(a,[["M",b,c],["H",g.x2+10]],1)%2==1};d._removedFactory=function(a){return function(){l("raphael.log",null,"Rapha\u00ebl: you are calling to method \u201c"+a+"\u201d of removed object",
a)}};var ca=d.pathBBox=function(a){var b=S(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var a=E(a),c=0,g=0,d=[],f=[],e,z=0,C=a.length;z<C;z++)e=a[z],e[0]=="M"?(c=e[1],g=e[2],d.push(c),f.push(g)):(c=F(c,g,e[1],e[2],e[3],e[4],e[5],e[6]),d=d[X](c.min.x,c.max.x),f=f[X](c.min.y,c.max.y),c=e[5],g=e[6]);a=x[W](0,d);e=x[W](0,f);d=t[W](0,d);f=t[W](0,f);f={x:a,y:e,x2:d,y2:f,width:d-a,height:f-e};b.bbox=h(f);return f},na=function(a){a=h(a);a.toString=d._path2string;return a},
T=d._pathToRelative=function(a){var b=S(a);if(b.rel)return na(b.rel);if(!d.is(a,Da)||!d.is(a&&a[0],Da))a=d.parsePathString(a);var c=[],f=0,e=0,z=0,C=0,F=0;a[0][0]=="M"&&(f=a[0][1],e=a[0][2],z=f,C=e,F++,c.push(["M",f,e]));for(var E=a.length;F<E;F++){var m=c[F]=[],L=a[F];if(L[0]!=g.call(L[0]))switch(m[0]=g.call(L[0]),m[0]){case "a":m[1]=L[1];m[2]=L[2];m[3]=L[3];m[4]=L[4];m[5]=L[5];m[6]=+(L[6]-f).toFixed(3);m[7]=+(L[7]-e).toFixed(3);break;case "v":m[1]=+(L[1]-e).toFixed(3);break;case "m":z=L[1],C=L[2];
default:for(var t=1,p=L.length;t<p;t++)m[t]=+(L[t]-(t%2?f:e)).toFixed(3)}else{c[F]=[];L[0]=="m"&&(z=L[1]+f,C=L[2]+e);m=0;for(t=L.length;m<t;m++)c[F][m]=L[m]}L=c[F].length;switch(c[F][0]){case "z":f=z;e=C;break;case "h":f+=+c[F][L-1];break;case "v":e+=+c[F][L-1];break;default:f+=+c[F][L-2],e+=+c[F][L-1]}}c.toString=d._path2string;b.rel=na(c);return c},ua=d._pathToAbsolute=function(a){var b=S(a),c;if(b.abs)return na(b.abs);if(!d.is(a,Da)||!d.is(a&&a[0],Da))a=d.parsePathString(a);if(!a||!a.length)return c=
["M",0,0],c.toString=d._path2string,c;var g=0,f=0,z=0,C=0,F=0;c=[];a[0][0]=="M"&&(g=+a[0][1],f=+a[0][2],z=g,C=f,F++,c[0]=["M",g,f]);for(var E=a.length==3&&a[0][0]=="M"&&a[1][0].toUpperCase()=="R"&&a[2][0].toUpperCase()=="Z",L,m=F,t=a.length;m<t;m++){c.push(F=[]);L=a[m];if(L[0]!=db.call(L[0]))switch(F[0]=db.call(L[0]),F[0]){case "A":F[1]=L[1];F[2]=L[2];F[3]=L[3];F[4]=L[4];F[5]=L[5];F[6]=+(L[6]+g);F[7]=+(L[7]+f);break;case "V":F[1]=+L[1]+f;break;case "H":F[1]=+L[1]+g;break;case "R":for(var p=[g,f][X](L.slice(1)),
h=2,o=p.length;h<o;h++)p[h]=+p[h]+g,p[++h]=+p[h]+f;c.pop();c=c[X](e(p,E));break;case "M":z=+L[1]+g,C=+L[2]+f;default:h=1;for(o=L.length;h<o;h++)F[h]=+L[h]+(h%2?g:f)}else if(L[0]=="R")p=[g,f][X](L.slice(1)),c.pop(),c=c[X](e(p,E)),F=["R"][X](L.slice(-2));else{p=0;for(h=L.length;p<h;p++)F[p]=L[p]}switch(F[0]){case "Z":g=z;f=C;break;case "H":g=F[1];break;case "V":f=F[1];break;case "M":z=F[F.length-2],C=F[F.length-1];default:g=F[F.length-2],f=F[F.length-1]}}c.toString=d._path2string;b.abs=na(c);return c},
Va=function(a,b,c,g,d,f){var e=1/3,z=2/3;return[e*a+z*c,e*b+z*g,e*d+z*c,e*f+z*g,d,f]},B=function(a,g,d,f,e,z,C,F,E,L){var m=Ba*120/180,t=qa*(+e||0),p=[],h,o=$(function(a,b,c){var g=a*la(c)-b*ba(c),a=a*ba(c)+b*la(c);return{x:g,y:a}});if(L)va=L[0],h=L[1],z=L[2],O=L[3];else{h=o(a,g,-t);a=h.x;g=h.y;h=o(F,E,-t);F=h.x;E=h.y;la(qa*e);ba(qa*e);h=(a-F)/2;va=(g-E)/2;O=h*h/(d*d)+va*va/(f*f);O>1&&(O=Ha(O),d*=O,f*=O);var O=d*d,Wa=f*f,O=(z==C?-1:1)*Ha(J((O*Wa-O*va*va-Wa*h*h)/(O*va*va+Wa*h*h))),z=O*d*va/f+(a+F)/
2,O=O*-f*h/d+(g+E)/2,va=c.asin(((g-O)/f).toFixed(9));h=c.asin(((E-O)/f).toFixed(9));va=a<z?Ba-va:va;h=F<z?Ba-h:h;va<0&&(va=Ba*2+va);h<0&&(h=Ba*2+h);C&&va>h&&(va-=Ba*2);!C&&h>va&&(h-=Ba*2)}if(J(h-va)>m){var p=h,Wa=F,Z=E;h=va+m*(C&&h>va?1:-1);F=z+d*la(h);E=O+f*ba(h);p=B(F,E,d,f,e,0,C,Wa,Z,[h,p,z,O])}z=h-va;e=la(va);m=ba(va);C=la(h);h=ba(h);z=c.tan(z/4);d=4/3*d*z;z*=4/3*f;f=[a,g];a=[a+d*m,g-z*e];g=[F+d*h,E-z*C];F=[F,E];a[0]=2*f[0]-a[0];a[1]=2*f[1]-a[1];if(L)return[a,g,F][X](p);else{p=[a,g,F][X](p).join()[b](",");
L=[];F=0;for(E=p.length;F<E;F++)L[F]=F%2?o(p[F-1],p[F],t).y:o(p[F],p[F+1],t).x;return L}},C=function(a,b,c,g,d,f,e,z,C){var F=1-C;return{x:ja(F,3)*a+ja(F,2)*3*C*c+F*3*C*C*d+ja(C,3)*e,y:ja(F,3)*b+ja(F,2)*3*C*g+F*3*C*C*f+ja(C,3)*z}},F=$(function(a,b,c,g,d,f,e,z){var F=d-2*c+a-(e-2*d+c),E=2*(c-a)-2*(d-c),L=a-c,m=(-E+Ha(E*E-4*F*L))/2/F,F=(-E-Ha(E*E-4*F*L))/2/F,p=[b,z],h=[a,e];J(m)>"1e12"&&(m=0.5);J(F)>"1e12"&&(F=0.5);m>0&&m<1&&(m=C(a,b,c,g,d,f,e,z,m),h.push(m.x),p.push(m.y));F>0&&F<1&&(m=C(a,b,c,g,d,
f,e,z,F),h.push(m.x),p.push(m.y));F=f-2*g+b-(z-2*f+g);E=2*(g-b)-2*(f-g);L=b-g;m=(-E+Ha(E*E-4*F*L))/2/F;F=(-E-Ha(E*E-4*F*L))/2/F;J(m)>"1e12"&&(m=0.5);J(F)>"1e12"&&(F=0.5);m>0&&m<1&&(m=C(a,b,c,g,d,f,e,z,m),h.push(m.x),p.push(m.y));F>0&&F<1&&(m=C(a,b,c,g,d,f,e,z,F),h.push(m.x),p.push(m.y));return{min:{x:x[W](0,h),y:x[W](0,p)},max:{x:t[W](0,h),y:t[W](0,p)}}}),E=d._path2curve=$(function(a,b){var c=!b&&S(a);if(!b&&c.curve)return na(c.curve);var g=ua(a),d=b&&ua(b),f={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},
e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},z=function(a,b){var c,g;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"][X](B[W](0,[b.x,b.y][X](a.slice(1))));break;case "S":c=b.x+(b.x-(b.bx||b.x));g=b.y+(b.y-(b.by||b.y));a=["C",c,g][X](a.slice(1));break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"][X](Va(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"][X](Va(b.x,
b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"][X]([b.x,b.y,a[1],a[2],a[1],a[2]]);break;case "H":a=["C"][X]([b.x,b.y,a[1],b.y,a[1],b.y]);break;case "V":a=["C"][X]([b.x,b.y,b.x,a[1],b.x,a[1]]);break;case "Z":a=["C"][X]([b.x,b.y,b.X,b.Y,b.X,b.Y])}return a},C=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"][X](c.splice(0,6)));a.splice(b,1);L=t(g.length,d&&d.length||0)}},F=function(a,b,c,f,e){if(a&&b&&a[e][0]=="M"&&b[e][0]!="M")b.splice(e,0,["M",f.x,f.y]),c.bx=
0,c.by=0,c.x=a[e][1],c.y=a[e][2],L=t(g.length,d&&d.length||0)},E=0,L=t(g.length,d&&d.length||0);for(;E<L;E++){g[E]=z(g[E],f);C(g,E);d&&(d[E]=z(d[E],e));d&&C(d,E);F(g,d,f,e,E);F(d,g,e,f,E);var m=g[E],p=d&&d[E],h=m.length,o=d&&p.length;f.x=m[h-2];f.y=m[h-1];f.bx=oa(m[h-4])||f.x;f.by=oa(m[h-3])||f.y;e.bx=d&&(oa(p[o-4])||e.x);e.by=d&&(oa(p[o-3])||e.y);e.x=d&&p[o-2];e.y=d&&p[o-1]}if(!d)c.curve=na(g);return d?[g,d]:g},null,na);d._parseDots=$(function(a){for(var b=[],c=0,g=a.length;c<g;c++){var f={},e=a[c].match(/^([^:]*):?([\d\.]*)/);
f.color=d.getRGB(e[1]);if(f.color.error)return null;f.opacity=f.color.opacity;f.color=f.color.hex;e[2]&&(f.offset=e[2]+"%");b.push(f)}c=1;for(g=b.length-1;c<g;c++)if(!b[c].offset){a=oa(b[c-1].offset||0);e=0;for(f=c+1;f<g;f++)if(b[f].offset){e=b[f].offset;break}e||(e=100,f=g);e=oa(e);for(e=(e-a)/(f-c+1);c<f;c++)a+=e,b[c].offset=a+"%"}return b});var L=d._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};d._tofront=function(a,
b){if(b.top===a)return!1;L(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};d._toback=function(a,b){if(b.bottom===a)return!1;L(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};d._insertafter=function(a,b,c,g){L(a,c);a.parent=g;b===g.top&&(g.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a};d._insertbefore=function(a,b,c,g){L(a,c);a.parent=g;b===g.bottom&&(g.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var z=d.toMatrix=function(a,
b){var c=ca(a),g={_:{transform:""},getBBox:function(){return c}};Wa(g,b);return g.matrix};d.transformPath=function(a,b){return N(a,z(a,b))};var Wa=d._extractTransform=function(a,b){if(b==null)return a._.transform;var b=R(b).replace(/\.{3}|\u2026/g,a._.transform||""),c=d.parseTransformString(b),g=0,f=0,e=0,z=1,C=1,F=a._,e=new w;F.transform=c||[];if(c)for(var f=0,E=c.length;f<E;f++){var L=c[f],m=L.length,t=R(L[0]).toLowerCase(),p=L[0]!=t,h=p?e.invert():0,o;t=="t"&&m==3?p?(m=h.x(0,0),t=h.y(0,0),p=h.x(L[1],
L[2]),h=h.y(L[1],L[2]),e.translate(p-m,h-t)):e.translate(L[1],L[2]):t=="r"?m==2?(o=o||a.getBBox(1),e.rotate(L[1],o.x+o.width/2,o.y+o.height/2),g+=L[1]):m==4&&(p?(p=h.x(L[2],L[3]),h=h.y(L[2],L[3]),e.rotate(L[1],p,h)):e.rotate(L[1],L[2],L[3]),g+=L[1]):t=="s"?m==2||m==3?(o=o||a.getBBox(1),e.scale(L[1],L[m-1],o.x+o.width/2,o.y+o.height/2),z*=L[1],C*=L[m-1]):m==5&&(p?(p=h.x(L[3],L[4]),h=h.y(L[3],L[4]),e.scale(L[1],L[2],p,h)):e.scale(L[1],L[2],L[3],L[4]),z*=L[1],C*=L[2]):t=="m"&&m==7&&e.add(L[1],L[2],L[3],
L[4],L[5],L[6]);F.dirtyT=1;a.matrix=e}a.matrix=e;F.sx=z;F.sy=C;F.deg=g;F.dx=f=e.e;F.dy=e=e.f;z==1&&C==1&&!g&&F.bbox?(F.bbox.x+=+f,F.bbox.y+=+e):F.dirtyT=1},va=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return a.length==4?[b,0,a[2],a[3]]:[b,0];case "s":return a.length==5?[b,1,1,a[3],a[4]]:a.length==3?[b,1,1]:[b,1]}},jb=d._equaliseTransform=function(a,b){for(var b=R(b).replace(/\.{3}|\u2026/g,a),a=d.parseTransformString(a)||[],b=d.parseTransformString(b)||
[],c=t(a.length,b.length),g=[],f=[],e=0,z,F,C,E;e<c;e++){C=a[e]||va(b[e]);E=b[e]||va(C);if(C[0]!=E[0]||C[0].toLowerCase()=="r"&&(C[2]!=E[2]||C[3]!=E[3])||C[0].toLowerCase()=="s"&&(C[3]!=E[3]||C[4]!=E[4]))return;g[e]=[];f[e]=[];z=0;for(F=t(C.length,E.length);z<F;z++)z in C&&(g[e][z]=C[z]),z in E&&(f[e][z]=E[z])}return{from:g,to:f}};d._getContainer=function(a,b,c,g){var f;f=g==null&&!d.is(a,"object")?s.doc.getElementById(a):a;if(f!=null){if(f.tagName)return b==null?{container:f,width:f.style.pixelWidth||
f.offsetWidth,height:f.style.pixelHeight||f.offsetHeight}:{container:f,width:b,height:c};return{container:1,x:a,y:b,width:c,height:g}}};d.pathToRelative=T;d._engine={};d.path2curve=E;d.matrix=function(a,b,c,g,f,d){return new w(a,b,c,g,f,d)};(function(a){function g(a){return a[0]*a[0]+a[1]*a[1]}function f(a){var b=Ha(g(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}a.add=function(a,b,c,g,f,d){var e=[[],[],[]],z=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],b=[[a,c,f],[b,g,d],[0,0,1]];a&&a instanceof
w&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;a<3;a++)for(c=0;c<3;c++){for(g=f=0;g<3;g++)f+=z[a][g]*b[g][c];e[a][c]=f}this.a=e[0][0];this.b=e[1][0];this.c=e[0][1];this.d=e[1][1];this.e=e[0][2];this.f=e[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new w(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new w(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,
0,1,a,b)};a.scale=function(a,b,c,g){b==null&&(b=a);(c||g)&&this.add(1,0,0,1,c,g);this.add(a,0,0,b,0,0);(c||g)&&this.add(1,0,0,1,-c,-g)};a.rotate=function(a,b,c){var a=d.rad(a),b=b||0,c=c||0,g=+la(a).toFixed(9),a=+ba(a).toFixed(9);this.add(g,a,-a,g,b,c);this.add(1,0,0,1,-b,-c)};a.x=function(a,b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[R.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return d.svg?"matrix("+[this.get(0),
this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),
this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var b=[[this.a,this.c],[this.b,this.d]];a.scalex=Ha(g(b[0]));f(b[0]);a.shear=b[0][0]*b[1][0]+b[0][1]*b[1][1];b[1]=[b[1][0]-b[0][0]*a.shear,b[1][1]-b[0][1]*a.shear];a.scaley=Ha(g(b[1]));f(b[1]);a.shear/=a.scaley;var e=-b[0][1],b=b[1][1];if(b<0){if(a.rotate=d.deg(c.acos(b)),e<0)a.rotate=360-a.rotate}else a.rotate=d.deg(c.asin(e));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=
!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this[b]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:"")+(a.scalex!=1||a.scaley!=1?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(w.prototype);
T=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);U.safari=navigator.vendor=="Apple Computer, Inc."&&(T&&T[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&T&&T[1]<8?function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()});return!0}:Ga;for(var Ra=function(){this.returnValue=!1},Z=function(){return this.originalEvent.preventDefault()},O=function(){this.cancelBubble=
!0},Ua=function(){return this.originalEvent.stopPropagation()},Qa=d.addEvent=function(){if(s.doc.addEventListener)return function(b,c,g,f){var d=v&&a[c]?a[c]:c,e=function(d){var e=s.doc.documentElement.scrollTop||s.doc.body.scrollTop,z=s.doc.documentElement.scrollLeft||s.doc.body.scrollLeft;if(v&&a[j](c))for(var C=0,F=d.targetTouches&&d.targetTouches.length;C<F;C++)if(d.targetTouches[C].target==b){F=d;d=d.targetTouches[C];d.originalEvent=F;d.preventDefault=Z;d.stopPropagation=Ua;break}return g.call(f,
d,d.clientX+z,d.clientY+e)};b.addEventListener(d,e,!1);return function(){b.removeEventListener(d,e,!1);return!0}};else if(s.doc.attachEvent)return function(a,b,c,g){var f=function(a){var a=a||s.win.event,b=a.clientX+(s.doc.documentElement.scrollLeft||s.doc.body.scrollLeft),f=a.clientY+(s.doc.documentElement.scrollTop||s.doc.body.scrollTop);a.preventDefault=a.preventDefault||Ra;a.stopPropagation=a.stopPropagation||O;return c.call(g,a,b,f)};a.attachEvent("on"+b,f);return function(){a.detachEvent("on"+
b,f);return!0}}}(),Sa=[],Xa=function(a){for(var b=a.clientX,c=a.clientY,g=s.doc.documentElement.scrollTop||s.doc.body.scrollTop,f=s.doc.documentElement.scrollLeft||s.doc.body.scrollLeft,d,e=Sa.length;e--;){d=Sa[e];if(v)for(var z=a.touches.length,C;z--;){if(C=a.touches[z],C.identifier==d.el._drag.id){b=C.clientX;c=C.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();var z=d.el.node,F=z.nextSibling,E=z.parentNode,L=z.style.display;s.win.opera&&E.removeChild(z);
z.style.display="none";C=d.el.paper.getElementByPoint(b,c);z.style.display=L;s.win.opera&&(F?E.insertBefore(z,F):E.appendChild(z));C&&l("raphael.drag.over."+d.el.id,d.el,C);b+=f;c+=g;l("raphael.drag.move."+d.el.id,d.move_scope||d.el,b-d.el._drag.x,c-d.el._drag.y,b,c,a)}},kb=function(a){d.unmousemove(Xa).unmouseup(kb);for(var b=Sa.length,c;b--;)c=Sa[b],c.el._drag={},l("raphael.drag.end."+c.el.id,c.end_scope||c.start_scope||c.move_scope||c.el,a);Sa=[]},ha=d.el={},Ga=f.length;Ga--;)(function(a){d[a]=
ha[a]=function(b,c){if(d.is(b,"function"))this.events=this.events||[],this.events.push({name:a,f:b,unbind:Qa(this.shape||this.node||s.doc,a,b,c||this)});return this};d["un"+a]=ha["un"+a]=function(b){for(var c=this.events||[],g=c.length;g--;)if(c[g].name==a&&c[g].f==b){c[g].unbind();c.splice(g,1);!c.length&&delete this.events;break}return this}})(f[Ga]);ha.data=function(a,b){var c=ab[this.id]=ab[this.id]||{};if(arguments.length==1){if(d.is(a,"object")){for(var g in a)a[j](g)&&this.data(g,a[g]);return this}l("raphael.data.get."+
this.id,this,c[a],a);return c[a]}c[a]=b;l("raphael.data.set."+this.id,this,b,a);return this};ha.removeData=function(a){a==null?ab[this.id]={}:ab[this.id]&&delete ab[this.id][a];return this};var Ya=[],pb=function(){this.untrack=Qa(s.doc,"mouseup",hb,this)},hb=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};ha.mouseup=function(a,b,c){if(!c)return d.mouseup.apply(this,arguments);Ya.push(c={el:this,fn:a,scope:b});c.unbind=Qa(this.shape||this.node||
s.doc,"mousedown",pb,c);return this};ha.unmouseup=function(a){for(var b=Ya.length,c;b--;)Ya[b].el===this&&Ya[b].fn===a&&(c=Ya[b],c.unbind(),c.untrack&&c.untrack(),Ya.splice(b,1));return c?this:d.unmouseup.apply(this,arguments)};ha.hover=function(a,b,c,g){return this.mouseover(a,c).mouseout(b,g||c)};ha.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Y=[];ha.drag=function(a,b,c,g,f,e){function z(C){(C.originalEvent||C).preventDefault();var F=s.doc.documentElement.scrollTop||s.doc.body.scrollTop,
E=s.doc.documentElement.scrollLeft||s.doc.body.scrollLeft;this._drag.x=C.clientX+E;this._drag.y=C.clientY+F;this._drag.id=C.identifier;!Sa.length&&d.mousemove(Xa).mouseup(kb);Sa.push({el:this,move_scope:g,start_scope:f,end_scope:e});b&&l.on("raphael.drag.start."+this.id,b);a&&l.on("raphael.drag.move."+this.id,a);c&&l.on("raphael.drag.end."+this.id,c);l("raphael.drag.start."+this.id,f||g||this,C.clientX+E,C.clientY+F,C)}this._drag={};Y.push({el:this,start:z});this.mousedown(z);return this};ha.onDragOver=
function(a){a?l.on("raphael.drag.over."+this.id,a):l.unbind("raphael.drag.over."+this.id)};ha.undrag=function(){for(var a=Y.length;a--;)Y[a].el==this&&(this.unmousedown(Y[a].start),Y.splice(a,1),l.unbind("raphael.drag.*."+this.id));!Y.length&&d.unmousemove(Xa).unmouseup(kb)};ha.follow=function(a,b,c){if(a.removed||a.constructor!==d.el.constructor)return this;a.followers.push({el:this,stalk:c={before:"insertBefore",after:"insertAfter"}[c],cb:b});c&&this[c](a);return this};ha.unfollow=function(a){if(a.removed||
a.constructor!==d.el.constructor)return this;for(var b=0,c=a.followers.length;b<c;b++)if(a.followers[b].el===this){a.followers.splice(b,1);break}return this};var gb=Array.prototype.splice;U.group=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,gb.call(a,b,1)):c=void 0;a=d._engine.group(this,a[0],c);this.__set__&&this.__set__.push(a);return a};U.circle=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=
void 0,gb.call(a,b,1)):c=void 0;a=d._engine.circle(this,a[0]||0,a[1]||0,a[2]||0,c);this.__set__&&this.__set__.push(a);return a};U.rect=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,gb.call(a,b,1)):c=void 0;a=d._engine.rect(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,a[4]||0,c);this.__set__&&this.__set__.push(a);return a};U.ellipse=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,gb.call(a,b,1)):c=
void 0;a=d._engine.ellipse(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,c);this.__set__&&this.__set__.push(a);return a};U.path=function(){var a,b=arguments,c=b.length-1;(a=b[c])&&a.constructor===d.el.constructor?(b[c]=void 0,gb.call(b,c,1)):a=void 0;(b=b[0])&&!d.is(b,"string")&&d.is(b[0],Da);a=d._engine.path(d.format[W](d,arguments),this,a);this.__set__&&this.__set__.push(a);return a};U.image=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,gb.call(a,b,
1)):c=void 0;a=d._engine.image(this,a[0]||"about:blank",a[1]||0,a[2]||0,a[3]||0,a[4]||0,c);this.__set__&&this.__set__.push(a);return a};U.text=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,gb.call(a,b,1)):c=void 0;a=d._engine.text(this,a[0]||0,a[1]||0,R(a[2]||""),c);this.__set__&&this.__set__.push(a);return a};U.set=function(a){!d.is(a,"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var b=new ib(a);this.__set__&&this.__set__.push(b);
return b};U.setStart=function(a){this.__set__=a||this.set()};U.setFinish=function(){var a=this.__set__;delete this.__set__;return a};U.setSize=function(a,b){return d._engine.setSize.call(this,a,b)};U.setViewBox=function(a,b,c,g,f){return d._engine.setViewBox.call(this,a,b,c,g,f)};U.top=U.bottom=null;U.raphael=d;U.getElementByPoint=function(a,b){var c=this.canvas,g=s.doc.elementFromPoint(a,b);if(s.win.opera&&g.tagName=="svg"){var f;f=c.getBoundingClientRect();var d=c.ownerDocument,e=d.body,d=d.documentElement;
f={y:f.top+(s.win.pageYOffset||d.scrollTop||e.scrollTop)-(d.clientTop||e.clientTop||0),x:f.left+(s.win.pageXOffset||d.scrollLeft||e.scrollLeft)-(d.clientLeft||e.clientLeft||0)};e=c.createSVGRect();e.x=a-f.x;e.y=b-f.y;e.width=e.height=1;f=c.getIntersectionList(e,null);f.length&&(g=f[f.length-1])}if(!g)return null;for(;g.parentNode&&g!=c.parentNode&&!g.raphael;)g=g.parentNode;g==this.canvas.parentNode&&(g=c);return g=g&&g.raphael?this.getById(g.raphaelid):null};U.getById=function(a){for(var b=this.bottom;b;){if(b.id==
a)return b;b=b.next}return null};U.forEach=function(a,b){for(var c=this.bottom;c;){if(a.call(b,c)===!1)break;c=c.next}return this};U.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(g){g.isPointInside(a,b)&&c.push(g)});return c};ha.isPointInside=function(a,b){var c=this.realPath=this.realPath||I[this.type](this);return d.isPointInsidePath(c,a,b)};ha.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=I[this.type](this),b.bboxwt=
ca(this.realPath),b.bboxwt.toString=Q,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=I[this.type](this);b.bbox=ca(N(this.realPath,this.matrix));b.bbox.toString=Q;b.dirty=b.dirtyT=0}return b.bbox};ha.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};ha.glow=function(a){if(this.type=="text")return null;for(var a=a||{},a={width:(a.width||10)+(+this.attr("stroke-width")||
1),fill:a.fill||!1,opacity:a.opacity||0.5,offsetx:a.offsetx||0,offsety:a.offsety||0,color:a.color||"#000"},b=a.width/2,c=this.paper,g=c.set(),f=this.realPath||I[this.type](this),f=this.matrix?N(f,this.matrix):f,d=1;d<b+1;d++)g.push(c.path(f).attr({stroke:a.color,fill:a.fill?a.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(a.width/b*d).toFixed(3),opacity:+(a.opacity/b).toFixed(3)}));return g.insertBefore(this).translate(a.offsetx,a.offsety)};var Oa=function(a,b,c,
g,f,e,z,C,F){return F==null?k(a,b,c,g,f,e,z,C):d.findDotsAtSegment(a,b,c,g,f,e,z,C,u(a,b,c,g,f,e,z,C,F))},f=function(a,b){return function(c,g,f){for(var c=E(c),e,z,C,F,L="",m={},t=0,p=0,h=c.length;p<h;p++){C=c[p];if(C[0]=="M")e=+C[1],z=+C[2];else{F=Oa(e,z,C[1],C[2],C[3],C[4],C[5],C[6]);if(t+F>g){if(b&&!m.start){e=Oa(e,z,C[1],C[2],C[3],C[4],C[5],C[6],g-t);L+=["C"+e.start.x,e.start.y,e.m.x,e.m.y,e.x,e.y];if(f)return L;m.start=L;L=["M"+e.x,e.y+"C"+e.n.x,e.n.y,e.end.x,e.end.y,C[5],C[6]].join();t+=F;e=
+C[5];z=+C[6];continue}if(!a&&!b)return e=Oa(e,z,C[1],C[2],C[3],C[4],C[5],C[6],g-t),{x:e.x,y:e.y,alpha:e.alpha}}t+=F;e=+C[5];z=+C[6]}L+=C.shift()+C}m.end=L;e=a?t:b?m:d.findDotsAtSegment(e,z,C[0],C[1],C[2],C[3],C[4],C[5],1);e.alpha&&(e={x:e.x,y:e.y,alpha:e.alpha});return e}},Na=f(1),Ja=f(),lb=f(0,1);d.getTotalLength=Na;d.getPointAtLength=Ja;d.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1.0E-6)return lb(a,b).end;a=lb(a,c,1);return b?lb(a,b).end:a};ha.getTotalLength=function(){if(this.type==
"path"){if(this.node.getTotalLength)return this.node.getTotalLength();return Na(this.attrs.path)}};ha.getPointAtLength=function(a){if(this.type=="path")return Ja(this.attrs.path,a)};ha.getSubpath=function(a,b){if(this.type=="path")return d.getSubpath(this.attrs.path,a,b)};f=d.easing_formulas={linear:function(a){return a},"<":function(a){return ja(a,1.7)},">":function(a){return ja(a,0.48)},"<>":function(a){var b=0.48-a/1.04,c=Ha(0.1734+b*b),a=c-b,a=ja(J(a),1/3)*(a<0?-1:1),b=-c-b,b=ja(J(b),1/3)*(b<
0?-1:1),a=a+b+0.5;return(1-a)*3*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){if(a==!!a)return a;return ja(2,-10*a)*ba((a-0.075)*2*Ba/0.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};f.easeIn=f["ease-in"]=f["<"];f.easeOut=f["ease-out"]=f[">"];f.easeInOut=f["ease-in-out"]=
f["<>"];f["back-in"]=f.backIn;f["back-out"]=f.backOut;var sa=[],ob=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},Ca=function(){for(var a=+new Date,b=0;b<sa.length;b++){var c=sa[b];if(!c.el.removed&&!c.paused){var g=a-c.start,f=c.ms,e=c.easing,z=c.from,C=c.diff,F=c.to,E=c.el,L={},m,t={},p;c.initstatus?(g=(c.initstatus*c.anim.top-c.prev)/(c.percent-c.prev)*
f,c.status=c.initstatus,delete c.initstatus,c.stop&&sa.splice(b--,1)):c.status=(c.prev+(c.percent-c.prev)*(g/f))/c.anim.top;if(!(g<0))if(g<f){var h=e(g/f),o;for(o in z)if(z[j](o)){switch(Za[o]){case da:m=+z[o]+h*f*C[o];break;case "colour":m="rgb("+[mb($a(z[o].r+h*f*C[o].r)),mb($a(z[o].g+h*f*C[o].g)),mb($a(z[o].b+h*f*C[o].b))].join(",")+")";break;case "path":m=[];g=0;for(e=z[o].length;g<e;g++){m[g]=[z[o][g][0]];F=1;for(t=z[o][g].length;F<t;F++)m[g][F]=(+z[o][g][F]+h*f*C[o][g][F]).toFixed(4);m[g]=m[g].join(n)}m=
m.join(n);break;case "transform":if(C[o].real){m=[];g=0;for(e=z[o].length;g<e;g++){m[g]=[z[o][g][0]];F=1;for(t=z[o][g].length;F<t;F++)m[g][F]=z[o][g][F]+h*f*C[o][g][F]}}else m=function(a){return+z[o][a]+h*f*C[o][a]},m=[["m",m(0),m(1),m(2),m(3),m(4),m(5)]];break;case "csv":if(o=="clip-rect"){m=[];for(g=4;g--;)m[g]=+z[o][g]+h*f*C[o][g]}break;default:e=[][X](z[o]);m=[];for(g=E.ca[o].length;g--;)m[g]=+e[g]+h*f*C[o][g]}L[o]=m}E.attr(L);(function(a,b,c){setTimeout(function(){l("raphael.anim.frame."+a,b,
c)})})(E.id,E,c.anim)}else{(function(a,b,c){setTimeout(function(){l("raphael.anim.frame."+b.id,b,c);l("raphael.anim.finish."+b.id,b,c);d.is(a,"function")&&a.call(b)})})(c.callback,E,c.anim);E.attr(F);sa.splice(b--,1);if(c.repeat>1&&!c.next){for(p in F)F[j](p)&&(t[p]=c.totalOrigin[p]);c.el.attr(t);aa(c.anim,c.el,c.anim.percents[0],null,c.totalOrigin,c.repeat-1)}c.next&&!c.stop&&aa(c.anim,c.el,c.next,null,c.totalOrigin,c.repeat)}}}d.svg&&E&&E.paper&&E.paper.safari();sa.length&&ob(Ca)},mb=function(a){return a>
255?255:a<0?0:a};ha.animateWith=function(a,b,c,g,f,e){if(this.removed)return e&&e.call(this),this;c=c instanceof G?c:d.animation(c,g,f,e);aa(c,this,c.percents[0],null,this.attr());c=0;for(g=sa.length;c<g;c++)if(sa[c].anim==b&&sa[c].el==a){sa[g-1].start=sa[c].start;break}return this};ha.onAnimation=function(a){a?l.on("raphael.anim.frame."+this.id,a):l.unbind("raphael.anim.frame."+this.id);return this};G.prototype.delay=function(a){var b=new G(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};
G.prototype.repeat=function(a){var b=new G(this.anim,this.ms);b.del=this.del;b.times=c.floor(t(a,0))||1;return b};d.animation=function(a,b,c,g){if(a instanceof G)return a;if(d.is(c,"function")||!c)g=g||c||null,c=null;var a=Object(a),b=+b||0,f={},e,z;for(z in a)a[j](z)&&oa(z)!=z&&oa(z)+"%"!=z&&(e=!0,f[z]=a[z]);return e?(c&&(f.easing=c),g&&(f.callback=g),new G({100:f},b)):new G(a,b)};ha.animate=function(a,b,c,g){if(this.removed)return g&&g.call(this),this;a=a instanceof G?a:d.animation(a,b,c,g);aa(a,
this,a.percents[0],null,this.attr());return this};ha.setTime=function(a,b){a&&b!=null&&this.status(a,x(b,a.ms)/a.ms);return this};ha.status=function(a,b){var c=[],g=0,f,d;if(b!=null)return aa(a,this,-1,x(b,1)),this;else{for(f=sa.length;g<f;g++)if(d=sa[g],d.el.id==this.id&&(!a||d.anim==a)){if(a)return d.status;c.push({anim:d.anim,status:d.status})}if(a)return 0;return c}};ha.pause=function(a){for(var b=0;b<sa.length;b++)if(sa[b].el.id==this.id&&(!a||sa[b].anim==a)&&l("raphael.anim.pause."+this.id,
this,sa[b].anim)!==!1)sa[b].paused=!0;return this};ha.resume=function(a){for(var b=0;b<sa.length;b++)if(sa[b].el.id==this.id&&(!a||sa[b].anim==a)){var c=sa[b];l("raphael.anim.resume."+this.id,this,c.anim)!==!1&&(delete c.paused,this.status(c.anim,c.status))}return this};ha.stop=function(a){for(var b=0;b<sa.length;b++)sa[b].el.id==this.id&&(!a||sa[b].anim==a)&&l("raphael.anim.stop."+this.id,this,sa[b].anim)!==!1&&sa.splice(b--,1);return this};l.on("raphael.remove",A);l.on("raphael.clear",A);ha.toString=
function(){return"Rapha\u00ebl\u2019s object"};ha.toFront=function(){if(this.removed)return this;var a=d._engine.getNode(this),b=this.parent,c=this.followers,g;d._tofront(this,b)&&b.canvas.appendChild(a);a=0;for(b=c.length;a<b;a++)(g=c[a]).stalk&&g.el[g.stalk](this);return this};ha.toBack=function(){if(this.removed)return this;var a=d._engine.getNode(this),b=this.parent,c=this.followers,g;d._toback(this,b)&&b.canvas.insertBefore(a,b.canvas.firstChild);a=0;for(b=c.length;a<b;a++)(g=c[a]).stalk&&g.el[g.stalk](this);
return this};ha.insertAfter=function(a){if(this.removed)return this;var b=d._engine.getNode(this),c=d._engine.getLastNode(a),g=a.parent.canvas,f=this.followers,e;c.nextSibling?g.insertBefore(b,c.nextSibling):g.appendChild(b);d._insertafter(this,a,this.parent,a.parent);b=0;for(c=f.length;b<c;b++)(e=f[b]).stalk&&e.el[e.stalk](a);return this};ha.insertBefore=function(a){if(this.removed)return this;var b=d._engine.getNode(this),c=d._engine.getNode(a),g=this.followers,f;a.parent.canvas.insertBefore(b,
c);d._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;b=0;for(c=g.length;b<c;b++)(f=g[b]).stalk&&f.el[f.stalk](a);return this};ha.appendChild=function(a){if(this.removed||this.type!=="group")return this;var b=this.followers,c,g,f;if(a.parent===this)return a.toFront(),this;g=d._engine.getNode(a);d._tear(a,a.parent);this.canvas.appendChild(g);a.parent=this;!this.bottom&&(this.bottom=a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;g=0;for(f=b.length;g<f;g++)(c=b[g]).stalk&&
c.el[c.stalk](a);return this};ha.removeChild=function(a){if(this.removed||this.type!=="group"||a.parent!==this)return this;var b=d._engine.getNode(a),c=this.paper;d._tear(a,this);c.canvas.appendChild(b);this.parent=c;!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null;return this};var ib=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)if(a[b]&&(a[b].constructor==ha.constructor||a[b].constructor==ib))this[this.items.length]=
this.items[this.items.length]=a[b],this.length++},f=ib.prototype;f.push=function(){for(var a,b,c=0,g=arguments.length;c<g;c++)if((a=arguments[c])&&(a.constructor==ha.constructor||a.constructor==ib))b=this.items.length,this[b]=this.items[b]=a,this.length++;return this};f.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};f.forEach=function(a,b){for(var c=0,g=this.items.length;c<g;c++)if(a.call(b,this.items[c],c)===!1)break;return this};for(var nb in ha)ha[j](nb)&&(f[nb]=
function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][W](c,b)})}}(nb));f.attr=function(a,b){if(a&&d.is(a,Da)&&d.is(a[0],"object"))for(var c=0,g=a.length;c<g;c++)this.items[c].attr(a[c]);else{c=0;for(g=this.items.length;c<g;c++)this.items[c].attr(a,b)}return this};f.clear=function(){for(;this.length;)this.pop()};f.splice=function(a,b){var a=a<0?t(this.length+a,0):a,b=t(0,x(this.length-a,isNaN(b)&&this.length||b)),c=[],g=[],f=[],d;for(d=2;d<arguments.length;d++)f.push(arguments[d]);
for(d=0;d<b;d++)g.push(this[a+d]);for(;d<this.length-a;d++)c.push(this[a+d]);var e=f.length;for(d=0;d<e+c.length;d++)this.items[a+d]=this[a+d]=d<e?f[d]:c[d-e];for(d=this.items.length=this.length-=b-e;this[d];)delete this[d++];return new ib(g)};f.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};f.animate=function(a,b,c,g){(d.is(c,"function")||!c)&&(g=c||null);var f=this.items.length,e=f,z=this,C;if(!f)return this;g&&(C=function(){!--f&&g.call(z)});c=d.is(c,
"string")?c:C;b=d.animation(a,b,c,C);for(a=this.items[--e].animate(b);e--;)this.items[e]&&!this.items[e].removed&&this.items[e].animateWith(a,b,b);return this};f.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};f.getBBox=function(){for(var a=[],b=[],c=[],g=[],f=this.items.length;f--;)if(!this.items[f].removed){var d=this.items[f].getBBox();a.push(d.x);b.push(d.y);c.push(d.x+d.width);g.push(d.y+d.height)}a=x[W](0,a);b=x[W](0,b);c=t[W](0,c);g=t[W](0,
g);return{x:a,y:b,x2:c,y2:g,width:c-a,height:g-b}};f.clone=function(a){for(var a=new ib,b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());return a};f.toString=function(){return"Rapha\u00ebl\u2018s set"};d.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],g;for(g in a.face)a.face[j](g)&&(b.face[g]=a.face[g]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=La(a.face["units-per-em"],
10);for(var f in a.glyphs)if(a.glyphs[j](f)&&(c=a.glyphs[f],b.glyphs[f]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var d in c.k)c[j](d)&&(b.glyphs[f].k[d]=c.k[d])}return a};U.getFont=function(a,b,c,g){g=g||"normal";c=c||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(d.fonts){var f=d.fonts[a];if(!f){var a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),e;for(e in d.fonts)if(d.fonts[j](e)&&
a.test(e)){f=d.fonts[e];break}}var z;if(f){e=0;for(a=f.length;e<a;e++)if(z=f[e],z.face["font-weight"]==b&&(z.face["font-style"]==c||!z.face["font-style"])&&z.face["font-stretch"]==g)break}return z}};U.print=function(a,c,g,f,e,z,C){var z=z||"middle",C=t(x(C||0,1),-1),F=R(g)[b](""),E=0,L=0,m="";d.is(f,g)&&(f=this.getFont(f));if(f)for(var g=(e||16)/f.face["units-per-em"],p=f.face.bbox[b](H),e=+p[0],h=p[3]-p[1],o=0,z=+p[1]+(z=="baseline"?h+ +f.face.descent:h/2),p=0,O=F.length;p<O;p++){if(F[p]=="\n")L=
Wa=E=0,o+=h;else{var va=L&&f.glyphs[F[p-1]]||{},Wa=f.glyphs[F[p]];E+=L?(va.w||f.w)+(va.k&&va.k[F[p]]||0)+f.w*C:0;L=1}Wa&&Wa.d&&(m+=d.transformPath(Wa.d,["t",E*g,o*g,"s",g,g,e,z,"t",(a-e)/g,(c-z)/g]))}return this.path(m).attr({fill:"#000",stroke:"none"})};U.add=function(a){if(d.is(a,"array"))for(var b=this.set(),c=0,g=a.length,f;c<g;c++)f=a[c]||{},D[j](f.type)&&b.push(this[f.type]().attr(f));return b};d.format=function(a,b){var c=d.is(b,Da)?[0][X](b):arguments;a&&d.is(a,"string")&&c.length-1&&(a=a.replace(q,
function(a,b){return c[++b]==null?"":c[b]}));return a||""};d.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,g){var f=g;c.replace(b,function(a,b,c,g,d){b=b||g;f&&(b in f&&(f=f[b]),typeof f=="function"&&d&&(f=f()))});return f=(f==null||f==g?a:f)+""};return function(b,g){return String(b).replace(a,function(a,b){return c(a,b,g)})}}();d.ninja=function(){ea.was?s.win.Raphael=ea.is:delete Raphael;return d};d.st=f;(function(a,b,c){function g(){/in/.test(a.readyState)?
setTimeout(g,9):d.eve("raphael.DOMload")}if(a.readyState==null&&a.addEventListener)a.addEventListener(b,c=function(){a.removeEventListener(b,c,!1);a.readyState="complete"},!1),a.readyState="loading";g()})(document,"DOMContentLoaded");ea.was?s.win.Raphael=d:Raphael=d;l.on("raphael.DOMload",function(){ia=!0})})();window.Raphael.svg&&function(d){var h=String,i=parseFloat,e=parseInt,k=Math,l=k.max,r=k.abs,w=k.pow,u=k.sqrt,K=/[, ]+/,G=/AppleWebKit/.test(d._g.win.navigator.userAgent),aa=d.eve,A={block:"M5,0 0,2.5 5,5z",
classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},ia=d._shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},H={};d._url=/msie/i.test(navigator.userAgent)&&!window.opera?"":window.location.href.replace(/#.*?$/,"");d.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var D=d._createNode=function(a,b){if(b){typeof a==
"string"&&(a=D(a));for(var c in b)b.hasOwnProperty(c)&&(c.substring(0,6)=="xlink:"?a.setAttributeNS("http://www.w3.org/1999/xlink",c.substring(6),h(b[c])):a.setAttribute(c,h(b[c])))}else a=d._g.doc.createElementNS("http://www.w3.org/2000/svg",a);return a},q={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},j={pad:"pad",redlect:"reflect",repeat:"repeat"},s=function(a,b){var c="linear",f=a.id+b,e=0.5,J=0.5,v,s,n,A,G,K=a.node,aa=a.paper,R=K.style,H=d._g.doc.getElementById(f);if(!H&&
aa.defs){b=h(b).replace(d._radial_gradient,function(a,b){c="radial";b=b&&b.split(",")||[];A=b[5];G=b[6];var g=b[0],f=b[1],d=b[2],t=b[3],h=b[4],k=g&&f,l;d&&(v=/\%/.test(d)?d:i(d));if(A===q.userSpaceOnUse)return k&&(e=g,J=f),t&&h&&(s=t,n=h,k||(e=s,J=n)),"";k&&(e=i(g),J=i(f),g=(J>0.5)*2-1,(l=w(e-0.5,2))+w(J-0.5,2)>0.25&&l<0.25&&(J=u(0.25-l)*g+0.5)&&J!==0.5&&(J=J.toFixed(5)-1.0E-5*g));t&&h&&(s=i(t),n=i(h),g=(n>0.5)*2-1,(l=w(s-0.5,2))+w(n-0.5,2)>0.25&&l<0.25&&(n=u(0.25-l)*g+0.5)&&n!==0.5&&(n=n.toFixed(5)-
1.0E-5*g),k||(e=s,J=n));return""});b=b.split(/\s*\-\s*/);if(c=="linear"){var H=b.shift(),U=H.match(/\((.*)\)/),ea,U=U&&U[1]&&U[1].split(/\s*\,\s*/),H=-i(H);if(isNaN(H))return null;U&&U.length?(U[0]in q?(A=U.shift(),U[0]in j&&(G=U.shift())):(U[4]&&(A=U[4]),U[5]&&(G=U[5])),ea=[U[0]||"0%",U[1]||"0%",U[2]||"100%",U[3]||"0%"]):(ea=[0,0,k.cos(d.rad(H)),k.sin(d.rad(H))],H=1/(l(r(ea[2]),r(ea[3]))||1),ea[2]*=H,ea[3]*=H,ea[2]<0&&(ea[0]=-ea[2],ea[2]=0),ea[3]<0&&(ea[1]=-ea[3],ea[3]=0))}U=d._parseDots(b);if(!U)return null;
f=f.replace(/[\(\)\s,\xb0#]/g,"_");a.gradient&&f!==a.gradient.id&&(aa.defs.removeChild(a.gradient),delete a.gradient);if(!a.gradient){H=D(c+"Gradient",{id:f});a.gradient=H;A in q&&H.setAttribute("gradientUnits",h(A));G in j&&H.setAttribute("spreadMethod",h(G));c==="radial"?(v!==void 0&&H.setAttribute("r",h(v)),s!==void 0&&n!==void 0&&(H.setAttribute("cx",h(s)),H.setAttribute("cy",h(n))),H.setAttribute("fx",h(e)),H.setAttribute("fy",h(J))):D(H,{x1:ea[0],y1:ea[1],x2:ea[2],y2:ea[3],gradientTransform:a.matrix.invert()});
aa.defs.appendChild(H);aa=0;for(ea=U.length;aa<ea;aa++)H.appendChild(D("stop",{offset:U[aa].offset?U[aa].offset:aa?"100%":"0%","stop-color":U[aa].color||"#fff","stop-opacity":U[aa].opacity===void 0?1:U[aa].opacity}))}}D(K,{fill:"url('"+d._url+"#"+f+"')",opacity:1,"fill-opacity":1});R.fill="";R.opacity=1;return R.fillOpacity=1},fa=function(a){var b=a.getBBox(1);D(a.pattern,{patternTransform:a.matrix.invert()+" translate("+b.x+","+b.y+")"})},ea=function(a,b,c){if(a.type=="path"){for(var f=h(b).toLowerCase().split("-"),
e=a.paper,i=c?"end":"start",k=a.node,l=a.attrs,j=l["stroke-width"],v=f.length,r="classic",s,w,n=3,q=3,u=5;v--;)switch(f[v]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":r=f[v];break;case "wide":q=5;break;case "narrow":q=2;break;case "long":n=5;break;case "short":n=2}r=="open"?(n+=2,q+=2,u+=2,s=1,w=c?4:1,f={fill:"none",stroke:l.stroke}):(w=s=n/2,f={fill:l.stroke,stroke:"none"});a._.arrows?c?(a._.arrows.endPath&&H[a._.arrows.endPath]--,a._.arrows.endMarker&&H[a._.arrows.endMarker]--):
(a._.arrows.startPath&&H[a._.arrows.startPath]--,a._.arrows.startMarker&&H[a._.arrows.startMarker]--):a._.arrows={};if(r!="none"){var v="raphael-marker-"+r,G="raphael-marker-"+i+r+n+q;d._g.doc.getElementById(v)?H[v]++:(e.defs.appendChild(D(D("path"),{"stroke-linecap":"round",d:A[r],id:v})),H[v]=1);var Q=d._g.doc.getElementById(G);Q?(H[G]++,n=Q.getElementsByTagName("use")[0]):(Q=D(D("marker"),{id:G,markerHeight:q,markerWidth:n,orient:"auto",refX:w,refY:q/2}),n=D(D("use"),{"xlink:href":"#"+v,transform:(c?
"rotate(180 "+n/2+" "+q/2+") ":"")+"scale("+n/u+","+q/u+")","stroke-width":(1/((n/u+q/u)/2)).toFixed(4)}),Q.appendChild(n),e.defs.appendChild(Q),H[G]=1);D(n,f);e=s*(r!="diamond"&&r!="oval");c?(c=a._.arrows.startdx*j||0,j=d.getTotalLength(l.path)-e*j):(c=e*j,j=d.getTotalLength(l.path)-(a._.arrows.enddx*j||0));f={};f["marker-"+i]="url('"+d._url+"#"+G+"')";if(j||c)f.d=Raphael.getSubpath(l.path,c,j);D(k,f);a._.arrows[i+"Path"]=v;a._.arrows[i+"Marker"]=G;a._.arrows[i+"dx"]=e;a._.arrows[i+"Type"]=r;a._.arrows[i+
"String"]=b}else c?(c=a._.arrows.startdx*j||0,j=d.getTotalLength(l.path)-c):(c=0,j=d.getTotalLength(l.path)-(a._.arrows.enddx*j||0)),a._.arrows[i+"Path"]&&D(k,{d:Raphael.getSubpath(l.path,c,j)}),delete a._.arrows[i+"Path"],delete a._.arrows[i+"Marker"],delete a._.arrows[i+"dx"],delete a._.arrows[i+"Type"],delete a._.arrows[i+"String"];for(f in H)H.hasOwnProperty(f)&&!H[f]&&(a=d._g.doc.getElementById(f))&&a.parentNode.removeChild(a)}},U={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,
1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},W=function(a,b,c){var f=U[h(b).toLowerCase()];if(b=f||b!==void 0&&[].concat(b)){var e=a.attrs["stroke-width"]||"1",c={round:e,square:e,butt:0}[a.attrs["stroke-linecap"]||c["stroke-linecap"]]||0,i,k=i=b.length;if(f)for(;i--;)b[i]=b[i]*e+(i%2?1:-1)*c;else for(i=0;i<k;i+=2)b[i]-=c,b[i+1]&&(b[i+1]+=c),b[i]<=0&&(b[i]=0.1);d.is(b,"array")&&D(a.node,{"stroke-dasharray":b.join(",")})}},X=d._setFillAndStroke=
function(a,b){if(a.paper.canvas){var c=a.node,f=a.attrs,i=a.paper,J=c.style.visibility;c.style.visibility="hidden";for(var k in b)if(b.hasOwnProperty(k)&&d._availableAttrs.hasOwnProperty(k)){var j=b[k];f[k]=j;switch(k){case "blur":a.blur(j);break;case "href":case "title":case "target":var n=c.parentNode;if(n.tagName.toLowerCase()!="a"){if(j=="")break;var q=D("a");n.insertBefore(q,c);q.appendChild(c);n=q}k=="target"?n.setAttributeNS("http://www.w3.org/1999/xlink","show",j=="blank"?"new":j):n.setAttributeNS("http://www.w3.org/1999/xlink",
k,j);c.titleNode=n;break;case "cursor":c.style.cursor=j;break;case "transform":a.transform(j);break;case "rotation":d.is(j,"array")?a.rotate.apply(a,j):a.rotate(j);break;case "arrow-start":ea(a,j);break;case "arrow-end":ea(a,j,1);break;case "clip-path":var w=!0;case "clip-rect":n=!w&&h(j).split(K);a._.clipispath=!!w;if(w||n.length==4){a.clip&&a.clip.parentNode.parentNode.removeChild(a.clip.parentNode);var q=D("clipPath"),u=D(w?"path":"rect");q.id=d.createUUID();D(u,w?{d:j?f["clip-path"]=d._pathToAbsolute(j):
d._availableAttrs.path,fill:"none"}:{x:n[0],y:n[1],width:n[2],height:n[3],transform:a.matrix.invert()});q.appendChild(u);i.defs.appendChild(q);D(c,{"clip-path":"url('"+d._url+"#"+q.id+"')"});a.clip=u}if(!j&&(j=c.getAttribute("clip-path")))(j=d._g.doc.getElementById(j.replace(/(^url\(#|\)$)/g,"")))&&j.parentNode.removeChild(j),D(c,{"clip-path":""}),delete a.clip;break;case "path":if(a.type=="path")D(c,{d:j?f.path=d._pathToAbsolute(j):d._availableAttrs.path}),a._.dirty=1,a._.arrows&&("startString"in
a._.arrows&&ea(a,a._.arrows.startString),"endString"in a._.arrows&&ea(a,a._.arrows.endString,1));break;case "width":if(c.setAttribute(k,j),a._.dirty=1,f.fx)k="x",j=f.x;else break;case "x":f.fx&&(j=-f.x-(f.width||0));case "rx":if(k=="rx"&&a.type=="rect")break;case "cx":c.setAttribute(k,j);a.pattern&&fa(a);a._.dirty=1;break;case "height":if(c.setAttribute(k,j),a._.dirty=1,f.fy)k="y",j=f.y;else break;case "y":f.fy&&(j=-f.y-(f.height||0));case "ry":if(k=="ry"&&a.type=="rect")break;case "cy":c.setAttribute(k,
j);a.pattern&&fa(a);a._.dirty=1;break;case "r":a.type=="rect"?D(c,{rx:j,ry:j}):c.setAttribute(k,j);a._.dirty=1;break;case "src":a.type=="image"&&c.setAttributeNS("http://www.w3.org/1999/xlink","href",j);break;case "stroke-width":if(a._.sx!=1||a._.sy!=1)j/=l(r(a._.sx),r(a._.sy))||1;i._vbSize&&(j*=i._vbSize);G&&j===0&&(j=1.0E-6);c.setAttribute(k,j);f["stroke-dasharray"]&&W(a,f["stroke-dasharray"],b);a._.arrows&&("startString"in a._.arrows&&ea(a,a._.arrows.startString),"endString"in a._.arrows&&ea(a,
a._.arrows.endString,1));break;case "stroke-dasharray":W(a,j,b);break;case "fill":var A=h(j).match(d._ISURL);if(A){var q=D("pattern"),Q=D("image");q.id=d.createUUID();D(q,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});D(Q,{x:0,y:0,"xlink:href":A[1]});q.appendChild(Q);(function(a){d._preload(A[1],function(){var b=this.offsetWidth,c=this.offsetHeight;D(a,{width:b,height:c});D(Q,{width:b,height:c});i.safari()})})(q);i.defs.appendChild(q);D(c,{fill:"url('"+d._url+"#"+q.id+"')"});a.pattern=
q;a.pattern&&fa(a);break}n=d.getRGB(j);if(n.error){if((a.type=="circle"||a.type=="ellipse"||h(j).charAt()!="r")&&s(a,j)){if("opacity"in f||"fill-opacity"in f)if(n=d._g.doc.getElementById(c.getAttribute("fill").replace(/^url\(#|\)$/g,"")))n=n.getElementsByTagName("stop"),D(n[n.length-1],{"stop-opacity":("opacity"in f?f.opacity:1)*("fill-opacity"in f?f["fill-opacity"]:1)});f.gradient=j;f.fill="none";break}}else delete b.gradient,delete f.gradient,!d.is(f.opacity,"undefined")&&d.is(b.opacity,"undefined")&&
D(c,{opacity:f.opacity}),!d.is(f["fill-opacity"],"undefined")&&d.is(b["fill-opacity"],"undefined")&&D(c,{"fill-opacity":f["fill-opacity"]});n.hasOwnProperty("opacity")?(D(c,{"fill-opacity":n.opacity>1?n.opacity/100:n.opacity}),a._.opacitydirty=!0):a._.opacitydirty&&d.is(f["fill-opacity"],"undefined")&&d.is(b["fill-opacity"],"undefined")&&(c.removeAttribute("fill-opacity"),delete a._.opacitydirty);case "stroke":n=d.getRGB(j);c.setAttribute(k,n.hex);k=="stroke"&&n.hasOwnProperty("opacity")&&D(c,{"stroke-opacity":n.opacity>
1?n.opacity/100:n.opacity});k=="stroke"&&a._.arrows&&("startString"in a._.arrows&&ea(a,a._.arrows.startString),"endString"in a._.arrows&&ea(a,a._.arrows.endString,1));break;case "gradient":(a.type=="circle"||a.type=="ellipse"||h(j).charAt()!="r")&&s(a,j);break;case "shape-rendering":f[k]=j=ia[j]||j||"default";c.setAttribute(k,j);c.style.shapeRendering=j;break;case "line-height":case "vertical-align":break;case "visibility":j==="hidden"?a.hide():a.show();break;case "opacity":f.gradient&&!f.hasOwnProperty("stroke-opacity")&&
D(c,{"stroke-opacity":j>1?j/100:j});case "fill-opacity":if(f.gradient){if(n=d._g.doc.getElementById(c.getAttribute("fill").replace(/^url\(#|\)$/g,"")))n=n.getElementsByTagName("stop"),D(n[n.length-1],{"stop-opacity":j});break}default:k=="font-size"&&(j=e(j,10)+"px"),n=k.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),c.style[n]=j,a._.dirty=1,c.setAttribute(k,j)}}v(a,b);c.style.visibility=J}},v=function(a,b){if(!(a.type!="text"||!b.hasOwnProperty("text")&&!b.hasOwnProperty("font")&&
!b.hasOwnProperty("font-size")&&!b.hasOwnProperty("x")&&!b.hasOwnProperty("y")&&!b.hasOwnProperty("line-height")&&!b.hasOwnProperty("vertical-align"))){var c=a.attrs,f=a.node,e=f.firstChild&&d._g.doc.defaultView.getComputedStyle(f.firstChild,""),e=e?i(e.getPropertyValue("font-size")):10,k=i(b["line-height"]||c["line-height"])||e*1.2,j=c.hasOwnProperty("vertical-align")?c["vertical-align"]:"middle";isNaN(k)&&(k=e*1.2);j=j==="top"?-0.5:j==="bottom"?0.5:0;if(b.hasOwnProperty("text")&&(b.text!==c.text||
a._textdirty)){for(c.text=b.text;f.firstChild;)f.removeChild(f.firstChild);for(var l=h(b.text).split(/\n|<br\s*?\/?>/ig),e=[],v,n=0,r=l.length;n<r;n++)v=D("tspan"),n?D(v,{dy:k,x:c.x}):D(v,{dy:k*l.length*j,x:c.x}),l[n]||(v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l[n]=" "),v.appendChild(d._g.doc.createTextNode(l[n])),f.appendChild(v),e[n]=v;a._textdirty=!1}else{e=f.getElementsByTagName("tspan");n=0;for(r=e.length;n<r;n++)n?D(e[n],{dy:k,x:c.x}):D(e[0],{dy:k*e.length*
j,x:c.x})}D(f,{x:c.x,y:c.y});a._.dirty=1;f=a._getBBox();(c=c.y-(f.y+f.height/2))&&d.is(c,"finite")&&e[0]&&D(e[0],{dy:c})}},n=function(a,b,c){c=c||b;this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=d._oid++;this.matrix=d.matrix();this.realPath=null;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=b;this.ca=this.customAttributes=this.customAttributes||new b._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=c;!c.bottom&&
(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null},R=d.el;n.prototype=R;R.constructor=n;d._engine.getNode=function(a){a=a.node||a[0].node;return a.titleNode||a};d._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};d._engine.path=function(a,b,c){var f=D("path");c&&c.canvas&&c.canvas.appendChild(f)||b.canvas&&b.canvas.appendChild(f);b=new n(f,b,c);b.type="path";X(b,{fill:"none",stroke:"#000",path:a});return b};R.rotate=function(a,b,c){if(this.removed)return this;
a=h(a).split(K);a.length-1&&(b=i(a[1]),c=i(a[2]));a=i(a[0]);c==null&&(b=c);if(b==null||c==null)c=this.getBBox(1),b=c.x+c.width/2,c=c.y+c.height/2;this.transform(this._.transform.concat([["r",a,b,c]]));return this};R.scale=function(a,b,c,f){var d;if(this.removed)return this;a=h(a).split(K);a.length-1&&(b=i(a[1]),c=i(a[2]),f=i(a[3]));a=i(a[0]);b==null&&(b=a);f==null&&(c=f);if(c==null||f==null)d=this.getBBox(1);c=c==null?d.x+d.width/2:c;f=f==null?d.y+d.height/2:f;this.transform(this._.transform.concat([["s",
a,b,c,f]]));return this};R.translate=function(a,b){if(this.removed)return this;a=h(a).split(K);a.length-1&&(b=i(a[1]));a=i(a[0])||0;this.transform(this._.transform.concat([["t",a,+b||0]]));return this};R.transform=function(a){var b=this._;if(a==null)return b.transform;d._extractTransform(this,a);this.clip&&!b.clipispath&&D(this.clip,{transform:this.matrix.invert()});this.pattern&&fa(this);this.node&&D(this.node,{transform:this.matrix});if(b.sx!=1||b.sy!=1)a=this.attrs.hasOwnProperty("stroke-width")?
this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};R.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};R.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};R.remove=function(){if(!this.removed&&this.parent.canvas){var a=d._engine.getNode(this),b=this.paper,c=b.defs;b.__set__&&b.__set__.exclude(this);aa.unbind("raphael.*.*."+this.id);for(this.gradient&&c&&c.removeChild(this.gradient);c=this.followers.pop();)c.el.remove();
this.parent.canvas.removeChild(a);d._tear(this,b);for(c in this)this[c]=typeof this[c]==="function"?d._removedFactory(c):null;this.removed=!0}};R._getBBox=function(){var a=this.node,b={},c=this.attrs,f,d;a.style.display==="none"&&(this.show(),d=!0);try{if(b=a.getBBox(),this.type=="text"){if(b.x===void 0)f=c["text-anchor"],b.x=(c.x||0)-b.width*(f==="start"?0:f==="middle"?0.5:1);if(b.y===void 0)f=c["vertical-align"],b.y=(c.y||0)-b.height*(f==="top"?1.2:f==="middle"?0.65:0)}}catch(e){}finally{b=b||{}}d&&
this.hide();return b};R.css=function(a,b){if(this.removed)return this;if(b==null&&d.is(a,"string")){for(var c=a.split(K),f={},e=0,h=c.length;e<h;e++)a=c[e],a in this.styles&&(f[a]=this.styles[a]);return h-1?f:f[c[0]]}if(b==null&&d.is(a,"array")){f={};e=0;for(h=a.length;e<h;e++)f[a[e]]=this.styles(a[e]);return f}b!=null?(c={},c[a]=b):a!=null&&d.is(a,"object")&&(c=a);f={};for(h in c)e=h.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),d._availableAttrs.hasOwnProperty(e)||e==="color"?(e==="color"&&this.type===
"text"&&(e="fill"),f[e]=c[h],f.dirty=!0):(aa("raphael.css."+e+"."+this.id,this,c[h],e),this.node.style[e]=c[h],this.styles[e]=c[h]);e=0;for(h=this.followers.length;e<h;e++)this.followers[e].el.css(c);f.hasOwnProperty("dirty")&&(delete f.dirty,this.attr(f));return this};R.attr=function(a,b){if(this.removed)return this;if(a==null){var c={},f;for(f in this.attrs)this.attrs.hasOwnProperty(f)&&(c[f]=this.attrs[f]);c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient;c.transform=this._.transform;
c.visibility=this.node.style.display==="none"?"hidden":"visible";return c}if(b==null&&d.is(a,"string")){if(a=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(a=="transform")return this._.transform;if(a=="visibility")return this.node.style.display==="none"?"hidden":"visible";var c=a.split(K),e={},h=0;for(f=c.length;h<f;h++)a=c[h],e[a]=a in this.attrs?this.attrs[a]:d.is(this.ca[a],"function")?this.ca[a].def:d._availableAttrs[a];return f-1?e:e[c[0]]}if(b==null&&d.is(a,
"array")){e={};h=0;for(f=a.length;h<f;h++)e[a[h]]=this.attr(a[h]);return e}b!=null?(c={},c[a]=b):a!=null&&d.is(a,"object")&&(c=a);for(h in c)aa("raphael.attr."+h+"."+this.id,this,c[h],h);var i={};for(h in this.ca)if(this.ca[h]&&c.hasOwnProperty(h)&&d.is(this.ca[h],"function")&&!this.ca["_invoked"+h]){this.ca["_invoked"+h]=!0;f=this.ca[h].apply(this,[].concat(c[h]));delete this.ca["_invoked"+h];for(e in f)f.hasOwnProperty(e)&&(c[e]=f[e]);this.attrs[h]=c[h];f===!1&&(i[h]=c[h],delete c[h])}X(this,c);
var k,h=0;for(f=this.followers.length;h<f;h++)k=this.followers[h],k.cb&&!k.cb.call(k.el,c,this)||k.el.attr(c);for(e in i)c[e]=i[e];return this};R.blur=function(a){if(+a!==0){var b=D("filter"),c=D("feGaussianBlur");this.attrs.blur=a;b.id=d.createUUID();D(c,{stdDeviation:+a||1.5});b.appendChild(c);this.paper.defs.appendChild(b);this._blur=b;D(this.node,{filter:"url('"+d._url+"#"+b.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};
R.on=function(a,b){if(this.removed)return this;var c=b;d._supportsTouch&&(a=d._touchMap[a]||a==="click"&&"touchstart"||a,c=function(a){a.preventDefault();b()});this.node["on"+a]=c;return this};d._engine.group=function(a,b,c){var f=D("g");c&&c.canvas&&c.canvas.appendChild(f)||a.canvas&&a.canvas.appendChild(f);a=new n(f,a,c);a.type="group";a.canvas=a.node;a.top=null;a.bottom=null;b&&f.setAttribute("class",["red",b,a.id].join("-"));return a};d._engine.circle=function(a,b,c,f,d){var e=D("circle");d&&
d.canvas&&d.canvas.appendChild(e)||a.canvas&&a.canvas.appendChild(e);a=new n(e,a,d);a.attrs={cx:b,cy:c,r:f,fill:"none",stroke:"#000"};a.type="circle";D(e,a.attrs);return a};d._engine.rect=function(a,b,c,f,d,e,h){var i=D("rect");h&&h.canvas&&h.canvas.appendChild(i)||a.canvas&&a.canvas.appendChild(i);a=new n(i,a,h);a.attrs={x:b,y:c,width:f,height:d,r:e||0,rx:e||0,ry:e||0,fill:"none",stroke:"#000"};a.type="rect";D(i,a.attrs);return a};d._engine.ellipse=function(a,b,c,f,d,e){var h=D("ellipse");e&&e.canvas&&
e.canvas.appendChild(h)||a.canvas&&a.canvas.appendChild(h);a=new n(h,a,e);a.attrs={cx:b,cy:c,rx:f,ry:d,fill:"none",stroke:"#000"};a.type="ellipse";D(h,a.attrs);return a};d._engine.image=function(a,b,c,f,d,e,h){var i=D("image");D(i,{x:c,y:f,width:d,height:e,preserveAspectRatio:"none"});i.setAttributeNS("http://www.w3.org/1999/xlink","href",b);h&&h.canvas&&h.canvas.appendChild(i)||a.canvas&&a.canvas.appendChild(i);a=new n(i,a,h);a.attrs={x:c,y:f,width:d,height:e,src:b};a.type="image";return a};d._engine.text=
function(a,b,c,f,d){var e=D("text");d&&d.canvas&&d.canvas.appendChild(e)||a.canvas&&a.canvas.appendChild(e);a=new n(e,a,d);a.attrs={x:b,y:c,"text-anchor":"middle","vertical-align":"middle",text:f,stroke:"none",fill:"#000"};a.type="text";a._textdirty=!0;X(a,a.attrs);return a};d._engine.setSize=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);
return this};d._engine.create=function(){var a=d._getContainer.apply(0,arguments),b=a&&a.container,c=a.x,f=a.y,e=a.width,a=a.height;if(!b)throw Error("SVG container not found.");var h=D("svg"),i,c=c||0,f=f||0,e=e||512,a=a||342;D(h,{height:a,version:1.1,width:e,xmlns:"http://www.w3.org/2000/svg"});b==1?(h.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+
c+"px;top:"+f+"px",d._g.doc.body.appendChild(h),i=1):(h.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",b.firstChild?b.insertBefore(h,b.firstChild):b.appendChild(h));b=new d._Paper;b.width=e;b.height=a;b.canvas=h;b.clear();b._left=b._top=0;i&&(b.renderfix=function(){});b.renderfix();return b};d._engine.setViewBox=
function(a,b,c,f,d){aa("raphael.setViewBox",this,this._viewBox,[a,b,c,f,d]);var e=l(c/this.width,f/this.height),h=this.top,i;a==null?(this._vbSize&&(e=1),delete this._vbSize,i="0 0 "+this.width+" "+this.height):(this._vbSize=e,i=a+" "+b+" "+c+" "+f);for(D(this.canvas,{viewBox:i,preserveAspectRatio:d?"meet":"xMinYMin"});e&&h;)i="stroke-width"in h.attrs?h.attrs["stroke-width"]:1,h.attr({"stroke-width":i}),h._.dirty=1,h._.dirtyT=1,h=h.prev;this._viewBox=[a,b,c,f,!!d];return this};d.prototype.renderfix=
function(){var a=this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(f){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c){if(a)this._left=(this._left+a)%1,b.left=this._left+"px";if(c)this._top=(this._top+c)%1,b.top=this._top+"px"}};d.prototype.clear=function(){aa("raphael.clear",this);for(var a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;(this.desc=D("desc")).appendChild(d._g.doc.createTextNode(d.is(d.desc,"string")&&d.desc||"Created with Red Rapha\u00ebl "+
d.version));a.appendChild(this.desc);a.appendChild(this.defs=D("defs"))};d.prototype.remove=function(){aa("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=typeof this[a]=="function"?d._removedFactory(a):null;this.removed=!0};var b=d.st,f;for(f in R)R.hasOwnProperty(f)&&!b.hasOwnProperty(f)&&(b[f]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(f))}(window.Raphael);window.Raphael.vml&&
function(d){var h=String,i=parseFloat,e=Math,k=e.round,l=e.max,r=e.min,w=e.sqrt,u=e.abs,K=/[, ]+/,G=d.eve,aa={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},A=/([clmz]),?([^clmz]*)/gi,ia=/ progid:\S+Blur\([^\)]+\)/g,H=/-?[^,\s-]+/g,D={path:1,rect:1,image:1},q={circle:1,ellipse:1},j=function(b){var f=/[ahqstv]/ig,a=d._pathToAbsolute;h(b).match(f)&&(a=d._path2curve);f=/[clmz]/g;if(a==d._pathToAbsolute&&!h(b).match(f))return(b=h(b).replace(A,function(a,b,c){var f=[],g=b.toLowerCase()=="m",d=aa[b];
c.replace(H,function(a){g&&f.length==2&&(d+=f+aa[b=="m"?"l":"L"],f=[]);f.push(k(a*21600))});return d+f}))||"m0,0";for(var f=a(b),g,b=[],c=0,e=f.length;c<e;c++){a=f[c];g=f[c][0].toLowerCase();g=="z"&&(g="x");for(var i=1,l=a.length;i<l;i++)g+=k(a[i]*21600)+(i!=l-1?",":"");b.push(g)}return b.length?b.join(" "):"m0,0"},s=function(b,f,a){var g=d.matrix();g.rotate(-b,0.5,0.5);return{dx:g.x(f,a),dy:g.y(f,a)}},fa=function(b,f,a,g,c,d){var e=b._,h=b.matrix,i=e.fillpos,b=b.node,k=b.style,l=1,j="",n=21600/f,
v=21600/a;k.visibility="hidden";if(f&&a){b.coordsize=u(n)+" "+u(v);k.rotation=d*(f*a<0?-1:1);if(d)c=s(d,g,c),g=c.dx,c=c.dy;f<0&&(j+="x");a<0&&(j+=" y")&&(l=-1);k.flip=j;b.coordorigin=g*-n+" "+c*-v;if(i||e.fillsize){g=(g=b.getElementsByTagName("fill"))&&g[0];b.removeChild(g);if(i)c=s(d,h.x(i[0],i[1]),h.y(i[0],i[1])),g.position=c.dx*l+" "+c.dy*l;if(e.fillsize)g.size=e.fillsize[0]*u(f)+" "+e.fillsize[1]*u(a);b.appendChild(g)}k.visibility="visible"}};d._url="";d.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+
this.version};var ea=function(b,f,a){for(var f=h(f).toLowerCase().split("-"),a=a?"end":"start",g=f.length,c="classic",d="medium",e="medium";g--;)switch(f[g]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":c=f[g];break;case "wide":case "narrow":e=f[g];break;case "long":case "short":d=f[g]}b=b.node.getElementsByTagName("stroke")[0];b[a+"arrow"]=c;b[a+"arrowlength"]=d;b[a+"arrowwidth"]=e},U=d._setFillAndStroke=function(b,f){if(b.paper.canvas){b.attrs=b.attrs||{};var a=
b.node,g=b.attrs,c=a.style,e=D[b.type]&&(f.x!=g.x||f.y!=g.y||f.width!=g.width||f.height!=g.height||f.cx!=g.cx||f.cy!=g.cy||f.rx!=g.rx||f.ry!=g.ry||f.r!=g.r),x=q[b.type]&&(g.cx!=f.cx||g.cy!=f.cy||g.r!=f.r||g.rx!=f.rx||g.ry!=f.ry),n=b.type==="group",s;for(s in f)f.hasOwnProperty(s)&&(g[s]=f[s]);if(e)g.path=d._getPath[b.type](b),b._.dirty=1;f.href&&(a.href=f.href);f.title&&(a.title=f.title);f.target&&(a.target=f.target);f.cursor&&(c.cursor=f.cursor);"blur"in f&&b.blur(f.blur);if(f.path&&b.type=="path"||
e)if(a.path=j(~h(g.path).toLowerCase().indexOf("r")?d._pathToAbsolute(g.path):g.path),b.type=="image")b._.fillpos=[g.x,g.y],b._.fillsize=[g.width,g.height],fa(b,1,1,0,0,0);"transform"in f&&b.transform(f.transform);if("rotation"in f)c=f.rotation,d.is(c,"array")?b.rotate.apply(b,c):b.rotate(c);if("shape-rendering"in f)a.style.antialias=f["shape-rendering"]!=="crisp";"visibility"in f&&(f.visibility==="hidden"?b.hide():b.show());if(x)c=+g.cx,x=+g.cy,e=+g.rx||+g.r||0,s=+g.ry||+g.r||0,a.path=d.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",
k((c-e)*21600),k((x-s)*21600),k((c+e)*21600),k((x+s)*21600),k(c*21600));if("clip-rect"in f){c=h(f["clip-rect"]).split(K);if(c.length==4){c[0]=+c[0];c[1]=+c[1];c[2]=+c[2]+c[0];c[3]=+c[3]+c[1];e=n?a:a.clipRect||d._g.doc.createElement("div");x=e.style;if(n)b.clip=c.slice(),e=b.matrix.offset(),e=[i(e[0]),i(e[1])],c[0]-=e[0],c[1]-=e[1],c[2]-=e[0],c[3]-=e[1],x.width="10800px",x.height="10800px";else if(!a.clipRect)x.top="0",x.left="0",x.width=b.paper.width+"px",x.height=b.paper.height+"px",a.parentNode.insertBefore(e,
a),e.appendChild(a),a.clipRect=e;x.position="absolute";x.clip=d.format("rect({1}px {2}px {3}px {0}px)",c)}if(!f["clip-rect"])if(n&&b.clip)a.style.clip="rect(auto auto auto auto)",delete b.clip;else if(a.clipRect)a.clipRect.style.clip="rect(auto auto auto auto)"}if(b.textpath)n=b.textpath.style,f.font&&(n.font=f.font),f["font-family"]&&(n.fontFamily='"'+f["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),f["font-size"]&&(n.fontSize=f["font-size"]),f["font-weight"]&&(n.fontWeight=f["font-weight"]),
f["font-style"]&&(n.fontStyle=f["font-style"]);"arrow-start"in f&&ea(b,f["arrow-start"]);"arrow-end"in f&&ea(b,f["arrow-end"],1);if(f.opacity!=null||f["stroke-width"]!=null||f.fill!=null||f.src!=null||f.stroke!=null||f["stroke-width"]!=null||f["stroke-opacity"]!=null||f["fill-opacity"]!=null||f["stroke-dasharray"]!=null||f["stroke-miterlimit"]!=null||f["stroke-linejoin"]!=null||f["stroke-linecap"]!=null){n=a.getElementsByTagName("fill");c=-1;n=n&&n[0];!n&&(n=v("fill"));if(b.type=="image"&&f.src)n.src=
f.src;f.fill&&(n.on=!0);if(n.on==null||f.fill=="none"||f.fill===null)n.on=!1;if(n.on&&f.fill)if(x=h(f.fill).match(d._ISURL))n.parentNode==a&&a.removeChild(n),n.rotate=!0,n.src=x[1],n.type="tile",e=b.getBBox(1),n.position=e.x+" "+e.y,b._.fillpos=[e.x,e.y],d._preload(x[1],function(){b._.fillsize=[this.offsetWidth,this.offsetHeight]});else if(x=d.getRGB(f.fill),n.color=x.hex,n.src="",n.type="solid",x.error&&(b.type in{circle:1,ellipse:1}||h(f.fill).charAt()!="r")&&W(b,f.fill,n))g.fill="none",g.gradient=
f.fill,n.rotate=!1;else if("opacity"in x&&!("fill-opacity"in f))c=x.opacity;if(c!==-1||"fill-opacity"in f||"opacity"in f)if(x=((+g["fill-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+c+1||2)-1),x=r(l(x,0),1),n.opacity=x,n.src)n.color="none";a.appendChild(n);n=a.getElementsByTagName("stroke")&&a.getElementsByTagName("stroke")[0];c=!1;!n&&(c=n=v("stroke"));if(f.stroke&&f.stroke!="none"||f["stroke-width"]||f["stroke-opacity"]!=null||f["stroke-dasharray"]||f["stroke-miterlimit"]||f["stroke-linejoin"]||
f["stroke-linecap"])n.on=!0;(f.stroke=="none"||f.stroke===null||n.on==null||f.stroke==0||f["stroke-width"]==0)&&(n.on=!1);x=d.getRGB("stroke"in f?f.stroke:g.stroke);n.on&&f.stroke&&(n.color=x.hex);x=((+g["stroke-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+x.opacity+1||2)-1);e=(i(f["stroke-width"])||1)*0.75;x=r(l(x,0),1);f["stroke-width"]==null&&(e=g["stroke-width"]);f["stroke-width"]&&(n.weight=e);e&&e<1&&(x*=e)&&(n.weight=1);n.opacity=x;f["stroke-linejoin"]&&(n.joinstyle=f["stroke-linejoin"])||c&&
(c.joinstyle="miter");n.miterlimit=f["stroke-miterlimit"]||8;f["stroke-linecap"]&&(n.endcap=f["stroke-linecap"]=="butt"?"flat":f["stroke-linecap"]=="square"?"square":"round");if(f["stroke-dasharray"])x={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},n.dashstyle=x.hasOwnProperty(f["stroke-dasharray"])?x[f["stroke-dasharray"]]:f["stroke-dasharray"].join&&f["stroke-dasharray"].join(" ")||
"";c&&a.appendChild(n)}if(b.type=="text"){b.paper.canvas.style.display="";a=b.paper.span;n=g.font&&g.font.match(/\d+(?:\.\d*)?(?=px)/);x=g["line-height"]&&(g["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);c=a.style;g.font&&(c.font=g.font);g["font-family"]&&(c.fontFamily=g["font-family"]);g["font-weight"]&&(c.fontWeight=g["font-weight"]);g["font-style"]&&(c.fontStyle=g["font-style"]);n=i(g["font-size"]||n&&n[0])||10;c.fontSize=n*100+"px";x=i(g["line-height"]||x&&x[0])||12;g["line-height"]&&(c.lineHeight=
x*100+"px");b.textpath.string&&(a.innerHTML=h(b.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));a=a.getBoundingClientRect();b.W=g.w=(a.right-a.left)/100;b.H=g.h=(a.bottom-a.top)/100;b.X=g.x;b.Y=g.y;switch(g["vertical-align"]){case "top":b.bby=b.H/2;break;case "bottom":b.bby=-b.H/2;break;default:b.bby=0}("x"in f||"y"in f||b.bby!==void 0)&&(b.path.v=d.format("m{0},{1}l{2},{1}",k(g.x*21600),k((g.y+(b.bby||0))*21600),k(g.x*21600)+1));a=["x","y","text","font","font-family",
"font-weight","font-style","font-size","line-height"];n=0;for(c=a.length;n<c;n++)if(a[n]in f){b._.dirty=1;break}switch(g["text-anchor"]){case "start":b.textpath.style["v-text-align"]="left";b.bbx=b.W/2;break;case "end":b.textpath.style["v-text-align"]="right";b.bbx=-b.W/2;break;default:b.textpath.style["v-text-align"]="center",b.bbx=0}b.textpath.style["v-text-kern"]=!0}}},W=function(b,f,a){b.attrs=b.attrs||{};var g=Math.pow,c="linear",e=".5 .5";b.attrs.gradient=f;f=h(f).replace(d._radial_gradient,
function(a,b){c="radial";var b=b&&b.split(",")||[],f=b[3],d=b[4];f&&d&&(f=i(f),d=i(d),g(f-0.5,2)+g(d-0.5,2)>0.25&&(d=w(0.25-g(f-0.5,2))*((d>0.5)*2-1)+0.5),e=f+" "+d);return""});f=f.split(/\s*\-\s*/);if(c=="linear"){var k=f.shift(),k=-i(k);if(isNaN(k))return null}f=d._parseDots(f);if(!f)return null;b=b.shape||b.node;if(f.length){b.removeChild(a);a.on=!0;a.method="none";a.color=f[0].color;a.color2=f[f.length-1].color;for(var l=[],j=1,n=f[0].opacity===void 0?1:f[0].opacity,v=0,r=f.length;v<r;v++)if(f[v].offset&&
l.push(f[v].offset+" "+f[v].color),f[v].opacity!==void 0)j=f[v].opacity;a.colors=l.length?l.join():"0% "+a.color;a.opacity=j;a["o:opacity2"]=n;c=="radial"?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=e,a.angle=0):(a.type="gradient",a.angle=(270-k)%360);b.appendChild(a)}return 1},X=function(b,f,a){a=a||f;this.node=this[0]=b;b.raphael=!0;b.raphaelid=this.id=d._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=
f;this.ca=this.customAttributes=this.customAttributes||new f._CustomAttributes;this.matrix=d.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=a;!a.bottom&&(a.bottom=this);(this.prev=a.top)&&(a.top.next=this);a.top=this;this.next=null},e=d.el;X.prototype=e;e.constructor=X;e.transform=function(b){if(b==null)return this._.transform;var f=this.paper._viewBoxShift,a=f?"s"+[f.scale,f.scale]+"-1-1t"+[f.dx,f.dy]:"",g;f&&(g=b=h(b).replace(/\.{3}|\u2026/g,this._.transform||
""));d._extractTransform(this,a+b);var f=this.matrix.clone(),c=this.skew,b=this.node,a=~h(this.attrs.fill).indexOf("-"),e=!h(this.attrs.fill).indexOf("url(");f.translate(-0.5,-0.5);e||a||this.type=="image"?(c.matrix="1 0 0 1",c.offset="0 0",c=f.split(),a&&c.noRotation||!c.isSimple?(b.style.filter=f.toFilter(),f=this.getBBox(),a=this.getBBox(1),e=f.x2&&a.x2&&"x2"||"x",c=f.y2&&a.y2&&"y2"||"y",e=f[e]-a[e],f=f[c]-a[c],b.coordorigin=e*-21600+" "+f*-21600,fa(this,1,1,e,f,0)):(b.style.filter="",fa(this,
c.scalex,c.scaley,c.dx,c.dy,c.rotate))):(b.style.filter="",c.matrix=h(f),c.offset=f.offset());g&&(this._.transform=g);return this};e.rotate=function(b,f,a){if(this.removed)return this;if(b!=null){b=h(b).split(K);b.length-1&&(f=i(b[1]),a=i(b[2]));b=i(b[0]);a==null&&(f=a);if(f==null||a==null)a=this.getBBox(1),f=a.x+a.width/2,a=a.y+a.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,f,a]]));return this}};e.translate=function(b,f){if(this.removed)return this;b=h(b).split(K);b.length-
1&&(f=i(b[1]));b=i(b[0])||0;f=+f||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=f);this.transform(this._.transform.concat([["t",b,f]]));return this};e.scale=function(b,f,a,g){if(this.removed)return this;b=h(b).split(K);b.length-1&&(f=i(b[1]),a=i(b[2]),g=i(b[3]),isNaN(a)&&(a=null),isNaN(g)&&(g=null));b=i(b[0]);f==null&&(f=b);g==null&&(a=g);if(a==null||g==null)var c=this.getBBox(1);a=a==null?c.x+c.width/2:a;g=g==null?c.y+c.height/2:g;this.transform(this._.transform.concat([["s",b,f,a,g]]));this._.dirtyT=
1;return this};e.hide=function(){!this.removed&&(this.node.style.display="none");return this};e.show=function(){!this.removed&&(this.node.style.display="");return this};e._getBBox=function(){if(this.removed)return{};return{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};e.remove=function(){if(!this.removed&&this.parent.canvas){var b,f=d._engine.getNode(this);this.paper.__set__&&this.paper.__set__.exclude(this);for(G.unbind("raphael.*.*."+this.id);b=this.followers.pop();)b.el.remove();
this.shape&&this.shape.parentNode.removeChild(this.shape);f.parentNode.removeChild(f);d._tear(this,this.paper);for(b in this)this[b]=typeof this[b]=="function"?d._removedFactory(b):null;this.removed=!0}};e.css=function(b,f){if(this.removed)return this;if(f==null&&d.is(b,"string")){for(var a=b.split(K),g={},c=0,e=a.length;c<e;c++)b=a[c],b in this.styles&&(g[b]=this.styles[b]);return e-1?g:g[a[0]]}if(f==null&&d.is(b,"array")){g={};c=0;for(e=b.length;c<e;c++)g[b[c]]=this.styles(b[c]);return g}f!=null?
(a={},a[b]=f):b!=null&&d.is(b,"object")&&(a=b);g={};for(e in a)c=e.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),c==="color"&&this.type==="text"&&(c="fill"),d._availableAttrs.hasOwnProperty(c)?(g[c]=a[e],g.dirty=!0):(G("raphael.css."+c+"."+this.id,this,a[e],c),a[e]!=void 0&&(this.node.style[c]=a[e]),this.styles[c]=a[e]);c=0;for(e=this.followers.length;c<e;c++)this.followers[c].el.css(a);g.hasOwnProperty("dirty")&&(delete g.dirty,this.attr(g));return this};e.attr=function(b,f){if(this.removed)return this;
if(b==null){var a={},g;for(g in this.attrs)this.attrs.hasOwnProperty(g)&&(a[g]=this.attrs[g]);a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient;a.transform=this._.transform;a.visibility=this.node.style.display==="none"?"hidden":"visible";return a}if(f==null&&d.is(b,"string")){if(b=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(b=="visibility")return this.node.style.display==="none"?"hidden":"visible";var a=b.split(K),c={},e=0;for(g=a.length;e<
g;e++)b=a[e],c[b]=b in this.attrs?this.attrs[b]:d.is(this.ca[b],"function")?this.ca[b].def:d._availableAttrs[b];return g-1?c:c[a[0]]}if(this.attrs&&f==null&&d.is(b,"array")){c={};e=0;for(g=b.length;e<g;e++)c[b[e]]=this.attr(b[e]);return c}f!=null&&(a={},a[b]=f);f==null&&d.is(b,"object")&&(a=b);for(e in a)G("raphael.attr."+e+"."+this.id,this,a[e],e);if(a){var h={};for(e in this.ca)if(this.ca[e]&&a.hasOwnProperty(e)&&d.is(this.ca[e],"function")&&!this.ca["_invoked"+e]){this.ca["_invoked"+e]=!0;g=this.ca[e].apply(this,
[].concat(a[e]));delete this.ca["_invoked"+e];for(c in g)g.hasOwnProperty(c)&&(a[c]=g[c]);this.attrs[e]=a[e];g===!1&&(h[e]=a[e],delete a[e])}if("text"in a&&this.type=="text")this.textpath.string=a.text.replace(/<br\s*?\/?>/ig,"\n");U(this,a);var i,e=0;for(g=this.followers.length;e<g;e++)i=this.followers[e],i.cb&&!i.cb.call(i.el,a,this)||i.el.attr(a);for(c in h)a[c]=h[c]}return this};e.blur=function(b){var f=this.node.runtimeStyle,a=f.filter,a=a.replace(ia,"");+b!==0?(this.attrs.blur=b,f.filter=a+
"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+b||1.5)+")",f.margin=d.format("-{0}px 0 0 -{0}px",k(+b||1.5))):(f.filter=a,f.margin=0,delete this.attrs.blur);return this};e.on=function(b,f){if(this.removed)return this;this.node["on"+b]=function(){var a=d._g.win.event;a.target=a.srcElement;f(a)};return this};d._engine.getNode=function(b){b=b.node||b[0].node;return b.clipRect||b};d._engine.getLastNode=function(b){b=b.node||b[b.length-1].node;return b.clipRect||b};d._engine.group=function(b,
f,a){var g=d._g.doc.createElement("div"),c=new X(g,b,a);g.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f&&(g.className=["red",f,c.id].join("-"));(a||b).canvas.appendChild(g);c.type="group";c.canvas=c.node;c.transform=d._engine.group.transform;c.top=null;c.bottom=null;return c};d._engine.group.transform=function(b){if(b==null)return this._.transform;var f=this.node.style,a=this.clip,g=this.paper._viewBoxShift,c=g?"s"+[g.scale,g.scale]+"-1-1t"+[g.dx,g.dy]:"";g&&(b=h(b).replace(/\.{3}|\u2026/g,
this._.transform||""));d._extractTransform(this,c+b);b=this.matrix;c=b.offset();g=i(c[0])||0;c=i(c[1])||0;f.left=g+"px";f.top=c+"px";f.zoom=(this._.tzoom=b.get(0))+"";a&&(f.clip=d.format("rect({1}px {2}px {3}px {0}px)",[a[0]-g,a[1]-c,a[2]-g,a[3]-c]));return this};d._engine.path=function(b,f,a){var g=v("shape");g.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";g.coordsize="21600 21600";g.coordorigin=f.coordorigin;var c=new X(g,f,a),e={fill:"none",stroke:"#000"};b&&(e.path=b);c.type=
"path";c.path=[];c.Path="";U(c,e);(a||f).canvas.appendChild(g);b=v("skew");b.on=!0;g.appendChild(b);c.skew=b;return c};d._engine.rect=function(b,f,a,g,c,e,h){var i=d._rectPath(f,a,g,c,e),b=b.path(i,h),h=b.attrs;b.X=h.x=f;b.Y=h.y=a;b.W=h.width=g;b.H=h.height=c;h.r=e;h.path=i;b.type="rect";return b};d._engine.ellipse=function(b,f,a,g,c,e){b=b.path(void 0,e);b.X=f-g;b.Y=a-c;b.W=g*2;b.H=c*2;b.type="ellipse";U(b,{cx:f,cy:a,rx:g,ry:c});return b};d._engine.circle=function(b,f,a,g,c){b=b.path(void 0,c);b.X=
f-g;b.Y=a-g;b.W=b.H=g*2;b.type="circle";U(b,{cx:f,cy:a,r:g});return b};d._engine.image=function(b,f,a,g,c,e,h){var i=d._rectPath(a,g,c,e),b=b.path(i,h).attr({stroke:"none"}),h=b.attrs,k=b.node,l=k.getElementsByTagName("fill")[0];h.src=f;b.X=h.x=a;b.Y=h.y=g;b.W=h.width=c;b.H=h.height=e;h.path=i;b.type="image";l.parentNode==k&&k.removeChild(l);l.rotate=!0;l.src=f;l.type="tile";b._.fillpos=[a,g];b._.fillsize=[c,e];k.appendChild(l);fa(b,1,1,0,0,0);return b};d._engine.text=function(b,f,a,e,c){var i=v("shape"),
l=v("path"),j=v("textpath"),f=f||0,a=a||0;l.v=d.format("m{0},{1}l{2},{1}",k(f*21600),k(a*21600),k(f*21600)+1);l.textpathok=!0;j.string=h(e).replace(/<br\s*?\/?>/ig,"\n");j.on=!0;i.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";i.coordsize="21600 21600";i.coordorigin="0 0";var n=new X(i,b,c),r={fill:"#000",stroke:"none",text:e};n.shape=i;n.path=l;n.textpath=j;n.type="text";n.attrs.text=h(e||"");n.attrs.x=f;n.attrs.y=a;n.attrs.w=1;n.attrs.h=1;U(n,r);i.appendChild(j);i.appendChild(l);
(c||b).canvas.appendChild(i);b=v("skew");b.on=!0;i.appendChild(b);n.skew=b;return n};d._engine.setSize=function(b,f){var a=this.canvas.style;this.width=b;this.height=f;b==+b&&(b+="px");f==+f&&(f+="px");a.width=b;a.height=f;a.clip="rect(0 "+b+" "+f+" 0)";this._viewBox&&d._engine.setViewBox.apply(this,this._viewBox);return this};d._engine.setViewBox=function(b,f,a,e,c){G("raphael.setViewBox",this,this._viewBox,[b,f,a,e,c]);var d=this.width,h=this.height,i=1/l(a/d,e/h),k,j;c&&(k=h/e,j=d/a,a*k<d&&(b-=
(d-a*k)/2/k),e*j<h&&(f-=(h-e*j)/2/j));this._viewBox=[b,f,a,e,!!c];this._viewBoxShift={dx:-b,dy:-f,scale:i};this.forEach(function(a){a.transform("...")});return this};var v;d._engine.initWin=function(b){var f=b.document;f.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!f.namespaces.rvml&&f.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),v=d._createNode=function(a,b){var e=f.createElement("<rvml:"+a+' class="rvml">'),d;for(d in b)e[d]=h(b[d]);return e}}catch(a){v=d._createNode=
function(a,b){var e=f.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),d;for(d in b)e[d]=h(b[d]);return e}}};d._engine.initWin(d._g.win);d._engine.create=function(){var b=d._getContainer.apply(0,arguments),f=b.container,a=b.height,e=b.width,c=b.x,b=b.y;if(!f)throw Error("VML container not found.");var h=new d._Paper,i=h.canvas=d._g.doc.createElement("div"),k=i.style,c=c||0,b=b||0,e=e||512,a=a||342;h.width=e;h.height=a;e==+e&&(e+="px");a==+a&&(a+="px");h.coordsize="21600000 21600000";
h.coordorigin="0 0";h.span=d._g.doc.createElement("span");h.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";i.appendChild(h.span);k.cssText=d.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",e,a);f==1?(d._g.doc.body.appendChild(i),k.left=c+"px",k.top=b+"px",k.position="absolute"):f.firstChild?f.insertBefore(i,f.firstChild):f.appendChild(i);h.renderfix=function(){};
return h};d.prototype.clear=function(){G("raphael.clear",this);this.canvas.innerHTML="";this.span=d._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};d.prototype.remove=function(){G("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var b in this)this[b]=typeof this[b]=="function"?d._removedFactory(b):null;return!0};
var n=d.st,R;for(R in e)e.hasOwnProperty(R)&&!n.hasOwnProperty(R)&&(n[R]=function(b){return function(){var f=arguments;return this.forEach(function(a){a[b].apply(a,f)})}}(R))}(window.Raphael);i.Raphael=r;i.Raphael.desc="framework "+this.core.version.join(".");if(u&&u!==r)window.Raphael=u;else if(window.Raphael===r)window.Raphael=void 0}]);
FusionCharts(["private","modules.renderer.js-raphaelshadow",function(){var i=this.hcLib,l=window,u=l.navigator.userAgent,r=l.Math,d=r.sqrt,h=l.parseFloat,M=l.parseInt;/AppleWebKit/.test(u);/Safari/.test(u)&&/Version\/[1-4]\./.test(u);/Chrome/.test(u);/msie/i.test(u);var l=l.SVGFilterElement||l.SVGFEColorMatrixElement&&l.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE===2,e=i.Raphael,r=Math,k=e._createNode,V;if(e.svg){if(l)e.el.dropshadow=function(i,l,r,u){var aa=this.node,A=this._.shadowFilter,
M=this.paper.cacheShadows||(this.paper.cacheShadows={}),H="drop-shadow"+[i,l,r,u].join(" "),D;if(i==="none"){if(A){A.use-=1;this.node.removeAttribute("filter");if(!A.use){H=A.hash;for(D in A)i=A[D],i.parentNode&&i.parentNode.removeChild(i),delete A[D];delete M[H]}delete this._.shadowFilter}}else if(!(A&&M[H]===A))A=this.paper.defs.appendChild(k("filter",{id:e.createUUID(),width:"200%",height:"200%"})),u=e.color(u),u.error&&(u=e.color("rgba(0,0,0,1)")),D=e.pick(u.opacity,1),this._.shadowFilter=M[H]=
{use:1,filter:A,hash:H,offset:A.appendChild(k("feOffset",{result:"offOut","in":"SourceGraphic",dx:h(i),dy:h(l)})),matrix:A.appendChild(k("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+u.r/255+" 0 0 0 0 "+u.g/255+" 0 0 0 0 "+u.b/255+" 0 0 0 "+D+" 0"})),blur:A.appendChild(k("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:d(h(r))})),blend:A.appendChild(k("feBlend",{"in":"SourceGraphic",in2:"blurOut",mode:"normal"}))},aa.setAttribute("filter","url('"+
e._url+"#"+A.id+"')");return this};var ga={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","shape-rendering":"shape-rendering",transform:"transform"};V=function(e,d){var h=this.__shadowscale,i={},k,l;for(l in e)switch(ga[l]&&(i[l]=e[l],delete e[l]),l){case "transform":k=d.matrix.clone();k.translate(this.__shadowx,this.__shadowy);this.transform(k.toTransformString());break;case "stroke-width":e[l]=
((i[l]||1)+6-2*this.__shadowlevel)*h}this.attr(e);for(l in i)e[l]=i[l]};e.ca["drop-shadow"]=function(d,h,i,k,l,r){var i=this._.shadows||(this._.shadows=[]),u,H,D,q,j;if(!this.__shadowblocked)if(d==="none")for(;H=i.pop();)H.remove();else{k=e.color(k);k.error&&(k=e.color("rgba(0,0,0,1)"));l instanceof Array?(u=l[0],l=l[1]):u=l;u=1/e.pick(u,1);l=1/e.pick(l,1);d=e.pick(d,1)*u;h=e.pick(h,1)*u;u=e.pick(k.opacity,1)*0.05;D=M(this.attr("stroke-width")||1,10)+6;q=this.matrix.clone();q.translate(d,h);for(j=
1;j<=3;j++)H=(i[j-1]||this.clone().follow(this,V,!r&&"before")).attr({stroke:k.hex,"stroke-opacity":u*j,"stroke-width":(D-2*j)*l,transform:q.toTransformString(),"stroke-linecap":"round","shape-rendering":"default",fill:"none"}),H.__shadowlevel=j,H.__shadowscale=l,H.__shadowx=d,H.__shadowy=h,r&&r.appendChild(H),i.push(H)}return!1};e.el.shadow=function(d,h,i,k){var l;i&&i.constructor===e.el.constructor&&(k=i,i=void 0);if(typeof d==="object")h&&h.constructor===e.el.constructor&&(k=h),h=d.opacity,i=d.scalefactor,
l=!!d.useFilter,d=d.apply===void 0?!!h:d.apply;h===void 0&&(h=1);if(this.dropshadow)if(l)return d&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),this;else this._.shadowFilter&&this.dropshadow("none");return this.attr("drop-shadow",d?[1,1,3,"rgba(64,64,64,"+h+")",i,k]:"none")}}else if(e.vml)e.ca["drop-shadow"]=function(d,i,k,l,r,u){var M=this._.shadow,H,D;if(this.isShadow)return!1;if(d==="none")M&&(this._.shadow=M.remove());else{if(!M)M=this._.shadow=this.clone(),u&&u.appendChild(M.follow(this))||
M.follow(this,void 0,"before"),M.attr({fill:"none","fill-opacity":0.5,"stroke-opacity":1}).isShadow=!0,M.attr("stroke-width")<=0&&M.attr("stroke-width",1);u=M.node.runtimeStyle;H=u.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,"");l=e.color(l);l.error&&(l=e.color("rgba(0,0,0,1)"));D=e.pick(l.opacity,1)/5;r=1/e.pick(r,1);d=e.pick(d,1)*r;i=e.pick(i,1)*r;M.translate(d,i);u.filter=H+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+h(k*0.4)+" makeShadow=True Color="+l.hex+" shadowOpacity='"+D+"');"}return!1},
e.el.shadow=function(d,h,i,k){i&&i.constructor===e.el.constructor&&(k=i,i=void 0);if(typeof d==="object")h&&h.type==="group"&&(k=h),h=d.opacity,i=d.scalefactor,d=d.apply===void 0?!!h:d.apply;h===void 0&&(h=1);return this.attr("drop-shadow",d||!h?[1,1,5,"rgba(64,64,64,"+h+")",i,k]:"none")};else if(e.canvas)e.el.shadow=function(){return this}}]);
FusionCharts(["private","modules.renderer.js-raphaelshapes",function(){var i=this.hcLib.Raphael,l="createTouch"in document,u=window,u=/msie/i.test(navigator.userAgent)&&!u.opera,r=Math,d=r.cos,h=r.sin,M=r.abs,e=r.pow,k=r.atan2,V=r.min,ga=r.round,w=r.PI,Q=2*w,K=parseInt,G=parseFloat,aa=String,A="fill",A="fill",ia=e(2,-24),H="rgba(192,192,192,"+(u?0.002:1.0E-6)+")",D=i.eve,q=i.vml&&0.5||0,j=i._createNode,s=i._setFillAndStroke,fa=i.el.constructor;i.crispBound=i._cacher(function(b,f,a,e,c){var d={},h,
b=b||0,f=f||0,a=a||0,e=e||0,c=c||0;h=c%2/2+q;d.x=ga(b+h)-h;d.y=ga(f+h)-h;d.width=ga(b+a+h)-h-d.x;d.height=ga(f+e+h)-h-d.y;d["stroke-width"]=c;d.width===0&&a!==0&&(d.width=1);d.height===0&&e!==0&&(d.height=1);return d},i);i.el.crisp=function(){var b=this.attrs,f,a=this.attr(["x","y","width","height","stroke-width"]),a=i.crispBound(a.x,a.y,a.width,a.height,a["stroke-width"]);for(f in a)b[f]===a[f]&&delete a[f];return this.attr(a)};i.fn.polypath=function(){var b=arguments,f=b.length-1,a=b[f];a&&a.constructor===
i.el.constructor?b[f]=void 0:a=void 0;f=this.path(void 0,a);f.ca.polypath=i.fn.polypath.ca;arguments.length-!!a&&f.attr("polypath",[b[0],b[1],b[2],b[3],b[4],b[5]])||(f.attrs.polypath=[0,0,0,0,0,0]);return f};i.fn.polypath.ca=function(b,f,a,e,c,k){var l,j,n;l=[];b=K(b,10)||0;f=G(f)||0;a=G(a)||0;e=G(e)||0;c=c===null||isNaN(c)?w*0.5:i.rad(c);k=k===null||isNaN(k)?0:G(k);j=c;if(b>2)switch(c=2*w/b,k){case 0:for(k=0;k<b;k++)l.push("L",f+e*d(-j),a+e*h(-j)),j+=c;l[0]="M";l.push("Z");break;case 1:for(k=0;k<
b;k++)l.push("M",f,a,"L",f+e*d(-j),a+e*h(-j)),j+=c;break;default:c*=0.5;n=e*d(c)*(1-k);for(k=0;k<b;k++)l.push("L",f+e*d(-j),a+e*h(-j)),j+=c,l.push("L",f+n*d(-j),a+n*h(-j)),j+=c;l[0]="M";l.push("Z")}else e===0?l.push("M",f,a,"L",f,a,"Z"):l.push("M",f-e,a,"A",e,e,0,0,0,f+e,a,"A",e,e,0,0,0,f-e,a,"Z");return{path:l}};i.fn.ringpath=function(){var b=arguments,f=b.length-1,a=b[f];a&&a.constructor===i.el.constructor?b[f]=void 0:a=void 0;f=this.path(void 0,a);f.ca.ringpath=i.fn.ringpath.ca;arguments.length-
!!a&&f.attr("ringpath",[b[0],b[1],b[2],b[3],b[4],b[5]])||(f.attrs.ringpath=[0,0,0,0,0,0]);return f};i.fn.ringpath.ca=function(b,f,a,e,c,i){var k=i%Q-c%Q,l=i-c,j;this._.ringangle=(c+i)*0.5;M(l)<ia?(l=d(c),c=h(c),a=["M",b+a*l,f+a*c,"L",b+e*l,f+e*c,"Z"]):(M(l)>ia&&M(l)%Q<ia?(a=["M",b-a,f,"A",a,a,0,0,0,b+a,f,"A",a,a,0,0,0,b-a,f],e!==0&&(a=a.concat(["M",b-e,f,"A",e,e,0,0,1,b+e,f,"A",e,e,0,0,1,b-e,f]))):(l=d(c),c=h(c),j=d(i),i=h(i),k%=Q,k<0&&(k+=Q),k=k<w?0:1,a=["M",b+a*l,f+a*c,"A",a,a,0,k,1,b+a*j,f+a*i,
"L",b+e*j,f+e*i],e!==0&&a.push("A",e,e,0,k,0,b+e*l,f+e*c)),a.push("Z"));return{path:a}};i.fn.cubepath=function(){var b={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},f=arguments,a=f.length-1,e=f[a],c;e&&e.constructor===i.el.constructor?f[a]=void 0:e=void 0;a=this.path(void 0,e).attr(b);c=this.path(void 0,e).attr(b);b=this.path(void 0,e).attr(b);b._.cubetop=a.follow(b,void 0,"before");b._.cubeside=c.follow(b,void 0,"before");for(var d in i.fn.cubepath.ca)b.ca[d]=i.fn.cubepath.ca[d];
return b.attr("cubepath",[f[0]||0,f[1]||0,f[2]||0,f[3]||0,f[4]||0,f[5]||0])};i.fn.cubepath.ca={cubepath:function(b,f,a,e,c,d){var h=this._.cubetop,i=this._.cubeside;this.attr("path",["M",b+a,f,"l",0,e,-a,0,0,-e,"z"]);h.attr("path",["M",b,f,"l",1,1,a-1,0,0,-1,c,-d,-a,0,"z"]);i.attr("path",["M",b+a-1,f+1,"l",0,e-1,1,0,c,-d,0,-e,-c,d]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(b,f,a,e){var c=this._.cubetop,d=this._.cubeside;this.dropshadow&&(c.dropshadow(b,
-f,a,e),d.dropshadow(b,-f,a,e));return!1},fill:function(b,f){var a=this._.cubetop,e=this._.cubeside,c=this.attr("cubepath")||[0,0,0,0,0,0],d=c[2],h=c[4],c=c[5],l,b=i.color(b);f?(this.attr(A,b),a.attr(A,i.tintshade(b,-0.78).rgba),e.attr(A,i.tintshade(b,-0.65).rgba)):(l="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")",this.attr(A,[270,i.tintshade(l,0.55).rgba,i.tintshade(l,-0.65).rgba].join("-")),e.attr(A,[270,i.tintshade(l,-0.75).rgba,i.tintshade(l,-0.35).rgba].join("-")),
a.attr(A,[45+i.deg(k(c,h+d)),i.tintshade(l,-0.78).rgba,i.tintshade(l,0.22).rgba].join("-")));return!1}};i.ca["text-bound"]=function(b,f,a,e,c,d){var e=this.paper,h=this._.textbound;if(this.type==="text"){if((!f||f==="none")&&(!b||b==="none"))return this._.textbound=h&&h.unfollow(this).remove(),!1;(!a||!i.is(a,"finite"))&&(a=0);(!c||!i.is(c,"finite"))&&(c=0);!h&&(h=this._.textbound=e.rect(0,0,0,0,this.group).follow(this,i.ca["text-bound"].reposition,"before"));h.attr({stroke:f,"stroke-width":a,fill:b,
"shape-rendering":a===1&&"crisp"||"",r:c});d&&h.attr("stroke-dasharray",d);i.ca["text-bound"].reposition.call(h,this.attrs,this);return!1}};i.ca["text-bound"].reposition=function(b,f){var a={},e,c,d,h,k;b.hasOwnProperty("visibility")&&this.attr("visibility",b.visibility);if(b.hasOwnProperty("text-bound")||b.hasOwnProperty("x")||b.hasOwnProperty("y")||b.hasOwnProperty("text")||b.hasOwnProperty("text-anchor")||b.hasOwnProperty("text-align")||b.hasOwnProperty("font-size")||b.hasOwnProperty("line-height")||
b.hasOwnProperty("vertical-align")||b.hasOwnProperty("transform")){e=aa((f.attrs["text-bound"]||[])[3]||"0").split(/\s*\,\s*/g);c=G(e[0])||0;e=i.pick(G(e[1]),c);d=f.getBBox();h=d.width;k=d.height;if(!isNaN(h))a.x=d.x-c,a.y=d.y-e,a.width=h+c*2,a.height=k+e*2;this.attr(a)}};i.fn.scroller=function(b,f,a,e,c,d,h){var k=this.group("scroller",h),l=k.attrs,j=k._.scroller={},c=c&&"horizontal"||"vertical",n,r={},v,s;j.track=this.rect(k).mousedown(function(a){var b=l["scroll-position"],a=l["scroll-orientation"]===
"horizontal"?a.layerX||a.x:a.layerY||a.y,a=(a-j.anchorOffset)/j.trackLength;n=i.animation({"scroll-position":a},2E3*M(b-a),"easeIn");k.animate(n);D("raphael.scroll.start."+k.id,k,b)}).mouseup(function(){this.stop(n);D("raphael.scroll.end."+this.id,this,l["scroll-position"])},k,!0);j.anchor=this.rect(k).drag(function(){r["scroll-position"]=v+arguments[s]/j.trackLength;k.animate(r,0)},function(a,b,c){s=l["scroll-orientation"]==="horizontal"?0:1;D("raphael.scroll.start."+k.id,k,v=l["scroll-position"]);
c.stopPropagation()},function(){D("raphael.scroll.end."+k.id,k,v=l["scroll-position"])});for(var q in i.fn.scroller.fn)k[q]=i.fn.scroller.fn[q];for(q in i.fn.scroller.ca)k.ca[q]=i.fn.scroller.ca[q];l["scroll-orientation"]=c;l["stroke-width"]=1;k.ca["scroll-repaint"]=k.ca["scroll-repaint-"+c];!i.is(d,"object")&&(d={});return k.attr({ishot:!0,"scroll-display-buttons":d.showButtons&&"arrow"||"none","scroll-display-style":d.displayStyleFlat&&"flat"||"3d","scroll-ratio":G(d.scrollRatio)||1,"scroll-position":G(d.scrollPosition)||
0,"scroll-repaint":[b,f,a,e]})};i.fn.scroller.fn={scroll:function(b,f){var a=this._.scroller,f=f||this;a.callback=function(){return b.apply(f,arguments)};return this}};i.fn.scroller.ca={"stroke-width":function(){return!1},"drop-shadow":function(b,f,a,e,c,d){this._.scroller.track.attr("drop-shadow",[b,f,a,e,c,d]);return!1},"scroll-display-style":function(b){var f=this.attrs,a=f["scroll-display-style"],e=f.fill,b={flat:"flat","3d":"3d",transparent:"transparent"}[b]||a;e&&b!==a&&(f["scroll-display-style"]=
b,this.attr(A,e));return{"scroll-display-style":b}},"scroll-display-buttons":function(b){var f=this,a=f.paper,e=f._.scroller,c=f.attrs,d=c["scroll-display-buttons"],h=c["scroll-repaint"],k,l,b={none:"none",arrow:"arrow"}[b]||d;if(b!==d)c["scroll-display-buttons"]=b,b==="none"&&e.start?(e.arrowstart.remove(),delete e.arrowstart,e.arrowend.remove(),delete e.arrowend,e.start.remove(),delete e.start,e.end.remove(),delete e.end):(e.arrowstart=a.polypath(f),e.arrowend=a.polypath(f),e.start=a.rect(f).mousedown(function(){var a;
if((a=c["scroll-position"])!==0)f.animate({"scroll-position":a-0.1},100).animate(k=i.animation({"scroll-position":0},4500*a,"easeIn")),D("raphael.scroll.start."+f.id,f,a)}).mouseup(function(){f.stop(k);D("raphael.scroll.end."+f.id,f,c["scroll-position"])},f,!0),e.end=a.rect(f).mousedown(function(){var a;if((a=c["scroll-position"])!==1)f.animate({"scroll-position":a+0.1},100).animate(l=i.animation({"scroll-position":1},4500*(1-a),"easeIn")),D("raphael.scroll.start."+f.id,f,a)}).mouseup(function(){f.stop(l);
D("raphael.scroll.end."+f.id,f,c["scroll-position"])},f,!0),c.fill&&f.attr(A,c.fill)),h&&f.attr("scroll-repaint",h);return{"scroll-display-buttons":b}},"scroll-orientation":function(b){var e=this.attrs,a=e["scroll-repaint"],d=e["scroll-orientation"],b={horizontal:"horizontal",vertical:"vertical"}[b]||d;d!==b&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+b],a&&(a[2]+=a[3],a[3]=a[2]-a[3],a[2]-=a[3],this.attr("scroll-repaint",a)),e.fill&&this.attr(A,e.fill));return{"scroll-orientation":b}},"scroll-ratio":function(b){var e=
this.attrs,a=e["scroll-ratio"],d=e["scroll-repaint"],b=b>1?1:b<0.01?0.01:G(b);d&&b!==a&&(e["scroll-ratio"]=b,this.attr("scroll-repaint",d));return{"scroll-ratio":b}},"scroll-position":function(b,e){var a=this.attrs,d=a["scroll-orientation"]==="horizontal",c=a["scroll-repaint"],h=a["scroll-position"],i=this._.scroller,k=i.anchor,b=b>1?1:b<0?0:G(b);isNaN(b)&&(b=h);if(c&&(h!==b||e))h=i.start&&i.start.attr(d&&"width"||"height")||0,d&&k.attr("x",c[0]+h+(c[2]-2*h-k.attr("width"))*b+0.5)||k.attr("y",c[1]+
h+(c[3]-2*h-k.attr("height"))*b+0.5),!e&&a["scroll-ratio"]<1&&(D("raphael.scroll.change."+this.id,this,b),i.callback&&i.callback(b));return{"scroll-position":b}},r:function(b){var e=this._.scroller;e.track.attr("r",b);e.anchor.attr("r",this.attrs["scroll-display-buttons"]==="none"&&b||0);return!1},"scroll-repaint-horizontal":function(b,e,a,d){var c=this.attrs,h=this._.scroller,i=c["scroll-ratio"],k=c["scroll-position"],l=0,j=a*i,c=c["scroll-display-buttons"]==="none";a&&(a-=1);b&&(b+=0.5);d&&(d-=
1);e&&(e+=0.5);h.track.attr({width:a,height:d,y:e,x:b}).crisp();c||(l=V(d,a*0.5),j-=l*2*i,h.start.attr({width:l,height:d,x:b,y:e}),h.arrowstart.attr("polypath",[3,b+l*0.5,e+d*0.5,l*0.25,180]),h.end.attr({width:l,height:d,x:b+a-l,y:e}),h.arrowend.attr("polypath",[3,b+a-l*0.5,e+l*0.5,l*0.25,0]));h.trackLength=a-2*l-j;h.trackOffset=b+l+0.5;h.anchorOffset=h.trackOffset+(j-1)*0.5;h.anchor.attr({height:d,width:j-1,y:e,x:h.trackOffset+h.trackLength*k}).crisp()},"scroll-repaint-vertical":function(b,e,a,d){var c=
this.attrs,h=this._.scroller,i=c["scroll-ratio"],k=c["scroll-position"],l=0,j=d*i,c=c["scroll-display-buttons"]==="none";a&&(a-=1);b&&(b+=0.5);d&&(d-=1);e&&(e+=0.5);h.track.attr({width:a,height:d,y:e,x:b}).crisp();c||(l=V(a,d*0.5),j-=l*2*i,h.start.attr({width:a,height:l,x:b,y:e}),h.arrowstart.attr("polypath",[3,b+a*0.5,e+l*0.5,l*0.25,90]),h.end.attr({width:a,height:l,x:b,y:e+d-l}),h.arrowend.attr("polypath",[3,b+a*0.5,e+d-l*0.5,l*0.25,-90]));h.trackLength=d-2*l-j;h.trackOffset=e+l+0.5;h.anchorOffset=
h.trackOffset+(j-1)*0.5;h.anchor.attr({height:j-1,width:a,y:h.trackOffset+h.trackLength*k,x:b}).crisp()},fill:function(b){var e=this.attrs,a=this._.scroller,d=e["scroll-repaint"],c=e["scroll-display-style"]==="flat",h=e["scroll-orientation"]==="horizontal",k={stroke:"none"},j;if(l&&d&&(j=16-d[h&&3||2])>3)k.stroke=H,k["stroke-width"]=j;b=i.color(b);b.error&&(b="#000000");b="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")";k.fill=c&&b||[90*h,i.tintshade(b,0.15).rgba,b].join("-");
k.stroke=i.tintshade(b,-0.75).rgba;a.track.attr(k);k.fill=c&&i.tintshade(b,-0.6).rgba||[270*h,i.tintshade(b,0.3).rgba+":40",i.tintshade(b,-0.7).rgba].join("-");k.stroke=i.tintshade(b,-0.6).rgba;a.anchor.attr(k);k.stroke="none";if(e["scroll-display-buttons"]!=="none")k.fill=H,a.start.attr(k),a.end.attr(k),k.fill=i.tintshade(b,-0.4).rgba,a.arrowstart.attr(k),a.arrowend.attr(k);return!1}};var ea=Array.prototype.slice;i.fn.symbol=function(){var b=arguments,e=b.length-1,a=b[e];a&&a.constructor===i.el.constructor?
b[e]=void 0:a=void 0;e=this.path(void 0,a);e.ca.symbol=i.fn.symbol.ca.symbol;return b.length===!!a+0?e:e.attr("symbol",b)};i.fn.symbol.cache={"":i._cacher(function(b,e,a,d){return arguments.length>3?["M",b,e,"h",a,"v",d,"h",-a,"v",-d,"z"]:["M",b-a,e-a,"h",a*=2,"v",a,"h",-a,"v",-a,"z"]})};i.fn.symbol.ca={symbol:function(b){var e=i.is(b,"object")&&arguments.length===1&&!i.is(b,"function")?b:arguments,a;e===b&&(b=e[0]);e=(a=i.is(b,"function")&&b||i.fn.symbol.cache[b]||i.fn.symbol.cache[""])&&a.apply(i,
ea.call(e,1));i.is(e,"array")||i.is(e,"string")?this.attr("path",e):e&&this.attr(e)}};i.addSymbol=function(b,e){var a=i.is(e,"function")&&(a={},a[b]=e,a)||b,d=i.fn.symbol.cache,c=[],h;for(h in a)e=a[h],d[h]=i.is(e,"function")&&i._cacher(e,i)||(c.push(h),e);for(;h=c.pop();)d[h]=d[d[h]]};i.fn.button=function(b,e,a,d,c,h){h=this.group("button",h);h._.button={bound:this.rect(h),tracker:this.rect(h).attr({fill:H,stroke:H,cursor:"pointer"}).data("compositeButton",h)};var k;!i.is(c,"object")&&(c={});for(k in i.fn.button.fn)h[k]=
i.fn.button.fn[k];for(k in i.fn.button.ca)h.ca[k]=i.fn.button.ca[k];return h.attr({ishot:!0,"button-padding":[c.horizontalPadding,c.verticalPadding],"button-label":a,"button-symbol":d,"button-disabled":c.disabled,"button-symbol-position":c.symbolPosition,"button-symbol-padding":c.symbolPadding}).attr("button-repaint",[b,e,c.width,c.height,c.r])};i.fn.button.e={hoverin:function(){var b=this._.button.hoverbackIn;b&&b()===!1||(this.attr("fill","hover").hovered=!0)},hoverout:function(){var b=this._.button.hoverbackOut;
b&&b()===!1||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var b=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;b()}};i.fn.button.fn={buttonclick:function(b,e){var a=this._.button,e=e||this;a.callback=function(){return b.apply(e,arguments)};return this},labelcss:function(){var b=this._.button,e=b.label;b.cssArg=arguments;e&&e.css.apply(e,
arguments);return this},buttonhover:function(b,e,a,d){var c=this._.button,a=a||this,d=d||this;c.hoverbackIn=function(){return b.apply(a,arguments)};c.hoverbackOut=function(){return e.apply(d,arguments)};return this}};i.fn.button.ca={"button-active":function(b){this.attr("fill",(this.active=!!b)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(b){var e=this.paper,a=this._.button.tracker,d=e.button.e,b=aa(b);b==="disabled"||b==="true"||b==="1"?a.attr("fill","rgba(204,204,205,.5)").unmousedown(d.mousedown).unmouseup(d.mouseup).unhover(e.button.e.hoverin,
e.button.e.hoverout):a.attr("fill",H).mousedown(d.mousedown,this).mouseup(d.mouseup,this,!0).hover(e.button.e.hoverin,e.button.e.hoverout,this,this)},"button-label":function(b){var e=this._.button,a=this.attrs,d=e.label,c=e.cssArg,h=this.attrs["button-repaint"],b=aa(b||"");if(b==="none")d&&(e.label=d.remove());else if(b)!d&&(d=e.label=this.paper.text(this).insertBefore(e.tracker)),d.attr({text:b,"text-anchor":"start","vertical-align":"top"}),c&&c.length&&d.css.apply(d,c);h&&a["button-label"]!==b&&
this.attr("button-repaint",h)},"button-symbol":function(b){var e=this.attrs,a=this._.button,d=a.symbol,c=this.attrs["button-repaint"],b=aa(b||"");if(b==="none")d&&(a.symbol=d.remove());else if(b&&!d)a.symbol=this.paper.symbol(this).insertAfter(a.bound);c&&e["button-symbol"]!==b&&this.attr("button-repaint",c)},"button-symbol-position":function(b){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[aa(b).toLowerCase()]||"none"}},"button-symbol-padding":function(b){return{"button-symbol-padding":G(b)}},
"button-padding":function(b,e){return{"button-padding":[b==null&&(b=5)||G(b),e==null&&b||G(e)]}},"button-repaint":function(b,e,a,d,c){var h=this._.button,k=h.bound,l=h.label,j=h.symbol,n=this.attrs,r=n["button-padding"],v=r[0],s=r[1],q;b==void 0&&(b=0);e==void 0&&(e=0);if(a==void 0||d==void 0)q=l&&l.getBBox()||{width:0,height:0},a==void 0&&(a=v*2+q.width),d==void 0&&(d=s*2+q.height);k=i.crispBound(b,e,a,d,k.attr("stroke-width"));k.r=i.pick(c,ga(V(d,a)*0.1));b=k.x;e=k.y;a=k.width;d=k.height;l&&l.attr({x:b+
v,y:e+s});if(j){!i.is(q=n["button-symbol-padding"],"finite")&&(q=d*0.2);c=(d-s)*0.5;switch(n["button-symbol-position"]+(l&&"+"||"-")){case "right+":a+=c*2+s;b=b+a-c-v;e+=d*0.5;break;case "left+":b=b+v+c;e+=d*0.5;l.attr("x",b+c+q);break;case "top+":b+=a*0.5;e=e+r[1]+c;l&&l.attr("y",e+c+q);break;case "bottom+":d+=c*2+q;b+=a*0.5;e=e+d-s-c;break;default:b+=a*0.5,e+=d*0.5}j.attr("symbol",[n["button-symbol"],b,e,c])}h.bound.attr(k);h.tracker.attr(k)},fill:function(b,e,a,d){var c=this._.button,h=c.bound,
k=c.symbol,l=c.label,j={normal:c.gradient,active:c.gradientActive,hover:c.gradientHover}[b];if(!j)b=i.getRGB(b),b.error&&(b=i.color("#cccccc")),b="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")",c.gradient=[90,i.tintshade(b,-0.8).rgba+":0",i.tintshade(b,0.8).rgba+":100"].join("-"),c.gradientActive=[270,i.tintshade(b,-0.8).rgba+":0",i.tintshade(b,0.8).rgba+":100"].join("-"),d=i.getRGB(d),d.error&&(d=b)||(d="opacity"in d?"rgba("+[d.r,d.g,d.b,d.opacity]+")":"rgb("+[d.r,d.g,
d.b]+")"),c.gradientHover=[90,i.tintshade(d,-0.9).rgba+":0",i.tintshade(d,0.7).rgba+":100"].join("-"),a=a||i.tintshade(b,0.2).rgba,e=e||i.tintshade(b,-0.2).rgba,c.symbolFill=a,c.labelFill=e,j=(this.pressed||this.active)&&c.gradientActive||this.hovered&&c.gradienthover||c.gradient;h.attr("fill",j);k&&k.attr("fill",c.symbolFill);l&&l.attr("fill",c.labelFill);return!1},stroke:function(b,e){var a=this._.button,d=a.symbol,b=i.color(b);b.error&&(b=i.color("#999999"));a.bound.attr("stroke",b);d&&d.attr("stroke",
e||b);return!1},"stroke-width":function(b,e){var a=this._.button,d=a.symbol;a.bound.attr("stroke-width",b);a.tracker.attr("stroke-width",b);d&&d.attr("stroke-width",e);return!1}};var U={Q:"L",Z:"X",q:"l",z:"x",",":" "},W=/,?([achlmqrstvxz]),?/gi,X,v=function(){return this.join(",").replace(W,X)},n,R;if(i.svg)X="$1",n=function(b){b?typeof b==="string"?b=b.replace(W,X):b.toString=v:b="M0,0";this.node.setAttribute("d",b.toString());return this},i._engine.litepath=function(b,e,a,d){b=j("path");(d||e).canvas.appendChild(b);
e=new fa(b,e,d);e.type="litepath";s(e,{fill:"none",stroke:"#000"});return e},i._getPath.litepath=function(b){return i.parsePathString(b.node.getAttribute("d"))};else if(i.vml)X=function(b,e){return U[e]||e},R=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=this._.bcoord);return this},n=function(b){b?typeof b==="string"?b=b.replace(W,X):b.toString=v:b="M0,0";this.node.path=b;return this},i._engine.litepath=function(b,e,a,d){var b=j("shape"),c=b.style,h=new fa(b,
e,d);c.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";a=G(a);isNaN(a)?b.coordsize="21600 21600":(h._.bzoom=a,c.width="1px",c.height="1px",b.coordsize=h._.bcoord=a+" "+a);b.coordorigin=e.coordorigin;h.type="litepath";h._transform=h.transform;h.transform=R;i._setFillAndStroke(h,{fill:"none",stroke:"#000"});(d||e).canvas.appendChild(b);e=j("skew");e.on=!0;b.appendChild(e);h.skew=e;return h},i._getPath.litepath=function(b){return i.parsePathString(b.node.path||"")};i.fn.litepath=
function(b,e,a){e&&e.constructor===fa&&(a=e,e=void 0);b&&b.constructor===fa&&(a=b,b="");e=i._engine.litepath(b,this,e,a);e.ca.litepath=n;b&&e.attr("litepath",i.is(b,"array")?[b]:b);this.__set__&&this.__set__.push(e);return e}}]);
FusionCharts(["private","modules.renderer.js-raphaelexport",function(){var i=this.hcLib,l=i.Raphael,u=i.pluckNumber,r=i.pluck,d=l._availableAttrs,h=/^matrix\(|\)$/g,M=/\,/g,e=/\n|<br\s*?\/?>/ig,k=/[^\d\.]/ig,V=/[\(\)\s,\xb0#]/g,ga=/group/ig,w=/&/g,Q=/"/g,K=/'/g,G=/</g,aa=/>/g,A=0;(function(i){var l=Math,D=parseFloat,q=l.max,j=l.abs,s=l.pow,fa=String,ea=/[, ]+/,U=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/ig,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},
{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/\<desc\>[^\<]*\<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/\<ima?ge? ([^\>]+?)[^\/]\>/gi,repStr:"<image $1 />"},{reg:/\<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(e){return e.toLowerCase()}}],W={blur:function(){},transform:function(){},src:function(e,
d){d.attrSTR+=' xlink:href="'+d.attrs.src+'"'},path:function(e,d){var h=d.attrs.path,h=i._pathToAbsolute(h||"");d.attrSTR+=' d="'+(h.toString&&h.toString()||"").replace(M," ")+'"'},gradient:function(e,d,h){var b=e.attrs.gradient,f="linear",a,g,c=0.5,k=0.5,r=g="",u="";a=b.replace(V,"_");if(!h[a]){b=fa(b).replace(i._radial_gradient,function(a,b,e){f="radial";b&&e&&(c=D(b),k=D(e),a=(k>0.5)*2-1,s(c-0.5,2)+s(k-0.5,2)>0.25&&(k=l.sqrt(0.25-s(c-0.5,2))*a+0.5)&&k!=0.5&&(k=k.toFixed(5)-1.0E-5*a));return""});
b=b.split(/\s*\-\s*/);if(f==="linear"){g=b.shift();g=-D(g);if(isNaN(g))return null;var w=[0,0,l.cos(i.rad(g)),l.sin(i.rad(g))];g=1/(q(j(w[2]),j(w[3]))||1);w[2]*=g;w[3]*=g;w[2]<0&&(w[0]=-w[2],w[2]=0);w[3]<0&&(w[1]=-w[3],w[3]=0)}b=i._parseDots(b);if(!b)return null;f==="radial"?(g='<radialGradient fx = "'+c+'" fy = "'+k+'" id = "'+a+'">',r="</radialGradient>"):(g='<linearGradient x1 = "'+w[0]+'" y1 = "'+w[1]+'" x2 = "'+w[2]+'" y2 = "'+w[3]+'" gradientTransform ="matrix('+e.matrix.invert()+')" id = "'+
a+'">',r="</linearGradient>");e=0;for(w=b.length;e<w;e++)u+='<stop offset="'+(b[e].offset?b[e].offset:e?"100%":"0%")+'" stop-color="'+(b[e].color||"#fff")+'" stop-opacity="'+(b[e].opacity===void 0?1:b[e].opacity)+'" />';h[a]=!0;h.str+=g+u+r}d.attrSTR+=" fill=\"url('#"+a+"')\""},fill:function(e,d){var h=d.attrs,b=h.fill,f;if(!e.attrs.gradient)if(b=i.color(b),f=b.opacity,e.type==="text")d.styleSTR+="fill:"+b+"; stroke-opacity:0; ";else if(d.attrSTR+=' fill="'+b+'"',!h["fill-opacity"]&&(f||f===0))d.attrSTR+=
' fill-opacity="'+f+'"'},stroke:function(e,d){var h=d.attrs,b,f;b=i.color(h.stroke);f=b.opacity;if(e.type!=="text"&&(d.attrSTR+=' stroke="'+b+'"',!h["stroke-opacity"]&&(f||f===0)))d.attrSTR+=' stroke-opacity="'+f+'"'},"clip-rect":function(e,d,i){var b=fa(d.attrs["clip-rect"]),f=b.split(ea),b=b.replace(V,"_")+"__"+A++;f.length===4&&(i[b]||(i[b]=!0,i.str+='<clipPath id="'+b+'"><rect x="'+f[0]+'" y="'+f[1]+'" width="'+f[2]+'" height="'+f[3]+'" transform="matrix('+e.matrix.invert().toMatrixString().replace(h,
"")+')"/></clipPath>'),d.attrSTR+=' clip-path="url(#'+b+')"')},cursor:function(e,d){var h=d.attrs.cursor;h&&(d.styleSTR+="cursor:"+h+"; ")},font:function(e,d){d.styleSTR+="font:"+d.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(e,d){var h=r(d.attrs["font-size"],"10");h&&h.replace&&(h=h.replace(k,""));d.styleSTR+="font-size:"+h+"px; "},"font-weight":function(e,d){d.styleSTR+="font-weight:"+d.attrs["font-weight"]+"; "},"font-family":function(e,d){d.styleSTR+="font-family:"+d.attrs["font-family"]+
"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},"text-anchor":function(e,d){var h=d.attrs["text-anchor"]||"middle";e.type==="text"&&(d.attrSTR+=' text-anchor="'+h+'"')},title:function(){},text:function(d,h){var i=h.attrs,b=i.text,f=r(i["font-size"],i.font,"10"),a=r(i["line-height"]),g;f&&f.replace&&(f=f.replace(k,""));f=u(f);a&&a.replace&&(a=a.replace(k,""));a=u(a,f&&f*1.2);g=f?f*0.85:a*0.75;for(var f=i.x,c=r(i["vertical-align"],"middle").toLowerCase(),
b=fa(b).split(e),i=b.length,l=0,c=c==="top"?g:c==="bottom"?g-a*i:g-a*i*0.5;l<i;l++)h.textSTR+="<tspan ",g=(b[l]||"").replace(w,"&amp;").replace(Q,"&quot;").replace(K,"&#39;").replace(G,"&lt;").replace(aa,"&gt;"),h.textSTR+=l?'dy="'+a+'" x="'+f+'" ':'dy="'+c+'"',h.textSTR+=">"+g+"</tspan>"}},X=function(e,i){var k="",b={attrSTR:"",styleSTR:"",textSTR:"",attrs:e.attr()},f=e.isShadow,a="",g="",c,l,j=b.attrs;if(e.node.style.display!=="none"&&!f){for(c in j)if(c!=="gradient"&&(d[c]!==void 0||W[c]))if(W[c])W[c](e,
b,i);else b.attrSTR+=" "+c+'="'+j[c]+'"';e.attrs.gradient&&W.gradient(e,b,i);e.type==="rect"&&j.r&&(b.attrSTR+=' rx="'+j.r+'" ry="'+j.r+'"');for(l in e.styles)b.styleSTR+=l+":"+e.styles[l]+"; ";e.type==="image"&&(b.attrSTR+=' preserveAspectRatio="none"');e.bottom&&(a=X(e.bottom,i));e.next&&(g=X(e.next,i));f=e.type;f.match(ga)&&(f="g");k+="<"+f+' transform="matrix('+e.matrix.toMatrixString().replace(h,"")+')" style="'+b.styleSTR+'"'+b.attrSTR+">"+b.textSTR+a+"</"+f+">"+g}else e.next&&(k+=X(e.next,
i));return k};i.fn.toSVG=function(e){var d="",h={str:""},b=0,f=U.length,a="";if(i.svg){if(this.canvas&&this.canvas.parentNode)for(d=this.canvas.parentNode.innerHTML;b<f;b+=1)h=U[b],d=d.replace(h.reg,h.repStr)}else d='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(a=X(this.bottom,h)),d+="<defs>"+h.str+"</defs>"+a+"</svg>";e||(d=d.replace(/\<image [^\>]*\>/gi,
""));return d}})(l)}]);
FusionCharts(["private","modules.renderer.js-raphaeltooltip",function(){var i=window,l=document,u=this.hcLib,r=u.Raphael,d=r.eve,h=u.createElement,M=u.addEvent,e=u.removeEvent,k=u.getPosition,V=u.hasTouch,ga=u.getTouchEvent,w=i.Math,Q=w.ceil,K=w.floor,G=i.screen.availHeight,aa=i.screen.availWidth,A={"":1,moz:1,webkit:1,o:1,ms:1},ia={borderRadius:"borderRadius",boxShadow:"boxShadow"},H=/\-([a-z])/ig,D=function(e,d){return d.toUpperCase()},q=function(e){var d=j.forbiddenStyle,h,i,k;for(h in e)i=H.test(h)?
h.replace(H,D):h,e[h]!==void 0&&!d[i]&&(this[i]=e[h]),r.vml&&/color/ig.test(i)&&(this[i]=r.getRGB(this[i]).toString());for(h in ia)if(this[h])for(k in A)this[k+h]=this[h]},j=u.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,defaultStyle:u.extend2(q.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",
textAlign:"left",margin:"0",zIndex:"999",pointer:"default",display:"block"},forbiddenStyle:{}},s=function(d){e(window,"click",s);j.onhide.call(this,d)};if(r.svg)j.defaultContainerStyle.pointerEvents="none",j.defaultStyle.borderRadius="0",j.defaultStyle.boxShadow="none";if(r.vml)j.forbiddenStyle.borderRadius=!0,j.forbiddenStyle.boxShadow=!0,j.defaultStyle.filter="";j.setup=function(){var e=j.container,i=j.textElement,k=j.style,s=j.defaultContainerStyle,q=j.forbiddenStyle,v;if(!e)e=j.element=h("span"),
(l.body||l.getElementsByTagName("body")[0]).appendChild(e),e.setAttribute("id",j.elementId),k=j.containerStyle=r.vml?e.runtimeStyle:e.style,i=j.textElement=h("span"),e.appendChild(i),j.style=r.vml?i.runtimeStyle:i.style,j.style.overflow="hidden",j.style.display="block",j.hidden=!1,j.hide();for(v in s)!q[v]&&(k[v]=s[v]);M(e,V&&"touchstart"||"mouseover",j.onredraw);j.scatted=!0;d.on("raphael.drag.start.*",function(){j.scatted&&(j.waitingScat=!0)});d.on("raphael.drag.move.*",function(){if(j.waitingScat)j.block(),
j.waitingScat=!1});d.on("raphael.drag.end.*",function(){j.waitingScat=!1;j.scatted&&j.unblock(!0)});d.on("raphael.remove",function(){if(j.currentPaper===this||j.currentTarget&&j.currentTarget.paper===this)j.hide(),j.currentTarget=j.currentPaper=null})};j.restyle=function(e){var d=j.style,h;for(h in e)d[h]=e[h]};j.onelement=function(e){var d=e.data,h=d.paper;if(h.__tip_style){j.hiding&&(j.hiding=clearTimeout(j.hiding));if(j.currentPaper!==h)h.__tip_cp=h.canvas&&k(h.canvas.parentNode,!0)||{},j.restyle(h.__tip_style),
j.currentPaper=h;j.lastTarget=j.currentTarget;j.currentTarget=d;j.scatted=d.__tip_scatted;j.onredraw.call(this,e);if(V)return M(window,"click",s),!1}};j.onredraw=function(e){j.redrawing&&clearTimeout(j.redrawing);e=ga(e);j.x=K(e.pageX);j.y=K(e.pageY);j.redrawing=setTimeout(j.redraw,0)};j.onhide=function(){j.hiding=setTimeout(j.hide,200)};j.redraw=function(){if(!j.blocked&&j.currentTarget){var e=j.currentTarget,d=e.paper,h=j.textElement,i=j.containerStyle,k=j.style,r=e.__tip_text,e=j.pointeroffset,
n=d.__tip_cp,s=l.documentElement||l.body,b=s.scrollLeft,s=s.scrollTop,f=j.x,a=j.y,g,c=d.width,q=d.height,d=d.__tip_constrain;if(c<100||q<100)d=!1;if(j.hidden)j.containerStyle.top="-999em",j.show();if(r!==j.text)j.text=r,i.width=i.height="",h.innerHTML=r,k.whiteSpace="nowrap",r=Q(k.pixelWidth||h.offsetWidth||0),g=Q(k.pixelHeight||h.offsetHeight||0),k.whiteSpace="normal",i.width=(j.textWidthOverflow=r>c)?(c||0)-e*2+"px":"",i.height=(j.textHeightOverflow=g>q)?(q||0)-e*2+"px":"";r=Q(k.pixelWidth||h.offsetWidth||
0);g=Q(k.pixelHeight||h.offsetHeight||0);d?(j.textWidthOverflow?f=n.left-b:f+e+r>n.left-b+c-e&&(f=f-r-e),j.textHeightOverflow?a=n.top-s:a+e+g>n.top-s+q-e&&(a=a-g-e*1.5)):(b+aa<f+e+r&&(f=f-r-e),s+G<a+e+g&&(a=a-g-e*1.5));i.left=(f+e||0)+"px";i.top=(a+e||0)+"px";j.hidden&&j.show()}};j.hide=function(){j.hiding&&(j.hiding=clearTimeout(j.hiding));j.containerStyle.display="none";j.hidden=!0};j.show=function(){if(!j.blocked)j.hiding&&(j.hiding=clearTimeout(j.hiding)),j.containerStyle.display="inline",j.hidden=
!1};j.block=function(){j.blocked=!0;j.containerStyle.display="none"};j.unblock=function(e){j.blocked=!1;e&&(j.containerStyle.display=j.hidden&&"none"||"inline")};r.fn.tooltip=function(e,d,h){if(d)d=(d.opacity===void 0?1:d.opacity)*0.4,r.svg?e.boxShadow="1px 1px 3px rgba(64,64,64,"+d+")":e.filter="progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#404040', shadowOpacity='"+d/2+"')";this.__tip_style=new q(e);this.__tip_cp=this.canvas&&k(this.canvas.parentNode,!0)||{};this.__tip_constrain=
Boolean(h);return this};r.el.tooltip=function(d,h,i,k,l){j.setup();r.el.tooltip=function(d,h,i,b,f){h=this.node;i=d==void 0||!(d+"");this.__tip_scatted=b==void 0?this.__tip_scatted:!b;this.__tip_scatted==void 0&&(this.__tip_scatted=!0);if(f!=null)this.__tip_blocked=f;i^!this.__tip_text&&(V?(i?e:M)(h,"click",j.onelement,this):i?(e(h,"mouseover",j.onelement,this),e(h,"mousemove",j.onredraw,this),e(h,"mouseout",j.onhide,this)):(M(h,"mouseover",j.onelement,this),M(h,"mousemove",j.onredraw,this),M(h,"mouseout",
j.onhide,this)));this.__tip_text=d;if(j.currentTarget===this&&d!==j.text&&!j.hidden)j[i?"hide":"redraw"]();return this};return r.el.tooltip.call(this,d,h,i,k,l)}}]);
FusionCharts(["private","modules.renderer.js-base",function(){var i=this,l=i.hcLib,u=window.document,r=l.BLANKSTRING,d=l.createTrendLine,h=l.pluck,M=l.getValidValue,e=l.pluckNumber,k=l.defaultPaletteOptions,V=l.getFirstValue,ga=l.getDefinedColor,w=l.parseUnsafeString,Q=l.FC_CONFIG_STRING,K=l.extend2,G=l.getDashStyle,aa=l.toPrecision,A=l.regex.dropHash,ia=l.HASHSTRING,H=l.getSentenceCase,D=l.addEvent,q=Math,j=q.min,s=q.max,fa=q.ceil,ea=q.floor,U=q.log,W=q.pow,X=l.graphics.getColumnColor,v=l.getFirstColor,
n=l.setLineHeight,R=l.pluckFontSize,b=l.getFirstAlpha,f=l.graphics.getDarkColor,a=l.graphics.getLightColor,g=l.graphics.convertColor,c=l.COLOR_TRANSPARENT,t=l.POSITION_CENTER,x=l.POSITION_TOP,J=l.POSITION_BOTTOM,ja=l.POSITION_RIGHT,la=l.POSITION_LEFT,ba=l.chartAPI,Ha=l.titleSpaceManager,q=l.placeLegendBlockBottom,Ba=l.placeLegendBlockRight,qa=l.graphics.mapSymbolName,q=ba.singleseries,Ba=ba.multiseries,da=l.COMMASTRING,Da=l.STRINGUNDEFINED,ya=l.ZEROSTRING,Ea=l.ONESTRING,za=l.HUNDREDSTRING,Ka=l.PXSTRING,
$a=l.COMMASPACE,oa=!/fusioncharts\.com$/i.test(location.hostname),La=l.CREDIT_STRING="FusionCharts XT Trial",db=l.BLANKSTRINGPLACEHOLDER,Pa=l.BGRATIOSTRING,Za=l.COLOR_WHITE,Ia=l.TESTSTR,bb=l.graphics.getAngle,Ta=l.axisLabelAdder,eb=l.falseFN,cb=l.SmartLabelManager,fb=l.NumberFormatter,ab=l.getLinkAction,Ma=l.getAxisLimits,Ga=l.createDialog,m=function(a,b){return a>0?U(a)/U(b||10):null},o=l.hasTouch=document.documentElement.ontouchstart!==void 0;l.removeEvent=function(a,b,e){var c=u.removeEventListener?
"removeEventListener":"detachEvent";u[c]&&!a[c]&&(a[c]=function(){});jQuery(a).unbind(b,e)};var p=l.fireEvent=function(a,b,e,c){var d=jQ.Event(b),f="detached"+b;K(d,e);a[b]&&(a[f]=a[b],a[b]=null);jQuery(a).trigger(d);a[f]&&(a[b]=a[f],a[f]=null);c&&!d.isDefaultPrevented()&&c(d)},I={fontWeight:{1:"bold",0:"normal"},fontStyle:{1:"italic",0:"normal"},textDecoration:{1:"underline",0:"none"}},N={font:function(a,b){b.style.fontFamily=a},size:function(a,b){if(a)b.style.fontSize=R(a)+Ka},color:function(a,
b,e){b.style.color=a&&a.replace&&a.replace(A,ia)||r;if(e)b.color=b.style.color},bgcolor:function(a,b){b.style.backgroundColor=a&&a.replace&&a.replace(A,ia)||r},bordercolor:function(a,b){b.style.border="1px solid";b.style.borderColor=a&&a.replace&&a.replace(A,ia)||r},ishtml:r,leftmargin:function(a,b){b.style.marginLeft=e(a,0)+Ka},letterspacing:function(a,b){b.style.letterSpacing=e(a,0)+Ka},bold:function(a,b){b.style.fontWeight=I.fontWeight[a]||""},italic:function(a,b){b.style.fontStyle=I.fontStyle[a]||
""},underline:function(a,b){b.style.textDecoration=I.textDecoration[a]||""}},T={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",
bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},P=function(){var a={},b,e=function(){var e,c,d,f,g=0,h;for(e in a)if(g+=1,c=a[e],d=c.jsVars,f=(c=c.ref)&&c.parentNode){if(h=
f.offsetWidth,f=f.offsetHeight,!d.resizeLocked&&(d._containerOffsetW!==h||d._containerOffsetH!==f))c.resize&&c.resize(),d._containerOffsetW=h,d._containerOffsetH=f}else delete a[e],g-=1;g||(b=clearInterval(b))};return function(c){var d=c.jsVars,f=c.ref&&c.ref.parentNode||{};d._containerOffsetW=f.offsetWidth;d._containerOffsetH=f.offsetHeight;a[c.id]=c;b||(b=setInterval(e,300))}}(),y={getExternalInterfaceMethods:function(){var a=ba[this.jsVars.type],a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,";
if(typeof a==="string")b+=a+da;else if(a!==void 0||a!==null)for(var e in a)b+=e+da;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,e=b.$overlayButton;if(a&&a.show){if(!e)e=b.$overlayButton=jQuery("<span>"),e.click(function(){i.raiseEvent("OverlayButtonClick",a,b.fcObj)});e.text(a.message?a.message:"Back");b.overlayButtonMessage=e.text();e.css({border:"1px solid "+(a.borderColor?a.borderColor.replace(A,ia):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(A,ia):
"#edefec",fontFamily:a.font?a.font:"Verdana",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Ka,padding:(a.padding?a.padding:"3")+Ka,fontWeight:parseInt(a.bold,10)===0?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"});b.hcObj.container.appendChild(e[0]);b.overlayButtonActive=!0}else if(e)e.detach(),b.overlayButtonActive=!1,delete b.overlayButtonMessage},print:function(){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&
this.jsVars.hcObj.print()},exportChart:function(a){var b=this.jsVars.hcObj;if(b&&b.options&&b.options.exporting&&b.options.exporting.enabled)return b.exportChart(a);return!1},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var a=this.jsVars,b=a.container,e=a.fcObj,c=a.hcObj;c&&(c&&c.destroy&&c.destroy(),l.createChart(a.fcObj,b,a.type,void 0,void 0,!1),delete a.isResizing,l.raiseEvent("resized",{width:e.width,
height:e.height,prevWidth:a.width,prevHeight:a.height},e,[e.id]))},lockResize:function(a){return this.jsVars.resizeLocked=a===void 0&&!0||a},showChartMessage:function(a,b,e){var c=this.jsVars,d=c.hcObj;c.msgStore[a]&&(a=c.msgStore[a]);b&&d&&d.hasRendered?a?d.showMessage(a,e):d.hideLoading():(d&&d.destroy&&d.destroy(),l.createChart(c.fcObj,c.container,c.type,void 0,a));return a},signature:function(){return"FusionCharts/3.3.1 (XT)"}};l.createChart=function(a,b,e,c,d,f,g){var h=a.jsVars,m=h.msgStore,
p,o=ba[e],k,j=function(d){var f={renderer:"javascript"},g=h.fcObj,z=g.width,m=g.height,p=o&&o.eiMethods,va=h.$overlayButton;b.jsVars=a.jsVars;h.container=b;h.hcObj=d;h.type=e;h.width=b.offsetWidth;h.height=b.offsetHeight;h.instanceAPI=k;if(d.hasRendered){i.extend(b,y);if(p&&typeof p!=="string")for(var Z in p)b[Z]=p[Z];h.overlayButtonActive&&va&&(va.text(h.overlayButtonMessage),d.container.appendChild(va[0]))}c&&(c({success:d.hasRendered,ref:b,id:a.id}),d.hasRendered&&(z=Number((z&&z.match&&z.match(/^\s*(\d*\.?\d*)\%\s*$/)||
[])[1]),m=Number((m&&m.match&&m.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),(z||m)&&g.ref&&g.ref.parentNode&&P(g),l.raiseEvent("loaded",{type:e,renderer:"javascript"},a,[a.id]),l.raiseEvent("rendered",{renderer:"javascript"},g,[g.id])));if(d.hasRendered&&h.previousDrawCount<h.drawCount)f.width=h.width,f.height=h.height,f.drawCount=h.drawCount,f.drawingLatency=k.drawingLatency,f.displayingMessage=h.hasNativeMessage,l.raiseEvent("drawcomplete",f,g,[g.id])};a.__state.dataReady=!1;h.instanceAPI&&h.instanceAPI.dispose&&
h.instanceAPI.dispose();k=o?new ba(e):new ba("stub");k.chartInstance=a;if(d!==void 0){if(typeof d==="string")d=new Ga(b,d),h.hasNativeMessage=!0}else!o||!o.init||o&&o.name==="stub"?(d=new Ga(b,m.ChartNotSupported),h.hasNativeMessage=!0):h.message?(d=new Ga(b,h.message),h.hasNativeMessage=!0):h.loadError?(d=new Ga(b,m.LoadDataErrorText),h.hasNativeMessage=!0):h.stallLoad?(d=new Ga(b,m.XMLLoadingText),h.hasNativeMessage=!0):(d=a.getChartData(FusionChartsDataFormats.JSON,!0),p=d.data,d.error instanceof
Error?(d=new Ga(b,m.InvalidXMLText),h.hasNativeMessage=!0,g||l.raiseEvent("dataxmlinvalid",{},h.fcObj,[h.fcObj.id])):(g||l.raiseEvent("dataloaded",{},h.fcObj,[h.fcObj.id]),d=k.init(b,p,a,j),h.previousDrawCount=h.drawCount,h.drawCount+=1,d.series.length===0?(d=new Ga(b,m.ChartNoDataText),h.hasNativeMessage=!0,g||l.raiseEvent("nodatatodisplay",{},h.fcObj,[h.fcObj.id])):(a.__state.dataReady=!0,h.hasNativeMessage=!1,delete h.message)));if(!d)d=new Ga(b,"Error rendering chart {0x01}"),h.hasNativeMessage=
!0;d.chart=d.chart||{};d.chart.renderTo=b;d.credits=d.credits||{};d.credits.enabled=o&&o.creditLabel===!0?!0:!1;if(f===!1)d.chart.animation=!1,(d.plotOptions||(d.plotOptions={}))&&(d.plotOptions.series||(d.plotOptions.series={})),d.plotOptions.series.animation=!1;if(b.style)d.chart.containerBackgroundColor=h.transparent?"transparent":a.options.containerBackgroundColor||"#ffffff";return k.draw(d,j)};var ma=l.HCstub=function(a,b,c,d){var a=a.chart,f=e(a.charttopmargin,d.charttopmargin,15),g=e(a.chartrightmargin,
d.chartrightmargin,15),h=e(a.chartbottommargin,d.chartbottommargin,15),m=e(a.chartleftmargin,d.chartleftmargin,15),i=f+h,p=m+g;c*=0.7;b*=0.7;i>c&&(f-=(i-c)*f/i,h-=(i-c)*h/i);p>b&&(m-=(p-b)*m/p,g-=(p-b)*g/p);b={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,renderTo:r,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:f,spacingRight:g,spacingBottom:h,
spacingLeft:m,marginTop:f,marginRight:g,marginBottom:h,marginLeft:m,borderRadius:0,plotBackgroundColor:"#FFFFFF",style:{},animation:!e(a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*500}},colors:["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:La,enabled:!0},global:{},
labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:r,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:!e(a.animation,a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*1E3},states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?d.numberFormatter.percentValue(this.percentage):
this.point.displayValue}},point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},line:{shadow:!0,states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},
scatter:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===ya?eb:function(){this.slice()}}}},pie3d:{size:"80%",
allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===ya?eb:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:r,style:{}},symbols:[],title:{text:r,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:r},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},
text:r},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:r},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==db?this.value:r}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};if(a.palettecolors&&typeof a.palettecolors==="string")b.colors=a.palettecolors.split(da);return d.hcJSON=b},pa=l.placeVerticalAxis=function(a,b,c,d,f,g,h,
m,i,p){var o=c[Q],k=o.smartLabel,l,j,y,I,N=0,m=o.marginRightExtraSpace,n=o.marginLeftExtraSpace,q={},T={},$={},P=a.plotLines,t=a.plotBands,o=b.verticalAxisValuesPadding,v=!isNaN(b.fixedValuesPadding)?b.fixedValuesPadding:0,ma=o-v,u=b.verticalAxisValuesPadding,w=b.verticalAxisNamePadding,pa=b.verticalAxisNameWidth,x=b.rotateVerticalAxisName,Aa=a.offset?a.offset:0,S=0,ka=0,na=0,D=0,A=0,wa=0,ca=0,J,ua,B,G,o=2,ca=h?m+8:n+4,H=function(a,e){var c,d;if(a&&a.label&&M(a.label.text)!==void 0){B=a.label;if(B.style&&
B.style!==ua)ua=B.style,k.setStyle(ua);l=k.getOriSize(a.label.text);d=(c=l.width)?c+2:0;if(a.isGrid){if(q[e]={width:c,height:l.height,label:B},D<=d)D=d,b.lYLblIdx=e}else a.isTrend&&(h&&B.textAlign===la||B.textAlign===ja?(T[e]={width:c,height:l.height,label:B},A=s(A,d)):($[e]={width:c,height:l.height,label:B},wa=s(wa,d)))}},aa=function(b,e){var c,d=e?N:N+b;j=j||{};return d>0?(x?(d<j.height&&(j=k.getSmartText(a.title.text,f,d)),c=j.height):(d<j.width&&(j=k.getSmartText(a.title.text,d,f)),c=j.width),
a.title.text=j.text,j.tooltext&&(a.title.originalText=j.tooltext),e?d-c+b:d-c):(a.title.text=r,0)},K=function(a,b,e){for(var c in a)a[c].label.x=b,a[c].label.y=e};J=0;for(na=t.length;J<na;J+=1)H(t[J],J);J=0;for(na=P.length;J<na;J+=1)H(P[J],J);if(a.title&&a.title.text!=r)ua=a.title.style,k.setStyle(ua),y=k.getOriSize(Ia).height,x?(j=k.getSmartText(a.title.text,f,g),N=j.height,I=y):(a.title.rotation=0,j=k.getSmartText(a.title.text,pa!==void 0?pa:g,f),N=j.width,I=20);wa>0&&(ka=wa+u);i&&(d=e(d.chart.maxlabelwidthpercent,
0),d>=1&&d<=100&&(i=d*i/100,D>i&&(D=i)));S=s(A,D);S+=S?ma+v:0;N>0&&(S+=N+w+ca);(function(){if(ka+S>g){G=ka+S-g;if(ka)if(u>=G){u-=G;return}else G-=u,u=0;if(ma+w>=G)w>=G?w-=G:(ma-=G-w,w=0);else{G-=ma+w;w=ma=0;if(wa>20)if(A>D)if(wa-A>=G){wa-=G;return}else if(A-wa>=G){A-=G;return}else if(A>wa?(G-=A-wa,A=wa):(G-=wa-A,wa=A),2*(A-D)>=G){wa-=G/2;A-=G/2;return}else G-=2*(A-D),wa=A=D;else if(wa-20>=G){wa-=G;return}else G-=wa-20,wa=20;if(A>D)if(A-D>=G){A-=G;return}else G-=A-D,A=D;N-I>=G?N-=G:(G-=N-I,N=I,wa>=
G?wa=0:(G-=wa,wa=0,N>=G?N=0:(G-=N,N=0,D>=G&&(D-=G,A=D))))}}})();na=function(a,b){var e,c=0,d=b?wa-2:wa+a-2;if(wa>0){for(J in $)if(B=$[J].label,$[J].width>d){if(B.style&&B.style!==ua)ua=B.style,k.setStyle(ua);e=k.getSmartText(B.text,d,f,!0);B.text=e.text;e.tooltext&&(B.originalText=e.tooltext);$[J].height=e.height;c=Math.max(c,e.width)}else c=Math.max(c,$[J].width);return b?d-c+a:d-c}else{for(J in $)$[J].label.text=r;return 0}}(0,!0);na=aa(na,!0);na=function(a){var b=0,e=Math.max(D,A)+a-2;if(e>0){for(J in q)if(B=
q[J].label,q[J].width>e){if(B.style&&B.style!==ua)ua=B.style,k.setStyle(ua);a=k.getSmartText(B.text,e,f,!0);B.text=a.text;a.tooltext&&(B.originalText=a.tooltext);q[J].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,q[J].width);for(J in T)if(B=T[J].label,T[J].width>e){if(B.style&&B.style!==ua)ua=B.style,k.setStyle(ua);a=k.getSmartText(B.text,e,f,!0);B.text=a.text;a.tooltext&&(B.originalText=a.tooltext);T[J].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,T[J].width);return e-b}else{for(J in q)q[J].label.text=
r;for(J in T)T[J].label.text=r;return 0}}(na);na=aa(na);i=b.verticalAxisNamePadding-w;na&&i&&(na>i?(w+=i,na-=i):(w+=na,na=0));i=b.verticalAxisValuesPadding-(ma+v);na&&i&&(na>i?(ma+=i,na-=i):(ma+=na,na=0));i=b.verticalAxisValuesPadding-u;na&&i&&(na>i?(u+=i,na-=i):(u+=na,na=0));wa>0&&(ka=wa+u);S=s(A,D);S+=S?ma+v:0;N>0&&(S+=N+w+ca);i=s(A,D);i+=i>0?ma+v:0;N>0?(x?N<j.height&&(j=k.getSmartText(a.title.text,f,N)):(N<j.width&&(j=k.getSmartText(a.title.text,N,f)),a.title.y=-((j.height-y)/2)),a.title.text=
j.text,j.tooltext&&(a.title.originalText=j.tooltext),a.title.margin=i+w+ca+(x?N-y:N/2)):a.title.text=r;y=-(ma+v+Aa+n+2);m=m+u+Aa+2;ca=s(A,D);a.labels.style&&(o=parseInt(a.labels.style.fontSize,10)*0.35);h?(wa>0&&K($,y,o),ca>0&&(K(q,m,o),K(T,m,o))):(wa>0&&K($,m,o),ca>0&&(K(q,y,o),K(T,y,o)));a.labels._textY=o;a.labels._righttX=m;a.labels._leftX=y;p?(c.chart.marginLeft+=h?ka:S-p,c.chart.marginRight+=h?S-p:ka):(c.chart.marginLeft+=h?ka:S,c.chart.marginRight+=h?S:ka);return ka+S},Ha=l.titleSpaceManager=
function(a,b,c,d){var f=b.chart,g=w(f.caption),h=w(f.subcaption),m=b=e(f.captionpadding,10),i=a[Q].smartLabel,p=!1,o,k=0,l,y,N=0,I=0,n=0,s=0,q=a.title,T=a.subtitle,f=e(f.canvasborderthickness,1);b<f&&(b=f);if(g!==r)l=q.style,n=e(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),e(parseInt(l.fontSize,10),10);if(h!==r)y=T.style,s=e(parseInt(y.fontHeight,10),parseInt(y.lineHeight,10),12),e(parseInt(y.fontSize,10),10);if(n>0||s>0){k=n+s+b;k>d?(N=k-d,p=!0,N<b?b-=N:(N-=b,b=0,s>N?(I=s-N+10,s=0):(N-=
s,s=0,n>N&&(I=n-N),n=0))):I=d-k;if(n>0)i.setStyle(l),n+=I,o=i.getSmartText(g,c,n),I=n-o.height,n=o.height,q.text=o.text,q.height=o.height,o.tooltext&&(q.originalText=o.tooltext);if(s>0)i.setStyle(y),s+=I,c=i.getSmartText(h,c,s),I=s-c.height,s=c.height,T.text=c.text,T.height=c.height,c.tooltext&&(q.originalText=o.tooltext);p&&I>0&&(b+=j(m-b,I));k=n+s+b;a.chart.marginTop+=k}return k},Aa=l.stepYAxisNames=function(a,b,e,c,d,f){for(var g=0,h=c.plotLines,m=[],i,p=c.plotLines.length,b=b[Q].smartLabel,o=
parseFloat(R(e.basefontsize,10)),k;g<p;g+=1)e=h[g],e.isGrid&&e.label&&e.label.text&&(m.push(e),e.value===0&&(i=m.length-1));if(p=m.length)if(c.labels.style?b.setStyle(c.labels.style):m[0].label&&m[0].label.style&&b.setStyle(c.labels.style),g=b.getOriSize("W").height,f||(g+=o*0.4),a/=p-1,a<g){f=Math.max(1,Math.ceil(g/a));for(g=a=i;g<p;g+=1){e=m[g];if(g===d){if((g-a)%f&&k)k.label.text="";a=d}if(e&&e.label)(g-a)%f?e.label.text=r:k=e}for(g=a=i;g>=0;g-=1){e=m[g];if(g===d){if((a-g)%f&&k)k.label.text="";
a=d}if(e&&e.label)(a-g)%f?e.label.text=r:k=e}}},ka=l.placeHorizontalAxis=function(a,b,c,d,f,g,h){var m=c[Q],i=d&&d.chart||{},p,o,k,l,j,y,N,I,n,q,T=0,$=0,P=10,ma=1,v=0,u=v=0,w=0,pa=!1,x=!1,na=!1,S=e(i.labelstep,0),Aa=e(i.xaxisminlabelwidth,0),D=b.labelDisplay,ka=b.rotateLabels,A=b.horizontalLabelPadding,G=m.marginBottomExtraSpace;n=c.chart.marginLeft;var B=c.chart.marginRight,ca=m.smartLabel,ua=m.plotBorderThickness,H=b.catCount,aa=b.slantLabels,K=f/(a.max-a.min),Va=0,U=0,u={w:0,h:0},V=d&&d.chart||
{},d=e(V.updateinterval,V.refreshinterval)*1E3,V=V.datastreamurl,ea=Boolean(this.realtimeEnabled&&d&&V!==void 0);if(a.labels.style)y=a.labels.style,ca.setStyle(y),I=ca.getOriSize("W"),P=ca.lineHeight,N=I.width+4,q=ca.getOriSize("WWW").width+4;var X,ga,ta,R=[],d=[],xa=0,ba=0,da,W,ia,za,V=b.horizontalAxisNamePadding;ga=0;var Fa=b.staggerLines,fa=Va,oa=!1,qa=!1;if(a.title&&a.title.text!=r)y=a.title.style,ca.setStyle(y),v=ca.getOriSize("W").height,a.title.rotation=0,l=ca.getSmartText(a.title.text,f,g),
$=l.height;n!=parseInt(i.chartleftmargin,10)&&(p=!0);B!=parseInt(i.chartrightmargin,10)&&(ta=!0);i.canvaspadding!==void 0&&i.canvaspadding!==""&&(qa=!0);ga=f-h;switch(D){case "none":pa=na=!0;ka&&(T=aa?300:270,I=P,P=N,N=I);break;case "rotate":T=aa?300:270;I=P;P=N;N=I;pa=!0;break;case "stagger":x=pa=!0;h=Math.floor((g-v)/P);h<Fa&&(Fa=h);break;default:ka&&(T=aa?300:270,I=P,P=N,N=I)}m.isBar&&(pa=!0);i=0;h=a.plotLines;if(typeof c._FCconf.isXYPlot===Da&&!m.isBar){for(da=h.length;i<da;i+=1)(o=h[i])&&(o.isGrid?
R.push(o):o.isTrend&&d.push(o));ka=a.plotBands;i=0;for(da=ka.length;i<da;i+=1)(o=ka[i])&&d.push(o);ka=R.length-1;da=R.length;x&&(Fa>da?Fa=da:Fa<2&&(Fa=2));if(da){a.scroll&&a.scroll.viewPortMin&&a.scroll.viewPortMax?(k=a.scroll.viewPortMin,X=a.scroll.viewPortMax,ta=p=!1):(k=a.min,X=a.max);i=(R[ka].value-R[0].value)*K;W=i/(H-1);ia=(R[0].value-k)*K;za=(X-R[ka].value)*K;D==="auto"?W<q&&(T=aa?300:270,I=P,P=N,N=I,pa=!0):D==="stagger"&&(W*=Fa);this.defaultSeriesType!=="line"&&(this.defaultSeriesType==="area"?
m.drawFullAreaBorder&&(ua>ia&&(k=a.min-=ua/(2*K),ia+=(R[0].value-k)*K),ua>za&&(X=a.max+=ua/(2*K),za+=(X-R[ka].value)*K)):(ua>ia&&(k=a.min-=ua/(2*K),ia+=(R[0].value-k)*K),ua>za&&(X=a.max+=ua/(2*K),za+=(X-R[ka].value)*K)));N<Aa&&(N=Aa);ma=!x&&!na?Math.max(1,S,Math.ceil(N/W)):Math.max(1,S);if(m.x)m.x.stepValue=ma;W*=ma;n=(ia+n)*2;if((j=h[0].label)&&j.text)j.style&&ca.setStyle(j.style),q=T===270?Math.min(W,ca.getOriSize(j.text).height+4):Math.min(W,ca.getOriSize(j.text).width+4),q>n&&(na||(xa=(q-n)/2),
p||(qa&&(xa=0),W-=xa/(H-1),I=W*(H-1),K=W,n=(i-I)/K,X=a.max+=n,k=a.min-=n,xa=0,i=I,ia=(R[0].value-k)*K,za=(X-R[ka].value)*K));n=(za+B)*2;if((j=h[ka].label)&&j.text)j.style&&ca.setStyle(j.style),q=T===270?Math.min(W,ca.getOriSize(j.text).height+4):Math.min(W,ca.getOriSize(j.text).width+4),q>n&&(na||(ba=(q-n)/2),ta||(qa&&(ba=0),W-=ba/(H-1),I=W*(H-1),K=W,n=(i-I)/K,ba=0,i=I,ia=(R[0].value-k)*K,za=(X-R[ka].value)*K));i=xa+ba;if(i>0){ga>i?(B=(B=ba*f/(ba+f))?B+4:0,c.chart.marginRight+=B,f-=B,B=(B=xa*f/(xa+
f))?B+4:0,c.chart.marginLeft+=B,f-=B,K=f/(a.max-a.min)):xa<ba?ga>=ba&&ta?(B=(B=ba*f/(ba+f))?B+4:0,c.chart.marginRight+=B,f-=B,K=f/(a.max-a.min)):p&&(B=(B=xa*f/(xa+f))?B+4:0,c.chart.marginLeft+=B,f-=B,K=f/(a.max-a.min)):ga>=xa&&p?(B=(B=xa*f/(xa+f))?B+4:0,c.chart.marginLeft+=B,f-=B,K=f/(a.max-a.min)):ta&&(B=(B=ba*f/(ba+f))?B+4:0,c.chart.marginRight+=B,f-=B,K=f/(a.max-a.min));i=(R[ka].value-R[0].value)*K;W=i/(H-1);x&&(W*=Fa);ma=!x&&!na?T?Math.max(1,S,Math.ceil(P/W)):Math.max(1,S,Math.ceil(N/W)):Math.max(1,
S);if(m.x)m.x.stepValue=ma;W*=ma}for(k=0;k<da;k+=1){o=R[k];if(k%ma&&o.label){if(o.stepped=!0,o.label.style=a.steppedLabels.style,!ea)continue}else o.stepped=!1,o.label.style=a.labels.style;if(o&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);if(T&&na)p=ca.getOriSize(j.text),u.w=s(u.w,p.width+4),u.h=s(u.h,p.height);else if(!na)p=T||x?ca.getOriSize(j.text):ca.getSmartText(j.text,W-4,g,pa),u.w=s(u.w,p.width+4),u.h=s(u.h,p.height)}}}k=0;for(da=d.length;k<
da;k+=1)if((o=d[k])&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);p=ca.getOriSize(j.text);j.verticalAlign===J?Va=s(Va,p.height):U=s(U,p.height)}a.scroll&&a.scroll.enabled&&!T&&!na&&(n=u.w/2,c.chart.marginLeft<n&&(B=n-c.chart.marginLeft,ga>B&&(f-=B,ga-=B,c.chart.marginLeft+=B)),c.chart.marginRight<n&&(B=n-c.chart.marginRight,ga>B&&(f-=B,ga-=B,c.chart.marginRight+=B)))}else{var S={},Ba,D=ba=0,ua=qa=null,H={},oa=!0,K=f/(a.max-a.min),Aa=function(b,e,d){var f,
g,h,z,i,m;m=b.plotObj;i=b.labelTextWidth;if(!i){j=m.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);i=ca.getOriSize(j.text).width+4;b.oriWidth=i;i>Ba&&(i=Ba);b.labelTextWidth=i;b.leftEdge=m.value*K-i/2;b.rightEdge=m.value*K+i/2;if(d)i=Math.min(i,2*(o.value-a.min)*K+c.chart.marginLeft),b.labelTextWidth=i}if(typeof e!==Da){d=e.plotObj;j=d.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);e.oriWidth?h=e.oriWidth:(h=ca.getOriSize(j.text).width+4,e.oriWidth=h);h>Ba&&(h=Ba);e.labelTextWidth=
h;e.leftEdge=d.value*K-h/2;e.rightEdge=d.value*K+h/2;f=m.value*K;g=f+i/2;z=d.value*K;h=z-h/2;if(h<g)if(f+N<z-N)g-=h,f=z-f,b.labelTextWidth=g>f?Math.min(i,f):Math.max(N,i-g/2),e.labelTextWidth=2*(f-b.labelTextWidth/2),b.leftEdge=m.value*K-b.labelTextWidth/2,b.rightEdge=m.value*K+b.labelTextWidth/2,e.leftEdge=d.value*K-e.labelTextWidth/2,e.rightEdge=d.value*K+e.labelTextWidth/2;else return e.labelTextWidth=0,d.label.text=r,!1}else if(d)i=Math.min(i,2*(a.max-o.value)*K+c.chart.marginRight),b.labelTextWidth=
i,b.leftEdge=m.value*K-i/2,b.rightEdge=m.value*K+i/2;b.nextCat=e;return!0};x?Fa>da?Fa=da:Fa<2&&(Fa=2):Fa=1;for(da=h.length;i<da;i+=1)if((o=h[i])&&o.label&&typeof o.label.text!==Da)o.isGrid?(xa={plotObj:o},o.isCat&&(ka=i%Fa,S[ka]||(S[ka]=[]),qa?(ua=xa,S[ka].push(ua)):(ua=qa=xa,S[ka].push(qa))),R.push(xa)):o.isTrend&&d.push({plotObj:o});ka=a.plotBands;i=0;for(da=ka.length;i<da;i+=1)(o=ka[i])&&o.isTrend&&o.label&&typeof o.label.text!==Da&&d.push({plotObj:o});if(R.length)if(!na&&!T)if(m.distributedColumns){i=
0;for(da=R.length;i<da;i+=1)if(k=R[i],ta=i%Fa,o=k.plotObj,o.label&&o.isCat){i-Fa>=0?(p=R[i-Fa],ta=p.plotObj.value*K+p.plotObj._weight*K/2):(p=null,ta=a.min*K-n);i+Fa<da?(I=R[i+Fa],I=I.plotObj.value*K-I.plotObj._weight*K/2):(I=null,I=a.max*K+B);j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);xa=o.value*K;ga=xa-o._weight*K/2;xa+=o._weight*K/2;Fa>1?(p=ga-ta,ta=xa+I,ta=xa-ga+Math.min(p,ta)):ta=xa-ga;j=o.label;j.style&&j.style!==y&&ca.setStyle(j.style);ta<N&&N<ca.getOriSize(j.text).width?(o.label.text=
r,k.labelTextWidth=0):(k.labelTextWidth=ta,p=ca.getSmartText(j.text,ta-4,g,pa),ta=p.width+4,k.labelTextWidth=ta,u.h=Math.max(u.h,p.height))}}else{da=R.length;ka=R.length-1;(i=(R[ka].plotObj.value-R[0].plotObj.value)*K)?(Ba=i*0.1,ea=Math.max(i*0.2,i/da)):ea=Ba=f;for(k in S){i=0;for(q=S[k].length;i<q;){for(xa=i+1;!Aa(S[k][i],S[k][xa]);)xa+=1;i=xa}}qa&&(D=(qa.plotObj.value-a.min)*K+n-qa.labelTextWidth/2);o=R[0].plotObj;if(!qa||o!==qa.plotObj){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);
q=ca.getOriSize(j.text).width+4;xa=(o.value-a.min)*K+n;qa&&(i=D-xa,q=i<q&&i>N/2?i*2:0);R[0].labelTextWidth=q;q>0&&(I=xa-q/2);I<D&&(D=I)}if(ua)q=ua.labelTextWidth,ba=(a.max-ua.plotObj.value)*K+B-q/2;o=R[ka].plotObj;if(!ua||o!==ua.plotObj){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);q=ca.getOriSize(j.text).width+4;xa=(a.max-o.value)*K+B;ua&&(i=xa-ba,q=i<q&&i>N/2?i*2:0);R[ka].labelTextWidth=q;q>0&&(I=xa-q/2);I<ba&&(ba=I)}xa=D<0?-D:0;ba=ba<0?-ba:0;i=xa+ba;if(i>0)for(k in ga>i?(B=(B=ba*
f/(ba+f))?B+4:0,c.chart.marginRight+=B,f-=B,B=(B=xa*f/(xa+f))?B+4:0,c.chart.marginLeft+=B,f-=B,K=f/(a.max-a.min)):xa<ba?ga>=ba&&ta?(B=(B=ba*f/(ba+f))?B+4:0,c.chart.marginRight+=B,f-=B,K=f/(a.max-a.min)):p&&(B=(B=xa*f/(xa+f))?B+4:0,c.chart.marginLeft+=B,f-=B,K=f/(a.max-a.min)):ga>=xa&&p?(B=(B=xa*f/(xa+f))?B+4:0,c.chart.marginLeft+=B,f-=B,K=f/(a.max-a.min)):ta&&(B=(B=ba*f/(ba+f))?B+4:0,c.chart.marginRight+=B,f-=B,K=f/(a.max-a.min)),B=c.chart.marginRight,n=c.chart.marginLeft,i=(R[ka].plotObj.value-R[0].plotObj.value)*
K,Ba=i*0.1,ea=Math.max(i*0.2,i/da),S){i=0;for(q=S[k].length;i<q;){for(xa=i+1;!Aa(S[k][i],S[k][xa],!0);)xa+=1;i=xa}k+=1}i=0;for(da=R.length;i<da;i+=1)if(k=R[i],ta=i%Fa,o=k.plotObj,o.label)if(o.isCat)k.labelTextWidth&&(H[ta]=k);else{I=(p=H[ta])?p.nextCat:S[ta]?S[ta][0]:null;p=null;if(i>=Fa){ta=i-Fa;for(p=R[ta];!p.labelTextWidth;)if(ta>=Fa)ta-=Fa,p=R[ta];else{p=null;break}}ta=p?p.rightEdge:a.min*K-n;I=I?I.leftEdge:a.max*K+B;j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);q=ca.getOriSize(j.text).width+
4;ga=o.value*K-q/2;if(m.isBar&&i==da-1&&p){if(ta>ga)p.plotObj.label.text=r,p.labelTextWidth=0,ta=p.leftEdge}else if(ta>ga||I<ga+q){o.label.text=r;k.labelTextWidth=0;continue}ta=Math.max(ta,ga);xa=o.value*K;ta=2*Math.min(xa-ta,I-xa);ta.toFixed&&(ta=ta.toFixed(2));j=o.label;j.style&&j.style!==y&&ca.setStyle(j.style);ta<N&&N<ca.getOriSize(j.text).width?(o.label.text=r,k.labelTextWidth=0):(k.labelTextWidth=ta,p=ca.getSmartText(j.text,ta-4,g,pa),ta=p.width+4,k.labelTextWidth=ta,k.leftEdge=xa-ta/2,k.rightEdge=
xa+ta/2,u.h=Math.max(u.h,p.height))}p=B=ta=n=null;i=0;for(da=R.length;i<da;i+=1)if(k=R[i],o=k.plotObj,ta=i%Fa,o.isCat&&k.labelTextWidth){p=B=null;xa=o.value*K;if(i>=Fa){ta=i-Fa;for(p=R[ta];!p.labelTextWidth;)if(ta>Fa)ta-=Fa,p=R[ta];else{p=null;break}}p=p?xa-p.rightEdge:xa-a.min*K+c.chart.marginLeft;if(i+Fa<da){n=i+Fa;for(B=R[n];!B.labelTextWidth;)if(n+Fa<da-1)n+=Fa,B=R[n];else{B=null;break}}ta=B?B.leftEdge-xa:a.max*K+c.chart.marginRight-xa;ta=Math.min(p,ta)*2;ta>ea&&(ta=ea);if(ta>k.oriWidth)ta=k.oriWidth;
k.labelTextWidth=ta;j=o.label;j.style&&j.style!==y&&ca.setStyle(j.style);p=ca.getSmartText(j.text,ta-4,g,pa);k.labelTextWidth=p.width+4;u.h=Math.max(u.h,p.height);k.rightEdge=xa+k.labelTextWidth/2}}else if(T){i=0;for(da=R.length;i<da;i+=1)if((o=R[i].plotObj)&&o.label&&o.label.text){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);k=1;if(i+k<da)for(B=R[k+i].plotObj;B&&(B.value-o.value)*K<N;)if(o.isCat){if(B.label){B.label.text=r;k+=1;if(k+i>=da-1)break;B=h[k+i].plotObj}}else if(B.isCat){o.label.text=
r;o=B;i+=k-1;j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);break}u.w=Math.max(u.w,ca.getOriSize(j.text).width+4)}}k=0;for(da=d.length;k<da;k+=1)if((o=d[k].plotObj)&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);p=ca.getOriSize(j.text);j.verticalAlign===J?Va=s(Va,p.height):U=s(U,p.height)}}if(na){if(ga=P,T)ga=u.w}else ga=T?u.w:x?Fa*P:u.h;ga>0&&(fa+=A+ga);$>0&&(fa+=$+V);u=A-4;fa=U+fa+2;I=0;fa>g&&(i=fa-g,V>i?(V-=i,i=0):(i-=V,V=0,u>i?(u-=i,
differnece=0):(i-=u,u=0),A=u+4),U>i?(U-=i,i=0):(U>0&&(i-=U,U=0),i>0&&(Va>i?(Va-=i,i=0):(Va>0&&(i-=Va,Va=0),i>0&&((I=$-v)>i?($-=i,i=0):(i-=I,$=v,i>0&&((I=ga-P)>i?(ga-=i,i=0):(i-=I,ga=P,i>0&&(i-=$+V,$=0,i>0&&(i-=ga,ga=0,i>0&&(A-=i)))))))))));A+=G;var B=m.is3d?-c.chart.xDepth:0,g=ga+A,Ea,fa=B;n=P*0.5;v=P+A;da=R.length;u=0;if(oa)if(T){W=ja;Ea=aa?A+8:A+4;da=R.length;for(k=0;k<da;k+=1)if((o=R[k].plotObj)&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);i=1;
p=ca.getSmartText(j.text,ga-4,N,pa);j.text=p.text;p.tooltext&&(j.originalText=p.tooltext);fa=B+n/2;j.y=Ea;j.x=fa;j.rotation=T;j.textAlign=W;u+=1}}else{oa=ga;W=t;Ea=v;for(k=0;k<da;k+=ma)if((o=R[k].plotObj)&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);if(!na)p=ca.getSmartText(j.text,R[k].labelTextWidth-4,oa,pa),j.text=p.text,p.tooltext&&(j.originalText=p.tooltext),x&&(Ea=v+u%Fa*P);j.y=Ea;j.x=fa;j.rotation=T;j.textAlign=W;u+=1}}else{T?(oa=W,i=ga-4,W=
ja,Ea=aa?A+8:A+4):x?(oa=P,i=W-4,W=t):(oa=ga,i=W-4,W=t,Ea=v);for(k=0;k<da;k+=ma)if((o=R[k])&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);if(!na)p=ca.getSmartText(j.text,i,oa,pa),j.text=p.text,p.tooltext&&(j.originalText=p.tooltext),x&&(Ea=v+u%Fa*P),T&&(fa=B+n/2);j.y=Ea;j.x=fa;j.rotation=T;j.textAlign=W;u+=1}b._labelY=v;b._labelX=B;b._yShipment=Ea;b._isStagger=x;b._rotation=T;b._textAlign=W;b._adjustedPx=n/2;b._staggerLines=Fa;b._labelHeight=P}da=d.length;
for(k=T=b=0;k<da;k+=1)if((o=d[k].plotObj?d[k].plotObj:d[k])&&o.label&&M(o.label.text)!==void 0){j=o.label;if(j.style&&j.style!==y)y=j.style,ca.setStyle(y);j.verticalAlign===J?(p=ca.getSmartText(j.text,f,Va,!0),T=Math.max(T,p.height),j.text=p.text,p.tooltext&&(j.originalText=p.tooltext),j.y=g+ca.getOriSize(j.text).height,j.x=fa):(p=ca.getSmartText(j.text,f,U,!0),b=Math.max(b,p.height),j.text=p.text,p.tooltext&&(j.originalText=p.tooltext),j.y=-(U-ca.getOriSize("W").height+A+2))}if($>0)ca.setStyle(a.title.style),
l=ca.getSmartText(a.title.text,f,$),a.title.text=l.text,l.tooltext&&(a.title.originalText=l.tooltext),a.title.margin=g+T+V;fa=T;if(ga>0)m.horizontalAxisHeight=A+ga-G,fa+=m.horizontalAxisHeight;$>0&&(fa+=w=$+V);c.chart.marginBottom+=fa;b>0&&(c.chart.marginTop+=b,fa+=b);if(a.opposite){a.title.margin-=ga-(l&&l.height||0)+A;fa-=w;c.chart.marginTop+=fa;c.chart.marginBottom-=fa;c.xAxis.opposite=1;da=h.length;for(i=0;i<da;i+=1)if((o=h[i])&&o.isGrid&&(j=o.label)&&j.text!==void 0)j.textAlign=la,j.y-=Ea+A+
4}return fa},$=l.configureLegendOptions=function(a,b,c,d,f){var d=a.legend,i=a.chart,m=i.paletteIndex,p=i.is3D?T.chart3D:T.chart2D,o=i.useRoundEdges,j=e(b.legendiconscale,1),l=(parseInt(d.itemStyle.fontSize,10)||10)+1,y=a.chart.defaultSeriesType,I=3;if(j<=0||j>5)j=1;d.padding=4;l<=0&&(l=1);f-=8;l*=j;I*=j;l=Math.min(l,f);l<=0&&(I=l=0);d.symbolWidth=l;d.symbolPadding=I;d.textPadding=4;d.legendHeight=f=l+2*I;d.rowHeight=Math.max(parseInt(d.itemStyle.lineHeight,10)||12,f);c?(d.align=ja,d.verticalAlign=
"middle",d.layout="vertical"):d.x=(i.marginLeft-i.spacingLeft-i.marginRight+i.spacingRight)/2;c=h(b.legendbordercolor,k[p.legendBorderColor][m]);f=e(b.legendborderalpha,100);i=e(b.legendbgalpha,100);d.backgroundColor=g(h(b.legendbgcolor,k[p.legendBgColor][m]),i);d.borderColor=g(c,f);d.borderWidth=e(b.legendborderthickness,!o||b.legendbordercolor?1:0);d.shadow=Boolean(e(b.legendshadow,1));if(d.shadow)d.shadow={enabled:d.shadow,opacity:s(f,i)/100};d.reversed=Boolean(e(b.reverselegend,0));if(/^pie|pie3d$/.test(y))d.reversed=
!d.reversed;d.style={padding:4};Boolean(e(b.interactivelegend,1))?d.symbolStyle={_cursor:"hand",cursor:"pointer"}:(a.legend.interactiveLegend=!1,d.itemStyle.cursor="default",d.itemHoverStyle={cursor:"inherit"});d.borderRadius=e(b.legendborderradius,o?3:0);d.legendAllowDrag=Boolean(e(b.legendallowdrag,0));d.title.text=w(V(b.legendcaption,r));d.legendScrollBgColor=v(h(b.legendscrollbgcolor,k.altHGridColor[a.chart.paletteIndex]));d.legendScrollBarColor=h(b.legendscrollbarcolor,c);d.legendScrollBtnColor=
h(b.legendscrollbtncolor,c);d.title.style=K({fontWeight:"bold"},d.itemStyle)},Ba=l.placeLegendBlockRight=function(a,b,c,d,f){$(a,b.chart,!0,f,c);var g=0,h=a.series,i,m=a[Q],p=m.smartLabel,o=a.legend,k,j=o.textPadding,l=o.title.padding,y=o.symbolWidth+2*o.symbolPadding,I=d*2,N=0,b=e(b.chart.legendpadding,7)+o.borderWidth/2+e(b.chart.canvasborderthickness,1),n=2*o.padding,q={width:n,height:n},s=!1,T=[];c-=n;f&&(h=h&&h[0]&&h[0].data);if(typeof h===Da||typeof h.length===Da)return 0;else{f=h.length;for(g=
0;g<f;g+=1)if((i=h[g])&&i.showInLegend!==!1)i.__i=g,T.push(i);T.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=T.length}k=c-y-2-j;k<0&&(k=0);p.setStyle(o.itemStyle);o.reversed&&T.reverse();for(g=0;g<f;g+=1)if(i=T[g],s=!0,i._legendX=0,i._legendY=q.height,k===0)q.height+=i._legendH=y,i.name=r;else{h=p.getSmartText(i.name,k,I);i.name=h.text;h.tooltext&&(i.originalText=h.tooltext);if(h.height<y)i._legendTestY=(y-h.height)/2;q.height+=i._legendH=Math.max(h.height,y);N=Math.max(h.width,
N)}if(s){o.itemWidth=N+y+2+j;o.width=o.itemWidth+n;if(o.title.text!==r){p.setStyle(o.title.style);h=p.getSmartText(o.title.text,c,I);o.title.text=h.text;h.tooltext&&(o.title.originalText=h.tooltext);g=h.width+n;if(o.width<g)o.initialItemX=(g-o.width)/2,o.width=g;o.initialItemY=h.height+l;q.height+=o.initialItemY}o.height=o.totalHeight=q.height;if(o.height>d)o.height=d,o.scroll.enabled=!0,o.scroll.flatScrollBars=m.flatScrollBars,o.scroll.scrollBar3DLighting=m.scrollBar3DLighting,o.width+=(o.scroll.scrollBarWidth=
10)+(o.scroll.scrollBarPadding=2);b=Math.min(o.width+b,c);a.chart.marginRight+=b;return b}else return o.enabled=!1,0},q=l.placeLegendBlockBottom=function(a,b,c,d,f){$(a,b.chart,!1,f,c);var g=0,h=a.series,i,m=a[Q],p=m.smartLabel,o=a.legend,k,j=o.textPadding;i=o.title.padding;var l,y=o.symbolPadding;k=o.legendHeight;var I=b.chart;l=0;var N=d*2,n=o.rowHeight,q=[],s=e(I.minimisewrappinginlegend,0),I=e(parseInt(I.legendnumcolumns,10),0),T=0,P=0,u=0,ma=g=0,v=2*o.padding,b=e(b.chart.legendpadding,7)+o.borderWidth/
2+1,t={width:v,height:v},B=!1,w,pa=[];I<0&&(I=0);c-=v;p.setStyle(o.itemStyle);g=p.getOriSize(Ia).height;b=Math.min(b,d-g-8);d-=b;f&&(h=h&&h[0]&&h[0].data);if(typeof h===Da||typeof h.length===Da)return 0;else{f=h.length;for(g=0;g<f;g+=1)if((w=h[g])&&w.showInLegend!==!1)w.__i=g,pa.push(w);pa.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=pa.length}p.setStyle(o.itemStyle);for(g=0;g<f;g+=1)B=!0,h=p.getOriSize(pa[g].name),T=Math.max(T,h.width),P+=h.width,u+=1;g=P/u;if(B){g+=k+2+
j;T+=k+2+j;I>0&&u<I&&(I=u);I>0&&(ma=c/I)>g?ma>T&&(ma=T):c>T&&(s||g*1.5>T)?(I=Math.floor(c/T),u<I&&(I=u),ma=T):c>=2*g?(I=Math.floor(c/g),u<I&&(I=u),ma=Math.floor(c/I),ma>T&&(ma=T)):(I=1,ma=c);o.itemWidth=ma;k=ma-k-2-j;k<0&&(y=k=j=0);o.symbolPadding=y;o.textPadding=j;o.width=ma*I+v;if(o.title.text!==r){p.setStyle(o.title.style);h=p.getSmartText(o.title.text,c,N);o.title.text=h.text;h.tooltext&&(o.title.originalText=h.tooltext);l=h.width+v;if(o.width<l)o.initialItemX=(l-o.width)/2,o.width=l;o.initialItemY=
l=h.height+i}p.setStyle(o.itemStyle);j=0;o.reversed&&pa.reverse();for(g=0;g<f;g+=1){i=pa[g];if(k===0)q[j]=!0,i.name=r,c=1;else{h=p.getSmartText(i.name,k,N);i.name=h.text;for(h.tooltext&&(i.originalText=h.tooltext);q[j]===!0;)j+=1;y=h.height/n;s=j;for(c=0;c<y;c+=1,s+=I)q[s]=!0;if(h.height<n)i._legendTestY=(n-h.height)/2}y=parseInt(j/I,10);h=j%I;i._legendX=h*ma;i._legendY=y*n+v;i._legendH=c*n;j+=1}t.height+=Math.ceil(q.length/I)*n+l;o.height=o.totalHeight=t.height;o.rowHeight=n;o.legendNumColumns=I;
if(o.height>d)o.height=d,o.scroll.enabled=!0,o.scroll.flatScrollBars=m.flatScrollBars,o.scroll.scrollBar3DLighting=m.scrollBar3DLighting,o.width+=(o.scroll.scrollBarWidth=10)+(o.scroll.scrollBarPadding=2);b+=o.height;a.chart.marginBottom+=b;return b}else return o.enabled=!1,0},S=function(a,b){return a.value-b.value},ca=l.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var e=b.text,d=a[Q].smartLabel,f=2*Math.min(a.chart.marginTop,a.chart.marginBottom)+c,g=c+a.chart.marginTop+a.chart.marginBottom;
b.style&&d.setStyle(b.style);e=d.getOriSize(e);if(b.centerYAxisName===void 0)b.centerYAxisName=!0;if(b.rotation=="0"){if(e.height>f)b.y=(g/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1}else if(e.width>f)b.y=g/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1}},na=l.adjustVerticalCanvasMargin=function(a,b,c,d){var f=b.chart,g=b=0,h=0,i=e(f.canvastopmargin,0),f=e(f.canvasbottommargin,0),m=i/(i+f),o=a.chart.marginTop,p=a.chart.marginBottom;f>p&&(b+=f-p);i>o&&(b+=i-o);b>c?i>o&&f>p?(g=c*m,h=c*(1-m)):
i>o?g=c:h=c:b>0&&(f>p&&(h=f-p),i>o&&(g=i-o));g&&(a.chart.marginTop+=g);h&&(a.chart.marginBottom+=h,d&&d.title&&(d.title.margin+=h));return g+h},ua=l.adjustHorizontalCanvasMargin=function(a,b,c,d,f){var g=b.chart,b=e(g.canvasleftmargin,0),g=e(g.canvasrightmargin,0),h=b/(b+g),i=0,m=a.chart.marginLeft,o=a.chart.marginRight,p=0,k=0;b>m&&(i+=b-m);g>o&&(i+=g-o);i>c?b>m&&g>o?(p=c*h,k=c*(1-h)):g>o?k=c:p=c:i>0&&(b>m&&(p=b-m),g>o&&(k=g-o));p&&(a.chart.marginLeft+=p,d&&d.title&&(d.title.margin+=p));k&&(a.chart.marginRight+=
k,f&&f.title&&(f.title.margin+=k));return k+p};ba("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",draw:function(a,b){var c=this,e=c.renderer,d=c.chartInstance.jsVars,f="reinit",g=new Date;c.drawingLatency=c.drawingLatency||0;if(!e)d._lastpaper&&(d._lastpaper=d._lastpaper.dispose()),f="init",e=c.renderer=new ba("renderer."+c.rendererId);return e[f](c,a,function(){d._lastpaper=e;c.drawingLatency=new Date-g;b&&b.apply(this,arguments)})},init:function(a,b,c){var d=this.chartInstance||
c,f=d.jsVars,c=f._reflowData||(f._reflowData={}),g=f._reflowClean,h,i;this.dataObj=b=K({},b);i=b.chart=b.chart||b.graph||b.map||{};delete b.graph;delete b.map;if(c&&!this.stateless)h=c.hcJSON,delete c.hcJSON,K(this,c,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),c.hcJSON=h;this.containerElement=a;this.config={};this.smartLabel=new cb(d.id,document.getElementsByTagName("body")[0]||a,e(i.useellipseswhenoverflow,i.useellipsewhenoverflow,1));this.linkClickFN=ab(b,d);this.numberFormatter=
new fb(b.chart,this);if(!this.standaloneInit)return new l.createDialog(a,f.msgStore.ChartNotSupported);a=this.chart(a.offsetWidth||parseFloat(a.style.width),a.offsetHeight||parseFloat(a.style.height),d);c&&!this.stateless&&(c.hcJSON&&K(a,c.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),g&&this.cleanedData&&(this.cleanedData(this,g),this.cleanedData(c,g)));return a},chart:function(b,c){var z;var d=this.name,i=this.dataObj,m=i.chart,o,p,j,l,y,I,N=this.defaultSeriesType,
q,$,P,u,t,B,pa,S;o=ma(i,b,c,this);S=o.chart;pa=o.xAxis;q=o[Q];this.postHCJSONCreation&&this.postHCJSONCreation.call(this,o);o.labels.smartLabel=I=q.smartLabel=this.smartLabel;q.width=b;q.height=c;$=o.plotOptions;q.isDual=this.isDual;q.numberFormatter=this.numberFormatter;q.axisGridManager=new Ta(N,m);S.is3D=p=q.is3d=/3d$/.test(N);S.isBar=l=q.isBar=this.isBar;j=/^pie/.test(N);B=m.useroundedges==1;t=p?T.chart3D:T.chart2D;S.events.click=o.plotOptions.series.point.events.click=this.linkClickFN;S.defaultSeriesType=
N;var Y=m.palette>0&&m.palette<6?m.palette:e(this.paletteIndex,1);Y-=1;S.paletteIndex=Y;S.usePerPointLabelColor=m.colorlabelsfromplot==Ea;S.useRoundEdges=B&&!p&&!this.distributedColumns&&this.defaultSeriesType!=="pie";if(h(m.clickurl)!==void 0)S.link=m.clickurl,S.style.cursor="pointer",o.plotOptions.series.point.events.click=function(){S.events.click.call({link:m.clickurl})};P=h(m.basefont,"Verdana");var ka=R(m.basefontsize,10),ca=h(m.basefontcolor,k[t.baseFontColor][Y]),na=h(m.outcnvbasefont,P);
y=R(m.outcnvbasefontsize,ka);var A=y+Ka,D=h(m.outcnvbasefontcolor,ca).replace(/^#?([a-f0-9]+)/ig,"#$1"),Aa,ua,H=ka;ka+=Ka;ca=ca.replace(/^#?([a-f0-9]+)/ig,"#$1");q.trendStyle=q.outCanvasStyle={fontFamily:na,color:D,fontSize:A};Aa=n(q.trendStyle);q.inCanvasStyle={fontFamily:P,fontSize:ka,color:ca};ua=n(q.inCanvasStyle);q.divlineStyle={fontFamily:P,fontSize:ka,color:ca,lineHeight:ua};pa.labels.style={fontFamily:na,fontSize:A,lineHeight:Aa,color:D};pa.steppedLabels.style={fontFamily:na,fontSize:A,lineHeight:Aa,
color:D,visibility:"hidden"};o.yAxis[0].labels.style={fontFamily:na,fontSize:A,lineHeight:Aa,color:D};o.yAxis[1].labels.style={fontFamily:na,fontSize:A,lineHeight:Aa,color:D};o.legend.itemStyle={fontFamily:na,fontSize:A,lineHeight:Aa,color:D};o.legend.itemHiddenStyle={fontFamily:na,fontSize:A,lineHeight:Aa};o.plotOptions.series.dataLabels.style={fontFamily:P,fontSize:ka,lineHeight:ua,color:ca};o.plotOptions.series.dataLabels.color=o.plotOptions.series.dataLabels.style.color;o.tooltip.style={fontFamily:P,
fontSize:ka,lineHeight:ua,color:ca};o.title.style={fontFamily:na,color:D,fontSize:y+3+Ka,fontWeight:e(m.captionfontbold)===0?"normal":"bold"};n(o.title.style);o.subtitle.style={fontFamily:na,color:D,fontSize:y+e(this.subTitleFontSizeExtender,1)+Ka,fontWeight:M(this.subTitleFontWeight,"bold")};n(o.subtitle.style);pa.title.style={fontFamily:na,color:D,fontSize:A,fontWeight:e(m.subcaptionfontbold)===0?"normal":"bold"};ka=n(pa.title.style);o.yAxis[0].title.style={fontFamily:na,color:D,fontSize:A,lineHeight:ka,
fontWeight:"bold"};o.yAxis[1].title.style={fontFamily:na,color:D,fontSize:A,lineHeight:ka,fontWeight:"bold"};S.overlapColumns=e(m[l&&"overlapbars"||"overlapcolumns"],p?0:1);o.orphanStyles={defaultStyle:{style:K({},q.inCanvasStyle)},connectorlabels:{style:K({},o.plotOptions.series.dataLabels)},vyaxisname:{style:K({},o.yAxis[0].title.style)}};o.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:M(m.tlfont,P),color:v(M(m.tlfontcolor,ca)),fontSize:R(m.tlfontsize,H)+"px"};n(o.plotOptions.series.dataLabels.tlLabelStyle);
o.plotOptions.series.dataLabels.trLabelStyle={fontFamily:M(m.trfont,P),color:v(M(m.trfontcolor,ca)),fontSize:R(m.trfontsize,H)+"px"};n(o.plotOptions.series.dataLabels.trLabelStyle);o.plotOptions.series.dataLabels.blLabelStyle={fontFamily:M(m.blfont,P),color:v(M(m.blfontcolor,ca)),fontSize:R(m.blfontsize,H)+"px"};n(o.plotOptions.series.dataLabels.blLabelStyle);o.plotOptions.series.dataLabels.brLabelStyle={fontFamily:M(m.brfont,P),color:v(M(m.brfontcolor,ca)),fontSize:R(m.brfontsize,H)+"px"};n(o.plotOptions.series.dataLabels.brLabelStyle);
this.parseStyles(o);delete o.xAxis.labels.style.backgroundColor;delete o.xAxis.labels.style.borderColor;delete o.yAxis[0].labels.style.backgroundColor;delete o.yAxis[0].labels.style.borderColor;delete o.yAxis[1].labels.style.backgroundColor;delete o.yAxis[1].labels.style.borderColor;q.showTooltip=e(m.showtooltip,this.showtooltip,1);q.tooltipSepChar=h(m.tooltipsepchar,this.tooltipsepchar,$a);q.showValues=e(m.showvalues,this.showValues,1);q.seriesNameInToolTip=e(m.seriesnameintooltip,1);q.showVLines=
e(m.showvlines,1);q.showVLinesOnTop=e(m.showvlinesontop,0);q.showVLineLabels=e(m.showvlinelabels,this.showVLineLabels,1);q.showVLineLabelBorder=e(m.showvlinelabelborder,1);q.rotateVLineLabels=e(m.rotatevlinelabels,0);q.vLineColor=h(m.vlinecolor,"333333");q.vLineThickness=h(m.vlinethickness,1);q.vLineAlpha=e(m.vlinealpha,80);q.vLineLabelBgColor=h(m.vlinelabelbgcolor,"ffffff");q.vLineLabelBgAlpha=e(m.vlinelabelbgalpha,p?50:100);q.trendlineColor=h(m.trendlinecolor,"333333");q.trendlineThickness=h(m.trendlinethickness,
1);q.trendlineAlpha=e(m.trendlinealpha);q.showTrendlinesOnTop=h(m.showtrendlinesontop,0);q.trendlineValuesOnOpp=h(m.trendlinevaluesonopp,m.trendlinevaluesonright,0);q.trendlinesAreDashed=e(m.trendlinesaredashed,0);q.trendlinesDashLen=e(m.trendlinedashlen,5);q.trendlinesDashGap=e(m.trendlinedashgap,2);q.showTrendlines=e(m.showtrendlines,1);q.showTrendlineLabels=e(m.showtrendlinelabels,this.showTrendlineLabels,1);q.flatScrollBars=e(m.flatscrollbars,0);q.scrollBar3DLighting=e(m.scrollbar3dlighting,1);
o.plotOptions.series.connectNullData=e(m.connectnulldata,0);S.backgroundColor={FCcolor:{color:h(m.bgcolor,k[t.bgColor][Y]),alpha:h(m.bgalpha,k[t.bgAlpha][Y]),angle:h(m.bgangle,k[t.bgAngle][Y]),ratio:h(m.bgratio,k[t.bgRatio][Y])}};S.borderRadius=e(m.borderradius,0);S.rotateValues=e(m.rotatevalues,0);S.placeValuesInside=e(m.placevaluesinside,0);S.valuePosition=h(m.valueposition,"auto");S.valuePadding=e(m.valuepadding,2);S.borderColor=g(h(m.bordercolor,p?"#666666":k.borderColor[Y]),h(m.borderalpha,p?
"100":k.borderAlpha[Y]));P=e(m.showborder,p?0:1);S.borderWidth=P?e(m.borderthickness,1):0;S.plotBorderColor=g(h(m.canvasbordercolor,k.canvasBorderColor[Y]),h(m.canvasborderalpha,k.canvasBorderAlpha[Y]));if(m.showcanvasborder!=="0"&&(u=Boolean(h(m.canvasborderthickness,B?0:1)),m.showaxislines==="1"||m.showxaxisline==="1"||m.showyaxisline==="1"))m.showcanvasborder!=="1"&&(u=0);S.plotBorderWidth=p||!u?0:e(m.canvasborderthickness,this.canvasborderthickness,S.useRoundEdges?1:2);S.bgSWF=h(m.bgimage,m.bgswf);
S.bgSWFAlpha=e(m.bgimagealpha,m.bgswfalpha,100);B=h(m.bgimagedisplaymode,"none").toLowerCase();P=M(m.bgimagevalign,r).toLowerCase();ca=M(m.bgimagehalign,r).toLowerCase();B=="tile"||B=="fill"||B=="fit"?(P!=x&&P!="middle"&&P!=J&&(P="middle"),ca!=la&&ca!="middle"&&ca!=ja&&(ca="middle")):(P!=x&&P!="middle"&&P!=J&&(P=x),ca!=la&&ca!="middle"&&ca!=ja&&(ca=la));S.bgImageDisplayMode=B;S.bgImageVAlign=P;S.bgImageHAlign=ca;S.bgImageScale=e(m.bgimagescale,100);S.logoURL=M(m.logourl);S.logoPosition=h(m.logoposition,
"tl").toLowerCase();S.logoAlpha=e(m.logoalpha,100);S.logoLink=M(m.logolink);S.logoScale=e(m.logoscale,100);S.logoLeftMargin=e(m.logoleftmargin,0);S.logoTopMargin=e(m.logotopmargin,0);B=S.toolbar={button:{}};P=B.button;P.scale=e(m.toolbarbuttonscale,1.15);P.width=e(m.toolbarbuttonwidth,15);P.height=e(m.toolbarbuttonheight,15);P.radius=e(m.toolbarbuttonradius,2);P.spacing=e(m.toolbarbuttonspacing,5);P.fill=g(h(m.toolbarbuttoncolor,"ffffff"));P.labelFill=g(h(m.toolbarlabelcolor,"cccccc"));P.symbolFill=
g(h(m.toolbarsymbolcolor,"ffffff"));P.hoverFill=g(h(m.toolbarbuttonhovercolor,"ffffff"));P.stroke=g(h(m.toolbarbuttonbordercolor,"bbbbbb"));P.symbolStroke=g(h(m.toolbarsymbolbordercolor,"9a9a9a"));P.strokeWidth=e(m.toolbarbuttonborderthickness,1);P.symbolStrokeWidth=e(m.toolbarsymbolborderthickness,1);ca=P.symbolPadding=e(m.toolbarsymbolpadding,5);P.symbolHPadding=e(m.toolbarsymbolhpadding,ca);P.symbolVPadding=e(m.toolbarsymbolvpadding,ca);ca=B.position=h(m.toolbarposition,"tr").toLowerCase();switch(ca){case "tr":case "tl":case "br":case "bl":break;
default:ca="tr"}P=B.hAlign=(r+m.toolbarhalign).toLowerCase()==="left"?"l":ca.charAt(1);z=B.vAlign=(r+m.toolbarvalign).toLowerCase()==="bottom"?"b":ca.charAt(0),ca=z;B.hDirection=e(m.toolbarhdirection,P==="r"?-1:1);B.vDirection=e(m.toolbarvdirection,ca==="b"?-1:1);B.vMargin=e(m.toolbarvmargin,6);B.hMargin=e(m.toolbarhmargin,10);B.x=e(m.toolbarx,P==="l"?0:b);B.y=e(m.toolbary,ca==="t"?0:c);D=h(m.divlinecolor,k[t.divLineColor][Y]);A=h(m.divlinealpha,p?k.divLineAlpha3D[Y]:k.divLineAlpha[Y]);B=e(m.divlinethickness,
1);P=Boolean(e(m.divlineisdashed,this.divLineIsDashed,0));ca=e(m.divlinedashlen,4);na=e(m.divlinedashgap,2);o.yAxis[0].gridLineColor=g(D,A);o.yAxis[0].gridLineWidth=B;o.yAxis[0].gridLineDashStyle=P?G(ca,na,B):void 0;o.yAxis[0].alternateGridColor=l?g(h(m.alternatevgridcolor,k.altVGridColor[Y]),e(m.showalternatevgridcolor,1)===1?h(m.alternatevgridalpha,k.altVGridAlpha[Y]):ya):g(h(m.alternatehgridcolor,k.altHGridColor[Y]),m.showalternatehgridcolor==0?0:h(m.alternatehgridalpha,k.altHGridAlpha[Y]));H=
e(m.vdivlinethickness,1);ka=Boolean(e(m.vdivlineisdashed,0));y=e(m.vdivlinedashlen,4);Aa=e(m.vdivlinedashgap,2);pa.gridLineColor=g(h(m.vdivlinecolor,k[t.divLineColor][Y]),h(m.vdivlinealpha,k.divLineAlpha[Y]));pa.gridLineWidth=H;pa.gridLineDashStyle=ka?G(y,Aa,H):void 0;pa.alternateGridColor=g(h(m.alternatevgridcolor,k.altVGridColor[Y]),m.showalternatehgridcolor==="1"?h(m.alternatevgridalpha,k.altVGridAlpha[Y]):0);H=h(m.canvasbgcolor,k[t.canvasBgColor][Y]);ka=h(m.canvasbgalpha,k.canvasBgAlpha[Y]);h(m.showcanvasbg,
Ea)==ya&&(ka="0");o.plotOptions.series.shadow=e(m.showshadow,m.showcolumnshadow,this.defaultPlotShadow,k.showShadow[Y]);if(this.inversed)o.yAxis[0].reversed=!0,o.yAxis[1].reversed=!0;if(this.isStacked)this.distributedColumns?(q.showStackTotal=Boolean(e(m.showsum,1)),y=e(m.usepercentdistribution,1),Aa=e(m.showpercentvalues,0),ua=e(m.showpercentintooltip,y,0),q.showXAxisPercentValues=e(m.showxaxispercentvalues,1)):(q.showStackTotal=Boolean(e(this.showSum,m.showsum,0)),y=e(this.stack100percent,m.stack100percent,
0),Aa=e(m.showpercentvalues,y,0),ua=e(m.showpercentintooltip,Aa)),q.showPercentValues=Aa,q.showPercentInToolTip=ua,y?(q.isValueAbs=!0,$[N].stacking="percent",q[0].stacking100Percent=!0):$[N].stacking="normal";if(this.isDual){if(m.primaryaxisonleft==="0")o.yAxis[0].opposite=!0,o.yAxis[1].opposite=!1;o.yAxis[0].showAlways=!0;o.yAxis[1].showAlways=!0}if(S.useRoundEdges){o.plotOptions.series.shadow=e(m.showshadow,m.showcolumnshadow,1);o.plotOptions.series.borderRadius=1;o.tooltip.style.borderRadius="2px";
S.plotBorderRadius=3;if(!u)S.plotBorderWidth=0;S.plotShadow=o.plotOptions.series.shadow?{enabled:!0,opacity:ka/100}:0}if(e(m.use3dlighting,1)===1)o.legend.lighting3d=!0;o.plotOptions.series.userMaxColWidth=l?m.maxbarheight:e(m.maxcolwidth,this.maxColWidth);o.plotOptions.series.maxColWidth=Math.abs(e(o.plotOptions.series.userMaxColWidth,50))||1;o.title.text=w(m.caption);o.subtitle.text=w(m.subcaption);if(e(m.showtooltip,this.showtooltip)==0)o.tooltip.enabled=!1;N=o.tooltip.style;N.backgroundColor=
g(h(N.backgroundColor,m.tooltipbgcolor,k.toolTipBgColor[Y]),h(m.tooltipbgalpha,100));N.borderColor=g(h(N.borderColor,m.tooltipbordercolor,k.toolTipBorderColor[Y]),h(m.tooltipborderalpha,100));o.tooltip.shadow=e(m.showtooltipshadow,m.showshadow,1)?{enabled:!0,opacity:s(e(m.tooltipbgalpha,100),e(m.tooltipborderalpha,100))/100}:!1;o.tooltip.constrain=e(m.constraintooltip,1);N.borderWidth=e(m.tooltipborderthickness,1)+"px";if(m.tooltipborderradius)N.borderRadius=e(m.tooltipborderradius,1)+"px";N.padding=
e(m.tooltippadding,this.tooltippadding,3)+"px";if(m.tooltipcolor)N.color=v(m.tooltipcolor);q.userPlotSpacePercent=o.plotOptions.series.userPlotSpacePercent=m.plotspacepercent;N=e(m.plotspacepercent,20)%100;q.plotSpacePercent=o.plotOptions.series.groupPadding=N/200;p&&!j?(S.series2D3Dshift=d==="mscombi3d"?!0:Boolean(e(m.use3dlineshift,0)),S.canvasBaseColor3D=h(m.canvasbasecolor,k.canvasBaseColor3D[Y]),S.canvasBaseDepth=e(m.canvasbasedepth,10),S.canvasBgDepth=e(m.canvasbgdepth,3),S.showCanvasBg=Boolean(e(m.showcanvasbg,
1)),S.showCanvasBase=Boolean(e(m.showcanvasbase,1)),l?(S.xDepth=5,S.yDepth=5,S.showCanvasBg&&(q.marginTopExtraSpace+=S.canvasBgDepth),q.marginLeftExtraSpace+=S.yDepth+(S.showCanvasBase?S.canvasBaseDepth:0),q.marginBottomExtraSpace+=5):(S.xDepth=10,S.yDepth=10,S.showCanvasBg&&(q.marginRightExtraSpace+=S.canvasBgDepth),q.marginBottomExtraSpace+=S.yDepth+(S.showCanvasBase?S.canvasBaseDepth:0)),H=H.split(da)[0],ka=ka.split(da)[0],S.use3DLighting=Boolean(e(m.use3dlighting,1)),S.plotBackgroundColor=S.use3DLighting?
{FCcolor:{color:f(H,85)+da+a(H,55),alpha:ka+da+ka,ratio:Pa,angle:bb(b-(S.marginLeft+S.marginRight),c-(S.marginTop+S.marginBottom),1)}}:g(H,ka),S.canvasBgColor=g(f(H,80),ka),j=h(m.zeroplanecolor,m.divlinecolor,k[t.divLineColor][Y]),l=h(m.zeroplanealpha,m.divlinealpha,k.divLineAlpha[Y]),S.zeroPlaneColor=g(j,l),S.zeroPlaneBorderColor=g(h(m.zeroplanebordercolor,j),e(m.zeroplaneshowborder,1)?l:0)):(S.is3D=!1,S.plotBackgroundColor={FCcolor:{color:H,alpha:ka,angle:h(m.canvasbgangle,k.canvasBgAngle[Y]),ratio:h(m.canvasbgratio,
k.canvasBgRatio[Y])}});this.parseExportOptions(o);this.preSeriesAddition&&this.preSeriesAddition(o,i,b,c);this.series&&this.series(i,o,d,b,c);this.postSeriesAddition(o,i,b,c);this.spaceManager(o,i,b,c);this.postSpaceManager&&this.postSpaceManager(o,i,b,c);d=e(m.drawquadrant,0);if(q.isXYPlot&&d&&(y=pa.min,Aa=pa.max,$=o.yAxis[0].min,u=o.yAxis[0].max,ua=e(m.quadrantxval,(y+Aa)/2),H=e(m.quadrantyval,($+u)/2),H>=$&&H<=u&&ua>=y&&ua<=Aa)){var N=g(h(m.quadrantlinecolor,S.plotBorderColor),h(m.quadrantlinealpha,
za)),ka=e(m.quadrantlinethickness,S.plotBorderWidth),aa=e(m.quadrantlineisdashed,0),Va=e(m.quadrantlinedashLen,4),ga=e(m.quadrantlinedashgap,2);l=M(m.quadrantlabeltl,r);d=M(m.quadrantlabeltr,r);i=M(m.quadrantlabelbl,r);j=M(m.quadrantlabelbr,r);t=e(m.quadrantlabelpadding,3);aa=aa?G(Va,ga,ka):void 0;pa.plotLines.push({color:N,value:ua,width:ka,dashStyle:aa,zIndex:3});o.yAxis[0].plotLines.push({color:N,value:H,width:ka,dashStyle:aa,zIndex:3});ka=b-S.marginRight-S.marginLeft;aa=c-S.marginTop-S.marginBottom;
N=q.inCanvasStyle;parseInt(N.fontSize,10);y=ka/(Aa-y)*(ua-y);Aa=ka-y;u=aa/(u-$)*(H-$);$=aa-u;y-=t;Aa-=t;$-=t;u-=t;H=t+Ka;ua=aa-t+Ka;aa=t+Ka;t=ka-t+Ka;I.setStyle(N);$>0&&(l!==r&&y>0&&(l=I.getSmartText(l,y,$),o.labels.items.push({html:l.text,zIndex:3,vAlign:x,style:{left:aa,top:H,fontSize:N.fontSize,lineHeight:N.lineHeight,fontFamily:N.fontFamily,color:N.color}})),d!==r&&Aa>0&&(l=I.getSmartText(d,Aa,$),o.labels.items.push({html:l.text,textAlign:ja,vAlign:x,zIndex:3,style:{left:t,top:H,fontSize:N.fontSize,
lineHeight:N.lineHeight,fontFamily:N.fontFamily,color:N.color}})));u>0&&(i!==r&&y>0&&(l=I.getSmartText(i,y,u),o.labels.items.push({html:l.text,vAlign:J,zIndex:3,style:{left:aa,top:ua,fontSize:N.fontSize,lineHeight:N.lineHeight,fontFamily:N.fontFamily,color:N.color}})),j!==r&&Aa>0&&(l=I.getSmartText(j,Aa,u),o.labels.items.push({html:l.text,textAlign:ja,vAlign:J,zIndex:3,style:{left:t,top:ua,fontSize:N.fontSize,lineHeight:N.lineHeight,fontFamily:N.fontFamily,color:N.color}})))}if(this.hasVDivLine&&
(d=e(m.numvdivlines,0)+1,d>1)){q=q.x.catCount-1;I=pa.max;d=q/d;i=!0;j=pa.min;var U;pa.scroll&&!isNaN(pa.scroll.viewPortMax)&&(I=pa.scroll.viewPortMax);D=h(m.vdivlinecolor,D);A=e(m.vdivlinealpha,A);H=e(m.vdivlinethickness,B);ka=e(m.vdivlineisdashed,P);y=e(m.vdivlinedashlen,ca);Aa=e(m.vdivlinedashgap,na);(B=e(m.showalternatevgridcolor,0))&&(U=g(h(m.alternatevgridcolor,k.altVGridColor[Y]),h(m.alternatevgridalpha,k.altVGridAlpha[Y])));for(Y=d;Y<q;Y+=d,i=!i)i&&B&&pa.plotBands.push({isNumVDIV:!0,color:U,
from:j,to:Y,zIndex:1}),pa.plotLines.push({isNumVDIV:!0,width:H,color:g(D,A),dashStyle:ka?G(y,Aa,H):void 0,value:Y,zIndex:1}),j=Y;i&&B&&pa.plotBands.push({isNumVDIV:!0,color:U,from:j,to:I,zIndex:1})}if(p&&S.xDepth>S.marginLeft)S.marginLeft=S.xDepth;window.console&&window.console.log&&window.FC_DEV_ENVIRONMENT&&console.log(o);return o},parseExportOptions:function(a){var b,c=this.dataObj.chart,d=this.chartInstance.jsVars.transparent?"":this.chartInstance.options.containerBackgroundColor||"#ffffff";a.exporting.enabled=
e(c.exportenabled,0);a.exporting.bgcolor=d;a.exporting.exporttargetwindow=h(c.exporttargetwindow,"_self");a.exporting.exportaction=c.exportaction&&c.exportaction.toString().toLowerCase()==="save"&&"save"||"download";b=H(a.exporting.exportaction);a.exporting.exportfilename=h(c.exportfilename,"FusionCharts");a.exporting.exporthandler=h(c.html5exporthandler,c.exporthandler,"http://export.api3.fusioncharts.com/");a.exporting.exportparameters=h(c.exportparameters,"");a.exporting.exportformat=h(c.exportformat,
"PNG");a.exporting.exportatclient=e(c.exportatclient,0);a.exporting.exportformats=function(a){var c={JPG:b+" as JPEG image",PNG:b+" as PNG image",PDF:b+" as PDF document",SVG:b+" as SVG vector image"},e,d,f,g=0;if(a){a=a.split("|");for(g=0;g<a.length;g++)f=(d=a[g].split("="))&&d[0].toUpperCase()||"",d=d&&d[1]||"",c[f]&&(e||(e={}))&&(e[f]=d||c[f])}return e||c}(c.exportformats);a.exporting.buttons.printButton.enabled=c.showprintmenuitem=="1";a.exporting.buttons.exportButton.enabled=c.exportenabled==
"1"?c.exportshowmenuitem!="0":!1},defaultSeriesType:r,paletteIndex:1,creditLabel:oa,placeTitle:Ha,placeLegendBlockBottom:q,placeLegendBlockRight:Ba,placeHorizontalAxis:ka,placeVerticalAxis:pa,placeHorizontalCanvasMarginAdjustment:ua,placeVerticalCanvasMarginAdjustment:na,placeHorizontalXYSpaceManager:function(a,b,c,d){var f=a[Q],g,m,i,o=b.chart,p,k,j,l,y,I,N=f.marginLeftExtraSpace,q=f.marginTopExtraSpace,n=f.marginBottomExtraSpace,P=f.marginRightExtraSpace;i=c-(N+P+a.chart.marginRight+a.chart.marginLeft);
var T=d-(n+a.chart.marginBottom+a.chart.marginTop),r=i*0.3,c=T*0.3;g=i-r;d=T-c;p=h(o.legendposition,J).toLowerCase();a.legend.enabled&&p===ja&&(g-=this.placeLegendBlockRight(a,b,g/2,T));l=e(o.xaxisnamepadding,5);y=e(o.labelpadding,2);I=o.rotatexaxisname!==ya;k=h(o.showplotborder,f.is3d?ya:Ea)===Ea;k=f.plotBorderThickness=k?f.is3d?1:e(o.plotborderthickness,1):0;j=s(e(o.canvasborderthickness,1),0);m=s(j,k/2);y<m&&(y=m);if(!f.isDual&&a.chart.marginRight<j&&o.chartrightmargin===void 0&&(m=j-a.chart.marginRight,
i>r+m))a.chart.marginRight=j,i-=m,r=i*0.3,g=i-r;m=f.x;m.verticalAxisNamePadding=l;m.verticalAxisValuesPadding=y;m.rotateVerticalAxisName=I;m.verticalAxisNameWidth=e(o.xaxisnamewidth);g-=pa(a.xAxis,m,a,b,T,g,!1,!1,i);g-=ua(a,b,g,a.xAxis);i=g+r;a.legend.enabled&&p!==ja&&(d-=this.placeLegendBlockBottom(a,b,i,d/2));d-=Ha(a,b,i,d/2);m=f[0];m.horizontalAxisNamePadding=e(o.yaxisnamepadding,5);m.horizontalLabelPadding=e(o.yaxisvaluespadding,2);m.labelDisplay="auto";m.staggerLines=e(o.staggerlines,2);m.slantLabels=
e(o.slantlabels,0);m.horizontalLabelPadding=m.horizontalLabelPadding<j?j:m.horizontalLabelPadding;this.xAxisMinMaxSetter(a,b,i);g=a.xAxis;y=g.plotLines;j=d/(g.max-g.min);y&&y.length&&(l=(y[0].value-g.min)*j,y=(g.max-y[y.length-1].value)*j,f.isBar&&(k>l&&(g.min-=(k-l)/(2*j)),k>y&&(g.max+=(k-y)/(2*j))));d-=this.placeHorizontalAxis(a.yAxis[0],m,a,b,i,d,r);d-=na(a,b,d,a.yAxis[0]);Aa(c+d,a,o,a.xAxis,f.x.lYLblIdx,!0);ca(a,a.xAxis.title,d);if(a.legend.enabled&&p===ja){b=a.legend;f=c+d;if(b.height>f)b.height=
f,b.scroll.enabled=!0,f=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=f,a.chart.marginRight+=f;b.y=20}a.chart.marginLeft+=N;a.chart.marginTop+=q;a.chart.marginBottom+=n;a.chart.marginRight+=P},placeVerticalXYSpaceManager:function(a,b,c,d){var f=a[Q],g,m,i=!0,o=0,p=b.chart,k=!1,j,l,y,I=f.marginLeftExtraSpace,N=f.marginTopExtraSpace,q=f.marginBottomExtraSpace,n=f.marginRightExtraSpace;g=c-(I+n+a.chart.marginRight+a.chart.marginLeft);var P=d-(q+a.chart.marginBottom+a.chart.marginTop),
T=g*0.3,d=P*0.3,r=g-T,c=P-d,o=f.drawFullAreaBorder=e(p.drawfullareaborder,1),$=h(p.legendposition,J).toLowerCase();j=e(p.yaxisnamepadding,5);l=e(p.yaxisvaluespadding,p.labelypadding,2);m=h(p.showplotborder,f.is3d?ya:Ea)===Ea;m=f.plotBorderThickness=m?f.is3d?1:e(p.plotborderthickness,1):0;y=s(e(p.canvasborderthickness,1),0);m=s(y,m/2);this.defaultSeriesType==="area"&&!o&&(m=y);l<y&&(l=y);if(!f.isDual&&a.chart.marginRight<y&&p.chartrightmargin===void 0&&(o=y-a.chart.marginRight,g>T+o))a.chart.marginRight=
y,g-=o,T=g*0.3,r=g-T;a.legend.enabled&&$===ja&&(r-=this.placeLegendBlockRight(a,b,r/2,P));o=p.rotateyaxisname!==ya;if(f.isDual)k=!0,g=f[1],g.verticalAxisNamePadding=j,g.verticalAxisValuesPadding=l,g.rotateVerticalAxisName=o,g.verticalAxisNameWidth=e(p.syaxisnamewidth),i=a.yAxis[1].opposite,r-=pa(a.yAxis[1],g,a,b,P,r/2,i,k);g=f[0];g.verticalAxisNamePadding=j;g.verticalAxisValuesPadding=l;g.rotateVerticalAxisName=o;g.verticalAxisNameWidth=e(k?p.pyaxisnamewidth:p.yaxisnamewidth);r-=pa(a.yAxis[0],g,a,
b,P,r,!i,k);r-=ua(a,b,r,a.yAxis[0],a.yAxis[1]);i=r+T;a.legend.enabled&&$!==ja&&(c-=this.placeLegendBlockBottom(a,b,i,c/2));c-=Ha(a,b,i,c/2);g=f.x;g.horizontalAxisNamePadding=e(p.xaxisnamepadding,5);g.horizontalLabelPadding=e(p.labelpadding,p.labelxpadding,2);g.labelDisplay=h(p.labeldisplay,"auto").toLowerCase();g.rotateLabels=e(p.rotatelabels,p.rotatexaxislabels,0);g.staggerLines=e(p.staggerlines,2);g.slantLabels=e(p.slantlabels,p.slantlabel,0);if(g.horizontalLabelPadding<m)g.horizontalLabelPadding=
m;this.xAxisMinMaxSetter(a,b,i);c-=this.placeHorizontalAxis(a.xAxis,g,a,b,i,c,T);c-=na(a,b,c,a.xAxis);k&&(Aa(d+c,a,p,a.yAxis[1],f[1].lYLblIdx),ca(a,a.yAxis[1].title,c));Aa(d+c,a,p,a.yAxis[0],f[0].lYLblIdx);ca(a,a.yAxis[0].title,c);if(a.legend.enabled&&$===ja&&(b=a.legend,f=d+c,b.height>f&&b.type!=="gradient"))b.height=f,b.scroll.enabled=!0,f=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=f,a.chart.marginRight+=f;a.chart.marginLeft+=I;a.chart.marginTop+=N;a.chart.marginBottom+=
q;a.chart.marginRight+=n},placeVerticalAxisTitle:ca,spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(a,b,d,f,g,h,m,i){d=b.stacking100Percent?Ma(99,1,100,0,g,h,m,i):Ma(e(b.max,d),e(b.min,f),d,f,g,h,m,i);a.min=Number(aa(d.Min,10));a.max=Number(aa(d.Max,10));a.tickInterval=Number(aa(d.divGap,10));b.numdivlines=Math.round((a.max-a.min)/a.tickInterval)-1;if(d.Range/d.divGap<=2)a.alternateGridColor=c;this.highValue=b.max;this.lowValue=b.min;
delete b.max;delete b.min},configurePlotLines:function(a,b,d,f,m,i,o,p,j,l,y){var I;I=d.min;var N=d.max,q=d.tickInterval,n=l?"xAxis":f.stacking100Percent?"percentValue":"yAxis",T=I,P=1,s=d.gridLineColor,$=d.gridLineWidth,u=d.gridLineDashStyle,t=I<0&&N>0?!0:!1,ma=I===0,B=N===0,v=e(f.showzeroplanevalue,a.showzeroplanevalue)===0,w=!0,pa=1,ca=e(a.numdivlines,0)>0,ka=b[Q].axisGridManager,x=b.chart.paletteIndex,y=e(y,j?1:0);delete d._altGrid;delete d._lastValue;if(l&&!f.catOccupied)f.catOccupied={};if(t&&
(!l||!f.catOccupied[0]))if(l?(w=e(a.showvzeroplane,1),b=e(a.showvzeroplanevalue,i),ca=e(a.vzeroplanethickness,1),a=ca>0?g(h(a.vzeroplanecolor,s),h(a.vzeroplanealpha,a.vdivlinealpha,k.divLineAlpha[x])):c):(x=e(a.divlinealpha,k.divLineAlpha[x]),b=e(f.showzeroplanevalue,a.showzeroplanevalue,i),this.defaultZeroPlaneHighlighted===!1?(w=e(f.showzeroplane,a.showzeroplane,!(this.defaultZeroPlaneHidden&&!ca)),ca=$):(ca=$===1?2:$,pa=5,x*=2),ca=e(f.zeroplanethickness,a.zeroplanethickness,ca),a=ca>0?g(h(f.zeroplanecolor,
a.zeroplanecolor,s),h(f.zeroplanealpha,a.zeroplanealpha,x)):c),w)w=b?p[n](0,y):r,(pa=ka.addAxisGridLine(d,0,w,ca,u,a,pa,l))&&(pa.isZeroPlane=!0);if(m===1&&(!l||!f.catOccupied[I]))w=ma&&v?r:p[n](I,y),(pa=ka.addAxisGridLine(d,I,w,0.1,void 0,c,1,l))&&(pa.isMinLabel=!0);$<=0&&($=0.1,s=c);for(I=Number(aa(T+q,10));I<N;I=Number(aa(I+q,10)),P+=1){t&&T<0&&I>0&&!j&&(ka.addAxisAltGrid(d,0),P+=1);if(I!==0&&(!l||!f.catOccupied[I]))w=i===1&&P%o===0?p[n](I,y):r,ka.addAxisGridLine(d,I,w,$,u,s,2,l);T=I;j||ka.addAxisAltGrid(d,
I)}j||ka.addAxisAltGrid(d,N);if(m===1&&P%o===0&&(!l||!f.catOccupied[N]))w=B&&v?r:p[n](N,y),(pa=ka.addAxisGridLine(d,N,w,0.1,u,c,2,l))&&(pa.isMaxLabel=!0);if(this.realtimeEnabled)d.labels._enabled=d.labels.enabled,d._gridLineWidth=d.gridLineWidth,d._alternateGridColor=d.alternateGridColor;d.labels.enabled=!1;d.gridLineWidth=0;d.alternateGridColor=c;d.plotLines.sort(S)},xAxisMinMaxSetter:function(a,b,f){var g=a[Q],h=g.x,m=b.chart,i=h.min=e(h.min,0),o=h.max=e(h.max,h.catCount-1),p,k=0,j=0,l=a.chart.defaultSeriesType,
y=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(l),I=/^(line|area|spline|areaspline)$/.test(l),l=/^(scatter|bubble|candlestick|dragnode)$/.test(l),N=a.xAxis,q=N.scroll,n=p=Math.min(e(m.canvaspadding,0),f/2-10);if(h.adjustMinMax){var o=i=!e(m.setadaptivexmin,1),P=e(this.numVDivLines,m.numvdivlines,4),T=m.adjustvdiv!==ya,r=e(m.showxaxisvalues,m.showxaxisvalue,1),s=e(m.showvlimits,r),r=e(m.showvdivlinevalue,m.showvdivlinevalues,r);this.axisMinMaxSetter(N,
h,m.xaxismaxvalue,m.xaxisminvalue,i,o,P,T);i=N.min;o=N.max;h.requiredAutoNumericLabels&&(P=e(parseInt(m.xaxisvaluesstep,10),1),this.configurePlotLines(m,a,N,h,s,r,P<1?1:P,g.numberFormatter,!1,!0));N.plotLines.sort(S)}N.labels.enabled=!1;N.gridLineWidth=0;N.alternateGridColor=c;if((y||g.isScroll)&&!g.hasNoColumn)j=k=0.5;g.is3d&&(n+=e(a.chart.xDepth,0));a=(f-(n+p))/(o-i+(k+j));N.min=i-(k+n/a);N.max=o+(j+p/a);if(q&&q.enabled)k=q.vxLength,j=N.max-N.min,q.viewPortMin=N.min,q.viewPortMax=N.max,q.scrollRatio=
k/j,q.flatScrollBars=g.flatScrollBars,q.scrollBar3DLighting=g.scrollBar3DLighting,N.max=N.min+k;I&&N.min===N.max&&(N.min-=0.5,N.max+=0.5);l&&b.vtrendlines&&d(b.vtrendlines,N,g,!1,!0,!0)},postSeriesAddition:function(a){var b=a[Q],c=b.isBar,d=b.is3d,f=a.chart.rotateValues&&!c?270:0,g=b[0],m=g&&g.stacking100Percent,i=b.showPercentValues||b.showPercentInToolTip;if(this.isStacked&&(b.showStackTotal||m||i)){var o=b.plotSpacePercent,p=a.chart.defaultSeriesType,k,j,l=1-o,l=1-2*o,y,I,N,q,n,P,r,T,s,$,u,o=a.series,
S,ma,B=K({},a.plotOptions.series.dataLabels.style),v=parseFloat(B.fontSize),w=!g.stacking100Percent;B.color=a.plotOptions.series.dataLabels.color;j=g.stack;for(k in j){g=j[k].length;y=l/g;N=-(l-y)/2;if(m||i){$=[];T=0;for(q=o.length;T<q;T+=1)n=o[T],!n.yAxis&&h(n.type,p)===k&&$.push(n)}for(I=0;I<g;I+=1,N+=y){r=j[k][I];if(m||i){u=[];T=0;for(q=$.length;T<q;T+=1)n=$[T],e(n.columnPosition,0)===I&&u.push(n.data)}if(r&&r.length){P=0;for(n=r.length;P<n;P+=1)if(T=r[P])if(s=(T.n||0)+(T.p||0),b.showStackTotal&&
(q=P,q+=N,T=s<0?T.n:T.p,a.xAxis.plotLines.push({value:q,width:0,isVline:w,isTrend:!w,zIndex:4,_isStackSum:1,_catPosition:P,_stackIndex:I,label:{align:t,textAlign:!d&&f===270?s<0?ja:la:c?s<0?ja:la:t,offsetScale:w?T:void 0,offsetScaleIndex:0,rotation:f,style:B,verticalAlign:x,y:c?0:s<0?f===270?4:v:-4,x:0,text:b.numberFormatter.yAxis(s)}})),m||i){T=0;for(q=u.length;T<q;T+=1)if(S=u[T][P],S.y||S.y===0){ma=S.y/s*100;if(m&&(S.y=ma,S.previousY||S.previousY===0))S.previousY=S.previousY/s*100;if(S.showPercentValues)S.displayValue=
this.numberFormatter.percentValue(ma);if(S.showPercentInToolTip)S.toolText=S.toolText+parseInt(ma*100,10)/100+"%"}}}}}}},styleMapForFont:N,styleApplicationDefinition_font:function(a,b,c){var d,e,f=!1,g,h,m=this.styleMapForFont;switch(b){case "caption":d=a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;f=!0;break;case "tldatavalues":d={style:a.plotOptions.series.dataLabels.tlLabelStyle};break;case "trdatavalues":d={style:a.plotOptions.series.dataLabels.trLabelStyle};
break;case "bldatavalues":d={style:a.plotOptions.series.dataLabels.blLabelStyle};break;case "brdatavalues":d={style:a.plotOptions.series.dataLabels.brLabelStyle};break;case "subcaption":d=a.subtitle;break;case "tooltip":d=a.tooltip;break;case "trendvalues":d={style:a[Q].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(g=a.yAxis.length;b<g;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(g=a.yAxis.length;b<
g;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[Q].divlineStyle};break;case "legend":d={style:a.legend.itemStyle};break;default:(d=a.orphanStyles[b])||(a.orphanStyles[b]=d={text:"",style:{}})}if(typeof d==="object")if(d instanceof Array){b=0;for(g=d.length;b<g;b+=1){h=d[b];for(e in c)if(a=e.toLowerCase(),typeof m[a]==="function")m[a](c[e],h,f);n(h.style)}}else{for(e in c)if(a=e.toLowerCase(),typeof m[a]==="function")m[a](c[e],d,f);n(d.style)}},parseStyles:function(a){var b,c,
d,e={},f,g=this.dataObj;if(g.styles&&g.styles.definition instanceof Array&&g.styles.application instanceof Array){for(b=0;b<g.styles.definition.length;b+=1)c=g.styles.definition[b],c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(e[c.name.toLowerCase()]=c);for(b=0;b<g.styles.application.length;b+=1){c=g.styles.application[b].styles&&g.styles.application[b].styles.split(da)||[];for(f=0;f<c.length;f+=1)if(d=c[f].toLowerCase(),e[d]&&g.styles.application[b].toobject)this["styleApplicationDefinition_"+
e[d].type.toLowerCase()](a,g.styles.application[b].toobject.toLowerCase(),e[d])}}},dispose:function(){var a;this.disposing=!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();this.smartLabel&&this.smartLabel.dispose();for(a in this)delete this[a];delete this.disposing;this.disposed=!0}});ba("stub",{standaloneInit:!0},ba.base);ba("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},ba.base);ba("singleseries",
{series:function(a,b,c){var e=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data;if(e&&e.length>0&&e instanceof Array)b.legend.enabled=!1,c=this.point(c,{data:[],colorByPoint:!0},e,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&d(a.trendlines,b.yAxis,b[Q],!1,this.isBar)},defaultSeriesType:r,configureAxis:function(a,b){var c=a[Q],d=a.xAxis,f=b.chart,m=a.chart.is3D,i,o,p,k,l,y,I,N,q,n,T,P,r=0,$,u,S=this.numberFormatter,t=e(f.syncaxislimits,
0),ma;d.title.text=w(f.xaxisname);ma=e(parseInt(f.yaxisvaluesstep,10),parseInt(f.yaxisvaluestep,10),1);ma=ma<1?1:ma;i=a.yAxis[0];o=c[0];if(c.isDual)if(p=S.getCleanValue(f.pyaxismaxvalue),k=S.getCleanValue(f.pyaxisminvalue),i.title.text=w(f.pyaxisname),t&&!o.stacking100Percent){P=c[1];T=e(P.max);P=e(P.min);if(T!==void 0&&P!==void 0)o.min=j(o.min,P),o.max=s(o.max,T);T=S.getCleanValue(f.syaxismaxvalue);P=S.getCleanValue(f.syaxisminvalue);P!==null&&(k=k!==null?j(k,P):P);T!==null&&(p=p!==null?s(p,T):T)}else t=
0;else p=S.getCleanValue(f.yaxismaxvalue),k=S.getCleanValue(f.yaxisminvalue),i.title.text=w(f.yaxisname);I=e(this.isStacked?0:this.setAdaptiveYMin,f.setadaptiveymin,0);y=l=!I;N=e(c.numdivlines,f.numdivlines,this.numdivlines,4);q=f.adjustdiv!==ya;n=e(this.showYAxisValues,f.showyaxisvalues,f.showyaxisvalue,1);T=e(f.showlimits,n);P=e(f.showdivlinevalue,f.showdivlinevalues,n);if(!m)r=e(f.showaxislines,f.drawAxisLines,0),i.showLine=e(f.showyaxisline,r),d.showLine=e(f.showxaxisline,r),$=g(h(f.axislinecolor,
"#000000")),d.lineColor=g(h(f.xaxislinecolor,$)),i.lineColor=g(h(f.yaxislinecolor,$)),u=e(f.axislinethickness,1),d.lineThickness=e(f.xaxislinethickness,u),i.lineThickness=e(f.yaxislinethickness,u);this.axisMinMaxSetter(i,o,p,k,l,y,N,q);this.configurePlotLines(f,a,i,o,T,P,ma,c.numberFormatter,!1);if(i.reversed&&i.min>=0)a.plotOptions.series.threshold=i.max;if(c.isDual){i=a.yAxis[1];o=c[1];T=e(f.showsecondarylimits,T);P=e(f.showdivlinesecondaryvalue,n);t?(d=a.yAxis[0],i.min=d.min,i.max=d.max,i.tickInterval=
d.tickInterval,delete o.max,delete o.min):(p=S.getCleanValue(f.syaxismaxvalue),k=S.getCleanValue(f.syaxisminvalue),I=e(f.setadaptivesymin,I),y=l=!I,this.axisMinMaxSetter(i,o,p,k,l,y,N,q));if(!m)i.showLine=e(f.showsyaxisline,r),i.lineColor=g(h(f.syaxislinethickness,$)),i.lineThickness=e(f.syaxislinethickness,u);this.configurePlotLines(f,a,i,o,T,P,ma,c.numberFormatter,!0);i.title.text=w(f.syaxisname)}},pointValueWatcher:function(a,b,c,d,f,g,m){if(b!==null){var a=a[Q],i,c=e(c,0);a[c]||(a[c]={});c=a[c];
if(d)this.distributedColumns&&(a.marimekkoTotal+=b),d=c.stack,f=e(f,0),g=e(g,0),m=h(m,Da),d[m]||(d[m]=[]),m=d[m],m[g]||(m[g]=[]),g=m[g],g[f]||(g[f]={}),f=g[f],b>=0?f.p?(i=f.p,b=f.p+=b):f.p=b:f.n?(i=f.n,b=f.n+=b):f.n=b;c.max=c.max>b?c.max:b;c.min=c.min<b?c.min:b;return i}},getPointStub:function(a,b,c,d){var d=d[Q],b=b===null?b:d.numberFormatter.dataLabels(b),f=M(w(a.tooltext)),g=M(w(a.displayvalue)),c=d.showTooltip?f!==void 0?f:b===null?!1:c!==r?c+d.tooltipSepChar+b:b:r,d=e(a.showvalue,d.showValues)?
g!==void 0?g:b:r,a=h(a.link);return{displayValue:d,toolText:c,link:a}}},ba.base);ba("multiseries",{series:function(a,b,c){var f,g,h=b[Q],m;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&a.dataset.length>0){this.categoryAdder(a,b);f=0;for(g=a.dataset.length;f<g;f+=1){m={visible:!!e(a.dataset[f].visible,1),data:[]};if(!this.isStacked)m.numColumns=g;m=this.point(c,m,a.dataset[f],a.chart,b,h.oriCatTmp.length,f);m instanceof Array?b.series=b.series.concat(m):b.series.push(m)}this.configureAxis(b,
a);a.trendlines&&!this.isLog&&d(a.trendlines,b.yAxis,h,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(a,b){var c,d=0,f=b[Q],g=f.axisGridManager,m=a.chart,h=b.xAxis,i,f=f.x,o;if(a.categories&&a.categories[0]&&a.categories[0].category){if(a.categories[0].font)b.xAxis.labels.style.fontFamily=a.categories[0].font;if((c=e(a.categories[0].fontsize))!==void 0)c<1&&(c=1),b.xAxis.labels.style.fontSize=c+Ka,n(b.xAxis.labels.style);if(a.categories[0].fontcolor)b.xAxis.labels.style.color=a.categories[0].fontcolor.split(da)[0].replace(/^\#?/,
"#");var p=b[Q].oriCatTmp,k=a.categories[0].category;for(c=0;c<k.length;c+=1)k[c].vline?g.addVline(h,k[c],d,b):(o=e(k[c].showlabel,m.showlabels,1),i=w(V(a.categories[0].category[c].label,a.categories[0].category[c].name)),g.addXaxisCat(h,d,d,o?i:r),p[d]=V(w(a.categories[0].category[c].tooltext),i),d+=1)}f.catCount=d},getPointStub:function(a,b,c,d,f,g,m){var i,d=d[Q],o,p,b=b===null?b:this.numberFormatter.dataLabels(b,m),k,j=M(w(a.tooltext)),m=d.tooltipSepChar;d.showTooltip?j!==void 0?f=j:b===null?
f=!1:(d.seriesNameInToolTip&&(k=V(f&&f.seriesname)),f=k?k+m:r,f+=c?c+m:r,d.showPercentInToolTip?p=!0:f+=b):f=!1;e(a.showvalue,g)?M(a.displayvalue)!==void 0?i=w(a.displayvalue):d.showPercentValues?o=!0:i=b:i=r;a=h(a.link);return{displayValue:i,toolText:f,link:a,showPercentValues:o,showPercentInToolTip:p}}},ba.singleseries);var Va=function(a,b){return a-b};ba("xybase",{hideRLine:function(){var a=this.chart.series[this.index+1];a&&a.hide&&a.hide()},showRLine:function(){var a=this.chart.series[this.index+
1];a&&a.show&&a.show()},getRegressionLineSeries:function(a,b,c){var d,e,f,g;g=a.sumXY;var m=a.sumX,h=a.sumY;e=a.xValues;f=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(e.sort(Va),d=e[0],e=e[e.length-1],g=(c*g-m*h)/(c*f-Math.pow(m,2)),f=!isNaN(g)?g*(d-m/c)+h/c:h/c,c=!isNaN(g)?g*(e-m/c)+h/c:h/c,c=[{x:d,y:f},{x:e,y:c}]):(d.sort(Va),f=d[0],d=d[d.length-1],g=(c*g-m*h)/(c*a-Math.pow(h,2)),e=!isNaN(g)?g*(f-h/c)+m/c:m/c,c=!isNaN(g)?g*(d-h/c)+m/c:m/c,c=[{x:e,y:f},{x:c,y:d}]);return c},pointValueWatcher:function(a,
b,c,d){var e=a[Q];if(b!==null)a=e[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b;if(c!==null)a=e.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c;d&&(c=c||0,b=b||0,d.sumX+=c,d.sumY+=b,d.sumXY+=c*b,d.sumXsqure+=Math.pow(c,2),d.xValues.push(c),d.sumYsqure+=Math.pow(b,2),d.yValues.push(b))}},ba.multiseries);ba("scrollbase",{postSeriesAddition:function(){var a=this.hcJSON,b=a.xAxis.scroll,c=a[Q],d=c.width,f=c.x.catCount,g=this.dataObj.chart;c.isScroll=!0;a.chart.hasScroll=!0;if(this.isStacked)m=1;else{var m=
0,i=0,p,j=a.series,l,y=a.chart.defaultSeriesType;for(p=j.length;i<p;i++)l=h(j[i].type,y),l==="column"&&(m+=1);m<1&&(m=1)}f*=m;d=e(g.numvisibleplot,Math.floor(d/this.avgScrollPointWidth));if(b&&d>=2&&d<f)b.enabled=!0,b.vxLength=d/m,b.startPercent=g.scrolltoend===Ea?1:0,b.padding=e(g.scrollpadding,a.chart.plotBorderWidth/2),b.height=e(g.scrollheight,16),b.buttonWidth=e(g.scrollbtnwidth,g.scrollheight,16),b.buttonPadding=e(g.scrollbtnpadding,0),b.color=v(h(g.scrollcolor,k.altHGridColor[a.chart.paletteIndex])),
c.marginBottomExtraSpace+=b.padding+b.height;if(o||e(g.enabletouchscroll,0))a.chart.zoomType="x",a.chart.nativeZoom=!1,a.chart.selectionMarkerFill="rgba(255,255,255,0)",(a.callbacks||(a.callbacks=[])).push(function(a){D(a,"selectionstart selectiondrag",ba.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=this.xAxis[0].scroller,c=b.config;a.isOutsidePlot!==!0&&p(b.elements.anchor.element,a.type==="selectionstart"?"dragstart":"drag",{pageX:-(c.trackLength/(c.width/c.scrollRatio)*
(a.chartX||1)),pageY:-a.chartY})}},ba.multiseries);ba("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(a,b){var f=a[Q],i=f.axisGridManager,o=this.numberFormatter,p=a.series,j=a.xAxis,l=a.yAxis[0],y=f[0],I=b.chart,N=!e(I.showlimits,I.showyaxisvalues,1),q=!e(I.showdivlinevalues,I.showyaxisvalues,1),n=e(I.base,I.logbase,10),T=e(I.yaxismaxvalue),P=e(I.yaxisminvalue),s=e(I.showminordivlinevalues)===1,$=h(I.minordivlinecolor,l.gridLineColor,k.divLineColor[a.chart.paletteIndex]),u=e(I.minordivlinealpha,
I.divlinealpha,k.divLineAlpha[a.chart.paletteIndex]),S=[l,void 0,void 0,e(I.divlinethickness,2),l.gridLineDashStyle,l.gridLineColor,2],$=[l,void 0,void 0,e(I.minordivlinethickness,1),l.gridLineDashStyle,g(h(I.minordivlinecolor,$),e(I.minordivlinealpha,u/2)),2],u=s||u&&$[3],ma;n<=0&&(n=10);T<=0&&(T=void 0);P<=0&&(P=void 0);T=this.getLogAxisLimits(y.max||n,y.min||1,T,P,n,u?I.numminordivlines:0);j.title.text=w(I.xaxisname);K(l,{title:{text:w(I.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:c,
reversed:I.invertyaxis==="1",max:m(T.Max,n),min:m(T.Min,n)});for(j=p.length;j--;)if(I=p[j]){I.threshold=l.min;for(ma=(I=I.data)&&I.length||0;ma--;)P=I[ma],P.y=m(P.y,n)}delete y.max;delete y.min;y.isLog=!0;if(l.reversed&&l.min>=0)a.plotOptions.series.threshold=l.max;b.trendlines&&d(b.trendlines,[{max:T.Max,min:T.Min,plotLines:l.plotLines,plotBands:l.plotBands}],f);for(j=l.plotLines.length;j--;)P=l.plotLines[j],P.value&&(P.value=m(P.value,n)),P.from&&(P.from=m(P.from,n)),P.to&&(P.to=m(P.to,n));for(j=
l.plotBands.length;j--;)P=l.plotBands[j],P.from&&(P.from=m(P.from,n)),P.to&&(P.to=m(P.to,n));for(j=T.divArr.length;j--;){P=T.divArr[j];if(P.ismajor)S[1]=m(P.value,n),S[2]=o.yAxis(P.value),i.addAxisGridLine.apply(i,S);else if(u||P.isextreme)$[1]=m(P.value,n),$[2]=s||P.isextreme?o.yAxis(P.value):r,i.addAxisGridLine.apply(i,$);I=l.plotLines[l.plotLines.length-1];if(P.isextreme){if(I.width=0.1,N)I.label.text=BLANK}else if(q&&I.label)I.label.text=BLANK}},getLogAxisLimits:function(a,b,c,d,e,f){var g=function(a){return a==
null||a==void 0||a==""||isNaN(a)?!1:!0},m=0,h=[],i,o,p,k,j,l;g(c)&&Number(c)>=a?a=Number(c):(c=e>1?fa(U(a)/U(e)):ea(U(a)/U(e)),a=W(e,c),o=c);o||(o=e>1?fa(U(a)/U(e)):ea(U(a)/U(e)));g(d)&&Number(d)<=b?b=Number(d):(c=e>1?ea(U(b)/U(e)):fa(U(b)/U(e)),b=W(e,c),i=c);i||(i=e>1?ea(U(b)/U(e)):fa(U(b)/U(e)));d=Number(String(U(e)/U(10)));f=Number(f)||(ea(d)==d?8:4);e>1?(p=o,k=i):e>0&&e<1&&(p=i,k=o);d=o;for(i=p;i>=k;--i)if(p=W(e,d),b<=p&&a>=p&&(h[m++]={value:p,ismajor:!0}),i!=k){o=e>1?-1:1;p=W(e,d)-W(e,d+o);c=
p/(f+1);for(g=1;g<=f;++g)p=W(e,d+o)+c*g,b<=p&&a>=p&&(h[m++]={value:p,ismajor:!1});e>1?d--:d++}for(var y in h)for(var I in h[y])if(I=="value"){if(!j)j=h[y][I]==b&&(h[y].isextreme=!0);if(!l)l=h[y][I]==a&&(h[y].isextreme=!0)}j||(h[m++]={value:b,ismajor:!0,isextreme:!0});l||(h[m]={value:a,ismajor:!0,isextreme:!0});return{Max:a,Min:b,divArr:h}},pointValueWatcher:function(a,b,c){a=a[Q];c=e(c,0);if(b>0)a[c]||(a[c]={}),c=a[c],c.max=c.max>b?c.max:b,c.min=c.min<b?c.min:b}},ba.mslinebase);q=ba.singleseries;
Ba=ba.multiseries;ba("column2dbase",{point:function(a,b,c,d,f){var a=c.length,g=f[Q],m=g.axisGridManager,i=f.xAxis,o=f.chart.paletteIndex,g=g.x,p=f.colors,j=f.colors.length,l=/3d$/.test(f.chart.defaultSeriesType),y=this.isBar,I=h(d.showplotborder,l?ya:Ea)===Ea?l?1:e(d.plotborderthickness,1):0,N=f.chart.useRoundEdges,q=e(d.plotborderalpha,d.plotfillalpha,100),n=h(d.plotbordercolor,k.plotBorderColor[o]).split(da)[0],o=da+(e(d.useplotgradientcolor,1)?ga(d.plotgradientcolor,k.plotGradientColor[o]):r),
P=0,T=Boolean(e(d.use3dlighting,1)),s=f[Q].numberFormatter,$,u=e(d.plotborderdashed,0),S=e(d.plotborderdashlen,5),ma=e(d.plotborderdashgap,4),t,B,v,pa,ca,ka,x,na,Aa;for(v=B=0;B<a;B+=1)x=c[B],x.vline?m.addVline(i,x,P,f):(t=s.getCleanValue(x.value),Aa=e(x.showlabel,d.showlabels,1),pa=w(V(x.label,x.name)),m.addXaxisCat(i,P,P,Aa?pa:r),P+=1,$=h(x.color,p[v%j])+o.replace(/,+?$/,""),ca=h(x.alpha,d.plotfillalpha,za),ka=h(x.ratio,d.plotfillratio),na=h(360-d.plotfillangle,y?180:90),t<0&&(na=y?180-na:360-na),
Aa={opacity:ca/100},ca=X($,ca,ka,na,N,n,h(x.alpha,q)+r,y,l),$=e(x.dashed,u)?G(h(x.dashlen,S),h(x.dashgap,ma),I):void 0,b.data.push(K(this.getPointStub(x,t,pa,f),{y:t,shadow:Aa,color:ca[0],borderColor:ca[1],borderWidth:I,use3DLighting:T,dashStyle:$,tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(f,t),v+=1);g.catCount=P;return b},defaultSeriesType:"column"},q);ba("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(a,b,c,d,f){var g,m,i,o,p,j,l,y,
I,N,q,n,P,T,s,$,u,S,ma,t,B,pa,ca,ka,x,a=f.chart,na=c.length,Aa=f.xAxis;g=f[Q];var A=g.axisGridManager,D=0,ua=g.x,J=f.chart.paletteIndex,H=f[Q].numberFormatter;s=v(h(d.linecolor,d.palettecolors,k.plotFillColor[J]));$=h(d.linealpha,za);n=e(d.linethickness,this.lineThickness,4);P=Boolean(e(d.linedashed,0));y=e(d.linedashlen,5);I=e(d.linedashgap,4);b.color={FCcolor:{color:s,alpha:$}};b.lineWidth=n;b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,d.drawverticaljoins,1));
b.useForwardSteps=Boolean(e(b.useForwardSteps,d.useforwardsteps,1));T=e(d.drawanchors,d.showanchors);for(p=m=0;m<na;m+=1)o=c[m],o.vline?A.addVline(Aa,o,D,f):(g=H.getCleanValue(o.value),j=e(o.showlabel,d.showlabels,1),i=w(V(o.label,o.name)),A.addXaxisCat(Aa,D,D,j?i:r),D+=1,N=v(h(o.color,s)),q=h(o.alpha,$),j=e(o.dashed,P)?G(y,I,n):void 0,l={opacity:q/100},S=e(o.anchorsides,d.anchorsides,0),x=e(o.anchorstartangle,d.anchorstartangle,90),B=e(o.anchorradius,d.anchorradius,this.anchorRadius,3),t=v(h(o.anchorbordercolor,
d.anchorbordercolor,s)),ma=e(o.anchorborderthickness,d.anchorborderthickness,this.anchorBorderThickness,1),pa=v(h(o.anchorbgcolor,d.anchorbgcolor,k.anchorBgColor[J])),ca=h(o.anchoralpha,d.anchoralpha,za),ka=h(o.anchorbgalpha,d.anchorbgalpha,ca),u=T===void 0?q!=0:!!T,b.data.push(K(this.getPointStub(o,g,i,f),{y:g,color:{FCcolor:{color:N,alpha:q}},shadow:l,dashStyle:j,valuePosition:h(o.valueposition,a.valuePosition),marker:{enabled:!!u,fillColor:{FCcolor:{color:pa,alpha:ka*ca/100+r}},lineColor:{FCcolor:{color:t,
alpha:ca}},lineWidth:ma,radius:B,startAngle:x,symbol:qa(S)},tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(f,g),p+=1);ua.catCount=D;return b},defaultZeroPlaneHighlighted:!1},q);ba("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(a,c,d,f,g){var a=g.chart,m=d.length,i=g.xAxis,o=g[Q],p=g.chart.paletteIndex,j=o.axisGridManager,o=o.x,l=g[Q].numberFormatter,y=0,I,N,q,n,P,T,s,$,u,S,ma,t,B,pa,ca,ka,x,na,Aa,A,D,ua,J;P=h(f.plotfillcolor,f.areabgcolor,M(f.palettecolors)?
g.colors[0]:k.plotFillColor[p]).split(da)[0];ua=da+(e(f.useplotgradientcolor,1)?ga(f.plotgradientcolor,k.plotGradientColor[p]):r);T=h(f.plotfillalpha,f.areaalpha,this.isStacked?za:"90");s=e(f.plotfillangle,270);$=h(f.plotbordercolor,f.areabordercolor,M(f.palettecolors)?g.colors[0]:k.plotBorderColor[p]).split(da)[0];u=f.showplotborder==ya?ya:h(f.plotborderalpha,f.plotfillalpha,f.areaalpha,za);I=e(f.plotborderangle,270);N=Boolean(e(f.plotborderdashed,0));q=e(f.plotborderdashlen,5);B=e(f.plotborderdashgap,
4);x=e(f.plotborderthickness,f.areaborderthickness,1);J=c.fillColor={FCcolor:{color:P+ua.replace(/,+?$/,""),alpha:T,ratio:Pa,angle:s}};c.lineWidth=x;c.dashStyle=N?G(q,B,x):void 0;c.lineColor={FCcolor:{color:$,alpha:u,ratio:za,angle:I}};c.step=h(this.stepLine,c.step);c.drawVerticalJoins=Boolean(e(c.drawVerticalJoins,f.drawverticaljoins,1));c.useForwardSteps=Boolean(e(c.useForwardSteps,f.useforwardsteps,1));x=Boolean(e(f.drawanchors,f.showanchors,1));for(Aa=N=0;N<m;N+=1)B=d[N],B.vline?j.addVline(i,
B,y,g):(I=l.getCleanValue(B.value),n=e(B.showlabel,f.showlabels,1),q=w(V(B.label,B.name)),j.addXaxisCat(i,y,y,n?q:r),y+=1,n=e(B.anchorsides,f.anchorsides,0),t=e(B.anchorstartangle,f.anchorstartangle,90),S=e(B.anchorradius,f.anchorradius,3),ma=v(h(B.anchorbordercolor,f.anchorbordercolor,$)),na=e(B.anchorborderthickness,f.anchorborderthickness,1),pa=v(h(B.anchorbgcolor,f.anchorbgcolor,k.anchorBgColor[p])),ca=h(B.anchoralpha,f.anchoralpha,this.anchorAlpha,ya),ka=h(B.anchorbgalpha,f.anchorbgalpha,ca),
A=M(B.color),D=e(B.alpha),A=A!==void 0||D!==void 0?{FCcolor:{color:A?v(A)+ua:P,alpha:void 0===D?b(D)+r:T,ratio:Pa,angle:s}}:J,D={opacity:Math.max(D,u)/100,inverted:!0},c.data.push(K(this.getPointStub(B,I,q,g),{y:I,shadow:D,color:A,valuePosition:h(B.valueposition,a.valuePosition),marker:{enabled:x,fillColor:{FCcolor:{color:pa,alpha:ka*ca/100+r}},lineColor:{FCcolor:{color:ma,alpha:ca}},lineWidth:na,radius:S,symbol:qa(n),startAngle:t},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(g,
I)})),Aa+=1);o.catCount=y;return c}},q);var B=l.getDataParser={column:function(a,c,d){var f=a[Q],g=c.borderWidth;return function(m,i,o){var p=b(h(m.alpha,c.alpha)).toString(),k={opacity:p/100},j=c.isBar,l=c.fillAangle,p=X(h(m.color,c.color)+c.plotgradientcolor,p,h(m.ratio,c.ratio),o<0?j?180-l:360-l:l,c.isRoundEdges,c.plotBorderColor,Math.min(p,b(c.plotBorderAlpha)).toString(),j,c.is3d),j=e(m.dashed,c.dashed)?G(h(m.dashlen,c.dashLen),h(m.dashgap,c.dashGap),g):void 0,m=d.getPointStub(m,o,f.oriCatTmp[i],
a,c,c.showValues,c.yAxis);m.y=o;m.shadow=k;m.color=p[0];m.borderColor=p[1];m.borderWidth=g;m.use3DLighting=c.use3DLighting;m.dashStyle=j;m.tooltipConstraint=d.tooltipConstraint;return m}},line:function(a,b,c){var d=a[Q];return function(f,g,m){var i=h(f.alpha,b.lineAlpha),o={opacity:i/100},p=h(f.anchoralpha,b.anchorAlpha),g=c.getPointStub(f,m,d.oriCatTmp[g],a,b,b.showValues,b.yAxis);g.y=m;g.shadow=o;g.dashStyle=e(f.dashed,b.lineDashed)?G(b.lineDashLen,b.lineDashGap,b.lineThickness):void 0;g.color=
{FCcolor:{color:v(h(f.color,b.lineColor)),alpha:i}};g.valuePosition=h(f.valueposition,b.valuePosition);g.marker={enabled:b.drawAnchors===void 0?i!=0:!!b.drawAnchors,fillColor:{FCcolor:{color:v(h(f.anchorbgcolor,b.anchorBgColor)),alpha:(h(f.anchorbgalpha,b.anchorBgAlpha)*p/100).toString()}},lineColor:{FCcolor:{color:v(h(f.anchorbordercolor,b.anchorBorderColor)),alpha:p}},lineWidth:e(f.anchorborderthickness,b.anchorBorderThickness),radius:e(f.anchorradius,b.anchorRadius),symbol:qa(e(f.anchorsides,b.anchorSides)),
startAngle:h(f.anchorstartangle,b.anchorAngle)};return g}},area:function(a,b,c){var d=a[Q];return function(f,g,m){var i=h(f.alpha,b.fillAlpha),o={opacity:Math.max(i,b.lineAlpha)/100,inverted:!0},p=h(f.anchoralpha,b.anchorAlpha),g=c.getPointStub(f,m,d.oriCatTmp[g],a,b,b.showValues,b.yAxis);g.y=m;g.shadow=o;g.color={FCcolor:{color:v(h(f.color,b.fillColor)),alpha:i}};g.valuePosition=h(f.valueposition,b.valuePosition);g.marker={enabled:b.drawAnchors,fillColor:{FCcolor:{color:v(h(f.anchorbgcolor,b.anchorBgColor)),
alpha:(h(f.anchorbgalpha,b.anchorBgAlpha)*p/100).toString()}},lineColor:{FCcolor:{color:v(h(f.anchorbordercolor,b.anchorBorderColor)),alpha:p}},lineWidth:e(f.anchorborderthickness,b.anchorBorderThickness),radius:e(f.anchorradius,b.anchorRadius),symbol:qa(e(f.anchorsides,b.anchorSides)),startAngle:h(f.anchorstartangle,b.anchorAngle)};g.events={click:b.getLink};return g}}};ba("mscolumn2dbase",{point:function(a,b,c,d,f,g,m,i,o){var z;var a=!1,p=c.data||[],j=f[Q],l=h(b.type,this.defaultSeriesType),y=
h(b.isStacked,f.plotOptions[l]&&f.plotOptions[l].stacking),I=h(this.isValueAbs,j.isValueAbs,!1),N=e(b.yAxis,0),q=f[Q].numberFormatter,n=f.chart.paletteIndex,P,T;T=f._FCconf.isBar;if(!y)b.columnPosition=e(o,i,m);b.name=M(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;b.color=h(c.color,f.colors[m%f.colors.length]).split(da)[0].replace(/^#?/g,"#");o=/3d$/.test(f.chart.defaultSeriesType);T=h(360-d.plotfillangle,T?180:90);P<0&&(T=360-T);z=b._dataParser=B.column(f,{seriesname:b.name,
color:h(c.color,f.colors[m%f.colors.length]),alpha:h(c.alpha,d.plotfillalpha,za),plotgradientcolor:da+(e(d.useplotgradientcolor,1)?ga(d.plotgradientcolor,k.plotGradientColor[n]):r),ratio:h(c.ratio,d.plotfillratio),fillAangle:T,isRoundEdges:f.chart.useRoundEdges,plotBorderColor:h(d.plotbordercolor,o?Za:k.plotBorderColor[n]).split(da)[0],plotBorderAlpha:d.showplotborder==ya||o&&d.showplotborder!=Ea?ya:h(d.plotborderalpha,za),isBar:this.isBar,is3d:o,dashed:e(c.dashed,d.plotborderdashed,0),dashLen:e(c.dashlen,
d.plotborderdashlen,5),dashGap:e(c.dashgap,d.plotborderdashgap,4),borderWidth:h(d.plotborderthickness,Ea),showValues:e(c.showvalues,j.showValues),yAxis:N,use3DLighting:e(d.use3dlighting,1),_sourceDataset:c},this),c=z;for(d=0;d<g;d+=1)(m=p[d])?(P=q.getCleanValue(m.value,I),P===null?b.data.push({y:null}):(a=!0,m=c(m,d,P),b.data.push(m),m.previousY=this.pointValueWatcher(f,P,N,y,d,i,l))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"column"},Ba);ba("mslinebase",
{hasVDivLine:!0,point:function(a,b,c,d,f,g,m){var z;var a=!1,i,o;i=f.chart;var p=c.data||[];o=f[Q];var j=h(b.type,this.defaultSeriesType),l=h(b.isStacked,f.plotOptions[j]&&f.plotOptions[j].stacking),y=h(this.isValueAbs,o.isValueAbs,!1),I=e(b.yAxis,0),N=this.numberFormatter,m=v(h(c.color,d.linecolor,f.colors[m%f.colors.length])),q=h(c.alpha,d.linealpha,za),n=e(d.showshadow,this.defaultPlotShadow,1),P=e(c.drawanchors,c.showanchors,d.drawanchors,d.showanchors),T=e(c.anchorsides,d.anchorsides,0),s=e(c.anchorstartangle,
d.anchorstartangle,90),$=e(c.anchorradius,d.anchorradius,3),u=v(h(c.anchorbordercolor,d.anchorbordercolor,m)),S=e(c.anchorborderthickness,d.anchorborderthickness,1),ma=v(h(c.anchorbgcolor,d.anchorbgcolor,k.anchorBgColor[f.chart.paletteIndex])),t=h(c.anchoralpha,d.anchoralpha,za),pa=h(c.anchorbgalpha,d.anchorbgalpha,t);b.name=M(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0||q==0&&P!==1)b.showInLegend=!1;b.marker={fillColor:{FCcolor:{color:ma,alpha:pa*t/100+r}},lineColor:{FCcolor:{color:u,
alpha:t+r}},lineWidth:S,radius:$,symbol:qa(T),startAngle:s};b.color={FCcolor:{color:m,alpha:q}};b.shadow=n?{opacity:n?q/100:0}:!1;b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,d.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,d.useforwardsteps,1));b.lineWidth=e(c.linethickness,d.linethickness,2);z=b._dataParser=B.line(f,{seriesname:b.name,lineAlpha:q,anchorAlpha:t,showValues:e(c.showvalues,o.showValues),yAxis:I,lineDashed:Boolean(e(c.dashed,d.linedashed,
0)),lineDashLen:e(c.linedashlen,d.linedashlen,5),lineDashGap:e(c.linedashgap,d.linedashgap,4),lineThickness:b.lineWidth,lineColor:m,valuePosition:h(c.valueposition,i.valuePosition),drawAnchors:P,anchorBgColor:ma,anchorBgAlpha:pa,anchorBorderColor:u,anchorBorderThickness:S,anchorRadius:$,anchorSides:T,anchorAngle:s,_sourceDataset:c},this),i=z;for(d=0;d<g;d+=1)(o=p[d])?(c=N.getCleanValue(o.value,y),c===null?b.data.push({y:null}):(a=!0,o=i(o,d,c),b.data.push(o),o.previousY=this.pointValueWatcher(f,c,
I,l,d,0,j))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},Ba);ba("msareabase",{hasVDivLine:!0,point:function(a,b,c,d,f,g,m){var z;var a=!1,i=f.chart,o=c.data||[],p=f[Q],j=h(b.type,this.defaultSeriesType),l=h(b.isStacked,f.plotOptions[j]&&f.plotOptions[j].stacking),y=h(this.isValueAbs,p.isValueAbs,!1),I=f.chart.paletteIndex,N=e(b.yAxis,0),q=f[Q].numberFormatter,n=h(c.color,d.plotfillcolor,
f.colors[m%f.colors.length]).split(da)[0].replace(/^#?/g,"#").split(da)[0],P=h(c.alpha,d.plotfillalpha,d.areaalpha,this.areaAlpha,70),T=e(d.plotfillangle,270),m=h(c.plotbordercolor,d.plotbordercolor,d.areabordercolor,this.isRadar?f.colors[m%f.colors.length]:"666666").split(da)[0],s=h(c.showplotborder,d.showplotborder)==ya?ya:h(c.plotborderalpha,d.plotborderalpha,c.alpha,d.plotfillalpha,d.areaalpha,"95"),$=e(d.plotborderangle,270),u=e(c.anchorsides,d.anchorsides,0),S=e(c.anchorstartangle,d.anchorstartangle,
90),ma=e(c.anchorradius,d.anchorradius,3),t=v(h(c.anchorbordercolor,d.anchorbordercolor,n)),pa=e(c.anchorborderthickness,d.anchorborderthickness,1),w=v(h(c.anchorbgcolor,d.anchorbgcolor,k.anchorBgColor[I])),ca=e(c.anchoralpha,d.anchoralpha,this.anchorAlpha,0),x=e(c.anchorbgalpha,d.anchorbgalpha,ca);this.isRadar||(n+=da+(e(d.useplotgradientcolor,1)?ga(d.plotgradientcolor,k.plotGradientColor[I]):r),n=n.replace(/,+?$/,""));b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,
d.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,d.useforwardsteps,1));b.name=h(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;b.fillColor={FCcolor:{color:n,alpha:P,ratio:Pa,angle:T}};b.color=n;b.shadow={opacity:e(d.showshadow,1)?s/100:0};b.lineColor={FCcolor:{color:m,alpha:s,ratio:za,angle:$}};b.lineWidth=h(c.plotborderthickness,d.plotborderthickness,1);b.dashStyle=Boolean(e(c.dashed,d.plotborderdashed,0))?G(e(c.dashlen,d.plotborderdashlen,5),e(c.dashgap,
d.plotborderdashgap,4),b.lineWidth):void 0;b.marker={fillColor:{FCcolor:{color:w,alpha:x*ca/100+r}},lineColor:{FCcolor:{color:t,alpha:ca+r}},lineWidth:pa,radius:ma,symbol:qa(u),startAngle:S};z=b._dataParser=B.area(f,{seriesname:b.name,lineAlpha:s,anchorAlpha:ca,showValues:e(c.showvalues,p.showValues),yAxis:N,fillColor:n,fillAlpha:P,valuePosition:h(c.valueposition,i.valuePosition),drawAnchors:Boolean(e(d.drawanchors,d.showanchors,1)),anchorBgColor:w,anchorBgAlpha:x,anchorBorderColor:t,anchorBorderThickness:pa,
anchorRadius:ma,anchorSides:u,anchorAngle:S,getLink:this.linkClickFN,_sourceDataset:c},this),c=z;for(i=0;i<g;i+=1)(p=o[i])?(d=p?q.getCleanValue(p.value,y):null,d===null?b.data.push({y:null}):(a=!0,p=c(p,i,d),b.data.push(p),p.previousY=this.pointValueWatcher(f,d,N,l,i,0,j))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"area",defaultPlotShadow:0},Ba);ba("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",
point:function(a,c,d,f,m,i,o){if(d.data){var p,j,l,y,I,N,q,n,P,T,s,$,u,S,B,ma,t,pa=!1,w;l=e(d.drawline,f.drawlines,0);y=e(d.drawprogressioncurve,0);var a=d.data,i=a.length,ca=e(d.showvalues,m[Q].showValues),x=this.numberFormatter,ka=e(d.showregressionline,f.showregressionline,0);c.zIndex=1;c.name=M(d.seriesname);if(e(d.includeinlegend)===0||c.name===void 0)c.showInLegend=!1;if(l||y)j=v(h(d.color,m.colors[o%m.colors.length])),l=h(d.alpha,za),y=e(d.linethickness,f.linethickness,2),I=Boolean(e(d.linedashed,
d.dashed,f.linedashed,0)),N=e(d.linedashlen,f.linedashlen,5),q=e(d.linedashgap,f.linedashgap,4),c.color=g(h(d.linecolor,f.linecolor,j),e(d.linealpha,f.linealpha,l)),c.lineWidth=y,c.dashStyle=I?G(N,q,y):void 0;l=Boolean(e(d.drawanchors,d.showanchors,f.drawanchors,f.showanchors,1));y=e(d.anchorsides,f.anchorsides,o+3);I=e(d.anchorradius,f.anchorradius,3);o=v(h(d.anchorbordercolor,d.color,f.anchorbordercolor,j,m.colors[o%m.colors.length]));j=e(d.anchorborderthickness,f.anchorborderthickness,1);N=v(h(d.anchorbgcolor,
f.anchorbgcolor,k.anchorBgColor[m.chart.paletteIndex]));q=h(d.anchoralpha,d.alpha,f.anchoralpha,za);P=h(d.anchorbgalpha,d.alpha,f.anchorbgalpha,q);h(d.anchorstartangle,f.anchorstartangle,90);c.marker={fillColor:this.getPointColor(N,za),lineColor:{FCcolor:{color:o,alpha:q+r}},lineWidth:j,radius:I,symbol:qa(y)};if(ka){c.events={hide:this.hideRLine,show:this.showRLine};var na={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},Aa=e(d.showyonx,f.showyonx,1),D=v(h(d.regressionlinecolor,
f.regressionlinecolor,o)),A=e(d.regressionlinethickness,f.regressionlinethickness,j),f=b(e(d.regressionlinealpha,f.regressionlinealpha,q)),D=g(D,f)}for(p=0;p<i;p+=1)(n=a[p])?(f=x.getCleanValue(n.y),t=x.getCleanValue(n.x),f===null?c.data.push({y:null,x:t}):(pa=!0,w=this.getPointStub(n,f,x.xAxis(t),m,d,ca),T=e(n.anchorsides,y),s=e(n.anchorradius,I),$=v(h(n.anchorbordercolor,o)),u=e(n.anchorborderthickness,j),S=v(h(n.anchorbgcolor,N)),B=h(n.anchoralpha,n.alpha,q),ma=h(n.anchorbgalpha,P),c.data.push({y:f,
x:t,displayValue:w.displayValue,toolText:w.toolText,link:w.link,marker:{enabled:l,fillColor:{FCcolor:{color:S,alpha:ma*B/100+r}},lineColor:{FCcolor:{color:$,alpha:B}},lineWidth:u,radius:s,symbol:qa(T),startAngle:h(n.anchorstartangle,90)}}),this.pointValueWatcher(m,f,t,ka&&na))):c.data.push({y:null});ka&&(d=this.getRegressionLineSeries(na,Aa,i),this.pointValueWatcher(m,d[0].y,d[0].x),this.pointValueWatcher(m,d[1].y,d[1].x),m={type:"line",color:D,showInLegend:!1,lineWidth:A,enableMouseTracking:!1,marker:{enabled:!1},
data:d,zIndex:0},c=[c,m])}if(!pa)c.showInLegend=!1;return c},categoryAdder:function(a,b){var c,d=0,f,m=b[Q].x,i,o=b.xAxis,p,j;j=a.chart;var l=parseInt(j.labelstep,10),y=e(j.showlabels,1),I=h(j.xaxislabelmode,"categories").toLowerCase(),N=b[Q].numberFormatter;b._FCconf.isXYPlot=!0;l=l>1?l:1;m.catOccupied={};if(I!=="auto"&&a.categories&&a.categories[0]&&a.categories[0].category){j=a.categories[0];if(j.font)b.xAxis.labels.style.fontFamily=j.font;if((f=e(j.fontsize))!==void 0)f<1&&(f=1),b.xAxis.labels.style.fontSize=
f+Ka,n(b.xAxis.labels.style);if(j.fontcolor)b.xAxis.labels.style.color=j.fontcolor.split(da)[0].replace(/^\#?/,"#");c=h(j.verticallinecolor,k.divLineColor[b.chart.paletteIndex]);f=e(j.verticallinethickness,1);i=e(j.verticallinealpha,k.divLineAlpha[b.chart.paletteIndex]);var q=e(j.verticallinedashed,0),P=e(j.verticallinedashlen,4),T=e(j.verticallinedashgap,2),s=g(c,i),$,u,S;for(c=0;c<j.category.length;c+=1)p=j.category[c],i=N.getCleanValue(p.x),i!==null&&!p.vline&&(m.catOccupied[i]=!0,S=e(p.showlabel,
p.showname,y),$=e(p.showverticalline,p.showline,p.sl,0),u=e(p.linedashed,q),p=S===0||d%l!==0?r:w(V(p.label,p.name)),o.plotLines.push({isGrid:!0,isCat:!0,width:$?f:0,color:s,dashStyle:G(P,T,f,u),value:i,label:{text:p,style:o.labels.style,align:t,verticalAlign:J,textAlign:t,rotation:0,x:0,y:0}}),this.pointValueWatcher(b,null,i),d+=1);if(I==="mixed")m.requiredAutoNumericLabels=e(this.requiredAutoNumericLabels,1)}else m.requiredAutoNumericLabels=e(this.requiredAutoNumericLabels,1);m.adjustMinMax=!0},
getPointColor:function(c,d){var e,g,c=v(c),d=b(d);e=a(c,70);g=f(c,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.4,cy:0.4,r:"100%",color:e+da+g,alpha:d+da+d,ratio:Pa,radialGradient:!0}}}},ba.xybase);ba("mscombibase",{series:function(a,b,c){var f,g,m,i,o=a.chart,p,k=[],j=[],l=[],y,I,N=b[Q],n=this.isDual,q=0;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&a.dataset.length>0){this.categoryAdder(a,b);i=N.oriCatTmp.length;f=0;for(g=a.dataset.length;f<g;f+=1)switch(m=a.dataset[f],
y=n&&h(m.parentyaxis,"p").toLowerCase()==="s"?!0:!1,p={visible:!!e(m.visible,1),legendIndex:f,data:[]},y?(p.yAxis=1,I=V(m.renderas,this.secondarySeriesType)):I=V(m.renderas,this.defaultSeriesType),I=I.toLowerCase(),I){case "line":case "spline":p.type="line";k.push(ba.mslinebase.point.call(this,c,p,m,o,b,i,f));break;case "area":case "splinearea":p.type="area";b.chart.series2D3Dshift=!0;l.push(ba.msareabase.point.call(this,c,p,m,o,b,i,f));break;case "column":case "column3d":j.push(ba.mscolumn2dbase.point.call(this,
c,p,a.dataset[f],o,b,i,f,void 0,q));q+=1;break;default:y?(p.type="line",k.push(ba.mslinebase.point.call(this,c,p,m,o,b,i,f))):(j.push(ba.mscolumn2dbase.point.call(this,c,p,a.dataset[f],o,b,i,f,void 0,q)),q+=1)}o.areaovercolumns!=="0"?(b.chart.areaOverColumns=!0,b.series=b.series.concat(j,l,k)):(b.chart.areaOverColumns=!1,b.series=b.series.concat(l,j,k));if(j.length===0)N.hasNoColumn=!0;else if(!this.isStacked){c=0;for(f=j.length;c<f;c+=1)j[c].numColumns=f}this.configureAxis(b,a);a.trendlines&&d(a.trendlines,
b.yAxis,b[Q],n,this.isBar)}}},ba.mscolumn2dbase)}]);
FusionCharts(["private","modules.renderer.js-renderer",function(){var i=this,l=i.hcLib,u=l.Raphael,r=l.chartAPI,d=window,h=/msie/i.test(navigator.userAgent)&&!d.opera,M=document,e=u.type==="VML",k=l.BLANKSTRING,V="crisp",ga="rgba(192,192,192,"+(h?0.002:1.0E-6)+")",w=Math.round,Q=l.stubFN,K={pageX:0,pageY:0},G=parseFloat,aa=parseInt,A=l.extend2,ia=l.addEvent,H=l.removeEvent,D=l.pluck,q=l.pluckNumber,j=l.graphics.HEXtoRGB,s=l.setImageDisplayMode,fa=l.falseFN,ea=l.FC_CONFIG_STRING,U=/\s\bx\b=['"][^'"]+?['"]/ig,
W=/\s\by\b=['"][^'"]+?['"]/ig,X=l.isArray=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),v=l.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(X(a))for(e=0;e<a.length;e+=1){if(b.call(c,a[e],e,a,d)===!1)return e}else if(!(a===null||a===void 0))for(e in a)if(b.call(c,a[e],e,a,d)===!1)return e},n=l.createElement,R=l.createContextMenu,b=l.toRaphaelColor=function(){var a={};return function(b){var c=(b=b||this)&&
b.FCcolor||b,d=c.color,e=c.ratio,f=c.angle,g=c.alpha,h=c.r,i=c.cx,l=c.cy,n=c.fx,q=c.fy,s=c.gradientUnits,r=c.x1,u=c.y1,t=c.x2,v=c.y2,w=1,B,C,F,E;if(typeof b==="string")return a[E="~"+b]||(a[E]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||k;if(!d)return B;E=[d,g,e,f,h,i,l,s,n,q,r,t,u,v].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[E])return a[E];e=e&&(e+k).split(",")||[];g=(g||g===0)&&(g+k).split(",")||[];if(d=d.split(","))if(B=k,d.length===1)F=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),B=g.length?
"rgba("+j(F).join(",")+","+G(g[0])*0.01+")":F.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(C=d.length;b<C;b++)F=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(e[b])||(e[b]=G(e[b]),F+=":"+e[b],isNaN(e[b+1])||(e[b+1]=G(e[b+1])+e[b])),!isNaN(g[b])&&g[b]!==k&&(w=g[b]*0.01),d[b]="rgba("+j(F).join(",")+","+w+")",isNaN(e[b])||(d[b]=d[b]+":"+e[b]);B+=d.join("-");if(h!==void 0||n!==void 0||i!==void 0||c.radialGradient)B="xr("+[n,q,h,i,l,s].join(",")+")"+B;else{B="-"+B;if(r!==void 0||u!==void 0||t!==
void 0||v!==void 0)B="("+[r,u,t,v,s].join(",")+")"+B;f===void 0&&(f=0);B=360-G(f)%360+B}}return a[E]=B}}();l.gradientify=function(){return function(){return""}}();var f=l.hasTouch,a=f?10:3,g=l.getSentenceCase,c=l.getCrispValues,t=l.getValidValue,q=l.pluckNumber,x=l.getFirstValue,J=l.regex.dropHash,ja=l.HASHSTRING,la=function(a){return a!==Ha&&a!==null},ba=function(a,b){a[1]===a[4]&&(a[1]=a[4]=w(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=w(a[2])+b%2/2);return a},Ha,Ba=document.documentMode===8?"visible":
"",V="crisp",qa=Math,da=qa.sin,Da=qa.cos,ya=qa.atan2,w=qa.round,Ea=qa.min,za=qa.max,Ka=qa.abs,$a=qa.ceil,oa=qa.floor,La=qa.PI,db=La/2,Pa=2*La,Za=La+db,Ia=l.getFirstColor,bb=l.graphics.getDarkColor,Ta=l.graphics.getLightColor,ga="rgba(192,192,192,"+(h?0.002:1.0E-6)+")",eb=l.POSITION_TOP,cb=l.POSITION_BOTTOM,fb=l.POSITION_RIGHT,ab=l.POSITION_LEFT;u.ca.ishot=function(a){if(this.removed)return!1;var b=this.node,a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",a),b=
b.next;break;case "text":if(u.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};u.addSymbol({printIcon:function(a,b,c){var d=c*0.75,e=c*0.5,f=c*0.33,g=w(a-c)+0.5,h=w(b-c)+0.5,i=w(a+c)+0.5,c=w(b+c)+0.5,k=w(a-d)+0.5,j=w(b-d)+0.5,d=w(a+d)+0.5,l=w(b+e)+0.5,n=w(a+e)+0.5,q=w(b+f)+0.5,a=w(a-e)+0.5,f=w(b+f+f)+0.5;return["M",k,h,"L",d,h,d,j,k,j,"Z","M",g,j,"L",g,l,k,l,k,b,d,b,d,l,i,l,i,j,"Z","M",k,b,"L",k,c,d,c,d,b,"Z","M",n,q,"L",a,q,"M",n,f,"L",a,f]},exportIcon:function(a,
b,c){var d=c*0.66,e=d*0.5,f=w(a-c)+0.5,g=w(b-c)+0.5,h=w(a+c)+0.5,c=w(b+c)-0.5,i=w(a-e)+0.5,k=b<c-3?c-3:w(b)+0.5,e=w(a+e)-0.5,j=w(a+d)-0.5,d=w(a-d)+0.5;return["M",f,k,"L",f,c,h,c,h,k,h,c,f,c,"Z","M",a,c-1,"L",d,b,i,b,i,g,e,g,e,b,j,b,"Z"]}});l.rendererRoot=r("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var m;var d=this,e=d.container=b.chart.renderTo,f=b.tooltip,g=d.layer;d.options=b;d.logic=a;d.definition=a.dataObj;d.smartLabel=a.smartLabel;d.numberFormatter=
a.numberFormatter;d.fusionCharts=a.chartInstance;d.linkClickFN=a.linkClickFN;e.innerHTML=k;m=d.paper=u(e,e.offsetWidth||a.width,e.offsetHeight||a.height),e=m;d.chartWidth=e.width;d.chartHeight=e.height;if(!d.elements)d.elements={};if(!g)g=d.layers={},g.background=g.background||e.group("background"),g.dataset=g.dataset||e.group("dataset").insertAfter(g.background),g.tracker=g.tracker||e.group("hot").insertAfter(g.dataset);f&&f.enabled!==!1&&e.tooltip(f.style,f.shadow,f.constrain);d.setMargins();d.drawBackground();
d.drawButtons();d.drawGraph();b.legend&&b.legend.enabled&&d.drawLegend();d.drawCaption();d.drawLogo();d.setChartEvents();d.drawLabels&&d.drawLabels();v(b.callbacks,function(a){a.apply(d,this)},[a]);v(d.callbacks,function(a){a.apply(d,this)},[a]);d.hasRendered=!0;c&&c(d)},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){this.disposing=!0;this.paper&&(this.paper.remove(),delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);
delete this.disposing;this.disposed=!0},onContainerClick:function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,a=a.data;(!b||!b.ishot||!a)&&a.linkClickFN.call(a,a)},setChartEvents:function(){var a=this.options.chart.link,b=this.container;H(b,"click",this.onContainerClick);if(a)this.link=a,ia(b,"click",this.onContainerClick,this);this.paper.canvas.style.cursor=u.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;
u.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,e=this.elements,f=e.messageText,g=e.messageVeil,h=c.width,i=c.height;if(!g)g=e.messageVeil=c.rect(0,0,h,i).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"});g.show().toFront().attr("cursor",b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);if(!f)f=e.messageText=c.text(h/2,i/2,k).attr({fill:"rgba(255,255,255,1)",
"font-family":"Verdana","font-size":10,"line-height":14,ishot:!0});a=a||k;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana","font-size":"10px"});c=this.smartLabel.getSmartText(a,h-(d.spacingRight||0)-(d.spacingLeft||0),i-(d.spacingTop||0)-(d.spacingBotton||0));f.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var a=this,b=a.logic.rendererId==="zoomline",c=a.paper,d=a.elements,
e=a.toolbar||(a.toolbar=[]),f=a.menus||(a.menus=[]),g=a.layers,h=a.options,i=h[ea],i=i&&i.outCanvasStyle||a.logic.outCanvasStyle||{},k=h.chart.toolbar||{},j=k.hDirection,l=b?1:k.vDirection,n=k.button||{};e.count=0;var q=n.scale,s=n.width*n.scale,r=n.height*n.scale,t=j*(n.spacing*n.scale+s),v=n.radius;e.y||(e.y=(b?0:k.y)+k.vMargin*l+Ea(0,r*l));e.x||(e.x=k.x+k.hMargin*j-za(0,s*j));var k=(b=h.exporting)&&b.buttons||{},h=k.exportButton&&k.exportButton.enabled!==!1,k=k.printButton&&k.printButton.enabled!==
!1,B,C=g.buttons||(g.buttons=c.group("buttons"));e.add=function(a,b,d){var d=typeof d==="string"?{tooltip:d}:d||{},f=e.count===0?t-j*n.spacing*n.scale:t,f=d.x||(e.x+=f),g=d.tooltip||"";e.push(a=c.button(f,d.y||e.y,Ha,a,{width:s,height:r,r:v,id:e.count++,verticalPadding:n.symbolHPadding*q,horizontalPadding:n.symbolHPadding},C).attr({ishot:!0,fill:[n.fill,n.labelFill,n.symbolFill,n.hoverFill],stroke:[n.stroke,n.symbolStroke],"stroke-width":[n.strokeWidth,n.symbolStrokeWidth]}).tooltip(g).buttonclick(b));
return a};if(h)f.push(B=d.exportMenu=R({chart:a,labels:{style:i,hover:{color:"rgba(255, 255, 255, 1)"}},attrs:{fill:"rgba(255, 255, 255, 1)"},hover:{fill:u.tintshade(i.color,0.7)},items:function(b){var c=[],d;for(d in b)c.push({text:b[d],onclick:function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}}(d)});return c}(b.exportformats)})),d.exportButton=e.add("exportIcon",function(a,b){return function(){B.visible?B.hide():B.show({x:a,y:b+1})}}(e.x+s,e.y+r),{tooltip:"Export chart"});
if(k)d.printButton=e.add("printIcon",function(){a.print()},{tooltip:"Print chart"})},setMargins:function(){var a=this.paper,b=this.options.chart||{};this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=w(b.marginTop)||0;this.canvasLeft=w(b.marginLeft)||0;this.canvasWidth=w(a.width-(b.marginLeft||0)-(b.marginRight||0));this.canvasHeight=w(a.height-(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var a=
this.paper,c=this.layers,d=this.elements,e=c.background||(c.background=a.group("background")),c=d.background||(d.background=a.rect(e)),f=this.options.chart||{},g=G(f.borderWidth)||0,h=g*0.5,i=f.borderWidth||0,k=this.chartHeight,j=this.chartWidth,l=d.backgroundImage,n=f.bgSWF,q=f.bgSWFAlpha/100,r=f.bgImageDisplayMode,u=f.bgImageVAlign,t=f.bgImageHAlign,v=f.bgImageScale,w=i+","+i+","+(j-i*2)+","+(k-i*2),B,C,F,E,x,z,D;a.canvas.style.backgroundColor=f.containerBackgroundColor;c.attr({x:h,y:h,width:a.width-
g,height:a.height-g,stroke:f.borderColor,"stroke-width":g,fill:b(f.backgroundColor)});if(n)B=new Image,x=F=1,l=[],B.onload=function(){C=s(r,u,t,v,i,j,k,B);C["clip-rect"]=w;if(C.tileInfo){F=C.tileInfo.xCount;x=z=C.tileInfo.yCount;D=C.y;for(delete C.tileInfo;F;)if(z-=1,E?(l[void 0]=E.clone().attr({x:C.x,y:C.y}),e.appendChild(l[void 0])):l[void 0]=E=a.image(n,e).attr(C).css({opacity:q}),C.y+=C.height,z===0)z=x,F-=1,C.x+=C.width,C.y=D}else l[0]=a.image(n,e),l[0].attr(C).css({opacity:q}).attr({visibility:Ba,
"clip-rect":w})},B.src=n,d.backgroundImage=l},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,f=a.options,h=a.elements,i=f.chart,f=a.datasets=f.series,k=x(i.rendererId,i.defaultSeriesType),j=e.background,j=e.dataset=e.dataset||b.group("dataset").insertAfter(j);e.tracker=e.tracker||b.group("hot").insertAfter(j);var l,n;a.drawCanvas();a.drawAxes();if(!c)c=a.plots=a.plots||[],h.plots=c;e=0;for(h=f.length;e<h;e++){b=f[e]||{};j=b.updatePlot="updatePlot"+g(D(b.type,
b.plotType,k));j=a[j];l=b.drawPlot="drawPlot"+g(D(b.type,b.plotType,k));l=a[l]||a.drawPlot;if(!(n=c[e]))c.push(n={index:e,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:function(a,b){return function(e){var f=c[a],g,h={hcJSON:{series:[]}},i=h.hcJSON.series[a]||(h.hcJSON.series[a]={}),m=d.chartInstance.jsVars._reflowData;g=(e=x(e,!f.visible))?"visible":"hidden";v(f.graphics,function(a){a.attr("visibility",g)});f.visible=e;b.visible=e;i.visible=e;A(m,h,!0)}}(e,b),legendClick:function(b){return function(d,
e){a["legendClick"+k]&&a["legendClick"+k](c[b],d,e)||a.legendClick&&a.legendClick(c[b],d,e)}}(e),realtimeUpdate:function(b,d,e){return function(f,g){d.call(a,c[b],e,{numUpdate:f,hasAxisChanged:g})}}(e,j||l,b)}),b.plot=n,b.legendClick=n.legendClick,b.setVisible=n.setVisible;l.call(a,n,b)}i.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:Q,drawCanvas:Q,drawAxes:Q,drawScroller:function(){},drawLegend:function(){var m;var a=this,b=a.options,c=a.paper,d=b.chart||{},e=b.legend,f=e.scroll,
b={elements:{}},h=b.elements,i=a.layers.legend,j=h.box,l=h.caption,n=h.elementGroup,s=e.layout==="vertical",r=d.spacingTop,t=d.spacingBottom,v=d.spacingLeft,w=d.spacingRight,x=c.width,D=c.height,B=e.width,C=e.height,F=e.borderRadius,E=e.backgroundColor,L=e.borderColor,z=e.borderWidth||0,J=z*0.5,K=z*0.5+2,d=q(e.padding,4),G=d*0.5,H,Z,O,aa,Q,R,ga;s?(s=x-w-B,r=r+(D-t-r-C)*0.5+(e.y||0)):(s=v+(x-v-w-B)*0.5+(e.x||0),r=D-t-C);t=u.crispBound(s,r,B,C,z);s=t.x;r=t.y;B=t.width;C=t.height;if(!i)i=a.layers.legend=
c.group("legend").insertBefore(a.layers.tracker).translate(s,r);e.legendAllowDrag&&(Z=s,O=r,i.css({cursor:"move"}).drag(function(a,b){aa=R+a;Q=ga+b;aa+B+K>x&&(aa=x-B-K);Q+C+K>D&&(Q=D-C-K);aa<K&&(aa=K);Q<K&&(Q=K);i.translate(aa-Z,Q-O);Z=aa;O=Q},function(){R=Z;ga=O}));if(!j)j=h.box=c.rect(i);j.attr({x:0,y:0,width:B,height:C,r:F,stroke:L,"stroke-width":z,fill:E||"none",ishot:e.legendAllowDrag}).shadow(e&&e.shadow);f&&f.enabled?(H=C-d,j=","+B+","+H,n=h.elementGroup=c.group("legenditems",i).attr({"clip-rect":"0,"+
G+j}),m=h.scroller||(h.scroller=c.scroller(B-10+G-z,J,10,C-z,!1,{scrollPosition:f.scrollPosition||0,scrollRatio:(H+d)/e.totalHeight,showButtons:!1,displayStyleFlat:f.flatScrollBars},i)),f=m,f.attr("fill",e.legendScrollBgColor).scroll(function(b){n.transform(["T",0,(H-e.totalHeight)*b]);A(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):n=h.elementGroup=i;if(e.title&&e.title.text!==k){if(!l)l=h.caption=c.text(n);l.attr({text:e.title.text,title:e.title.originalText||
"",x:B*0.5,y:d,fill:e.title.style.color,"vertical-align":"top"}).css(e.title.style)}this["draw"+g(e.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var o;var m;var c=this.paper,d=this.options,e=d.series,f=d.chart.defaultSeriesType,d=d.legend,g=d.legendHeight,h=d.symbolPadding,i=d.textPadding||2,k=q(d.padding,4),j=d.itemHiddenStyle,l=d.itemStyle,n=l.color,j=j&&j.color||"#CCCCCC",s=d.symbolWidth,r=d.itemWidth,u=d.interactiveLegend!==!1,t=a.elements,v=t.elementGroup,a=a.item=[],t=t.item=
[],w=[],B={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},C,F,E,x,z,K,J,G,H,Z,O,aa,Q,R;Z=0;for(aa=e.length;Z<aa;Z+=1)if((E=e[Z])&&E.showInLegend!==!1)if(K=E.type||f,E.legendType==="point"){E=E.data||[];O=0;for(G=E.length;O<G;O+=1)if(z=E[O]||{},z.showInLegend!==!1)z._legendType=K,w.push(z)}else switch(E._legendType=K,K){case "pie":case "pie3d":case "funnel":case "pyramid":w=E.data;break;default:w.push(E)}w.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||0)||a.__i-b.__i});
d.reversed&&w.reverse();e=d.initialItemX||0;f=d.initialItemY||0;Z=0;for(aa=w.length;Z<aa;Z+=1)if(w[Z].showInLegend!==!1)if(O={elements:{},hiddenColor:j,itemTextColor:n},a.push(O),t.push(O.elements),C=w[Z],J=e+C._legendX+k,G=f+C._legendY-k,H=C._legendH,F=C._legendType||K,E=C.visible!==!1,x=O.itemLineColor=b(C.color||{}),z=u?function(a){return function(){a.legendClick()}}(C):fa,C.plot.legend=O,O.elements.legendItemBackground=c.rect(J,G,r,H,0,v).click(z).attr({fill:b(C.legendFillColor||ga),"stroke-width":1,
stroke:b(C.legendBorderColor||"none"),cursor:l.cursor||"pointer",ishot:u}),O.elements.legendItemText=c.text(J+g+i-2,G+(C._legendTestY||0),C.name,v).css(l).click(z).attr({fill:E?n:j,"vertical-align":"top","text-anchor":"start",cursor:l.cursor||"pointer",title:C.originalText||"",ishot:u}),B[F]){F=G+h+s*0.5;if(C.lineWidth)R=O.elements.legendItemLine=c.path(["M",J+h,F,"L",J+h+s,F],v).click(z).attr({"stroke-width":C.lineWidth,stroke:E?x:j,cursor:l.cursor||"pointer",ishot:u});if(C&&(Q=C.marker)&&Q.enabled!==
!1)O.symbolStroke=b(D(Q.lineColor&&(Q.lineColor.FCcolor&&Q.lineColor.FCcolor.color.split(",")[0]||Q.lineColor),x)),Q.fillColor&&Q.fillColor.FCcolor?(F=A({},Q.fillColor),F.FCcolor.alpha="100"):F=D(Q.fillColor,x),O.symbolColor=b(F),C=s*0.5,J=J+h+C,F=G+h+C,R&&(C*=0.6),G=Q.symbol.split("_"),x=G[0]==="spoke"?1:0,m=G[1]?O.elements.legendItemSymbol=c.polypath(G[1],J,F,C,Q.startAngle,x,v):O.elements.legendItemSymbol=c.circle(J,F,C,v),G=m,G.click(z).attr({cursor:l.cursor||"pointer",stroke:E?O.symbolStroke:
j,fill:E?O.symbolColor:j,"stroke-width":1,ishot:u})}else G=this.getSymbolPath(J+h,G+h,s,s,F,C),O.symbolColor=b(G.color),O.symbolStroke=b(G.strokeColor),o=O.elements.legendItemSymbol=c.path(G.path,v).click(z).attr({"stroke-width":G.strokeWidth,stroke:E?O.symbolStroke:j,fill:E?O.symbolColor:j,cursor:l.cursor||"pointer",ishot:u}),G=o;d.reversed&&w.reverse()},drawCaption:function(){var m;var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.elements,f=this.layers,g=
f.caption,h=e.caption,i=e.subcaption,k=b&&b.text,j=c&&c.text,l=(this.canvasLeft||0)+q(this.canvasWidth,d.width)/2,n=b.x,s=c&&c.x;if((k||j)&&!g)g=f.caption=d.group("caption"),f.tracker?g.insertBefore(f.tracker):g.insertAfter(f.dataset);if(k){if(!h)h=e.caption=d.text(g);if(n===void 0)n=l,b.align="middle";h.css(b.style).attr({text:b.text,fill:b.style.color,x:n,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",visibility:"visible",title:b.originalText||""})}else if(h)m=e.caption=
h.remove(),h=m;if(j){if(!i)i=e.subcaption=d.text(g);if(s===void 0)s=l,c.align="middle";i.css(c.style).attr({text:c.text,title:c.originalText||"",fill:c.style.color,x:s,y:k?h.attrs.y+h.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":c.align||"middle","vertical-align":"top",visibility:"visible"})}else if(i)e.subcaption=i.remove();if(!k&&!j&&g)f.caption=g.remove()},drawLogo:function(){var a=this.paper,b=this.elements,c=this.options,d=c.credits,e=c.chart||{},f=e.borderWidth||0,g=this.chartHeight,
h=this.chartWidth,i=b.logoImage,k=this.layers.tracker,j=e.logoURL,l=e.logoAlpha/100,n=e.logoPosition,q=e.logoLink,r=e.logoScale,u=e.logoLeftMargin,t=e.logoTopMargin,v=f+","+f+","+(h-f*2)+","+(g-f*2),c={tr:{vAlign:eb,hAlign:fb},bl:{vAlign:cb,hAlign:ab},br:{vAlign:cb,hAlign:fb},cc:{vAlign:"middle",hAlign:"middle"}},B,C;this.logic&&d.enabled&&a.text().attr({text:d.text,x:6,y:g-4,"vertical-align":cb,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:d.title||""}).css({fontSize:9,fontFamily:"Verdana",
cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:d.href})});if(j)B=new Image,(n=c[n])||(n={vAlign:eb,hAlign:ab}),B.onload=function(){C=s("none",n.vAlign,n.hAlign,r,f,h,g,B);i=a.image(j);k.appendChild(i);C["clip-rect"]=v;i.attr(C).translate(u,t).css({opacity:l});q&&i.css({cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:q})})},B.src=j,b.logoImage=i},legendClick:function(a,b,c){var d=a.legend,e=d.elements.legendItemText,f=d.elements.legendItemSymbol,
g=d.elements.legendItemLine,h=d.hiddenColor,k=d.itemLineColor,j=d.itemTextColor,l=d.symbolColor,n=d.symbolStroke,d=D(b,!a.visible);a.setVisible(b);c!==!0&&(b={datasetName:a.name,datasetIndex:a.index,id:a.userID,visible:d},i.raiseEvent("legenditemclicked",b,this.logic.chartInstance));d?(f.attr({fill:l||k,stroke:n}),e.attr({fill:j}),g&&g.attr({stroke:k})):(f.attr({fill:h,stroke:h}),e.attr({fill:h}),g&&g.attr({stroke:h}));if((a=this.datasets&&this.datasets[a.index]&&this.datasets[a.index].relatedSeries)&&
a instanceof Array&&a.length>0)for(e=a.length;e--;)f=parseFloat(a[e]),(f=this.plots[f])&&f.legend&&f.legendClick.call(f,d,!1)},exportChart:function(a){var b=this.elements,c=b.printButton,d=b.exportButton,e=this.fusionCharts,f=e.id,g=this.paper,h=this.options,a=typeof a==="object"&&function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(a)||{},j=A(A({},h.exporting),a),q=(j.exportformat||"png").toLowerCase(),a=j.exporthandler,s=(j.exportaction||k).toLowerCase(),b=j.exporttargetwindow||k,
r=j.exportfilename,u=j.exportparameters,t;if(!h.exporting||!h.exporting.enabled||!a)return!1;c&&c.attrs.visibility!="hidden"&&c.attr({visibility:"hidden"});d&&d.attrs.visibility!="hidden"&&d.attr({visibility:"hidden"});h=g.toSVG();c&&c.attr({visibility:"visible"});d&&d.attr({visibility:"visible"});h=h.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");q==="pdf"&&(h=h.replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/ig,function(a,b){var c=U.exec(a)||
k,d=W.exec(a)||k;return a+"<"+b+c+d+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'}));c={charttype:e.src,stream:h,stream_type:"svg",meta_bgColor:j.bgcolor||"",meta_DOMId:e.id,meta_width:g.width,meta_height:g.height,parameters:["exportfilename="+r,"exportformat="+q,"exportaction="+s,"exportparameters="+u].join("|")};if(s==="download"){if(/webkit/ig.test(navigator.userAgent)&&b==="_self"&&(b=d=f+"export_iframe",!this.exportIframe))this.exportIframe=
d=n("IFRAME",{name:d,width:"1px",height:"1px"},M.body),d.style.cssText="position:absolute;left:-10px;top:-10px;";a=n("form",{method:"POST",action:a,target:b,style:"display:none;"},M.body);for(t in c)n("input",{type:"hidden",name:t,value:c[t]},a);a.submit();M.body.removeChild(a);a=void 0}else t=new i.ajax(function(a){var b={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,c,d,e){b[c]=e});l.raiseEvent("exported",b,e,[b])},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:f,
width:g.width,height:g.height};l.raiseEvent("exported",a,e,[a])}),t.post(a,c);return!0},print:function(){var a=this,b=a.container,c=a.elements,e=c.printButton,f=c.exportButton,g=[],h=b.parentNode,c=M.body,i=c.childNodes;if(!a.isPrinting)a.isPrinting=!0,v(i,function(a,b){if(a.nodeType==1)g[b]=a.style.display,a.style.display="none"}),e&&e.attrs.visibility!="hidden"&&e.attr({visibility:"hidden"}),f&&f.attrs.visibility!="hidden"&&f.attr({visibility:"hidden"}),c.appendChild(b),d.print(),setTimeout(function(){e&&
e.attr({visibility:"visible"});f&&f.attr({visibility:"visible"});h.appendChild(b);v(i,function(a,b){if(a.nodeType==1)a.style.display=g[b]});a.isPrinting=!1},1E3)},getSymbolPath:function(a,b,c,d,e,f){var g=["M"],h,i,j,l;h=(f.color&&Ia(typeof f.color==="string"?f.color:f.color.FCcolor.color)||k).replace(J,"");i=Ta(h,40);l=bb(h,60).replace(J,ja);h={FCcolor:{color:h+","+h+","+i+","+h+","+h,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}};switch(e){case "column":case "dragcolumn":case "column3d":i=
c*0.25;j=i*0.5;e=d*0.7;f=d*0.4;g=g.concat([a,b+d,"l",0,-e,i,0,0,e,"z","m",i+j,0,"l",0,-d,i,0,0,d,"z","m",i+j,0,"l",0,-f,i,0,0,f,"z"]);h.FCcolor.angle=270;break;case "bar":case "bar3d":i=c*0.3;j=c*0.6;e=d/4;f=e/2;g=g.concat([a,b,"L",a+j,b,a+j,b+e,a,b+e,"Z","M",a,b+e+f,"L",a+c,b+e+f,a+c,b+e+f+e,a,b+2*e+f,"Z","M",a,b+2*(e+f),"L",a+i,b+2*(e+f),a+i,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":e=d*0.6;f=d*0.2;d*=0.8;g=g.concat([a,b+d,"L",a,b+e,a+c*0.3,b+f,a+c*0.6,b+
e,a+c,b+f,a+c,b+d,"Z"]);h.FCcolor.angle=270;break;case "pie":case "pie3d":i=c/2;j=c*0.7;e=d/2;g=g.concat([a+i,b+e,"L",a+j,b,"A",i,e,0,0,0,a,b+e,"L",a+i,b+e,"M",a+i,b+e,"L",a,b+e,"A",i,e,0,0,0,a+j,b+d,"L",a+i,b+e,"M",a+i,b+e,"L",a+j,b+d,"A",i+1,e+1,0,0,0,a+j,b,"Z"]);break;case "boxandwhisker2d":g=g.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);h=f.color;l="#000000";break;default:g=g.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),h.FCcolor.angle=270,h.FCcolor.ratio="0,70,30"}return{path:g,color:h,strokeWidth:0.5,
strokeColor:l}}});var Ma=function(a,b,c,d){this.axisData=a||{};b=this.renderer=b;a=b.paper;this.globalOptions=b.options;var e=b.layers,b=c?"y-axis":"x-axis",f=this.layerAboveDataset=e.layerAboveDataset,g=this.layerBelowDataset=e.layerBelowDataset,e=f.bands||(f.bands=[]),h=e.length,i=g.bands||(g.bands=[]),j=i.length,k=f.lines||(f.lines=[]),l=k.length,n=g.lines||(g.lines=[]),q=n.length,f=f.labels||(f.labels=[]),s=f.length,g=g.labels||(g.labels=[]),r=g.length;this.isVertical=c;this.topBandGroup=this.topBandGroup||
a.group(b+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||a.group(b+"-bands",this.layerBelowDataset);e.push(this.topBandGroup);h&&e[h].insertAfter(e[h-1]);i.push(this.belowBandGroup);j&&i[j].insertAfter(i[j-1]);this.topLineGroup=this.topLineGroup||a.group(b+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||a.group(b+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||a.group(b+"-labels",this.layerAboveDataset);this.belowLabelGroup=
this.belowLabelGroup||a.group(b+"-labels",this.layerBelowDataset);k.push(this.topLineGroup);l&&k[l].insertAfter(k[l-1]);n.push(this.belowLineGroup);q&&n[q].insertAfter(n[q-1]);f.push(this.topLabelGroup);s&&f[s].insertAfter(f[s-1]);g.push(this.belowLabelGroup);r&&g[r].insertAfter(g[r-1]);this.isReverse=d;this.configure()};Ma.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,f=e.chart,g=f.marginBottom,f=f.marginRight,h=b.canvasTop,i=b.canvasLeft,
j=this.min=a.min,j=this.span=(this.max=a.max)-j,i=this.startX=q(a.startX,i),h=this.startY=q(a.startY,h),k=this.endX=q(a.endX,b.canvasRight),a=this.endY=q(a.endY,b.canvasBottom);this.startPixel=d?c?a:k:c?h:i;c=this.pixelRatio=c?(a-h)/j:(k-i)/j;this.pixelValueRatio=d?-c:c;d=this.relatedObj={};d.marginObj={top:h,right:f,bottom:g,left:i};d.canvasObj={x:i,y:h,w:k-i,h:a-h,toX:k,toY:a};this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};this.elements=
this.elements||{};if(this.belowBandGroup)b.elements.axes=b.elements.axes||{},b.elements.axes.belowBandGroup=this.belowBandGroup,e&&e.chart&&e.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":b.elements["clip-canvas"]});this.poi={}},draw:function(){var a=this.axisData,b=a&&a.plotLines||[],c=a&&a.plotBands||[],d=a&&a.showLine,e=a&&a.tickLength,f=a&&a.tickWidth;a&&a.title&&this.drawAxisName();b&&b.length>0&&this.drawPlotLine();c&&c.length>0&&this.drawPlotBands();!isNaN(e)&&e!=0&&!isNaN(f)&&f!=
0&&this.drawTicks();d&&this.drawLine()},scroll:function(){},setOffset:function(a,b){var c=h?this.startY:this.startX,d=h?this.endY:this.endX,e=this.cache.hashTable,f=this.primaryOffset=a||this.primaryOffset,g=this.secondaryOffset=b||this.secondaryOffset,h=this.isVertical,i,j,k,l=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],n,q,s;n=0;for(q=l.length;n<q;n+=1)if(k=l[n])i=h?g:f,j=h?f:g,k.attr({transform:"t"+i+","+j});if(!h)for(s in e)if(n=
parseFloat(s)+f,n<c||n>d){g=e[s];n=0;for(q=g.elements.length;n<q;n+=1)h=g.elements[n],h.attr("visibility")==="visible"&&h.attr({visibility:"hidden"})}else if(n>c&&n<d){g=e[s];n=0;for(q=g.elements.length;n<q;n+=1)h=g.elements[n],h.attr("visibility")==="hidden"&&h.attr({visibility:"visible"})}},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=this.layerBelowDataset,f=this.tickGroup=this.tickGroup||b.group("axis-ticks",f),g=
this.relatedObj.canvasObj,h=a.offset,i=a.opposite,j=a.showAxis,k=a.tickInterval,l=a.tickLength,n=a.tickWidth,a=a.tickColor,q=c;if(e&&j){c=this.getAxisPosition(c);e=this.getAxisPosition(d);g=!i?g.x-h:g.toX+h;for(b.path(["M",g,c,"L",g,e],f).attr({stroke:a,"stroke-width":n});oa(q)<=d;)h=this.getAxisPosition(q),c=!i?g-l:g+l,b.path(["M",g,h,"L",c,h],f).attr({stroke:a,"stroke-width":n}),q+=k}},getAxisPosition:function(a,b){var c;b?c=(a-this.startPixel)/this.pixelValueRatio+this.min:(a=this.axisData.reversed?
this.min+(this.max-a):a,c=this.startPixel+(a-this.min)*this.pixelValueRatio);return c},drawPlotLine:function(){for(var c=this.renderer,d=c.paper,e=this.isVertical,f=+!e,g=this.belowLineGroup,h=this.topLineGroup,i=this.belowLabelGroup,j=this.topLabelGroup,l=this.axisData.plotLines||[],n=this.lines=this.lines||[],s=this.labels=this.labels||[],r=this.relatedObj.canvasObj,u=this.globalOptions||{},t=this.elements||{},v=this.cache||{},w=v.hashTable,x=v.indexArr,D=e?this.startY:this.startX,B=e?this.endY:
this.endX,C=this.primaryOffset,F=parseFloat(c.canvasBorderWidth)||0,E,L=(c.tooltip||{}).enabled!==!1,z,A,G,J,K,H,O,aa,Q,R,M,U,ha,da,ea,X,Y=0,W=0,ja,Na,Ja,fa,sa,ia,Ca,la,qa=u.chart.xDepth||0,oa,ra,Ea,Ba,wa,Da,ya,Ka,Ha,La,Ga,Ta=za(l.length,za(n.length,s.length)),Pa,Ia,Ma,Za,v=[],ta,u=0;u<Ta;u+=1){A=G=J=null;fa=H="visible";A=n[u];G=s[u];Ha=(O=l[u])&&O.width;M=(E=O&&O.label)&&E.style;if(!A&&O){if(ra=O.zIndex>3?h:g,Ha>0.1)A=n[u]=d.path(ra).css(O.style),t.lines=t.lines||[],t.lines.push(A)}else if(!O&&(A||
G))A&&A.remove(),G&&G.remove(),n&&(n[u]=null),s&&(s[u]=null),t&&t.lines&&(t.lines[u]=null),t&&t.labels&&(t.labels[u]=null);if(O){if(!G&&E&&!O.stepped){if(E.text!=k&&E.text!=" "){G=O.zIndex>=3?j:i;G=s[u]=d.text(G).css(M);if(A)A.label=G;t.labels=t.labels||[];t.labels.push(G)}}else if(G)if(E)if(E.text===k||E.text===" ")G.isRotationSet=!1,G.remove(),delete G,s&&(s[u]=null),t&&t.labels&&(t.labels[u]=null);else{if(O&&O.stepped)G.isRotationSet=!1,G.remove(),delete G,s&&(s[u]=null),t&&t.labels&&(t.labels[u]=
null)}else G.isRotationSet=!1,G.remove(),delete G,s&&(s[u]=null),t&&t.labels&&(t.labels[u]=null);if(!A&&!G)A=G=null;else if(O.value!==null){if(O)Ba=O.isVline,wa=O.isTrend,Da=O.isGrid,z=O.tooltext,ya=O.value,Ka=O.color,La=O.dashStyle,Ga=wa?O.to:null,aa=O._isStackSum;if(E)Q=E.text,R=M&&M.color,da=E.offsetScaleIndex||0,ea=E.offsetScale,U=M&&M.fontSize,ha=M&&M.lineHeight,X=E.rotation,Y=E.x||0,W=E.y||0,ja=E.align,Na=E.verticalAlign,Ja=E.textAlign;U&&(Ia=U,Ia.indexOf("px")!==-1&&(Ia=Ia.replace("px",""),
Ia=parseFloat(Ia)));ha&&(Ma=ha,Ma.indexOf("px")!==-1&&(Ma=Ma.replace("px",""),Ma=parseFloat(Ma)));e?(M=this.getAxisPosition(ya),K=wa?this.getAxisPosition(Ga)||M:M,Ea=M!==K?!0:!1,ra=["M",r.x,M,"L",r.toX,K],Ba?c.logic.isBar&&(Ca=c.yAxis[da],!isNaN(ea)&&ea>=0&&ea<=1&&(ea=Ca.min+(Ca.max-Ca.min)*ea),ia=Ca.getAxisPosition(ea||ya)+Y):ia=E?sa=this.axisData.isOpposite||ja==="right"?r.toX+Y:r.x+Y:sa=this.axisData.isOpposite?r.toX:r.x):(sa=wa?this.getAxisPosition(ya):this.getAxisPosition(ya)||0,ia=wa?this.getAxisPosition(Ga)||
sa:sa,!wa&&!Ba&&qa>0&&(sa+=qa,ia+=qa,B+=qa),Ea=sa!==ia?!0:!1,ra=["M"+sa,r.y,"L",ia,r.toY],H=sa+C<D||sa+C>B?"hidden":H,Ba?(Ca=c.yAxis[da],!isNaN(ea)&&ea>=0&&ea<=1&&(ea=Ca.min+(Ca.max-Ca.min)*(1-ea)),M=Ca.getAxisPosition(ea||ya)+W,M-=F+parseFloat(oa)):this.axisData.opposite||Na==="top"&&!Da?(M=r.y+W,Pa="bottom"):M=r.toY+W,K=M);if(G){if(E&&E.backgroundColor)E.labelBgClr=b({color:E.backgroundColor,alpha:E.backgroundOpacity*100});if(E&&E.borderColor)E.labelBorderClr=b({color:E.borderColor,alpha:"100"});
la=wa?ja==="left"?M:K:K;Ca=ia-+!Ba*f*qa;Ca=ia-+!Ba*f*qa+f*(Y||0);oa=(oa=E&&E.borderWidth)?oa.indexOf("px")!==-1?oa.replace("px",""):1:1;Za=Ia?Ia*0.2:2;fa=!e?ia+C<D||ia+C>B?"hidden":fa:fa;K=Ja==="left"?"start":Ja==="right"?"end":"middle";aa?(Pa="bottom",la+=Ia*0.4,v.push(G)):f&&this.axisData.opposite?(Pa=cb,K=X?"start":"middle"):Pa=Na;/\n|<br\s*?\/?>/ig.test(Q)&&!X&&Da&&(Pa=f&&this.axisData.opposite&&!X?"middle":eb,la-=Ma);G.attr({transform:" "});G.attr({text:Q,fill:R||Ka,"text-bound":E&&[E.labelBgClr,
E.labelBorderClr,oa,Za],title:E&&(E.originalText||""),x:Ca,y:la,"text-anchor":K,"vertical-align":Pa,visibility:fa});X&&G.rotate(X,Ca,la);fa=e?la.toString():ia.toString();(E=w[fa])?E.elements.push(G):(E={counter:u,keyProp:fa,elements:[G]},w[fa]=E,x.push(E))}A&&(A.attr({path:ba(ra,Ha),stroke:Ka,"stroke-width":Ha,"shape-rendering":!Ea&&Ha>=1?V:void 0,"stroke-dasharray":La?La:void 0,visibility:H}),L&&z&&Ha<a&&H&&(J=d.path(ra).attr({stroke:ga,"stroke-width":a,ishot:!0})),J=J||A,L&&J.tooltip(z),fa=e?M.toString():
sa.toString(),(E=w[fa])?E.elements.push(A):(E={counter:u,keyProp:fa,elements:[A]},w[fa]=E,x.push(E)));if(O&&O.isMinLabel)this.poi.min={label:G,index:u,line:A};else if(O&&O.isMaxLabel)this.poi.max={label:G,index:u,line:A};else if(O&&O.isZeroPlane)this.poi.zero={label:G,index:u,line:A};A=G=null}}}d=v.length;ta=q(c.options.plotOptions.series.animation.duration,0);if(d>0)for(u=0;u<d;u+=1)(c=v[u])&&function(a){a.hide();setTimeout(function(){a.show()},ta)}(c)},drawPlotBands:function(){var a=this.renderer,
c=a.paper,d=this.isVertical,e=a.options.chart.hasScroll,f=this.belowBandGroup,g=this.topBandGroup,h=this.belowLabelGroup,i=this.topLabelGroup,j=this.axisData.plotBands||[],k=this.bands=this.bands||[],l=this.bandLabels=this.bandLabels||[],n=this.relatedObj.canvasObj,s=this.elements||{},r=this.cache||{},u=r.hashTable,r=r.indexArr,t=d?this.startY:this.startX,v=d?this.endY:this.endX,w=this.primaryOffset,a=(a.tooltip||{}).enabled!==!1,B,C,x,E,L,z,A,D,G,K,J,O,H,aa,Q,M,R,ha,ga,U,ea,Y,V,da,X,W,ba,sa,ja,Ca,
fa,ia,la,ra,qa=za(j.length,k.length);for(ra=0;ra<qa;ra+=1){C=E="visible";x=k[ra];L=l[ra];H=(O=(z=j[ra])&&z.label)&&O.style;if(!x&&z){if(x=z.zIndex>3?g:f,ia=z.zIndex>3?i:h,x=k[ra]=c.rect(x),s.bands=s.bands||[],s.bands[ra]=x,O&&O.text)L=l[ra]=x.label=c.text(ia).css(H),s.labels=s.labels||[],s.labels[ra]=L}else if(!z&&x){s.labels&&(l[ra]=s.labels[ra]=null);x.label&&x.label.remove();k[ra]=s.bands[ra]=null;x.remove();delete x;continue}if(z)B=z.tooltext,A=z.to,D=z.from,G=z.value,K=z.width,J=z.color;if(O)ha=
H&&H.fontSize,ga=H&&H.lineHeight,aa=O.borderWidth,Q=O.align,M=O.x,R=O.y,Y=O.text,V=O.originalText,da=H&&H.color,X=O.backgroundColor,W=O.backgroundOpacity,ba=O.borderColor,U=O.textAlign,ea=O.verticalAlign,sa=O.borderType;ha&&(z=ha,z.indexOf("px")!==-1&&(z=z.replace("px",""),parseFloat(z)));ga&&(z=ga,z.indexOf("px")!==-1&&(z=z.replace("px",""),parseFloat(z)));la=this.getAxisPosition(q(A,G));fa=this.getAxisPosition(q(D,G));H=d?n.x:fa;z=d?la:n.y;ia=d?n.w:(!this.axisData.reversed?la-fa:fa-la)||K||1;la=
d?fa-la||1:n.h;fa=H+ia;ia=Ka(ia);la<0&&(la=Ka(la),z-=la);E=e?!0:!d?H+w>v||fa+w<t?"hidden":E:E;x&&(x.attr({x:H,y:z,width:ia,height:la,fill:b(J),"stroke-width":0,visibility:E}),a&&B&&x.tooltip(B));if(L&&O){(E=aa)&&E.indexOf("px")!==-1&&E.replace("px","");E=d?Q==="right"?n.toX+M:n.x+M:H+ia/2;x=d?z+la/2:n.toY+R;C=!d?E+w<t||E+w>v?"hidden":C:C;if(X)ja=O.labelBgClr=b({color:X,alpha:W*100});if(ba)Ca=O.labelBorderClr=b({color:ba,alpha:"100"});U=U==="left"?"start":U==="right"?"end":"center";L.attr({text:Y,
title:V||"",fill:da,"text-bound":[ja,Ca,aa,ha*0.2,sa==="solid"?!1:!0],x:E,y:x,"text-anchor":U,"vertical-align":ea,visibility:C});O=d?x.toString():E.toString();(C=u[O])?C.elements.push(L):(C={counter:ra,keyProp:O,elements:[L]},u[O]=C,r.push(C))}}},drawAxisName:function(){var m;var a=this.axisData,c=a.title||{},d=c&&c.style,e=c.align,f=c.centerYAxisName||!1,g=this.renderer.paper,h=this.isVertical,i=this.relatedObj.canvasObj,j=q(a.offset,0)+q(c.margin,0),k=c.text||"",l=this.name||void 0,a=a.opposite,
n=this.layerBelowDataset,n=n.nameGroup=n.nameGroup||g.group("axis-name",n),s=q(c.rotation,!a?270:90),r=h?a?i.toX+j:i.x-j:(i.x+i.toX)/2,u,t,v,w,B;if(d)t=d.color,v=b({color:d.backgroundColor,alpha:100}),w=b({color:d.borderColor,alpha:100}),(m=(d=d.border)&&d.split(" "),d=m)&&d.length>0&&(B=d[0].indexOf("px")!=-1?parseFloat(d[0].replace("px","")):parseFloat(d[0]));f=h?e==="low"?i.toY:f?(i.y+i.toY)/2:this.renderer.chartHeight/2:i.toY+j;!l&&k?l=this.name=g.text(n).css(c.style):!k&&l&&l.remove();if(!isNaN(s)&&
s&&h)u=c.style.fontSize,u=u.indexOf("px")!=-1?u.replace("px",""):u,r=a?r+parseFloat(u):r-parseFloat(u);l&&l.attr({text:k,title:c.originalText||"",fill:t||"#000000","text-bound":[v,w,B,u*0.1],"text-anchor":e==="low"?!a?"start":"end":"middle","vertical-align":h?!s?"middle":"top":a?cb:"top",transform:h?"t"+r+","+f+"r"+s:"t"+r+","+f});this.elements.name=l},drawLine:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=a.opposite,g=this.layerBelowDataset,g=this.lineGroup=
this.lineGroup||b.group("axis-lines",g),h=a.lineColor,a=a.lineThickness,i=this.relatedObj.canvasObj,j;e?(c=this.getAxisPosition(c),d=this.getAxisPosition(d),e=j=!f?i.x:i.toX):(e=i.x,j=i.toX,c=d=!f?i.toY:i.y);this.elements.axisLine=b.path(["M",e,c,"L",j,d],g).attr({stroke:h,"stroke-width":a})},realtimeUpdateX:function(a){if(a>0){for(var b=this.axisData.plotBands,c=this.min+a,d,e=b.length;e--;)if((d=b[e])&&!d.isNumVDIV)d.value<c||d.from<c||d.to<c?b.splice(e,1):(d.value!==void 0&&(d.value-=a),d.from!==
void 0&&(d.from-=a),d.to!==void 0&&(d.to-=a));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(a,b){var c=this.axisData,d=this.min=c.min=a,c=this.span=(this.max=c.max=b)-d,c=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/c:this.relatedObj.canvasObj.w/c;this.pixelValueRatio=this.isReverse?-c:c;this.drawPlotLine();this.drawPlotBands()}};Ma.prototype.constructor=Ma;var Ga=function(a,b,c,d){return ya(b-c[1]-d.top,a-c[0]-d.left)};r("renderer.cartesian",{drawCanvas:function(){var m;
var a=this.options.chart||{},c=a.plotBackgroundColor,d=this.paper,f=this.elements,g=f.canvas,h=f.canvas3DBase,i=f.canvas3dbaseline,h=f.canvasBorder,j=f.canvasBg,k=this.canvasTop,l=this.canvasLeft,n=this.canvasWidth,s=this.canvasHeight,r=q(a.plotBorderRadius,0),j=a.plotBorderWidth,t=j*0.5,v=a.plotBorderColor,w=a.isBar,x=a.is3D,A=a.showCanvasBg,B=a.canvasBgDepth,C=a.showCanvasBase,F=a.canvasBaseColor3D,E=a.canvasBaseDepth,L=a.plotShadow,z=e&&j===0&&L&&L.enabled,D=a.xDepth||0,a=a.yDepth||0,G=this.layers,
K=G.background,H=G.dataset;G.tracker=G.tracker||d.group("hot").insertAfter(H);G.datalabels=G.datalabels||d.group("datalabels").insertAfter(H);m=G.canvas=G.canvas||d.group("canvas").insertAfter(K),G=m;if(!h)f.canvasBorder=d.rect(l-t,k-t,n+j,s+j,r,G).attr({"stroke-width":j,stroke:v,"stroke-linejoin":j>2?"round":"miter"}).shadow(L);f["clip-canvas"]=[za(0,l-D),za(0,k-a),za(1,n+D*2),za(1,s+a*2)];f["clip-canvas-init"]=[za(0,l-D),za(0,k-a),1,za(1,s+a*2)];if(x){if(A)j=w?f.canvasBg=d.path(["M",l,",",k,"L",
l+B*1.2,",",k-B,",",l+n-B,",",k-B,",",l+n,",",k,"Z"],G):f.canvasBg=d.path(["M",l+n,",",k,"L",l+n+B,",",k+B*1.2,",",l+n+B,",",k+s-B,",",l+n,",",k+s,"Z"],G),j.attr({"stroke-width":0,stroke:"none",fill:b(c)});if(C){h=w?f.canvas3DBase=d.cubepath(l-D-E-1,k+a+1,E,s,D+1,a+1,G):f.canvas3DBase=d.cubepath(l-D-1,k+s+a+1,n,E,D+1,a+1,G);h.attr({stroke:"none","stroke-width":0,fill:F.replace(J,ja)});if(!i)i=f.canvas3dbaseline=d.path(void 0,G);i.attr({path:w?["M",l,k,"V",s+k]:["M",l,k+s,"H",n+l],stroke:u.tintshade(F.replace(J,
ja),0.05).rgba})}}if(!g&&c)f.canvas=d.rect(l,k,n,s,r,G).attr({"stroke-width":0,stroke:"none",fill:b(c)}).shadow(z)},drawAxes:function(){var a=this.logic,b=this.options,c=this.paper,d=this.layers,e=d.dataset,f=d.layerBelowDataset=d.layerBelowDataset||c.group("axisbottom"),g=d.layerAboveDataset=d.layerAboveDataset||c.group("axistop"),c=this.xAxis=[],d=this.yAxis=[];f.insertBefore(e);g.insertAfter(e);if(b.xAxis&&b.xAxis.length){e=0;for(f=b.xAxis.length;e<f;e+=1)c[e]=this.xAxis[e]=new Ma(b.xAxis[e],this,
a.isBar)}else c[0]=this.xAxis[0]=new Ma(b.xAxis,this,a.isBar);if(b.yAxis){e=0;for(f=b.yAxis.length;e<f;e+=1)d[e]=this.yAxis[e]=new Ma(b.yAxis[e],this,!a.isBar,!a.isBar)}e=0;for(f=d.length;e<f;e+=1)d[e].draw();e=0;for(f=c.length;e<f;e+=1)c[e].draw()},drawScroller:function(){var a=this,b=a.options,c=a.paper,d=a.layers,e=a.xAxis["0"]||{},f=(e.axisData||{}).scroll||{},g=a.canvasTop,h=a.canvasLeft,i=a.canvasWidth,k=a.canvasHeight,j=Ea(a.canvasBorderWidth,2),l,n,s,r,u,t,v,B,C,x,E,L,z,G,D,K=d.dataset,J=
d.datalabels,H=d.tracker;r=d.layerAboveDataset;var O,aa;if(f.enabled)O=d.scroll=d.scroll||c.group("scroll").insertAfter(r),r=f.scrollRatio,b=q(b[ea].xAxisScrollPos,f.startPercent),u=f.viewPortMax,t=f.viewPortMin,n=f.vxLength,v=$a(n),B=f.buttonWidth,C=f.height,x=f.padding,E=f.color,L=f.flatScrollBars,n=f.windowedCanvasWidth=e.getAxisPosition(n),l=f.fullCanvasWidth=e.getAxisPosition(u-t)-n,s=w(b*l),z=a.fusionCharts.jsVars._reflowData,G={hcJSON:{_FCconf:{xAxisScrollPos:0}}},D=G.hcJSON._FCconf,d.scroller=
c.scroller(h-j,g+k+x,i+j*2,C,!0,{showButtons:!0,displayStyleFlat:L,buttonWidth:B,scrollRatio:r,scrollPosition:b},O).data("fullCanvasWidth",l).data("windowedCanvasWidth",n).attr({"scroll-display-style":L,fill:E}).scroll(function(b){s=-w(b*l);K&&K.transform(["T",s,0]);J&&J.transform(["T",s,0]);H&&H.transform(["T",s,0]);e.setOffset&&e.setOffset(s);scrollStateObj={position:b,direction:b-f.lastPos||0,vxLength:v};D.xAxisScrollPos=f.lastPos=b;A(z,G,!0);if(scrollStateObj.direction!==0)for(aa=0;aa<a.datasets.length;aa++)a[a.datasets[aa].drawPlot+
"Scroll"]&&a[a.datasets[aa].drawPlot+"Scroll"].call(a,a.plots[aa],a.datasets[aa],scrollStateObj)});return f.enabled},finalizeScrollPlots:function(){var a=this,b=a.container,c=a.elements,d=a.layers,e=d.scroller,g=d.dataset,h=d.datalabels,d=d.tracker,i,j={},k,n=a.xAxis["0"]||{},s=(n.axisData||{}).scroll||{},r=q(a.options[ea].xAxisScrollPos,s.startPercent),u=s.fullCanvasWidth;s.enabled&&(g.attr({"clip-rect":c["clip-canvas"]}),h.attr({"clip-rect":c["clip-canvas"]}),d.attr({"clip-rect":c["clip-canvas"]}),
c=function(b){var c=a.elements.canvas,d=i.left,g=i.top,h=b.type,o=f&&l.getTouchEvent(b)||K,d=b.layerX||o.layerX||(b.pageX||o.pageX)-d,b=b.layerY||o.layerY||(b.pageY||o.pageY)-g;switch(h){case "dragstart":k=c.isPointInside(d,b);j.ox=k&&d||null;if(!k)return!1;break;case "dragend":k=!1;j={};break;default:if(!k)break;c=d-j.ox;j.ox=d;j.scrollPosition=e.attrs["scroll-position"]-c/u;e.attr({"scroll-position":j.scrollPosition})}},f&&(i=l.getPosition(b),b&&(H(b,"dragstart drag dragend",c),ia(b,"dragstart drag dragend",
c))),r>0&&(b=-w(r*u),g&&g.transform(["T",b,0]),h&&h.transform(["T",b,0]),d&&d.transform(["T",b,0]),n.setOffset&&n.setOffset(b)))},drawPlotColumn:function(c,d,e){var f=this,h=c.data,i=h.length,j=c.items,k=c.graphics||(c.graphics=[]),l=f.paper,n=f.logic,s=f.layers,r=f.options,t=f.elements,v=r.chart,x=(r.tooltip||{}).enabled!==!1,A=f.definition.chart,K=r.plotOptions.series,J=f.xAxis[d.xAxis||0],B=f.yAxis[d.yAxis||0],C=B.axisData.reversed,F=n.isLog,E=n.is3D,L=n.isStacked,z=n.isWaterfall,H=n.isCandleStick,
Q=D(J.axisData.scroll,{}),M=e||{},R=Q.enabled,r=q(M.position,r[ea].xAxisScrollPos,Q.startPercent),Z=M.vxLength||$a(Q.vxLength),O=M.scrollStart||za(0,w((i-Z)*r)-1)||0,M=M.scrollEnd||Ea(i,O+Z+2)||i,Q=v.canvasBorderOpacity=u.color(v.plotBorderColor).opacity,r=f.canvasBorderWidth,Q=v.isCanvasBorder=Q!==0&&r>0,U;g(n.name);var n=e!==Ha?0:isNaN(+K.animation)&&K.animation.duration||K.animation*1E3,V=d.numColumns||1,da=d.columnPosition||0,r=v.use3DLighting,X=d.visible===!1?"hidden":"visible",W=v.overlapColumns,
ha=J.getAxisPosition(0),ha=J.getAxisPosition(1)-ha,ba=A&&A.plotspacepercent,ja=q(A&&A.plotpaddingpercent),A=K.groupPadding,fa=K.maxColWidth,A=(1-ba*0.01)*ha||Ea(ha*(1-A*2),fa*V),ba=A/2;A/=V;var Y=Ea(A-1,V>1?!W&&ja===Ha?4:ja>0?A*ja/100:0:0),da=da*A-ba+Y/2,ia=B.max,Oa=B.min,V=ia>0&&Oa>=0,W=ia<=0&&Oa<0,ja=ia>0&&Oa<0,ba=W||C&&V?ia:F||V?Oa:0;U=B.yBasePos=B.getAxisPosition(ba);var fa=q(v.useRoundEdges,0),Na=K.dataLabels.style,Ja=s.dataset=s.dataset||l.group("dataset-orphan"),qa=s.datalabels=s.datalabels||
l.group("datalabels").insertAfter(Ja),s=s.tracker,sa=f.canvasTop,oa=f.canvasLeft,Ca=f.canvasWidth,Ba=f.canvasBottom,Da=f.canvasRight,ya,ra,Ia;parseInt(Na.lineHeight,10);var La,wa,Ga,Ma,Pa,Ta;!e&&qa.hide();A-=Y;R&&O>M-Z-2&&(O=za(0,M-Z-2));if(L)Ta=Ja.shadows||(Ja.shadows=l.group("shadows",Ja).toBack());Y=Ja.column||(Ja.column=l.group("columns",Ja));!H&&!E&&!R&&(Y.attrs["clip-rect"]||Y.attr({"clip-rect":t["clip-canvas"]}));z&&Y.toBack();if(E){ra=v.xDepth||0;Ia=v.yDepth||0;e=Y.negative=Y.negative||l.group("negative-values",
Y);Z=Y.column=Y.column||l.group("positive-values",Y);Ma=Y.zeroPlane;if(!Ma&&Oa<0&&ia>=0)Ma=Y.zeroPlane=l.group("zero-plane",Y).insertBefore(Z),ya=v.zeroPlaneColor,t.zeroplane=l.cubepath(oa-ra,U+Ia,Ca,1,ra,Ia,Ma).attr({fill:[ya,!r],stroke:"none","stroke-width":1});if(!(Ma=e.data("categoryplots")))e.data("categoryplots",Array(i)),Ma=e.data("categoryplots");if(!(ya=Z.data("categoryplots")))Z.data("categoryplots",Array(i)),ya=Z.data("categoryplots");for(t=0;t<i;t+=1)Ma[t]=Ma[t]||l.group(e),ya[t]=ya[t]||
l.group(Z)}else Pa=Y;for(t=O;t<M;t+=1){v=h[t];O=v.y;i=v.toolText;e=Z=null;if(O===null){if(Na=j[t])e=Na.graphic,E||e.attr({height:0})}else{La=!1;Oa=q(v.x,t);wa=v.link;ia=G(v.borderWidth)||0;Ja=v._FCW*ha;Oa=J.getAxisPosition(v._FCX)||J.getAxisPosition(Oa)+da;Na=v.previousY;Ga=B.getAxisPosition(Na||ba);Ca=B.getAxisPosition(O+(Na||0));Y=Ka(Ca-Ga);Ja=Ja||A;if(E){O<0&&(Ca=Ga,La=!0);Pa=O<0?Ma:ya;if(!(Na=j[t]))Na=j[t]={index:t,value:O,graphic:l.cubepath(Pa[t]),dataLabel:null,tracker:null,hot:null};e=Na.graphic;
e.attr({cubepath:[Oa-ra,U+Ia,Ja,0,ra,Ia],fill:[b(v.color),!r],stroke:ia&&b(v.borderColor)||"NONE","stroke-width":ia,visibility:X}).shadow(K.shadow&&v.shadow,Ta).animate({cubepath:[Oa-ra,Ca+Ia,Ja,Y,ra,Ia]},n,"normal",function(){qa.show()}).data("BBox",{height:Y,width:Ja,x:Oa,y:Ca});if(wa||x){!L&&Y<a&&(Ca-=(a-Y)/2,Y=a);if(!Na.tracker)Na.tracker=l.cubepath(s);Z=Na.tracker;Z.attr({cubepath:[Oa-ra,Ca+Ia,Ja,Y,ra,Ia],cursor:wa?"pointer":"",stroke:ia&&ga||"NONE","stroke-width":ia,fill:ga,ishot:!!wa,visibility:X}).click(function(){var a=
this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",wa);Z._.cubetop.click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",wa);Z._.cubeside.click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",wa)}L&&La&&(e.toBack(),Z&&Z.toBack())}else{La=!1;if(!F&&!C&&O<0||!F&&C&&O>0)Ca=Ga,La=!0;C&&!ja&&O>0&&(Ca=Ga-Y,La=!1);z&&O<0&&la(Na)&&(Ca-=Y,La=!0);!H&&!R&&(aa(Ca)<=sa&&(Y-=sa-Ca-+Q,Ca=sa-+Q),
w(Ca+Y)>=Ba&&(Y-=w(Ca+Y)-Ba+ +!!ia+ +Q),ia<=1&&(w(Oa)<=oa&&(Ja+=Oa,Oa=oa-ia/2+ +!!ia-+Q,Ja-=Oa),w(Oa+Ja)>=Da&&(Ja=Da-Oa+ia/2-+!!ia+ +Q)));Ga=u.crispBound(Oa,Ca,Ja,Y,ia);Oa=Ga.x;Ca=Ga.y;Ja=Ga.width;Y=Ga.height;if(!H&&Q&&(!la(Na)||z&&Na===O&&O===v._FCY))if(W&&!C)U=Ca-(sa-ia/2),Y+=U,U=Ca-=U;else if(F||V||C&&W)Y=Ba-Ca+ia/2,U=Ca+Y;z&&Na&&ia>0&&K.connectorOpacity!==0&&K.connectorWidth===1&&K.connectorDashStyle&&(Y-=1,O<0&&(Ca+=1));Y<=1&&(Y=1,Ca+=O<0?0:-Y);d._columnWidth=Ja;if(!(Na=j[t]))if(Na=j[t]={index:t,
value:O,width:Ja,graphic:l.rect(Pa),valueBelowPlot:La,dataLabel:null,tracker:null},e=Na.graphic,e.attr({x:Oa,y:U,width:Ja,height:0,r:fa,fill:b(v.color),stroke:b(v.borderColor),"stroke-width":ia,"stroke-dasharray":v.dashStyle,"stroke-linejoin":"miter",visibility:X}).shadow(K.shadow&&v.shadow,Ta).animate({y:Ca,height:Y||1},n,"normal",function(){qa.show()}).data("BBox",Ga),wa||x){if(!Na.tracker)Na.tracker=l.rect(s);!L&&Y<a&&(Ca-=(a-Y)/2,Y=a);Z=Na.tracker;Z.attr({x:Oa,y:Ca,width:Ja,height:Y,r:fa,cursor:wa?
"pointer":"",stroke:ga,"stroke-width":ia,fill:ga,ishot:!!wa,visibility:X}).click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",wa)}}wa=f.drawPlotColumnLabel(c,d,t,Oa,Ca)}wa&&k.push(wa);e&&k.push(e);Z&&k.push(Z);f.drawTracker&&f.drawTracker.call(f,c,d,t)}c.visible=d.visible!==!1;return c},drawPlotColumnScroll:function(a,b,c){var d=a.data.length,e=a.items,f;f=c.vxLength;var g=za(0,w((d-f)*c.position)-1)||0,d=Ea(d,g+f+2)||d;g>d-f-2&&(g=za(0,d-f-2));c.scrollEnd=
d;for(f=g;f<d;f++)if(!e[f]){c.scrollStart=f;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,b,c,d,e,f){var m;var d=this.options,g=this.logic,h=d.chart,i=this.paper,j=this.layers,d=d.plotOptions.series.dataLabels.style,l=h.rotateValues===1?270:0,n=this.canvasHeight,q=this.canvasTop,s=a.data[c],r=a.items[c],t=h.valuePadding+2,u=r.graphic,a=r.dataLabel,c=D(r.valueBelowPlot,s.y<0),v=g.isStacked,g=g.is3D,B=h.xDepth||0,w=h.yDepth||0,x=s.displayValue,b=b.visible===!1?"hidden":"visible",
E=h.placeValuesInside,h=!1,f=f||j.datalabels;la(x)&&x!==k&&s.y!==null?(a?l&&a.rotate(360-l):(a=r.dataLabel=i.text().attr({text:x}).css(d),h=!0),j=a.getBBox(),u=u.data("BBox"),i=u.height,m=r=l?j.width:j.height,j=m,j+=t,t=r*0.5+t,u=u.x+u.width*0.5,n=c?q+n-(e+i):e-q,v?(e=e+i*0.5+(w||0),u-=B):E?i>=j?(e+=c?i-t:t,s._valueBelowPoint=1,g&&(u-=B,e+=w)):n>=j?(e+=c?i+t:-t,g&&c&&(u-=B,e+=w)):(e+=c?i-t:t,s._valueBelowPoint=1,g&&(u-=B,e+=w)):n>=j?(e+=c?i+t:-t,g&&c&&(u-=B,e+=w)):(e+=c?i-t:t,s._valueBelowPoint=1,
g&&(u-=B,e+=w)),a.attr({x:u,y:e,visibility:b}),l&&a.attr("transform","T0,0,R"+l),h&&f.appendChild(a),h&&D(d.backgroundColor,d.borderColor)!==k&&a.attr({"text-bound":[d.backgroundColor,d.borderColor,1,2]})):a&&a.attr({text:k});return a},drawPlotFloatedcolumn:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotColumn3d:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotBar:function(c,d){var e=this,f=c.data,h=f.length,i=c.items,j=c.graphics=[],k=e.paper,l=e.logic,n=e.layers,s=e.options,
r=e.elements,t=s.chart,v=(s.tooltip||{}).enabled!==!1,x,A=e.definition.chart,s=s.plotOptions.series,D=e.xAxis[d.xAxis||0],K=e.yAxis[d.yAxis||0],B=l.is3D,C=l.isStacked,F=t.canvasBorderOpacity=u.color(t.plotBorderColor).opacity,E=e.canvasBorderWidth,F=t.isCanvasBorder=F!==0&&E>0;g(l.name);var l=isNaN(+s.animation)&&s.animation.duration||s.animation*1E3,L=d.numColumns||1,z=d.columnPosition||0,E=t.use3DLighting,J=d.visible===!1?"hidden":"visible",H=t.overlapColumns,Q=D.getAxisPosition(0),Q=D.getAxisPosition(1)-
Q,M=A&&A.plotspacepercent,A=q(A&&A.plotpaddingpercent),Z=s.groupPadding,n=s.maxColWidth,M=(1-M*0.01)*Q||Ea(Q*(1-Z*2),n*L),Q=M/2;M/=L;var H=Ea(M-1,L>1?!H&&A===Ha?4:A>0?M*A/100:0:0),L=M-H,z=z*M-Q+H/2,O=K.max,R=K.min,H=O<0&&R<0?O:O>0&&R>0?R:0,A=K.getAxisPosition(H),Q=q(t.useRoundEdges,0),U=e.canvasTop,M=e.canvasLeft,V=e.canvasHeight,Z=e.canvasRight,da,ea,ha,X,W,ba,Y,ia,n=e.layers;W=n.dataset=n.dataset||k.group("dataset-orphan");var ja=n.datalabels=n.datalabels||k.group("datalabels").insertAfter(W),n=
n.tracker,fa,la,qa,sa,oa;ja.hide();if(C)sa=W.shadows||(W.shadows=k.group("shadows",W).toBack());ha=W.column=W.column||k.group("bars",W);if(B){da=t.xDepth||0;ea=t.yDepth||0;W=ha.negative=ha.negative||k.group("negative-values",ha);ba=ha.column=ha.column||k.group("positive-values",ha);la=ha.zeroPlane;if(!la&&R<0&&O>=0)la=ha.zeroPlane=k.group("zero-plane",ha).insertBefore(ba),ia=t.zeroPlaneColor,r.zeroplane=k.cubepath(A-da,U+ea,1,V,da,ea,la).attr({fill:[ia,!E],stroke:"none","stroke-width":0});if(!(la=
W.data("categoryplots")))W.data("categoryplots",Array(h)),la=W.data("categoryplots");if(!(ia=ba.data("categoryplots")))ba.data("categoryplots",Array(h)),ia=ba.data("categoryplots");for(r=0;r<h;r+=1)la[r]=la[r]||k.group(W),ia[r]=ia[r]||k.group(ba)}else ha.attrs["clip-rect"]||ha.attr({"clip-rect":r["clip-canvas"]}),qa=ha;r=0;for(t=h-1;r<h;r+=1,t-=1){U=f[r];V=U.y;fa=O=null;if(V===null){if(X=i[r])fa=X.graphic,B||fa.attr({width:0})}else{ba=q(U.x,r);R=U.link;x=U.toolText;W=G(U.borderWidth)||0;ba=D.getAxisPosition(ba)+
z;ha=U.previousY;X=K.getAxisPosition(ha||H);Y=K.getAxisPosition(V+(ha||0));ha=Ka(Y-X);V>0&&(Y=X);if(B){qa=V<0?la:ia;if(!(X=i[r]))X=i[r]={index:r,value:V,graphic:k.cubepath(qa[t]),dataLabel:null,tracker:null};fa=X.graphic;fa.attr({cubepath:[A-da,ba+ea,0,L,da,ea],fill:[b(U.color),!E],stroke:W&&b(U.borderColor)||"NONE","stroke-width":W,"stroke-dasharray":U.dashStyle,cursor:R?"pointer":"",visibility:J}).shadow(s.shadow&&U.shadow,sa).animate({cubepath:[Y-da,ba+ea,ha,L,da,ea]},l,"normal",function(){ja.show()}).data("BBox",
{height:L,width:ha,x:Y,y:ba});if(R||v){!C&&ha<a&&(Y-=(a-ha)/2,ha=a);if(!X.tracker)X.tracker=k.cubepath(n);O=X.tracker;O.attr({cubepath:[Y-da,ba+ea,ha,L,da,ea],cursor:R?"pointer":"",stroke:W&&ga||"NONE","stroke-width":W,fill:ga,ishot:!!R}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(x).data("link",R);O._.cubetop.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(x).data("link",R);O._.cubeside.click(function(){var a=this.data("link");
a&&e.linkClickFN.call({link:a},e)}).tooltip(x).data("link",R)}if(!C||C&&V<0)fa.toBack(),O&&O.toBack()}else{aa(Y)<=M&&(ha+=Y,Y=M-W/2+ +!!W-+F,ha-=Y-W/2+ +!!W);w(Y+ha)>=Z&&(Y-=W/2+ +!W,ha=Z-Y+W/2-+!!W+ +F);oa=u.crispBound(Y,ba,ha,L,W);Y=oa.x;ba=oa.y;ha=oa.width;L=oa.height;ha<=1&&(ha=1,Y+=V<0?-ha:0);if(!(X=i[r]))X=i[r]={index:r,value:V,height:L,graphic:k.rect(qa),dataLabel:null,tracker:null};fa=X.graphic;fa.attr({x:A,y:ba,width:0,height:L,r:Q,fill:b(U.color),stroke:b(U.borderColor),"stroke-width":W,
"stroke-dasharray":U.dashStyle,"stroke-linejoin":"miter",cursor:R?"pointer":"",visibility:J}).shadow(s.shadow&&U.shadow,sa).animate({x:Y,width:ha||1},l,"normal",function(){ja.show()}).data("BBox",oa);if(R||v){!C&&ha<a&&(Y-=(a-ha)/2,ha=a);if(!X.tracker)X.tracker=k.rect(n);O=X.tracker;O.attr({x:Y,y:ba,width:ha,height:L,r:Q,cursor:R?"pointer":"",stroke:ga,"stroke-width":W,fill:ga,ishot:!!R}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(x).data("link",R)}}x=e.drawPlotBarLabel(c,
d,r,Y,ba)}x&&j.push(x);fa&&j.push(fa);O&&j.push(O);e.drawTracker&&e.drawTracker.call(e,c,d,r)}c.visible=d.visible!==!1;return c},drawPlotBarLabel:function(a,b,c,d,e,f){var g=this.options,h=this.logic,i=g.chart,j=this.paper,l=this.layers,g=g.plotOptions.series.dataLabels.style,n=this.canvasLeft,q=this.canvasWidth,s=a.data[c],r=a.items[c],t=i.valuePadding+2,u=r.graphic,a=r.dataLabel,c=s.y<0,v=h.isStacked,h=h.is3D,B=i.xDepth||0,w=i.yDepth||0,x=s.displayValue,b=b.visible===!1?"hidden":"visible",i=i.placeValuesInside,
E=!1,f=f||l.datalabels;if(la(x)&&x!==k&&s.y!==null){if(!a)a=r.dataLabel=j.text(),E=!0;a.attr({text:x,title:s.originalText||"",fill:g.color}).css(g);j=a.getBBox();l=u.data("BBox");u=l.height;s=l.width;l=r=j.width;l+=t;e+=u*0.5;u=d+(c?0:s);t=r*0.5+t;d=c?d-n:n+q-(d+s);v?(u+=(c?s:-s)*0.5,u-=h?B:0,e+=h?w:0):(i?s>=l?(u+=c?t:-t,h&&(u-=B,e+=w)):(u+=c?-t:t,h&&c&&(u-=B)):d>=l?(u+=c?-t:t,h&&c&&(u-=B,e+=B)):(u+=c?t:-t,h&&(u-=B,e+=w)),u>n+q&&(u=n+q-j.width*0.5-4),u<n&&(u=n+j.width*0.5+4));a.attr({x:u,y:e,visibility:b});
E&&f.appendChild(a);E&&D(g.backgroundColor,g.borderColor)!==k&&a.attr({"text-bound":[g.backgroundColor,g.borderColor,1,2]})}else a&&a.attr({text:k});return a},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(d,e){var m;var f=this,h=f.paper,i=f.elements,j=f.options,k=j.chart,l=f.logic,n=j.plotOptions.series,s=d.items,r=d.graphics=d.graphics||[],t,v=f.xAxis[e.xAxis||0],w=f.yAxis[e.yAxis||0],x=l.multisetRealtime||l.dragExtended,A=l.isWaterfall,D,K,B;D=0;var C=(j.tooltip||
{}).enabled!==!1,F,j=isNaN(+n.animation)&&n.animation.duration||n.animation*1E3,E=k.xDepth||0,L=k.yDepth||0,z=k.series2D3Dshift,l=f.logic,H=e.step,J=e.drawVerticalJoins,Q=e.useForwardSteps;g(l.name);var l=d.data,aa=e.visible===!1?"hidden":"visible",Z,O=l.length,M=v.getAxisPosition(0);t=v.getAxisPosition(1)-M;var M=t*O,R=v.axisData.scroll||{},k=k.hasScroll||!1,U=n.connectNullData,W,V,ha,X,da,ea,Y=null,ba=n.connectorWidth=G(e.lineWidth),ia=e.color;n.connectorOpacity=u.color(ia).opacity;var fa,ja,la=
n.connectorDashStyle=e.dashStyle,sa,qa,Ca,oa=f.layers;Z=oa.dataset=oa.dataset||h.group("dataset-orphan");var Ba=oa.datalabels=oa.datalabels||h.group("datalabels").insertAfter(Z),za=oa.tracker,oa=i["clip-canvas-init"].slice(0),i=i["clip-canvas"].slice(0),ra=w.axisData.reversed;K=w.max;B=w.min;K=w.getAxisPosition(K>0&&B>0?!ra?B:K:K<0&&B<0?!ra?K:B:!ra?0:K)+(z?L:0);var ra=[],ya,Da,wa,Ga;w.yBasePos=K;if(A)D=(D=f.definition.chart)&&D.plotspacepercent,K=n.groupPadding,B=n.maxColWidth,D=(1-D*0.01)*t||Ea(t*
(1-K*2),B*1),D/=2;Ba.hide();ya=Z.line||(Z.line=h.group("line-connector",Z));Da=Z.anchors||(Z.anchors=h.group("line-anchors",Z));Da.hide();wa=Z.anchorShadows||(Z.anchorShadows=h.group("anchor-shadows",Z).toBack());wa.hide();for(Z=0;Z<O;Z+=1){W=l[Z];da=W.y;ha=W.previousY||0;F=W.toolText;B=V=qa=K=null;t=s[Z]={index:Z,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:wa,tracker:null};if(da===null)U===0&&(Y=null);else{X=q(W.x,Z);V=W.link;e.relatedSeries==="boxandwhisker"&&e.pointStart&&
(X+=e.pointStart);da=w.getAxisPosition(da+ha)+(z?L:0);X=v.getAxisPosition(X)-E;X=c(X,ba,ba).position;da=c(da,ba,ba).position;if((sa=W.marker)&&sa.enabled)if(qa=sa.symbol.split("_"),Ca=qa[0]==="spoke"?1:0,ha=sa.radius,m=t.graphic=h.polypath(qa[1]||2,X,da,ha,sa.startAngle,Ca,Da).attr({fill:b(sa.fillColor),"stroke-width":sa.lineWidth,stroke:b(sa.lineColor),cursor:V?"pointer":"",visibility:aa}),qa=m,V||C)ha<a&&(ha=a),K=t.tracker=h.circle(X,da,ha,za).attr({cursor:V?"pointer":"",stroke:ga,"stroke-width":sa.lineWidth,
fill:ga,ishot:!!V,visibility:aa}).click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(F).data("link",V);Ga=Ga!==[b(W.color||ia),W.dashStyle||la].join(":");if(Y!==null){if((x||A||!ra.join(""))&&ra.push("M",ea,Y),A&&ra.push("m",-D,0),H?Q?(ra.push("H",X),A&&ra.push("h",D),J?ra.push("V",da):ra.push("m",0,da-Y)):(J&&ra.push("V",da),ra.push("M",ea,da,"H",X)):ra.push("L",X,da),x||Ga)B=t.connector=h.path(ra,ya).attr({"stroke-dasharray":ja,"stroke-width":ba,stroke:fa,"stroke-linecap":"round",
"stroke-linejoin":ba>2?"round":"miter",visibility:aa}).shadow(n.shadow&&W.shadow),ra=[]}else!x&&ra.push("M",X,da);V=t.dataLabel=f.drawPlotLineLabel(d,e,Z,X,da);ea=X;Y=da;fa=b(W.color||ia);ja=W.dashStyle||la;Ga=[fa,ja].join(":")}V&&r.push(V);qa&&r.push(qa);B&&r.push(B);K&&r.push(K);f.drawTracker&&f.drawTracker.call(f,d,e,Z)}!x&&ra.join("")&&(B=h.path(ra,ya).attr({"stroke-dasharray":ja,"stroke-width":ba,stroke:fa,"stroke-linecap":"round","stroke-linejoin":ba>2?"round":"miter",visibility:aa}).shadow(n.shadow&&
W.shadow))&&r.push(B);if(k)h=R.startPercent,i[2]=M+oa[0],h===1&&(oa[0]=i[2],i[0]=0);h=u.animation({"clip-rect":i},j,k?"easeIn":"normal",function(){ya.attr({"clip-rect":null});wa.show();Da.show();Ba.show()});ya.attr({"clip-rect":oa}).animate(A?h.delay(j):h);d.visible=e.visible!==!1;return d},drawPlotArea:function(c,d){var m;var e=this,f=e.paper,g=e.options,h=g.chart,i=e.logic,j=g.plotOptions.series,k=e.elements,l=c.items,n=c.graphics=c.graphics||[],s=e.xAxis[d.xAxis||0],r=e.yAxis[d.yAxis||0],t=r.axisData.reversed,
u=h.xDepth||0,v=h.yDepth||0,w=i.isStacked,x=(g.tooltip||{}).enabled!==!1,B,g=isNaN(+j.animation)&&j.animation.duration||j.animation*1E3,C=h.series2D3Dshift,i=e.definition.chart.drawfullareaborder==="0",A=c.data,E=d.visible===!1?"hidden":"visible",D,z=A.length,G=s.getAxisPosition(0),G=(s.getAxisPosition(1)-G)*z,K=s.axisData.scroll||{},h=h.hasScroll||!1,J=j.connectNullData,H,aa,O,Q,M,R=r.max,U=r.min,W=r.getAxisPosition(R>0&&U<0?0:!t&&R>0&&U>=0?U:R)+(C?v:0),ha=null,X,V,t=d.lineWidth,R=d.dashStyle,da=
b(d.fillColor),U=b(d.lineColor),Y=0,ba,ea,ia,fa=[],ja=[],la=null,qa=[],oa=e.layers;D=oa.dataset=oa.dataset||f.group("dataset-orphan");var Ba=oa.datalabels=oa.datalabels||f.group("datalabels").insertAfter(D),la=oa.tracker,oa=k["clip-canvas-init"].slice(0),k=k["clip-canvas"].slice(0),za,ya,ra,Da,Ea;r.yBasePos=W;Ba.hide();if(w)Da=D.shadows||(D.shadows=f.group("shadows",D).toBack());ya=D.area=D.area||f.group("area",D);za=D.arealine=D.arealine||f.group("area-connector",D);ra=D.areaanchors=D.areaanchors||
f.group("area-anchors",D);ra.hide();for(D=0;D<z;D+=1){H=A[D];Q=H.y;B=q(H.x,D);X=s.getAxisPosition(B)-u;ea=Ea=ia=null;if(Q===null)J===0&&(ha=null,Y>0&&(Y===1?fa.splice(-8,8):(fa=fa.concat(ja),fa.push("Z")),ja=[])),l[D]={chart:e,index:D,value:Q};else{aa=H.link;B=H.toolText;O=H.previousY;M=(M=r.getAxisPosition(O)||null)||W;V=r.getAxisPosition(Q+(O||0))+(C?v:0);if((ba=H.marker)&&ba.enabled)if(ea=ba.symbol.split("_"),O=ba.radius,ea=f.polypath(ea[1]||2,X,V,O,ba.startAngle,0,ra).attr({fill:b(ba.fillColor),
"stroke-width":ba.lineWidth,stroke:b(ba.lineColor),cursor:aa?"pointer":"",visibility:E}),aa||x)!w&&O<a&&(O=a),ia=f.circle(X,V,O,la).attr({cursor:aa?"pointer":"",stroke:ga,"stroke-width":ba.lineWidth,fill:ga,ishot:!!aa,visibility:E}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(B).data("link",aa);ha===null?(qa.push("M",X,",",V),fa.push("M",X,",",M),Y=0):qa.push("L",X,",",V);fa.push("L",X,",",V);ja.unshift("L",X,",",M);Y++;ha=V;l[D]={chart:e,index:D,value:Q,graphic:ea,
dataLabel:Ea,tracker:ia};Ea=e.drawPlotLineLabel(c,d,D,X,V)}Ea&&n.push(Ea);ea&&n.push(ea);ia&&n.push(ia);e.drawTracker&&e.drawTracker.call(e,c,d,D)}Y>0&&(Y===1?fa.splice(-8,8):(fa=fa.concat(ja),fa.push("Z")));(la=c.graphic=f.path(fa,ya).attr({fill:da,"stroke-dasharray":R,"stroke-width":i?0:t,stroke:U,"stroke-linecap":"round","stroke-linejoin":t>2?"round":"miter",visibility:E}).shadow(j.shadow&&H.shadow,Da))&&n.push(la);if(h)j=K.startPercent,k[2]=G+oa[0],j===1&&(oa[0]=k[2],k[0]=0);j=ya.attr({"clip-rect":oa}).animate({"clip-rect":k},
g,h?"easeIn":"normal",function(){ya.attr({"clip-rect":null});ra.show();Ba.show()});Da&&Da.attr({"clip-rect":oa}).animateWith(ya,j,{"clip-rect":k},g,h?"easeIn":"normal",function(){Da.attr({"clip-rect":null})});if(i)m=c.connector=f.path(qa,za).attr({"stroke-dasharray":R,"stroke-width":t,stroke:U,"stroke-linecap":"round","stroke-linejoin":t>2?"round":"miter",visibility:E}),f=m,za.attr({"clip-rect":oa}).animateWith(ya,j,{"clip-rect":k},g,h?"easeIn":"normal",function(){za.attr({"clip-rect":null})}),f&&
n.push(f);c.visible=d.visible!==!1;return c},drawPlotScatter:function(c,d){var m;var e=this,f=e.options,g=f.plotOptions.series,h=e.paper,i=e.elements,j=c.items,k=c.graphics=c.graphics||[],l=e.xAxis[d.xAxis||0],n=e.yAxis[d.yAxis||0],q=c.data,s=d.visible===!1?"hidden":"visible",r=(f.tooltip||{}).enabled!==!1,t,f=isNaN(+g.animation)&&g.animation.duration||g.animation*1E3,u,v,w,x,C,D,A,G,z,K=d.lineWidth,H=K>0,J=d.color,aa=d.dashStyle,Q=g.connectNullData,O=[],M,R,U,X,V=e.layers,W=V.dataset||(V.dataset=
h.group("dataset-orphan")),da=V.datalabels||(V.datalabels=h.group("datalabels").insertAfter(W)),ba=V.tracker,ea;da.hide();V=W.line||(W.line=h.group("connector",W));W=W.anchor||(W.anchor=h.group("anchor",W));u=0;for(v=q.length;u<v;u+=1){w=q[u];M=w.marker;G=z=U=ea=X=null;D=w.y;C=w.x;if(D!==null&&C!==null){if(M&&M.enabled&&(x=w.link,t=w.toolText,R=M.radius,z=n.getAxisPosition(D),G=l.getAxisPosition(C),U=M.symbol.split("_"),U=h.polypath(U[1]||2,G,z,R,M.startAngle,0,W).attr({fill:b(M.fillColor),"stroke-width":M.lineWidth,
stroke:b(M.lineColor),cursor:x?"pointer":"",visibility:s}).shadow(g.shadow&&w.shadow),x||r))R<a&&(R=a),X=h.circle(G,z,R,ba).attr({cursor:x?"pointer":"",stroke:ga,"stroke-width":M.lineWidth,fill:ga,ishot:!!x}).tooltip(t).data("link",x).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)});H&&((A===void 0||A===null&&Q===0)&&G&&z&&O.push("M",G,",",z),G&&z&&O.push("L",G,",",z),A=z);j[u]={index:u,x:C,y:D,value:D,graphic:U,dataLabel:ea,tracker:X};ea=e.drawPlotLineLabel(c,d,u,G,z)}else H&&
Q===0&&(A=null),j[u]={chart:e,index:u,x:C,y:D};ea&&k.push(ea);U&&k.push(U);X&&k.push(X);e.drawTracker&&e.drawTracker.call(e,c,d,u)}if(O.length)m=c.graphic=h.path(O,V).attr({"stroke-dasharray":aa,"stroke-width":K,stroke:J,"stroke-linecap":"round","stroke-linejoin":K>2?"round":"miter",visibility:s}).shadow(g.shadow&&w.shadow),g=m,V.attr({"clip-rect":i["clip-canvas-init"]}).animate({"clip-rect":i["clip-canvas"]},f,"normal"),k.push(g);W.attr({opacity:0}).animate({opacity:1},f,"normal",function(){da.show()});
c.visible=d.visible!==!1;return c},drawPlotLineLabel:function(a,b,c,d,e,f){var g=this.options,h=g.chart,i=this.paper,j=this.layers,g=g.plotOptions.series.dataLabels.style,l=h.rotateValues===1?270:0,n=this.canvasHeight,q=this.canvasTop,s=a.data,r=s[c],u=a.items[c],v=t(r.valuePosition,"auto").toLowerCase(),a=this.logic.defaultSeriesType,h=h.valuePadding+2,b=b.visible===!1?"hidden":"visible",w=!1,x=u.dataLabel,f=f||j.datalabels;switch(v){case "above":c=0;break;case "below":c=1;break;default:j=s[c-1]||
{},s=s[c+1]||{},c=!c?0:j.y>=r.y?1:(j.y==null&&s.y)>r.y?1:0}j=r.displayValue;if(la(j)&&j!==k){x?l&&x.rotate(360-l):(x=u.dataLabel=i.text().attr({text:j}).css(g),w=!0);x.attr({title:r.originalText||"",fill:g.color});i=x.getBBox();u=j=l?i.width:i.height;u+=h;i=e-q;n=q+n-e;u+=4;q=j*0.5+h;if(!/bubble/i.test(a))if(c)n>u?(e+=q,r._valueBelowPoint=1):i>u&&(e-=q);else if(i>u)e-=q;else if(n>u)e+=q,r._valueBelowPoint=1;x.attr({x:d,y:e,visibility:b});l&&x.attr("transform","T0,0,R"+l);w&&f.appendChild(x);w&&D(g.backgroundColor,
g.borderColor)!==k&&x.attr({"text-bound":[g.backgroundColor,g.borderColor,1,2]})}else x&&x.attr({text:k});return x},drawLabels:function(){for(var a=this.paper,b=this.options,c=(b=b.labels&&b.labels.items&&b.labels.items)&&b.length,d=this.layers.layerAboveDataset,e=this.elements.quadran||(this.elements.quadran=[]),f=this.canvasTop,g=this.canvasLeft,h={right:"end",left:"start",undefined:"start"},i,j;c--;)j=b[c],i=j.style,la(j.html)&&j.html!==k&&(e[c]=a.text(d).attr({text:j.html,x:parseInt(i.left,10)+
g,y:parseInt(i.top,10)+f,fill:i.color,"text-anchor":h[j.textAlign],"vertical-align":j.vAlign}).css(i))}},r["renderer.root"]);r("renderer.piebase",{drawCaption:function(){var m;var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.elements,f=this.layers,g=f.caption,h=e.caption,i=e.subcaption,j=b&&b.text,k=c&&c.text,l=d.width/2,n=b.x,q=c&&c.x;if((j||k)&&!g)g=f.caption=d.group("caption"),f.tracker?g.insertBefore(f.tracker):g.insertAfter(f.dataset);if(j){if(!h)h=e.caption=
d.text(g);if(n===void 0)n=l,b.align="middle";h.css(b.style).attr({text:b.text,fill:b.style.color,x:n,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",visibility:"visible",title:b.originalText||""})}else if(h)m=e.caption=h.remove(),h=m;if(k){if(!i)i=e.subcaption=d.text(g);if(q===void 0)q=l,c.align="middle";i.css(c.style).attr({text:c.text,title:c.originalText||"",fill:c.style.color,x:q,y:j?h.attrs.y+h.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":c.align||"middle",
"vertical-align":"top",visibility:"visible"})}else if(i)e.subcaption=i.remove();if(!j&&!k&&g)f.caption=g.remove()},redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},plotGraphicClick:function(){var a=this.graphic&&this||this.data("plotItem"),b=a.seriesData,c=a.chart,d,e,f,g,h,i,j;if(!b.isRotating&&!b.singletonCase)return d=a.graphic,e=a.connector,f=a.dataLabel,b=a.sliced,g=a.slicedTranslation,h=a.connectorPath,i=(b?-1:1)*a.transX,j=(b?-1:1)*a.transY,d.animate({transform:b?
"t0,0":g},200,"easeIn"),f&&f.x&&f.animate({x:f.x+(b?0:i)},200,"easeIn"),h&&(h[1]+=i,h[2]+=j,h[4]+=i,h[6]+=i,e.animate({path:h},200,"easeIn")),b=a.sliced=!b,a={hcJSON:{series:[]}},a.hcJSON.series[0]={data:[]},A(c.logic.chartInstance.jsVars._reflowData,a,!0),b},plotDragStart:function(a,b,c){var d=this.data("plotItem"),e=d.chart,d=d.seriesData;if(e.options.series[0].enableRotation)a=Ga.call(c,a,b,d.pieCenter,d.chartPosition),d.dragStartAngle=a,e._pierotateActive=!0},plotDragEnd:function(){var a=this.data("plotItem"),
b=a.chart,c={hcJSON:{series:[{startAngle:-b.datasets[0].startAngle*180/La}]}};b.disposed||(A(b.logic.chartInstance.jsVars._reflowData,c,!0),b.rotate(a.seriesData,b.options.series[0]));setTimeout(function(){a.seriesData.isRotating=!1},0)},plotDragMove:function(a,b,c,d,e){var a=this.data("plotItem"),f=a.chart,g=a.seriesData,h=f.options.series;if(h[0].enableRotation&&!g.singletonCase&&(g.isRotating=!0,c=Ga.call(e,c,d,g.pieCenter,g.chartPosition),h[0].startAngle+=c-g.dragStartAngle,g.dragStartAngle=c,
g.moveDuration=0,c=(new Date).getTime(),!g._lastTime||g._lastTime+g.timerThreshold<c))setTimeout(function(){f.rotate(g,h[0])},0),g._lastTime=c},plotMouseDown:function(){this.data("plotItem").seriesData.isRotating=!1},plotMouseUp:function(){var a=this.data("plotItem"),b=a.chart,c=a.seriesData;!c.isRotating&&b.linkClickFN.call({link:c.data[a.index].link},b);u._supportsTouch&&!c.isRotating&&b.plotGraphicClick.call(a)},legendClick:function(a,b,c){var d=a.chart;d.elements.plots[0].isRotating=!1;d.plotGraphicClick.call(a.graphic);
c!==!0&&(eventArgs={datasetName:a.label,datasetIndex:a.originalIndex,id:a.userID,visible:b,label:a.label,value:a.value,percentValue:a.percentage,tooltext:a.toolText,link:a.link,sliced:!a.sliced},i.raiseEvent("legenditemclicked",eventArgs,d.logic.chartInstance))},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],e=[1,1,-1,-1];return function(f,g,h,i){var j=this.options.plotOptions,
k=j.pie,l=this.canvasLeft+this.canvasWidth*0.5,n=this.canvasTop+this.canvasHeight*0.5,s=this.smartLabel,r=j.series.dataLabels,t=r.style,j=q($a(parseFloat(t.lineHeight)),12),u=x(r.placeInside,!1),w=r.skipOverlapLabels,B=r.manageLabelOverflow,C=r.connectorPadding,D=r.distance;x(r.softConnector,!0);var A=i&&i.metrics||[l,n,k.size,k.innerSize||0],G=A[1],z=A[0],i=A[2]*0.5,K=[[],[],[],[]],H=this.canvasLeft,J=this.canvasTop,k=this.canvasWidth,D=h.labelsRadius||(h.labelsRadius=i+D),n=l=parseInt(t.fontSize,
10),aa=n/2,C=[C,C,-C,-C],h=h.labelsMaxInQuadrant||(h.labelsMaxInQuadrant=oa(D/n)),r=r.isSmartLineSlanted,A=A[3]/2,Q,O,M,R,U,W,V,X,ba,ea,ga,Y,ia,fa,ja;f||s.setStyle(t);if(g.length==1&&!A){if(A=g[0],fa=A.dataLabel,fa.show(),A.slicedTranslation=[H,J],fa)fa.attr({visibility:Ba,align:"middle",transform:"t"+z+","+(G+aa-2)}),fa.x=z}else if(u){var la=A+(i-A)/2;v(g,function(a){fa=a.dataLabel;fa.show();if(fa){var b=a.angle;ga=G+la*da(b)+aa-2;V=z+la*Da(b);fa.x=V;fa._x=V;fa.y=ga;if(a.sliced)a=a.slicedTranslation,
b=a[1]-J,V+=a[0]-H,ga+=b;fa.attr({visibility:Ba,align:"middle",transform:"t"+V+","+ga})}})}else{v(g,function(a){(fa=a.dataLabel)&&fa.show();fa&&(Y=a.angle%Pa,Y<0&&(Y=Pa+Y),ja=Y>=0&&Y<db?1:Y<La?2:Y<Za?3:0,K[ja].push({point:a,angle:Y}))});for(g=f=4;g--;){if(w&&(t=K[g].length-h,t>0)){K[g].sort(a);u=K[g].splice(0,t);t=0;for(R=u.length;t<R;t+=1)A=u[t].point,A.dataLabel.attr({visibility:"hidden"}),A.connector&&A.connector.attr({visibility:"hidden"})}K[g].sort(b)}g=za(K[0].length,K[1].length,K[2].length,
K[3].length);ia=za(Ea(g,h)*n,D+n);K[1].reverse();for(K[3].reverse();f--;){u=K[f];R=u.length;w||(n=R>h?ia/R:l,aa=n/2);A=R*n;t=ia;for(g=0;g<R;g+=1,A-=n)M=Ka(ia*da(u[g].angle)),t<M?M=t:M<A&&(M=A),t=(u[g].oriY=M)-n;Q=c[f];R=ia-(R-1)*n;t=0;for(g=u.length-1;g>=0;g-=1,R+=n){A=u[g].point;Y=u[g].angle;U=A.sliced;fa=A.dataLabel;M=Ka(ia*da(Y));M<t?M=t:M>R&&(M=R);t=M+n;ba=(M+u[g].oriY)/2;M=z+e[f]*D*Da(qa.asin(ba/ia));ba*=d[f];ba+=G;ea=G+i*da(Y);W=z+i*Da(Y);(f<2&&M<W||f>1&&M>W)&&(M=W);V=M+C[f];ga=ba-aa-2;X=V+
C[f];fa.x=X;fa._x=X;B&&(O=f>1?X-this.canvasLeft:this.canvasLeft+k-X,O=s.getSmartText(A.labelText,O,j),fa.attr({text:O.text,title:O.tooltext||""}));fa.y=ga;if(U)U=A.transX,O=A.transY,V+=U,M+=U,W+=U,ea+=O,X+=U;fa.attr({visibility:Ba,"text-anchor":Q,vAlign:"middle",x:X,y:ba});if(X=A.connector)A.connectorPath=A=["M",W,ea,"L",r?M:W,ba,V,ba],X.attr({path:A,visibility:Ba})}}}}}()},r["renderer.root"])}]);
(function(){var i=FusionCharts(["private","modules.renderer.js-interface"]);if(i!==void 0){var l=i.hcLib,u=i.renderer.getRenderer("javascript"),r=l.hasModule,d=l.loadModule,h=l.moduleCmdQueue,M=l.executeWaitingCommands,e=l.injectModuleDependency,k=l.moduleDependencies,V=l.getDependentModuleName,ga=l.eventList={loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",resized:"FC_Resized",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",
exported:"FC_Exported"};l.raiseEvent=function(d,e,h,k,l,r){var u=ga[d];i.raiseEvent(d,e,h,l,r);u&&typeof window[u]==="function"&&setTimeout(function(){window[u].apply(window,k)},0)};var w=function(d){var e,h,k,r={},u;for(e in i.core.items)if(e=i.core.items[e],k=e.chartType(),(h=e.jsVars)&&h.waitingModule&&e.__state.rendering&&l.needsModule(d,k))h.waitingModuleError=!0,h=V(k).concat(h.userModules),h.length&&(h=h[h.length-1],r[h]=l.moduleCmdQueue[h]);for(u in r)M(r[u]);i.raiseError(i.core,"11171116151",
"run","HC-interface~renderer.load","Unable to load required modules and resources: "+d)},Q=function(d,e,h){i.hcLib.createChart(d,e,"stub",h,d.jsVars.msgStore.ChartNotSupported)};k.charts=i.extend(k.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line:0,bar2d:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,
stackedbar2d:0,stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});k.powercharts=i.extend(k.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,
inversemscolumn2d:0,inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});k.widgets=i.extend(k.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,sparkcolumn:0,sparkline:0,
sparkwinloss:0,thermometer:0,vbullet:0,gantt:0,vled:0});k.maps=i.extend(k.maps||{},{});i.extend(u,{render:function(d,k){var w=this.chartType(),A=this.jsVars,M=this.__state,H=l.chartAPI,D;D=V(w).concat(A.userModules);if(A.isResizing)A.isResizing=clearTimeout(A.isResizing);A.hcObj&&A.hcObj.destroy&&A.hcObj.destroy();if(H[w]){if(H[M.lastRenderedType]&&M.lastRenderedType!==w)for(var q in H[M.lastRenderedType].eiMethods)delete this[q];M.lastRenderedType=w;M.lastRenderedSrc=this.src;delete A.waitingModule;
delete A.waitingModuleError;delete A.drLoadAttempted;i.hcLib.createChart(this,d,w,k)}else{if(r(D))if(A.drLoadAttempted){i.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");Q(this,d,k);return}else e(w)&&(D=V(w).concat(A.userModules)),A.drLoadAttempted=!0;else if(D.length){if(A.waitingModuleError){Q(this,d,k);delete A.waitingModule;delete A.waitingModuleError;return}}else{Q(this,d,k);return}(w=h[D[D.length-1]])?(w.push({cmd:"render",
obj:this,args:arguments}),A.waitingModule||(i.hcLib.createChart(this,d,"stub",void 0,A.msgStore.PBarLoadingText||A.msgStore.LoadingText),u.load.call(this))):(i.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),i.hcLib.createChart(this,d,"stub",void 0,A.msgStore.RenderChartErrorText))}},update:function(d){var e=this.ref,h=this.jsVars;h.hcObj&&h.hcObj.destroy&&h.hcObj.destroy();if(h.isResizing)h.isResizing=clearTimeout(h.isResizing);
d.error===void 0?(delete h.stallLoad,delete h.loadError,this.isActive()&&(this.src!==this.__state.lastRenderedSrc?this.render():i.hcLib.createChart(this,h.container,h.type))):(this.isActive()&&typeof e.showChartMessage==="function"&&e.showChartMessage("InvalidXMLText"),delete h.loadError)},resize:function(d){var e=this.ref,h,k=this.jsVars;if(e&&e.resize){if(k.isResizing)k.isResizing=clearTimeout(k.isResizing);k.isResizing=setTimeout(function(){h=i.normalizeCSSDimension(d.width,d.height,e);if(d.width!==
void 0)e.style.width=h.width;if(d.height!==void 0)e.style.height=h.height;e.resize();delete k.isResizing},0)}},dispose:function(){var d;d=this.jsVars;var e=d.hcObj||{};if(d.isResizing)d.isResizing=clearTimeout(d.isResizing);d.instanceAPI&&d.instanceAPI.dispose&&d.instanceAPI.dispose();if(d=this.ref)i.purgeDOM(d),d.parentNode&&d.parentNode.removeChild(d);l.cleanupWaitingCommands(this);return e&&e.destroy&&e.destroy()},load:function(){var e=this.jsVars,h=this.chartType(),k=i.hcLib.chartAPI[h],h=V(h).concat(e.userModules),
r=h[h.length-1];if(k||!h||h&&h.length===0)delete e.waitingModule;else if(!e.waitingModule)e.waitingModule=!0,delete e.waitingModuleError,d(h,function(){delete e.waitingModule;M(l.moduleCmdQueue[r])},w,this)}})}})();