1 |
- (function(){var i,bs=document,aU=window,aN=Math,l=aN.round,be=aN.floor,av=aN.ceil,bX=aN.max,ah=aN.min,e=aN.abs,bP=aN.cos,W=aN.sin,I=aN.PI,at=I*2/360,p=navigator.userAgent,ao=aU.opera,n=/msie/i.test(p)&&!ao,z=bs.documentMode===8,E=/AppleWebKit/.test(p),bg=/Firefox/.test(p),aP=/(Mobile|Android|Windows Phone)/.test(p),aS="http://www.w3.org/2000/svg",bO=!!bs.createElementNS&&!!bs.createElementNS(aS,"svg").createSVGRect,Y=bg&&parseInt(p.split("Firefox/")[1],10)<4,aY=!bO&&!n&&!!bs.createElement("canvas").getContext,bJ,A=bs.documentElement.ontouchstart!==i,c={},a1=0,ab,bp,bH,bY,al,aV,h=function(){},aA=[],bt="Highcharts",bM="3.0.6",G="div",aj="absolute",F="relative",ac="hidden",aZ="highcharts-",ag="visible",S="px",w="none",bl="M",bm="L",bR="rgba(192,192,192,"+(bO?0.0001:0.002)+")",af="",aJ="hover",bh="select",bN="millisecond",a9="second",bz="minute",Q="hour",bA="day",bL="week",a8="month",a6="year",au="linearGradient",bB="stops",aF="stroke-width",V,y,R,ap,bc,U,T,ak,by,ay,bD,C,a={};aU.Highcharts=aU.Highcharts?bF(16,true):{};function bd(M,L){var bZ;if(!M){M={}}for(bZ in L){M[bZ]=L[bZ]}return M}function aH(){var b0,L=arguments.length,bZ={},M=function(b4,b2){var b3,b1;if(typeof b4!=="object"){b4={}}for(b1 in b2){if(b2.hasOwnProperty(b1)){b3=b2[b1];if(b3&&typeof b3==="object"&&Object.prototype.toString.call(b3)!=="[object Array]"&&typeof b3.nodeType!=="number"){b4[b1]=M(b4[b1]||{},b3)}else{b4[b1]=b2[b1]}}}return b4};for(b0=0;b0<L;b0++){bZ=M(bZ,arguments[b0])}return bZ}function aM(){var M=0,L=arguments,bZ=L.length,b0={};for(;M<bZ;M++){b0[L[M++]]=L[M]}return b0}function bE(L,M){return parseInt(L,M||10)}function bi(L){return typeof L==="string"}function bU(L){return typeof L==="object"}function aB(L){return Object.prototype.toString.call(L)==="[object Array]"}function an(L){return typeof L==="number"}function q(L){return aN.log(L)/aN.LN10}function t(L){return aN.pow(10,L)}function J(L,bZ){var M=L.length;while(M--){if(L[M]===bZ){L.splice(M,1);break}}}function aa(L){return L!==i&&L!==null}function N(bZ,b2,b1){var M,b0="setAttribute",L;if(bi(b2)){if(aa(b1)){bZ[b0](b2,b1)}else{if(bZ&&bZ.getAttribute){L=bZ.getAttribute(b2)}}}else{if(aa(b2)&&bU(b2)){for(M in b2){bZ[b0](M,b2[M])}}}return L}function a7(L){return aB(L)?L:[L]}function aI(){var M=arguments,bZ,L,b0=M.length;for(bZ=0;bZ<b0;bZ++){L=M[bZ];if(typeof L!=="undefined"&&L!==null){return L}}}function bS(L,M){if(n){if(M&&M.opacity!==i){M.filter="alpha(opacity="+(M.opacity*100)+")"}}bd(L.style,M)}function bf(L,b2,b1,b0,bZ){var M=bs.createElement(L);if(b2){bd(M,b2)}if(bZ){bS(M,{padding:0,border:w,margin:0})}if(b1){bS(M,b1)}if(b0){b0.appendChild(M)}return M}function ba(bZ,L){var M=function(){};M.prototype=new bZ();bd(M.prototype,L);return M}function j(b0,bZ,b6,b5){var L=bp.lang,M=+b0||0,b4=bZ===-1?(M.toString().split(".")[1]||"").length:(isNaN(bZ=e(bZ))?2:bZ),b3=b6===undefined?L.decimalPoint:b6,b7=b5===undefined?L.thousandsSep:b5,b8=M<0?"-":"",b2=String(bE(M=e(M).toFixed(b4))),b1=b2.length>3?b2.length%3:0;return b8+(b1?b2.substr(0,b1)+b7:"")+b2.substr(b1).replace(/(\d{3})(?=\d)/g,"$1"+b7)+(b4?b3+e(M-b2).toFixed(b4).slice(2):"")}function bw(M,L){return new Array((L||2)+1-String(M).length).join(0)+M}function aR(bZ,b0,M){var L=bZ[b0];bZ[b0]=function(){var b1=Array.prototype.slice.call(arguments);b1.unshift(L);return M.apply(this,b1)}}bH=function(b6,b2,b0){if(!aa(b2)||isNaN(b2)){return"Invalid date"}b6=aI(b6,"%Y-%m-%d %H:%M:%S");var M=new Date(b2),b8,b5=M[R](),b3=M[ap](),b7=M[bc](),b1=M[U](),b9=M[T](),L=bp.lang,b4=L.weekdays,bZ=bd({a:b4[b3].substr(0,3),A:b4[b3],d:bw(b7),e:b7,b:L.shortMonths[b1],B:L.months[b1],m:bw(b1+1),y:b9.toString().substr(2,2),Y:b9,H:bw(b5),I:bw((b5%12)||12),l:(b5%12)||12,M:bw(M[y]()),p:b5<12?"AM":"PM",P:b5<12?"am":"pm",S:bw(M.getSeconds()),L:bw(l(b2%1000),3)},Highcharts.dateFormats);for(b8 in bZ){while(b6.indexOf("%"+b8)!==-1){b6=b6.replace("%"+b8,typeof bZ[b8]==="function"?bZ[b8](b2):bZ[b8])}}return b0?b6.substr(0,1).toUpperCase()+b6.substr(1):b6};function a5(bZ,b2){var M=/f$/,b1=/\.([0-9])/,b0=bp.lang,L;if(M.test(bZ)){L=bZ.match(b1);L=L?L[1]:-1;b2=j(b2,L,b0.decimalPoint,bZ.indexOf(",")>-1?b0.thousandsSep:"")}else{b2=bH(bZ,b2)}return b2}function f(b5,b7){var L="{",b6=false,b1,M,b8,b0,b3,b4=[],bZ,b2;while((b2=b5.indexOf(L))!==-1){b1=b5.slice(0,b2);if(b6){M=b1.split(":");b8=M.shift().split(".");b3=b8.length;bZ=b7;for(b0=0;b0<b3;b0++){bZ=bZ[b8[b0]]}if(M.length){bZ=a5(M.join(":"),bZ)}b4.push(bZ)}else{b4.push(b1)}b5=b5.slice(b2+1);b6=!b6;L=b6?"}":"{"}b4.push(b5);return b4.join("")}function k(L){return aN.pow(10,be(aN.log(L)/aN.LN10))}function bx(L,b2,b0,M){var b1,bZ;b0=aI(b0,1);b1=L/b0;if(!b2){b2=[1,2,2.5,5,10];if(M&&M.allowDecimals===false){if(b0===1){b2=[1,2,5,10]}else{if(b0<=0.1){b2=[1/b0]}}}}for(bZ=0;bZ<b2.length;bZ++){L=b2[bZ];if(b1<=(b2[bZ]+(b2[bZ+1]||b2[bZ]))/2){break}}L*=b0;return L}function ai(L,bZ){var b3=bZ||[[bN,[1,2,5,10,20,25,50,100,200,500]],[a9,[1,2,5,10,15,30]],[bz,[1,2,5,10,15,30]],[Q,[1,2,3,4,6,8,12]],[bA,[1,2]],[bL,[1,2]],[a8,[1,2,3,4,6]],[a6,null]],b5=b3[b3.length-1],M=aV[b5[0]],b0=b5[1],b2,b1;for(b1=0;b1<b3.length;b1++){b5=b3[b1];M=aV[b5[0]];b0=b5[1];if(b3[b1+1]){var b4=(M*b0[b0.length-1]+aV[b3[b1+1][0]])/2;if(L<=b4){break}}}if(M===aV[a6]&&L<5*M){b0=[1,2,5]}b2=bx(L/M,b0,b5[0]===a6?k(L/M):1);return{unitRange:M,count:b2,unitName:b5[0]}}function am(b6,b1,b5,cb){var cc=[],b2,ca={},b9=bp.global.useUTC,b8,b0=new Date(b1),M=b6.unitRange,b4=b6.count;if(aa(b1)){if(M>=aV[a9]){b0.setMilliseconds(0);b0.setSeconds(M>=aV[bz]?0:b4*be(b0.getSeconds()/b4))}if(M>=aV[bz]){b0[ak](M>=aV[Q]?0:b4*be(b0[y]()/b4))}if(M>=aV[Q]){b0[by](M>=aV[bA]?0:b4*be(b0[R]()/b4))}if(M>=aV[bA]){b0[ay](M>=aV[a8]?1:b4*be(b0[bc]()/b4))}if(M>=aV[a8]){b0[bD](M>=aV[a6]?0:b4*be(b0[U]()/b4));b8=b0[T]()}if(M>=aV[a6]){b8-=b8%b4;b0[C](b8)}if(M===aV[bL]){b0[ay](b0[bc]()-b0[ap]()+aI(cb,1))}b2=1;b8=b0[T]();var bZ=b0.getTime(),b3=b0[U](),L=b0[bc](),b7=b9?0:(24*3600*1000+b0.getTimezoneOffset()*60*1000)%(24*3600*1000);while(bZ<b5){cc.push(bZ);if(M===aV[a6]){bZ=V(b8+b2*b4,0)}else{if(M===aV[a8]){bZ=V(b8,b3+b2*b4)}else{if(!b9&&(M===aV[bA]||M===aV[bL])){bZ=V(b8,b3,L+b2*b4*(M===aV[bA]?1:7))}else{bZ+=M*b4}}}b2++}cc.push(bZ);B(bo(cc,function(cd){return M<=aV[Q]&&cd%aV[bA]===b7}),function(cd){ca[cd]=bA})}cc.info=bd(b6,{higherRanks:ca,totalRange:M*b4});return cc}function H(){this.color=0;this.symbol=0}H.prototype={wrapColor:function(L){if(this.color>=L){this.color=0}},wrapSymbol:function(L){if(this.symbol>=L){this.symbol=0}}};function aC(M,L){var b1=M.length,bZ,b0;for(b0=0;b0<b1;b0++){M[b0].ss_i=b0}M.sort(function(b3,b2){bZ=L(b3,b2);return bZ===0?b3.ss_i-b2.ss_i:bZ});for(b0=0;b0<b1;b0++){delete M[b0].ss_i}}function bu(bZ){var M=bZ.length,L=bZ[0];while(M--){if(bZ[M]<L){L=bZ[M]}}return L}function aE(bZ){var M=bZ.length,L=bZ[0];while(M--){if(bZ[M]>L){L=bZ[M]}}return L}function a2(M,L){var bZ;for(bZ in M){if(M[bZ]&&M[bZ]!==L&&M[bZ].destroy){M[bZ].destroy()}delete M[bZ]}}function bG(L){if(!ab){ab=bf(G)}if(L){ab.appendChild(L)}ab.innerHTML=""}function bF(M,L){var bZ="Highcharts error #"+M+": www.highcharts.com/errors/"+M;if(L){throw bZ}else{if(aU.console){console.log(bZ)}}}function Z(L){return parseFloat(L.toPrecision(14))}function bT(M,L){bY=aI(M,L.animation)}aV=aM(bN,1,a9,1000,bz,60000,Q,3600000,bA,24*3600000,bL,7*24*3600000,a8,31*24*3600000,a6,31556952000);al={init:function(b1,b6,b7){b6=b6||"";var M=b1.shift,bZ=b6.indexOf("C")>-1,b0=bZ?7:3,b4,b8,b3,L=b6.split(" "),b2=[].concat(b7),ca,b5,b9=function(cb){b3=cb.length;while(b3--){if(cb[b3]===bl){cb.splice(b3+1,0,cb[b3+1],cb[b3+2],cb[b3+1],cb[b3+2])}}};if(bZ){b9(L);b9(b2)}if(b1.isArea){ca=L.splice(L.length-6,6);b5=b2.splice(b2.length-6,6)}if(M<=b2.length/b0&&L.length===b2.length){while(M--){b2=[].concat(b2).splice(0,b0).concat(b2)}}b1.shift=0;if(L.length){b4=b2.length;while(L.length<b4){b8=[].concat(L).splice(L.length-b0,b0);if(bZ){b8[b0-6]=b8[b0-2];b8[b0-5]=b8[b0-1]}L=L.concat(b8)}}if(ca){L=L.concat(ca);b2=b2.concat(b5)}return[L,b2]},step:function(b3,M,b2,L){var b0=[],b1=b3.length,bZ;if(b2===1){b0=L}else{if(b1===M.length&&b2<1){while(b1--){bZ=parseFloat(b3[b1]);b0[b1]=isNaN(bZ)?b3[b1]:b2*(parseFloat(M[b1]-bZ))+bZ}}else{b0=M}}return b0}};(function(L){aU.HighchartsAdapter=aU.HighchartsAdapter||(L&&{init:function(b3){var b2=L.fx,bZ=b2.step,b1,b4=L.Tween,M=b4&&b4.propHooks,b0=L.cssHooks.opacity;L.extend(L.easing,{easeOutQuad:function(b6,b7,b5,b9,b8){return -b9*(b7/=b8)*(b7-2)+b5}});L.each(["cur","_default","width","height","opacity"],function(b5,b6){var b9=bZ,b8,b7;if(b6==="cur"){b9=b2.prototype}else{if(b6==="_default"&&b4){b9=M[b6];b6="set"}}b8=b9[b6];if(b8){b9[b6]=function(ca){ca=b5?ca:this;if(ca.prop==="align"){return}b7=ca.elem;return b7.attr?b7.attr(ca.prop,b6==="cur"?i:ca.now):b8.apply(this,arguments)}}});aR(b0,"get",function(b7,b6,b5){return b6.attr?(b6.opacity||0):b7.call(this,b6,b5)});b1=function(b7){var b6=b7.elem,b5;if(!b7.started){b5=b3.init(b6,b6.d,b6.toD);b7.start=b5[0];b7.end=b5[1];b7.started=true}b6.attr("d",b3.step(b7.start,b7.end,b7.pos,b6.toD))};if(b4){M.d={set:b1}}else{bZ.d=b1}this.each=Array.prototype.forEach?function(b5,b6){return Array.prototype.forEach.call(b5,b6)}:function(b6,b8){var b7=0,b5=b6.length;for(;b7<b5;b7++){if(b8.call(b6[b7],b6[b7],b7,b6)===false){return b7}}};L.fn.highcharts=function(){var b9="Chart",b7=arguments,b6,b5,b8;if(bi(b7[0])){b9=b7[0];b7=Array.prototype.slice.call(b7,1)}b6=b7[0];if(b6!==i){b6.chart=b6.chart||{};b6.chart.renderTo=this[0];b8=new Highcharts[b9](b6,b7[1]);b5=this}if(b6===i){b5=aA[N(this[0],"data-highcharts-chart")]}return b5}},getScript:L.getScript,inArray:L.inArray,adapterRun:function(M,bZ){return L(M)[bZ]()},grep:L.grep,map:function(bZ,b2){var b1=[],b0=0,M=bZ.length;for(;b0<M;b0++){b1[b0]=b2.call(bZ[b0],bZ[b0],b0,bZ)}return b1},offset:function(M){return L(M).offset()},addEvent:function(bZ,b0,M){L(bZ).bind(b0,M)},removeEvent:function(b0,M,bZ){var b1=bs.removeEventListener?"removeEventListener":"detachEvent";if(bs[b1]&&b0&&!b0[b1]){b0[b1]=function(){}}L(b0).unbind(M,bZ)},fireEvent:function(b2,b1,bZ,M){var b4=L.Event(b1),b3="detached"+b1,b0;if(!n&&bZ){delete bZ.layerX;delete bZ.layerY}bd(b4,bZ);if(b2[b1]){b2[b3]=b2[b1];b2[b1]=null}L.each(["preventDefault","stopPropagation"],function(b5,b6){var b7=b4[b6];b4[b6]=function(){try{b7.call(b4)}catch(b8){if(b6==="preventDefault"){b0=true}}}});L(b2).trigger(b4);if(b2[b3]){b2[b1]=b2[b3];b2[b3]=null}if(M&&!b4.isDefaultPrevented()&&!b0){M(b4)}},washMouseEvent:function(bZ){var M=bZ.originalEvent||bZ;if(M.pageX===i){M.pageX=bZ.pageX;M.pageY=bZ.pageY}return M},animate:function(b0,b1,M){var bZ=L(b0);if(!b0.style){b0.style={}}if(b1.d){b0.toD=b1.d;b1.d=1}bZ.stop();if(b1.opacity!==i&&b0.attr){b1.opacity+="px"}bZ.animate(b1,M)},stop:function(M){L(M).stop()}})}(aU.jQuery));var X=aU.HighchartsAdapter,bQ=X||{};if(X){X.init.call(X,al)}var aD=bQ.adapterRun,a4=bQ.getScript,v=bQ.inArray,B=bQ.each,bo=bQ.grep,bI=bQ.offset,ad=bQ.map,u=bQ.addEvent,aW=bQ.removeEvent,bk=bQ.fireEvent,K=bQ.washMouseEvent,o=bQ.animate,aQ=bQ.stop;var r={enabled:true,x:0,y:15,style:{color:"#666",cursor:"default",fontSize:"11px",lineHeight:"14px"}};bp={colors:["#2f7ed8","#0d233a","#8bbc21","#910000","#1aadce","#492970","#f28f43","#77a1e5","#c42525","#a6c96a"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true,canvasToolsURL:"http://code.highcharts.com/3.0.6/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/3.0.6/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,spacing:[10,10,15,10],style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#274b6d",fontSize:"16px"}},subtitle:{text:"",align:"center",style:{color:"#4d759e"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1000},events:{},lineWidth:2,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:true},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:aH(r,{align:"center",enabled:false,formatter:function(){return this.y===null?"":j(this.y,-1)},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:aj,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:false,itemStyle:{cursor:"pointer",color:"#274b6d",fontSize:"12px"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:aj,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:F,top:"1em"},style:{position:aj,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,animation:bO,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:true,snap:aP?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:true,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var ae=bp.plotOptions,aL=ae.line;O();function O(){var bZ=bp.global.useUTC,L=bZ?"getUTC":"get",M=bZ?"setUTC":"set";V=bZ?Date.UTC:function(b3,b4,b1,b0,b2,b5){return new Date(b3,b4,aI(b1,1),aI(b0,0),aI(b2,0),aI(b5,0)).getTime()};y=L+"Minutes";R=L+"Hours";ap=L+"Day";bc=L+"Date";U=L+"Month";T=L+"FullYear";ak=M+"Minutes";by=M+"Hours";ay=M+"Date";bD=M+"Month";C=M+"FullYear"}function a0(L){bp=aH(bp,L);O();return bp}function az(){return bp}var bC=function(M){var b1=[],L,b3;function b4(b5){if(b5&&b5.stops){b3=ad(b5.stops,function(b6){return bC(b6[1])})}else{L=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(b5);if(L){b1=[bE(L[1]),bE(L[2]),bE(L[3]),parseFloat(L[4],10)]}else{L=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b5);if(L){b1=[bE(L[1],16),bE(L[2],16),bE(L[3],16),1]}else{L=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b5);if(L){b1=[bE(L[1]),bE(L[2]),bE(L[3]),1]}}}}}function b0(b6){var b5;if(b3){b5=aH(M);b5.stops=[].concat(b5.stops);B(b3,function(b8,b7){b5.stops[b7]=[b5.stops[b7][0],b8.get(b6)]})}else{if(b1&&!isNaN(b1[0])){if(b6==="rgb"){b5="rgb("+b1[0]+","+b1[1]+","+b1[2]+")"}else{if(b6==="a"){b5=b1[3]}else{b5="rgba("+b1.join(",")+")"}}}else{b5=M}}return b5}function b2(b6){if(b3){B(b3,function(b7){b7.brighten(b6)})}else{if(an(b6)&&b6!==0){var b5;for(b5=0;b5<3;b5++){b1[b5]+=bE(b6*255);if(b1[b5]<0){b1[b5]=0}if(b1[b5]>255){b1[b5]=255}}}}return this}function bZ(b5){b1[3]=b5;return this}b4(M);return{get:b0,brighten:b2,rgba:b1,setOpacity:bZ}};function ar(){}ar.prototype={init:function(L,bZ){var M=this;M.element=bZ==="span"?bf(bZ):bs.createElementNS(aS,bZ);M.renderer=L;M.attrSetters={}},opacity:1,animate:function(b0,M,L){var bZ=aI(M,bY,true);aQ(this);if(bZ){bZ=aH(bZ);if(L){bZ.complete=L}o(this,b0,bZ)}else{this.attr(b0);if(L){L()}}},attr:function(bZ,ce){var b1=this,cc,b7,b6,ca,b4,b0=b1.element,L=b0.nodeName.toLowerCase(),b8=b1.renderer,b5,b9,cd=b1.attrSetters,M=b1.shadows,b3,b2,cb=b1;if(bi(bZ)&&aa(ce)){cc=bZ;bZ={};bZ[cc]=ce}if(bi(bZ)){cc=bZ;if(L==="circle"){cc={x:"cx",y:"cy"}[cc]||cc}else{if(cc==="strokeWidth"){cc="stroke-width"}}cb=N(b0,cc)||b1[cc]||0;if(cc!=="d"&&cc!=="visibility"&&cc!=="fill"){cb=parseFloat(cb)}}else{for(cc in bZ){b5=false;b7=bZ[cc];b6=cd[cc]&&cd[cc].call(b1,b7,cc);if(b6!==false){if(b6!==i){b7=b6}if(cc==="d"){if(b7&&b7.join){b7=b7.join(" ")}if(/(NaN| {2}|^$)/.test(b7)){b7="M 0 0"}}else{if(cc==="x"&&L==="text"){for(ca=0;ca<b0.childNodes.length;ca++){b4=b0.childNodes[ca];if(N(b4,"x")===N(b0,"x")){N(b4,"x",b7)}}}else{if(b1.rotation&&(cc==="x"||cc==="y")){b2=true}else{if(cc==="fill"){b7=b8.color(b7,b0,cc)}else{if(L==="circle"&&(cc==="x"||cc==="y")){cc={x:"cx",y:"cy"}[cc]||cc}else{if(L==="rect"&&cc==="r"){N(b0,{rx:b7,ry:b7});b5=true}else{if(cc==="translateX"||cc==="translateY"||cc==="rotation"||cc==="verticalAlign"||cc==="scaleX"||cc==="scaleY"){b2=true;b5=true}else{if(cc==="stroke"){b7=b8.color(b7,b0,cc)}else{if(cc==="dashstyle"){cc="stroke-dasharray";b7=b7&&b7.toLowerCase();if(b7==="solid"){b7=w}else{if(b7){b7=b7.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");ca=b7.length;while(ca--){b7[ca]=bE(b7[ca])*aI(bZ["stroke-width"],b1["stroke-width"])}b7=b7.join(",")}}}else{if(cc==="width"){b7=bE(b7)}else{if(cc==="align"){cc="text-anchor";b7={left:"start",center:"middle",right:"end"}[b7]}else{if(cc==="title"){b9=b0.getElementsByTagName("title")[0];if(!b9){b9=bs.createElementNS(aS,"title");b0.appendChild(b9)}b9.textContent=b7}}}}}}}}}}}}if(cc==="strokeWidth"){cc="stroke-width"}if(cc==="stroke-width"||cc==="stroke"){b1[cc]=b7;if(b1.stroke&&b1["stroke-width"]){N(b0,"stroke",b1.stroke);N(b0,"stroke-width",b1["stroke-width"]);b1.hasStroke=true}else{if(cc==="stroke-width"&&b7===0&&b1.hasStroke){b0.removeAttribute("stroke");b1.hasStroke=false}}b5=true}if(b1.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(cc)){if(!b3){b1.symbolAttr(bZ);b3=true}b5=true}if(M&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(cc)){ca=M.length;while(ca--){N(M[ca],cc,cc==="height"?bX(b7-(M[ca].cutHeight||0),0):b7)}}if((cc==="width"||cc==="height")&&L==="rect"&&b7<0){b7=0}b1[cc]=b7;if(cc==="text"){if(b7!==b1.textStr){delete b1.bBox}b1.textStr=b7;if(b1.added){b8.buildText(b1)}}else{if(!b5){N(b0,cc,b7)}}}}if(b2){b1.updateTransform()}}return cb},addClass:function(M){var L=this.element,bZ=N(L,"class")||"";if(bZ.indexOf(M)===-1){N(L,"class",bZ+" "+M)}return this},symbolAttr:function(L){var M=this;B(["x","y","r","start","end","width","height","innerR","anchorX","anchorY"],function(bZ){M[bZ]=aI(L[bZ],M[bZ])});M.attr({d:M.renderer.symbols[M.symbolName](M.x,M.y,M.width,M.height,M)})},clip:function(L){return this.attr("clip-path",L?"url("+this.renderer.url+"#"+L.id+")":w)},crisp:function(b2,b3,b1,bZ,b6){var L=this,b5,M={},b4={},b0;b2=b2||L.strokeWidth||(L.attr&&L.attr("stroke-width"))||0;b0=l(b2)%2/2;b4.x=be(b3||L.x||0)+b0;b4.y=be(b1||L.y||0)+b0;b4.width=be((bZ||L.width||0)-2*b0);b4.height=be((b6||L.height||0)-2*b0);b4.strokeWidth=b2;for(b5 in b4){if(L[b5]!==b4[b5]){L[b5]=M[b5]=b4[b5]}}return M},css:function(b0){var L=this,bZ=L.element,b2=b0&&b0.width&&bZ.nodeName.toLowerCase()==="text",b3,b1="",M=function(b5,b4){return"-"+b4.toLowerCase()};if(b0&&b0.color){b0.fill=b0.color}b0=bd(L.styles,b0);L.styles=b0;if(aY&&b2){delete b0.width}if(n&&!bO){if(b2){delete b0.width}bS(L.element,b0)}else{for(b3 in b0){b1+=b3.replace(/([A-Z])/g,M)+":"+b0[b3]+";"}N(bZ,"style",b1)}if(b2&&L.added){L.renderer.buildText(L)}return L},on:function(M,bZ){var b0=this,L=b0.element;if(A&&M==="click"){L.ontouchstart=function(b1){b0.touchEventFired=Date.now();b1.preventDefault();bZ.call(L,b1)};L.onclick=function(b1){if(p.indexOf("Android")===-1||Date.now()-(b0.touchEventFired||0)>1100){bZ.call(L,b1)}}}else{L["on"+M]=bZ}return this},setRadialReference:function(L){this.element.radialReference=L;return this},translate:function(L,M){return this.attr({translateX:L,translateY:M})},invert:function(){var L=this;L.inverted=true;L.updateTransform();return L},htmlCss:function(M){var b0=this,L=b0.element,bZ=M&&L.tagName==="SPAN"&&M.width;if(bZ){delete M.width;b0.textWidth=bZ;b0.updateTransform()}b0.styles=bd(b0.styles,M);bS(b0.element,M);return b0},htmlGetBBox:function(){var bZ=this,L=bZ.element,M=bZ.bBox;if(!M){if(L.nodeName==="text"){L.style.position=aj}M=bZ.bBox={x:L.offsetLeft,y:L.offsetTop,width:L.offsetWidth,height:L.offsetHeight}}return M},htmlUpdateTransform:function(){if(!this.added){this.alignOnAdd=true;return}var b0=this,cc=b0.renderer,cg=b0.element,cj=b0.translateX||0,ci=b0.translateY||0,b5=b0.x||0,b3=b0.y||0,ce=b0.textAlign||"left",b6={left:0,center:0.5,right:1}[ce],b1=ce&&ce!=="left",L=b0.shadows;bS(cg,{marginLeft:cj,marginTop:ci});if(L){B(L,function(ck){bS(ck,{marginLeft:cj+1,marginTop:ci+1})})}if(b0.inverted){B(cg.childNodes,function(ck){cc.invertChild(ck,cg)})}if(cg.tagName==="SPAN"){var cb,b9,cd=b0.rotation,b8,ch=0,bZ=1,b7=0,b4,M=bE(b0.textWidth),cf=b0.xCorr||0,b2=b0.yCorr||0,ca=[cd,ce,cg.innerHTML,b0.textWidth].join(",");if(ca!==b0.cTT){if(aa(cd)){ch=cd*at;bZ=bP(ch);b7=W(ch);b0.setSpanRotation(cd,b7,bZ)}cb=aI(b0.elemWidth,cg.offsetWidth);b9=aI(b0.elemHeight,cg.offsetHeight);if(cb>M&&/[ \-]/.test(cg.textContent||cg.innerText)){bS(cg,{width:M+S,display:"block",whiteSpace:"normal"});cb=M}b8=cc.fontMetrics(cg.style.fontSize).b;cf=bZ<0&&-cb;b2=b7<0&&-b9;b4=bZ*b7<0;cf+=b7*b8*(b4?1-b6:b6);b2-=bZ*b8*(cd?(b4?b6:1-b6):1);if(b1){cf-=cb*b6*(bZ<0?-1:1);if(cd){b2-=b9*b6*(b7<0?-1:1)}bS(cg,{textAlign:ce})}b0.xCorr=cf;b0.yCorr=b2}bS(cg,{left:(b5+cf)+S,top:(b3+b2)+S});if(E){b9=cg.offsetHeight}b0.cTT=ca}},setSpanRotation:function(M){var bZ={},L=n?"-ms-transform":E?"-webkit-transform":bg?"MozTransform":ao?"-o-transform":"";bZ[L]=bZ.transform="rotate("+M+"deg)";bS(this.element,bZ)},updateTransform:function(){var b4=this,b3=b4.translateX||0,b2=b4.translateY||0,b0=b4.scaleX,M=b4.scaleY,L=b4.inverted,b1=b4.rotation,bZ;if(L){b3+=b4.attr("width");b2+=b4.attr("height")}bZ=["translate("+b3+","+b2+")"];if(L){bZ.push("rotate(90) scale(-1,1)")}else{if(b1){bZ.push("rotate("+b1+" "+(b4.x||0)+" "+(b4.y||0)+")")}}if(aa(b0)||aa(M)){bZ.push("scale("+aI(b0,1)+" "+aI(M,1)+")")}if(bZ.length){N(b4.element,"transform",bZ.join(" "))}},toFront:function(){var L=this.element;L.parentNode.appendChild(L);return this},align:function(M,b5,b0){var b3,b1,b7,b6,L={},b2,b4=this.renderer,bZ=b4.alignedObjects;if(M){this.alignOptions=M;this.alignByTranslate=b5;if(!b0||bi(b0)){this.alignTo=b2=b0||"renderer";J(bZ,this);bZ.push(this);b0=null}}else{M=this.alignOptions;b5=this.alignByTranslate;b2=this.alignTo}b0=aI(b0,b4[b2],b4);b3=M.align;b1=M.verticalAlign;b7=(b0.x||0)+(M.x||0);b6=(b0.y||0)+(M.y||0);if(b3==="right"||b3==="center"){b7+=(b0.width-(M.width||0))/{right:1,center:2}[b3]}L[b5?"translateX":"x"]=l(b7);if(b1==="bottom"||b1==="middle"){b6+=(b0.height-(M.height||0))/({bottom:1,middle:2}[b1]||1)}L[b5?"translateY":"y"]=l(b6);this[this.placed?"animate":"attr"](L);this.placed=true;this.alignAttr=L;return this},getBBox:function(){var L=this,b5=L.bBox,b1=L.renderer,M,b3,b6=L.rotation,bZ=L.element,b4=L.styles,b2=b6*at;if(!b5){if(bZ.namespaceURI===aS||b1.forExport){try{b5=bZ.getBBox?bd({},bZ.getBBox()):{width:bZ.offsetWidth,height:bZ.offsetHeight}}catch(b0){}if(!b5||b5.width<0){b5={width:0,height:0}}}else{b5=L.htmlGetBBox()}if(b1.isSVG){M=b5.width;b3=b5.height;if(n&&b4&&b4.fontSize==="11px"&&b3.toPrecision(3)==="22.7"){b5.height=b3=14}if(b6){b5.width=e(b3*W(b2))+e(M*bP(b2));b5.height=e(b3*bP(b2))+e(M*W(b2))}}L.bBox=b5}return b5},show:function(){return this.attr({visibility:ag})},hide:function(){return this.attr({visibility:ac})},fadeOut:function(M){var L=this;L.animate({opacity:0},{duration:M||150,complete:function(){L.hide()}})},add:function(b5){var b3=this.renderer,b2=b5||b3,b1=b2.element||b3.box,b7=b1.childNodes,b0=this.element,b4=N(b0,"zIndex"),b6,L,bZ,M;if(b5){this.parentGroup=b5}this.parentInverted=b5&&b5.inverted;if(this.textStr!==undefined){b3.buildText(this)}if(b4){b2.handleZ=true;b4=bE(b4)}if(b2.handleZ){for(bZ=0;bZ<b7.length;bZ++){b6=b7[bZ];L=N(b6,"zIndex");if(b6!==b0&&(bE(L)>b4||(!aa(b4)&&aa(L)))){b1.insertBefore(b0,b6);M=true;break}}}if(!M){b1.appendChild(b0)}this.added=true;bk(this,"add");return this},safeRemoveChild:function(M){var L=M.parentNode;if(L){L.removeChild(M)}},destroy:function(){var b3=this,bZ=b3.element||{},b1=b3.shadows,b0=b3.renderer.isSVG&&bZ.nodeName==="SPAN"&&bZ.parentNode,b2,M,L;bZ.onclick=bZ.onmouseout=bZ.onmouseover=bZ.onmousemove=bZ.point=null;aQ(b3);if(b3.clipPath){b3.clipPath=b3.clipPath.destroy()}if(b3.stops){for(L=0;L<b3.stops.length;L++){b3.stops[L]=b3.stops[L].destroy()}b3.stops=null}b3.safeRemoveChild(bZ);if(b1){B(b1,function(b4){b3.safeRemoveChild(b4)})}while(b0&&b0.childNodes.length===0){b2=b0.parentNode;b3.safeRemoveChild(b0);b0=b2}if(b3.alignTo){J(b3.renderer.alignedObjects,b3)}for(M in b3){delete b3[M]}return null},shadow:function(b7,b6,M){var b0=[],b1,b5,b2=this.element,b3,bZ,b4,L;if(b7){bZ=aI(b7.width,3);b4=(b7.opacity||0.15)/bZ;L=this.parentInverted?"(-1,-1)":"("+aI(b7.offsetX,1)+", "+aI(b7.offsetY,1)+")";for(b1=1;b1<=bZ;b1++){b5=b2.cloneNode(0);b3=(bZ*2)+1-(2*b1);N(b5,{isShadow:"true",stroke:b7.color||"black","stroke-opacity":b4*b1,"stroke-width":b3,transform:"translate"+L,fill:w});if(M){N(b5,"height",bX(N(b5,"height")-b3,0));b5.cutHeight=b3}if(b6){b6.element.appendChild(b5)}else{b2.parentNode.insertBefore(b5,b2)}b0.push(b5)}this.shadows=b0}return this}};var d=function(){this.init.apply(this,arguments)};d.prototype={Element:ar,init:function(L,M,b6,b7){var b4=this,b3=location,b1,b0,b2;b1=b4.createElement("svg").attr({version:"1.1"});b0=b1.element;L.appendChild(b0);if(L.innerHTML.indexOf("xmlns")===-1){N(b0,"xmlns",aS)}b4.isSVG=true;b4.box=b0;b4.boxWrapper=b1;b4.alignedObjects=[];b4.url=(bg||E)&&bs.getElementsByTagName("base").length?b3.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";b2=this.createElement("desc").add();b2.element.appendChild(bs.createTextNode("Created with "+bt+" "+bM));b4.defs=this.createElement("defs").add();b4.forExport=b7;b4.gradients={};b4.setSize(M,b6,false);var bZ,b5;if(bg&&L.getBoundingClientRect){b4.subPixelFix=bZ=function(){bS(L,{left:0,top:0});b5=L.getBoundingClientRect();bS(L,{left:(av(b5.left)-b5.left)+S,top:(av(b5.top)-b5.top)+S})};bZ();u(aU,"resize",bZ)}},isHidden:function(){return !this.boxWrapper.getBBox().width},destroy:function(){var L=this,M=L.defs;L.box=null;L.boxWrapper=L.boxWrapper.destroy();a2(L.gradients||{});L.gradients=null;if(M){L.defs=M.destroy()}if(L.subPixelFix){aW(aU,"resize",L.subPixelFix)}L.alignedObjects=null;return null},createElement:function(M){var L=new this.Element();L.init(this,M);return L},draw:function(){},buildText:function(L){var b0=L.element,b2=this,b8=b2.forExport,b9=aI(L.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),b5=b0.childNodes,b7=/style="([^"]+)"/,bZ=/href="(http[^"]+)"/,b6=N(b0,"x"),b3=L.styles,M=b3&&b3.width&&bE(b3.width),b4=b3&&b3.lineHeight,b1=b5.length;while(b1--){b0.removeChild(b5[b1])}if(M&&!L.added){this.box.appendChild(b0)}if(b9[b9.length-1]===""){b9.pop()}B(b9,function(ca,cd){var cc,cb=0;ca=ca.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");cc=ca.split("|||");B(cc,function(cl){if(cl!==""||cc.length===1){var ci={},ck=bs.createElementNS(aS,"tspan"),cm;if(b7.test(cl)){cm=cl.match(b7)[1].replace(/(;| |^)color([ :])/,"$1fill$2");N(ck,"style",cm)}if(bZ.test(cl)&&!b8){N(ck,"onclick",'location.href="'+cl.match(bZ)[1]+'"');bS(ck,{cursor:"pointer"})}cl=(cl.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">");if(cl!==" "){ck.appendChild(bs.createTextNode(cl));if(!cb){ci.x=b6}else{ci.dx=0}N(ck,ci);if(!cb&&cd){if(!bO&&b8){bS(ck,{display:"block"})}N(ck,"dy",b4||b2.fontMetrics(/px$/.test(ck.style.fontSize)?ck.style.fontSize:b3.fontSize).h,E&&ck.offsetHeight)}b0.appendChild(ck);cb++;if(M){var cj=cl.replace(/([^\^])-/g,"$1- ").split(" "),cn,ce,ch=L._clipHeight,cf=[],cp=bE(b4||16),cg=1,co;while(cj.length||cf.length){delete L.bBox;co=L.getBBox();ce=co.width;cn=ce>M;if(!cn||cj.length===1){cj=cf;cf=[];if(cj.length){cg++;if(ch&&cg*cp>ch){cj=["..."];L.attr("title",L.textStr)}else{ck=bs.createElementNS(aS,"tspan");N(ck,{dy:cp,x:b6});if(cm){N(ck,"style",cm)}b0.appendChild(ck);if(ce>M){M=ce}}}}else{ck.removeChild(ck.firstChild);cf.unshift(cj.pop())}if(cj.length){ck.appendChild(bs.createTextNode(cj.join(" ").replace(/- /g,"-")))}}}}}})})},button:function(b9,b8,b7,bZ,cc,cd,ce,cb){var b6=this.label(b9,b8,b7,null,null,null,null,null,"button"),b3=0,L,ca,b1,b4,b5,b0,b2="style",M={x1:0,y1:0,x2:0,y2:1};cc=aH({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:M,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},cc);b1=cc[b2];delete cc[b2];cd=aH(cc,{stroke:"#68A",fill:{linearGradient:M,stops:[[0,"#FFF"],[1,"#ACF"]]}},cd);b4=cd[b2];delete cd[b2];ce=aH(cc,{stroke:"#68A",fill:{linearGradient:M,stops:[[0,"#9BD"],[1,"#CDF"]]}},ce);b5=ce[b2];delete ce[b2];cb=aH(cc,{style:{color:"#CCC"}},cb);b0=cb[b2];delete cb[b2];u(b6.element,n?"mouseover":"mouseenter",function(){if(b3!==3){b6.attr(cd).css(b4)}});u(b6.element,n?"mouseout":"mouseleave",function(){if(b3!==3){L=[cc,cd,ce][b3];ca=[b1,b4,b5][b3];b6.attr(L).css(ca)}});b6.setState=function(cf){b6.state=b3=cf;if(!cf){b6.attr(cc).css(b1)}else{if(cf===2){b6.attr(ce).css(b5)}else{if(cf===3){b6.attr(cb).css(b0)}}}};return b6.on("click",function(){if(b3!==3){bZ.call(b6)}}).attr(cc).css(bd({cursor:"default"},b1))},crispLine:function(M,L){if(M[1]===M[4]){M[1]=M[4]=l(M[1])-(L%2/2)}if(M[2]===M[5]){M[2]=M[5]=l(M[2])+(L%2/2)}return M},path:function(M){var L={fill:w};if(aB(M)){L.d=M}else{if(bU(M)){bd(L,M)}}return this.createElement("path").attr(L)},circle:function(M,b0,bZ){var L=bU(M)?M:{x:M,y:b0,r:bZ};return this.createElement("circle").attr(L)},arc:function(L,b3,b1,bZ,b2,M){var b0;if(bU(L)){b3=L.y;b1=L.r;bZ=L.innerR;b2=L.start;M=L.end;L=L.x}b0=this.symbol("arc",L||0,b3||0,b1||0,b1||0,{innerR:bZ||0,start:b2||0,end:M||0});b0.r=b1;return b0},rect:function(M,b3,bZ,L,b0,b2){b0=bU(M)?M.r:b0;var b1=this.createElement("rect").attr({rx:b0,ry:b0,fill:w});return b1.attr(bU(M)?M:b1.crisp(b2,M,b3,bX(bZ,0),bX(L,0)))},setSize:function(b1,L,bZ){var b2=this,M=b2.alignedObjects,b0=M.length;b2.width=b1;b2.height=L;b2.boxWrapper[aI(bZ,true)?"animate":"attr"]({width:b1,height:L});while(b0--){M[b0].align()}},g:function(L){var M=this.createElement("g");return aa(L)?M.attr({"class":aZ+L}):M},image:function(b2,M,b3,b0,L){var b1={preserveAspectRatio:w},bZ;if(arguments.length>1){bd(b1,{x:M,y:b3,width:b0,height:L})}bZ=this.createElement("image").attr(b1);if(bZ.element.setAttributeNS){bZ.element.setAttributeNS("http://www.w3.org/1999/xlink","href",b2)}else{bZ.element.setAttribute("hc-svg-href",b2)}return bZ},symbol:function(b0,b7,b5,M,b8,ca){var b2,bZ=this.symbols[b0],b9=bZ&&bZ(l(b7),l(b5),M,b8,ca),b4,b1=/^url\((.*?)\)$/,b6,b3,L;if(b9){b2=this.path(b9);bd(b2,{symbolName:b0,x:b7,y:b5,width:M,height:b8});if(ca){bd(b2,ca)}}else{if(b1.test(b0)){L=function(cb,cc){if(cb.element){cb.attr({width:cc[0],height:cc[1]});if(!cb.alignByTranslate){cb.translate(l((M-cc[0])/2),l((b8-cc[1])/2))}}};b6=b0.match(b1)[1];b3=c[b6];b2=this.image(b6).attr({x:b7,y:b5});b2.isImg=true;if(b3){L(b2,b3)}else{b2.attr({width:0,height:0});b4=bf("img",{onload:function(){L(b2,c[b6]=[this.width,this.height])},src:b6})}}}return b2},symbols:{circle:function(L,b1,M,b0){var bZ=0.166*M;return[bl,L+M/2,b1,"C",L+M+bZ,b1,L+M+bZ,b1+b0,L+M/2,b1+b0,"C",L-bZ,b1+b0,L-bZ,b1,L+M/2,b1,"Z"]},square:function(L,b0,M,bZ){return[bl,L,b0,bm,L+M,b0,L+M,b0+bZ,L,b0+bZ,"Z"]},triangle:function(L,b0,M,bZ){return[bl,L+M/2,b0,bm,L+M,b0+bZ,L,b0+bZ,"Z"]},"triangle-down":function(L,b0,M,bZ){return[bl,L,b0,bm,L+M,b0,L+M/2,b0+bZ,"Z"]},diamond:function(L,b0,M,bZ){return[bl,L+M/2,b0,bm,L+M,b0+bZ/2,L+M/2,b0+bZ,L,b0+bZ/2,"Z"]},arc:function(b8,b7,ca,b3,cb){var bZ=cb.start,b5=cb.r||ca||b3,b0=cb.end-0.001,b6=cb.innerR,b2=cb.open,b4=bP(bZ),L=W(bZ),M=bP(b0),b9=W(b0),b1=cb.end-bZ<I?0:1;return[bl,b8+b5*b4,b7+b5*L,"A",b5,b5,0,b1,1,b8+b5*M,b7+b5*b9,b2?bl:bm,b8+b6*M,b7+b6*b9,"A",b6,b6,0,b1,0,b8+b6*b4,b7+b6*L,b2?"":"Z"]}},clipRect:function(M,b3,bZ,L){var b2,b1=aZ+a1++,b0=this.createElement("clipPath").attr({id:b1}).add(this.defs);b2=this.rect(M,b3,bZ,L,0).add(b0);b2.id=b1;b2.clipPath=b0;return b2},color:function(b3,b2,M){var b9=this,cb,b0=/^rgba/,cd,b5,b6,L,cc,b8,b7,b4,b1,bZ,ca=[];if(b3&&b3.linearGradient){cd="linearGradient"}else{if(b3&&b3.radialGradient){cd="radialGradient"}}if(cd){b5=b3[cd];b6=b9.gradients;cc=b3.stops;b4=b2.radialReference;if(aB(b5)){b3[cd]=b5={x1:b5[0],y1:b5[1],x2:b5[2],y2:b5[3],gradientUnits:"userSpaceOnUse"}}if(cd==="radialGradient"&&b4&&!aa(b5.gradientUnits)){b5=aH(b5,{cx:(b4[0]-b4[2]/2)+b5.cx*b4[2],cy:(b4[1]-b4[2]/2)+b5.cy*b4[2],r:b5.r*b4[2],gradientUnits:"userSpaceOnUse"})}for(b1 in b5){if(b1!=="id"){ca.push(b1,b5[b1])}}for(b1 in cc){ca.push(cc[b1])}ca=ca.join(",");if(b6[ca]){bZ=b6[ca].id}else{b5.id=bZ=aZ+a1++;b6[ca]=L=b9.createElement(cd).attr(b5).add(b9.defs);L.stops=[];B(cc,function(ce){var cf;if(b0.test(ce[1])){cb=bC(ce[1]);b8=cb.get("rgb");b7=cb.get("a")}else{b8=ce[1];b7=1}cf=b9.createElement("stop").attr({offset:ce[0],"stop-color":b8,"stop-opacity":b7}).add(L);L.stops.push(cf)})}return"url("+b9.url+"#"+bZ+")"}else{if(b0.test(b3)){cb=bC(b3);N(b2,M+"-opacity",cb.get("a"));return cb.get("rgb")}else{b2.removeAttribute(M+"-opacity");return b3}}},text:function(b2,L,b4,b1){var b0=this,bZ=bp.chart.style,M=aY||(!bO&&b0.forExport),b3;if(b1&&!b0.forExport){return b0.html(b2,L,b4)}L=l(aI(L,0));b4=l(aI(b4,0));b3=b0.createElement("text").attr({x:L,y:b4,text:b2}).css({fontFamily:bZ.fontFamily,fontSize:bZ.fontSize});if(M){b3.css({position:aj})}b3.x=L;b3.y=b4;return b3},html:function(b2,L,b4){var bZ=bp.chart.style,b3=this.createElement("span"),M=b3.attrSetters,b0=b3.element,b1=b3.renderer;M.text=function(b5){if(b5!==b0.innerHTML){delete this.bBox}b0.innerHTML=b5;return false};M.x=M.y=M.align=function(b6,b5){if(b5==="align"){b5="textAlign"}b3[b5]=b6;b3.htmlUpdateTransform();return false};b3.attr({text:b2,x:l(L),y:l(b4)}).css({position:aj,whiteSpace:"nowrap",fontFamily:bZ.fontFamily,fontSize:bZ.fontSize});b3.css=b3.htmlCss;if(b1.isSVG){b3.add=function(b8){var b7,b5=b1.box.parentNode,b9,b6=[];if(b8){b7=b8.div;if(!b7){b9=b8;while(b9){b6.push(b9);b9=b9.parentGroup}B(b6.reverse(),function(cb){var ca;b7=cb.div=cb.div||bf(G,{className:N(cb.element,"class")},{position:aj,left:(cb.translateX||0)+S,top:(cb.translateY||0)+S},b7||b5);ca=b7.style;bd(cb.attrSetters,{translateX:function(cc){ca.left=cc+S},translateY:function(cc){ca.top=cc+S},visibility:function(cd,cc){ca[cc]=cd}})})}}else{b7=b5}b7.appendChild(b0);b3.added=true;if(b3.alignOnAdd){b3.htmlUpdateTransform()}return b3}}return b3},fontMetrics:function(bZ){bZ=bE(bZ||11);var L=bZ<24?bZ+4:l(bZ*1.2),M=l(L*0.8);return{h:L,b:M}},label:function(cj,ca,b8,L,b1,b0,cl,cf,bZ){var ck=this,b2=ck.g(bZ),cd=ck.text("",0,0,cl).attr({zIndex:1}),cb,b5,b4=0,ce=3,co=0,ci,cg,cq,cp,M=0,cc={},b7,cr=b2.attrSetters,cn;function b6(){var cu,ct,cs=cd.element.style;b5=(ci===undefined||cg===undefined||b2.styles.textAlign)&&cd.getBBox();b2.width=(ci||b5.width||0)+2*ce+co;b2.height=(cg||b5.height||0)+2*ce;b7=ce+ck.fontMetrics(cs&&cs.fontSize).b;if(cn){if(!cb){cu=l(-b4*ce);ct=cf?-b7:0;b2.box=cb=L?ck.symbol(L,cu,ct,b2.width,b2.height):ck.rect(cu,ct,b2.width,b2.height,0,cc[aF]);cb.add(b2)}if(!cb.isImg){cb.attr(aH({width:b2.width,height:b2.height},cc))}cc=null}}function b9(){var cu=b2.styles,ct=cu&&cu.textAlign,cs=co+ce*(1-b4),cv;cv=cf?0:b7;if(aa(ci)&&(ct==="center"||ct==="right")){cs+={center:0.5,right:1}[ct]*(ci-b5.width)}if(cs!==cd.x||cv!==cd.y){cd.attr({x:cs,y:cv})}cd.x=cs;cd.y=cv}function cm(cs,ct){if(cb){cb.attr(cs,ct)}else{cc[cs]=ct}}function ch(){cd.add(b2);b2.attr({text:cj,x:ca,y:b8});if(cb&&aa(b1)){b2.attr({anchorX:b1,anchorY:b0})}}u(b2,"add",ch);cr.width=function(cs){ci=cs;return false};cr.height=function(cs){cg=cs;return false};cr.padding=function(cs){if(aa(cs)&&cs!==ce){ce=cs;b9()}return false};cr.paddingLeft=function(cs){if(aa(cs)&&cs!==co){co=cs;b9()}return false};cr.align=function(cs){b4={left:0,center:0.5,right:1}[cs];return false};cr.text=function(ct,cs){cd.attr(cs,ct);b6();b9();return false};cr[aF]=function(ct,cs){cn=true;M=ct%2/2;cm(cs,ct);return false};cr.stroke=cr.fill=cr.r=function(ct,cs){if(cs==="fill"){cn=true}cm(cs,ct);return false};cr.anchorX=function(ct,cs){b1=ct;cm(cs,ct+M-cq);return false};cr.anchorY=function(ct,cs){b0=ct;cm(cs,ct-cp);return false};cr.x=function(cs){b2.x=cs;cs-=b4*((ci||b5.width)+ce);cq=l(cs);b2.attr("translateX",cq);return false};cr.y=function(cs){cp=b2.y=l(cs);b2.attr("translateY",cp);return false};var b3=b2.css;return bd(b2,{css:function(ct){if(ct){var cs={};ct=aH(ct);B(["fontSize","fontWeight","fontFamily","color","lineHeight","width","textDecoration","textShadow"],function(cu){if(ct[cu]!==i){cs[cu]=ct[cu];delete ct[cu]}});cd.css(cs)}return b3.call(b2,ct)},getBBox:function(){return{width:b5.width+2*ce,height:b5.height+2*ce,x:b5.x-ce,y:b5.y-ce}},shadow:function(cs){if(cb){cb.shadow(cs)}return b2},destroy:function(){aW(b2,"add",ch);aW(b2.element,"mouseenter");aW(b2.element,"mouseleave");if(cd){cd=cd.destroy()}if(cb){cb=cb.destroy()}ar.prototype.destroy.call(b2);b2=ck=b6=b9=cm=ch=null}})}};bJ=d;var bV,D;if(!bO&&!aY){Highcharts.VMLElement=D={init:function(b0,b2){var b1=this,L=["<",b2,' filled="f" stroked="f"'],bZ=["position: ",aj,";"],M=b2===G;if(b2==="shape"||M){bZ.push("left:0;top:0;width:1px;height:1px;")}bZ.push("visibility: ",M?ac:ag);L.push(' style="',bZ.join(""),'"/>');if(b2){L=M||b2==="span"||b2==="img"?L.join(""):b0.prepVML(L);b1.element=bf(L)}b1.renderer=b0;b1.attrSetters={}},add:function(b0){var b3=this,b2=b3.renderer,bZ=b3.element,b1=b2.box,M=b0&&b0.inverted,L=b0?b0.element||b0:b1;if(M){b2.invertChild(bZ,L)}L.appendChild(bZ);b3.added=true;if(b3.alignOnAdd&&!b3.deferUpdateTransform){b3.updateTransform()}bk(b3,"add");return b3},updateTransform:ar.prototype.htmlUpdateTransform,setSpanRotation:function(M,bZ,L){bS(this.element,{filter:M?["progid:DXImageTransform.Microsoft.Matrix(M11=",L,", M12=",-bZ,", M21=",bZ,", M22=",L,", sizingMethod='auto expand')"].join(""):w})},pathToVML:function(bZ){var M=bZ.length,b0=[],L;while(M--){if(an(bZ[M])){b0[M]=l(bZ[M]*10)-5}else{if(bZ[M]==="Z"){b0[M]="x"}else{b0[M]=bZ[M];if(bZ.isArc&&(bZ[M]==="wa"||bZ[M]==="at")){L=bZ[M]==="wa"?1:-1;if(b0[M+5]===b0[M+7]){b0[M+7]-=L}if(b0[M+6]===b0[M+8]){b0[M+8]-=L}}}}}return b0.join(" ")||"x"},attr:function(bZ,ce){var b2=this,cc,b7,b9,b6,b0=b2.element||{},ca=b0.style,L=b0.nodeName,b8=b2.renderer,b4=b2.symbolName,b3,M=b2.shadows,b5,cd=b2.attrSetters,cb=b2;if(bi(bZ)&&aa(ce)){cc=bZ;bZ={};bZ[cc]=ce}if(bi(bZ)){cc=bZ;if(cc==="strokeWidth"||cc==="stroke-width"){cb=b2.strokeweight}else{cb=b2[cc]}}else{for(cc in bZ){b7=bZ[cc];b5=false;b6=cd[cc]&&cd[cc].call(b2,b7,cc);if(b6!==false&&b7!==null){if(b6!==i){b7=b6}if(b4&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(cc)){if(!b3){b2.symbolAttr(bZ);b3=true}b5=true}else{if(cc==="d"){b7=b7||[];b2.d=b7.join(" ");b0.path=b7=b2.pathToVML(b7);if(M){b9=M.length;while(b9--){M[b9].path=M[b9].cutOff?this.cutOffPath(b7,M[b9].cutOff):b7}}b5=true}else{if(cc==="visibility"){if(M){b9=M.length;while(b9--){M[b9].style[cc]=b7}}if(L==="DIV"){b7=b7===ac?"-999em":0;if(!z){ca[cc]=b7?ag:ac}cc="top"}ca[cc]=b7;b5=true}else{if(cc==="zIndex"){if(b7){ca[cc]=b7}b5=true}else{if(v(cc,["x","y","width","height"])!==-1){b2[cc]=b7;if(cc==="x"||cc==="y"){cc={x:"left",y:"top"}[cc]}else{b7=bX(0,b7)}if(b2.updateClipping){b2[cc]=b7;b2.updateClipping()}else{ca[cc]=b7}b5=true}else{if(cc==="class"&&L==="DIV"){b0.className=b7}else{if(cc==="stroke"){b7=b8.color(b7,b0,cc);cc="strokecolor"}else{if(cc==="stroke-width"||cc==="strokeWidth"){b0.stroked=b7?true:false;cc="strokeweight";b2[cc]=b7;if(an(b7)){b7+=S}}else{if(cc==="dashstyle"){var b1=b0.getElementsByTagName("stroke")[0]||bf(b8.prepVML(["<stroke/>"]),null,null,b0);b1[cc]=b7||"solid";b2.dashstyle=b7;b5=true}else{if(cc==="fill"){if(L==="SPAN"){ca.color=b7}else{if(L!=="IMG"){b0.filled=b7!==w?true:false;b7=b8.color(b7,b0,cc,b2);cc="fillcolor"}}}else{if(cc==="opacity"){b5=true}else{if(L==="shape"&&cc==="rotation"){b2[cc]=b0.style[cc]=b7;b0.style.left=-l(W(b7*at)+1)+S;b0.style.top=l(bP(b7*at))+S}else{if(cc==="translateX"||cc==="translateY"||cc==="rotation"){b2[cc]=b7;b2.updateTransform();b5=true}else{if(cc==="text"){this.bBox=null;b0.innerHTML=b7;b5=true}}}}}}}}}}}}}}if(!b5){if(z){b0[cc]=b7}else{N(b0,cc,b7)}}}}}return cb},clip:function(L){var b0=this,bZ,M;if(L){bZ=L.members;J(bZ,b0);bZ.push(b0);b0.destroyClip=function(){J(bZ,b0)};M=L.getCSS(b0)}else{if(b0.destroyClip){b0.destroyClip()}M={clip:z?"inherit":"rect(auto)"}}return b0.css(M)},css:ar.prototype.htmlCss,safeRemoveChild:function(L){if(L.parentNode){bG(L)}},destroy:function(){if(this.destroyClip){this.destroyClip()}return ar.prototype.destroy.apply(this)},on:function(L,M){this.element["on"+L]=function(){var bZ=aU.event;bZ.target=bZ.srcElement;M(bZ)};return this},cutOffPath:function(bZ,M){var L;bZ=bZ.split(/[ ,]/);L=bZ.length;if(L===9||L===11){bZ[L-4]=bZ[L-2]=bE(bZ[L-2])-10*M}return bZ.join(" ")},shadow:function(b9,b8,M){var b1=[],b2,b3=this.element,b4=this.renderer,b7,bZ=b3.style,ca,cb=b3.path,b5,L,b0,b6;if(cb&&typeof cb.value!=="string"){cb="x"}L=cb;if(b9){b0=aI(b9.width,3);b6=(b9.opacity||0.15)/b0;for(b2=1;b2<=3;b2++){b5=(b0*2)+1-(2*b2);if(M){L=this.cutOffPath(cb.value,b5+0.5)}ca=['<shape isShadow="true" strokeweight="',b5,'" filled="false" path="',L,'" coordsize="10 10" style="',b3.style.cssText,'" />'];b7=bf(b4.prepVML(ca),null,{left:bE(bZ.left)+aI(b9.offsetX,1),top:bE(bZ.top)+aI(b9.offsetY,1)});if(M){b7.cutOff=b5+1}ca=['<stroke color="',b9.color||"black",'" opacity="',b6*b2,'"/>'];bf(b4.prepVML(ca),null,null,b7);if(b8){b8.element.appendChild(b7)}else{b3.parentNode.insertBefore(b7,b3)}b1.push(b7)}this.shadows=b1}return this}};D=ba(ar,D);var aK={Element:D,isIE8:p.indexOf("MSIE 8.0")>-1,init:function(bZ,b0,M){var b2=this,L,b1;b2.alignedObjects=[];L=b2.createElement(G);b1=L.element;b1.style.position=F;bZ.appendChild(L.element);b2.isVML=true;b2.box=b1;b2.boxWrapper=L;b2.setSize(b0,M,false);if(!bs.namespaces.hcv){bs.namespaces.add("hcv","urn:schemas-microsoft-com:vml");(bs.styleSheets.length?bs.styleSheets[0]:bs.createStyleSheet()).cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},isHidden:function(){return !this.box.offsetWidth},clipRect:function(M,b2,b1,L){var b0=this.createElement(),bZ=bU(M);return bd(b0,{members:[],left:(bZ?M.x:M)+1,top:(bZ?M.y:b2)+1,width:(bZ?M.width:b1)-1,height:(bZ?M.height:L)-1,getCSS:function(b4){var b7=b4.element,cc=b7.nodeName,b8=cc==="shape",b6=b4.inverted,cb=this,ca=cb.top-(b8?b7.offsetTop:0),b5=cb.left,cd=b5+cb.width,b3=ca+cb.height,b9={clip:"rect("+l(b6?b5:ca)+"px,"+l(b6?b3:cd)+"px,"+l(b6?cd:b3)+"px,"+l(b6?ca:b5)+"px)"};if(!b6&&z&&cc==="DIV"){bd(b9,{width:cd+S,height:b3+S})}return b9},updateClipping:function(){B(b0.members,function(b3){b3.css(b0.getCSS(b3))})}})},color:function(ch,cu,b8,ca){var co=this,cf,cp=/^rgba/,cq,b3,cl=w;if(ch&&ch.linearGradient){b3="gradient"}else{if(ch&&ch.radialGradient){b3="pattern"}}if(b3){var cc,bZ,b7=ch.linearGradient||ch.radialGradient,b6,cw,b5,cv,ck,cj,ce,cd,cm="",cg=ch.stops,ct,ci,cr=[],M=function(){cq=['<fill colors="'+cr.join(",")+'" opacity="',cj,'" o:opacity2="',ck,'" type="',b3,'" ',cm,'focus="100%" method="any" />'];bf(co.prepVML(cq),null,null,cu)};ct=cg[0];ci=cg[cg.length-1];if(ct[0]>0){cg.unshift([0,ct[1]])}if(ci[0]<1){cg.push([1,ci[1]])}B(cg,function(cy,cx){if(cp.test(cy[1])){cf=bC(cy[1]);cc=cf.get("rgb");bZ=cf.get("a")}else{cc=cy[1];bZ=1}cr.push((cy[0]*100)+"% "+cc);if(!cx){ck=bZ;cd=cc}else{cj=bZ;ce=cc}});if(b8==="fill"){if(b3==="gradient"){b6=b7.x1||b7[0]||0;cw=b7.y1||b7[1]||0;b5=b7.x2||b7[2]||0;cv=b7.y2||b7[3]||0;cm='angle="'+(90-aN.atan((cv-cw)/(b5-b6))*180/I)+'"';M()}else{var cs=b7.r,b2=cs*2,b1=cs*2,cb=b7.cx,b9=b7.cy,b4=cu.radialReference,L,cn=function(){if(b4){L=ca.getBBox();cb+=(b4[0]-L.x)/L.width-0.5;b9+=(b4[1]-L.y)/L.height-0.5;b2*=b4[2]/L.width;b1*=b4[2]/L.height}cm='src="'+bp.global.VMLRadialGradientURL+'" size="'+b2+","+b1+'" origin="0.5,0.5" position="'+cb+","+b9+'" color2="'+cd+'" ';M()};if(ca.added){cn()}else{u(ca,"add",cn)}cl=ce}}else{cl=cc}}else{if(cp.test(ch)&&cu.tagName!=="IMG"){cf=bC(ch);cq=["<",b8,' opacity="',cf.get("a"),'"/>'];bf(this.prepVML(cq),null,null,cu);cl=cf.get("rgb")}else{var b0=cu.getElementsByTagName(b8);if(b0.length){b0[0].opacity=1;b0[0].type="solid"}cl=ch}}return cl},prepVML:function(L){var M="display:inline-block;behavior:url(#default#VML);",bZ=this.isIE8;L=L.join("");if(bZ){L=L.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');if(L.indexOf('style="')===-1){L=L.replace("/>",' style="'+M+'" />')}else{L=L.replace('style="','style="'+M)}}else{L=L.replace("<","<hcv:")}return L},text:d.prototype.html,path:function(M){var L={coordsize:"10 10"};if(aB(M)){L.d=M}else{if(bU(M)){bd(L,M)}}return this.createElement("shape").attr(L)},circle:function(L,b0,M){var bZ=this.symbol("circle");if(bU(L)){M=L.r;b0=L.y;L=L.x}bZ.isCircle=true;bZ.r=M;return bZ.attr({x:L,y:b0})},g:function(L){var bZ,M;if(L){M={className:aZ+L,"class":aZ+L}}bZ=this.createElement(G).attr(M);return bZ},image:function(b1,M,b2,bZ,L){var b0=this.createElement("img").attr({src:b1});if(arguments.length>1){b0.attr({x:M,y:b2,width:bZ,height:L})}return b0},rect:function(M,b3,bZ,L,b0,b2){var b1=this.symbol("rect");b1.r=bU(M)?M.r:b0;return b1.attr(bU(M)?M:b1.crisp(b2,M,b3,bX(bZ,0),bX(L,0)))},invertChild:function(M,L){var bZ=L.style;bS(M,{flip:"x",left:bE(bZ.width)-1,top:bE(bZ.height)-1,rotation:-90})},symbols:{arc:function(b7,b6,b9,b1,ca){var bZ=ca.start,b0=ca.end,b3=ca.r||b9||b1,b5=ca.innerR,b2=bP(bZ),L=W(bZ),M=bP(b0),b8=W(b0),b4;if(b0-bZ===0){return["x"]}b4=["wa",b7-b3,b6-b3,b7+b3,b6+b3,b7+b3*b2,b6+b3*L,b7+b3*M,b6+b3*b8];if(ca.open&&!b5){b4.push("e",bl,b7,b6)}b4.push("at",b7-b5,b6-b5,b7+b5,b6+b5,b7+b5*M,b6+b5*b8,b7+b5*b2,b6+b5*L,"x","e");b4.isArc=true;return b4},circle:function(L,b1,M,bZ,b0){if(b0){M=bZ=2*b0.r}if(b0&&b0.isCircle){L-=M/2;b1-=bZ/2}return["wa",L,b1,L+M,b1+bZ,L+M,b1+bZ/2,L+M,b1+bZ/2,"e"]},rect:function(b0,b2,bZ,b4,b5){var b3=b0+bZ,M=b2+b4,b1,L;if(!aa(b5)||!b5.r){b1=d.prototype.symbols.square.apply(0,arguments)}else{L=ah(b5.r,bZ,b4);b1=[bl,b0+L,b2,bm,b3-L,b2,"wa",b3-2*L,b2,b3,b2+2*L,b3-L,b2,b3,b2+L,bm,b3,M-L,"wa",b3-2*L,M-2*L,b3,M,b3,M-L,b3-L,M,bm,b0+L,M,"wa",b0,M-2*L,b0+2*L,M,b0+L,M,b0,M-L,bm,b0,b2+L,"wa",b0,b2,b0+2*L,b2+2*L,b0,b2+L,b0+L,b2,"x","e"]}return b1}}};Highcharts.VMLRenderer=bV=function(){this.init.apply(this,arguments)};bV.prototype=aH(d.prototype,aK);bJ=bV}var bW,aX;if(aY){Highcharts.CanVGRenderer=bW=function(){aS="http://www.w3.org/1999/xhtml"};bW.prototype.symbols={};aX=(function(){var M=[];function L(){var b0=M.length,bZ;for(bZ=0;bZ<b0;bZ++){M[bZ]()}M=[]}return{push:function(b0,bZ){if(M.length===0){a4(bZ,L)}M.push(b0)}}}());bJ=bW}function aw(bZ,b0,M,L){this.axis=bZ;this.pos=b0;this.type=M||"";this.isNew=true;if(!M&&!L){this.addLabel()}}aw.prototype={addLabel:function(){var ce=this,M=ce.axis,bZ=M.options,b6=M.chart,cf=M.horiz,b8=M.categories,b5=M.series[0]&&M.series[0].names,b0=ce.pos,b7=bZ.labels,cb,cg=M.tickPositions,b9=(cf&&b8&&!b7.step&&!b7.staggerLines&&!b7.rotation&&b6.plotWidth/cg.length)||(!cf&&(b6.margin[3]||b6.chartWidth*0.33)),b2=b0===cg[0],b4=b0===cg[cg.length-1],b3,cc,ca=b8?aI(b8[b0],b5&&b5[b0],b0):b0,b1=ce.label,cd=cg.info,L;if(M.isDatetimeAxis&&cd){L=bZ.dateTimeLabelFormats[cd.higherRanks[b0]||cd.unitName]}ce.isFirst=b2;ce.isLast=b4;cb=M.labelFormatter.call({axis:M,chart:b6,isFirst:b2,isLast:b4,dateTimeLabelFormat:L,value:M.isLog?Z(t(ca)):ca});b3=b9&&{width:bX(1,l(b9-2*(b7.padding||10)))+S};b3=bd(b3,b7.style);if(!aa(b1)){cc={align:M.labelAlign};if(an(b7.rotation)){cc.rotation=b7.rotation}if(b9&&b7.ellipsis){cc._clipHeight=M.len/cg.length}ce.label=aa(cb)&&b7.enabled?b6.renderer.text(cb,0,0,b7.useHTML).attr(cc).css(b3).add(M.labelGroup):null}else{if(b1){b1.attr({text:cb}).css(b3)}}},getLabelSize:function(){var L=this.label,M=this.axis;return L?((this.labelBBox=L.getBBox()))[M.horiz?"height":"width"]:0},getLabelSides:function(){var b2=this.labelBBox,b1=this.axis,M=b1.options,L=M.labels,b0=b2.width,bZ=b0*{left:0,center:0.5,right:1}[b1.labelAlign]-L.x;return[-bZ,b0-bZ]},handleOverflow:function(b7,cd){var ca=true,b1=this.axis,b8=b1.chart,b2=this.isFirst,b5=this.isLast,b9=cd.x,b4=b1.reversed,cc=b1.tickPositions;if(b2||b5){var b0=this.getLabelSides(),b6=b0[0],bZ=b0[1],M=b8.plotLeft,b3=M+b1.len,cb=b1.ticks[cc[b7+(b2?1:-1)]],L=cb&&cb.label.xy&&cb.label.xy.x+cb.getLabelSides()[b2?0:1];if((b2&&!b4)||(b5&&b4)){if(b9+b6<M){b9=M-b6;if(cb&&b9+bZ>L){ca=false}}}else{if(b9+bZ>b3){b9=b3-bZ;if(cb&&b9+b6<L){ca=false}}}cd.x=b9}return ca},getPosition:function(b3,b2,b1,L){var b0=this.axis,bZ=b0.chart,M=(L&&bZ.oldChartHeight)||bZ.chartHeight;return{x:b3?b0.translate(b2+b1,null,null,L)+b0.transB:b0.left+b0.offset+(b0.opposite?((L&&bZ.oldChartWidth)||bZ.chartWidth)-b0.right-b0.left:0),y:b3?M-b0.bottom+b0.offset-(b0.opposite?b0.height:0):M-b0.translate(b2+b1,null,null,L)-b0.transB}},getLabelPosition:function(b7,b5,b6,b9,b1,b2,b3,L){var M=this.axis,b0=M.transA,bZ=M.reversed,ca=M.staggerLines,b4=M.chart.renderer.fontMetrics(b1.style.fontSize).b,b8=b1.rotation;b7=b7+b1.x-(b2&&b9?b2*b0*(bZ?-1:1):0);b5=b5+b1.y-(b2&&!b9?b2*b0*(bZ?1:-1):0);if(b8&&M.side===2){b5-=b4-b4*bP(b8*at)}if(!aa(b1.y)&&!b8){b5+=b4-b6.getBBox().height/2}if(ca){b5+=(b3/(L||1)%ca)*(M.labelOffset/ca)}return{x:b7,y:b5}},getMarkPath:function(M,b2,bZ,L,b1,b0){return b0.crispLine([bl,M,b2,bm,M+(b1?0:-bZ),b2+(b1?bZ:0)],L)},render:function(b7,M,b1){var cq=this,b0=cq.axis,b2=b0.options,cj=b0.chart,cp=cj.renderer,ct=b0.horiz,b3=cq.type,cb=cq.label,b6=cq.pos,cm=b2.labels,b8=cq.gridLine,cl=b3?b3+"Grid":"grid",co=b3?b3+"Tick":"tick",ck=b2[cl+"LineWidth"],cn=b2[cl+"LineColor"],ca=b2[cl+"LineDashStyle"],bZ=b2[co+"Length"],b9=b2[co+"Width"]||0,cg=b2[co+"Color"],ch=b2[co+"Position"],cu,ce=cq.mark,L,b5=cm.step,ci,cs=true,cv=b0.tickmarkOffset,b4=cq.getPosition(ct,b6,cv,M),cf=b4.x,cd=b4.y,cc=((ct&&cf===b0.pos+b0.len)||(!ct&&cd===b0.pos))?-1:1,cr=b0.staggerLines;this.isActive=true;if(ck){cu=b0.getPlotLinePath(b6+cv,ck*cc,M,true);if(b8===i){ci={stroke:cn,"stroke-width":ck};if(ca){ci.dashstyle=ca}if(!b3){ci.zIndex=1}if(M){ci.opacity=0}cq.gridLine=b8=ck?cp.path(cu).attr(ci).add(b0.gridGroup):null}if(!M&&b8&&cu){b8[cq.isNew?"attr":"animate"]({d:cu,opacity:b1})}}if(b9&&bZ){if(ch==="inside"){bZ=-bZ}if(b0.opposite){bZ=-bZ}L=cq.getMarkPath(cf,cd,bZ,b9*cc,ct,cp);if(ce){ce.animate({d:L,opacity:b1})}else{cq.mark=cp.path(L).attr({stroke:cg,"stroke-width":b9,opacity:b1}).add(b0.axisGroup)}}if(cb&&!isNaN(cf)){cb.xy=b4=cq.getLabelPosition(cf,cd,cb,ct,cm,cv,b7,b5);if((cq.isFirst&&!cq.isLast&&!aI(b2.showFirstLabel,1))||(cq.isLast&&!cq.isFirst&&!aI(b2.showLastLabel,1))){cs=false}else{if(!cr&&ct&&cm.overflow==="justify"&&!cq.handleOverflow(b7,b4)){cs=false}}if(b5&&b7%b5){cs=false}if(cs&&!isNaN(b4.y)){b4.opacity=b1;cb[cq.isNew?"attr":"animate"](b4);cq.isNew=false}else{cb.attr("y",-9999)}}},destroy:function(){a2(this,this.axis)}};function bv(M,L){this.axis=M;if(L){this.options=L;this.id=L.id}}bv.prototype={render:function(){var cl=this,b1=cl.axis,cm=b1.horiz,b0=(b1.pointRange||0)/2,b2=cl.options,L=b2.label,b4=cl.label,cd=b2.width,bZ=b2.to,cj=b2.from,cc=aa(cj)&&aa(bZ),cf=b2.value,b3=b2.dashStyle,ch=cl.svgElem,cb=[],cg,b8,b5,ck,b7,b6,ci=b2.color,ca=b2.zIndex,M=b2.events,b9,ce=b1.chart.renderer;if(b1.isLog){cj=q(cj);bZ=q(bZ);cf=q(cf)}if(cd){cb=b1.getPlotLinePath(cf,cd);b9={stroke:ci,"stroke-width":cd};if(b3){b9.dashstyle=b3}}else{if(cc){cj=bX(cj,b1.min-b0);bZ=ah(bZ,b1.max+b0);cb=b1.getPlotBandPath(cj,bZ,b2);b9={fill:ci};if(b2.borderWidth){b9.stroke=b2.borderColor;b9["stroke-width"]=b2.borderWidth}}else{return}}if(aa(ca)){b9.zIndex=ca}if(ch){if(cb){ch.animate({d:cb},null,ch.onGetPath)}else{ch.hide();ch.onGetPath=function(){ch.show()}}}else{if(cb&&cb.length){cl.svgElem=ch=ce.path(cb).attr(b9).add();if(M){cg=function(cn){ch.on(cn,function(co){M[cn].apply(cl,[co])})};for(b8 in M){cg(b8)}}}}if(L&&aa(L.text)&&cb&&cb.length&&b1.width>0&&b1.height>0){L=aH({align:cm&&cc&&"center",x:cm?!cc&&4:10,verticalAlign:!cm&&cc&&"middle",y:cm?cc?16:10:cc?6:-4,rotation:cm&&!cc&&90},L);if(!b4){cl.label=b4=ce.text(L.text,0,0,L.useHTML).attr({align:L.textAlign||L.align,rotation:L.rotation,zIndex:ca}).css(L.style).add()}b5=[cb[1],cb[4],aI(cb[6],cb[1])];ck=[cb[2],cb[5],aI(cb[7],cb[2])];b7=bu(b5);b6=bu(ck);b4.align(L,false,{x:b7,y:b6,width:aE(b5)-b7,height:aE(ck)-b6});b4.show()}else{if(b4){b4.hide()}}return cl},destroy:function(){J(this.axis.plotLinesAndBands,this);delete this.axis;a2(this)}};function aq(b2,b0,M,L,b3,b1){var bZ=b2.chart.inverted;this.axis=b2;this.isNegative=M;this.options=b0;this.x=L;this.total=null;this.points={};this.stack=b3;this.percent=b1==="percent";this.alignOptions={align:b0.align||(bZ?(M?"left":"right"):"center"),verticalAlign:b0.verticalAlign||(bZ?"middle":(M?"bottom":"top")),y:aI(b0.y,bZ?4:(M?14:-6)),x:aI(b0.x,bZ?(M?-6:6):0)};this.textAlign=b0.textAlign||(bZ?(M?"right":"left"):"center")}aq.prototype={destroy:function(){a2(this,this.axis)},render:function(bZ){var M=this.options,L=M.format,b0=L?f(L,this):M.formatter.call(this);if(this.label){this.label.attr({text:b0,visibility:ac})}else{this.label=this.axis.chart.renderer.text(b0,0,0,M.useHTML).css(M.style).attr({align:this.textAlign,rotation:M.rotation,visibility:ac}).add(bZ)}},setOffset:function(b3,b6){var ca=this,L=ca.axis,b4=L.chart,bZ=b4.inverted,M=this.isNegative,b7=L.translate(this.percent?100:this.total,0,0,0,1),b2=L.translate(0),b1=e(b7-b2),b9=b4.xAxis[0].translate(this.x)+b3,b5=b4.plotHeight,cb={x:bZ?(M?b7:b7-b1):b9,y:bZ?b5-b9-b6:(M?(b5-b7-b1):b5-b7),width:bZ?b1:b6,height:bZ?b6:b1},b8=this.label,b0;if(b8){b8.align(this.alignOptions,null,cb);b0=b8.alignAttr;b8.attr({visibility:this.options.crop===false||b4.isInsidePlot(b0.x,b0.y)?(bO?"inherit":ag):ac})}}};function x(){this.init.apply(this,arguments)}x.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:r,lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#4d759e",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:false,formatter:function(){return j(this.total,-1)},style:r.style}},defaultLeftAxisOptions:{labels:{x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{x:0,y:-5},title:{rotation:0}},init:function(b2,b1){var L=b1.isX,b0=this;b0.horiz=b2.inverted?!L:L;b0.isXAxis=L;b0.xOrY=L?"x":"y";b0.opposite=b1.opposite;b0.side=b0.horiz?(b0.opposite?0:2):(b0.opposite?1:3);b0.setOptions(b1);var b5=this.options,b3=b5.type,M=b3==="datetime";b0.labelFormatter=b5.labels.formatter||b0.defaultLabelFormatter;b0.userOptions=b1;b0.minPixelPadding=0;b0.chart=b2;b0.reversed=b5.reversed;b0.zoomEnabled=b5.zoomEnabled!==false;b0.categories=b5.categories||b3==="category";b0.isLog=b3==="logarithmic";b0.isDatetimeAxis=M;b0.isLinked=aa(b5.linkedTo);b0.tickmarkOffset=(b0.categories&&b5.tickmarkPlacement==="between")?0.5:0;b0.ticks={};b0.minorTicks={};b0.plotLinesAndBands=[];b0.alternateBands={};b0.len=0;b0.minRange=b0.userMinRange=b5.minRange||b5.maxZoom;b0.range=b5.range;b0.offset=b5.offset||0;b0.stacks={};b0.oldStacks={};b0.stackExtremes={};b0.max=null;b0.min=null;var bZ,b4=b0.options.events;if(v(b0,b2.axes)===-1){b2.axes.push(b0);b2[L?"xAxis":"yAxis"].push(b0)}b0.series=b0.series||[];if(b2.inverted&&L&&b0.reversed===i){b0.reversed=true}b0.removePlotBand=b0.removePlotBandOrLine;b0.removePlotLine=b0.removePlotBandOrLine;for(bZ in b4){u(b0,bZ,b4[bZ])}if(b0.isLog){b0.val2lin=q;b0.lin2val=t}},setOptions:function(L){this.options=aH(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],aH(bp[this.isXAxis?"xAxis":"yAxis"],L))},update:function(M,bZ){var L=this.chart;M=L.options[this.xOrY+"Axis"][this.options.index]=aH(this.userOptions,M);this.destroy(true);this._addedPlotLB=this.userMin=this.userMax=i;this.init(L,bd(M,{events:i}));L.isDirtyBox=true;if(aI(bZ,true)){L.redraw()}},remove:function(bZ){var M=this.chart,L=this.xOrY+"Axis";B(this.series,function(b0){b0.remove(false)});J(M.axes,this);J(M[L],this);M.options[L].splice(this.options.index,1);B(M[L],function(b1,b0){b1.options.index=b0});this.destroy();M.isDirtyBox=true;if(aI(bZ,true)){M.redraw()}},defaultLabelFormatter:function(){var M=this.axis,b6=this.value,b2=M.categories,b5=this.dateTimeLabelFormat,b0=bp.lang.numericSymbols,b1=b0&&b0.length,b3,b4,bZ=M.options.labels.format,L=M.isLog?b6:M.tickInterval;if(bZ){b4=f(bZ,this)}else{if(b2){b4=b6}else{if(b5){b4=bH(b5,b6)}else{if(b1&&L>=1000){while(b1--&&b4===i){b3=Math.pow(1000,b1+1);if(L>=b3&&b0[b1]!==null){b4=j(b6/b3,-1)+b0[b1]}}}}}}if(b4===i){if(b6>=1000){b4=j(b6,0)}else{b4=j(b6,-1)}}return b4},getSeriesExtremes:function(){var M=this,L=M.chart;M.hasVisibleSeries=false;M.dataMin=M.dataMax=null;M.stackExtremes={};M.buildStacks();B(M.series,function(b1){if(b1.visible||!L.options.chart.ignoreHiddenSeries){var b0=b1.options,b3,bZ=b0.threshold,b4,b2;M.hasVisibleSeries=true;if(M.isLog&&bZ<=0){bZ=null}if(M.isXAxis){b3=b1.xData;if(b3.length){M.dataMin=ah(aI(M.dataMin,b3[0]),bu(b3));M.dataMax=bX(aI(M.dataMax,b3[0]),aE(b3))}}else{b1.getExtremes();b2=b1.dataMax;b4=b1.dataMin;if(aa(b4)&&aa(b2)){M.dataMin=ah(aI(M.dataMin,b4),b4);M.dataMax=bX(aI(M.dataMax,b2),b2)}if(aa(bZ)){if(M.dataMin>=bZ){M.dataMin=bZ;M.ignoreMinPadding=true}else{if(M.dataMax<bZ){M.dataMax=bZ;M.ignoreMaxPadding=true}}}}}})},translate:function(bZ,b9,ca,b0,b8,b1){var b2=this,b4=b2.len,M=1,b7=0,b3=b0?b2.oldTransA:b2.transA,cb=b0?b2.oldMin:b2.min,L,b5=b2.minPixelPadding,b6=(b2.options.ordinal||(b2.isLog&&b8))&&b2.lin2val;if(!b3){b3=b2.transA}if(ca){M*=-1;b7=b4}if(b2.reversed){M*=-1;b7-=M*b4}if(b9){bZ=bZ*M+b7;bZ-=b5;L=bZ/b3+cb;if(b6){L=b2.lin2val(L)}}else{if(b6){bZ=b2.val2lin(bZ)}if(b1==="between"){b1=0.5}L=M*(bZ-cb)*b3+b7+(M*b5)+(an(b1)?b3*b1*b2.pointRange:0)}return L},toPixels:function(M,L){return this.translate(M,false,!this.horiz,null,true)+(L?0:this.pos)},toValue:function(L,M){return this.translate(L-(M?0:this.pos),true,!this.horiz,null,true)},getPlotLinePath:function(cc,b7,b1,b0){var b2=this,b9=b2.chart,b6=b2.left,L=b2.top,bZ,cb,M,ca,b5=b2.translate(cc,null,null,b1),b8=(b1&&b9.oldChartHeight)||b9.chartHeight,b3=(b1&&b9.oldChartWidth)||b9.chartWidth,cd,b4=b2.transB;bZ=M=l(b5+b4);cb=ca=l(b8-b5-b4);if(isNaN(b5)){cd=true}else{if(b2.horiz){cb=L;ca=b8-b2.bottom;if(bZ<b6||bZ>b6+b2.width){cd=true}}else{bZ=b6;M=b3-b2.right;if(cb<L||cb>L+b2.height){cd=true}}}return cd&&!b0?null:b9.renderer.crispLine([bl,bZ,cb,bm,M,ca],b7||0)},getPlotBandPath:function(b0,bZ){var L=this.getPlotLinePath(bZ),M=this.getPlotLinePath(b0);if(M&&L){M.push(L[4],L[5],L[1],L[2])}else{M=null}return M},getLinearTickPositions:function(M,b1,L){var b4,b3,b2=Z(be(b1/M)*M),b0=Z(av(L/M)*M),bZ=[];b4=b2;while(b4<=b0){bZ.push(b4);b4=Z(b4+M);if(b4===b3){break}b3=b4}return bZ},getLogTickPositions:function(ci,ca,cd,M){var bZ=this,b0=bZ.options,L=bZ.len,b6=[];if(!M){bZ._minorAutoInterval=null}if(ci>=0.5){ci=l(ci);b6=bZ.getLinearTickPositions(ci,ca,cd)}else{if(ci>=0.08){var ch=be(ca),cf,ce,cc,cg,b1,cb,b5;if(ci>0.3){cf=[1,2,4]}else{if(ci>0.15){cf=[1,2,4,6,8]}else{cf=[1,2,3,4,5,6,7,8,9]}}for(ce=ch;ce<cd+1&&!b5;ce++){cg=cf.length;for(cc=0;cc<cg&&!b5;cc++){b1=q(t(ce)*cf[cc]);if(b1>ca&&(!M||cb<=cd)){b6.push(cb)}if(cb>cd){b5=true}cb=b1}}}else{var b8=t(ca),b9=t(cd),b4=b0[M?"minorTickInterval":"tickInterval"],b3=b4==="auto"?null:b4,b7=b0.tickPixelInterval/(M?5:1),b2=M?L/bZ.tickPositions.length:L;ci=aI(b3,bZ._minorAutoInterval,(b9-b8)*b7/(b2||1));ci=bx(ci,null,k(ci));b6=ad(bZ.getLinearTickPositions(ci,b8,b9),q);if(!M){bZ._minorAutoInterval=ci/5}}}if(!M){bZ.tickInterval=ci}return b6},getMinorTickPositions:function(){var b1=this,bZ=b1.options,M=b1.tickPositions,b3=b1.minorTickInterval,b2=[],b4,b0,L;if(b1.isLog){L=M.length;for(b0=1;b0<L;b0++){b2=b2.concat(b1.getLogTickPositions(b3,M[b0-1],M[b0],true))}}else{if(b1.isDatetimeAxis&&bZ.minorTickInterval==="auto"){b2=b2.concat(am(ai(b3),b1.min,b1.max,bZ.startOfWeek));if(b2[0]<b1.min){b2.shift()}}else{for(b4=b1.min+(M[0]-b1.min)%b3;b4<=b1.max;b4+=b3){b2.push(b4)}}}return b2},adjustForMinRange:function(){var b0=this,ca=b0.options,b2=b0.min,b7=b0.max,b9,bZ=b0.dataMax-b0.dataMin>=b0.minRange,M,b4,L,b1,b6,b8,b5;if(b0.isXAxis&&b0.minRange===i&&!b0.isLog){if(aa(ca.min)||aa(ca.max)){b0.minRange=null}else{B(b0.series,function(cb){b1=cb.xData;b6=cb.xIncrement?1:b1.length-1;for(b4=b6;b4>0;b4--){L=b1[b4]-b1[b4-1];if(M===i||L<M){M=L}}});b0.minRange=ah(M*5,b0.dataMax-b0.dataMin)}}if(b7-b2<b0.minRange){var b3=b0.minRange;b9=(b3-b7+b2)/2;b8=[b2-b9,aI(ca.min,b2-b9)];if(bZ){b8[2]=b0.dataMin}b2=aE(b8);b5=[b2+b3,aI(ca.max,b2+b3)];if(bZ){b5[2]=b0.dataMax}b7=bu(b5);if(b7-b2<b3){b8[0]=b7-b3;b8[1]=aI(ca.min,b7-b3);b2=aE(b8)}}b0.min=b2;b0.max=b7},setAxisTranslation:function(b5){var L=this,b1=L.max-L.min,b4=0,b6,M=0,b2=0,b3=L.linkedParent,b0,bZ=L.transA;if(L.isXAxis){if(b3){M=b3.minPointOffset;b2=b3.pointRangePadding}else{B(L.series,function(b8){var b9=b8.pointRange,ca=b8.options.pointPlacement,b7=b8.closestPointRange;if(b9>b1){b9=0}b4=bX(b4,b9);M=bX(M,bi(ca)?0:b9/2);b2=bX(b2,ca==="on"?0:b9);if(!b8.noSharedTooltip&&aa(b7)){b6=aa(b6)?ah(b6,b7):b7}})}b0=L.ordinalSlope&&b6?L.ordinalSlope/b6:1;L.minPointOffset=M=M*b0;L.pointRangePadding=b2=b2*b0;L.pointRange=ah(b4,b1);L.closestPointRange=b6}if(b5){L.oldTransA=bZ}L.translationSlope=L.transA=bZ=L.len/((b1+b2)||1);L.transB=L.horiz?L.left:L.bottom;L.minPixelPadding=bZ*M},setTickPositions:function(ch){var b0=this,cc=b0.chart,b1=b0.options,ca=b0.isLog,b8=b0.isDatetimeAxis,b9=b0.isXAxis,b4=b0.isLinked,M=b0.options.tickPositioner,ce=b1.maxPadding,bZ=b1.minPadding,b2,cb,b5=b1.tickInterval,cg=b1.minTickInterval,b7=b1.tickPixelInterval,cj,b3,cd=b0.categories;if(b4){b0.linkedParent=cc[b9?"xAxis":"yAxis"][b1.linkedTo];cb=b0.linkedParent.getExtremes();b0.min=aI(cb.min,cb.dataMin);b0.max=aI(cb.max,cb.dataMax);if(b1.type!==b0.linkedParent.options.type){bF(11,1)}}else{b0.min=aI(b0.userMin,b1.min,b0.dataMin);b0.max=aI(b0.userMax,b1.max,b0.dataMax)}if(ca){if(!ch&&ah(b0.min,aI(b0.dataMin,b0.min))<=0){bF(10,1)}b0.min=Z(q(b0.min));b0.max=Z(q(b0.max))}if(b0.range){b0.userMin=b0.min=bX(b0.min,b0.max-b0.range);b0.userMax=b0.max;if(ch){b0.range=null}}if(b0.beforePadding){b0.beforePadding()}b0.adjustForMinRange();if(!cd&&!b0.usePercentage&&!b4&&aa(b0.min)&&aa(b0.max)){b2=b0.max-b0.min;if(b2){if(!aa(b1.min)&&!aa(b0.userMin)&&bZ&&(b0.dataMin<0||!b0.ignoreMinPadding)){b0.min-=b2*bZ}if(!aa(b1.max)&&!aa(b0.userMax)&&ce&&(b0.dataMax>0||!b0.ignoreMaxPadding)){b0.max+=b2*ce}}}if(b0.min===b0.max||b0.min===undefined||b0.max===undefined){b0.tickInterval=1}else{if(b4&&!b5&&b7===b0.linkedParent.options.tickPixelInterval){b0.tickInterval=b0.linkedParent.tickInterval}else{b0.tickInterval=aI(b5,cd?1:(b0.max-b0.min)*b7/bX(b0.len,b7));if(!aa(b5)&&b0.len<b7&&!this.isRadial){b3=true;b0.tickInterval/=4}}}if(b9&&!ch){B(b0.series,function(ck){ck.processData(b0.min!==b0.oldMin||b0.max!==b0.oldMax)})}b0.setAxisTranslation(true);if(b0.beforeSetTickPositions){b0.beforeSetTickPositions()}if(b0.postProcessTickInterval){b0.tickInterval=b0.postProcessTickInterval(b0.tickInterval)}if(b0.pointRange){b0.tickInterval=bX(b0.pointRange,b0.tickInterval)}if(!b5&&b0.tickInterval<cg){b0.tickInterval=cg}if(!b8&&!ca){if(!b5){b0.tickInterval=bx(b0.tickInterval,null,k(b0.tickInterval),b1)}}b0.minorTickInterval=b1.minorTickInterval==="auto"&&b0.tickInterval?b0.tickInterval/5:b1.minorTickInterval;b0.tickPositions=cj=b1.tickPositions?[].concat(b1.tickPositions):(M&&M.apply(b0,[b0.min,b0.max]));if(!cj){if(!b0.ordinalPositions&&(b0.max-b0.min)/b0.tickInterval>bX(2*b0.len,200)){bF(19,true)}if(b8){cj=(b0.getNonLinearTimeTicks||am)(ai(b0.tickInterval,b1.units),b0.min,b0.max,b1.startOfWeek,b0.ordinalPositions,b0.closestPointRange,true)}else{if(ca){cj=b0.getLogTickPositions(b0.tickInterval,b0.min,b0.max)}else{cj=b0.getLinearTickPositions(b0.tickInterval,b0.min,b0.max)}}if(b3){cj.splice(1,cj.length-2)}b0.tickPositions=cj}if(!b4){var cf=cj[0],ci=cj[cj.length-1],b6=b0.minPointOffset||0,L;if(b1.startOnTick){b0.min=cf}else{if(b0.min-b6>cf){cj.shift()}}if(b1.endOnTick){b0.max=ci}else{if(b0.max+b6<ci){cj.pop()}}if(cj.length===1){L=0.001;b0.min-=L;b0.max+=L}}},setMaxTicks:function(){var bZ=this.chart,b0=bZ.maxTicks||{},L=this.tickPositions,M=this._maxTicksKey=[this.xOrY,this.pos,this.len].join("-");if(!this.isLinked&&!this.isDatetimeAxis&&L&&L.length>(b0[M]||0)&&this.options.alignTicks!==false){b0[M]=L.length}bZ.maxTicks=b0},adjustTickAmount:function(){var b2=this,b1=b2.chart,b0=b2._maxTicksKey,M=b2.tickPositions,b4=b1.maxTicks;if(b4&&b4[b0]&&!b2.isDatetimeAxis&&!b2.categories&&!b2.isLinked&&b2.options.alignTicks!==false){var b3=b2.tickAmount,L=M.length,bZ;b2.tickAmount=bZ=b4[b0];if(L<bZ){while(M.length<bZ){M.push(Z(M[M.length-1]+b2.tickInterval))}b2.transA*=(L-1)/(bZ-1);b2.max=M[M.length-1]}if(aa(b3)&&bZ!==b3){b2.isDirty=true}}},setScale:function(){var b0=this,bZ=b0.stacks,M,L,b2,b1;b0.oldMin=b0.min;b0.oldMax=b0.max;b0.oldAxisLength=b0.len;b0.setAxisSize();b1=b0.len!==b0.oldAxisLength;B(b0.series,function(b3){if(b3.isDirtyData||b3.isDirty||b3.xAxis.isDirty){b2=true}});if(b1||b2||b0.isLinked||b0.forceRedraw||b0.userMin!==b0.oldUserMin||b0.userMax!==b0.oldUserMax){if(!b0.isXAxis){for(M in bZ){delete bZ[M]}}b0.forceRedraw=false;b0.getSeriesExtremes();b0.setTickPositions();b0.oldUserMin=b0.userMin;b0.oldUserMax=b0.userMax;if(!b0.isDirty){b0.isDirty=b1||b0.min!==b0.oldMin||b0.max!==b0.oldMax}}else{if(!b0.isXAxis){if(b0.oldStacks){bZ=b0.stacks=b0.oldStacks}for(M in bZ){for(L in bZ[M]){bZ[M][L].cum=bZ[M][L].total}}}}b0.setMaxTicks()},setExtremes:function(b2,b0,b3,b1,L){var bZ=this,M=bZ.chart;b3=aI(b3,true);L=bd(L,{min:b2,max:b0});bk(bZ,"setExtremes",L,function(){bZ.userMin=b2;bZ.userMax=b0;bZ.eventArgs=L;bZ.isDirtyExtremes=true;if(b3){M.redraw(b1)}})},zoom:function(M,L){if(!this.allowZoomOutside){if(aa(this.dataMin)&&M<=this.dataMin){M=i}if(aa(this.dataMax)&&L>=this.dataMax){L=i}}this.displayBtn=M!==i||L!==i;this.setExtremes(M,L,false,i,{trigger:"zoom"});return true},setAxisSize:function(){var b1=this.chart,b5=this.options,bZ=b5.offsetLeft||0,b0=b5.offsetRight||0,b4=this.horiz,L,b3,b2,M;this.left=M=aI(b5.left,b1.plotLeft+bZ);this.top=b2=aI(b5.top,b1.plotTop);this.width=L=aI(b5.width,b1.plotWidth-bZ+b0);this.height=b3=aI(b5.height,b1.plotHeight);this.bottom=b1.chartHeight-b3-b2;this.right=b1.chartWidth-L-M;this.len=bX(b4?L:b3,0);this.pos=b4?M:b2},getExtremes:function(){var M=this,L=M.isLog;return{min:L?Z(t(M.min)):M.min,max:L?Z(t(M.max)):M.max,dataMin:M.dataMin,dataMax:M.dataMax,userMin:M.userMin,userMax:M.userMax}},getThreshold:function(M){var b0=this,L=b0.isLog;var b1=L?t(b0.min):b0.min,bZ=L?t(b0.max):b0.max;if(b1>M||M===null){M=b1}else{if(bZ<M){M=bZ}}return b0.translate(M,0,1,0,1)},addPlotBand:function(L){this.addPlotBandOrLine(L,"plotBands")},addPlotLine:function(L){this.addPlotBandOrLine(L,"plotLines")},addPlotBandOrLine:function(L,M){var bZ=new bv(this,L).render(),b0=this.userOptions;if(bZ){if(M){b0[M]=b0[M]||[];b0[M].push(L)}this.plotLinesAndBands.push(bZ)}return bZ},autoLabelAlign:function(M){var L,bZ=(aI(M,0)-(this.side*90)+720)%360;if(bZ>15&&bZ<165){L="right"}else{if(bZ>195&&bZ<345){L="left"}else{L="center"}}return L},getOffset:function(){var b1=this,ce=b1.chart,ci=ce.renderer,b3=b1.options,cr=b1.tickPositions,cs=b1.ticks,cp=b1.horiz,b0=b1.side,b5=ce.inverted?[1,0,3,2][b0]:b0,cl,cg,M=0,cq,b8=0,bZ=b3.title,cf=b3.labels,ck=0,b2=ce.axisOffset,cn=ce.clipOffset,cd=[-1,1,1,-1][b0],ch,cj,co=1,cm=aI(cf.maxStaggerLines,5),b7,b9,L,b4,b6,ca,cc,cb;b1.hasData=cl=(b1.hasVisibleSeries||(aa(b1.min)&&aa(b1.max)&&!!cr));b1.showAxis=cg=cl||aI(b3.showEmpty,true);b1.staggerLines=b1.horiz&&cf.staggerLines;if(!b1.axisGroup){b1.gridGroup=ci.g("grid").attr({zIndex:b3.gridZIndex||1}).add();b1.axisGroup=ci.g("axis").attr({zIndex:b3.zIndex||2}).add();b1.labelGroup=ci.g("axis-labels").attr({zIndex:cf.zIndex||7}).add()}if(cl||b1.isLinked){b1.labelAlign=aI(cf.align||b1.autoLabelAlign(cf.rotation));B(cr,function(ct){if(!cs[ct]){cs[ct]=new aw(b1,ct)}else{cs[ct].addLabel()}});if(b1.horiz&&!b1.staggerLines&&cm&&!cf.rotation){b7=b1.reversed?[].concat(cr).reverse():cr;while(co<cm){b9=[];L=false;for(cj=0;cj<b7.length;cj++){b4=b7[cj];b6=cs[b4].label&&cs[b4].label.getBBox();cc=b6?b6.width:0;cb=cj%co;if(cc){ca=b1.translate(b4);if(b9[cb]!==i&&ca<b9[cb]){L=true}b9[cb]=ca+cc}}if(L){co++}else{break}}if(co>1){b1.staggerLines=co}}B(cr,function(ct){if(b0===0||b0===2||{1:"left",3:"right"}[b0]===b1.labelAlign){ck=bX(cs[ct].getLabelSize(),ck)}});if(b1.staggerLines){ck*=b1.staggerLines;b1.labelOffset=ck}}else{for(ch in cs){cs[ch].destroy();delete cs[ch]}}if(bZ&&bZ.text&&bZ.enabled!==false){if(!b1.axisTitle){b1.axisTitle=ci.text(bZ.text,0,0,bZ.useHTML).attr({zIndex:7,rotation:bZ.rotation||0,align:bZ.textAlign||{low:"left",middle:"center",high:"right"}[bZ.align]}).css(bZ.style).add(b1.axisGroup);b1.axisTitle.isNew=true}if(cg){M=b1.axisTitle.getBBox()[cp?"height":"width"];b8=aI(bZ.margin,cp?5:10);cq=bZ.offset}b1.axisTitle[cg?"show":"hide"]()}b1.offset=cd*aI(b3.offset,b2[b0]);b1.axisTitleMargin=aI(cq,ck+b8+(b0!==2&&ck&&cd*b3.labels[cp?"y":"x"]));b2[b0]=bX(b2[b0],b1.axisTitleMargin+M+cd*b1.offset);cn[b5]=bX(cn[b5],be(b3.lineWidth/2)*2)},getLinePath:function(M){var b0=this.chart,b1=this.opposite,b2=this.offset,b3=this.horiz,L=this.left+(b1?this.width:0)+b2,bZ=b0.chartHeight-this.bottom-(b1?this.height:0)+b2;if(b1){M*=-1}return b0.renderer.crispLine([bl,b3?this.left:L,b3?bZ:this.top,bm,b3?b0.chartWidth-this.right:L,b3?bZ:b0.chartHeight-this.bottom],M)},getTitlePosition:function(){var b6=this.horiz,b2=this.left,L=this.top,b4=this.len,b5=this.options.title,b0=b6?b2:L,b3=this.opposite,b1=this.offset,b7=bE(b5.style.fontSize||12),M={low:b0+(b6?0:b4),middle:b0+b4/2,high:b0+(b6?b4:0)}[b5.align],bZ=(b6?L+this.height:b2)+(b6?1:-1)*(b3?-1:1)*this.axisTitleMargin+(this.side===2?b7:0);return{x:b6?M:bZ+(b3?this.width:0)+b1+(b5.x||0),y:b6?bZ-(b3?this.height:0)+b1:M+(b5.y||0)}},render:function(){var b3=this,cd=b3.chart,cg=cd.renderer,b5=b3.options,cc=b3.isLog,b9=b3.isLinked,cl=b3.tickPositions,b6=b3.axisTitle,ck=b3.stacks,cm=b3.ticks,b0=b3.minorTicks,b4=b3.alternateBands,cf=b5.stackLabels,bZ=b5.alternateGridColor,cn=b3.tickmarkOffset,M=b5.lineWidth,b8,cb=cd.hasRendered,ca=cb&&aa(b3.oldMin)&&!isNaN(b3.oldMin),cj=b3.hasData,ce=b3.showAxis,ci,b2;B([cm,b0,b4],function(co){var cp;for(cp in co){co[cp].isActive=false}});if(cj||b9){if(b3.minorTickInterval&&!b3.categories){B(b3.getMinorTickPositions(),function(co){if(!b0[co]){b0[co]=new aw(b3,co,"minor")}if(ca&&b0[co].isNew){b0[co].render(null,true)}b0[co].render(null,false,1)})}if(cl.length){B(cl.slice(1).concat([cl[0]]),function(cp,co){co=(co===cl.length-1)?0:co+1;if(!b9||(cp>=b3.min&&cp<=b3.max)){if(!cm[cp]){cm[cp]=new aw(b3,cp)}if(ca&&cm[cp].isNew){cm[cp].render(co,true)}cm[cp].render(co,false,1)}});if(cn&&b3.min===0){if(!cm[-1]){cm[-1]=new aw(b3,-1,null,true)}cm[-1].render(-1)}}if(bZ){B(cl,function(cp,co){if(co%2===0&&cp<b3.max){if(!b4[cp]){b4[cp]=new bv(b3)}ci=cp+cn;b2=cl[co+1]!==i?cl[co+1]+cn:b3.max;b4[cp].options={from:cc?t(ci):ci,to:cc?t(b2):b2,color:bZ};b4[cp].render();b4[cp].isActive=true}})}if(!b3._addedPlotLB){B((b5.plotLines||[]).concat(b5.plotBands||[]),function(co){b3.addPlotBandOrLine(co)});b3._addedPlotLB=true}}B([cm,b0,b4],function(cs){var ct,cr,cq=[],cp=bY?bY.duration||500:0,co=function(){cr=cq.length;while(cr--){if(cs[cq[cr]]&&!cs[cq[cr]].isActive){cs[cq[cr]].destroy();delete cs[cq[cr]]}}};for(ct in cs){if(!cs[ct].isActive){cs[ct].render(ct,false,0);cs[ct].isActive=false;cq.push(ct)}}if(cs===b4||!cd.hasRendered||!cp){co()}else{if(cp){setTimeout(co,cp)}}});if(M){b8=b3.getLinePath(M);if(!b3.axisLine){b3.axisLine=cg.path(b8).attr({stroke:b5.lineColor,"stroke-width":M,zIndex:7}).add(b3.axisGroup)}else{b3.axisLine.animate({d:b8})}b3.axisLine[ce?"show":"hide"]()}if(b6&&ce){b6[b6.isNew?"attr":"animate"](b3.getTitlePosition());b6.isNew=false}if(cf&&cf.enabled){var b1,b7,ch,L=b3.stackTotalGroup;if(!L){b3.stackTotalGroup=L=cg.g("stack-labels").attr({visibility:ag,zIndex:6}).add()}L.translate(cd.plotLeft,cd.plotTop);for(b1 in ck){b7=ck[b1];for(ch in b7){b7[ch].render(L)}}}b3.isDirty=false},removePlotBandOrLine:function(b1){var L=this.plotLinesAndBands,M=this.options,b0=this.userOptions,bZ=L.length;while(bZ--){if(L[bZ].id===b1){L[bZ].destroy()}}B([M.plotLines||[],b0.plotLines||[],M.plotBands||[],b0.plotBands||[]],function(b2){bZ=b2.length;while(bZ--){if(b2[bZ].id===b1){J(b2,b2[bZ])}}})},setTitle:function(L,M){this.update({title:L},M)},redraw:function(){var M=this,L=M.chart,bZ=L.pointer;if(bZ.reset){bZ.reset(true)}M.render();B(M.plotLinesAndBands,function(b0){b0.render()});B(M.series,function(b0){b0.isDirty=true})},buildStacks:function(){var M=this.series,L=M.length;if(!this.isXAxis){while(L--){M[L].setStackedPoints()}if(this.usePercentage){for(L=0;L<M.length;L++){M[L].setPercentStacks()}}}},setCategories:function(L,M){this.update({categories:L},M)},destroy:function(bZ){var b2=this,b1=b2.stacks,L,M=b2.plotLinesAndBands,b0;if(!bZ){aW(b2)}for(L in b1){a2(b1[L]);b1[L]=null}B([b2.ticks,b2.minorTicks,b2.alternateBands],function(b3){a2(b3)});b0=M.length;while(b0--){M[b0].destroy()}B(["stackTotalGroup","axisLine","axisGroup","gridGroup","labelGroup","axisTitle"],function(b3){if(b2[b3]){b2[b3]=b2[b3].destroy()}})}};function bK(){this.init.apply(this,arguments)}bK.prototype={init:function(b0,M){var L=M.borderWidth,bZ=M.style,b1=bE(bZ.padding);this.chart=b0;this.options=M;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=true;this.label=b0.renderer.label("",0,0,M.shape,null,null,M.useHTML,null,"tooltip").attr({padding:b1,fill:M.backgroundColor,"stroke-width":L,r:M.borderRadius,zIndex:8}).css(bZ).css({padding:0}).add().attr({y:-999});if(!aY){this.label.shadow(M.shadow)}this.shared=M.shared},destroy:function(){B(this.crosshairs,function(L){if(L){L.destroy()}});if(this.label){this.label=this.label.destroy()}clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(M,b3,L,b2){var b1=this,b0=b1.now,bZ=b1.options.animation!==false&&!b1.isHidden;bd(b0,{x:bZ?(2*b0.x+M)/3:M,y:bZ?(b0.y+b3)/2:b3,anchorX:bZ?(2*b0.anchorX+L)/3:L,anchorY:bZ?(b0.anchorY+b2)/2:b2});b1.label.attr(b0);if(bZ&&(e(M-b0.x)>1||e(b3-b0.y)>1)){clearTimeout(this.tooltipTimeout);this.tooltipTimeout=setTimeout(function(){if(b1){b1.move(M,b3,L,b2)}},32)}},hide:function(){var M=this,L;clearTimeout(this.hideTimer);if(!this.isHidden){L=this.chart.hoverPoints;this.hideTimer=setTimeout(function(){M.label.fadeOut();M.isHidden=true},aI(this.options.hideDelay,500));if(L){B(L,function(bZ){bZ.setState()})}this.chart.hoverPoints=null}},hideCrosshairs:function(){B(this.crosshairs,function(L){if(L){L.hide()}})},getAnchor:function(b4,L){var b1,b2=this.chart,b0=b2.inverted,b3=b2.plotTop,M=0,b5=0,bZ;b4=a7(b4);b1=b4[0].tooltipPos;if(this.followPointer&&L){if(L.chartX===i){L=b2.pointer.normalize(L)}b1=[L.chartX-b2.plotLeft,L.chartY-b3]}if(!b1){B(b4,function(b6){bZ=b6.series.yAxis;M+=b6.plotX;b5+=(b6.plotLow?(b6.plotLow+b6.plotHigh)/2:b6.plotY)+(!b0&&bZ?bZ.top-b3:0)});M/=b4.length;b5/=b4.length;b1=[b0?b2.plotWidth-b5:M,this.shared&&!b0&&b4.length>1&&L?L.chartY-b3:b0?b2.plotHeight-M:b5]}return ad(b1,l)},getPosition:function(b0,b3,b9){var b2=this.chart,bZ=b2.plotLeft,b5=b2.plotTop,b4=b2.plotWidth,b6=b2.plotHeight,M=aI(this.options.distance,12),L=b9.plotX,ca=b9.plotY,b8=L+bZ+(b2.inverted?M:-b0-M),b7=ca-b3+b5+15,b1;if(b8<7){b8=bZ+bX(L,0)+M}if((b8+b0)>(bZ+b4)){b8-=(b8+b0)-(bZ+b4);b7=ca-b3+b5-M;b1=true}if(b7<b5+5){b7=b5+5;if(b1&&ca>=b7&&ca<=(b7+b3)){b7=ca+b5+M}}if(b7+b3>b5+b6){b7=bX(b5,b5+b6-b3-M)}return{x:b8,y:b7}},defaultFormatter:function(b0){var L=this.points||a7(this),M=L[0].series,bZ;bZ=[M.tooltipHeaderFormatter(L[0])];B(L,function(b1){M=b1.series;bZ.push((M.tooltipFormatter&&M.tooltipFormatter(b1))||b1.point.tooltipFormatter(M.tooltipOptions.pointFormat))});bZ.push(b0.options.footerFormat||"");return bZ.join("")},refresh:function(cg,cj){var b2=this,ce=b2.chart,b6=b2.label,b1=b2.options,b9,b7,b4,b5={},cc,b3=[],ci=b1.formatter||b2.defaultFormatter,cb=ce.hoverPoints,L,M=b1.crosshairs,bZ=b2.shared,ca;clearTimeout(this.hideTimer);b2.followPointer=a7(cg)[0].series.tooltipOptions.followPointer;b4=b2.getAnchor(cg,cj);b9=b4[0];b7=b4[1];if(bZ&&!(cg.series&&cg.series.noSharedTooltip)){ce.hoverPoints=cg;if(cb){B(cb,function(cl){cl.setState()})}B(cg,function(cl){cl.setState(aJ);b3.push(cl.getLabelConfig())});b5={x:cg[0].category,y:cg[0].y};b5.points=b3;cg=cg[0]}else{b5=cg.getLabelConfig()}cc=ci.call(b5,b2);ca=cg.series;if(cc===false){this.hide()}else{if(b2.isHidden){aQ(b6);b6.attr("opacity",1).show()}b6.attr({text:cc});L=b1.borderColor||cg.color||ca.color||"#606060";b6.attr({stroke:L});b2.updatePosition({plotX:b9,plotY:b7});this.isHidden=false}if(M){M=a7(M);var cf,ch=M.length,cd,b0,ck,b8;while(ch--){b8=cg.series;b0=b8[ch?"yAxis":"xAxis"];if(M[ch]&&b0){ck=ch?aI(cg.stackY,cg.y):cg.x;if(b0.isLog){ck=q(ck)}if(ch===1&&b8.modifyValue){ck=b8.modifyValue(ck)}cf=b0.getPlotLinePath(ck,1);if(b2.crosshairs[ch]){b2.crosshairs[ch].attr({d:cf,visibility:ag})}else{cd={"stroke-width":M[ch].width||1,stroke:M[ch].color||"#C0C0C0",zIndex:M[ch].zIndex||2};if(M[ch].dashStyle){cd.dashstyle=M[ch].dashStyle}b2.crosshairs[ch]=ce.renderer.path(cf).attr(cd).add()}}}}bk(ce,"tooltipRefresh",{text:cc,x:b9+ce.plotLeft,y:b7+ce.plotTop,borderColor:L})},updatePosition:function(L){var bZ=this.chart,M=this.label,b0=(this.options.positioner||this.getPosition).call(this,M.width,M.height,L);this.move(l(b0.x),l(b0.y),L.plotX+bZ.plotLeft,L.plotY+bZ.plotTop)}};function aG(M,L){this.init(M,L)}aG.prototype={init:function(b0,bZ){var b4=bZ.chart,b3=b4.events,L=aY?"":b4.zoomType,M=b0.inverted,b2,b1;this.options=bZ;this.chart=b0;this.zoomX=b2=/x/.test(L);this.zoomY=b1=/y/.test(L);this.zoomHor=(b2&&!M)||(b1&&M);this.zoomVert=(b1&&!M)||(b2&&M);this.runChartClick=b3&&!!b3.click;this.pinchDown=[];this.lastValidTouch={};if(bZ.tooltip.enabled){b0.tooltip=new bK(b0,bZ.tooltip)}this.setDOMEvents()},normalize:function(b0,bZ){var M,b1,L;b0=b0||aU.event;if(!b0.target){b0.target=b0.srcElement}b0=K(b0);L=b0.touches?b0.touches.item(0):b0;if(!bZ){this.chartPosition=bZ=bI(this.chart.container)}if(L.pageX===i){M=bX(b0.x,b0.clientX-bZ.left);b1=b0.y}else{M=L.pageX-bZ.left;b1=L.pageY-bZ.top}return bd(b0,{chartX:l(M),chartY:l(b1)})},getCoordinates:function(L){var M={xAxis:[],yAxis:[]};B(this.chart.axes,function(bZ){M[bZ.isXAxis?"xAxis":"yAxis"].push({axis:bZ,value:bZ.toValue(L[bZ.horiz?"chartX":"chartY"])})});return M},getIndex:function(M){var L=this.chart;return L.inverted?L.plotHeight+L.plotTop-M.chartY:M.chartX-L.plotLeft},runPointActions:function(b5){var L=this,b6=L.chart,b3=b6.series,ca=b6.tooltip,b8,b9,M=b6.hoverPoint,b7=b6.hoverSeries,b2,b0,bZ=b6.chartWidth,b4=L.getIndex(b5),b1;if(ca&&L.options.tooltip.shared&&!(b7&&b7.noSharedTooltip)){b9=[];b2=b3.length;for(b0=0;b0<b2;b0++){if(b3[b0].visible&&b3[b0].options.enableMouseTracking!==false&&!b3[b0].noSharedTooltip&&b3[b0].tooltipPoints.length){b8=b3[b0].tooltipPoints[b4];if(b8&&b8.series){b8._dist=e(b4-b8.clientX);bZ=ah(bZ,b8._dist);b9.push(b8)}}}b2=b9.length;while(b2--){if(b9[b2]._dist>bZ){b9.splice(b2,1)}}if(b9.length&&(b9[0].clientX!==L.hoverX)){ca.refresh(b9,b5);L.hoverX=b9[0].clientX}}if(b7&&b7.tracker){b8=b7.tooltipPoints[b4];if(b8&&b8!==M){b8.onMouseOver(b5)}}else{if(ca&&ca.followPointer&&!ca.isHidden){b1=ca.getAnchor([{}],b5);ca.updatePosition({plotX:b1[0],plotY:b1[1]})}}},reset:function(b3){var b2=this,b0=b2.chart,M=b0.hoverSeries,L=b0.hoverPoint,b1=b0.tooltip,bZ=b1&&b1.shared?b0.hoverPoints:L;b3=b3&&b1&&bZ;if(b3&&a7(bZ)[0].plotX===i){b3=false}if(b3){b1.refresh(bZ)}else{if(L){L.onMouseOut()}if(M){M.onMouseOut()}if(b1){b1.hide();b1.hideCrosshairs()}b2.hoverX=null}},scaleGroups:function(bZ,M){var L=this.chart,b0;B(L.series,function(b1){b0=bZ||b1.getPlotBox();if(b1.xAxis&&b1.xAxis.zoomEnabled){b1.group.attr(b0);if(b1.markerGroup){b1.markerGroup.attr(b0);b1.markerGroup.clip(M?L.clipRect:null)}if(b1.dataLabelsGroup){b1.dataLabelsGroup.attr(b0)}}});L.clipRect.attr(M||L.clipBox)},pinchTranslateDirection:function(cn,ck,cf,ce,b0,cl,ci){var ch=this.chart,b4=cn?"x":"y",bZ=cn?"X":"Y",cm="chart"+bZ,b6=cn?"width":"height",M=ch["plot"+(cn?"Left":"Top")],b8,b5,cb,co=1,cg=ch.inverted,b7=ch.bounds[cn?"h":"v"],b3=ck.length===1,b2=ck[0][cm],cd=cf[0][cm],b9=!b3&&ck[1][cm],cj=!b3&&cf[1][cm],b1,L,ca,cc=function(){if(!b3&&e(b2-b9)>20){co=e(cd-cj)/e(b2-b9)}cb=((M-cd)/co)+b2;b8=ch["plot"+(cn?"Width":"Height")]/co};cc();b5=cb;if(b5<b7.min){b5=b7.min;b1=true}else{if(b5+b8>b7.max){b5=b7.max-b8;b1=true}}if(b1){cd-=0.8*(cd-ci[b4][0]);if(!b3){cj-=0.8*(cj-ci[b4][1])}cc()}else{ci[b4]=[cd,cj]}if(!cg){cl[b4]=cb-M;cl[b6]=b8}ca=cg?(cn?"scaleY":"scaleX"):"scale"+bZ;L=cg?1/co:co;b0[b6]=b8;b0[b4]=b5;ce[ca]=co;ce["translate"+bZ]=(L*M)+(cd-(L*b2))},pinch:function(b6){var cb=this,b7=cb.chart,ca=cb.pinchDown,b5=b7.tooltip&&b7.tooltip.options.followTouchMove,b3=b6.touches,M=b3.length,bZ=cb.lastValidTouch,L=cb.zoomHor||cb.pinchHor,b9=cb.zoomVert||cb.pinchVert,b4=L||b9,b8=cb.selectionMarker,b0={},b2=M===1&&((cb.inClass(b6.target,aZ+"tracker")&&b7.runTrackerClick)||b7.runChartClick),b1={};if((b4||b5)&&!b2){b6.preventDefault()}ad(b3,function(cc){return cb.normalize(cc)});if(b6.type==="touchstart"){B(b3,function(cd,cc){ca[cc]={chartX:cd.chartX,chartY:cd.chartY}});bZ.x=[ca[0].chartX,ca[1]&&ca[1].chartX];bZ.y=[ca[0].chartY,ca[1]&&ca[1].chartY];B(b7.axes,function(ch){if(ch.zoomEnabled){var ci=b7.bounds[ch.horiz?"h":"v"],ce=ch.minPixelPadding,cf=ch.toPixels(ch.dataMin),cc=ch.toPixels(ch.dataMax),cg=ah(cf,cc),cd=bX(cf,cc);ci.min=ah(ch.pos,cg-ce);ci.max=bX(ch.pos+ch.len,cd+ce)}})}else{if(ca.length){if(!b8){cb.selectionMarker=b8=bd({destroy:h},b7.plotBox)}if(L){cb.pinchTranslateDirection(true,ca,b3,b0,b8,b1,bZ)}if(b9){cb.pinchTranslateDirection(false,ca,b3,b0,b8,b1,bZ)}cb.hasPinched=b4;cb.scaleGroups(b0,b1);if(!b4&&b5&&M===1){this.runPointActions(cb.normalize(b6))}}}},dragStart:function(M){var L=this.chart;L.mouseIsDown=M.type;L.cancelClick=false;L.mouseDownX=this.mouseDownX=M.chartX;L.mouseDownY=this.mouseDownY=M.chartY},drag:function(b4){var b5=this.chart,b1=b5.options.chart,b6=b4.chartX,b3=b4.chartY,bZ=this.zoomHor,ca=this.zoomVert,b0=b5.plotLeft,b9=b5.plotTop,b8=b5.plotWidth,b7=b5.plotHeight,b2,cb,M=this.mouseDownX,L=this.mouseDownY;if(b6<b0){b6=b0}else{if(b6>b0+b8){b6=b0+b8}}if(b3<b9){b3=b9}else{if(b3>b9+b7){b3=b9+b7}}this.hasDragged=Math.sqrt(Math.pow(M-b6,2)+Math.pow(L-b3,2));if(this.hasDragged>10){b2=b5.isInsidePlot(M-b0,L-b9);if(b5.hasCartesianSeries&&(this.zoomX||this.zoomY)&&b2){if(!this.selectionMarker){this.selectionMarker=b5.renderer.rect(b0,b9,bZ?1:b8,ca?1:b7,0).attr({fill:b1.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()}}if(this.selectionMarker&&bZ){cb=b6-M;this.selectionMarker.attr({width:e(cb),x:(cb>0?0:cb)+M})}if(this.selectionMarker&&ca){cb=b3-L;this.selectionMarker.attr({height:e(cb),y:(cb>0?0:cb)+L})}if(b2&&!this.selectionMarker&&b1.panning){b5.pan(b4,b1.panning)}}},drop:function(b4){var b1=this.chart,bZ=this.hasPinched;if(this.selectionMarker){var b2={xAxis:[],yAxis:[],originalEvent:b4.originalEvent||b4},M=this.selectionMarker,b3=M.x,b0=M.y,L;if(this.hasDragged||bZ){B(b1.axes,function(b6){if(b6.zoomEnabled){var b8=b6.horiz,b5=b6.toValue((b8?b3:b0)),b7=b6.toValue((b8?b3+M.width:b0+M.height));if(!isNaN(b5)&&!isNaN(b7)){b2[b6.xOrY+"Axis"].push({axis:b6,min:ah(b5,b7),max:bX(b5,b7)});L=true}}});if(L){bk(b1,"selection",b2,function(b5){b1.zoom(bd(b5,bZ?{animation:false}:null))})}}this.selectionMarker=this.selectionMarker.destroy();if(bZ){this.scaleGroups()}}if(b1){bS(b1.container,{cursor:b1._cursor});b1.cancelClick=this.hasDragged>10;b1.mouseIsDown=this.hasDragged=this.hasPinched=false;this.pinchDown=[]}},onContainerMouseDown:function(L){L=this.normalize(L);if(L.preventDefault){L.preventDefault()}this.dragStart(L)},onDocumentMouseUp:function(L){this.drop(L)},onDocumentMouseMove:function(b0){var bZ=this.chart,L=this.chartPosition,M=bZ.hoverSeries;b0=this.normalize(b0,L);if(L&&M&&!this.inClass(b0.target,"highcharts-tracker")&&!bZ.isInsidePlot(b0.chartX-bZ.plotLeft,b0.chartY-bZ.plotTop)){this.reset()}},onContainerMouseLeave:function(){this.reset();this.chartPosition=null},onContainerMouseMove:function(M){var L=this.chart;M=this.normalize(M);M.returnValue=false;if(L.mouseIsDown==="mousedown"){this.drag(M)}if((this.inClass(M.target,"highcharts-tracker")||L.isInsidePlot(M.chartX-L.plotLeft,M.chartY-L.plotTop))&&!L.openMenu){this.runPointActions(M)}},inClass:function(L,bZ){var M;while(L){M=N(L,"class");if(M){if(M.indexOf(bZ)!==-1){return true}else{if(M.indexOf(aZ+"container")!==-1){return false}}}L=L.parentNode}},onTrackerMouseOut:function(M){var L=this.chart.hoverSeries;if(L&&!L.options.stickyTracking&&!this.inClass(M.toElement||M.relatedTarget,aZ+"tooltip")){L.onMouseOut()}},onContainerClick:function(b1){var b3=this.chart,M=b3.hoverPoint,bZ=b3.plotLeft,b4=b3.plotTop,b0=b3.inverted,b2,L,b5;b1=this.normalize(b1);b1.cancelBubble=true;if(!b3.cancelClick){if(M&&this.inClass(b1.target,aZ+"tracker")){b2=this.chartPosition;L=M.plotX;b5=M.plotY;bd(M,{pageX:b2.left+bZ+(b0?b3.plotWidth-b5:L),pageY:b2.top+b4+(b0?b3.plotHeight-L:b5)});bk(M.series,"click",bd(b1,{point:M}));if(b3.hoverPoint){M.firePointEvent("click",b1)}}else{bd(b1,this.getCoordinates(b1));if(b3.isInsidePlot(b1.chartX-bZ,b1.chartY-b4)){bk(b3,"click",b1)}}}},onContainerTouchStart:function(M){var L=this.chart;if(M.touches.length===1){M=this.normalize(M);if(L.isInsidePlot(M.chartX-L.plotLeft,M.chartY-L.plotTop)){this.runPointActions(M);this.pinch(M)}else{this.reset()}}else{if(M.touches.length===2){this.pinch(M)}}},onContainerTouchMove:function(L){if(L.touches.length===1||L.touches.length===2){this.pinch(L)}},onDocumentTouchEnd:function(L){this.drop(L)},setDOMEvents:function(){var bZ=this,L=bZ.chart.container,M;this._events=M=[[L,"onmousedown","onContainerMouseDown"],[L,"onmousemove","onContainerMouseMove"],[L,"onclick","onContainerClick"],[L,"mouseleave","onContainerMouseLeave"],[bs,"mousemove","onDocumentMouseMove"],[bs,"mouseup","onDocumentMouseUp"]];if(A){M.push([L,"ontouchstart","onContainerTouchStart"],[L,"ontouchmove","onContainerTouchMove"],[bs,"touchend","onDocumentTouchEnd"])}B(M,function(b0){bZ["_"+b0[2]]=function(b1){bZ[b0[2]](b1)};if(b0[1].indexOf("on")===0){b0[0][b0[1]]=bZ["_"+b0[2]]}else{u(b0[0],b0[1],bZ["_"+b0[2]])}})},destroy:function(){var L=this;B(L._events,function(M){if(M[1].indexOf("on")===0){M[0][M[1]]=null}else{aW(M[0],M[1],L["_"+M[2]])}});delete L._events;clearInterval(L.tooltipTimeout)}};function bn(M,L){this.init(M,L)}bn.prototype={init:function(bZ,L){var M=this,b0=L.itemStyle,b1=aI(L.padding,8),b2=L.itemMarginTop||0;this.options=L;if(!L.enabled){return}M.baseline=bE(b0.fontSize)+3+b2;M.itemStyle=b0;M.itemHiddenStyle=aH(b0,L.itemHiddenStyle);M.itemMarginTop=b2;M.padding=b1;M.initialItemX=b1;M.initialItemY=b1-5;M.maxItemWidth=0;M.chart=bZ;M.itemHeight=0;M.lastLineHeight=0;M.render();u(M.chart,"endResize",function(){M.positionCheckboxes()})},colorizeItem:function(b9,b0){var b4=this,ca=b4.options,b2=b9.legendItem,b3=b9.legendLine,bZ=b9.legendSymbol,b7=b4.itemHiddenStyle.color,b6=b0?ca.itemStyle.color:b7,b1=b0?b9.color:b7,L=b9.options&&b9.options.marker,b8={stroke:b1,fill:b1},b5,M;if(b2){b2.css({fill:b6,color:b6})}if(b3){b3.attr({stroke:b1})}if(bZ){if(L&&bZ.isMarker){L=b9.convertAttribs(L);for(b5 in L){M=L[b5];if(M!==i){b8[b5]=M}}}bZ.attr(b8)}},positionItem:function(b4){var b2=this,b5=b2.options,b3=b5.symbolPadding,L=!b5.rtl,M=b4._legendItemPos,b1=M[0],b0=M[1],bZ=b4.checkbox;if(b4.legendGroup){b4.legendGroup.translate(L?b1:b2.legendWidth-b1-2*b3-4,b0)}if(bZ){bZ.x=b1;bZ.y=b0}},destroyItem:function(L){var M=L.checkbox;B(["legendItem","legendLine","legendSymbol","legendGroup"],function(bZ){if(L[bZ]){L[bZ]=L[bZ].destroy()}});if(M){bG(L.checkbox)}},destroy:function(){var L=this,bZ=L.group,M=L.box;if(M){L.box=M.destroy()}if(bZ){L.group=bZ.destroy()}},positionCheckboxes:function(L){var b0=this.group.alignAttr,bZ,M=this.clipHeight||this.legendHeight;if(b0){bZ=b0.translateY;B(this.allItems,function(b1){var b2=b1.checkbox,b3;if(b2){b3=(bZ+b2.y+(L||0)+3);bS(b2,{left:(b0.translateX+b1.legendItemWidth+b2.x-20)+S,top:b3+S,display:b3>bZ-6&&b3<bZ+M-6?"":w})}})}},renderTitle:function(){var L=this.options,b0=this.padding,bZ=L.title,b1=0,M;if(bZ.text){if(!this.title){this.title=this.chart.renderer.label(bZ.text,b0-3,b0-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(bZ.style).add(this.group)}M=this.title.getBBox();b1=M.height;this.offsetWidth=M.width;this.contentGroup.attr({translateY:b1})}this.titleHeight=b1},renderItem:function(ci){var M=this,cb=M.chart,cc=cb.renderer,b0=M.options,cj=b0.layout==="horizontal",ck=b0.symbolWidth,L=b0.symbolPadding,b5=M.itemStyle,bZ=M.itemHiddenStyle,ca=M.padding,b2=cj?aI(b0.itemDistance,8):0,cg=!b0.rtl,ce,b8=b0.width,b4=b0.itemMarginBottom||0,ch=M.itemMarginTop,cf=M.initialItemX,b3,b1,b9=ci.legendItem,b7=ci.series||ci,b6=b7.options,cl=b6.showCheckbox,cd=b0.useHTML;if(!b9){ci.legendGroup=cc.g("legend-item").attr({zIndex:1}).add(M.scrollGroup);b7.drawLegendSymbol(M,ci);ci.legendItem=b9=cc.text(b0.labelFormat?f(b0.labelFormat,ci):b0.labelFormatter.call(ci),cg?ck+L:-L,M.baseline,cd).css(aH(ci.visible?b5:bZ)).attr({align:cg?"left":"right",zIndex:2}).add(ci.legendGroup);(cd?b9:ci.legendGroup).on("mouseover",function(){ci.setState(aJ);b9.css(M.options.itemHoverStyle)}).on("mouseout",function(){b9.css(ci.visible?b5:bZ);ci.setState()}).on("click",function(cn){var co="legendItemClick",cm=function(){ci.setVisible()};cn={browserEvent:cn};if(ci.firePointEvent){ci.firePointEvent(co,cn,cm)}else{bk(ci,co,cn,cm)}});M.colorizeItem(ci,ci.visible);if(b6&&cl){ci.checkbox=bf("input",{type:"checkbox",checked:ci.selected,defaultChecked:ci.selected},b0.itemCheckboxStyle,cb.container);u(ci.checkbox,"click",function(cm){var cn=cm.target;bk(ci,"checkboxClick",{checked:cn.checked},function(){ci.select()})})}}b3=b9.getBBox();b1=ci.legendItemWidth=b0.itemWidth||ck+L+b3.width+b2+(cl?20:0);M.itemHeight=ce=b3.height;if(cj&&M.itemX-cf+b1>(b8||(cb.chartWidth-2*ca-cf))){M.itemX=cf;M.itemY+=ch+M.lastLineHeight+b4;M.lastLineHeight=0}M.maxItemWidth=bX(M.maxItemWidth,b1);M.lastItemY=ch+M.itemY+b4;M.lastLineHeight=bX(ce,M.lastLineHeight);ci._legendItemPos=[M.itemX,M.itemY];if(cj){M.itemX+=b1}else{M.itemY+=ch+ce+b4;M.lastLineHeight=ce}M.offsetWidth=b8||bX((cj?M.itemX-cf-b2:b1)+ca,M.offsetWidth)},render:function(){var b6=this,b3=b6.chart,b2=b3.renderer,b0=b6.group,b4,b1,b8,b7,bZ=b6.box,b9=b6.options,b5=b6.padding,L=b9.borderWidth,M=b9.backgroundColor;b6.itemX=b6.initialItemX;b6.itemY=b6.initialItemY;b6.offsetWidth=0;b6.lastItemY=0;if(!b0){b6.group=b0=b2.g("legend").attr({zIndex:7}).add();b6.contentGroup=b2.g().attr({zIndex:1}).add(b0);b6.scrollGroup=b2.g().add(b6.contentGroup)}b6.renderTitle();b4=[];B(b3.series,function(cb){var ca=cb.options;if(!ca.showInLegend||aa(ca.linkedTo)){return}b4=b4.concat(cb.legendItems||(ca.legendType==="point"?cb.data:cb))});aC(b4,function(cb,ca){return((cb.options&&cb.options.legendIndex)||0)-((ca.options&&ca.options.legendIndex)||0)});if(b9.reversed){b4.reverse()}b6.allItems=b4;b6.display=b1=!!b4.length;B(b4,function(ca){b6.renderItem(ca)});b8=b9.width||b6.offsetWidth;b7=b6.lastItemY+b6.lastLineHeight+b6.titleHeight;b7=b6.handleOverflow(b7);if(L||M){b8+=b5;b7+=b5;if(!bZ){b6.box=bZ=b2.rect(0,0,b8,b7,b9.borderRadius,L||0).attr({stroke:b9.borderColor,"stroke-width":L||0,fill:M||w}).add(b0).shadow(b9.shadow);bZ.isNew=true}else{if(b8>0&&b7>0){bZ[bZ.isNew?"attr":"animate"](bZ.crisp(null,null,null,b8,b7));bZ.isNew=false}}bZ[b1?"show":"hide"]()}b6.legendWidth=b8;b6.legendHeight=b7;B(b4,function(ca){b6.positionItem(ca)});if(b1){b0.align(bd({width:b8,height:b7},b9),true,"spacingBox")}if(!b3.isResizing){this.positionCheckboxes()}},handleOverflow:function(ca){var b9=this,b7=this.chart,b6=b7.renderer,M,cc=this.options,bZ=cc.y,b4=cc.verticalAlign==="top",b8=b7.spacingBox.height+(b4?-bZ:bZ)-this.padding,cb=cc.maxHeight,b1,b3=this.clipRect,b5=cc.navigation,b0=aI(b5.animation,true),b2=b5.arrowSize||12,L=this.nav;if(cc.layout==="horizontal"){b8/=2}if(cb){b8=ah(b8,cb)}if(ca>b8&&!cc.useHTML){this.clipHeight=b1=b8-20-this.titleHeight;this.pageCount=M=av(ca/b1);this.currentPage=aI(this.currentPage,1);this.fullHeight=ca;if(!b3){b3=b9.clipRect=b6.clipRect(0,0,9999,0);b9.contentGroup.clip(b3)}b3.attr({height:b1});if(!L){this.nav=L=b6.g().attr({zIndex:1}).add(this.group);this.up=b6.symbol("triangle",0,0,b2,b2).on("click",function(){b9.scroll(-1,b0)}).add(L);this.pager=b6.text("",15,10).css(b5.style).add(L);this.down=b6.symbol("triangle-down",0,0,b2,b2).on("click",function(){b9.scroll(1,b0)}).add(L)}b9.scroll(0);ca=b8}else{if(L){b3.attr({height:b7.chartHeight});L.hide();this.scrollGroup.attr({translateY:1});this.clipHeight=0}}return ca},scroll:function(b1,bZ){var M=this.pageCount,b3=this.currentPage+b1,b0=this.clipHeight,b5=this.options.navigation,b6=b5.activeColor,b4=b5.inactiveColor,L=this.pager,b7=this.padding,b2;if(b3>M){b3=M}if(b3>0){if(bZ!==i){bT(bZ,this.chart)}this.nav.attr({translateX:b7,translateY:b0+7+this.titleHeight,visibility:ag});this.up.attr({fill:b3===1?b4:b6}).css({cursor:b3===1?"default":"pointer"});L.attr({text:b3+"/"+this.pageCount});this.down.attr({x:18+this.pager.getBBox().width,fill:b3===M?b4:b6}).css({cursor:b3===M?"default":"pointer"});b2=-ah(b0*(b3-1),this.fullHeight-b0+b7)+1;this.scrollGroup.animate({translateY:b2});L.attr({text:b3+"/"+M});this.currentPage=b3;this.positionCheckboxes(b2)}}};if(/Trident.*?11\.0/.test(p)){aR(bn.prototype,"positionItem",function(bZ,M){var L=this;setTimeout(function(){bZ.call(L,M)})})}function bb(){this.init.apply(this,arguments)}bb.prototype={init:function(b3,b4){var M,L=b3.series;b3.series=null;M=aH(bp,b3);M.series=b3.series=L;var b2=M.chart;this.margin=this.splashArray("margin",b2);this.spacing=this.splashArray("spacing",b2);var b1=b2.events;this.bounds={h:{},v:{}};this.callback=b4;this.isResizing=0;this.options=M;this.axes=[];this.series=[];this.hasCartesianSeries=b2.showAxes;var b0=this,bZ;b0.index=aA.length;aA.push(b0);if(b2.reflow!==false){u(b0,"load",function(){b0.initReflow()})}if(b1){for(bZ in b1){u(b0,bZ,b1[bZ])}}b0.xAxis=[];b0.yAxis=[];b0.animation=aY?false:aI(b2.animation,true);b0.pointCount=0;b0.counters=new H();b0.firstRender()},initSeries:function(L){var b0=this,b2=b0.options.chart,bZ=L.type||b2.type||b2.defaultSeriesType,M,b1=a[bZ];if(!b1){bF(17,true)}M=new b1();M.init(this,L);return M},addSeries:function(L,b1,b0){var M,bZ=this;if(L){b1=aI(b1,true);bk(bZ,"addSeries",{options:L},function(){M=bZ.initSeries(L);bZ.isDirtyLegend=true;bZ.linkSeries();if(b1){bZ.redraw(b0)}})}return M},addAxis:function(L,b1,b3,b0){var M=b1?"xAxis":"yAxis",b2=this.options,bZ;bZ=new x(this,aH(L,{index:this[M].length,isX:b1}));b2[M]=a7(b2[M]||{});b2[M].push(L);if(aI(b3,true)){this.redraw(b0)}},isInsidePlot:function(b0,bZ,M){var L=M?bZ:b0,b1=M?b0:bZ;return L>=0&&L<=this.plotWidth&&b1>=0&&b1<=this.plotHeight},adjustTickAmounts:function(){if(this.options.chart.alignTicks!==false){B(this.axes,function(L){L.adjustTickAmount()})}this.maxTicks=null},redraw:function(b0){var b9=this,b8=b9.axes,b3=b9.series,L=b9.pointer,cc=b9.legend,M=b9.isDirtyLegend,b5,ca,b2=b9.isDirtyBox,bZ=b3.length,b1=bZ,b4,b7=b9.renderer,cb=b7.isHidden(),b6=[];bT(b0,b9);if(cb){b9.cloneRenderTo()}b9.layOutTitles();while(b1--){b4=b3[b1];if(b4.options.stacking){b5=true;if(b4.isDirty){ca=true;break}}}if(ca){b1=bZ;while(b1--){b4=b3[b1];if(b4.options.stacking){b4.isDirty=true}}}B(b3,function(cd){if(cd.isDirty){if(cd.options.legendType==="point"){M=true}}});if(M&&cc.options.enabled){cc.render();b9.isDirtyLegend=false}if(b5){b9.getStacks()}if(b9.hasCartesianSeries){if(!b9.isResizing){b9.maxTicks=null;B(b8,function(cd){cd.setScale()})}b9.adjustTickAmounts();b9.getMargins();B(b8,function(cd){if(cd.isDirty){b2=true}});B(b8,function(cd){if(cd.isDirtyExtremes){cd.isDirtyExtremes=false;b6.push(function(){bk(cd,"afterSetExtremes",bd(cd.eventArgs,cd.getExtremes()));delete cd.eventArgs})}if(b2||b5){cd.redraw()}})}if(b2){b9.drawChartBox()}B(b3,function(cd){if(cd.isDirty&&cd.visible&&(!cd.isCartesian||cd.xAxis)){cd.redraw()}});if(L&&L.reset){L.reset(true)}b7.draw();bk(b9,"redraw");if(cb){b9.cloneRenderTo(true)}B(b6,function(cd){cd.call()})},showLoading:function(b1){var bZ=this,L=bZ.options,b0=bZ.loadingDiv;var M=L.loading;if(!b0){bZ.loadingDiv=b0=bf(G,{className:aZ+"loading"},bd(M.style,{zIndex:10,display:w}),bZ.container);bZ.loadingSpan=bf("span",null,M.labelStyle,b0)}bZ.loadingSpan.innerHTML=b1||L.lang.loading;if(!bZ.loadingShown){bS(b0,{opacity:0,display:"",left:bZ.plotLeft+S,top:bZ.plotTop+S,width:bZ.plotWidth+S,height:bZ.plotHeight+S});o(b0,{opacity:M.style.opacity},{duration:M.showDuration||0});bZ.loadingShown=true}},hideLoading:function(){var L=this.options,M=this.loadingDiv;if(M){o(M,{opacity:0},{duration:L.loading.hideDuration||100,complete:function(){bS(M,{display:w})}})}this.loadingShown=false},get:function(b3){var b1=this,b2=b1.axes,bZ=b1.series;var M,L,b0;for(M=0;M<b2.length;M++){if(b2[M].options.id===b3){return b2[M]}}for(M=0;M<bZ.length;M++){if(bZ[M].options.id===b3){return bZ[M]}}for(M=0;M<bZ.length;M++){b0=bZ[M].points||[];for(L=0;L<b0.length;L++){if(b0[L].id===b3){return b0[L]}}}return null},getAxes:function(){var b1=this,bZ=this.options,L=bZ.xAxis=a7(bZ.xAxis||{}),b2=bZ.yAxis=a7(bZ.yAxis||{}),M,b0;B(L,function(b4,b3){b4.index=b3;b4.isX=true});B(b2,function(b4,b3){b4.index=b3});M=L.concat(b2);B(M,function(b3){b0=new x(b1,b3)});b1.adjustTickAmounts()},getSelectedPoints:function(){var L=[];B(this.series,function(M){L=L.concat(bo(M.points||[],function(bZ){return bZ.selected}))});return L},getSelectedSeries:function(){return bo(this.series,function(L){return L.selected})},getStacks:function(){var L=this;B(L.yAxis,function(M){if(M.stacks&&M.hasVisibleSeries){M.oldStacks=M.stacks}});B(L.series,function(M){if(M.options.stacking&&(M.visible===true||L.options.chart.ignoreHiddenSeries===false)){M.stackKey=M.type+aI(M.options.stack,"")}})},showResetZoom:function(){var bZ=this,b2=bp.lang,M=bZ.options.chart.resetZoomButton,b1=M.theme,L=b1.states,b0=M.relativeTo==="chart"?null:"plotBox";this.resetZoomButton=bZ.renderer.button(b2.resetZoom,null,null,function(){bZ.zoomOut()},b1,L&&L.hover).attr({align:M.position.align,title:b2.resetZoomTitle}).add().align(M.position,false,b0)},zoomOut:function(){var L=this;bk(L,"selection",{resetSelection:true},function(){L.zoom()})},zoom:function(bZ){var M=this,L,b2=M.pointer,b1=false,b0;if(!bZ||bZ.resetSelection){B(M.axes,function(b3){L=b3.zoom()})}else{B(bZ.xAxis.concat(bZ.yAxis),function(b3){var b4=b3.axis,b5=b4.isXAxis;if(b2[b5?"zoomX":"zoomY"]||b2[b5?"pinchX":"pinchY"]){L=b4.zoom(b3.min,b3.max);if(b4.displayBtn){b1=true}}})}b0=M.resetZoomButton;if(b1&&!b0){M.showResetZoom()}else{if(!b1&&bU(b0)){M.resetZoomButton=b0.destroy()}}if(L){M.redraw(aI(M.options.chart.animation,bZ&&bZ.animation,M.pointCount<100))}},pan:function(b0,bZ){var M=this,L=M.hoverPoints,b1;if(L){B(L,function(b2){b2.setState()})}B(bZ==="xy"?[1,0]:[1],function(b7){var b2=b0[b7?"chartX":"chartY"],b6=M[b7?"xAxis":"yAxis"][0],b4=M[b7?"mouseDownX":"mouseDownY"],b3=(b6.pointRange||0)/2,b9=b6.getExtremes(),b8=b6.toValue(b4-b2,true)+b3,b5=b6.toValue(b4+M[b7?"plotWidth":"plotHeight"]-b2,true)-b3;if(b6.series.length&&b8>ah(b9.dataMin,b9.min)&&b5<bX(b9.dataMax,b9.max)){b6.setExtremes(b8,b5,false,false,{trigger:"pan"});b1=true}M[b7?"mouseDownX":"mouseDownY"]=b2});if(b1){M.redraw(false)}bS(M.container,{cursor:"move"})},setTitle:function(b1,L){var b0=this,M=b0.options,bZ,b2;bZ=M.title=aH(M.title,b1);b2=M.subtitle=aH(M.subtitle,L);B([["title",b1,bZ],["subtitle",L,b2]],function(b3){var b4=b3[0],b7=b0[b4],b6=b3[1],b5=b3[2];if(b7&&b6){b0[b4]=b7=b7.destroy()}if(b5&&b5.text&&!b7){b0[b4]=b0.renderer.text(b5.text,0,0,b5.useHTML).attr({align:b5.align,"class":aZ+b4,zIndex:b5.zIndex||4}).css(b5.style).add()}});b0.layOutTitles()},layOutTitles:function(){var b1=0,b3=this.title,bZ=this.subtitle,M=this.options,b0=M.title,L=M.subtitle,b2=this.spacingBox.width-44;if(b3){b3.css({width:(b0.width||b2)+S}).align(bd({y:15},b0),false,"spacingBox");if(!b0.floating&&!b0.verticalAlign){b1=b3.getBBox().height;if(b1>=18&&b1<=25){b1=15}}}if(bZ){bZ.css({width:(L.width||b2)+S}).align(bd({y:b1+b0.margin},L),false,"spacingBox");if(!L.floating&&!L.verticalAlign){b1=av(b1+bZ.getBBox().height)}}this.titleOffset=b1},getChartSize:function(){var L=this,bZ=L.options.chart,M=L.renderToClone||L.renderTo;L.containerWidth=aD(M,"width");L.containerHeight=aD(M,"height");L.chartWidth=bX(0,bZ.width||L.containerWidth||600);L.chartHeight=bX(0,aI(bZ.height,L.containerHeight>19?L.containerHeight:400))},cloneRenderTo:function(M){var bZ=this.renderToClone,L=this.container;if(M){if(bZ){this.renderTo.appendChild(L);bG(bZ);delete this.renderToClone}}else{if(L&&L.parentNode===this.renderTo){this.renderTo.removeChild(L)}this.renderToClone=bZ=this.renderTo.cloneNode(0);bS(bZ,{position:aj,top:"-9999px",display:"block"});bs.body.appendChild(bZ);if(L){bZ.appendChild(L)}}},getContainer:function(){var b4=this,L,b3=b4.options.chart,b2,M,b5,bZ="data-highcharts-chart",b0,b1;b4.renderTo=b5=b3.renderTo;b1=aZ+a1++;if(bi(b5)){b4.renderTo=b5=bs.getElementById(b5)}if(!b5){bF(13,true)}b0=bE(N(b5,bZ));if(!isNaN(b0)&&aA[b0]){aA[b0].destroy()}N(b5,bZ,b4.index);b5.innerHTML="";if(!b5.offsetWidth){b4.cloneRenderTo()}b4.getChartSize();b2=b4.chartWidth;M=b4.chartHeight;b4.container=L=bf(G,{className:aZ+"container"+(b3.className?" "+b3.className:""),id:b1},bd({position:F,overflow:ac,width:b2+S,height:M+S,textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},b3.style),b4.renderToClone||b5);b4._cursor=L.style.cursor;b4.renderer=b3.forExport?new d(L,b2,M,true):new bJ(L,b2,M);if(aY){b4.renderer.create(b4,L,b2,M)}},getMargins:function(){var b2=this,b3=b2.spacing,b5,b6=b2.legend,bZ=b2.margin,b7=b2.options.legend,M=aI(b7.margin,10),b4=b7.x,b1=b7.y,b0=b7.align,L=b7.verticalAlign,b8=b2.titleOffset;b2.resetMargins();b5=b2.axisOffset;if(b8&&!aa(bZ[0])){b2.plotTop=bX(b2.plotTop,b8+b2.options.title.margin+b3[0])}if(b6.display&&!b7.floating){if(b0==="right"){if(!aa(bZ[1])){b2.marginRight=bX(b2.marginRight,b6.legendWidth-b4+M+b3[1])}}else{if(b0==="left"){if(!aa(bZ[3])){b2.plotLeft=bX(b2.plotLeft,b6.legendWidth+b4+M+b3[3])}}else{if(L==="top"){if(!aa(bZ[0])){b2.plotTop=bX(b2.plotTop,b6.legendHeight+b1+M+b3[0])}}else{if(L==="bottom"){if(!aa(bZ[2])){b2.marginBottom=bX(b2.marginBottom,b6.legendHeight-b1+M+b3[2])}}}}}}if(b2.extraBottomMargin){b2.marginBottom+=b2.extraBottomMargin}if(b2.extraTopMargin){b2.plotTop+=b2.extraTopMargin}if(b2.hasCartesianSeries){B(b2.axes,function(b9){b9.getOffset()})}if(!aa(bZ[3])){b2.plotLeft+=b5[3]}if(!aa(bZ[0])){b2.plotTop+=b5[0]}if(!aa(bZ[2])){b2.marginBottom+=b5[2]}if(!aa(bZ[1])){b2.marginRight+=b5[1]}b2.setChartSize()},initReflow:function(){var M=this,b1=M.options.chart,b0=M.renderTo,bZ;function L(b5){var b3=b1.width||aD(b0,"width"),b2=b1.height||aD(b0,"height"),b4=b5?b5.target:aU;if(!M.hasUserSize&&b3&&b2&&(b4===aU||b4===bs)){if(b3!==M.containerWidth||b2!==M.containerHeight){clearTimeout(bZ);M.reflowTimeout=bZ=setTimeout(function(){if(M.container){M.setSize(b3,b2,false);M.hasUserSize=null}},100)}M.containerWidth=b3;M.containerHeight=b2}}M.reflow=L;u(aU,"resize",L);u(M,"destroy",function(){aW(aU,"resize",L)})},setSize:function(b2,L,b3){var b1=this,b0,M,bZ;b1.isResizing+=1;bZ=function(){if(b1){bk(b1,"endResize",null,function(){b1.isResizing-=1})}};bT(b3,b1);b1.oldChartHeight=b1.chartHeight;b1.oldChartWidth=b1.chartWidth;if(aa(b2)){b1.chartWidth=b0=bX(0,l(b2));b1.hasUserSize=!!b0}if(aa(L)){b1.chartHeight=M=bX(0,l(L))}bS(b1.container,{width:b0+S,height:M+S});b1.setChartSize(true);b1.renderer.setSize(b0,M,b3);b1.maxTicks=null;B(b1.axes,function(b4){b4.isDirty=true;b4.setScale()});B(b1.series,function(b4){b4.isDirty=true});b1.isDirtyLegend=true;b1.isDirtyBox=true;b1.getMargins();b1.redraw(b3);b1.oldChartHeight=null;bk(b1,"resize");if(bY===false){bZ()}else{setTimeout(bZ,(bY&&bY.duration)||500)}},setChartSize:function(cb){var b6=this,b2=b6.inverted,b5=b6.renderer,b3=b6.chartWidth,b1=b6.chartHeight,b4=b6.options.chart,ca=b6.spacing,cc=b6.clipOffset,b0,bZ,M,b9,b8,b7,L;b6.plotLeft=M=l(b6.plotLeft);b6.plotTop=b9=l(b6.plotTop);b6.plotWidth=b8=bX(0,l(b3-M-b6.marginRight));b6.plotHeight=b7=bX(0,l(b1-b9-b6.marginBottom));b6.plotSizeX=b2?b7:b8;b6.plotSizeY=b2?b8:b7;b6.plotBorderWidth=b4.plotBorderWidth||0;b6.spacingBox=b5.spacingBox={x:ca[3],y:ca[0],width:b3-ca[3]-ca[1],height:b1-ca[0]-ca[2]};b6.plotBox=b5.plotBox={x:M,y:b9,width:b8,height:b7};L=2*be(b6.plotBorderWidth/2);b0=av(bX(L,cc[3])/2);bZ=av(bX(L,cc[0])/2);b6.clipBox={x:b0,y:bZ,width:be(b6.plotSizeX-bX(L,cc[1])/2-b0),height:be(b6.plotSizeY-bX(L,cc[2])/2-bZ)};if(!cb){B(b6.axes,function(cd){cd.setAxisSize();cd.setAxisTranslation()})}},resetMargins:function(){var L=this,bZ=L.spacing,M=L.margin;L.plotTop=aI(M[0],bZ[0]);L.marginRight=aI(M[1],bZ[1]);L.marginBottom=aI(M[2],bZ[2]);L.plotLeft=aI(M[3],bZ[3]);L.axisOffset=[0,0,0,0];L.clipOffset=[0,0,0,0]},drawChartBox:function(){var b7=this,bZ=b7.options.chart,cc=b7.renderer,cg=b7.chartWidth,b0=b7.chartHeight,cb=b7.chartBackground,b2=b7.plotBackground,ch=b7.plotBorder,b9=b7.plotBGImage,cd=bZ.borderWidth||0,cj=bZ.backgroundColor,b3=bZ.plotBackgroundColor,M=bZ.plotBackgroundImage,ci=bZ.plotBorderWidth||0,L,b4,b8=b7.plotLeft,ca=b7.plotTop,b1=b7.plotWidth,cf=b7.plotHeight,b5=b7.plotBox,ce=b7.clipRect,b6=b7.clipBox;L=cd+(bZ.shadow?8:0);if(cd||cj){if(!cb){b4={fill:cj||w};if(cd){b4.stroke=bZ.borderColor;b4["stroke-width"]=cd}b7.chartBackground=cc.rect(L/2,L/2,cg-L,b0-L,bZ.borderRadius,cd).attr(b4).add().shadow(bZ.shadow)}else{cb.animate(cb.crisp(null,null,null,cg-L,b0-L))}}if(b3){if(!b2){b7.plotBackground=cc.rect(b8,ca,b1,cf,0).attr({fill:b3}).add().shadow(bZ.plotShadow)}else{b2.animate(b5)}}if(M){if(!b9){b7.plotBGImage=cc.image(M,b8,ca,b1,cf).add()}else{b9.animate(b5)}}if(!ce){b7.clipRect=cc.clipRect(b6)}else{ce.animate({width:b6.width,height:b6.height})}if(ci){if(!ch){b7.plotBorder=cc.rect(b8,ca,b1,cf,0,-ci).attr({stroke:bZ.plotBorderColor,"stroke-width":ci,zIndex:1}).add()}else{ch.animate(ch.crisp(null,b8,ca,b1,cf))}}b7.isDirtyBox=false},propFromSeries:function(){var b0=this,b2=b0.options.chart,L,M=b0.options.series,bZ,b1;B(["inverted","angular","polar"],function(b3){L=a[b2.type||b2.defaultSeriesType];b1=(b0[b3]||b2[b3]||(L&&L.prototype[b3]));bZ=M&&M.length;while(!b1&&bZ--){L=a[M[bZ].type];if(L&&L.prototype[b3]){b1=true}}b0[b3]=b1})},linkSeries:function(){var L=this,M=L.series;B(M,function(bZ){bZ.linkedSeries.length=0});B(M,function(b0){var bZ=b0.options.linkedTo;if(bi(bZ)){if(bZ===":previous"){bZ=L.series[b0.index-1]}else{bZ=L.get(bZ)}if(bZ){bZ.linkedSeries.push(b0);b0.linkedParent=bZ}}})},render:function(){var bZ=this,b1=bZ.axes,b0=bZ.renderer,L=bZ.options;var b3=L.labels,M=L.credits,b2;bZ.setTitle();bZ.legend=new bn(bZ,L.legend);bZ.getStacks();B(b1,function(b4){b4.setScale()});bZ.getMargins();bZ.maxTicks=null;B(b1,function(b4){b4.setTickPositions(true);b4.setMaxTicks()});bZ.adjustTickAmounts();bZ.getMargins();bZ.drawChartBox();if(bZ.hasCartesianSeries){B(b1,function(b4){b4.render()})}if(!bZ.seriesGroup){bZ.seriesGroup=b0.g("series-group").attr({zIndex:3}).add()}B(bZ.series,function(b4){b4.translate();b4.setTooltipPoints();b4.render()});if(b3.items){B(b3.items,function(b5){var b6=bd(b3.style,b5.style),b4=bE(b6.left)+bZ.plotLeft,b7=bE(b6.top)+bZ.plotTop+12;delete b6.left;delete b6.top;b0.text(b5.html,b4,b7).attr({zIndex:2}).css(b6).add()})}if(M.enabled&&!bZ.credits){b2=M.href;bZ.credits=b0.text(M.text,0,0).on("click",function(){if(b2){location.href=b2}}).attr({align:M.position.align,zIndex:8}).css(M.style).add().align(M.position)}bZ.hasRendered=true},destroy:function(){var b1=this,b2=b1.axes,b0=b1.series,M=b1.container,bZ,L=M&&M.parentNode;bk(b1,"destroy");aA[b1.index]=i;b1.renderTo.removeAttribute("data-highcharts-chart");aW(b1);bZ=b2.length;while(bZ--){b2[bZ]=b2[bZ].destroy()}bZ=b0.length;while(bZ--){b0[bZ]=b0[bZ].destroy()}B(["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","scroller","rangeSelector","legend","resetZoomButton","tooltip","renderer"],function(b3){var b4=b1[b3];if(b4&&b4.destroy){b1[b3]=b4.destroy()}});if(M){M.innerHTML="";aW(M);if(L){bG(M)}}for(bZ in b1){delete b1[bZ]}},isReadyToRender:function(){var L=this;if((!bO&&(aU==aU.top&&bs.readyState!=="complete"))||(aY&&!aU.canvg)){if(aY){aX.push(function(){L.firstRender()},L.options.global.canvasToolsURL)}else{bs.attachEvent("onreadystatechange",function(){bs.detachEvent("onreadystatechange",L.firstRender);if(bs.readyState==="complete"){L.firstRender()}})}return false}return true},firstRender:function(){var M=this,L=M.options,bZ=M.callback;if(!M.isReadyToRender()){return}M.getContainer();bk(M,"init");M.resetMargins();M.setChartSize();M.propFromSeries();M.getAxes();B(L.series||[],function(b0){M.initSeries(b0)});M.linkSeries();bk(M,"beforeRender");M.pointer=new aG(M,L);M.render();M.renderer.draw();if(bZ){bZ.apply(M,[M])}B(M.callbacks,function(b0){b0.apply(M,[M])});M.cloneRenderTo(true);bk(M,"load")},splashArray:function(b0,M){var bZ=M[b0],L=bU(bZ)?bZ:[bZ,bZ,bZ,bZ];return[aI(M[b0+"Top"],L[0]),aI(M[b0+"Right"],L[1]),aI(M[b0+"Bottom"],L[2]),aI(M[b0+"Left"],L[3])]}};bb.prototype.callbacks=[];var bq=function(){};bq.prototype={init:function(b1,b0,M){var L=this,bZ;L.series=b1;L.applyOptions(b0,M);L.pointAttr={};if(b1.options.colorByPoint){bZ=b1.options.colors||b1.chart.options.colors;L.color=L.color||bZ[b1.colorCounter++];if(b1.colorCounter===bZ.length){b1.colorCounter=0}}b1.chart.pointCount++;return L},applyOptions:function(bZ,M){var L=this,b0=L.series,b1=b0.pointValKey;bZ=bq.prototype.optionsToObject.call(this,bZ);bd(L,bZ);L.options=L.options?bd(L.options,bZ):bZ;if(b1){L.y=L[b1]}if(L.x===i&&b0){L.x=M===i?b0.autoIncrement():M}return L},optionsToObject:function(b1){var b0,b3=this.series,L=b3.pointArrayMap||["y"],M=L.length,b4,b2=0,bZ=0;if(typeof b1==="number"||b1===null){b0={y:b1}}else{if(aB(b1)){b0={};if(b1.length>M){b4=typeof b1[0];if(b4==="string"){b0.name=b1[0]}else{if(b4==="number"){b0.x=b1[0]}}b2++}while(bZ<M){b0[L[bZ++]]=b1[b2++]}}else{if(typeof b1==="object"){b0=b1;if(b1.dataLabels){b3._hasPointLabels=true}if(b1.marker){b3._hasPointMarkers=true}}}}return b0},destroy:function(){var L=this,M=L.series,b0=M.chart,bZ=b0.hoverPoints,b1;b0.pointCount--;if(bZ){L.setState();J(bZ,L);if(!bZ.length){b0.hoverPoints=null}}if(L===b0.hoverPoint){L.onMouseOut()}if(L.graphic||L.dataLabel){aW(L);L.destroyElements()}if(L.legendItem){b0.legend.destroyItem(L)}for(b1 in L){L[b1]=null}},destroyElements:function(){var L=this,bZ=["graphic","dataLabel","dataLabelUpper","group","connector","shadowGroup"],b0,M=6;while(M--){b0=bZ[M];if(L[b0]){L[b0]=L[b0].destroy()}}},getLabelConfig:function(){var L=this;return{x:L.category,y:L.y,key:L.name||L.category,series:L.series,point:L,percentage:L.percentage,total:L.total||L.stackTotal}},select:function(b1,M){var L=this,bZ=L.series,b0=bZ.chart;b1=aI(b1,!L.selected);L.firePointEvent(b1?"select":"unselect",{accumulate:M},function(){L.selected=L.options.selected=b1;bZ.options.data[v(L,bZ.data)]=L.options;L.setState(b1&&bh);if(!M){B(b0.getSelectedPoints(),function(b2){if(b2.selected&&b2!==L){b2.selected=b2.options.selected=false;bZ.options.data[v(b2,bZ.data)]=b2.options;b2.setState(af);b2.firePointEvent("unselect")}})}})},onMouseOver:function(b2){var L=this,bZ=L.series,b0=bZ.chart,b1=b0.tooltip,M=b0.hoverPoint;if(M&&M!==L){M.onMouseOut()}L.firePointEvent("mouseOver");if(b1&&(!b1.shared||bZ.noSharedTooltip)){b1.refresh(L,b2)}L.setState(aJ);b0.hoverPoint=L},onMouseOut:function(){var M=this.series.chart,L=M.hoverPoints;if(!L||v(this,L)===-1){this.firePointEvent("mouseOut");this.setState();M.hoverPoint=null}},tooltipFormatter:function(L){var bZ=this.series,M=bZ.tooltipOptions,b1=aI(M.valueDecimals,""),b0=M.valuePrefix||"",b2=M.valueSuffix||"";B(bZ.pointArrayMap||["y"],function(b3){b3="{point."+b3;if(b0||b2){L=L.replace(b3+"}",b0+b3+"}"+b2)}L=L.replace(b3+"}",b3+":,."+b1+"f}")});return f(L,{point:this,series:this.series})},update:function(b6,b5,bZ){var b4=this,b1=b4.series,L=b4.graphic,b2,b0=b1.data,b3=b1.chart,M=b1.options;b5=aI(b5,true);b4.firePointEvent("update",{options:b6},function(){b4.applyOptions(b6);if(bU(b6)){b1.getAttribs();if(L){if(b6.marker&&b6.marker.symbol){b4.graphic=L.destroy()}else{L.attr(b4.pointAttr[b4.state||""])}}}b2=v(b4,b0);b1.xData[b2]=b4.x;b1.yData[b2]=b1.toYData?b1.toYData(b4):b4.y;b1.zData[b2]=b4.z;M.data[b2]=b4.options;b1.isDirty=b1.isDirtyData=true;if(!b1.fixedBox&&b1.hasCartesianSeries){b3.isDirtyBox=true}if(M.legendType==="point"){b3.legend.destroyItem(b4)}if(b5){b3.redraw(bZ)}})},remove:function(b4,b3){var L=this,bZ=L.series,b1=bZ.points,b0=bZ.chart,M,b2=bZ.data;bT(b3,b0);b4=aI(b4,true);L.firePointEvent("remove",null,function(){M=v(L,b2);if(b2.length===b1.length){b1.splice(M,1)}b2.splice(M,1);bZ.options.data.splice(M,1);bZ.xData.splice(M,1);bZ.yData.splice(M,1);bZ.zData.splice(M,1);L.destroy();bZ.isDirty=true;bZ.isDirtyData=true;if(b4){b0.redraw()}})},firePointEvent:function(b2,b0,M){var L=this,b1=this.series,bZ=b1.options;if(bZ.point.events[b2]||(L.options&&L.options.events&&L.options.events[b2])){this.importEvents()}if(b2==="click"&&bZ.allowPointSelect){M=function(b3){L.select(null,b3.ctrlKey||b3.metaKey||b3.shiftKey)}}bk(this,b2,b0,M)},importEvents:function(){if(!this.hasImportedEvents){var L=this,M=aH(L.series.options.point,L.options),b0=M.events,bZ;L.events=b0;for(bZ in b0){u(L,bZ,b0[bZ])}this.hasImportedEvents=true}},setState:function(bZ){var ca=this,M=ca.plotX,cc=ca.plotY,b4=ca.series,cb=b4.options.states,b0=ae[b4.type].marker&&b4.options.marker,b2=b0&&!b0.enabled,b1=b0&&b0.states[bZ],b6=b1&&b1.enabled===false,b9=b4.stateMarkerGraphic,b7=ca.marker||{},b8=b4.chart,b5,b3,L=ca.pointAttr;bZ=bZ||af;if(bZ===ca.state||(ca.selected&&bZ!==bh)||(cb[bZ]&&cb[bZ].enabled===false)||(bZ&&(b6||(b2&&!b1.enabled)))){return}if(ca.graphic){b5=b0&&ca.graphic.symbolName&&L[bZ].r;ca.graphic.attr(aH(L[bZ],b5?{x:M-b5,y:cc-b5,width:2*b5,height:2*b5}:{}))}else{if(bZ&&b1){b5=b1.radius;b3=b7.symbol||b4.symbol;if(b9&&b9.currentSymbol!==b3){b9=b9.destroy()}if(!b9){b4.stateMarkerGraphic=b9=b8.renderer.symbol(b3,M-b5,cc-b5,2*b5,2*b5).attr(L[bZ]).add(b4.markerGroup);b9.currentSymbol=b3}else{b9.attr({x:M-b5,y:cc-b5})}}if(b9){b9[bZ&&b8.isInsidePlot(M,cc)?"show":"hide"]()}}ca.state=bZ}};var a3=function(){};a3.prototype={isCartesian:true,type:"line",pointClass:bq,sorted:true,requireSorting:true,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},colorCounter:0,init:function(b1,L){var b0=this,bZ,M,b2=b1.series;b0.chart=b1;b0.options=L=b0.setOptions(L);b0.linkedSeries=[];b0.bindAxes();bd(b0,{name:L.name,state:af,pointAttr:{},visible:L.visible!==false,selected:L.selected===true});if(aY){L.animation=false}M=L.events;for(bZ in M){u(b0,bZ,M[bZ])}if((M&&M.click)||(L.point&&L.point.events&&L.point.events.click)||L.allowPointSelect){b1.runTrackerClick=true}b0.getColor();b0.getSymbol();b0.setData(L.data,false);if(b0.isCartesian){b1.hasCartesianSeries=true}b2.push(b0);b0._i=b2.length-1;aC(b2,function(b4,b3){return aI(b4.options.index,b4._i)-aI(b3.options.index,b4._i)});B(b2,function(b4,b3){b4.index=b3;b4.name=b4.name||"Series "+(b3+1)})},bindAxes:function(){var M=this,L=M.options,bZ=M.chart,b0;if(M.isCartesian){B(["xAxis","yAxis"],function(b1){B(bZ[b1],function(b2){b0=b2.options;if((L[b1]===b0.index)||(L[b1]!==i&&L[b1]===b0.id)||(L[b1]===i&&b0.index===0)){b2.series.push(M);M[b1]=b2;b2.isDirty=true}});if(!M[b1]){bF(18,true)}})}},autoIncrement:function(){var M=this,L=M.options,bZ=M.xIncrement;bZ=aI(bZ,L.pointStart,0);M.pointInterval=aI(M.pointInterval,L.pointInterval,1);M.xIncrement=bZ+M.pointInterval;return bZ},getSegments:function(){var b0=this,L=-1,M=[],bZ,b2=b0.points,b1=b2.length;if(b1){if(b0.options.connectNulls){bZ=b1;while(bZ--){if(b2[bZ].y===null){b2.splice(bZ,1)}}if(b2.length){M=[b2]}}else{B(b2,function(b3,b4){if(b3.y===null){if(b4>L+1){M.push(b2.slice(L+1,b4))}L=b4}else{if(b4===b1-1){M.push(b2.slice(L+1,b4+1))}}})}}b0.segments=M},setOptions:function(b0){var bZ=this.chart,b2=bZ.options,L=b2.plotOptions,b1=L[this.type],M;this.userOptions=b0;M=aH(b1,L.series,b0);this.tooltipOptions=aH(b2.tooltip,M.tooltip);if(b1.marker===null){delete M.marker}return M},getColor:function(){var M=this.options,b1=this.userOptions,b0=this.chart.options.colors,bZ=this.chart.counters,L,b2;L=M.color||ae[this.type].color;if(!L&&!M.colorByPoint){if(aa(b1._colorIndex)){b2=b1._colorIndex}else{b1._colorIndex=bZ.color;b2=bZ.color++}L=b0[b2]}this.color=L;bZ.wrapColor(b0.length)},getSymbol:function(){var bZ=this,b3=bZ.userOptions,b2=bZ.options.marker,b1=bZ.chart,L=b1.options.symbols,b0=b1.counters,M;bZ.symbol=b2.symbol;if(!bZ.symbol){if(aa(b3._symbolIndex)){M=b3._symbolIndex}else{b3._symbolIndex=b0.symbol;M=b0.symbol++}bZ.symbol=L[M]}if(/^url/.test(bZ.symbol)){b2.radius=0}b0.wrapSymbol(L.length)},drawLegendSymbol:function(b5){var b7=this.options,L=b7.marker,b1,b6=b5.options,M,b0=b6.symbolWidth,b4=this.chart.renderer,bZ=this.legendGroup,b3=b5.baseline-l(b4.fontMetrics(b6.itemStyle.fontSize).b*0.3),b2;if(b7.lineWidth){b2={"stroke-width":b7.lineWidth};if(b7.dashStyle){b2.dashstyle=b7.dashStyle}this.legendLine=b4.path([bl,0,b3,bm,b0,b3]).attr(b2).add(bZ)}if(L&&L.enabled){b1=L.radius;this.legendSymbol=M=b4.symbol(this.symbol,(b0/2)-b1,b3-b1,2*b1,2*b1).add(bZ);M.isMarker=true}},addPoint:function(M,cb,cc,cd){var b3=this,b0=b3.options,cg=b3.data,L=b3.graph,ce=b3.area,b8=b3.chart,bZ=b3.xData,cf=b3.yData,b5=b3.zData,b7=b3.names,b6=(L&&L.shift)||0,b4=b0.data,b9,b2,b1,ca;bT(cd,b8);if(cc){B([L,ce,b3.graphNeg,b3.areaNeg],function(ch){if(ch){ch.shift=b6+1}})}if(ce){ce.isArea=true}cb=aI(cb,true);b9={series:b3};b3.pointClass.prototype.applyOptions.apply(b9,[M]);b1=b9.x;ca=bZ.length;if(b3.requireSorting&&b1<bZ[ca-1]){b2=true;while(ca&&bZ[ca-1]>b1){ca--}}bZ.splice(ca,0,b1);cf.splice(ca,0,b3.toYData?b3.toYData(b9):b9.y);b5.splice(ca,0,b9.z);if(b7){b7[b1]=b9.name}b4.splice(ca,0,M);if(b2){b3.data.splice(ca,0,null);b3.processData()}if(b0.legendType==="point"){b3.generatePoints()}if(cc){if(cg[0]&&cg[0].remove){cg[0].remove(false)}else{cg.shift();bZ.shift();cf.shift();b5.shift();b4.shift()}}b3.isDirty=true;b3.isDirtyData=true;if(cb){b3.getAttribs();b8.redraw()}},setData:function(ch,cc){var b5=this,cg=b5.points,M=b5.options,b9=b5.chart,b6=null,b2=b5.xAxis,b8=b2&&b2.categories&&!b2.categories.length?[]:null,cd;b5.xIncrement=null;b5.pointRange=b2&&b2.categories?1:M.pointRange;b5.colorCounter=0;var b0=[],cf=[],b7=[],b1=ch?ch.length:[],L=aI(M.turboThreshold,1000),cb,ca=b5.pointArrayMap,bZ=ca&&ca.length,b4=!!b5.toYData;if(L&&b1>L){cd=0;while(b6===null&&cd<b1){b6=ch[cd];cd++}if(an(b6)){var b3=aI(M.pointStart,0),ce=aI(M.pointInterval,1);for(cd=0;cd<b1;cd++){b0[cd]=b3;cf[cd]=ch[cd];b3+=ce}b5.xIncrement=b3}else{if(aB(b6)){if(bZ){for(cd=0;cd<b1;cd++){cb=ch[cd];b0[cd]=cb[0];cf[cd]=cb.slice(1,bZ+1)}}else{for(cd=0;cd<b1;cd++){cb=ch[cd];b0[cd]=cb[0];cf[cd]=cb[1]}}}else{bF(12)}}}else{for(cd=0;cd<b1;cd++){if(ch[cd]!==i){cb={series:b5};b5.pointClass.prototype.applyOptions.apply(cb,[ch[cd]]);b0[cd]=cb.x;cf[cd]=b4?b5.toYData(cb):cb.y;b7[cd]=cb.z;if(b8&&cb.name){b8[cb.x]=cb.name}}}}if(bi(cf[0])){bF(14,true)}b5.data=[];b5.options.data=ch;b5.xData=b0;b5.yData=cf;b5.zData=b7;b5.names=b8;cd=(cg&&cg.length)||0;while(cd--){if(cg[cd]&&cg[cd].destroy){cg[cd].destroy()}}if(b2){b2.minRange=b2.userMinRange}b5.isDirty=b5.isDirtyData=b9.isDirtyBox=true;if(aI(cc,true)){b9.redraw(false)}},remove:function(b0,bZ){var L=this,M=L.chart;b0=aI(b0,true);if(!L.isRemoving){L.isRemoving=true;bk(L,"remove",null,function(){L.destroy();M.isDirtyLegend=M.isDirtyBox=true;M.linkSeries();if(b0){M.redraw(bZ)}})}L.isRemoving=false},processData:function(M){var b5=this,cc=b5.xData,ca=b5.yData,b0=cc.length,b6,cb=0,b7,L,b9,bZ=b5.xAxis,b4,cd=b5.options,b2=cd.cropThreshold,b1=b5.isCartesian;if(b1&&!b5.isDirty&&!bZ.isDirty&&!b5.yAxis.isDirty&&!M){return false}if(b1&&b5.sorted&&(!b2||b0>b2||b5.forceCrop)){var b3=bZ.min,b8=bZ.max;if(cc[b0-1]<b3||cc[0]>b8){cc=[];ca=[]}else{if(cc[0]<b3||cc[b0-1]>b8){b6=this.cropData(b5.xData,b5.yData,b3,b8);cc=b6.xData;ca=b6.yData;cb=b6.start;b7=true}}}for(b4=cc.length-1;b4>=0;b4--){L=cc[b4]-cc[b4-1];if(L>0&&(b9===i||L<b9)){b9=L}else{if(L<0&&b5.requireSorting){bF(15)}}}b5.cropped=b7;b5.cropStart=cb;b5.processedXData=cc;b5.processedYData=ca;if(cd.pointRange===null){b5.pointRange=b9||1}b5.closestPointRange=b9},cropData:function(b0,bZ,b1,b3){var L=b0.length,b4=0,M=L,b5=aI(this.cropShoulder,1),b2;for(b2=0;b2<L;b2++){if(b0[b2]>=b1){b4=bX(0,b2-b5);break}}for(;b2<L;b2++){if(b0[b2]>b3){M=b2+b5;break}}return{xData:b0.slice(b4,M),yData:bZ.slice(b4,M),start:b4,end:M}},generatePoints:function(){var b1=this,cc=b1.options,cb=cc.data,b0=b1.data,L,b8=b1.processedXData,b4=b1.processedYData,b3=b1.pointClass,M=b8.length,b7=b1.cropStart||0,ca,b6=b1.hasGroupedData,b5,b9=[],bZ;if(!b0&&!b6){var b2=[];b2.length=cb.length;b0=b1.data=b2}for(bZ=0;bZ<M;bZ++){ca=b7+bZ;if(!b6){if(b0[ca]){b5=b0[ca]}else{if(cb[ca]!==i){b0[ca]=b5=(new b3()).init(b1,cb[ca],b8[bZ])}}b9[bZ]=b5}else{b9[bZ]=(new b3()).init(b1,[b8[bZ]].concat(a7(b4[bZ])))}}if(b0&&(M!==(L=b0.length)||b6)){for(bZ=0;bZ<L;bZ++){if(bZ===b7&&!b6){bZ+=M}if(b0[bZ]){b0[bZ].destroyElements();b0[bZ].plotX=i}}}b1.data=b0;b1.points=b9},setStackedPoints:function(){if(!this.options.stacking||(this.visible!==true&&this.chart.options.chart.ignoreHiddenSeries!==false)){return}var b8=this,b2=b8.processedXData,ce=b8.processedYData,cg=[],cd=ce.length,b4=b8.options,b0=b4.threshold,ca=b4.stack,bZ=b4.stacking,M=b8.stackKey,b7="-"+M,ci=b8.negStacks,L=b8.yAxis,cf=L.stacks,cb=L.oldStacks,b9,b3,b1,ch,cc,b6,b5;for(cc=0;cc<cd;cc++){b6=b2[cc];b5=ce[cc];b9=ci&&b5<b0;ch=b9?b7:M;if(!cf[ch]){cf[ch]={}}if(!cf[ch][b6]){if(cb[ch]&&cb[ch][b6]){cf[ch][b6]=cb[ch][b6];cf[ch][b6].total=null}else{cf[ch][b6]=new aq(L,L.options.stackLabels,b9,b6,ca,bZ)}}b3=cf[ch][b6];b3.points[b8.index]=[b3.cum||0];if(bZ==="percent"){b1=b9?M:b7;if(ci&&cf[b1]&&cf[b1][b6]){b1=cf[b1][b6];b3.total=b1.total=bX(b1.total,b3.total)+e(b5)||0}else{b3.total+=e(b5)||0}}else{b3.total+=b5||0}b3.cum=(b3.cum||0)+(b5||0);b3.points[b8.index].push(b3.cum);cg[cc]=b3.cum}if(bZ==="percent"){L.usePercentage=true}this.stackedYData=cg;L.oldStacks={}},setPercentStacks:function(){var M=this,L=M.stackKey,bZ=M.yAxis.stacks;B([L,"-"+L],function(b3){var b2=M.xData.length,b1,b0,b4,b5;while(b2--){b1=M.xData[b2];b0=bZ[b3]&&bZ[b3][b1];b4=b0&&b0.points[M.index];if(b4){b5=b0.total?100/b0.total:0;b4[0]=Z(b4[0]*b5);b4[1]=Z(b4[1]*b5);M.stackedYData[b2]=b4[1]}}})},getExtremes:function(){var b1=this.xAxis,L=this.yAxis,M=this.processedXData,b9=this.stackedYData||this.processedYData,b8=b9.length,b0=[],b4=0,bZ=b1.getExtremes(),ca=bZ.min,cc=bZ.max,b7,cd,cb,ce,b3,b2,b6,b5;for(b6=0;b6<b8;b6++){b3=M[b6];b2=b9[b6];b7=b2!==null&&b2!==i&&(!L.isLog||(b2.length||b2>0));cd=this.getExtremesFromAll||this.cropped||((M[b6+1]||b3)>=ca&&(M[b6-1]||b3)<=cc);if(b7&&cd){b5=b2.length;if(b5){while(b5--){if(b2[b5]!==null){b0[b4++]=b2[b5]}}}else{b0[b4++]=b2}}}this.dataMin=aI(cb,bu(b0));this.dataMax=aI(ce,aE(b0))},translate:function(){if(!this.processedXData){this.processData()}this.generatePoints();var b6=this,b1=b6.options,bZ=b1.stacking,b5=b6.xAxis,b7=b5.categories,M=b6.yAxis,cb=b6.points,b4=cb.length,cg=!!b6.modifyValue,cc,b8=b1.pointPlacement,cd=b8==="between"||an(b8),b2=b1.threshold;for(cc=0;cc<b4;cc++){var b9=cb[cc],ca=b9.x,ce=b9.y,L=b9.low,b3=M.stacks[(b6.negStacks&&ce<b2?"-":"")+b6.stackKey],cf,b0;if(M.isLog&&ce<=0){b9.y=ce=null}b9.plotX=b5.translate(ca,0,0,0,1,b8,this.type==="flags");if(bZ&&b6.visible&&b3&&b3[ca]){cf=b3[ca];b0=cf.points[b6.index];L=b0[0];ce=b0[1];if(L===0){L=aI(b2,M.min)}if(M.isLog&&L<=0){L=null}b9.percentage=bZ==="percent"&&ce;b9.total=b9.stackTotal=cf.total;b9.stackY=ce;cf.setOffset(b6.pointXOffset||0,b6.barW||0)}b9.yBottom=aa(L)?M.translate(L,0,1,0,1):null;if(cg){ce=b6.modifyValue(ce,b9)}b9.plotY=(typeof ce==="number"&&ce!==Infinity)?M.translate(ce,0,1,0,1):i;b9.clientX=cd?b5.translate(ca,0,0,0,1):b9.plotX;b9.negative=b9.y<(b2||0);b9.category=b7&&b7[b9.x]!==i?b7[b9.x]:b9.x}b6.getSegments()},setTooltipPoints:function(b1){var b3=this,ca=[],b8,b6,b0,bZ=b3.xAxis,b5=bZ&&bZ.getExtremes(),b4=bZ?(bZ.tooltipLen||bZ.len):b3.chart.plotSizeX,b9,L,b7,b2,M=[];if(b3.options.enableMouseTracking===false){return}if(b1){b3.tooltipPoints=null}B(b3.segments||b3.points,function(cb){ca=ca.concat(cb)});if(bZ&&bZ.reversed){ca=ca.reverse()}if(b3.orderTooltipPoints){b3.orderTooltipPoints(ca)}b8=ca.length;for(b2=0;b2<b8;b2++){b9=ca[b2];L=b9.x;if(L>=b5.min&&L<=b5.max){b7=ca[b2+1];b6=b0===i?0:b0+1;b0=ca[b2+1]?ah(bX(0,be((b9.clientX+(b7?(b7.wrappedClientX||b7.clientX):b4))/2)),b4):b4;while(b6>=0&&b6<=b0){M[b6++]=b9}}}b3.tooltipPoints=M},tooltipHeaderFormatter:function(b6){var b2=this,bZ=b2.tooltipOptions,b1=bZ.xDateFormat,b3=bZ.dateTimeLabelFormats,L=b2.xAxis,b5=L&&L.options.type==="datetime",b0=bZ.headerFormat,b4=L&&L.closestPointRange,M;if(b5&&!b1){if(b4){for(M in aV){if(aV[M]>=b4){b1=b3[M];break}}}else{b1=b3.day}}if(b5&&b1&&an(b6.key)){b0=b0.replace("{point.key}","{point.key:"+b1+"}")}return f(b0,{point:b6,series:b2})},onMouseOver:function(){var M=this,bZ=M.chart,L=bZ.hoverSeries;if(L&&L!==M){L.onMouseOut()}if(M.options.events.mouseOver){bk(M,"mouseOver")}M.setState(aJ);bZ.hoverSeries=M},onMouseOut:function(){var bZ=this,M=bZ.options,b0=bZ.chart,b1=b0.tooltip,L=b0.hoverPoint;if(L){L.onMouseOut()}if(bZ&&M.events.mouseOut){bk(bZ,"mouseOut")}if(b1&&!M.stickyTracking&&(!b1.shared||bZ.noSharedTooltip)){b1.hide()}bZ.setState();b0.hoverSeries=null},animate:function(b6){var b3=this,b5=b3.chart,b4=b5.renderer,b2,b1,b0=b3.options.animation,L=b5.clipBox,bZ=b5.inverted,M;if(b0&&!bU(b0)){b0=ae[b3.type].animation}M="_sharedClip"+b0.duration+b0.easing;if(b6){b2=b5[M];b1=b5[M+"m"];if(!b2){b5[M]=b2=b4.clipRect(bd(L,{width:0}));b5[M+"m"]=b1=b4.clipRect(-99,bZ?-b5.plotLeft:-b5.plotTop,99,bZ?b5.chartWidth:b5.chartHeight)}b3.group.clip(b2);b3.markerGroup.clip(b1);b3.sharedClipKey=M}else{b2=b5[M];if(b2){b2.animate({width:b5.plotSizeX},b0);b5[M+"m"].animate({width:b5.plotSizeX+99},b0)}b3.animate=null;b3.animationTimeout=setTimeout(function(){b3.afterAnimate()},b0.duration)}},afterAnimate:function(){var L=this.chart,bZ=this.sharedClipKey,M=this.group;if(M&&this.options.clip!==false){M.clip(L.clipRect);this.markerGroup.clip()}setTimeout(function(){if(bZ&&L[bZ]){L[bZ]=L[bZ].destroy();L[bZ+"m"]=L[bZ+"m"].destroy()}},100)},drawPoints:function(){var b3=this,b5,cc=b3.points,b7=b3.chart,b0,L,cd,b9,bZ,ca,cb,b6,M=b3.options,ce=M.marker,b8,b2,b1,b4=b3.markerGroup;if(ce.enabled||b3._hasPointMarkers){cd=cc.length;while(cd--){b9=cc[cd];b0=be(b9.plotX);L=b9.plotY;b6=b9.graphic;b8=b9.marker||{};b2=(ce.enabled&&b8.enabled===i)||b8.enabled;b1=b7.isInsidePlot(l(b0),L,b7.inverted);if(b2&&L!==i&&!isNaN(L)&&b9.y!==null){b5=b9.pointAttr[b9.selected?bh:af];bZ=b5.r;ca=aI(b8.symbol,b3.symbol);cb=ca.indexOf("url")===0;if(b6){b6.attr({visibility:b1?(bO?"inherit":ag):ac}).animate(bd({x:b0-bZ,y:L-bZ},b6.symbolName?{width:2*bZ,height:2*bZ}:{}))}else{if(b1&&(bZ>0||cb)){b9.graphic=b6=b7.renderer.symbol(ca,b0-bZ,L-bZ,2*bZ,2*bZ).attr(b5).add(b4)}}}else{if(b6){b9.graphic=b6.destroy()}}}}},convertAttribs:function(bZ,M,b4,b3){var b1=this.pointAttrToOptions,L,b0,b2={};bZ=bZ||{};M=M||{};b4=b4||{};b3=b3||{};for(L in b1){b0=b1[L];b2[L]=aI(bZ[b0],M[L],b4[L],b3[L])}return b2},getAttribs:function(){var b2=this,b1=b2.options,bZ=ae[b2.type].marker?b1.marker:b1,L=bZ.states,b4=L[aJ],cd,M=b2.color,cc={stroke:M,fill:M},b7=b2.points||[],b8,b5,b9=[],b3,b6=b2.pointAttrToOptions,cb,ca=b1.negativeColor,b0=bZ.lineColor,ce;if(b1.marker){b4.radius=b4.radius||bZ.radius+2;b4.lineWidth=b4.lineWidth||bZ.lineWidth+1}else{b4.color=b4.color||bC(b4.color||M).brighten(b4.brightness).get()}b9[af]=b2.convertAttribs(bZ,cc);B([aJ,bh],function(cf){b9[cf]=b2.convertAttribs(L[cf],b9[af])});b2.pointAttr=b9;b8=b7.length;while(b8--){b5=b7[b8];bZ=(b5.options&&b5.options.marker)||b5.options;if(bZ&&bZ.enabled===false){bZ.radius=0}if(b5.negative&&ca){b5.color=b5.fillColor=ca}cb=b1.colorByPoint||b5.color;if(b5.options){for(ce in b6){if(aa(bZ[b6[ce]])){cb=true}}}if(cb){bZ=bZ||{};b3=[];L=bZ.states||{};cd=L[aJ]=L[aJ]||{};if(!b1.marker){cd.color=bC(cd.color||b5.color).brighten(cd.brightness||b4.brightness).get()}b3[af]=b2.convertAttribs(bd({color:b5.color,fillColor:b5.color,lineColor:b0===null?b5.color:i},bZ),b9[af]);b3[aJ]=b2.convertAttribs(L[aJ],b9[aJ],b3[af]);b3[bh]=b2.convertAttribs(L[bh],b9[bh],b3[af])}else{b3=b9}b5.pointAttr=b3}},update:function(b1,b3){var M=this.chart,L=this.userOptions,b0=this.type,bZ=a[b0].prototype,b2;b1=aH(L,{animation:false,index:this.index,pointStart:this.xData[0]},{data:this.options.data},b1);this.remove(false);for(b2 in bZ){if(bZ.hasOwnProperty(b2)){this[b2]=i}}bd(this,a[b1.type||b0].prototype);this.init(M,b1);if(aI(b3,true)){M.redraw(false)}},destroy:function(){var b0=this,b2=b0.chart,b5=/AppleWebKit\/533/.test(p),b3,b1,bZ=b0.data||[],b4,L,M;bk(b0,"destroy");aW(b0);B(["xAxis","yAxis"],function(b6){M=b0[b6];if(M){J(M.series,b0);M.isDirty=M.forceRedraw=true;M.stacks={}}});if(b0.legendItem){b0.chart.legend.destroyItem(b0)}b1=bZ.length;while(b1--){b4=bZ[b1];if(b4&&b4.destroy){b4.destroy()}}b0.points=null;clearTimeout(b0.animationTimeout);B(["area","graph","dataLabelsGroup","group","markerGroup","tracker","graphNeg","areaNeg","posClip","negClip"],function(b6){if(b0[b6]){b3=b5&&b6==="group"?"hide":"destroy";b0[b6][b3]()}});if(b2.hoverSeries===b0){b2.hoverSeries=null}J(b2.series,b0);for(L in b0){delete b0[L]}},drawDataLabels:function(){var bZ=this,L=bZ.options,M=L.dataLabels,b1=bZ.points,b0,b4,b3,b2;if(M.enabled||bZ._hasPointLabels){if(bZ.dlProcessOptions){bZ.dlProcessOptions(M)}b2=bZ.plotGroup("dataLabelsGroup","data-labels",bZ.visible?ag:ac,M.zIndex||6);b4=M;B(b1,function(cb){var b8,cd=cb.dataLabel,ca,b9,b5,cc,b6=cb.connector,b7=true;b0=cb.options&&cb.options.dataLabels;b8=aI(b0&&b0.enabled,b4.enabled);if(cd&&!b8){cb.dataLabel=cd.destroy()}else{if(b8){M=aH(b4,b0);cc=M.rotation;ca=cb.getLabelConfig();b3=M.format?f(M.format,ca):M.formatter.call(ca,M);M.style.color=aI(M.color,M.style.color,bZ.color,"black");if(cd){if(aa(b3)){cd.attr({text:b3});b7=false}else{cb.dataLabel=cd=cd.destroy();if(b6){cb.connector=b6.destroy()}}}else{if(aa(b3)){b9={fill:M.backgroundColor,stroke:M.borderColor,"stroke-width":M.borderWidth,r:M.borderRadius||0,rotation:cc,padding:M.padding,zIndex:1};for(b5 in b9){if(b9[b5]===i){delete b9[b5]}}cd=cb.dataLabel=bZ.chart.renderer[cc?"text":"label"](b3,0,-999,null,null,null,M.useHTML).attr(b9).css(M.style).add(b2).shadow(M.shadow)}}if(cd){bZ.alignDataLabel(cb,cd,M,null,b7)}}}})}},alignDataLabel:function(b4,b7,b8,b2,b1){var b3=this.chart,bZ=b3.inverted,L=aI(b4.plotX,-999),b6=aI(b4.plotY,-999),b5=b7.getBBox(),M=this.visible&&b3.isInsidePlot(b4.plotX,b4.plotY,bZ),b0;if(M){b2=bd({x:bZ?b3.plotWidth-b6:L,y:l(bZ?b3.plotHeight-L:b6),width:0,height:0},b2);bd(b8,{width:b5.width,height:b5.height});if(b8.rotation){b0={align:b8.align,x:b2.x+b8.x+b2.width/2,y:b2.y+b8.y+b2.height/2};b7[b1?"attr":"animate"](b0)}else{b7.align(b8,null,b2);b0=b7.alignAttr;if(aI(b8.overflow,"justify")==="justify"){this.justifyDataLabel(b7,b8,b0,b5,b2,b1)}else{if(aI(b8.crop,true)){M=b3.isInsidePlot(b0.x,b0.y)&&b3.isInsidePlot(b0.x+b5.width,b0.y+b5.height)}}}}if(!M){b7.attr({y:-999})}},justifyDataLabel:function(b6,b7,b0,b5,b3,b1){var b4=this.chart,b2=b7.align,M=b7.verticalAlign,L,bZ;L=b0.x;if(L<0){if(b2==="right"){b7.align="left"}else{b7.x=-L}bZ=true}L=b0.x+b5.width;if(L>b4.plotWidth){if(b2==="left"){b7.align="right"}else{b7.x=b4.plotWidth-L}bZ=true}L=b0.y;if(L<0){if(M==="bottom"){b7.verticalAlign="top"}else{b7.y=-L}bZ=true}L=b0.y+b5.height;if(L>b4.plotHeight){if(M==="top"){b7.verticalAlign="bottom"}else{b7.y=b4.plotHeight-L}bZ=true}if(bZ){b6.placed=!b1;b6.align(b7,null,b3)}},getSegmentPath:function(b0){var M=this,L=[],bZ=M.options.step;B(b0,function(b1,b4){var b3=b1.plotX,b2=b1.plotY,b5;if(M.getPointSpline){L.push.apply(L,M.getPointSpline(b0,b1,b4))}else{L.push(b4?bm:bl);if(bZ&&b4){b5=b0[b4-1];if(bZ==="right"){L.push(b5.plotX,b2)}else{if(bZ==="center"){L.push((b5.plotX+b3)/2,b5.plotY,(b5.plotX+b3)/2,b2)}else{L.push(b3,b5.plotY)}}}L.push(b1.plotX,b1.plotY)}});return L},getGraphPath:function(){var bZ=this,b0=[],L,M=[];B(bZ.segments,function(b1){L=bZ.getSegmentPath(b1);if(b1.length>1){b0=b0.concat(L)}else{M.push(b1[0])}});bZ.singlePoints=M;bZ.graphPath=b0;return b0},drawGraph:function(){var bZ=this,M=this.options,b0=[["graph",M.lineColor||this.color]],L=M.lineWidth,b2=M.dashStyle,b3=this.getGraphPath(),b1=M.negativeColor;if(b1){b0.push(["graphNeg",b1])}B(b0,function(b8,b4){var b7=b8[0],b5=bZ[b7],b6;if(b5){aQ(b5);b5.animate({d:b3})}else{if(L&&b3.length){b6={stroke:b8[1],"stroke-width":L,zIndex:1};if(b2){b6.dashstyle=b2}else{b6["stroke-linecap"]=b6["stroke-linejoin"]="round"}bZ[b7]=bZ.chart.renderer.path(b3).attr(b6).add(bZ.group).shadow(!b4&&M.shadow)}}})},clipNeg:function(){var cd=this.options,b6=this.chart,b5=b6.renderer,b2=cd.negativeColor||cd.negativeFillColor,cb,b9,b4,cc=this.graph,M=this.area,b1=this.posClip,bZ=this.negClip,b3=b6.chartWidth,b0=b6.chartHeight,b8=bX(b3,b0),L=this.yAxis,b7,ca;if(b2&&(cc||M)){cb=l(L.toPixels(cd.threshold||0,true));b7={x:0,y:0,width:b8,height:cb};ca={x:0,y:cb,width:b8,height:b8};if(b6.inverted){b7.height=ca.y=b6.plotWidth-cb;if(b5.isVML){b7={x:b6.plotWidth-cb-b6.plotLeft,y:0,width:b3,height:b0};ca={x:cb+b6.plotLeft-b3,y:0,width:b6.plotLeft+cb,height:b3}}}if(L.reversed){b9=ca;b4=b7}else{b9=b7;b4=ca}if(b1){b1.animate(b9);bZ.animate(b4)}else{this.posClip=b1=b5.clipRect(b9);this.negClip=bZ=b5.clipRect(b4);if(cc&&this.graphNeg){cc.clip(b1);this.graphNeg.clip(bZ)}if(M){M.clip(b1);this.areaNeg.clip(bZ)}}}},invertGroups:function(){var L=this,M=L.chart;if(!L.xAxis){return}function bZ(){var b0={width:L.yAxis.len,height:L.xAxis.len};B(["group","markerGroup"],function(b1){if(L[b1]){L[b1].attr(b0).invert()}})}u(M,"resize",bZ);u(L,"destroy",function(){aW(M,"resize",bZ)});bZ();L.invertGroups=bZ},plotGroup:function(b3,bZ,M,b2,b0){var b1=this[b3],L=!b1;if(L){this[b3]=b1=this.chart.renderer.g(bZ).attr({visibility:M,zIndex:b2||0.1}).add(b0)}b1[L?"attr":"animate"](this.getPlotBox());return b1},getPlotBox:function(){return{translateX:this.xAxis?this.xAxis.left:this.chart.plotLeft,translateY:this.yAxis?this.yAxis.top:this.chart.plotTop,scaleX:1,scaleY:1}},render:function(){var bZ=this,b1=bZ.chart,b4,b6=bZ.options,M=b6.animation,b5=M&&!!bZ.animate&&b1.renderer.isSVG,L=bZ.visible?ag:ac,b2=b6.zIndex,b0=bZ.hasRendered,b3=b1.seriesGroup;b4=bZ.plotGroup("group","series",L,b2,b3);bZ.markerGroup=bZ.plotGroup("markerGroup","markers",L,b2,b3);if(b5){bZ.animate(true)}bZ.getAttribs();b4.inverted=bZ.isCartesian?b1.inverted:false;if(bZ.drawGraph){bZ.drawGraph();bZ.clipNeg()}bZ.drawDataLabels();bZ.drawPoints();if(bZ.options.enableMouseTracking!==false){bZ.drawTracker()}if(b1.inverted){bZ.invertGroups()}if(b6.clip!==false&&!bZ.sharedClipKey&&!b0){b4.clip(b1.clipRect)}if(b5){bZ.animate()}else{if(!b0){bZ.afterAnimate()}}bZ.isDirty=bZ.isDirtyData=false;bZ.hasRendered=true},redraw:function(){var bZ=this,b0=bZ.chart,L=bZ.isDirtyData,b2=bZ.group,b1=bZ.xAxis,M=bZ.yAxis;if(b2){if(b0.inverted){b2.attr({width:b0.plotWidth,height:b0.plotHeight})}b2.animate({translateX:aI(b1&&b1.left,b0.plotLeft),translateY:aI(M&&M.top,b0.plotTop)})}bZ.translate();bZ.setTooltipPoints(true);bZ.render();if(L){bk(bZ,"updatedData")}},setState:function(b2){var bZ=this,M=bZ.options,b1=bZ.graph,b0=bZ.graphNeg,b3=M.states,L=M.lineWidth,b4;b2=b2||af;if(bZ.state!==b2){bZ.state=b2;if(b3[b2]&&b3[b2].enabled===false){return}if(b2){L=b3[b2].lineWidth||L+1}if(b1&&!b1.dashstyle){b4={"stroke-width":L};b1.attr(b4);if(b0){b0.attr(b4)}}}},setVisible:function(b2,b4){var b0=this,b1=b0.chart,M=b0.legendItem,L,b3=b1.options.chart.ignoreHiddenSeries,bZ=b0.visible;b0.visible=b2=b0.userOptions.visible=b2===i?!bZ:b2;L=b2?"show":"hide";B(["group","dataLabelsGroup","markerGroup","tracker"],function(b5){if(b0[b5]){b0[b5][L]()}});if(b1.hoverSeries===b0){b0.onMouseOut()}if(M){b1.legend.colorizeItem(b0,b2)}b0.isDirty=true;if(b0.options.stacking){B(b1.series,function(b5){if(b5.options.stacking&&b5.visible){b5.isDirty=true}})}B(b0.linkedSeries,function(b5){b5.setVisible(b2,false)});if(b3){b1.isDirtyBox=true}if(b4!==false){b1.redraw()}bk(b0,L)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(M){var L=this;L.selected=M=(M===i)?!L.selected:M;if(L.checkbox){L.checkbox.checked=M}bk(L,M?"select":"unselect")},drawTracker:function(){var b3=this,cc=b3.options,cb=cc.trackByArea,M=[].concat(cb?b3.areaPath:b3.graphPath),b8=M.length,b7=b3.chart,L=b7.pointer,b6=b7.renderer,bZ=b7.options.tooltip.snap,b9=b3.tracker,ca=cc.cursor,b5=ca&&{cursor:ca},b2=b3.singlePoints,b0,b1,b4=function(){if(b7.hoverSeries!==b3){b3.onMouseOver()}};if(b8&&!cb){b1=b8+1;while(b1--){if(M[b1]===bl){M.splice(b1+1,0,M[b1+1]-bZ,M[b1+2],bm)}if((b1&&M[b1]===bl)||b1===b8){M.splice(b1,0,bm,M[b1-2]+bZ,M[b1-1])}}}for(b1=0;b1<b2.length;b1++){b0=b2[b1];M.push(bl,b0.plotX-bZ,b0.plotY,bm,b0.plotX+bZ,b0.plotY)}if(b9){b9.attr({d:M})}else{b3.tracker=b6.path(M).attr({"stroke-linejoin":"round",visibility:b3.visible?ag:ac,stroke:bR,fill:cb?bR:w,"stroke-width":cc.lineWidth+(cb?0:2*bZ),zIndex:2}).add(b3.group);B([b3.tracker,b3.markerGroup],function(cd){cd.addClass(aZ+"tracker").on("mouseover",b4).on("mouseout",function(ce){L.onTrackerMouseOut(ce)}).css(b5);if(A){cd.on("touchstart",b4)}})}}};var P=ba(a3);a.line=P;ae.area=aH(aL,{threshold:0});var ax=ba(a3,{type:"area",getSegments:function(){var b3=[],b4=[],b9=[],b0=this.xAxis,bZ=this.yAxis,b6=bZ.stacks[this.stackKey],b5={},M,ca,b8=this.points,L=this.options.connectNulls,b1,b2,b7;if(this.options.stacking&&!this.cropped){for(b2=0;b2<b8.length;b2++){b5[b8[b2].x]=b8[b2]}for(b7 in b6){b9.push(+b7)}b9.sort(function(cc,cb){return cc-cb});B(b9,function(cb){if(L&&(!b5[cb]||b5[cb].y===null)){return}else{if(b5[cb]){b4.push(b5[cb])}else{M=b0.translate(cb);b1=b6[cb].percent?(b6[cb].total?b6[cb].cum*100/b6[cb].total:0):b6[cb].cum;ca=bZ.toPixels(b1,true);b4.push({y:null,plotX:M,clientX:M,plotY:ca,yBottom:ca,onMouseOver:h})}}});if(b4.length){b3.push(b4)}}else{a3.prototype.getSegments.call(this);b3=this.segments}this.segments=b3},getSegmentPath:function(b2){var M=a3.prototype.getSegmentPath.call(this,b2),b4=[].concat(M),b1,b0=this.options,bZ=M.length,b3=this.yAxis.getThreshold(b0.threshold),L;if(bZ===3){b4.push(bm,M[1],M[2])}if(b0.stacking&&!this.closedStacks){for(b1=b2.length-1;b1>=0;b1--){L=aI(b2[b1].yBottom,b3);if(b1<b2.length-1&&b0.step){b4.push(b2[b1+1].plotX,L)}b4.push(b2[b1].plotX,L)}}else{this.closeSegment(b4,b2,b3)}this.areaPath=this.areaPath.concat(b4);return M},closeSegment:function(M,L,bZ){M.push(bm,L[L.length-1].plotX,bZ,bm,L[0].plotX,bZ)},drawGraph:function(){this.areaPath=[];a3.prototype.drawGraph.apply(this);var bZ=this,M=this.areaPath,L=this.options,b2=L.negativeColor,b1=L.negativeFillColor,b0=[["area",this.color,L.fillColor]];if(b2||b1){b0.push(["areaNeg",b2,b1])}B(b0,function(b5){var b3=b5[0],b4=bZ[b3];if(b4){b4.animate({d:M})}else{bZ[b3]=bZ.chart.renderer.path(M).attr({fill:aI(b5[2],bC(b5[1]).setOpacity(aI(L.fillOpacity,0.75)).get()),zIndex:0}).add(bZ.group)}})},drawLegendSymbol:function(L,M){M.legendSymbol=this.chart.renderer.rect(0,L.baseline-11,L.options.symbolWidth,12,2).attr({zIndex:3}).add(M.legendGroup)}});a.area=ax;ae.spline=aH(aL);var b=ba(a3,{type:"spline",getPointSpline:function(M,ca,cb){var b8=1.5,L=b8+1,b1=ca.plotX,bZ=ca.plotY,b0=M[cb-1],cc=M[cb+1],b5,b4,b7,b6,cf;if(b0&&cc){var b3=b0.plotX,b2=b0.plotY,ce=cc.plotX,cd=cc.plotY,b9;b5=(b8*b1+b3)/L;b4=(b8*bZ+b2)/L;b7=(b8*b1+ce)/L;b6=(b8*bZ+cd)/L;b9=((b6-b4)*(b7-b1))/(b7-b5)+bZ-b6;b4+=b9;b6+=b9;if(b4>b2&&b4>bZ){b4=bX(b2,bZ);b6=2*bZ-b4}else{if(b4<b2&&b4<bZ){b4=ah(b2,bZ);b6=2*bZ-b4}}if(b6>cd&&b6>bZ){b6=bX(cd,bZ);b4=2*bZ-b6}else{if(b6<cd&&b6<bZ){b6=ah(cd,bZ);b4=2*bZ-b6}}ca.rightContX=b7;ca.rightContY=b6}if(!cb){cf=[bl,b1,bZ]}else{cf=["C",b0.rightContX||b0.plotX,b0.rightContY||b0.plotY,b5||b1,b4||bZ,b1,bZ];b0.rightContX=b0.rightContY=null}return cf}});a.spline=b;ae.areaspline=aH(ae.area);var aT=ax.prototype,s=ba(b,{type:"areaspline",closedStacks:true,getSegmentPath:aT.getSegmentPath,closeSegment:aT.closeSegment,drawGraph:aT.drawGraph,drawLegendSymbol:aT.drawLegendSymbol});a.areaspline=s;ae.column=aH(aL,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:false,threshold:0});var g=ba(a3,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},cropShoulder:0,trackerGroups:["group","dataLabelsGroup"],negStacks:true,init:function(){a3.prototype.init.apply(this,arguments);var L=this,M=L.chart;if(M.hasRendered){B(M.series,function(bZ){if(bZ.type===L.type){bZ.isDirty=true}})}},getColumnMetrics:function(){var b5=this,b0=b5.options,b4=b5.xAxis,L=b5.yAxis,M=b4.reversed,bZ,ce={},cc,cd=0;if(b0.grouping===false){cd=1}else{B(b5.chart.series,function(cg){var cf=cg.options,ch=cg.yAxis;if(cg.type===b5.type&&cg.visible&&L.len===ch.len&&L.pos===ch.pos){if(cf.stacking){bZ=cg.stackKey;if(ce[bZ]===i){ce[bZ]=cd++}cc=ce[bZ]}else{if(cf.grouping!==false){cc=cd++}}cg.columnIndex=cc}})}var b1=ah(e(b4.transA)*(b4.ordinalSlope||b0.pointRange||b4.closestPointRange||1),b4.len),ca=b1*b0.groupPadding,b6=b1-2*ca,b9=b6/cd,b8=b0.pointWidth,b3=aa(b8)?(b9-b8)/2:b9*b0.pointPadding,b2=aI(b8,b9-2*b3),b7=(M?cd-(b5.columnIndex||0):b5.columnIndex)||0,cb=b3+(ca+b7*b9-(b1/2))*(M?-1:1);return(b5.columnMetrics={width:b2,offset:cb})},translate:function(){var b3=this,b6=b3.chart,ca=b3.options,L=ca.borderWidth,M=b3.yAxis,b5=ca.threshold,b9=b3.translatedThreshold=M.getThreshold(b5),bZ=aI(ca.minPointLength,5),b7=b3.getColumnMetrics(),b2=b7.width,b8=b3.barW=av(bX(b2,1+2*L)),b1=b3.pointXOffset=b7.offset,b0=-(L%2?0.5:0),b4=L%2?0.5:1;if(b6.renderer.isVML&&b6.inverted){b4+=1}a3.prototype.translate.apply(b3);B(b3.points,function(ch){var ce=aI(ch.yBottom,b9),cl=ah(bX(-999-ce,ch.plotY),M.len+999+ce),cb=ch.plotX+b1,cd=b8,ck=ah(cl,ce),ci,cc,cj,cg,cf=bX(cl,ce)-ck;if(e(cf)<bZ){if(bZ){cf=bZ;ck=l(e(ck-b9)>bZ?ce-bZ:b9-(M.translate(ch.y,0,1,0,1)<=b9?bZ:0))}}ch.barX=cb;ch.pointWidth=b2;cg=e(cb)<0.5;ci=l(cb+cd)+b0;cb=l(cb)+b0;cd=ci-cb;cj=e(ck)<0.5;cc=l(ck+cf)+b4;ck=l(ck)+b4;cf=cc-ck;if(cg){cb+=1;cd-=1}if(cj){ck-=1;cf+=1}ch.shapeType="rect";ch.shapeArgs={x:cb,y:ck,width:cd,height:cf}})},getSymbol:h,drawLegendSymbol:ax.prototype.drawLegendSymbol,drawGraph:h,drawPoints:function(){var bZ=this,L=bZ.options,b0=bZ.chart.renderer,M;B(bZ.points,function(b1){var b2=b1.plotY,b3=b1.graphic;if(b2!==i&&!isNaN(b2)&&b1.y!==null){M=b1.shapeArgs;if(b3){aQ(b3);b3.animate(aH(M))}else{b1.graphic=b3=b0[b1.shapeType](M).attr(b1.pointAttr[b1.selected?bh:af]).add(bZ.group).shadow(L.shadow,null,L.stacking&&!L.borderRadius)}}else{if(b3){b1.graphic=b3.destroy()}}})},drawTracker:function(){var M=this,bZ=M.chart,b2=bZ.pointer,b1=M.options.cursor,L=b1&&{cursor:b1},b0=function(b5){var b4=b5.target,b3;if(bZ.hoverSeries!==M){M.onMouseOver()}while(b4&&!b3){b3=b4.point;b4=b4.parentNode}if(b3!==i&&b3!==bZ.hoverPoint){b3.onMouseOver(b5)}};B(M.points,function(b3){if(b3.graphic){b3.graphic.element.point=b3}if(b3.dataLabel){b3.dataLabel.element.point=b3}});if(!M._hasTracking){B(M.trackerGroups,function(b3){if(M[b3]){M[b3].addClass(aZ+"tracker").on("mouseover",b0).on("mouseout",function(b4){b2.onTrackerMouseOut(b4)}).css(L);if(A){M[b3].on("touchstart",b0)}}});M._hasTracking=true}},alignDataLabel:function(b4,b5,b6,b0,bZ){var b1=this.chart,M=b1.inverted,b2=b4.dlBox||b4.shapeArgs,b3=b4.below||(b4.plotY>aI(this.translatedThreshold,b1.plotSizeY)),L=aI(b6.inside,!!this.options.stacking);if(b2){b0=aH(b2);if(M){b0={x:b1.plotWidth-b0.y-b0.height,y:b1.plotHeight-b0.x-b0.width,width:b0.height,height:b0.width}}if(!L){if(M){b0.x+=b3?0:b0.width;b0.width=0}else{b0.y+=b3?b0.height:0;b0.height=0}}}b6.align=aI(b6.align,!M||L?"center":b3?"right":"left");b6.verticalAlign=aI(b6.verticalAlign,M||L?"middle":b3?"top":"bottom");a3.prototype.alignDataLabel.call(this,b4,b5,b6,b0,bZ)},animate:function(b3){var b1=this,bZ=this.yAxis,b0=b1.options,M=this.chart.inverted,L={},b2;if(bO){if(b3){L.scaleY=0.001;b2=ah(bZ.pos+bZ.len,bX(bZ.pos,bZ.toPixels(b0.threshold)));if(M){L.translateX=b2-bZ.len}else{L.translateY=b2}b1.group.attr(L)}else{L.scaleY=1;L[M?"translateX":"translateY"]=bZ.pos;b1.group.animate(L,b1.options.animation);b1.animate=null}}},remove:function(){var L=this,M=L.chart;if(M.hasRendered){B(M.series,function(bZ){if(bZ.type===L.type){bZ.isDirty=true}})}a3.prototype.remove.apply(L,arguments)}});a.column=g;ae.bar=aH(ae.column);var bj=ba(g,{type:"bar",inverted:true});a.bar=bj;ae.scatter=aH(aL,{lineWidth:0,tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>",followPointer:true},stickyTracking:false});var br=ba(a3,{type:"scatter",sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["markerGroup"],drawTracker:g.prototype.drawTracker,setTooltipPoints:h});a.scatter=br;ae.pie=aH(aL,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:false,colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name}},ignoreHiddenPoint:true,legendType:"point",marker:null,size:null,showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}},stickyTracking:false,tooltip:{followPointer:true}});var aO=ba(bq,{init:function(){bq.prototype.init.apply(this,arguments);var L=this,M;if(L.y<0){L.y=null}bd(L,{visible:L.visible!==false,name:aI(L.name,"Slice")});M=function(bZ){L.slice(bZ.type==="select")};u(L,"select",M);u(L,"unselect",M);return L},setVisible:function(b0){var L=this,M=L.series,bZ=M.chart,b1;L.visible=L.options.visible=b0=b0===i?!L.visible:b0;M.options.data[v(L,M.data)]=L.options;b1=b0?"show":"hide";B(["graphic","dataLabel","connector","shadowGroup"],function(b2){if(L[b2]){L[b2][b1]()}});if(L.legendItem){bZ.legend.colorizeItem(L,b0)}if(!M.isDirty&&M.options.ignoreHiddenPoint){M.isDirty=true;bZ.redraw()}},slice:function(M,b3,b1){var L=this,bZ=L.series,b0=bZ.chart,b2;bT(b1,b0);b3=aI(b3,true);L.sliced=L.options.sliced=M=aa(M)?M:!L.sliced;bZ.options.data[v(L,bZ.data)]=L.options;b2=M?L.slicedTranslation:{translateX:0,translateY:0};L.graphic.animate(b2);if(L.shadowGroup){L.shadowGroup.animate(b2)}}});var m={type:"pie",isCartesian:false,pointClass:aO,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","dataLabelsGroup"],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:h,animate:function(b0){var M=this,bZ=M.points,L=M.startAngleRad;if(!b0){B(bZ,function(b1){var b3=b1.graphic,b2=b1.shapeArgs;if(b3){b3.attr({r:M.center[3]/2,start:L,end:L});b3.animate({r:b2.r,start:b2.start,end:b2.end},M.options.animation)}});M.animate=null}},setData:function(L,M){a3.prototype.setData.call(this,L,false);this.processData();this.generatePoints();if(aI(M,true)){this.chart.redraw()}},generatePoints:function(){var b0,b2=0,b1,bZ,M,L=this.options.ignoreHiddenPoint;a3.prototype.generatePoints.call(this);b1=this.points;bZ=b1.length;for(b0=0;b0<bZ;b0++){M=b1[b0];b2+=(L&&!M.visible)?0:M.y}this.total=b2;for(b0=0;b0<bZ;b0++){M=b1[b0];M.percentage=b2>0?(M.y/b2)*100:0;M.total=b2}},getCenter:function(){var b6=this.options,b0=this.chart,b5=2*(b6.slicedOffset||0),M,b2=b0.plotWidth-2*b5,b3=b0.plotHeight-2*b5,b4=b6.center,bZ=[aI(b4[0],"50%"),aI(b4[1],"50%"),b6.size||"100%",b6.innerSize||0],b1=ah(b2,b3),L;return ad(bZ,function(b8,b7){L=/%$/.test(b8);M=b7<2||(b7===2&&L);return(L?[b2,b3,b1,b1][b7]*bE(b8)/100:b8)+(M?b5:0)})},translate:function(b5){this.generatePoints();var b7=this,b9=0,cf=1000,M=b7.options,b0=M.slicedOffset,b6=b0+M.borderWidth,b1,bZ,cg,cb=M.startAngle||0,ch=b7.startAngleRad=I/180*(cb-90),ci=b7.endAngleRad=I/180*((M.endAngle||(cb+360))-90),b8=ci-ch,cd=b7.points,b4,b3,b2=M.dataLabels.distance,L=M.ignoreHiddenPoint,cc,ce=cd.length,ca;if(!b5){b7.center=b5=b7.getCenter()}b7.getX=function(ck,cj){cg=aN.asin((ck-b5[1])/(b5[2]/2+b2));return b5[0]+(cj?-1:1)*(bP(cg)*(b5[2]/2+b2))};for(cc=0;cc<ce;cc++){ca=cd[cc];b1=ch+(b9*b8);if(!L||ca.visible){b9+=ca.percentage/100}bZ=ch+(b9*b8);ca.shapeType="arc";ca.shapeArgs={x:b5[0],y:b5[1],r:b5[2]/2,innerR:b5[3]/2,start:l(b1*cf)/cf,end:l(bZ*cf)/cf};cg=(bZ+b1)/2;if(cg>0.75*b8){cg-=2*I}ca.slicedTranslation={translateX:l(bP(cg)*b0),translateY:l(W(cg)*b0)};b4=bP(cg)*b5[2]/2;b3=W(cg)*b5[2]/2;ca.tooltipPos=[b5[0]+b4*0.7,b5[1]+b3*0.7];ca.half=cg<-I/2||cg>I/2?1:0;ca.angle=cg;b6=ah(b6,b2/2);ca.labelPos=[b5[0]+b4+bP(cg)*b2,b5[1]+b3+W(cg)*b2,b5[0]+b4+bP(cg)*b6,b5[1]+b3+W(cg)*b6,b5[0]+b4,b5[1]+b3,b2<0?"center":ca.half?"right":"left",cg]}},setTooltipPoints:h,drawGraph:null,drawPoints:function(){var bZ=this,b0=bZ.chart,b1=b0.renderer,b4,b3,b2=bZ.options.shadow,L,M;if(b2&&!bZ.shadowGroup){bZ.shadowGroup=b1.g("shadow").add(bZ.group)}B(bZ.points,function(b5){b3=b5.graphic;M=b5.shapeArgs;L=b5.shadowGroup;if(b2&&!L){L=b5.shadowGroup=b1.g("shadow").add(bZ.shadowGroup)}b4=b5.sliced?b5.slicedTranslation:{translateX:0,translateY:0};if(L){L.attr(b4)}if(b3){b3.animate(bd(M,b4))}else{b5.graphic=b3=b1.arc(M).setRadialReference(bZ.center).attr(b5.pointAttr[b5.selected?bh:af]).attr({"stroke-linejoin":"round"}).attr(b4).add(bZ.group).shadow(b2,L)}if(b5.visible===false){b5.setVisible(false)}})},sortByAngle:function(M,L){M.sort(function(b0,bZ){return b0.angle!==undefined&&(bZ.angle-b0.angle)*L})},drawDataLabels:function(){var b4=this,cz=b4.data,cn,cA=b4.chart,ck=b4.options.dataLabels,b1=aI(ck.connectorPadding,10),ci=aI(ck.connectorWidth,1),b0=cA.plotWidth,cs=cA.plotHeight,L,cw,cj=aI(ck.softConnector,true),cb=ck.distance,b3=b4.center,ct=b3[2]/2,M=b3[1],b8=cb>0,b2,ca,b9,cr,cm=[[],[]],cq,cp,ce,b6,cx,cv,cu=[0,0,0,0],cy=function(cE,cD){return cD.y-cE.y};if(!b4.visible||(!ck.enabled&&!b4._hasPointLabels)){return}a3.prototype.drawDataLabels.apply(b4);B(cz,function(cD){if(cD.dataLabel){cm[cD.half].push(cD)}});cx=0;while(!cr&&cz[cx]){cr=cz[cx]&&cz[cx].dataLabel&&(cz[cx].dataLabel.getBBox().height||21);cx++}cx=2;while(cx--){var cB=[],b5,cg=[],co=cm[cx],cl,cd=co.length,cC;b4.sortByAngle(co,cx-0.5);if(cb>0){for(cl=M-ct-cb;cl<=M+ct+cb;cl+=cr){cB.push(cl)}b5=cB.length;if(cd>b5){b6=[].concat(co);b6.sort(cy);cv=cd;while(cv--){b6[cv].rank=cv}cv=cd;while(cv--){if(co[cv].rank>=b5){co.splice(cv,1)}}cd=co.length}for(cv=0;cv<cd;cv++){cn=co[cv];b9=cn.labelPos;var cc=9999,ch,cf;for(cf=0;cf<b5;cf++){ch=e(cB[cf]-b9[1]);if(ch<cc){cc=ch;cC=cf}}if(cC<cv&&cB[cv]!==null){cC=cv}else{if(b5<cd-cv+cC&&cB[cv]!==null){cC=b5-cd+cv;while(cB[cC]===null){cC++}}else{while(cB[cC]===null){cC++}}}cg.push({i:cC,y:cB[cC]});cB[cC]=null}cg.sort(cy)}for(cv=0;cv<cd;cv++){var b7,bZ;cn=co[cv];b9=cn.labelPos;b2=cn.dataLabel;ce=cn.visible===false?ac:ag;bZ=b9[1];if(cb>0){b7=cg.pop();cC=b7.i;cp=b7.y;if((bZ>cp&&cB[cC+1]!==null)||(bZ<cp&&cB[cC-1]!==null)){cp=bZ}}else{cp=bZ}cq=ck.justify?b3[0]+(cx?-1:1)*(ct+cb):b4.getX(cC===0||cC===cB.length-1?bZ:cp,cx);b2._attr={visibility:ce,align:b9[6]};b2._pos={x:cq+ck.x+({left:b1,right:-b1}[b9[6]]||0),y:cp+ck.y-10};b2.connX=cq;b2.connY=cp;if(this.options.size===null){ca=b2.width;if(cq-ca<b1){cu[3]=bX(l(ca-cq+b1),cu[3])}else{if(cq+ca>b0-b1){cu[1]=bX(l(cq+ca-b0+b1),cu[1])}}if(cp-cr/2<0){cu[0]=bX(l(-cp+cr/2),cu[0])}else{if(cp+cr/2>cs){cu[2]=bX(l(cp+cr/2-cs),cu[2])}}}}}if(aE(cu)===0||this.verifyDataLabelOverflow(cu)){this.placeDataLabels();if(b8&&ci){B(this.points,function(cD){L=cD.connector;b9=cD.labelPos;b2=cD.dataLabel;if(b2&&b2._pos){ce=b2._attr.visibility;cq=b2.connX;cp=b2.connY;cw=cj?[bl,cq+(b9[6]==="left"?5:-5),cp,"C",cq,cp,2*b9[2]-b9[4],2*b9[3]-b9[5],b9[2],b9[3],bm,b9[4],b9[5]]:[bl,cq+(b9[6]==="left"?5:-5),cp,bm,b9[2],b9[3],bm,b9[4],b9[5]];if(L){L.animate({d:cw});L.attr("visibility",ce)}else{cD.connector=L=b4.chart.renderer.path(cw).attr({"stroke-width":ci,stroke:ck.connectorColor||cD.color||"#606060",visibility:ce}).add(b4.group)}}else{if(L){cD.connector=L.destroy()}}})}}},verifyDataLabelOverflow:function(b3){var L=this.center,b0=this.options,b1=b0.center,b2=b0.minSize||80,M=b2,bZ;if(b1[0]!==null){M=bX(L[2]-bX(b3[1],b3[3]),b2)}else{M=bX(L[2]-b3[1]-b3[3],b2);L[0]+=(b3[3]-b3[1])/2}if(b1[1]!==null){M=bX(ah(M,L[2]-bX(b3[0],b3[2])),b2)}else{M=bX(ah(M,L[2]-b3[0]-b3[2]),b2);L[1]+=(b3[0]-b3[2])/2}if(M<L[2]){L[2]=M;this.translate(L);B(this.points,function(b4){if(b4.dataLabel){b4.dataLabel._pos=null}});this.drawDataLabels()}else{bZ=true}return bZ},placeDataLabels:function(){B(this.points,function(M){var bZ=M.dataLabel,L;if(bZ){L=bZ._pos;if(L){bZ.attr(bZ._attr);bZ[bZ.moved?"animate":"attr"](L);bZ.moved=true}else{if(bZ){bZ.attr({y:-999})}}}})},alignDataLabel:h,drawTracker:g.prototype.drawTracker,drawLegendSymbol:ax.prototype.drawLegendSymbol,getSymbol:h};m=ba(a3,m);a.pie=m;bd(Highcharts,{Axis:x,Chart:bb,Color:bC,Legend:bn,Pointer:aG,Point:bq,Tick:aw,Tooltip:bK,Renderer:bJ,Series:a3,SVGElement:ar,SVGRenderer:d,arrayMin:bu,arrayMax:aE,charts:aA,dateFormat:bH,format:f,pathAnim:al,getOptions:az,hasBidiBug:Y,isTouchDevice:aP,numberFormat:j,seriesTypes:a,setOptions:a0,addEvent:u,removeEvent:aW,createElement:bf,discardElement:bG,css:bS,each:B,extend:bd,map:ad,merge:aH,pick:aI,splat:a7,extendClass:ba,pInt:bE,wrap:aR,svg:bO,canvas:aY,vml:!bO&&!aY,product:bt,version:bM})}());
|