text: /*
   Highcharts 4.0.4 JS v/Highstock 2.0.4 (2014-09-02)
  
   (c) 2009-2014 Torstein Honsi
  
   License: www.highcharts.com/license
  */
  (function(){function u(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function F(){var a,b=arguments,c,d={},e=function(a,b){var c,d;"object"!==typeof a&&(a={});for(d in b)b.hasOwnProperty(d)&&((c=b[d])&&"object"===typeof c&&"[object Array]"!==Object.prototype.toString.call(c)&&"renderTo"!==d&&"number"!==typeof c.nodeType?a[d]=e(a[d]||{},c):a[d]=b[d]);return a};!0===b[0]&&(d=b[1],b=Array.prototype.slice.call(b,2));c=b.length;for(a=0;a<c;a++)d=e(d,b[a]);return d}function C(a,b){return parseInt(a,
  b||10)}function wa(a){return"string"===typeof a}function W(a){return a&&"object"===typeof a}function xa(a){return"[object Array]"===Object.prototype.toString.call(a)}function da(a){return"number"===typeof a}function Aa(a){return M.log(a)/M.LN10}function oa(a){return M.pow(10,a)}function ea(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function v(a){return a!==w&&null!==a}function H(a,b,c){var d,e;if(wa(b))v(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(v(b)&&
  W(b))for(d in b)a.setAttribute(d,b[d]);return e}function ga(a){return xa(a)?a:[a]}function r(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==w&&null!==c)return c}function y(a,b){pa&&!X&&b&&b.opacity!==w&&(b.filter="alpha(opacity="+100*b.opacity+")");u(a.style,b)}function U(a,b,c,d,e){a=A.createElement(a);b&&u(a,b);e&&y(a,{padding:0,border:"none",margin:0});c&&y(a,c);d&&d.appendChild(a);return a}function Wa(a,b){var c=function(){return w};c.prototype=new a;u(c.prototype,b);return c}
  function qa(a,b,c,d){var e=K.numberFormat,f=I.lang,g=+a||0,h=-1===b?(g.toString().split(".")[1]||"").length:isNaN(b=Q(b))?2:b,k=void 0===c?f.decimalPoint:c,f=void 0===d?f.thousandsSep:d,l=0>g?"-":"",m=String(C(g=Q(g).toFixed(h))),n=3<m.length?m.length%3:0;return e!==qa?e(a,b,c,d):l+(n?m.substr(0,n)+f:"")+m.substr(n).replace(/(\d{3})(?=\d)/g,"$1"+f)+(h?k+Q(g-m).toFixed(h).slice(2):"")}function ya(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function Ba(a,b,c){var d=a[b];a[b]=function(){var a=
  Array.prototype.slice.call(arguments);a.unshift(d);return c.apply(this,a)}}function Na(a,b){for(var c="{",d=!1,e,f,g,h,k,l=[];-1!==(c=a.indexOf(c));){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");k=g.length;e=b;for(h=0;h<k;h++)e=e[g[h]];f.length&&(f=f.join(":"),g=/\.([0-9])/,h=I.lang,k=void 0,/f$/.test(f)?(k=(k=f.match(g))?k[1]:-1,null!==e&&(e=qa(e,k,h.decimalPoint,-1<f.indexOf(",")?h.thousandsSep:""))):e=Xa(f,e))}l.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}l.push(a);return l.join("")}
  function Ab(a,b,c,d){var e;c=r(c,1);e=a/c;b||(b=[1,2,2.5,5,10],!1===d&&(1===c?b=[1,2,5,10]:.1>=c&&(b=[1/c])));for(d=0;d<b.length&&!(a=b[d],e<=(b[d]+(b[d+1]||b[d]))/2);d++);return a*c}function kb(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].ss_i=e;a.sort(function(a,c){d=b(a,c);return 0===d?a.ss_i-c.ss_i:d});for(e=0;e<c;e++)delete a[e].ss_i}function Ca(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function za(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function Oa(a,b){for(var c in a)a[c]&&
  a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Da(a){Ya||(Ya=U("div"));a&&Ya.appendChild(a);Ya.innerHTML=""}function ka(a){return parseFloat(a.toPrecision(14))}function Bb(){var a=I.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";ra=I.global.Date||window.Date;Ea=6E4*(a&&I.global.timezoneOffset||0);Za=a?ra.UTC:function(a,b,c,g,h,k){return(new ra(a,b,r(c,1),r(g,0),r(h,0),r(k,0))).getTime()};lb=b+"Minutes";mb=b+"Hours";nb=b+"Day";Pa=b+"Date";$a=b+"Month";ab=b+"FullYear";Cb=c+"Minutes";
  Db=c+"Hours";ob=c+"Date";Eb=c+"Month";Fb=c+"FullYear"}function L(){}function Fa(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||d||this.addLabel()}function sa(){this.init.apply(this,arguments)}function Qa(){this.init.apply(this,arguments)}var w,A=document,G=window,M=Math,x=M.round,O=M.floor,Ga=M.ceil,z=M.max,N=M.min,Q=M.abs,ha=M.cos,la=M.sin,pb=M.PI,ta=2*pb/360,ma=navigator.userAgent,Gb=G.opera,pa=/msie/i.test(ma)&&!Gb,bb=8===A.documentMode,qb=/AppleWebKit/.test(ma),Ha=/Firefox/.test(ma),
  Hb=/(Mobile|Android|Windows Phone)/.test(ma),na="http://www.w3.org/2000/svg",X=!!A.createElementNS&&!!A.createElementNS(na,"svg").createSVGRect,Mb=Ha&&4>parseInt(ma.split("Firefox/")[1],10),Y=!X&&!pa&&!!A.createElement("canvas").getContext,Ra,Sa,Ib={},rb=0,Ya,I,Xa,Z,sb,B,aa,cb=function(){return w},R=[],Ta=0,Nb=/^[0-9]+$/,ra,Za,Ea,lb,mb,nb,Pa,$a,ab,Cb,Db,ob,Eb,Fb,ba={},K;G.Highcharts?aa(16,!0):K=G.Highcharts={};Xa=function(a,b,c){if(!v(b)||isNaN(b))return"Invalid date";a=r(a,"%Y-%m-%d %H:%M:%S");var d=
  new ra(b-Ea),e,f=d[mb](),g=d[nb](),h=d[Pa](),k=d[$a](),l=d[ab](),m=I.lang,n=m.weekdays,d=u({a:n[g].substr(0,3),A:n[g],d:ya(h),e:h,b:m.shortMonths[k],B:m.months[k],m:ya(k+1),y:l.toString().substr(2,2),Y:l,H:ya(f),I:ya(f%12||12),l:f%12||12,M:ya(d[lb]()),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:ya(d.getSeconds()),L:ya(x(b%1E3),3)},K.dateFormats);for(e in d)for(;-1!==a.indexOf("%"+e);)a=a.replace("%"+e,"function"===typeof d[e]?d[e](b):d[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};aa=function(a,
  b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;G.console&&console.log(c)};B={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:26784E5,year:31556952E3};sb={init:function(a,b,c){b=b||"";var d=a.shift,e=-1<b.indexOf("C"),f=e?7:3,g;b=b.split(" ");c=[].concat(c);var h,k,l=function(a){for(g=a.length;g--;)"M"===a[g]&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(l(b),l(c));a.isArea&&(h=b.splice(b.length-6,6),k=c.splice(c.length-6,6));if(d<=c.length/
  f&&b.length===c.length)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length<a;)d=[].concat(b).splice(b.length-f,f),e&&(d[f-6]=d[f-2],d[f-5]=d[f-1]),b=b.concat(d);h&&(b=b.concat(h),c=c.concat(k));return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(1===c)e=d;else if(f===b.length&&1>c)for(;f--;)d=parseFloat(a[f]),e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d;else e=b;return e}};(function(a){G.HighchartsAdapter=G.HighchartsAdapter||a&&{init:function(b){var c=
  a.fx;a.extend(a.easing,{easeOutQuad:function(a,b,c,g,h){return-g*(b/=h)*(b-2)+c}});a.each(["cur","_default","width","height","opacity"],function(b,e){var f=c.step,g;"cur"===e?f=c.prototype:"_default"===e&&a.Tween&&(f=a.Tween.propHooks[e],e="set");(g=f[e])&&(f[e]=function(a){var c;a=b?a:this;if("align"!==a.prop)return c=a.elem,c.attr?c.attr(a.prop,"cur"===e?w:a.now):g.apply(this,arguments)})});Ba(a.cssHooks.opacity,"get",function(a,b,c){return b.attr?b.opacity||0:a.call(this,b,c)});this.addAnimSetter("d",
  function(a){var c=a.elem,f;a.started||(f=b.init(c,c.d,c.toD),a.start=f[0],a.end=f[1],a.started=!0);c.attr("d",b.step(a.start,a.end,a.pos,c.toD))});this.each=Array.prototype.forEach?function(a,b){return Array.prototype.forEach.call(a,b)}:function(a,b){var c,g=a.length;for(c=0;c<g;c++)if(!1===b.call(a[c],a[c],c,a))return c};a.fn.highcharts=function(){var a="Chart",b=arguments,c,g;this[0]&&(wa(b[0])&&(a=b[0],b=Array.prototype.slice.call(b,1)),c=b[0],c!==w&&(c.chart=c.chart||{},c.chart.renderTo=this[0],
  new K[a](c,b[1]),g=this),c===w&&(g=R[H(this[0],"data-highcharts-chart")]));return g}},addAnimSetter:function(b,c){a.Tween?a.Tween.propHooks[b]={set:c}:a.fx.step[b]=c},getScript:a.getScript,inArray:a.inArray,adapterRun:function(b,c){return a(b)[c]()},grep:a.grep,map:function(a,c){for(var d=[],e=0,f=a.length;e<f;e++)d[e]=c.call(a[e],a[e],e,a);return d},offset:function(b){return a(b).offset()},addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){var e=A.removeEventListener?"removeEventListener":
  "detachEvent";A[e]&&b&&!b[e]&&(b[e]=function(){});a(b).unbind(c,d)},fireEvent:function(b,c,d,e){var f=a.Event(c),g="detached"+c,h;!pa&&d&&(delete d.layerX,delete d.layerY,delete d.returnValue);u(f,d);b[c]&&(b[g]=b[c],b[c]=null);a.each(["preventDefault","stopPropagation"],function(a,b){var c=f[b];f[b]=function(){try{c.call(f)}catch(a){"preventDefault"===b&&(h=!0)}}});a(b).trigger(f);b[g]&&(b[c]=b[g],b[g]=null);!e||f.isDefaultPrevented()||h||e(f)},washMouseEvent:function(a){var c=a.originalEvent||a;
  c.pageX===w&&(c.pageX=a.pageX,c.pageY=a.pageY);return c},animate:function(b,c,d){var e=a(b);b.style||(b.style={});c.d&&(b.toD=c.d,c.d=1);e.stop();c.opacity!==w&&b.attr&&(c.opacity+="px");b.hasAnim=1;e.animate(c,d)},stop:function(b){b.hasAnim&&a(b).stop()}}})(G.jQuery);var db=G.HighchartsAdapter,$=db||{};db&&db.init.call(db,sb);var eb=$.adapterRun,Ob=$.getScript,Ua=$.inArray,s=$.each,tb=$.grep,Pb=$.offset,fb=$.map,J=$.addEvent,S=$.removeEvent,D=$.fireEvent,Qb=$.washMouseEvent,gb=$.animate,hb=$.stop,
  ub={enabled:!0,x:0,y:15,style:{color:"#606060",cursor:"default",fontSize:"11px"}};I={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #8085e8 #8d4653 #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com@product.cdnpath@//Highstock 2.0.4/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com@product.cdnpath@//Highstock 2.0.4/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],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:"#333333",fontSize:"18px"}},subtitle:{text:"",align:"center",style:{color:"#555555"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",
  lineWidth:2}}},point:{events:{}},dataLabels:F(ub,{align:"center",enabled:!1,formatter:function(){return null===this.y?"":qa(this.y,-1)},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,
  navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,
  animation:X,backgroundColor:"rgba(249, 249, 249, .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}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:Hb?25:10,style:{color:"#333333",
  cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,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 Ia=I.plotOptions,Rb=Ia.line;Bb();var Sb=/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*\)/,Tb=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,Ub=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,
  ua=function(a){var b=[],c,d;(function(a){a&&a.stops?d=fb(a.stops,function(a){return ua(a[1])}):(c=Sb.exec(a))?b=[C(c[1]),C(c[2]),C(c[3]),parseFloat(c[4],10)]:(c=Tb.exec(a))?b=[C(c[1],16),C(c[2],16),C(c[3],16),1]:(c=Ub.exec(a))&&(b=[C(c[1]),C(c[2]),C(c[3]),1])})(a);return{get:function(c){var f;d?(f=F(a),f.stops=[].concat(f.stops),s(d,function(a,b){f.stops[b]=[f.stops[b][0],a.get(c)]})):f=b&&!isNaN(b[0])?"rgb"===c?"rgb("+b[0]+","+b[1]+","+b[2]+")":"a"===c?b[3]:"rgba("+b.join(",")+")":a;return f},brighten:function(a){if(d)s(d,
  function(b){b.brighten(a)});else if(da(a)&&0!==a){var c;for(c=0;3>c;c++)b[c]+=C(255*a),0>b[c]&&(b[c]=0),255<b[c]&&(b[c]=255)}return this},rgba:b,setOpacity:function(a){b[3]=a;return this}}};L.prototype={opacity:1,textProps:"fontSize fontWeight fontFamily color lineHeight width textDecoration textShadow HcTextStroke".split(" "),init:function(a,b){this.element="span"===b?U(b):A.createElementNS(na,b);this.renderer=a},animate:function(a,b,c){b=r(b,Z,!0);hb(this);b?(b=F(b,{}),c&&(b.complete=c),gb(this,
  a,b)):(this.attr(a),c&&c());return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,h,k,l,m,n,q,p,t=[];a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");if(f){g=a[f];h=d.gradients;l=a.stops;q=c.radialReference;xa(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&q&&!v(g.gradientUnits)&&(g=F(g,{cx:q[0]-q[2]/2+g.cx*q[2],cy:q[1]-q[2]/2+g.cy*q[2],r:g.r*q[2],gradientUnits:"userSpaceOnUse"}));for(p in g)"id"!==p&&t.push(p,
  g[p]);for(p in l)t.push(l[p]);t=t.join(",");h[t]?a=h[t].attr("id"):(g.id=a="highcharts-"+rb++,h[t]=k=d.createElement(f).attr(g).add(d.defs),k.stops=[],s(l,function(a){0===a[1].indexOf("rgba")?(e=ua(a[1]),m=e.get("rgb"),n=e.get("a")):(m=a[1],n=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":m,"stop-opacity":n}).add(k);k.stops.push(a)}));c.setAttribute(b,"url("+d.url+"#"+a+")")}},attr:function(a,b){var c,d,e=this.element,f,g=this,h;"string"===typeof a&&b!==w&&(c=a,a={},a[c]=b);if("string"===
  typeof a)g=(this[a+"Getter"]||this._defaultGetter).call(this,a,e);else{for(c in a)d=a[c],h=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(f||(this.symbolAttr(a),f=!0),h=!0),!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0),h||(this[c+"Setter"]||this._defaultSetter).call(this,d,c,e),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return g},
  updateShadows:function(a,b){for(var c=this.shadows,d=c.length;d--;)c[d].setAttribute(a,"height"===a?z(b-(c[d].cutHeight||0),0):"d"===a?this.d:b)},addClass:function(a){var b=this.element,c=H(b,"class")||"";-1===c.indexOf(a)&&H(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;s("x y r start end width height innerR anchorX anchorY".split(" "),function(c){b[c]=r(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",
  a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a){var b,c={},d,e=a.strokeWidth||this.strokeWidth||0;d=x(e)%2/2;a.x=O(a.x||this.x||0)+d;a.y=O(a.y||this.y||0)+d;a.width=O((a.width||this.width||0)-2*d);a.height=O((a.height||this.height||0)-2*d);a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=c[b]=a[b]);return c},css:function(a){var b=this.styles,c={},d=this.element,e,f,g="";e=!b;a&&a.color&&(a.fill=a.color);if(b)for(f in a)a[f]!==b[f]&&(c[f]=a[f],e=!0);if(e){e=this.textWidth=a&&
  a.width&&"text"===d.nodeName.toLowerCase()&&C(a.width);b&&(a=u(b,c));this.styles=a;e&&(Y||!X&&this.renderer.forExport)&&delete a.width;if(pa&&!X)y(this.element,a);else{b=function(a,b){return"-"+b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";H(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;Sa&&"click"===a?(d.ontouchstart=function(a){c.touchEventFired=ra.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(-1===
  ma.indexOf("Android")||1100<ra.now()-(c.touchEventFired||0))&&b.call(d,a)}):d["on"+a]=b;return this},setRadialReference:function(a){this.element.radialReference=a;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height"));
  a=["translate("+a+","+b+")"];e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")");(v(c)||v(d))&&a.push("scale("+r(c,1)+" "+r(d,1)+")");a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;f=e.alignedObjects;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||wa(c))this.alignTo=d=c||"renderer",ea(f,
  this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=r(c,e[d],e);d=a.align;e=a.verticalAlign;f=(c.x||0)+(a.x||0);g=(c.y||0)+(a.y||0);if("right"===d||"center"===d)f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=x(f);if("bottom"===e||"middle"===e)g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=x(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(){var a=this.bBox,
  b=this.renderer,c,d,e=this.rotation;c=this.element;var f=this.styles,g=e*ta;d=this.textStr;var h;if(""===d||Nb.test(d))h="num."+d.toString().length+(f?"|"+f.fontSize+"|"+f.fontFamily:"");h&&(a=b.cache[h]);if(!a){if(c.namespaceURI===na||b.forExport){try{a=c.getBBox?u({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(k){}if(!a||0>a.width)a={width:0,height:0}}else a=this.htmlGetBBox();b.isSVG&&(c=a.width,d=a.height,pa&&f&&"11px"===f.fontSize&&"16.9"===d.toPrecision(3)&&(a.height=d=14),
  e&&(a.width=Q(d*la(g))+Q(c*ha(g)),a.height=Q(d*ha(g))+Q(c*la(g))));this.bBox=a;h&&(b.cache[h]=a)}return a},show:function(a){a&&this.element.namespaceURI===na?this.element.removeAttribute("visibility"):this.attr({visibility:a?"inherit":"visible"});return this},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=this.element,
  f=this.zIndex,g,h;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);f&&(c.handleZ=!0,f=C(f));if(c.handleZ)for(a=d.childNodes,g=0;g<a.length;g++)if(b=a[g],c=H(b,"zIndex"),b!==e&&(C(c)>f||!v(f)&&v(c))){d.insertBefore(e,b);h=!0;break}h||d.appendChild(e);this.added=!0;if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.renderer.isSVG&&"SPAN"===
  b.nodeName&&a.parentGroup,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;hb(a);a.clipPath&&(a.clipPath=a.clipPath.destroy());if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f]=a.stops[f].destroy();a.stops=null}a.safeRemoveChild(b);for(c&&s(c,function(b){a.safeRemoveChild(b)});d&&d.div&&0===d.div.childNodes.length;)b=d.parentGroup,a.safeRemoveChild(d.div),delete d.div,d=b;a.alignTo&&ea(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},shadow:function(a,b,c){var d=
  [],e,f,g=this.element,h,k,l,m;if(a){k=r(a.width,3);l=(a.opacity||.15)/k;m=this.parentInverted?"(-1,-1)":"("+r(a.offsetX,1)+", "+r(a.offsetY,1)+")";for(e=1;e<=k;e++)f=g.cloneNode(0),h=2*k+1-2*e,H(f,{isShadow:"true",stroke:a.color||"black","stroke-opacity":l*e,"stroke-width":h,transform:"translate"+m,fill:"none"}),c&&(H(f,"height",z(H(f,"height")-h,0)),f.cutHeight=h),b?b.element.appendChild(f):g.parentNode.insertBefore(f,g),d.push(f);this.shadows=d}return this},xGetter:function(a){"circle"===this.element.nodeName&&
  (a={x:"cx",y:"cy"}[a]||a);return this._defaultGetter(a)},_defaultGetter:function(a){a=r(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");c.setAttribute(b,a);this[b]=a},dashstyleSetter:function(a){var b;if(a=a&&a.toLowerCase()){a=a.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(",");for(b=a.length;b--;)a[b]=C(a[b])*this["stroke-width"];a=a.join(",").replace("NaN","none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,c){this[b]=a;c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||
  (b=A.createElementNS(na,"title"),this.element.appendChild(b));b.textContent=r(a,"").replace(/<[^>]*>/g,"")},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"===typeof a?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},zIndexSetter:function(a,b,c){c.setAttribute(b,a);this[b]=a},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};L.prototype.yGetter=L.prototype.xGetter;L.prototype.translateXSetter=
  L.prototype.translateYSetter=L.prototype.rotationSetter=L.prototype.verticalAlignSetter=L.prototype.scaleXSetter=L.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};L.prototype["stroke-widthSetter"]=L.prototype.strokeSetter=function(a,b,c){this[b]=a;this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],L.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke&&
  (c.removeAttribute("stroke"),this.hasStroke=!1)};var ia=function(){this.init.apply(this,arguments)};ia.prototype={Element:L,init:function(a,b,c,d,e){var f=location,g;d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));g=d.element;a.appendChild(g);-1===a.innerHTML.indexOf("xmlns")&&H(g,"xmlns",na);this.isSVG=!0;this.box=g;this.boxWrapper=d;this.alignedObjects=[];this.url=(Ha||qb)&&A.getElementsByTagName("base").length?f.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,
  "%20"):"";this.createElement("desc").add().element.appendChild(A.createTextNode("Created with Highcharts 4.0.4 /Highstock 2.0.4"));this.defs=this.createElement("defs").add();this.forExport=e;this.gradients={};this.cache={};this.setSize(b,c,!1);var h;Ha&&a.getBoundingClientRect&&(this.subPixelFix=b=function(){y(a,{left:0,top:0});h=a.getBoundingClientRect();y(a,{left:Ga(h.left)-h.left+"px",top:Ga(h.top)-h.top+"px"})},b(),J(G,"resize",b))},getStyle:function(a){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',
  fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();Oa(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.subPixelFix&&S(G,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},buildText:function(a){for(var b=a.element,c=this,d=c.forExport,e=r(a.textStr,"").toString(),
  f=-1!==e.indexOf("<"),g=b.childNodes,h,k,l=H(b,"x"),m=a.styles,n=a.textWidth,q=m&&m.lineHeight,p=m&&m.HcTextStroke,t=g.length,T=function(a){return q?C(q):c.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:m&&m.fontSize||c.style.fontSize||12,a).h};t--;)b.removeChild(g[t]);f||p||-1!==e.indexOf(" ")?(h=/<.*style="([^"]+)".*>/,k=/<.*href="(http[^"]+)".*>/,n&&!a.added&&this.box.appendChild(b),e=f?e.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):[e],""===e[e.length-1]&&e.pop(),s(e,function(e,f){var g,p=0;e=e.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");g=e.split("|||");s(g,function(e){if(""!==e||1===g.length){var q={},t=A.createElementNS(na,"tspan"),r;h.test(e)&&(r=e.match(h)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),H(t,"style",r));k.test(e)&&!d&&(H(t,"onclick",'location.href="'+e.match(k)[1]+'"'),y(t,{cursor:"pointer"}));e=(e.replace(/<(.|\n)*?>/g,
  "")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");if(" "!==e){t.appendChild(A.createTextNode(e));p?q.dx=0:f&&null!==l&&(q.x=l);H(t,q);b.appendChild(t);!p&&f&&(!X&&d&&y(t,{display:"block"}),H(t,"dy",T(t)));if(n){e=e.replace(/([^\^])-/g,"$1- ").split(" ");for(var q=1<g.length||1<e.length&&"nowrap"!==m.whiteSpace,s,E,v=m.HcHeight,w=[],u=T(t),Jb=1;q&&(e.length||w.length);)delete a.bBox,s=a.getBBox(),E=s.width,!X&&c.forExport&&(E=c.measureSpanWidth(t.firstChild.data,a.styles)),(s=E>n)&&1!==e.length?
  (t.removeChild(t.firstChild),w.unshift(e.pop())):(e=w,w=[],e.length&&(Jb++,v&&Jb*u>v?(e=["..."],a.attr("title",a.textStr)):(t=A.createElementNS(na,"tspan"),H(t,{dy:u,x:l}),r&&H(t,"style",r),b.appendChild(t))),E>n&&(n=E)),e.length&&t.appendChild(A.createTextNode(e.join(" ").replace(/- /g,"-")))}p++}}})})):b.appendChild(A.createTextNode(e))},button:function(a,b,c,d,e,f,g,h,k){var l=this.label(a,b,c,k,null,null,null,null,"button"),m=0,n,q,p,t,r,s;a={x1:0,y1:0,x2:0,y2:1};e=F({"stroke-width":1,stroke:"#CCCCCC",
  fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);p=e.style;delete e.style;f=F(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);t=f.style;delete f.style;g=F(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);r=g.style;delete g.style;h=F(e,{style:{color:"#CCC"}},h);s=h.style;delete h.style;J(l.element,pa?"mouseover":"mouseenter",function(){3!==m&&l.attr(f).css(t)});J(l.element,pa?"mouseout":"mouseleave",
  function(){3!==m&&(n=[e,f,g][m],q=[p,t,r][m],l.attr(n).css(q))});l.setState=function(a){(l.state=m=a)?2===a?l.attr(g).css(r):3===a&&l.attr(h).css(s):l.attr(e).css(p)};return l.on("click",function(){3!==m&&d.call(l)}).attr(e).css(u({cursor:"default"},p))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=x(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=x(a[2])+b%2/2);return a},path:function(a){var b={fill:"none"};xa(a)?b.d=a:W(a)&&u(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=W(a)?
  a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=function(a){this.element.setAttribute("cx",a)};b.ySetter=function(a){this.element.setAttribute("cy",a)};return b.attr(a)},arc:function(a,b,c,d,e,f){W(a)&&(b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x);a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0});a.r=c;return a},rect:function(a,b,c,d,e,f){e=W(a)?a.r:e;var g=this.createElement("rect");a=W(a)?a:a===w?{}:{x:a,y:b,width:z(c,0),height:z(d,0)};f!==w&&(a.strokeWidth=
  f,a=g.crisp(a));e&&(a.r=e);g.rSetter=function(a){H(this.element,{rx:a,ry:a})};return g.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[r(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return v(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};1<arguments.length&&u(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);
  f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(x(b),x(c),d,e,f),k=/^url\((.*?)\)$/,l,m;h?(g=this.path(h),u(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&u(g,f)):k.test(a)&&(m=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(x((d-b[0])/2),x((e-b[1])/2)))},l=a.match(k)[1],a=Ib[l]||f&&f.width&&f.height&&[f.width,
  f.height],g=this.image(l).attr({x:b,y:c}),g.isImg=!0,a?m(g,a):(g.attr({width:0,height:0}),U("img",{onload:function(){m(g,Ib[l]=[this.width,this.height])},src:l})));return g},symbols:{circle:function(a,b,c,d){var e=.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,
  b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start;c=e.r||c||d;var g=e.end-.001;d=e.innerR;var h=e.open,k=ha(f),l=la(f),m=ha(g),g=la(g);e=e.end-f<pb?0:1;return["M",a+c*k,b+c*l,"A",c,c,0,e,1,a+c*m,b+c*g,h?"M":"L",a+d*m,b+d*g,"A",d,d,0,e,0,a+d*k,b+d*l,h?"":"Z"]},callout:function(a,b,c,d,e){var f=N(e&&e.r||0,c,d),g=f+6,h=e&&e.anchorX,k=e&&e.anchorY;e=x(e.strokeWidth||0)%2/2;a+=e;b+=e;e=["M",a+f,b,"L",a+c-f,b,"C",
  a+c,b,a+c,b,a+c,b+f,"L",a+c,b+d-f,"C",a+c,b+d,a+c,b+d,a+c-f,b+d,"L",a+f,b+d,"C",a,b+d,a,b+d,a,b+d-f,"L",a,b+f,"C",a,b,a,b,a+f,b];h&&h>c&&k>b+g&&k<b+d-g?e.splice(13,3,"L",a+c,k-6,a+c+6,k,a+c,k+6,a+c,b+d-f):h&&0>h&&k>b+g&&k<b+d-g?e.splice(33,3,"L",a,k+6,a-6,k,a,k-6,a,b+f):k&&k>d&&h>a+g&&h<a+c-g?e.splice(23,3,"L",h+6,b+d,h,b+d+6,h-6,b+d,a+f,b+d):k&&0>k&&h>a+g&&h<a+c-g&&e.splice(3,3,"L",h-6,b,h,b-6,h+6,b,c-f,b);return e}},clipRect:function(a,b,c,d){var e="highcharts-"+rb++,f=this.createElement("clipPath").attr({id:e}).add(this.defs);
  a=this.rect(a,b,c,d,0).add(f);a.id=e;a.clipPath=f;return a},text:function(a,b,c,d){var e=Y||!X&&this.forExport,f={};if(d&&!this.forExport)return this.html(a,b,c);f.x=Math.round(b||0);c&&(f.y=Math.round(c));if(a||0===a)f.text=a;a=this.createElement("text").attr(f);e&&a.css({position:"absolute"});d||(a.xSetter=function(a,b,c){var d=c.getElementsByTagName("tspan"),e,f=c.getAttribute(b),q;for(q=0;q<d.length;q++)e=d[q],e.getAttribute(b)===f&&e.setAttribute(b,a);c.setAttribute(b,a)});return a},fontMetrics:function(a,
  b){a=a||this.style.fontSize;b&&G.getComputedStyle&&(b=b.element||b,a=G.getComputedStyle(b,"").fontSize);a=/px/.test(a)?C(a):/em/.test(a)?12*parseFloat(a):12;var c=24>a?a+4:x(1.2*a),d=x(.8*c);return{h:c,b:d,f:a}},label:function(a,b,c,d,e,f,g,h,k){function l(){var a,b;a=t.element.style;E=(void 0===Ja||void 0===A||p.styles.textAlign)&&t.textStr&&t.getBBox();p.width=(Ja||E.width||0)+2*ca+z;p.height=(A||E.height||0)+2*ca;V=ca+q.fontMetrics(a&&a.fontSize,t).b;y&&(r||(a=x(-Va*ca),b=h?-V:0,p.box=r=d?q.symbol(d,
  a,b,p.width,p.height,P):q.rect(a,b,p.width,p.height,0,P["stroke-width"]),r.attr("fill","none").add(p)),r.isImg||r.attr(u({width:x(p.width),height:x(p.height)},P)),P=null)}function m(){var a=p.styles,a=a&&a.textAlign,b=z+ca*(1-Va),c;c=h?0:V;v(Ja)&&E&&("center"===a||"right"===a)&&(b+={center:.5,right:1}[a]*(Ja-E.width));if(b!==t.x||c!==t.y)t.attr("x",b),c!==w&&t.attr("y",c);t.x=b;t.y=c}function n(a,b){r?r.attr(a,b):P[a]=b}var q=this,p=q.g(k),t=q.text("",0,0,g).attr({zIndex:1}),r,E,Va=0,ca=3,z=0,Ja,
  A,C,vb,B=0,P={},V,y;p.onAdd=function(){t.add(p);p.attr({text:a||0===a?a:"",x:b,y:c});r&&v(e)&&p.attr({anchorX:e,anchorY:f})};p.widthSetter=function(a){Ja=a};p.heightSetter=function(a){A=a};p.paddingSetter=function(a){v(a)&&a!==ca&&(ca=a,m())};p.paddingLeftSetter=function(a){v(a)&&a!==z&&(z=a,m())};p.alignSetter=function(a){Va={left:0,center:.5,right:1}[a]};p.textSetter=function(a){a!==w&&t.textSetter(a);l();m()};p["stroke-widthSetter"]=function(a,b){a&&(y=!0);B=a%2/2;n(b,a)};p.strokeSetter=p.fillSetter=
  p.rSetter=function(a,b){"fill"===b&&a&&(y=!0);n(b,a)};p.anchorXSetter=function(a,b){e=a;n(b,a+B-C)};p.anchorYSetter=function(a,b){f=a;n(b,a-vb)};p.xSetter=function(a){p.x=a;Va&&(a-=Va*((Ja||E.width)+ca));C=x(a);p.attr("translateX",C)};p.ySetter=function(a){vb=p.y=x(a);p.attr("translateY",vb)};var D=p.css;return u(p,{css:function(a){if(a){var b={};a=F(a);s(p.textProps,function(c){a[c]!==w&&(b[c]=a[c],delete a[c])});t.css(b)}return D.call(p,a)},getBBox:function(){return{width:E.width+2*ca,height:E.height+
  2*ca,x:E.x-ca,y:E.y-ca}},shadow:function(a){r&&r.shadow(a);return p},destroy:function(){S(p.element,"mouseenter");S(p.element,"mouseleave");t&&(t=t.destroy());r&&(r=r.destroy());L.prototype.destroy.call(p);p=q=l=m=n=null}})}};Ra=ia;u(L.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.updateTransform();this.styles=u(this.styles,a);y(this.element,a);return this},htmlGetBBox:function(){var a=this.element,b=this.bBox;b||("text"===
  a.nodeName&&(a.style.position="absolute"),b=this.bBox={x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight});return b},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,d=this.translateY||0,e=this.x||0,f=this.y||0,g=this.textAlign||"left",h={left:0,center:.5,right:1}[g],k=this.shadows;y(b,{marginLeft:c,marginTop:d});k&&s(k,function(a){y(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&s(b.childNodes,function(c){a.invertChild(c,
  b)});if("SPAN"===b.tagName){var l=this.rotation,m,n=C(this.textWidth),q=[l,g,b.innerHTML,this.textWidth].join();q!==this.cTT&&(m=a.fontMetrics(b.style.fontSize).b,v(l)&&this.setSpanRotation(l,h,m),k=r(this.elemWidth,b.offsetWidth),k>n&&/[ \-]/.test(b.textContent||b.innerText)&&(y(b,{width:n+"px",display:"block",whiteSpace:"normal"}),k=n),this.getSpanCorrection(k,m,h,l,g));y(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});qb&&(m=b.offsetHeight);this.cTT=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,
  b,c){var d={},e=pa?"-ms-transform":qb?"-webkit-transform":Ha?"MozTransform":Gb?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)";d[e+(Ha?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+c+"px";y(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});u(ia.prototype,{html:function(a,b,c){var d=this.createElement("span"),e=d.element,f=d.renderer;d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;e.innerHTML=this.textStr=a};d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=
  function(a,b){"align"===b&&(b="textAlign");d[b]=a;d.htmlUpdateTransform()};d.attr({text:a,x:x(b),y:x(c)}).css({position:"absolute",whiteSpace:"nowrap",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});d.css=d.htmlCss;f.isSVG&&(d.add=function(a){var b,c=f.box.parentNode,l=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)l.push(a),a=a.parentGroup;s(l.reverse(),function(a){var d;b=a.div=a.div||U("div",{className:H(a.element,"class")},{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||
  0)+"px"},b||c);d=b.style;u(a,{translateXSetter:function(b,c){d.left=b+"px";a[c]=b;a.doTransform=!0},translateYSetter:function(b,c){d.top=b+"px";a[c]=b;a.doTransform=!0},visibilitySetter:function(a,b){d[b]=a}})})}}else b=c;b.appendChild(e);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d});return d}});var wb,va;if(!X&&!Y){va={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e="div"===b;("shape"===b||e)&&d.push("left:0;top:0;width:1px;height:1px;");
  d.push("visibility: ",e?"hidden":"visible");c.push(' style="',d.join(""),'"/>');b&&(c=e||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=U(c));this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();return this},updateTransform:L.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=
  this.rotation,b=ha(a*ta),c=la(a*ta);y(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,c,d,e){var f=d?ha(d*ta):1,g=d?la(d*ta):0,h=r(this.elemHeight,this.element.offsetHeight),k;this.xCorr=0>f&&-a;this.yCorr=0>g&&-h;k=0>f*g;this.xCorr+=g*b*(k?1-c:c);this.yCorr-=f*b*(d?k?c:1-c:1);e&&"left"!==e&&(this.xCorr-=a*c*(0>f?-1:1),d&&(this.yCorr-=h*c*(0>g?-1:1)),y(this.element,
  {textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)da(a[b])?c[b]=x(10*a[b])-5:"Z"===a[b]?c[b]="x":(c[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b]||(c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1)));return c.join(" ")||"x"},clip:function(a){var b=this,c;a?(c=a.members,ea(c,b),c.push(b),b.destroyClip=function(){ea(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:bb?"inherit":"rect(auto)"});return b.css(a)},css:L.prototype.htmlCss,
  safeRemoveChild:function(a){a.parentNode&&Da(a)},destroy:function(){this.destroyClip&&this.destroyClip();return L.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+a]=function(){var a=G.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c;a=a.split(/[ ,]/);c=a.length;if(9===c||11===c)a[c-4]=a[c-2]=C(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,k=f.style,l,m=f.path,n,q,p,t;m&&"string"!==typeof m.value&&
  (m="x");q=m;if(a){p=r(a.width,3);t=(a.opacity||.15)/p;for(e=1;3>=e;e++)n=2*p+1-2*e,c&&(q=this.cutOffPath(m.value,n+.5)),l=['<shape isShadow="true" strokeweight="',n,'" filled="false" path="',q,'" coordsize="10 10" style="',f.style.cssText,'" />'],h=U(g.prepVML(l),null,{left:C(k.left)+r(a.offsetX,1),top:C(k.top)+r(a.offsetY,1)}),c&&(h.cutOff=n+1),l=['<stroke color="',a.color||"black",'" opacity="',t*e,'"/>'],U(g.prepVML(l),null,null,h),b?b.element.appendChild(h):f.parentNode.insertBefore(h,f),d.push(h);
  this.shadows=d}return this},updateShadows:cb,setAttr:function(a,b){bb?this.element[a]=b:this.element.setAttribute(a,b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||U(this.renderer.prepVML(["<stroke/>"]),null,null,c))[b]=a||"solid";this[b]=a},dSetter:function(a,b,c){var d=this.shadows;a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):
  a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;"SPAN"===d?c.style.color=a:"IMG"!==d&&(c.filled="none"!==a,this.setAttr("fillcolor",this.renderer.color(a,c,b,this)))},opacitySetter:cb,rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-x(la(a*ta)+1)+"px";c.top=x(ha(a*ta))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;this[b]=a;da(a)&&(a+="px");this.setAttr("strokeweight",a)},
  titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){"inherit"===a&&(a="visible");this.shadows&&s(this.shadows,function(c){c.style[b]=a});"DIV"===c.nodeName&&(a="hidden"===a?"-999em":0,bb||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},xSetter:function(a,b,c){this[b]=a;"x"===b?b="left":"y"===b&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}};K.VMLElement=va=Wa(L,va);va.prototype.ySetter=va.prototype.widthSetter=
  va.prototype.heightSetter=va.prototype.xSetter;var Vb={Element:va,isIE8:-1<ma.indexOf("MSIE 8.0"),init:function(a,b,c,d){var e;this.alignedObjects=[];d=this.createElement("div").css(u(this.getStyle(d),{position:"relative"}));e=d.element;a.appendChild(d.element);this.isVML=!0;this.box=e;this.boxWrapper=d;this.cache={};this.setSize(b,c,!1);if(!A.namespaces.hcv){A.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{A.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){A.styleSheets[0].cssText+=
  "hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=W(a);return u(e,{members:[],left:(f?a.x:a)+1,top:(f?a.y:b)+1,width:(f?a.width:c)-1,height:(f?a.height:d)-1,getCSS:function(a){var b=a.element,c=b.nodeName;a=a.inverted;var d=this.top-("shape"===c?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+x(a?e:d)+"px,"+x(a?
  f:b)+"px,"+x(a?b:f)+"px,"+x(a?d:e)+"px)"};!a&&bb&&"DIV"===c&&u(d,{width:b+"px",height:f+"px"});return d},updateClipping:function(){s(e.members,function(a){a.element&&a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,k,l="none";a&&a.linearGradient?k="gradient":a&&a.radialGradient&&(k="pattern");if(k){var m,n,q=a.linearGradient||a.radialGradient,p,t,r,E,v,w="";a=a.stops;var u,z=[],x=function(){h=['<fill colors="'+z.join(",")+'" opacity="',r,'" o:opacity2="',t,'" type="',k,'" ',
  w,'focus="100%" method="any" />'];U(e.prepVML(h),null,null,b)};p=a[0];u=a[a.length-1];0<p[0]&&a.unshift([0,p[1]]);1>u[0]&&a.push([1,u[1]]);s(a,function(a,b){g.test(a[1])?(f=ua(a[1]),m=f.get("rgb"),n=f.get("a")):(m=a[1],n=1);z.push(100*a[0]+"% "+m);b?(r=n,E=m):(t=n,v=m)});if("fill"===c)if("gradient"===k)c=q.x1||q[0]||0,a=q.y1||q[1]||0,p=q.x2||q[2]||0,q=q.y2||q[3]||0,w='angle="'+(90-180*M.atan((q-a)/(p-c))/pb)+'"',x();else{var l=q.r,A=2*l,C=2*l,B=q.cx,P=q.cy,V=b.radialReference,y,l=function(){V&&(y=
  d.getBBox(),B+=(V[0]-y.x)/y.width-.5,P+=(V[1]-y.y)/y.height-.5,A*=V[2]/y.width,C*=V[2]/y.height);w='src="'+I.global.VMLRadialGradientURL+'" size="'+A+","+C+'" origin="0.5,0.5" position="'+B+","+P+'" color2="'+v+'" ';x()};d.added?l():d.onAdd=l;l=E}else l=m}else g.test(a)&&"IMG"!==b.tagName?(f=ua(a),h=["<",c,' opacity="',f.get("a"),'"/>'],U(this.prepVML(h),null,null,b),l=f.get("rgb")):(l=b.getElementsByTagName(c),l.length&&(l[0].opacity=1,l[0].type="solid"),l=a);return l},prepVML:function(a){var b=
  this.isIE8;a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=-1===a.indexOf('style="')?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:");return a},text:ia.prototype.html,path:function(a){var b={coordsize:"10 10"};xa(a)?b.d=a:W(a)&&u(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){var d=this.symbol("circle");W(a)&&
  (c=a.r,b=a.y,a=a.x);d.isCircle=!0;d.r=c;return d.attr({x:a,y:b})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement("div").attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});1<arguments.length&&f.attr({x:b,y:c,width:d,height:e});return f},createElement:function(a){return"rect"===a?this.symbol(a):ia.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this,d=b.style,e="IMG"===a.tagName&&a.style;y(a,
  {flip:"x",left:C(d.width)-(e?C(e.top):1),top:C(d.height)-(e?C(e.left):1),rotation:-90});s(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d;c=e.innerR;d=ha(f);var k=la(f),l=ha(g),m=la(g);if(0===g-f)return["x"];f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*k,a+h*l,b+h*m];e.open&&!c&&f.push("e","M",a,b);f.push("at",a-c,b-c,a+c,b+c,a+c*l,b+c*m,a+c*d,b+c*k,"x","e");f.isArc=!0;return f},circle:function(a,b,c,d,e){e&&(c=d=2*e.r);e&&e.isCircle&&(a-=c/2,
  b-=d/2);return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){return ia.prototype.symbols[v(e)&&e.r?"callout":"square"].call(0,a,b,c,d,e)}}};K.VMLRenderer=wb=function(){this.init.apply(this,arguments)};wb.prototype=F(ia.prototype,Vb);Ra=wb}ia.prototype.measureSpanWidth=function(a,b){var c=A.createElement("span"),d;d=A.createTextNode(a);c.appendChild(d);y(c,b);this.box.appendChild(c);d=c.offsetWidth;Da(c);return d};var xb,Kb;Y&&(K.CanVGRenderer=xb=function(){na="http://www.w3.org/1999/xhtml"},
  xb.prototype.symbols={},Kb=function(){function a(){var a=b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){0===b.length&&Ob(d,a);b.push(c)}}}(),Ra=xb);Fa.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.horiz,e=a.categories,f=a.names,g=this.pos,h=b.labels,k=h.rotation,l=a.tickPositions,d=d&&e&&!h.step&&!h.staggerLines&&!h.rotation&&c.plotWidth/l.length||!d&&(c.margin[3]||.33*c.chartWidth),m=g===l[0],n=g===l[l.length-1],q,f=e?r(e[g],f[g],g):g,e=this.label,
  p=l.info;a.isDatetimeAxis&&p&&(q=b.dateTimeLabelFormats[p.higherRanks[g]||p.unitName]);this.isFirst=m;this.isLast=n;b=a.labelFormatter.call({axis:a,chart:c,isFirst:m,isLast:n,dateTimeLabelFormat:q,value:a.isLog?ka(oa(f)):f});g=d&&{width:z(1,x(d-2*(h.padding||10)))+"px"};v(e)?e&&e.attr({text:b}).css(g):(q={align:a.labelAlign},da(k)&&(q.rotation=k),d&&h.ellipsis&&(g.HcHeight=a.len/l.length),this.label=e=v(b)&&h.enabled?c.renderer.text(b,0,0,h.useHTML).attr(q).css(u(g,h.style)).add(a.labelGroup):null,
  a.tickBaseline=c.renderer.fontMetrics(h.style.fontSize,e).b,k&&2===a.side&&(a.tickBaseline*=ha(k*ta)));this.yOffset=e?r(h.y,a.tickBaseline+(2===a.side?8:-(e.getBBox().height/2))):0},getLabelSize:function(){var a=this.label,b=this.axis;return a?a.getBBox()[b.horiz?"height":"width"]:0},getLabelSides:function(){var a=this.label.getBBox(),b=this.axis,c=b.horiz,d=b.options.labels,a=c?a.width:a.height,b=c?d.x-a*{left:0,center:.5,right:1}[b.labelAlign]:0;return[b,c?a+b:a]},handleOverflow:function(a,b){var c=
  !0,d=this.axis,e=this.isFirst,f=this.isLast,g=d.horiz?b.x:b.y,h=d.reversed,k=d.tickPositions,l=this.getLabelSides(),m=l[0],l=l[1],n,q,p,t=this.label.line;n=t||0;q=d.labelEdge;p=d.justifyLabels&&(e||f);q[n]===w||g+m>q[n]?q[n]=g+l:p||(c=!1);if(p){n=(q=d.justifyToPlot)?d.pos:0;q=q?n+d.len:d.chart.chartWidth;do a+=e?1:-1,p=d.ticks[k[a]];while(k[a]&&(!p||!p.label||p.label.line!==t));d=p&&p.label.xy&&p.label.xy.x+p.getLabelSides()[e?0:1];e&&!h||f&&h?g+m<n&&(g=n-m,p&&g+l>d&&(c=!1)):g+l>q&&(g=q-l,p&&g+m<
  d&&(c=!1));b.x=g}return c},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var k=this.axis,l=k.transA,m=k.reversed,n=k.staggerLines;a=a+e.x-(f&&d?f*l*(m?-1:1):0);b=b+this.yOffset-(f&&!d?f*l*(m?
  1:-1):0);n&&(c.line=g/(h||1)%n,b+=k.labelOffset/n*c.line);return{x:a,y:b}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,k=this.label,l=this.pos,m=e.labels,n=this.gridLine,q=h?h+"Grid":"grid",p=h?h+"Tick":"tick",t=e[q+"LineWidth"],s=e[q+"LineColor"],E=e[q+"LineDashStyle"],v=e[p+"Length"],q=e[p+"Width"]||0,u=e[p+"Color"],z=e[p+"Position"],p=this.mark,x=m.step,A=
  !0,C=d.tickmarkOffset,y=this.getPosition(g,l,C,b),B=y.x,y=y.y,P=g&&B===d.pos+d.len||!g&&y===d.pos?-1:1;c=r(c,1);this.isActive=!0;if(t&&(l=d.getPlotLinePath(l+C,t*P,b,!0),n===w&&(n={stroke:s,"stroke-width":t},E&&(n.dashstyle=E),h||(n.zIndex=1),b&&(n.opacity=0),this.gridLine=n=t?f.path(l).attr(n).add(d.gridGroup):null),!b&&n&&l))n[this.isNew?"attr":"animate"]({d:l,opacity:c});q&&v&&("inside"===z&&(v=-v),d.opposite&&(v=-v),h=this.getMarkPath(B,y,v,q*P,g,f),p?p.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:u,
  "stroke-width":q,opacity:c}).add(d.axisGroup));k&&!isNaN(B)&&(k.xy=y=this.getLabelPosition(B,y,k,g,m,C,a,x),this.isFirst&&!this.isLast&&!r(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(e.showLastLabel,1)?A=!1:d.isRadial||m.step||m.rotation||b||0===c||(A=this.handleOverflow(a,y)),x&&a%x&&(A=!1),A&&!isNaN(y.y)?(y.opacity=c,k[this.isNew?"attr":"animate"](y),this.isNew=!1):k.attr("y",-9999))},destroy:function(){Oa(this,this.axis)}};K.PlotLineOrBand=function(a,b){this.axis=a;b&&(this.options=b,this.id=
  b.id)};K.PlotLineOrBand.prototype={render:function(){var a=this,b=a.axis,c=b.horiz,d=(b.pointRange||0)/2,e=a.options,f=e.label,g=a.label,h=e.width,k=e.to,l=e.from,m=v(l)&&v(k),n=e.value,q=e.dashStyle,p=a.svgElem,t=[],r,s=e.color,w=e.zIndex,u=e.events,x={},y=b.chart.renderer;b.isLog&&(l=Aa(l),k=Aa(k),n=Aa(n));if(h)t=b.getPlotLinePath(n,h),x={stroke:s,"stroke-width":h},q&&(x.dashstyle=q);else if(m)l=z(l,b.min-d),k=N(k,b.max+d),t=b.getPlotBandPath(l,k,e),s&&(x.fill=s),e.borderWidth&&(x.stroke=e.borderColor,
  x["stroke-width"]=e.borderWidth);else return;v(w)&&(x.zIndex=w);if(p)t?p.animate({d:t},null,p.onGetPath):(p.hide(),p.onGetPath=function(){p.show()},g&&(a.label=g=g.destroy()));else if(t&&t.length&&(a.svgElem=p=y.path(t).attr(x).add(),u))for(r in d=function(b){p.on(b,function(c){u[b].apply(a,[c])})},u)d(r);f&&v(f.text)&&t&&t.length&&0<b.width&&0<b.height?(f=F({align:c&&m&&"center",x:c?!m&&4:10,verticalAlign:!c&&m&&"middle",y:c?m?16:10:m?6:-4,rotation:c&&!m&&90},f),g||(x={align:f.textAlign||f.align,
  rotation:f.rotation},v(w)&&(x.zIndex=w),a.label=g=y.text(f.text,0,0,f.useHTML).attr(x).css(f.style).add()),b=[t[1],t[4],m?t[6]:t[1]],m=[t[2],t[5],m?t[7]:t[2]],t=Ca(b),c=Ca(m),g.align(f,!1,{x:t,y:c,width:za(b)-t,height:za(m)-c}),g.show()):g&&g.hide();return a},destroy:function(){ea(this.axis.plotLinesAndBands,this);delete this.axis;Oa(this)}};sa.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:!1,gridLineColor:"#C0C0C0",labels:ub,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,
  tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return qa(this.total,-1)},style:ub.style}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{x:0,y:-15},title:{rotation:0}},
  init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.coll=(this.isXAxis=c)?"xAxis":"yAxis";this.opposite=b.opposite;this.side=b.side||(this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.zoomEnabled=!1!==d.zoomEnabled;this.categories=d.categories||"category"===e;this.names=[];this.isLog="logarithmic"===
  e;this.isDatetimeAxis="datetime"===e;this.isLinked=v(d.linkedTo);this.tickmarkOffset=this.categories&&"between"===d.tickmarkPlacement&&1===r(d.tickInterval,1)?.5:0;this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.oldStacks={};this.min=this.max=null;this.crosshair=r(d.crosshair,ga(a.options.tooltip.crosshairs)[c?0:1],!1);
  var f,d=this.options.events;-1===Ua(this,a.axes)&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&c&&this.reversed===w&&(this.reversed=!0);this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)J(this,f,d[f]);this.isLog&&(this.val2lin=Aa,this.lin2val=oa)},setOptions:function(a){this.options=F(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,
  this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],F(I[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=I.lang.numericSymbols,f=e&&e.length,g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=Na(h,this);else if(c)g=b;else if(d)g=Xa(d,b);else if(f&&1E3<=a)for(;f--&&g===w;)c=Math.pow(1E3,f+1),a>=c&&null!==e[f]&&(g=qa(b/c,-1)+e[f]);g===w&&(g=1E4<=Q(b)?qa(b,0):qa(b,-1,w,""));return g},getSeriesExtremes:function(){var a=
  this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();s(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d;d=c.options.threshold;var e;a.hasVisibleSeries=!0;a.isLog&&0>=d&&(d=null);a.isXAxis?(d=c.xData,d.length&&(a.dataMin=N(r(a.dataMin,d[0]),Ca(d)),a.dataMax=z(r(a.dataMax,d[0]),za(d)))):(c.getExtremes(),e=c.dataMax,c=c.dataMin,v(c)&&v(e)&&(a.dataMin=N(r(a.dataMin,c),c),a.dataMax=z(r(a.dataMax,
  e),e)),v(d)&&(a.dataMin>=d?(a.dataMin=d,a.ignoreMinPadding=!0):a.dataMax<d&&(a.dataMax=d,a.ignoreMaxPadding=!0)))}})},translate:function(a,b,c,d,e,f){var g=1,h=0,k=d?this.oldTransA:this.transA;d=d?this.oldMin:this.min;var l=this.minPixelPadding;e=(this.options.ordinal||this.isLog&&e)&&this.lin2val;k||(k=this.transA);c&&(g*=-1,h=this.len);this.reversed&&(g*=-1,h-=g*(this.sector||this.len));b?(a=a*g+h-l,a=a/k+d,e&&(a=this.lin2val(a))):(e&&(a=this.val2lin(a)),"between"===f&&(f=.5),a=g*(a-d)*k+h+g*l+
  (da(f)?k*f*this.pointRange:0));return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,d,e){var f=this.chart,g=this.left,h=this.top,k,l,m=c&&f.oldChartHeight||f.chartHeight,n=c&&f.oldChartWidth||f.chartWidth,q;k=this.transB;e=r(e,this.translate(a,null,null,c));a=c=x(e+k);k=l=x(m-e-k);if(isNaN(e))q=!0;else if(this.horiz){if(k=h,l=m-this.bottom,
  a<g||a>g+this.width)q=!0}else if(a=g,c=n-this.right,k<h||k>h+this.height)q=!0;return q&&!d?null:f.renderer.crispLine(["M",a,k,"L",c,l],b||1)},getLinearTickPositions:function(a,b,c){var d,e=ka(O(b/a)*a),f=ka(Ga(c/a)*a),g=[];if(b===c&&da(b))return[b];for(b=e;b<=f;){g.push(b);b=ka(b+a);if(b===d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e;if(this.isLog)for(e=b.length,a=1;a<e;a++)d=d.concat(this.getLogTickPositions(c,b[a-
  1],b[a],!0));else if(this.isDatetimeAxis&&"auto"===a.minorTickInterval)d=d.concat(this.getTimeTicks(this.normalizeTimeTickInterval(c),this.min,this.max,a.startOfWeek)),d[0]<this.min&&d.shift();else for(b=this.min+(b[0]-this.min)%c;b<=this.max;b+=c)d.push(b);return d},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,h,k,l;this.isXAxis&&this.minRange===w&&!this.isLog&&(v(a.min)||v(a.max)?this.minRange=null:(s(this.series,function(a){k=
  a.xData;for(g=l=a.xIncrement?1:k.length-1;0<g;g--)if(h=k[g]-k[g-1],f===w||h<f)f=h}),this.minRange=N(5*f,this.dataMax-this.dataMin)));if(c-b<this.minRange){var m=this.minRange;d=(m-c+b)/2;d=[b-d,r(a.min,b-d)];e&&(d[2]=this.dataMin);b=za(d);c=[b+m,r(a.max,b+m)];e&&(c[2]=this.dataMax);c=Ca(c);c-b<m&&(d[0]=c-m,d[1]=r(a.min,c-m),b=za(d))}this.min=b;this.max=c},setAxisTranslation:function(a){var b=this,c=b.max-b.min,d=b.axisPointRange||0,e,f=0,g=0,h=b.linkedParent,k=!!b.categories,l=b.transA;if(b.isXAxis||
  k||d)h?(f=h.minPointOffset,g=h.pointRangePadding):s(b.series,function(a){var h=k?1:b.isXAxis?a.pointRange:b.axisPointRange||0,l=a.options.pointPlacement,p=a.closestPointRange;h>c&&(h=0);d=z(d,h);f=z(f,wa(l)?0:h/2);g=z(g,"on"===l?0:h);!a.noSharedTooltip&&v(p)&&(e=v(e)?N(e,p):p)}),h=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=h,b.pointRangePadding=g*=h,b.pointRange=N(d,c),b.closestPointRange=e;a&&(b.oldTransA=l);b.translationSlope=b.transA=l=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;
  b.minPixelPadding=l*f},setTickPositions:function(a){var b=this,c=b.chart,d=b.options,e=d.startOnTick,f=d.endOnTick,g=b.isLog,h=b.isDatetimeAxis,k=b.isXAxis,l=b.isLinked,m=b.options.tickPositioner,n=d.maxPadding,q=d.minPadding,p=d.tickInterval,t=d.minTickInterval,T=d.tickPixelInterval,E,w=b.categories;l?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=r(c.min,c.dataMin),b.max=r(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&aa(11,1)):(b.min=r(b.userMin,d.min,b.dataMin),
  b.max=r(b.userMax,d.max,b.dataMax));g&&(!a&&0>=N(b.min,r(b.dataMin,b.min))&&aa(10,1),b.min=ka(Aa(b.min)),b.max=ka(Aa(b.max)));b.range&&v(b.max)&&(b.userMin=b.min=z(b.min,b.max-b.range),b.userMax=b.max,b.range=null);b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(w||b.axisPointRange||b.usePercentage||l)&&v(b.min)&&v(b.max)&&(c=b.max-b.min)&&(v(d.min)||v(b.userMin)||!q||!(0>b.dataMin)&&b.ignoreMinPadding||(b.min-=c*q),v(d.max)||v(b.userMax)||!n||!(0<b.dataMax)&&b.ignoreMaxPadding||(b.max+=
  c*n));da(d.floor)&&(b.min=z(b.min,d.floor));da(d.ceiling)&&(b.max=N(b.max,d.ceiling));b.min===b.max||void 0===b.min||void 0===b.max?b.tickInterval=1:l&&!p&&T===b.linkedParent.options.tickPixelInterval?b.tickInterval=b.linkedParent.tickInterval:(b.tickInterval=r(p,w?1:(b.max-b.min)*T/z(b.len,T)),!v(p)&&b.len<T&&!this.isRadial&&!this.isLog&&!w&&e&&f&&(E=!0,b.tickInterval/=4));k&&!a&&s(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&
  b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&(b.tickInterval=z(b.pointRange,b.tickInterval));!p&&b.tickInterval<t&&(b.tickInterval=t);h||g||p||(b.tickInterval=Ab(b.tickInterval,null,M.pow(10,O(M.log(b.tickInterval)/M.LN10)),r(d.allowDecimals,!(1<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max))));b.minorTickInterval="auto"===d.minorTickInterval&&b.tickInterval?b.tickInterval/5:d.minorTickInterval;b.tickPositions=
  a=d.tickPositions?[].concat(d.tickPositions):m&&m.apply(b,[b.min,b.max]);a||(!b.ordinalPositions&&(b.max-b.min)/b.tickInterval>z(2*b.len,200)&&aa(19,!0),a=h?b.getTimeTicks(b.normalizeTimeTickInterval(b.tickInterval,d.units),b.min,b.max,d.startOfWeek,b.ordinalPositions,b.closestPointRange,!0):g?b.getLogTickPositions(b.tickInterval,b.min,b.max):b.getLinearTickPositions(b.tickInterval,b.min,b.max),E&&a.splice(1,a.length-2),b.tickPositions=a);l||(d=a[0],g=a[a.length-1],h=b.minPointOffset||0,e?b.min=d:
  b.min-h>d&&a.shift(),f?b.max=g:b.max+h<g&&a.pop(),0===a.length&&v(d)&&a.push((g+d)/2),1===a.length&&(e=1E13<Q(b.max)?1:.001,b.min-=e,b.max+=e))},setMaxTicks:function(){var a=this.chart,b=a.maxTicks||{},c=this.tickPositions,d=this._maxTicksKey=[this.coll,this.pos,this.len].join("-");!this.isLinked&&!this.isDatetimeAxis&&c&&c.length>(b[d]||0)&&!1!==this.options.alignTicks&&(b[d]=c.length);a.maxTicks=b},adjustTickAmount:function(){var a=this._maxTicksKey,b=this.tickPositions,c=this.chart.maxTicks;if(c&&
  c[a]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&!1!==this.options.alignTicks&&this.min!==w){var d=this.tickAmount,e=b.length;this.tickAmount=a=c[a];if(e<a){for(;b.length<a;)b.push(ka(b[b.length-1]+this.tickInterval));this.transA*=(e-1)/(a-1);this.max=b[b.length-1]}v(d)&&a!==d&&(this.isDirty=!0)}},setScale:function(){var a=this.stacks,b,c,d,e;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();e=this.len!==this.oldAxisLength;s(this.series,function(a){if(a.isDirtyData||
  a.isDirty||a.xAxis.isDirty)d=!0});if(e||d||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax){if(!this.isXAxis)for(b in a)for(c in a[b])a[b][c].total=null,a[b][c].cum=0;this.forceRedraw=!1;this.getSeriesExtremes();this.setTickPositions();this.oldUserMin=this.userMin;this.oldUserMax=this.userMax;this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)}else if(!this.isXAxis)for(b in this.oldStacks&&(a=this.stacks=this.oldStacks),a)for(c in a[b])a[b][c].cum=
  a[b][c].total;this.setMaxTicks()},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart;c=r(c,!0);e=u(e,{min:a,max:b});D(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.eventArgs=e;f.isDirtyExtremes=!0;c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options;this.allowZoomOutside||(v(c)&&a<=N(c,r(e.min,c))&&(a=w),v(d)&&b>=z(d,r(e.max,d))&&(b=w));this.displayBtn=a!==w||b!==w;this.setExtremes(a,b,!1,w,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,
  b=this.options,c=b.offsetLeft||0,d=this.horiz,e=r(b.width,a.plotWidth-c+(b.offsetRight||0)),f=r(b.height,a.plotHeight),g=r(b.top,a.plotTop),b=r(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=parseInt(f,10)/100*a.plotHeight);c.test(g)&&(g=parseInt(g,10)/100*a.plotHeight+a.plotTop);this.left=b;this.top=g;this.width=e;this.height=f;this.bottom=a.chartHeight-f-g;this.right=a.chartWidth-e-b;this.len=z(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=this.isLog;return{min:a?ka(oa(this.min)):this.min,max:a?
  ka(oa(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?oa(this.min):this.min,b=b?oa(this.max):this.max;c>a||null===a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(r(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,f=a.ticks,g=a.horiz,h=a.side,k=
  b.inverted?[1,0,3,2][h]:h,l,m,n=0,q,p=0,t=d.title,T=d.labels,E=0,u=b.axisOffset,b=b.clipOffset,x=[-1,1,1,-1][h],y,A=1,C=r(T.maxStaggerLines,5),B,F,D,P,V;a.hasData=l=a.hasVisibleSeries||v(a.min)&&v(a.max)&&!!e;a.showAxis=m=l||r(d.showEmpty,!0);a.staggerLines=a.horiz&&T.staggerLines;a.axisGroup||(a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(),a.labelGroup=c.g("axis-labels").attr({zIndex:T.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+
  "-labels").add());if(l||a.isLinked){a.labelAlign=r(T.align||a.autoLabelAlign(T.rotation));s(e,function(b){f[b]?f[b].addLabel():f[b]=new Fa(a,b)});if(a.horiz&&!a.staggerLines&&C&&!T.rotation){for(l=a.reversed?[].concat(e).reverse():e;A<C;){B=[];F=!1;for(y=0;y<l.length;y++)D=l[y],P=(P=f[D].label&&f[D].label.getBBox())?P.width:0,V=y%A,P&&(D=a.translate(D),B[V]!==w&&D<B[V]&&(F=!0),B[V]=D+P);if(F)A++;else break}1<A&&(a.staggerLines=A)}s(e,function(b){if(0===h||2===h||{1:"left",3:"right"}[h]===a.labelAlign)E=
  z(f[b].getLabelSize(),E)});a.staggerLines&&(E*=a.staggerLines,a.labelOffset=E)}else for(y in f)f[y].destroy(),delete f[y];t&&t.text&&!1!==t.enabled&&(a.axisTitle||(a.axisTitle=c.text(t.text,0,0,t.useHTML).attr({zIndex:7,rotation:t.rotation||0,align:t.textAlign||{low:"left",middle:"center",high:"right"}[t.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(t.style).add(a.axisGroup),a.axisTitle.isNew=!0),m&&(n=a.axisTitle.getBBox()[g?"height":"width"],q=t.offset,p=v(q)?0:r(t.margin,
  g?5:10)),a.axisTitle[m?"show":"hide"]());a.offset=x*r(d.offset,u[h]);c=2===h?a.tickBaseline:0;g=E+p+(E&&x*(g?r(T.y,a.tickBaseline+8):T.x)-c);a.axisTitleMargin=r(q,g);u[h]=z(u[h],a.axisTitleMargin+n+x*a.offset,g);b[k]=z(b[k],2*O(d.lineWidth/2))},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;c&&(a*=-1);return b.renderer.crispLine(["M",e?this.left:f,e?d:this.top,"L",e?b.chartWidth-this.right:
  f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,k=C(e.style.fontSize||12),d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+(2===this.side?k:0);return{x:a?d:b+(g?this.width:0)+h+(e.x||0),y:a?b-(g?this.height:0)+h:d+(e.y||0)}},render:function(){var a=this,b=a.horiz,c=a.reversed,d=a.chart,e=d.renderer,f=a.options,
  g=a.isLog,h=a.isLinked,k=a.tickPositions,l,m=a.axisTitle,n=a.ticks,q=a.minorTicks,p=a.alternateBands,t=f.stackLabels,r=f.alternateGridColor,E=a.tickmarkOffset,u=f.lineWidth,x=d.hasRendered&&v(a.oldMin)&&!isNaN(a.oldMin),y=a.hasData,z=a.showAxis,A,B=f.labels.overflow,C=a.justifyLabels=b&&!1!==B,D;a.labelEdge.length=0;a.justifyToPlot="justify"===B;s([n,q,p],function(a){for(var b in a)a[b].isActive=!1});if(y||h)a.minorTickInterval&&!a.categories&&s(a.getMinorTickPositions(),function(b){q[b]||(q[b]=new Fa(a,
  b,"minor"));x&&q[b].isNew&&q[b].render(null,!0);q[b].render(null,!1,1)}),k.length&&(l=k.slice(),(b&&c||!b&&!c)&&l.reverse(),C&&(l=l.slice(1).concat([l[0]])),s(l,function(b,c){C&&(c=c===l.length-1?0:c+1);if(!h||b>=a.min&&b<=a.max)n[b]||(n[b]=new Fa(a,b)),x&&n[b].isNew&&n[b].render(c,!0,.1),n[b].render(c)}),E&&0===a.min&&(n[-1]||(n[-1]=new Fa(a,-1,null,!0)),n[-1].render(-1))),r&&s(k,function(b,c){0===c%2&&b<a.max&&(p[b]||(p[b]=new K.PlotLineOrBand(a)),A=b+E,D=k[c+1]!==w?k[c+1]+E:a.max,p[b].options=
  {from:g?oa(A):A,to:g?oa(D):D,color:r},p[b].render(),p[b].isActive=!0)}),a._addedPlotLB||(s((f.plotLines||[]).concat(f.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0);s([n,q,p],function(a){var b,c,e=[],f=Z?Z.duration||500:0,g=function(){for(c=e.length;c--;)a[e[c]]&&!a[e[c]].isActive&&(a[e[c]].destroy(),delete a[e[c]])};for(b in a)a[b].isActive||(a[b].render(b,!1,0),a[b].isActive=!1,e.push(b));a!==p&&d.hasRendered&&f?f&&setTimeout(g,f):g()});u&&(b=a.getLinePath(u),a.axisLine?
  a.axisLine.animate({d:b}):a.axisLine=e.path(b).attr({stroke:f.lineColor,"stroke-width":u,zIndex:7}).add(a.axisGroup),a.axisLine[z?"show":"hide"]());m&&z&&(m[m.isNew?"attr":"animate"](a.getTitlePosition()),m.isNew=!1);t&&t.enabled&&a.renderStackTotals();a.isDirty=!1},redraw:function(){this.render();s(this.plotLinesAndBands,function(a){a.render()});s(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b=this,c=b.stacks,d,e=b.plotLinesAndBands;a||S(b);for(d in c)Oa(c[d]),c[d]=null;s([b.ticks,
  b.minorTicks,b.alternateBands],function(a){Oa(a)});for(a=e.length;a--;)e[a].destroy();s("stackTotalGroup axisLine axisTitle axisGroup cross gridGroup labelGroup".split(" "),function(a){b[a]&&(b[a]=b[a].destroy())});this.cross&&this.cross.destroy()},drawCrosshair:function(a,b){if(this.crosshair)if(!1===(v(b)||!r(this.crosshair.snap,!0)))this.hideCrosshair();else{var c,d=this.crosshair,e=d.animation;r(d.snap,!0)?v(b)&&(c=this.chart.inverted!=this.horiz?b.plotX:this.len-b.plotY):c=this.horiz?a.chartX-
  this.pos:this.len-a.chartY+this.pos;c=this.isRadial?this.getPlotLinePath(this.isXAxis?b.x:r(b.stackY,b.y)):this.getPlotLinePath(null,null,null,null,c);if(null===c)this.hideCrosshair();else if(this.cross)this.cross.attr({visibility:"visible"})[e?"animate":"attr"]({d:c},e);else e={"stroke-width":d.width||1,stroke:d.color||"#C0C0C0",zIndex:d.zIndex||2},d.dashStyle&&(e.dashstyle=d.dashStyle),this.cross=this.chart.renderer.path(c).attr(e).add()}},hideCrosshair:function(){this.cross&&this.cross.hide()}};
  u(sa.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b),d=this.getPlotLinePath(a);d&&c?d.push(c[4],c[5],c[1],c[2]):d=null;return d},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(a,b){var c=(new K.PlotLineOrBand(this,a)).render(),d=this.userOptions;c&&(b&&(d[b]=d[b]||[],d[b].push(a)),this.plotLinesAndBands.push(c));return c},removePlotBandOrLine:function(a){for(var b=
  this.plotLinesAndBands,c=this.options,d=this.userOptions,e=b.length;e--;)b[e].id===a&&b[e].destroy();s([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&ea(b,b[e])})}});sa.prototype.getTimeTicks=function(a,b,c,d){var e=[],f={},g=I.global.useUTC,h,k=new ra(b-Ea),l=a.unitRange,m=a.count;if(v(b)){l>=B.second&&(k.setMilliseconds(0),k.setSeconds(l>=B.minute?0:m*O(k.getSeconds()/m)));if(l>=B.minute)k[Cb](l>=B.hour?0:m*O(k[lb]()/m));if(l>=B.hour)k[Db](l>=
  B.day?0:m*O(k[mb]()/m));if(l>=B.day)k[ob](l>=B.month?1:m*O(k[Pa]()/m));l>=B.month&&(k[Eb](l>=B.year?0:m*O(k[$a]()/m)),h=k[ab]());if(l>=B.year)k[Fb](h-h%m);if(l===B.week)k[ob](k[Pa]()-k[nb]()+r(d,1));b=1;Ea&&(k=new ra(k.getTime()+Ea));h=k[ab]();d=k.getTime();for(var n=k[$a](),q=k[Pa](),p=(B.day+(g?Ea:6E4*k.getTimezoneOffset()))%B.day;d<c;)e.push(d),d=l===B.year?Za(h+b*m,0):l===B.month?Za(h,n+b*m):g||l!==B.day&&l!==B.week?d+l*m:Za(h,n,q+b*m*(l===B.day?1:7)),b++;e.push(d);s(tb(e,function(a){return l<=
  B.hour&&a%B.day===p}),function(a){f[a]="day"})}e.info=u(a,{higherRanks:f,totalRange:l*m});return e};sa.prototype.normalizeTimeTickInterval=function(a,b){var c=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],d=c[c.length-1],e=B[d[0]],f=d[1],g;for(g=0;g<c.length&&!(d=c[g],e=B[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+B[c[g+1][0]])/2);g++);e===B.year&&
  a<5*e&&(f=[1,2,5]);c=Ab(a/e,f,"year"===d[0]?z(M.pow(10,O(M.log(a/e)/M.LN10)),1):1);return{unitRange:e,count:c,unitName:d[0]}};var Lb=K.Tooltip=function(){this.init.apply(this,arguments)};Lb.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=C(d.padding);this.chart=a;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.label=a.renderer.label("",0,0,b.shape||"callout",null,null,b.useHTML,null,"tooltip").attr({padding:e,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,
  zIndex:8}).css(d).css({padding:0}).add().attr({y:-9999});Y||this.label.shadow(b.shadow);this.shared=b.shared},destroy:function(){this.label&&(this.label=this.label.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=!1!==e.options.animation&&!e.isHidden&&(1<Q(a-f.x)||1<Q(b-f.y)),h=e.followPointer||1<e.len;u(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?w:g?(2*f.anchorX+c)/3:c,anchorY:h?w:g?(f.anchorY+d)/2:d});e.label.attr(f);g&&(clearTimeout(this.tooltipTimeout),
  this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32))},hide:function(a){var b=this,c;clearTimeout(this.hideTimer);this.isHidden||(c=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){b.label.fadeOut();b.isHidden=!0},r(a,this.options.hideDelay,500)),c&&s(c,function(a){a.setState()}),this.chart.hoverPoints=null)},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=0,h=0,k;a=ga(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===w&&(b=d.pointer.normalize(b)),
  c=[b.chartX-d.plotLeft,b.chartY-f]);c||(s(a,function(a){k=a.series.yAxis;g+=a.plotX;h+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&k?k.top-f:0)}),g/=a.length,h/=a.length,c=[e?d.plotWidth-h:g,this.shared&&!e&&1<a.length&&b?b.chartY-f:e?d.plotHeight-g:h]);return fb(c,x)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,f={},g,h=["y",d.chartHeight,b,c.plotY+d.plotTop],k=["x",d.chartWidth,a,c.plotX+d.plotLeft],l=c.ttBelow||d.inverted&&!c.negative||!d.inverted&&c.negative,m=function(a,
  b,c,d){var g=c<d-e;b=d+e+c<b;c=d-e-c;d+=e;if(l&&b)f[a]=d;else if(!l&&g)f[a]=c;else if(g)f[a]=c;else if(b)f[a]=d;else return!1},n=function(a,b,c,d){if(d<e||d>b-e)return!1;f[a]=d<c/2?1:d>b-c/2?b-c-2:d-c/2},q=function(a){var b=h;h=k;k=b;g=a},p=function(){!1!==m.apply(0,h)?!1!==n.apply(0,k)||g||(q(!0),p()):g?f.x=f.y=0:(q(!0),p())};(d.inverted||1<this.len)&&q();p();return f},defaultFormatter:function(a){var b=this.points||ga(this),c=b[0].series,d;d=[a.tooltipHeaderFormatter(b[0])];s(b,function(a){c=a.series;
  d.push(c.tooltipFormatter&&c.tooltipFormatter(a)||a.point.tooltipFormatter(c.tooltipOptions.pointFormat))});d.push(a.options.footerFormat||"");return d.join("")},refresh:function(a,b){var c=this.chart,d=this.label,e=this.options,f,g,h={},k,l=[];k=e.formatter||this.defaultFormatter;var h=c.hoverPoints,m,n=this.shared;clearTimeout(this.hideTimer);this.followPointer=ga(a)[0].series.tooltipOptions.followPointer;g=this.getAnchor(a,b);f=g[0];g=g[1];!n||a.series&&a.series.noSharedTooltip?h=a.getLabelConfig():
  (c.hoverPoints=a,h&&s(h,function(a){a.setState()}),s(a,function(a){a.setState("hover");l.push(a.getLabelConfig())}),h={x:a[0].category,y:a[0].y},h.points=l,this.len=l.length,a=a[0]);k=k.call(h,this);h=a.series;this.distance=r(h.tooltipOptions.distance,16);!1===k?this.hide():(this.isHidden&&(hb(d),d.attr("opacity",1).show()),d.attr({text:k}),m=e.borderColor||a.color||h.color||"#606060",d.attr({stroke:m}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow}),this.isHidden=!1);
  D(c,"tooltipRefresh",{text:k,x:f+c.plotLeft,y:g+c.plotTop,borderColor:m})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(x(c.x),x(c.y),a.plotX+b.plotLeft,a.plotY+b.plotTop)},tooltipHeaderFormatter:function(a){var b=a.series,c=b.tooltipOptions,d=c.dateTimeLabelFormats,e=c.xDateFormat,f=b.xAxis,g=f&&"datetime"===f.options.type&&da(a.key),c=c.headerFormat,f=f&&f.closestPointRange,h;if(g&&!e){if(f)for(h in B){if(B[h]>=
  f||B[h]<=B.day&&0<a.key%B[h]){e=d[h];break}}else e=d.day;e=e||d.year}g&&e&&(c=c.replace("{point.key}","{point.key:"+e+"}"));return Na(c,{point:a,series:b})}};var fa;Sa=A.documentElement.ontouchstart!==w;var Ka=K.Pointer=function(a,b){this.init(a,b)};Ka.prototype={init:function(a,b){var c=b.chart,d=c.events,e=Y?"":c.zoomType,c=a.inverted,f;this.options=b;this.chart=a;this.zoomX=f=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=f&&!c||e&&c;this.zoomVert=e&&!c||f&&c;this.hasZoom=f||e;this.runChartClick=
  d&&!!d.click;this.pinchDown=[];this.lastValidTouch={};K.Tooltip&&b.tooltip.enabled&&(a.tooltip=new Lb(a,b.tooltip),this.followTouchMove=b.tooltip.followTouchMove);this.setDOMEvents()},normalize:function(a,b){var c,d;a=a||window.event;a=Qb(a);a.target||(a.target=a.srcElement);d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=Pb(this.chart.container));d.pageX===w?(c=z(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-b.top);return u(a,{chartX:x(c),
  chartY:x(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};s(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},getIndex:function(a){var b=this.chart;return b.inverted?b.plotHeight+b.plotTop-a.chartY:a.chartX-b.plotLeft},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e,f,g=b.hoverPoint,h=b.hoverSeries,k,l,m=b.chartWidth,n=this.getIndex(a);if(d&&this.options.tooltip.shared&&(!h||!h.noSharedTooltip)){f=
  [];k=c.length;for(l=0;l<k;l++)c[l].visible&&!1!==c[l].options.enableMouseTracking&&!c[l].noSharedTooltip&&!0!==c[l].singularTooltips&&c[l].tooltipPoints.length&&(e=c[l].tooltipPoints[n])&&e.series&&(e._dist=Q(n-e.clientX),m=N(m,e._dist),f.push(e));for(k=f.length;k--;)f[k]._dist>m&&f.splice(k,1);f.length&&f[0].clientX!==this.hoverX&&(d.refresh(f,a),this.hoverX=f[0].clientX)}c=h&&h.tooltipOptions.followPointer;if(h&&h.tracker&&!c){if((e=h.tooltipPoints[n])&&e!==g)e.onMouseOver(a)}else d&&c&&!d.isHidden&&
  (h=d.getAnchor([{}],a),d.updatePosition({plotX:h[0],plotY:h[1]}));d&&!this._onDocumentMouseMove&&(this._onDocumentMouseMove=function(a){if(R[fa])R[fa].pointer.onDocumentMouseMove(a)},J(A,"mousemove",this._onDocumentMouseMove));s(b.axes,function(b){b.drawCrosshair(a,r(e,g))})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.tooltip,g=f&&f.shared?c.hoverPoints:e;(a=a&&f&&g)&&ga(g)[0].plotX===w&&(a=!1);if(a)f.refresh(g),e&&e.setState(e.state,!0);else{if(e)e.onMouseOut();if(d)d.onMouseOut();
  f&&f.hide(b);this._onDocumentMouseMove&&(S(A,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null);s(c.axes,function(a){a.hideCrosshair()});this.hoverX=null}},scaleGroups:function(a,b){var c=this.chart,d;s(c.series,function(e){d=a||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&(e.group.attr(d),e.markerGroup&&(e.markerGroup.attr(d),e.markerGroup.clip(b?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;
  b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,e=a.chartY,f=this.zoomHor,g=this.zoomVert,h=b.plotLeft,k=b.plotTop,l=b.plotWidth,m=b.plotHeight,n,q=this.mouseDownX,p=this.mouseDownY,t=c.panKey&&a[c.panKey+"Key"];d<h?d=h:d>h+l&&(d=h+l);e<k?e=k:e>k+m&&(e=k+m);this.hasDragged=Math.sqrt(Math.pow(q-d,2)+Math.pow(p-e,2));10<this.hasDragged&&(n=b.isInsidePlot(q-h,p-k),b.hasCartesianSeries&&
  (this.zoomX||this.zoomY)&&n&&!t&&!this.selectionMarker&&(this.selectionMarker=b.renderer.rect(h,k,f?1:l,g?1:m,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&f&&(d-=q,this.selectionMarker.attr({width:Q(d),x:(0<d?0:d)+q})),this.selectionMarker&&g&&(d=e-p,this.selectionMarker.attr({height:Q(d),y:(0<d?0:d)+p})),n&&!this.selectionMarker&&c.panning&&b.pan(a,c.panning))},drop:function(a){var b=this.chart,c=this.hasPinched;if(this.selectionMarker){var d=
  {xAxis:[],yAxis:[],originalEvent:a.originalEvent||a},e=this.selectionMarker,f=e.attr?e.attr("x"):e.x,g=e.attr?e.attr("y"):e.y,h=e.attr?e.attr("width"):e.width,k=e.attr?e.attr("height"):e.height,l;if(this.hasDragged||c)s(b.axes,function(b){if(b.zoomEnabled){var c=b.horiz,e="touchend"===a.type?b.minPixelPadding:0,p=b.toValue((c?f:g)+e),c=b.toValue((c?f+h:g+k)-e);isNaN(p)||isNaN(c)||(d[b.coll].push({axis:b,min:N(p,c),max:z(p,c)}),l=!0)}}),l&&D(b,"selection",d,function(a){b.zoom(u(a,c?{animation:!1}:
  null))});this.selectionMarker=this.selectionMarker.destroy();c&&this.scaleGroups()}b&&(y(b.container,{cursor:b._cursor}),b.cancelClick=10<this.hasDragged,b.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(a){R[fa]&&R[fa].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,d=b.hoverSeries;a=this.normalize(a,c);c&&
  d&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(){var a=R[fa];a&&(a.pointer.reset(),a.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;fa=b.index;a=this.normalize(a);a.returnValue=!1;"mousedown"===b.mouseIsDown&&this.drag(a);!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||b.openMenu||this.runPointActions(a)},inClass:function(a,
  b){for(var c;a;){if(c=H(a,"class")){if(-1!==c.indexOf(b))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries,c=(a=a.relatedTarget||a.toElement)&&a.point&&a.point.series;if(b&&!b.options.stickyTracking&&!this.inClass(a,"highcharts-tooltip")&&c!==b)b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop;a=this.normalize(a);a.cancelBubble=!0;b.cancelClick||(c&&this.inClass(a.target,
  "highcharts-tracker")?(D(c.series,"click",u(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(u(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&D(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container;b.onmousedown=function(b){a.onContainerMouseDown(b)};b.onmousemove=function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};J(b,"mouseleave",a.onContainerMouseLeave);1===Ta&&J(A,"mouseup",a.onDocumentMouseUp);Sa&&(b.ontouchstart=function(b){a.onContainerTouchStart(b)},
  b.ontouchmove=function(b){a.onContainerTouchMove(b)},1===Ta&&J(A,"touchend",a.onDocumentTouchEnd))},destroy:function(){var a;S(this.chart.container,"mouseleave",this.onContainerMouseLeave);Ta||(S(A,"mouseup",this.onDocumentMouseUp),S(A,"touchend",this.onDocumentTouchEnd));clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}};u(K.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f);(this.zoomVert||this.pinchVert)&&
  this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var k=this.chart,l=a?"x":"y",m=a?"X":"Y",n="chart"+m,q=a?"width":"height",p=k["plot"+(a?"Left":"Top")],t,r,s=h||1,u=k.inverted,w=k.bounds[a?"h":"v"],v=1===b.length,x=b[0][n],y=c[0][n],z=!v&&b[1][n],A=!v&&c[1][n],B;c=function(){!v&&20<Q(x-z)&&(s=h||Q(y-A)/Q(x-z));r=(p-y)/s+x;t=k["plot"+(a?"Width":"Height")]/s};c();b=r;b<w.min?(b=w.min,B=!0):b+t>w.max&&(b=w.max-t,B=!0);B?(y-=.8*(y-g[l][0]),v||(A-=.8*(A-g[l][1])),
  c()):g[l]=[y,A];u||(f[l]=r-p,f[q]=t);f=u?1/s:s;e[q]=t;e[l]=b;d[u?a?"scaleY":"scaleX":"scale"+m]=s;d["translate"+m]=f*p+(y-f*x)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=b.followTouchMove,f=a.touches,g=f.length,h=b.lastValidTouch,k=b.hasZoom,l=b.selectionMarker,m={},n=1===g&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),q={};!k&&!e||n||a.preventDefault();fb(f,function(a){return b.normalize(a)});"touchstart"===a.type?(s(f,function(a,b){d[b]={chartX:a.chartX,
  chartY:a.chartY}}),h.x=[d[0].chartX,d[1]&&d[1].chartX],h.y=[d[0].chartY,d[1]&&d[1].chartY],s(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(r(a.options.min,a.dataMin)),f=a.toPixels(r(a.options.max,a.dataMax)),g=N(e,f),e=z(e,f);b.min=N(a.pos,g-d);b.max=z(a.pos+a.len,e+d)}}),b.res=!0):d.length&&(l||(b.selectionMarker=l=u({destroy:cb},c.plotBox)),b.pinchTranslate(d,f,m,l,q,h),b.hasPinched=k,b.scaleGroups(m,q),!k&&e&&1===g?this.runPointActions(b.normalize(a)):
  b.res&&(b.res=!1,this.reset(!1,0)))},onContainerTouchStart:function(a){var b=this.chart;fa=b.index;1===a.touches.length?(a=this.normalize(a),b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)?(this.runPointActions(a),this.pinch(a)):this.reset()):2===a.touches.length&&this.pinch(a)},onContainerTouchMove:function(a){1!==a.touches.length&&2!==a.touches.length||this.pinch(a)},onDocumentTouchEnd:function(a){R[fa]&&R[fa].pointer.drop(a)}});if(G.PointerEvent||G.MSPointerEvent){var ja={},yb=!!G.PointerEvent,
  Wb=function(){var a,b=[];b.item=function(a){return this[a]};for(a in ja)ja.hasOwnProperty(a)&&b.push({pageX:ja[a].pageX,pageY:ja[a].pageY,target:ja[a].target});return b},zb=function(a,b,c,d){a=a.originalEvent||a;"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!R[fa]||(d(a),d=R[fa].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:cb,touches:Wb()}))};u(Ka.prototype,{onContainerPointerDown:function(a){zb(a,"onContainerTouchStart","touchstart",function(a){ja[a.pointerId]={pageX:a.pageX,
  pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){zb(a,"onContainerTouchMove","touchmove",function(a){ja[a.pointerId]={pageX:a.pageX,pageY:a.pageY};ja[a.pointerId].target||(ja[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){zb(a,"onContainerTouchEnd","touchend",function(a){delete ja[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,yb?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,yb?"pointermove":
  "MSPointerMove",this.onContainerPointerMove);a(A,yb?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});Ba(Ka.prototype,"init",function(a,b,c){a.call(this,b,c);(this.hasZoom||this.followTouchMove)&&y(b.container,{"-ms-touch-action":"none","touch-action":"none"})});Ba(Ka.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(J)});Ba(Ka.prototype,"destroy",function(a){this.batchMSEvents(S);a.call(this)})}var ib=K.Legend=function(a,b){this.init(a,
  b)};ib.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=r(b.padding,8),f=b.itemMarginTop||0;this.options=b;b.enabled&&(c.itemStyle=d,c.itemHiddenStyle=F(d,b.itemHiddenStyle),c.itemMarginTop=f,c.padding=e,c.initialItemX=e,c.initialItemY=e-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.lastLineHeight=0,c.symbolWidth=r(b.symbolWidth,16),c.pages=[],c.render(),J(c.chart,"endResize",function(){c.positionCheckboxes()}))},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,
  f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,h=b?a.legendColor||a.color||"#CCC":g,g=a.options&&a.options.marker,k={fill:h},l;d&&d.css({fill:c,color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(l in k.stroke=h,g=a.convertAttribs(g),g)d=g[l],d!==w&&(k[l]=d);f.attr(k)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d);f&&(f.x=e,f.y=
  d)},destroyItem:function(a){var b=a.checkbox;s(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&Da(a.checkbox)},destroy:function(){var a=this.group,b=this.box;b&&(this.box=b.destroy());a&&(this.group=a.destroy())},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight;b&&(c=b.translateY,s(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,y(f,{left:b.translateX+e.checkboxOffset+f.x-20+"px",
  top:g+"px",display:g>c-6&&g<c+d-6?"":"none"}))}))},renderTitle:function(){var a=this.padding,b=this.options.title,c=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,a-3,a-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(b.style).add(this.group)),a=this.title.getBBox(),c=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:c}));this.titleHeight=c},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,e="horizontal"===d.layout,f=this.symbolWidth,
  g=d.symbolPadding,h=this.itemStyle,k=this.itemHiddenStyle,l=this.padding,m=e?r(d.itemDistance,20):0,n=!d.rtl,q=d.width,p=d.itemMarginBottom||0,t=this.itemMarginTop,s=this.initialItemX,u=a.legendItem,w=a.series&&a.series.drawLegendSymbol?a.series:a,v=w.options,v=this.createCheckboxForItem&&v&&v.showCheckbox,y=d.useHTML;u||(a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),a.legendItem=u=c.text(d.labelFormat?Na(d.labelFormat,a):d.labelFormatter.call(a),n?f+g:-g,this.baseline||
  0,y).css(F(a.visible?h:k)).attr({align:n?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.baseline=c.fontMetrics(h.fontSize,u).f+3+t,u.attr("y",this.baseline)),w.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,u,y,h,k),this.colorizeItem(a,a.visible),v&&this.createCheckboxForItem(a));c=u.getBBox();f=a.checkboxOffset=d.itemWidth||a.legendItemWidth||f+g+c.width+m+(v?20:0);this.itemHeight=g=x(a.legendItemHeight||c.height);e&&this.itemX-s+f>(q||b.chartWidth-2*l-s-d.x)&&
  (this.itemX=s,this.itemY+=t+this.lastLineHeight+p,this.lastLineHeight=0);this.maxItemWidth=z(this.maxItemWidth,f);this.lastItemY=t+this.itemY+p;this.lastLineHeight=z(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=t+g+p,this.lastLineHeight=g);this.offsetWidth=q||z((e?this.itemX-s-m:f)+l,this.offsetWidth)},getAllItems:function(){var a=[];s(this.chart.series,function(b){var c=b.options;r(c.showInLegend,v(c.linkedTo)?!1:w,!0)&&(a=a.concat(b.legendItems||("point"===
  c.legendType?b.data:b)))});return a},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,k=a.box,l=a.options,m=a.padding,n=l.borderWidth,q=l.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;d||(a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup));a.renderTitle();e=a.getAllItems();kb(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||
  0)});l.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;s(e,function(b){a.renderItem(b)});g=l.width||a.offsetWidth;h=a.lastItemY+a.lastLineHeight+a.titleHeight;h=a.handleOverflow(h);if(n||q)g+=m,h+=m,k?0<g&&0<h&&(k[k.isNew?"attr":"animate"](k.crisp({width:g,height:h})),k.isNew=!1):(a.box=k=c.rect(0,0,g,h,l.borderRadius,n||0).attr({stroke:l.borderColor,"stroke-width":n||0,fill:q||"none"}).add(d).shadow(l.shadow),k.isNew=!0),k[f?"show":"hide"]();a.legendWidth=g;a.legendHeight=h;s(e,function(b){a.positionItem(b)});
  f&&d.align(u({width:g,height:h},l),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+("top"===e.verticalAlign?-f:f)-this.padding,g=e.maxHeight,h,k=this.clipRect,l=e.navigation,m=r(l.animation,!0),n=l.arrowSize||12,q=this.nav,p=this.pages,t,u=this.allItems;"horizontal"===e.layout&&(f/=2);g&&(f=N(f,g));p.length=0;a>f&&!e.useHTML?(this.clipHeight=h=z(f-20-this.titleHeight-this.padding,0),
  this.currentPage=r(this.currentPage,1),this.fullHeight=a,s(u,function(a,b){var c=a._legendItemPos[1],d=x(a.legendItem.getBBox().height),e=p.length;if(!e||c-p[e-1]>h&&(t||c)!==p[e-1])p.push(t||c),e++;b===u.length-1&&c+d-p[e-1]>h&&p.push(c);c!==t&&(t=c)}),k||(k=b.clipRect=d.clipRect(0,this.padding,9999,0),b.contentGroup.clip(k)),k.attr({height:h}),q||(this.nav=q=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,n,n).on("click",function(){b.scroll(-1,m)}).add(q),this.pager=d.text("",
  15,10).css(l.style).add(q),this.down=d.symbol("triangle-down",0,0,n,n).on("click",function(){b.scroll(1,m)}).add(q)),b.scroll(0),a=f):q&&(k.attr({height:c.chartHeight}),q.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,k=this.pager,l=this.padding;e>d&&(e=d);0<e&&(b!==w&&(Z=r(b,this.chart.animation)),this.nav.attr({translateX:l,
  translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===e?g:h}).css({cursor:1===e?"default":"pointer"}),k.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c))}};var Xb=K.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||12;b.legendSymbol=this.chart.renderer.rect(0,
  a.baseline-5-c/2,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options,c=b.marker,d;d=a.symbolWidth;var e=this.chart.renderer,f=this.legendGroup;a=a.baseline-x(.3*e.fontMetrics(a.options.itemStyle.fontSize,this.legendItem).b);var g;b.lineWidth&&(g={"stroke-width":b.lineWidth},b.dashStyle&&(g.dashstyle=b.dashStyle),this.legendLine=e.path(["M",0,a,"L",d,a]).attr(g).add(f));c&&!1!==c.enabled&&(b=c.radius,this.legendSymbol=d=e.symbol(this.symbol,
  d/2-b,a-b,2*b,2*b).add(f),d.isMarker=!0)}};(/Trident\/7\.0/.test(ma)||Ha)&&Ba(ib.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)});Qa.prototype={init:function(a,b){var c,d=a.series;a.series=null;c=F(I,a);c.series=a.series=d;this.userOptions=a;d=c.chart;this.margin=this.splashArray("margin",d);this.spacing=this.splashArray("spacing",d);var e=d.events;this.bounds={h:{},v:{}};this.callback=b;this.isResizing=0;this.options=c;this.axes=[];
  this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=R.length;R.push(f);Ta++;!1!==d.reflow&&J(f,"load",function(){f.initReflow()});if(e)for(g in e)J(f,g,e[g]);f.xAxis=[];f.yAxis=[];f.animation=Y?!1:r(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=ba[a.type||b.type||b.defaultSeriesType])||aa(17,!0);b=new b;b.init(this,a);return b},isInsidePlot:function(a,b,c){var d=c?b:a;a=c?a:b;return 0<=d&&d<=this.plotWidth&&
  0<=a&&a<=this.plotHeight},adjustTickAmounts:function(){!1!==this.options.chart.alignTicks&&s(this.axes,function(a){a.adjustTickAmount()});this.maxTicks=null},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,k=this.hasCartesianSeries,l=this.isDirtyBox,m=c.length,n=m,q=this.renderer,p=q.isHidden(),t=[];Z=r(a,this.animation);p&&this.cloneRenderTo();for(this.layOutTitles();n--;)if(a=c[n],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(n=
  m;n--;)a=c[n],a.options.stacking&&(a.isDirty=!0);s(c,function(a){a.isDirty&&"point"===a.options.legendType&&(f=!0)});f&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);g&&this.getStacks();k&&(this.isResizing||(this.maxTicks=null,s(b,function(a){a.setScale()})),this.adjustTickAmounts());this.getMargins();k&&(s(b,function(a){a.isDirty&&(l=!0)}),s(b,function(a){a.isDirtyExtremes&&(a.isDirtyExtremes=!1,t.push(function(){D(a,"afterSetExtremes",u(a.eventArgs,a.getExtremes()));delete a.eventArgs}));
  (l||g)&&a.redraw()}));l&&this.drawChartBox();s(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset(!0);q.draw();D(this,"redraw");p&&this.cloneRenderTo(!0);s(t,function(a){a.call()})},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;d<b.length;d++)if(b[d].options.id===a)return b[d];for(d=0;d<c.length;d++)if(c[d].options.id===a)return c[d];for(d=0;d<c.length;d++)for(e=c[d].points||[],b=0;b<e.length;b++)if(e[b].id===a)return e[b];return null},getAxes:function(){var a=
  this,b=this.options,c=b.xAxis=ga(b.xAxis||{}),b=b.yAxis=ga(b.yAxis||{});s(c,function(a,b){a.index=b;a.isX=!0});s(b,function(a,b){a.index=b});c=c.concat(b);s(c,function(b){new sa(a,b)});a.adjustTickAmounts()},getSelectedPoints:function(){var a=[];s(this.series,function(b){a=a.concat(tb(b.points||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return tb(this.series,function(a){return a.selected})},getStacks:function(){var a=this;s(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&
  (a.oldStacks=a.stacks)});s(a.series,function(b){!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=b.type+r(b.options.stack,""))})},setTitle:function(a,b,c){var d=this,e=d.options,f;f=e.title=F(e.title,a);e=e.subtitle=F(e.subtitle,b);s([["title",a,f],["subtitle",b,e]],function(a){var b=a[0],c=d[b],e=a[1];a=a[2];c&&e&&(d[b]=c=c.destroy());a&&a.text&&!c&&(d[b]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add())});
  d.layOutTitles(c)},layOutTitles:function(a){var b=0,c=this.title,d=this.subtitle,e=this.options,f=e.title,e=e.subtitle,g=this.renderer,h=this.spacingBox.width-44;c&&(c.css({width:(f.width||h)+"px"}).align(u({y:g.fontMetrics(f.style.fontSize,c).b-3},f),!1,"spacingBox"),f.floating||f.verticalAlign||(b=c.getBBox().height));d&&(d.css({width:(e.width||h)+"px"}).align(u({y:b+(f.margin-13)+g.fontMetrics(f.style.fontSize,d).b},e),!1,"spacingBox"),e.floating||e.verticalAlign||(b=Ga(b+d.getBBox().height)));
  c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=c,this.hasRendered&&r(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;v(b)||(this.containerWidth=eb(c,"width"));v(a)||(this.containerHeight=eb(c,"height"));this.chartWidth=z(0,b||this.containerWidth||600);this.chartHeight=z(0,r(a,19<this.containerHeight?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,
  c=this.container;a?b&&(this.renderTo.appendChild(c),Da(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),y(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),A.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a,b=this.options.chart,c,d,e;this.renderTo=a=b.renderTo;e="highcharts-"+rb++;wa(a)&&(this.renderTo=a=A.getElementById(a));
  a||aa(13,!0);c=C(H(a,"data-highcharts-chart"));!isNaN(c)&&R[c]&&R[c].hasRendered&&R[c].destroy();H(a,"data-highcharts-chart",this.index);a.innerHTML="";b.skipClone||a.offsetWidth||this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=U("div",{className:"highcharts-container"+(b.className?" "+b.className:""),id:e},u({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},
  b.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=b.forExport?new ia(a,c,d,b.style,!0):new Ra(a,c,d,b.style);Y&&this.renderer.create(this,a,c,d)},getMargins:function(){var a=this.spacing,b,c=this.legend,d=this.margin,e=this.options.legend,f=r(e.margin,20),g=e.x,h=e.y,k=e.align,l=e.verticalAlign,m=this.titleOffset;this.resetMargins();b=this.axisOffset;m&&!v(d[0])&&(this.plotTop=z(this.plotTop,m+this.options.title.margin+a[0]));c.display&&!e.floating&&("right"===k?v(d[1])||(this.marginRight=
  z(this.marginRight,c.legendWidth-g+f+a[1])):"left"===k?v(d[3])||(this.plotLeft=z(this.plotLeft,c.legendWidth+g+f+a[3])):"top"===l?v(d[0])||(this.plotTop=z(this.plotTop,c.legendHeight+h+f+a[0])):"bottom"!==l||v(d[2])||(this.marginBottom=z(this.marginBottom,c.legendHeight-h+f+a[2])));this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&s(this.axes,function(a){a.getOffset()});v(d[3])||(this.plotLeft+=b[3]);
  v(d[0])||(this.plotTop+=b[0]);v(d[2])||(this.marginBottom+=b[2]);v(d[1])||(this.marginRight+=b[1]);this.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=b.renderTo,e=c.width||eb(d,"width"),f=c.height||eb(d,"height"),c=a?a.target:G,d=function(){b.container&&(b.setSize(e,f,!1),b.hasUserSize=null)};if(!b.hasUserSize&&e&&f&&(c===G||c===A)){if(e!==b.containerWidth||f!==b.containerHeight)clearTimeout(b.reflowTimeout),a?b.reflowTimeout=setTimeout(d,100):d();b.containerWidth=e;b.containerHeight=
  f}},initReflow:function(){var a=this,b=function(b){a.reflow(b)};J(G,"resize",b);J(a,"destroy",function(){S(G,"resize",b)})},setSize:function(a,b,c){var d=this,e,f,g;d.isResizing+=1;g=function(){d&&D(d,"endResize",null,function(){--d.isResizing})};Z=r(c,d.animation);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;v(a)&&(d.chartWidth=e=z(0,x(a)),d.hasUserSize=!!e);v(b)&&(d.chartHeight=f=z(0,x(b)));(Z?gb:y)(d.container,{width:e+"px",height:f+"px"},Z);d.setChartSize(!0);d.renderer.setSize(e,
  f,c);d.maxTicks=null;s(d.axes,function(a){a.isDirty=!0;a.setScale()});s(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight=null;D(d,"resize");!1===Z?g():setTimeout(g,Z&&Z.duration||500)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,k,l,m,n;this.plotLeft=k=x(this.plotLeft);this.plotTop=l=x(this.plotTop);this.plotWidth=
  m=z(0,x(d-k-this.marginRight));this.plotHeight=n=z(0,x(e-l-this.marginBottom));this.plotSizeX=b?n:m;this.plotSizeY=b?m:n;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=c.plotBox={x:k,y:l,width:m,height:n};d=2*O(this.plotBorderWidth/2);b=Ga(z(d,h[3])/2);c=Ga(z(d,h[0])/2);this.clipBox={x:b,y:c,width:O(this.plotSizeX-z(d,h[1])/2-b),height:z(0,O(this.plotSizeY-z(d,h[2])/2-c))};a||s(this.axes,function(a){a.setAxisSize();
  a.setAxisTranslation()})},resetMargins:function(){var a=this.spacing,b=this.margin;this.plotTop=r(b[0],a[0]);this.marginRight=r(b[1],a[1]);this.marginBottom=r(b[2],a[2]);this.plotLeft=r(b[3],a[3]);this.axisOffset=[0,0,0,0];this.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,k=a.borderWidth||0,l=a.backgroundColor,m=a.plotBackgroundColor,n=a.plotBackgroundImage,
  q=a.plotBorderWidth||0,p,r=this.plotLeft,s=this.plotTop,u=this.plotWidth,v=this.plotHeight,w=this.plotBox,y=this.clipRect,x=this.clipBox;p=k+(a.shadow?8:0);if(k||l)e?e.animate(e.crisp({width:c-p,height:d-p})):(e={fill:l||"none"},k&&(e.stroke=a.borderColor,e["stroke-width"]=k),this.chartBackground=b.rect(p/2,p/2,c-p,d-p,a.borderRadius,k).attr(e).addClass("highcharts-background").add().shadow(a.shadow));m&&(f?f.animate(w):this.plotBackground=b.rect(r,s,u,v,0).attr({fill:m}).add().shadow(a.plotShadow));
  n&&(h?h.animate(w):this.plotBGImage=b.image(n,r,s,u,v).add());y?y.animate({width:x.width,height:x.height}):this.clipRect=b.clipRect(x);q&&(g?g.animate(g.crisp({x:r,y:s,width:u,height:v,strokeWidth:-q})):this.plotBorder=b.rect(r,s,u,v,0,-q).attr({stroke:a.plotBorderColor,"stroke-width":q,fill:"none",zIndex:1}).add());this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;s(["inverted","angular","polar"],function(g){c=ba[b.type||b.defaultSeriesType];f=a[g]||
  b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=ba[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;s(b,function(a){a.linkedSeries.length=0});s(b,function(b){var d=b.options.linkedTo;wa(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&(d.linkedSeries.push(b),b.linkedParent=d)})},renderSeries:function(){s(this.series,function(a){a.translate();a.setTooltipPoints&&a.setTooltipPoints();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;
  b.items&&s(b.items,function(c){var d=u(b.style,c.style),e=C(d.left)+a.plotLeft,f=C(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options;this.setTitle();this.legend=new ib(this,c.legend);this.getStacks();s(a,function(a){a.setScale()});this.getMargins();this.maxTicks=null;s(a,function(a){a.setTickPositions(!0);a.setMaxTicks()});this.adjustTickAmounts();this.getMargins();this.drawChartBox();
  this.hasCartesianSeries&&s(a,function(a){a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.showCredits(c.credits);this.hasRendered=!0},showCredits:function(a){a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text,0,0).on("click",function(){a.href&&(location.href=a.href)}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position))},destroy:function(){var a=this,b=a.axes,c=a.series,
  d=a.container,e,f=d&&d.parentNode;D(a,"destroy");R[a.index]=w;Ta--;a.renderTo.removeAttribute("data-highcharts-chart");S(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();s("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer scroller rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});d&&(d.innerHTML="",S(d),f&&Da(d));for(e in a)delete a[e]},
  isReadyToRender:function(){var a=this;return!X&&G==G.top&&"complete"!==A.readyState||Y&&!G.canvg?(Y?Kb.push(function(){a.firstRender()},a.options.global.canvasToolsURL):A.attachEvent("onreadystatechange",function(){A.detachEvent("onreadystatechange",a.firstRender);"complete"===A.readyState&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;a.isReadyToRender()&&(a.getContainer(),D(a,"init"),a.resetMargins(),a.setChartSize(),a.propFromSeries(),a.getAxes(),s(b.series||
  [],function(b){a.initSeries(b)}),a.linkSeries(),D(a,"beforeRender"),K.Pointer&&(a.pointer=new Ka(a,b)),a.render(),a.renderer.draw(),c&&c.apply(a,[a]),s(a.callbacks,function(b){b.apply(a,[a])}),a.cloneRenderTo(!0),D(a,"load"))},splashArray:function(a,b){var c=b[a],c=W(c)?c:[c,c,c,c];return[r(b[a+"Top"],c[0]),r(b[a+"Right"],c[1]),r(b[a+"Bottom"],c[2]),r(b[a+"Left"],c[3])]}};Qa.prototype.callbacks=[];var La=function(){};La.prototype={init:function(a,b,c){this.series=a;this.applyOptions(b,c);this.pointAttr=
  {};a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length&&(a.colorCounter=0));a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey;a=La.prototype.optionsToObject.call(this,a);u(this,a);this.options=this.options?u(this.options,a):a;d&&(this.y=this[d]);this.x===w&&c&&(this.x=b===w?c.autoIncrement():b);return this},optionsToObject:function(a){var b={},c=
  this.series,d=c.pointArrayMap||["y"],e=d.length,f=0,g=0;if("number"===typeof a||null===a)b[d[0]]=a;else if(xa(a))for(a.length>e&&(c=typeof a[0],"string"===c?b.name=a[0]:"number"===c&&(b.x=a[0]),f++);g<e;)b[d[g++]]=a[f++];else"object"===typeof a&&(b=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;b&&(this.setState(),ea(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();
  if(this.graphic||this.dataLabel)S(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a="graphic dataLabel dataLabelUpper group connector shadowGroup".split(" "),b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=
  this.series,c=b.tooltipOptions,d=r(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";s(b.pointArrayMap||["y"],function(b){b="{point."+b;if(e||f)a=a.replace(b+"}",e+b+"}"+f);a=a.replace(b+"}",b+":,."+d+"f}")});return Na(a,{point:this,series:this.series})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents();"click"===a&&e.allowPointSelect&&(c=function(a){d.select(null,a.ctrlKey||a.metaKey||
  a.shiftKey)});D(this,a,b,c)}};var Ma=function(){};Ma.prototype={isCartesian:!0,type:"line",pointClass:La,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(a,b){var c=this,d,e,f=a.series,g=function(a,b){return r(a.options.index,a._i)-r(b.options.index,b._i)};c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();u(c,{name:b.name,state:"",
  pointAttr:{},visible:!1!==b.visible,selected:!0===b.selected});Y&&(b.animation=!1);e=b.events;for(d in e)J(c,d,e[d]);if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();s(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);f.push(c);c._i=f.length-1;kb(f,g);this.yAxis&&kb(this.yAxis.series,g);s(f,function(a,b){a.index=b;a.name=a.name||"Series "+(b+1)})},bindAxes:function(){var a=
  this,b=a.options,c=a.chart,d;s(a.axisTypes||[],function(e){s(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]!==w&&b[e]===d.id||b[e]===w&&0===d.index)c.series.push(a),a[e]=c,c.isDirty=!0});a[e]||a.optionalAxis===e||aa(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments;s(c.parallelArrays,"number"===typeof b?function(d){var f="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=f}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))})},autoIncrement:function(){var a=
  this.options,b=this.xIncrement,b=r(b,a.pointStart,0);this.pointInterval=r(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval;return b},getSegments:function(){var a=-1,b=[],c,d=this.points,e=d.length;if(e)if(this.options.connectNulls){for(c=e;c--;)null===d[c].y&&d.splice(c,1);d.length&&(b=[d])}else s(d,function(c,g){null===c.y?(g>a+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments=b},setOptions:function(a){var b=this.chart,c=b.options.plotOptions,
  b=b.userOptions||{},d=b.plotOptions||{},e=c[this.type];this.userOptions=a;c=F(e,c.series,a);this.tooltipOptions=F(I.tooltip,I.plotOptions[this.type].tooltip,b.tooltip,d.series&&d.series.tooltip,d[this.type]&&d[this.type].tooltip,a.tooltip);null===e.marker&&delete c.marker;return c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(v(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]);this[a]=b},getColor:function(){this.options.colorByPoint||this.getCyclic("color",
  this.options.color||Ia[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols);/^url/.test(this.symbol)&&(a.radius=0)},drawLegendSymbol:Xb.drawLineMarker,setData:function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,k=e.options,l=e.chart,m=null,n=e.xAxis,q=n&&!!n.categories,p=e.tooltipPoints,t=k.turboThreshold,u=this.xData,v=this.yData,x=(h=e.pointArrayMap)&&h.length;a=a||[];h=a.length;b=r(b,!0);
  if(!1===d||!h||g!==h||e.cropped||e.hasGroupedData){e.xIncrement=null;e.pointRange=q?1:k.pointRange;e.colorCounter=0;s(this.parallelArrays,function(a){e[a+"Data"].length=0});if(t&&h>t){for(c=0;null===m&&c<h;)m=a[c],c++;if(da(m)){q=r(k.pointStart,0);k=r(k.pointInterval,1);for(c=0;c<h;c++)u[c]=q,v[c]=a[c],q+=k;e.xIncrement=q}else if(xa(m))if(x)for(c=0;c<h;c++)k=a[c],u[c]=k[0],v[c]=k.slice(1,x+1);else for(c=0;c<h;c++)k=a[c],u[c]=k[0],v[c]=k[1];else aa(12)}else for(c=0;c<h;c++)a[c]!==w&&(k={series:e},
  e.pointClass.prototype.applyOptions.apply(k,[a[c]]),e.updateParallelArrays(k,c),q&&k.name&&(n.names[k.x]=k.name));wa(v[0])&&aa(14,!0);e.data=[];e.options.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();p&&(p.length=0);n&&(n.minRange=n.userMinRange);e.isDirty=e.isDirtyData=l.isDirtyBox=!0;c=!1}else s(a,function(a,b){f[b].update(a,!1,null,!1)});b&&l.redraw(c)},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e;e=0;var f,g,h=this.xAxis,k,l=this.options;k=l.cropThreshold;var m=
  0,n=this.isCartesian,q,p;if(n&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!a)return!1;h&&(q=h.getExtremes(),p=q.min,q=q.max);if(n&&this.sorted&&(!k||d>k||this.forceCrop))if(b[d-1]<p||b[0]>q)b=[],c=[];else if(b[0]<p||b[d-1]>q)e=this.cropData(this.xData,this.yData,p,q),b=e.xData,c=e.yData,e=e.start,f=!0,m=b.length;for(k=b.length-1;0<=k;k--)d=b[k]-b[k-1],!f&&b[k]>p&&b[k]<q&&m++,0<d&&(g===w||d<g)?g=d:0>d&&this.requireSorting&&aa(15);this.cropped=f;this.cropStart=e;this.processedXData=b;this.processedYData=
  c;this.activePointCount=m;null===l.pointRange&&(this.pointRange=g||1);this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,f=0,g=e,h=r(this.cropShoulder,1),k;for(k=0;k<e;k++)if(a[k]>=c){f=z(0,k-h);break}for(;k<e;k++)if(a[k]>d){g=k+h;break}return{xData:a.slice(f,g),yData:b.slice(f,g),start:f,end:g}},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,k,l=this.hasGroupedData,m,n=[],
  q;b||l||(b=[],b.length=a.length,b=this.data=b);for(q=0;q<g;q++)k=h+q,l?n[q]=(new f).init(this,[d[q]].concat(ga(e[q]))):(b[k]?m=b[k]:a[k]!==w&&(b[k]=m=(new f).init(this,a[k],d[q])),n[q]=m),n[q].index=k;if(b&&(g!==(c=b.length)||l))for(q=0;q<c;q++)q!==h||l||(q+=g),b[q]&&(b[q].destroyElements(),b[q].plotX=w);this.data=b;this.points=n},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,e=[],f=0;d=this.xAxis.getExtremes();var g=d.min,h=d.max,k,l,m,n;a=a||this.stackedYData||this.processedYData;
  d=a.length;for(n=0;n<d;n++)if(l=c[n],m=a[n],k=null!==m&&m!==w&&(!b.isLog||m.length||0<m),l=this.getExtremesFromAll||this.cropped||(c[n+1]||l)>=g&&(c[n-1]||l)<=h,k&&l)if(k=m.length)for(;k--;)null!==m[k]&&(e[f++]=m[k]);else e[f++]=m;this.dataMin=r(void 0,Ca(e));this.dataMax=r(void 0,za(e))},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,g=f.length,h=!!this.modifyValue,k=a.pointPlacement,
  l="between"===k||da(k),m=a.threshold,a=0;a<g;a++){var n=f[a],q=n.x,p=n.y,t=n.low,s=b&&e.stacks[(this.negStacks&&p<m?"-":"")+this.stackKey];e.isLog&&0>=p&&(n.y=p=null,aa(10));n.plotX=c.translate(q,0,0,0,1,k,"flags"===this.type);b&&this.visible&&s&&s[q]&&(s=s[q],p=s.points[this.index+","+a],t=p[0],p=p[1],0===t&&(t=r(m,e.min)),e.isLog&&0>=t&&(t=null),n.total=n.stackTotal=s.total,n.percentage=s.total&&n.y/s.total*100,n.stackY=p,s.setOffset(this.pointXOffset||0,this.barW||0));n.yBottom=v(t)?e.translate(t,
  0,1,0,1):null;h&&(p=this.modifyValue(p,n));n.plotY="number"===typeof p&&Infinity!==p?e.translate(p,0,1,0,1):w;n.clientX=l?c.translate(q,0,0,0,1):n.plotX;n.negative=n.y<(m||0);n.category=d&&d[n.x]!==w?d[n.x]:n.x}this.getSegments()},animate:function(a){var b=this.chart,c=b.renderer,d;d=this.options.animation;var e=this.clipBox||b.clipBox,f=b.inverted,g;d&&!W(d)&&(d=Ia[this.type].animation);g=["_sharedClip",d.duration,d.easing,e.height].join();a?(a=b[g],d=b[g+"m"],a||(b[g]=a=c.clipRect(u(e,{width:0})),
  b[g+"m"]=d=c.clipRect(-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),this.group.clip(a),this.markerGroup.clip(d),this.sharedClipKey=g):((a=b[g])&&a.animate({width:b.plotSizeX},d),b[g+"m"]&&b[g+"m"].animate({width:b.plotSizeX+99},d),this.animate=null)},afterAnimate:function(){var a=this.chart,b=this.sharedClipKey,c=this.group,d=this.clipBox;c&&!1!==this.options.clip&&(b&&d||c.clip(d?a.renderer.clipRect(d):a.clipRect),this.markerGroup.clip());D(this,"afterAnimate");setTimeout(function(){b&&
  a[b]&&(d||(a[b]=a[b].destroy()),a[b+"m"]&&(a[b+"m"]=a[b+"m"].destroy()))},100)},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,k,l,m,n=this.options.marker,q=this.pointAttr[""],p,s,v,y=this.markerGroup,z=r(n.enabled,!this.requireSorting||this.activePointCount<.5*this.xAxis.len/n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(f=b.length;f--;)g=b[f],d=O(g.plotX),e=g.plotY,m=g.graphic,p=g.marker||{},s=!!g.marker,a=z&&p.enabled===w||p.enabled,v=c.isInsidePlot(x(d),e,c.inverted),
  a&&e!==w&&!isNaN(e)&&null!==g.y?(a=g.pointAttr[g.selected?"select":""]||q,h=a.r,k=r(p.symbol,this.symbol),l=0===k.indexOf("url"),m?m[v?"show":"hide"](!0).animate(u({x:d-h,y:e-h},m.symbolName?{width:2*h,height:2*h}:{})):v&&(0<h||l)&&(g.graphic=c.renderer.symbol(k,d-h,e-h,2*h,2*h,s?p:n).attr(a).add(y))):m&&(g.graphic=m.destroy())},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={};a=a||{};b=b||{};c=c||{};d=d||{};for(f in e)g=e[f],h[f]=r(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=
  this,b=a.options,c=Ia[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color;f={stroke:g,fill:g};var h=a.points||[],k,l=[],m,n=a.pointAttrToOptions;m=a.hasPointSpecificOptions;var q=b.negativeColor,p=c.lineColor,r=c.fillColor;k=b.turboThreshold;var w;b.marker?(e.radius=e.radius||c.radius+e.radiusPlus,e.lineWidth=e.lineWidth||c.lineWidth+e.lineWidthPlus):e.color=e.color||ua(e.color||g).brighten(e.brightness).get();l[""]=a.convertAttribs(c,f);s(["hover","select"],function(b){l[b]=a.convertAttribs(d[b],
  l[""])});a.pointAttr=l;g=h.length;if(!k||g<k||m)for(;g--;){k=h[g];(c=k.options&&k.options.marker||k.options)&&!1===c.enabled&&(c.radius=0);k.negative&&q&&(k.color=k.fillColor=q);m=b.colorByPoint||k.color;if(k.options)for(w in n)v(c[n[w]])&&(m=!0);m?(c=c||{},m=[],d=c.states||{},f=d.hover=d.hover||{},b.marker||(f.color=f.color||!k.options.color&&e.color||ua(k.color).brighten(f.brightness||e.brightness).get()),f={color:k.color},r||(f.fillColor=k.color),p||(f.lineColor=k.color),m[""]=a.convertAttribs(u(f,
  c),l[""]),m.hover=a.convertAttribs(d.hover,l.hover,m[""]),m.select=a.convertAttribs(d.select,l.select,m[""])):m=l;k.pointAttr=m}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(ma),d,e,f=a.data||[],g,h,k;D(a,"destroy");S(a);s(a.axisTypes||[],function(b){if(k=a[b])ea(k.series,a),k.isDirty=k.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(e=f.length;e--;)(g=f[e])&&g.destroy&&g.destroy();a.points=null;clearTimeout(a.animationTimeout);s("area graph dataLabelsGroup group markerGroup tracker graphNeg areaNeg posClip negClip".split(" "),
  function(b){a[b]&&(d=c&&"group"===b?"hide":"destroy",a[b][d]())});b.hoverSeries===a&&(b.hoverSeries=null);ea(b.series,a);for(h in a)delete a[h]},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;s(a,function(e,f){var g=e.plotX,h=e.plotY,k;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(k=a[f-1],"right"===d?c.push(k.plotX,h):"center"===d?c.push((k.plotX+g)/2,k.plotY,(k.plotX+g)/2,h):c.push(g,k.plotY)),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=
  this,b=[],c,d=[];s(a.segments,function(e){c=a.getSegmentPath(e);1<e.length?b=b.concat(c):d.push(e[0])});a.singlePoints=d;return a.graphPath=b},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||this.color]],d=b.lineWidth,e=b.dashStyle,f="square"!==b.linecap,g=this.getGraphPath(),h=b.negativeColor;h&&c.push(["graphNeg",h]);s(c,function(c,h){var m=c[0],n=a[m];n?(hb(n),n.animate({d:g})):d&&g.length&&(n={stroke:c[1],"stroke-width":d,fill:"none",zIndex:1},e?n.dashstyle=e:f&&(n["stroke-linecap"]=
  n["stroke-linejoin"]="round"),a[m]=a.chart.renderer.path(g).attr(n).add(a.group).shadow(!h&&b.shadow))})},clipNeg:function(){var a=this.options,b=this.chart,c=b.renderer,d=a.negativeColor||a.negativeFillColor,e,f=this.graph,g=this.area,h=this.posClip,k=this.negClip;e=b.chartWidth;var l=b.chartHeight,m=z(e,l),n=this.yAxis;d&&(f||g)&&(d=x(n.toPixels(a.threshold||0,!0)),0>d&&(m-=d),a={x:0,y:0,width:m,height:d},m={x:0,y:d,width:m,height:m},b.inverted&&(a.height=m.y=b.plotWidth-d,c.isVML&&(a={x:b.plotWidth-
  d-b.plotLeft,y:0,width:e,height:l},m={x:d+b.plotLeft-e,y:0,width:b.plotLeft+d,height:e})),n.reversed?(b=m,e=a):(b=a,e=m),h?(h.animate(b),k.animate(e)):(this.posClip=h=c.clipRect(b),this.negClip=k=c.clipRect(e),f&&this.graphNeg&&(f.clip(h),this.graphNeg.clip(k)),g&&(g.clip(h),this.areaNeg.clip(k))))},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};s(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;b.xAxis&&(J(c,"resize",a),J(b,
  "destroy",function(){S(c,"resize",a)}),a(),b.invertGroups=a)},plotGroup:function(a,b,c,d,e){var f=this[a],g=!f;g&&(this[a]=f=this.chart.renderer.g(b).attr({visibility:c,zIndex:d||.1}).add(e));f[g?"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,c,d=a.options,e=(c=d.animation)&&!!a.animate&&
  b.renderer.isSVG&&r(c.duration,500)||0,f=a.visible?"visible":"hidden",g=d.zIndex,h=a.hasRendered,k=b.seriesGroup;c=a.plotGroup("group","series",f,g,k);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,k);e&&a.animate(!0);a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.clipNeg());s(a.points,function(a){a.redraw&&a.redraw()});a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();b.inverted&&
  a.invertGroups();!1===d.clip||a.sharedClipKey||h||c.clip(b.clipRect);e&&a.animate();h||(e?a.animationTimeout=setTimeout(function(){a.afterAnimate()},e):a.afterAnimate());a.isDirty=a.isDirtyData=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:r(d&&d.left,a.plotLeft),translateY:r(e&&e.top,a.plotTop)}));this.translate();this.setTooltipPoints&&this.setTooltipPoints(!0);
  this.render();b&&D(this,"updatedData")}};u(Qa.prototype,{addSeries:function(a,b,c){var d,e=this;a&&(b=r(b,!0),D(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;e.linkSeries();b&&e.redraw(c)}));return d},addAxis:function(a,b,c,d){var e=b?"xAxis":"yAxis",f=this.options;new sa(this,F(a,{index:this[e].length,isX:b}));f[e]=ga(f[e]||{});f[e].push(a);r(c,!0)&&this.redraw(d)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&y(d,{left:b.plotLeft+
  "px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=U("div",{className:"highcharts-loading"},u(e.style,{zIndex:10,display:"none"}),b.container),b.loadingSpan=U("span",null,e.labelStyle,d),J(b,"redraw",f));b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown||(y(d,{opacity:0,display:""}),gb(d,{opacity:e.style.opacity},{duration:e.showDuration||0}),b.loadingShown=!0);f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&gb(b,{opacity:0},{duration:a.loading.hideDuration||
  100,complete:function(){y(b,{display:"none"})}});this.loadingShown=!1}});u(La.prototype,{update:function(a,b,c,d){function e(){f.applyOptions(a);W(a)&&!xa(a)&&(f.redraw=function(){h&&(a&&a.marker&&a.marker.symbol?f.graphic=h.destroy():h.attr(f.pointAttr[f.state||""]));a&&a.dataLabels&&f.dataLabel&&(f.dataLabel=f.dataLabel.destroy());f.redraw=null});k=f.index;g.updateParallelArrays(f,k);m.data[k]=f.options;g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(l.isDirtyBox=!0);"point"===m.legendType&&
  l.legend.destroyItem(f);b&&l.redraw(c)}var f=this,g=f.series,h=f.graphic,k,l=g.chart,m=g.options;b=r(b,!0);!1===d?e():f.firePointEvent("update",{options:a},e)},remove:function(a,b){var c=this,d=c.series,e=d.points,f=d.chart,g,h=d.data;Z=r(b,f.animation);a=r(a,!0);c.firePointEvent("remove",null,function(){g=Ua(c,h);h.length===e.length&&e.splice(g,1);h.splice(g,1);d.options.data.splice(g,1);d.updateParallelArrays(c,"splice",g,1);c.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&f.redraw()})}});u(Ma.prototype,
  {addPoint:function(a,b,c,d){var e=this.options,f=this.data,g=this.graph,h=this.area,k=this.chart,l=this.xAxis&&this.xAxis.names,m=g&&g.shift||0,n=e.data,q,p=this.xData;Z=r(d,k.animation);c&&s([g,h,this.graphNeg,this.areaNeg],function(a){a&&(a.shift=m+1)});h&&(h.isArea=!0);b=r(b,!0);d={series:this};this.pointClass.prototype.applyOptions.apply(d,[a]);g=d.x;h=p.length;if(this.requireSorting&&g<p[h-1])for(q=!0;h&&p[h-1]>g;)h--;this.updateParallelArrays(d,"splice",h,0,0);this.updateParallelArrays(d,h);
  l&&d.name&&(l[g]=d.name);n.splice(h,0,a);q&&(this.data.splice(h,0,null),this.processData());"point"===e.legendType&&this.generatePoints();c&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(d,"shift"),n.shift()));this.isDirtyData=this.isDirty=!0;b&&(this.getAttribs(),k.redraw())},remove:function(a,b){var c=this,d=c.chart;a=r(a,!0);c.isRemoving||(c.isRemoving=!0,D(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=!0;d.linkSeries();a&&d.redraw(b)}));c.isRemoving=
  !1},update:function(a,b){var c=this,d=this.chart,e=this.userOptions,f=this.type,g=ba[f].prototype,h=["group","markerGroup","dataLabelsGroup"],k;s(h,function(a){h[a]=c[a];delete c[a]});a=F(e,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},a);this.remove(!1);for(k in g)g.hasOwnProperty(k)&&(this[k]=w);u(this,ba[a.type||f].prototype);s(h,function(a){c[a]=h[a]});this.init(d,a);d.linkSeries();r(b,!0)&&d.redraw(!1)}});u(sa.prototype,{update:function(a,b){var c=this.chart;
  a=c.options[this.coll][this.options.index]=F(this.userOptions,a);this.destroy(!0);this._addedPlotLB=w;this.init(c,u(a,{events:w}));c.isDirtyBox=!0;r(b,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);ea(b.axes,this);ea(b[c],this);b.options[c].splice(this.options.index,1);s(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;r(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,
  b){this.update({categories:a},b)}});var Yb=Wa(Ma);ba.line=Yb;Ia.spline=F(Rb);var Zb=Wa(Ma,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,k,l,m;if(f&&g){a=f.plotY;l=g.plotX;var g=g.plotY,n;h=(1.5*d+f.plotX)/2.5;k=(1.5*e+a)/2.5;l=(1.5*d+l)/2.5;m=(1.5*e+g)/2.5;n=(m-k)*(l-d)/(l-h)+e-m;k+=n;m+=n;k>a&&k>e?(k=z(a,e),m=2*e-k):k<a&&k<e&&(k=N(a,e),m=2*e-k);m>g&&m>e?(m=z(g,e),k=2*e-m):m<g&&m<e&&(m=N(g,e),k=2*e-m);b.rightContX=l;b.rightContY=m}c?(b=["C",f.rightContX||
  f.plotX,f.rightContY||f.plotY,h||d,k||e,d,e],f.rightContX=f.rightContY=null):b=["M",d,e];return b}});ba.spline=Zb;var jb=K.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(c){var d=c.target,e;if(b.hoverSeries!==a)a.onMouseOver();for(;d&&!e;)e=d.point,d=d.parentNode;if(e!==w&&e!==b.hoverPoint)e.onMouseOver(c)};s(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&(a.dataLabel.element.point=a)});a._hasTracking||
  (s(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),Sa))a[b].on("touchstart",f)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,k=f.options.tooltip.snap,l=a.tracker,m=b.cursor,n=m&&{cursor:m},m=a.singlePoints,q,p=function(){if(f.hoverSeries!==a)a.onMouseOver()},r="rgba(192,192,192,"+
  (X?1E-4:.002)+")";if(e&&!c)for(q=e+1;q--;)"M"===d[q]&&d.splice(q+1,0,d[q+1]-k,d[q+2],"L"),(q&&"M"===d[q]||q===e)&&d.splice(q,0,"L",d[q-2]+k,d[q-1]);for(q=0;q<m.length;q++)e=m[q],d.push("M",e.plotX-k,e.plotY,"L",e.plotX+k,e.plotY);l?l.attr({d:d}):(a.tracker=h.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:r,fill:c?r:"none","stroke-width":b.lineWidth+(c?0:2*k),zIndex:2}).add(a.group),s([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",
  p).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(n);if(Sa)a.on("touchstart",p)}))}};ba.column&&(ColumnSeries.prototype.drawTracker=jb.drawTrackerPoint);ba.pie&&(ba.pie.prototype.drawTracker=jb.drawTrackerPoint);ba.scatter&&(ScatterSeries.prototype.drawTracker=jb.drawTrackerPoint);u(ib.prototype,{setItemEvents:function(a,b,c,d,e){var f=this;(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");b.css(f.options.itemHoverStyle)}).on("mouseout",function(){b.css(a.visible?d:e);a.setState()}).on("click",
  function(b){var c=function(){a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):D(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=U("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);J(a.checkbox,"click",function(b){D(a,"checkboxClick",{checked:b.target.checked},function(){a.select()})})}});I.legend.itemStyle.cursor="pointer";u(Qa.prototype,{showResetZoom:function(){var a=
  this,b=I.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).add().align(c.position,!1,f)},zoomOut:function(){var a=this;D(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,c=this.pointer,d=!1,e;!a||a.resetSelection?s(this.axes,function(a){b=a.zoom()}):s(a.xAxis.concat(a.yAxis),
  function(a){var e=a.axis,h=e.isXAxis;if(c[h?"zoomX":"zoomY"]||c[h?"pinchX":"pinchY"])b=e.zoom(a.min,a.max),e.displayBtn&&(d=!0)});e=this.resetZoomButton;d&&!e?this.showResetZoom():!d&&W(e)&&(this.resetZoomButton=e.destroy());b&&this.redraw(r(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&s(d,function(a){a.setState()});s("xy"===b?[1,0]:[1],function(b){var d=a[b?"chartX":"chartY"],h=c[b?"xAxis":"yAxis"][0],k=c[b?"mouseDownX":"mouseDownY"],
  l=(h.pointRange||0)/2,m=h.getExtremes(),n=h.toValue(k-d,!0)+l,k=h.toValue(k+c[b?"plotWidth":"plotHeight"]-d,!0)-l;h.series.length&&n>N(m.dataMin,m.min)&&k<z(m.dataMax,m.max)&&(h.setExtremes(n,k,!1,!1,{trigger:"pan"}),e=!0);c[b?"mouseDownX":"mouseDownY"]=d});e&&c.redraw(!1);y(c.container,{cursor:"move"})}});u(La.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart;a=r(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;d.options.data[Ua(c,
  d.data)]=c.options;c.setState(a&&"select");b||s(e.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[Ua(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series,c=b.chart,d=c.tooltip,e=c.hoverPoint;if(e&&e!==this)e.onMouseOut();this.firePointEvent("mouseOver");!d||d.shared&&!b.noSharedTooltip||d.refresh(this,a);this.setState("hover");c.hoverPoint=this},onMouseOut:function(){var a=this.series.chart,
  b=a.hoverPoints;this.firePointEvent("mouseOut");b&&-1!==Ua(this,b)||(this.setState(),a.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var a=F(this.series.options.point,this.options).events,b;this.events=a;for(b in a)J(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a,b){var c=this.plotX,d=this.plotY,e=this.series,f=e.options.states,g=Ia[e.type].marker&&e.options.marker,h=g&&!g.enabled,k=g&&g.states[a],l=k&&!1===k.enabled,m=e.stateMarkerGraphic,n=this.marker||{},q=
  e.chart,p=e.halo,r;a=a||"";r=this.pointAttr[a]||e.pointAttr[a];if(!(a===this.state&&!b||this.selected&&"select"!==a||f[a]&&!1===f[a].enabled||a&&(l||h&&!1===k.enabled)||a&&n.states&&n.states[a]&&!1===n.states[a].enabled)){if(this.graphic)g=g&&this.graphic.symbolName&&r.r,this.graphic.attr(F(r,g?{x:c-g,y:d-g,width:2*g,height:2*g}:{})),m&&m.hide();else{if(a&&k)if(g=k.radius,n=n.symbol||e.symbol,m&&m.currentSymbol!==n&&(m=m.destroy()),m)m[b?"animate":"attr"]({x:c-g,y:d-g});else n&&(e.stateMarkerGraphic=
  m=q.renderer.symbol(n,c-g,d-g,2*g,2*g).attr(r).add(e.markerGroup),m.currentSymbol=n);if(m)m[a&&q.isInsidePlot(c,d,q.inverted)?"show":"hide"]()}(c=f[a]&&f[a].halo)&&c.size?(p||(e.halo=p=q.renderer.path().add(e.seriesGroup)),p.attr(u({fill:ua(this.color||e.color).setOpacity(c.opacity).get()},c.attributes))[b?"animate":"attr"]({d:this.haloPath(c.size)})):p&&p.attr({d:[]});this.state=a}},haloPath:function(a){var b=this.series,c=b.chart,d=b.getPlotBox(),e=c.inverted;return c.renderer.symbols.circle(d.translateX+
  (e?b.yAxis.len-this.plotY:this.plotX)-a,d.translateY+(e?b.xAxis.len-this.plotX:this.plotY)-a,2*a,2*a)}});u(Ma.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&D(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;if(d)d.onMouseOut();this&&a.events.mouseOut&&D(this,"mouseOut");!c||a.stickyTracking||c.shared&&!this.noSharedTooltip||
  c.hide();this.setState();b.hoverSeries=null},setState:function(a){var b=this.options,c=this.graph,d=this.graphNeg,e=b.states,b=b.lineWidth;a=a||"";this.state!==a&&(this.state=a,e[a]&&!1===e[a].enabled||(a&&(b=e[a].lineWidth||b+(e[a].lineWidthPlus||0)),c&&!c.dashstyle&&(a={"stroke-width":b},c.attr(a),d&&d.attr(a))))},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,g=d.options.chart.ignoreHiddenSeries,h=c.visible;f=(c.visible=a=c.userOptions.visible=a===w?!h:a)?"show":"hide";s(["group",
  "dataLabelsGroup","markerGroup","tracker"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&s(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});s(c.linkedSeries,function(b){b.setVisible(a,!1)});g&&(d.isDirtyBox=!0);!1!==b&&d.redraw();D(c,f)},setTooltipPoints:function(a){var b=[],c,d,e=this.xAxis,f=e&&e.getExtremes(),g=e?e.tooltipLen||e.len:this.chart.plotSizeX,h,k,l=[];if(!1!==this.options.enableMouseTracking&&
  !this.singularTooltips){a&&(this.tooltipPoints=null);s(this.segments||this.points,function(a){b=b.concat(a)});e&&e.reversed&&(b=b.reverse());this.orderTooltipPoints&&this.orderTooltipPoints(b);a=b.length;for(k=0;k<a;k++)if(e=b[k],c=e.x,c>=f.min&&c<=f.max)for(h=b[k+1],c=d===w?0:d+1,d=b[k+1]?N(z(0,O((e.clientX+(h?h.wrappedClientX||h.clientX:g))/2)),g):g;0<=c&&c<=d;)l[c++]=e;this.tooltipPoints=l}},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=
  a=a===w?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);D(this,a?"select":"unselect")},drawTracker:jb.drawTrackerGraph});u(K,{Axis:sa,Chart:Qa,Color:ua,Point:La,Tick:Fa,Renderer:Ra,Series:Ma,SVGElement:L,SVGRenderer:ia,arrayMin:Ca,arrayMax:za,charts:R,dateFormat:Xa,format:Na,pathAnim:sb,getOptions:function(){return I},hasBidiBug:Mb,isTouchDevice:Hb,numberFormat:qa,seriesTypes:ba,setOptions:function(a){I=F(!0,I,a);Bb();return I},addEvent:J,removeEvent:S,createElement:U,discardElement:Da,
  css:y,each:s,extend:u,map:fb,merge:F,pick:r,splat:ga,extendClass:Wa,pInt:C,wrap:Ba,svg:X,canvas:Y,vml:!X&&!Y,product:"Highcharts 4.0.4",version:"/Highstock 2.0.4"})})(); 
  