text: /*
   Highcharts 4.1.7 JS v/Highstock 2.1.7 (2015-06-26)
  
   (c) 2009-2014 Torstein Honsi
  
   License: www.highcharts.com/license
  
   Highcharts funnel module
  
   (c) 2010-2014 Torstein Honsi
  
   License: www.highcharts.com/license
   Highcharts 4.1.7 JS v/Highstock 2.1.7 (2015-06-26)
   Exporting module
  
   (c) 2010-2014 Torstein Honsi
  
   License: www.highcharts.com/license
   Highcharts 4.1.7 JS v/Highstock 2.1.7 (2015-06-26)
   Data module
  
   (c) 2012-2014 Torstein Honsi
  
   License: www.highcharts.com/license
   Highcharts 4.1.7 JS v/Highstock 2.1.7 (2015-06-26)
   Plugin for displaying a message when there is no data visible in chart.
  
   (c) 2010-2014 Highsoft AS
   Author: Oystein Moseng
  
   License: www.highcharts.com/license
    Highcharts 4.1.7 JS v/Highstock 2.1.7 (2015-06-26)
   Solid angular gauge module
  
   (c) 2010-2014 Torstein Honsi
  
   License: www.highcharts.com/license
   Highcharts 4.1.7 JS v/Highstock 2.1.7 (2015-06-26)
  
   (c) 2011-2014 Torstein Honsi
  
   License: www.highcharts.com/license
  */
  (function(){function q(){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 I(a,b){return parseInt(a,b||10)}function W(a){return"string"===typeof a}function V(a){return a&&
  "object"===typeof a}function Q(a){return"[object Array]"===Object.prototype.toString.call(a)}function T(a){return"number"===typeof a}function F(a){return ja.log(a)/ja.LN10}function h(a){return ja.pow(10,a)}function p(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function r(a){return a!==J&&null!==a}function R(a,b,c){var d,e;if(W(b))r(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(r(b)&&V(b))for(d in b)a.setAttribute(d,b[d]);return e}function y(a){return Q(a)?
  a:[a]}function x(a,b){Ha&&!ua&&b&&b.opacity!==J&&(b.filter="alpha(opacity="+100*b.opacity+")");M(a.style,b)}function A(a,b,c,d,e){a=S.createElement(a);b&&M(a,b);e&&x(a,{padding:0,border:"none",margin:0});c&&x(a,c);d&&d.appendChild(a);return a}function O(a,b){var c=function(){return J};c.prototype=new a;M(c.prototype,b);return c}function E(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function ia(a,b){return/%$/.test(a)?b*parseFloat(a)/100:parseFloat(a)}function D(a){return 6E4*(db&&db(a)||
  pb||0)}function v(a,b){for(var c="{",d=!1,e,f,g,l,n,t=[];-1!==(c=a.indexOf(c));){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");n=g.length;e=b;for(l=0;l<n;l++)e=e[g[l]];f.length&&(f=f.join(":"),g=/\.([0-9])/,l=ra.lang,n=void 0,/f$/.test(f)?(n=(n=f.match(g))?n[1]:-1,null!==e&&(e=Y.numberFormat(e,n,l.decimalPoint,-1<f.indexOf(",")?l.thousandsSep:""))):e=Ra(f,e))}t.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}t.push(a);return t.join("")}function m(a){return ja.pow(10,fa(ja.log(a)/ja.LN10))}function k(a,
  b,c,d,e){var f,g=a;c=z(c,1);f=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&&!(g=b[d],e&&g*c>=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/2);d++);return g*c}function B(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 K(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function ga(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function ka(a,
  b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function oa(a){eb||(eb=A("div"));a&&eb.appendChild(a);eb.innerHTML=""}function U(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;ca.console&&console.log(c)}function la(a){return parseFloat(a.toPrecision(14))}function Sa(a,b){Ia=z(a,b.animation)}function La(){var a=ra.global,b=a.useUTC,c=b?"getUTC":"get",d=b?"setUTC":"set";Ja=a.Date||window.Date;pb=b&&a.timezoneOffset;db=b&&a.getTimezoneOffset;
  fb=function(a,c,d,l,n,t){var u;b?(u=Ja.UTC.apply(0,arguments),u+=D(u)):u=(new Ja(a,c,z(d,1),z(l,0),z(n,0),z(t,0))).getTime();return u};qb=c+"Minutes";rb=c+"Hours";sb=c+"Day";Wa=c+"Date";Xa=c+"Month";Ya=c+"FullYear";Fb=d+"Milliseconds";Gb=d+"Seconds";Hb=d+"Minutes";Ib=d+"Hours";tb=d+"Date";ub=d+"Month";vb=d+"FullYear"}function da(){}function Ma(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||d||this.addLabel()}function Jb(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=
  c;this.options=b;this.x=d;this.total=null;this.points={};this.stack=e;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:z(b.y,f?4:c?14:-6),x:z(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":"center")}function qa(a,b,c){this.init.call(this,a,b,c)}var J,S=document,ca=window,ja=Math,P=ja.round,fa=ja.floor,Ca=ja.ceil,L=ja.max,X=ja.min,ea=ja.abs,va=ja.cos,Da=ja.sin,Ea=ja.PI,Ta=2*Ea/360,Ka=navigator.userAgent,
  Kb=ca.opera,Ha=/(msie|trident)/i.test(Ka)&&!Kb,gb=/AppleWebKit/.test(Ka),Na=/Firefox/.test(Ka),Lb=/(Mobile|Android|Windows Phone)/.test(Ka),ua=!!S.createElementNS&&!!S.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,Tb=Na&&4>parseInt(Ka.split("Firefox/")[1],10),ya=!ua&&!Ha&&!!S.createElement("canvas").getContext,Za,Mb={},wb=0,eb,ra,Ra,Ia,xb,ba,ma=function(){return J},sa=[],$a=0,Ub=/^[0-9]+$/,hb=["plotTop","marginRight","marginBottom","plotLeft"],Ja,fb,pb,db,qb,rb,sb,Wa,Xa,Ya,Fb,
  Gb,Hb,Ib,tb,ub,vb,N={},Y;Y=ca.Highcharts=ca.Highcharts?U(16,!0):{};Y.seriesTypes=N;var M=Y.extend=function(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a},z=Y.pick=function(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==J&&null!==c)return c},pa=Y.wrap=function(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)}};Ra=function(a,b,c){if(!r(b)||isNaN(b))return"Invalid date";a=z(a,"%Y-%m-%d %H:%M:%S");var d=new Ja(b-D(b)),
  e,f=d[rb](),g=d[sb](),l=d[Wa](),n=d[Xa](),t=d[Ya](),u=ra.lang,C=u.weekdays,d=M({a:C[g].substr(0,3),A:C[g],d:E(l),e:l,w:g,b:u.shortMonths[n],B:u.months[n],m:E(n+1),y:t.toString().substr(2,2),Y:t,H:E(f),I:E(f%12||12),l:f%12||12,M:E(d[qb]()),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:E(d.getSeconds()),L:E(P(b%1E3),3)},Y.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};ba={millisecond:1,second:1E3,
  minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};Y.numberFormat=function(a,b,c,d){var e=ra.lang;a=+a||0;var f=-1===b?X((a.toString().split(".")[1]||"").length,20):isNaN(b=ea(b))?2:b;b=void 0===c?e.decimalPoint:c;d=void 0===d?e.thousandsSep:d;e=0>a?"-":"";c=String(I(a=ea(a).toFixed(f)));var g=3<c.length?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+ea(a-c).toFixed(f).slice(2):"")};xb={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 l,n,t=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&&(t(b),t(c));a.isArea&&(l=b.splice(b.length-6,6),n=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);l&&(b=b.concat(l),c=c.concat(n));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){ca.HighchartsAdapter=ca.HighchartsAdapter||a&&{init:function(b){var c=a.fx;a.extend(a.easing,{easeOutQuad:function(a,b,c,g,l){return-g*(b/=l)*(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?J:a.now):g.apply(this,arguments)})});pa(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]&&(W(b[0])&&(a=b[0],b=Array.prototype.slice.call(b,1)),c=b[0],c!==J&&(c.chart=c.chart||{},c.chart.renderTo=this[0],new Y[a](c,b[1]),g=this),c===J&&(g=sa[R(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=S.removeEventListener?"removeEventListener":"detachEvent";S[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,l;!Ha&&d&&(delete d.layerX,delete d.layerY,delete d.returnValue);M(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&&(l=!0)}}});a(b).trigger(f);b[g]&&(b[c]=b[g],b[g]=null);!e||f.isDefaultPrevented()||l||e(f)},washMouseEvent:function(a){var c=a.originalEvent||a;c.pageX===J&&(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!==J&&b.attr&&(c.opacity+="px");b.hasAnim=1;e.animate(c,d)},stop:function(b){b.hasAnim&&a(b).stop()}}})(ca.jQuery);
  var ib=ca.HighchartsAdapter,wa=ib||{};ib&&ib.init.call(ib,xb);var jb=wa.adapterRun,Oa=wa.inArray,w=Y.each=wa.each,kb=wa.grep,Vb=wa.offset,Pa=wa.map,na=wa.addEvent,ta=wa.removeEvent,ha=wa.fireEvent,Wb=wa.washMouseEvent,lb=wa.animate,ab=wa.stop;ra={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #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.1.7/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com@product.cdnpath@//Highstock 2.1.7/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:{align:"center",formatter:function(){return null===this.y?"":Y.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},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:ua,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"},footerFormat:"",headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:Lb?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 aa=ra.plotOptions,bb=aa.line;La();var Xb=/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*\)/,Yb=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,Zb=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,Fa=function(a){var b=[],c,d;(function(a){a&&a.stops?d=Pa(a.stops,function(a){return Fa(a[1])}):(c=Xb.exec(a))?b=[I(c[1]),I(c[2]),I(c[3]),parseFloat(c[4],10)]:(c=Yb.exec(a))?b=[I(c[1],16),I(c[2],16),I(c[3],16),1]:(c=Zb.exec(a))&&(b=[I(c[1]),
  I(c[2]),I(c[3]),1])})(a);return{get:function(c){var f;d?(f=q(a),f.stops=[].concat(f.stops),w(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)w(d,function(b){b.brighten(a)});else if(T(a)&&0!==a){var c;for(c=0;3>c;c++)b[c]+=I(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},raw:a}};da.prototype={opacity:1,
  textProps:"fontSize fontWeight fontFamily fontStyle color lineHeight width textDecoration textShadow".split(" "),init:function(a,b){this.element="span"===b?A(b):S.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a},animate:function(a,b,c){b=z(b,Ia,!0);ab(this);b?(b=q(b,{}),c&&(b.complete=c),lb(this,a,b)):(this.attr(a),c&&c());return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,l,n,t,u,C,H,G,za=[];a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");
  if(f){g=a[f];l=d.gradients;t=a.stops;H=c.radialReference;Q(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&H&&!r(g.gradientUnits)&&(g=q(g,{cx:H[0]-H[2]/2+g.cx*H[2],cy:H[1]-H[2]/2+g.cy*H[2],r:g.r*H[2],gradientUnits:"userSpaceOnUse"}));for(G in g)"id"!==G&&za.push(G,g[G]);for(G in t)za.push(t[G]);za=za.join(",");l[za]?a=l[za].attr("id"):(g.id=a="highcharts-"+wb++,l[za]=n=d.createElement(f).attr(g).add(d.defs),n.stops=[],w(t,function(a){0===a[1].indexOf("rgba")?
  (e=Fa(a[1]),u=e.get("rgb"),C=e.get("a")):(u=a[1],C=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":u,"stop-opacity":C}).add(n);n.stops.push(a)}));c.setAttribute(b,"url("+d.url+"#"+a+")")}},applyTextShadow:function(a){var b=this.element,c,d=-1!==a.indexOf("contrast"),e={},f=this.renderer.forExport||b.style.textShadow!==J&&!Ha;d&&(e.textShadow=a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));gb&&(e.textRendering="geometricPrecision");f?x(b,e):(this.fakeTS=!0,this.ySetter=
  this.xSetter,c=[].slice.call(b.getElementsByTagName("tspan")),w(a.split(/\s?,\s?/g),function(a){var d=b.firstChild,e,f;a=a.split(" ");e=a[a.length-1];(f=a[a.length-2])&&w(c,function(a,c){var g;0===c&&(a.setAttribute("x",b.getAttribute("x")),c=b.getAttribute("y"),a.setAttribute("y",c||0),null===c&&b.setAttribute("y",0));g=a.cloneNode(1);R(g,{"class":"highcharts-text-shadow",fill:e,stroke:e,"stroke-opacity":1/L(I(f),3),"stroke-width":f,"stroke-linejoin":"round"});b.insertBefore(g,d)})}))},attr:function(a,
  b){var c,d,e=this.element,f,g=this,l;"string"===typeof a&&b!==J&&(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],l=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(f||(this.symbolAttr(a),f=!0),l=!0),!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0),l||(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?L(b-(c[d].cutHeight||0),0):"d"===a?this.d:b)},addClass:function(a){var b=this.element,c=R(b,"class")||"";-1===c.indexOf(a)&&R(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;w("x y r start end width height innerR anchorX anchorY".split(" "),function(c){b[c]=z(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=P(e)%2/2;a.x=fa(a.x||this.x||0)+d;a.y=fa(a.y||this.y||0)+d;a.width=fa((a.width||this.width||0)-2*d);a.height=fa((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()&&I(a.width)||this.textWidth;b&&(a=M(b,c));this.styles=a;e&&(ya||!ua&&this.renderer.forExport)&&delete a.width;if(Ha&&!ua)x(this.element,a);else{b=function(a,b){return"-"+b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";R(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;Za&&"click"===a?(d.ontouchstart=function(a){c.touchEventFired=
  Ja.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(-1===Ka.indexOf("Android")||1100<Ja.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)+")");(r(c)||r(d))&&a.push("scale("+z(c,1)+" "+z(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,l={};e=this.renderer;f=e.alignedObjects;if(a){if(this.alignOptions=
  a,this.alignByTranslate=b,!c||W(c))this.alignTo=d=c||"renderer",p(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=z(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];l[b?"translateX":"x"]=P(f);if("bottom"===e||"middle"===e)g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);l[b?"translateY":"y"]=P(g);this[this.placed?"animate":"attr"](l);this.placed=
  !0;this.alignAttr=l;return this},getBBox:function(a){var b,c=this.renderer,d,e=this.rotation,f=this.element,g=this.styles,l=e*Ta;d=this.textStr;var n,t=f.style,u,C;d!==J&&(C=["",e||0,g&&g.fontSize,f.style.width].join(),C=""===d||Ub.test(d)?"num:"+d.toString().length+C:d+C);C&&!a&&(b=c.cache[C]);if(!b){if("http://www.w3.org/2000/svg"===f.namespaceURI||c.forExport){try{u=this.fakeTS&&function(a){w(f.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=a})},Na&&t.textShadow?(n=t.textShadow,
  t.textShadow=""):u&&u("none"),b=f.getBBox?M({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight},n?t.textShadow=n:u&&u("")}catch(H){}if(!b||0>b.width)b={width:0,height:0}}else b=this.htmlGetBBox();c.isSVG&&(a=b.width,d=b.height,Ha&&g&&"11px"===g.fontSize&&"16.9"===d.toPrecision(3)&&(b.height=d=14),e&&(b.width=ea(d*Da(l))+ea(a*va(l)),b.height=ea(d*va(l))+ea(a*Da(l))));c.cache[C]=b}return b},show:function(a){a&&"http://www.w3.org/2000/svg"===this.element.namespaceURI?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=this.element,d;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)d=this.zIndexSetter();d||(a?a.element:b.box).appendChild(c);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;ab(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&&w(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&&p(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,l,n,t,u;if(a){n=z(a.width,3);t=(a.opacity||.15)/n;u=this.parentInverted?"(-1,-1)":"("+z(a.offsetX,1)+", "+z(a.offsetY,1)+")";for(e=1;e<=n;e++)f=g.cloneNode(0),l=2*n+1-2*e,R(f,{isShadow:"true",stroke:a.color||"black","stroke-opacity":t*e,"stroke-width":l,transform:"translate"+u,fill:"none"}),c&&(R(f,"height",L(R(f,"height")-
  l,0)),f.cutHeight=l),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=z(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]=I(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=S.createElementNS("http://www.w3.org/2000/svg","title"),this.element.appendChild(b));b.appendChild(S.createTextNode(String(z(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){var c=this.renderer,d=this.parentGroup,c=(d||c).element||c.box,e,f,g=this.element,l;e=this.added;var n;r(a)&&(g.setAttribute(b,a),a=+a,this[b]===a&&(e=!1),this[b]=a);if(e){(a=this.zIndex)&&d&&(d.handleZ=!0);d=c.childNodes;for(n=0;n<d.length&&!l;n++)e=d[n],f=R(e,"zIndex"),e!==g&&(I(f)>a||!r(a)&&r(f))&&(c.insertBefore(g,e),l=!0);l||c.appendChild(g)}return l},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};da.prototype.yGetter=da.prototype.xGetter;da.prototype.translateXSetter=
  da.prototype.translateYSetter=da.prototype.rotationSetter=da.prototype.verticalAlignSetter=da.prototype.scaleXSetter=da.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};da.prototype["stroke-widthSetter"]=da.prototype.strokeSetter=function(a,b,c){this[b]=a;this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],da.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 Ua=function(){this.init.apply(this,arguments)};Ua.prototype={Element:da,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")&&R(g,"xmlns","http://www.w3.org/2000/svg");this.isSVG=!0;this.box=g;this.boxWrapper=d;this.alignedObjects=[];this.url=(Na||gb)&&S.getElementsByTagName("base").length?f.href.replace(/#.*?$/,
  "").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(S.createTextNode("Created with Highcharts 4.1.7 /Highstock 2.1.7"));this.defs=this.createElement("defs").add();this.forExport=e;this.gradients={};this.cache={};this.setSize(b,c,!1);var l;Na&&a.getBoundingClientRect&&(this.subPixelFix=b=function(){x(a,{left:0,top:0});l=a.getBoundingClientRect();x(a,{left:Ca(l.left)-l.left+"px",top:Ca(l.top)-l.top+"px"})},b(),na(ca,"resize",b))},getStyle:function(a){return this.style=
  M({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();ka(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.subPixelFix&&ta(ca,"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=z(a.textStr,"").toString(),f=-1!==e.indexOf("<"),g=b.childNodes,l,n,t=R(b,"x"),u=a.styles,C=a.textWidth,H=u&&u.lineHeight,G=u&&u.textShadow,za=u&&"ellipsis"===u.textOverflow,k=g.length,m=C&&!a.added&&this.box,r=function(a){return H?I(H):c.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:u&&u.fontSize||c.style.fontSize||12,a).h},p=function(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,">")};k--;)b.removeChild(g[k]);
  f||G||za||-1!==e.indexOf(" ")?(l=/<.*style="([^"]+)".*>/,n=/<.*href="(http[^"]+)".*>/,m&&m.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(),w(e,function(e,f){var g,H=0;e=e.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");g=e.split("|||");w(g,function(e){if(""!==e||1===g.length){var G=
  {},k=S.createElementNS("http://www.w3.org/2000/svg","tspan"),m;l.test(e)&&(m=e.match(l)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),R(k,"style",m));n.test(e)&&!d&&(R(k,"onclick",'location.href="'+e.match(n)[1]+'"'),x(k,{cursor:"pointer"}));e=p(e.replace(/<(.|\n)*?>/g,"")||" ");if(" "!==e){k.appendChild(S.createTextNode(e));H?G.dx=0:f&&null!==t&&(G.x=t);R(k,G);b.appendChild(k);!H&&f&&(!ua&&d&&x(k,{display:"block"}),R(k,"dy",r(k)));if(C){for(var G=e.replace(/([^\^])-/g,"$1- ").split(" "),$b=1<g.length||
  f||1<G.length&&"nowrap"!==u.whiteSpace,v,h,B,z=[],q=r(k),K=1,w=a.rotation,D=e,mb=D.length;($b||za)&&(G.length||z.length);)a.rotation=0,v=a.getBBox(!0),B=v.width,!ua&&c.forExport&&(B=c.measureSpanWidth(k.firstChild.data,a.styles)),v=B>C,void 0===h&&(h=v),za&&h?(mb/=2,""===D||!v&&.5>mb?G=[]:(v&&(h=!0),D=e.substring(0,D.length+(v?-1:1)*Ca(mb)),G=[D+(3<C?"\u2026":"")],k.removeChild(k.firstChild))):v&&1!==G.length?(k.removeChild(k.firstChild),z.unshift(G.pop())):(G=z,z=[],G.length&&(K++,k=S.createElementNS("http://www.w3.org/2000/svg",
  "tspan"),R(k,{dy:q,x:t}),m&&R(k,"style",m),b.appendChild(k)),B>C&&(C=B)),G.length&&k.appendChild(S.createTextNode(G.join(" ").replace(/- /g,"-")));h&&a.attr("title",a.textStr);a.rotation=w}H++}}})}),m&&m.removeChild(b),G&&a.applyTextShadow&&a.applyTextShadow(G)):b.appendChild(S.createTextNode(p(e)))},getContrast:function(a){a=Fa(a).rgba;return 384<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,b,c,d,e,f,g,l,n){var t=this.label(a,b,c,n,null,null,null,null,"button"),u=0,C,H,G,k,m,v;a={x1:0,y1:0,
  x2:0,y2:1};e=q({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);G=e.style;delete e.style;f=q(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);k=f.style;delete f.style;g=q(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);m=g.style;delete g.style;l=q(e,{style:{color:"#CCC"}},l);v=l.style;delete l.style;na(t.element,Ha?"mouseover":"mouseenter",function(){3!==u&&t.attr(f).css(k)});
  na(t.element,Ha?"mouseout":"mouseleave",function(){3!==u&&(C=[e,f,g][u],H=[G,k,m][u],t.attr(C).css(H))});t.setState=function(a){(t.state=u=a)?2===a?t.attr(g).css(m):3===a&&t.attr(l).css(v):t.attr(e).css(G)};return t.on("click",function(){3!==u&&d.call(t)}).attr(e).css(M({cursor:"default"},G))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=P(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=P(a[2])+b%2/2);return a},path:function(a){var b={fill:"none"};Q(a)?b.d=a:V(a)&&M(b,a);return this.createElement("path").attr(b)},
  circle:function(a,b,c){a=V(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){V(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=V(a)?a.r:e;var g=this.createElement("rect");a=V(a)?a:a===J?{}:{x:a,y:b,width:L(c,0),height:L(d,
  0)};f!==J&&(a.strokeWidth=f,a=g.crisp(a));e&&(a.r=e);g.rSetter=function(a){R(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[z(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return r(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};1<arguments.length&&M(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,l=this.symbols[a],l=l&&l(P(b),P(c),d,e,f),n=/^url\((.*?)\)$/,t,u;l?(g=this.path(l),M(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&M(g,f)):n.test(a)&&(u=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(P((d-b[0])/2),P((e-b[1])/2)))},t=a.match(n)[1],
  a=Mb[t]||f&&f.width&&f.height&&[f.width,f.height],g=this.image(t).attr({x:b,y:c}),g.isImg=!0,a?u(g,a):(g.attr({width:0,height:0}),A("img",{onload:function(){u(g,Mb[t]=[this.width,this.height])},src:t})));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 l=e.open,n=va(f),t=Da(f),u=va(g),g=Da(g);e=e.end-f<Ea?0:1;return["M",a+c*n,b+c*t,"A",c,c,0,e,1,a+c*u,b+c*g,l?"M":"L",a+d*u,b+d*g,"A",d,d,0,e,0,a+d*n,b+d*t,l?"":"Z"]},callout:function(a,b,c,d,e){var f=X(e&&e.r||0,c,d),g=f+6,l=e&&e.anchorX;e=e&&e.anchorY;var n;n=["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];l&&l>c&&e>b+g&&e<b+d-g?n.splice(13,3,"L",a+c,e-6,a+c+6,e,a+c,e+6,a+c,b+d-f):l&&0>l&&e>b+g&&e<b+d-g?n.splice(33,3,"L",a,e+6,a-6,e,a,e-6,a,b+f):e&&e>d&&l>a+g&&l<a+c-g?n.splice(23,3,"L",l+6,b+d,l,b+d+6,l-6,b+d,a+f,b+d):e&&0>e&&l>a+g&&l<a+c-g&&n.splice(3,3,"L",l-6,b,l,b-6,l+6,b,c-f,b);return n}},clipRect:function(a,b,c,d){var e="highcharts-"+wb++,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;a.count=0;return a},text:function(a,b,c,d){var e=ya||!ua&&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),H;for(H=0;H<d.length;H++)e=d[H],e.getAttribute(b)===f&&e.setAttribute(b,a);c.setAttribute(b,a)});return a},
  fontMetrics:function(a,b){var c,d;a=a||this.style.fontSize;b&&ca.getComputedStyle&&(b=b.element||b,a=(c=ca.getComputedStyle(b,""))&&c.fontSize);a=/px/.test(a)?I(a):/em/.test(a)?12*parseFloat(a):12;c=24>a?a+3:P(1.2*a);d=P(.8*c);return{h:c,b:d,f:a}},rotCorr:function(a,b,c){var d=a;b&&c&&(d=L(d*va(b*Ta),4));return{x:-a/3*Da(b*Ta),y:d}},label:function(a,b,c,d,e,f,g,l,n){function t(){var a,b;a=k.element.style;v=(void 0===z||void 0===K||G.styles.textAlign)&&r(k.textStr)&&k.getBBox();G.width=(z||v.width||
  0)+2*h+B;G.height=(K||v.height||0)+2*h;ga=h+H.fontMetrics(a&&a.fontSize,k).b;A&&(m||(a=P(-p*h)+R,b=(l?-ga:0)+R,G.box=m=d?H.symbol(d,a,b,G.width,G.height,y):H.rect(a,b,G.width,G.height,0,y["stroke-width"]),m.attr("fill","none").add(G)),m.isImg||m.attr(M({width:P(G.width),height:P(G.height)},y)),y=null)}function u(){var a=G.styles,a=a&&a.textAlign,b=B+h*(1-p),c;c=l?0:ga;r(z)&&v&&("center"===a||"right"===a)&&(b+={center:.5,right:1}[a]*(z-v.width));if(b!==k.x||c!==k.y)k.attr("x",b),c!==J&&k.attr("y",
  c);k.x=b;k.y=c}function C(a,b){m?m.attr(a,b):y[a]=b}var H=this,G=H.g(n),k=H.text("",0,0,g).attr({zIndex:1}),m,v,p=0,h=3,B=0,z,K,D,x,R=0,y={},ga,A;G.onAdd=function(){k.add(G);G.attr({text:a||0===a?a:"",x:b,y:c});m&&r(e)&&G.attr({anchorX:e,anchorY:f})};G.widthSetter=function(a){z=a};G.heightSetter=function(a){K=a};G.paddingSetter=function(a){r(a)&&a!==h&&(h=G.padding=a,u())};G.paddingLeftSetter=function(a){r(a)&&a!==B&&(B=a,u())};G.alignSetter=function(a){p={left:0,center:.5,right:1}[a]};G.textSetter=
  function(a){a!==J&&k.textSetter(a);t();u()};G["stroke-widthSetter"]=function(a,b){a&&(A=!0);R=a%2/2;C(b,a)};G.strokeSetter=G.fillSetter=G.rSetter=function(a,b){"fill"===b&&a&&(A=!0);C(b,a)};G.anchorXSetter=function(a,b){e=a;C(b,P(a)-R-D)};G.anchorYSetter=function(a,b){f=a;C(b,a-x)};G.xSetter=function(a){G.x=a;p&&(a-=p*((z||v.width)+h));D=P(a);G.attr("translateX",D)};G.ySetter=function(a){x=G.y=P(a);G.attr("translateY",x)};var ka=G.css;return M(G,{css:function(a){if(a){var b={};a=q(a);w(G.textProps,
  function(c){a[c]!==J&&(b[c]=a[c],delete a[c])});k.css(b)}return ka.call(G,a)},getBBox:function(){return{width:v.width+2*h,height:v.height+2*h,x:v.x-h,y:v.y-h}},shadow:function(a){m&&m.shadow(a);return G},destroy:function(){ta(G.element,"mouseenter");ta(G.element,"mouseleave");k&&(k=k.destroy());m&&(m=m.destroy());da.prototype.destroy.call(G);G=H=t=u=C=null}})}};M(da.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.updateTransform();
  a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=M(this.styles,a);x(this.element,a);return this},htmlGetBBox:function(){var a=this.element;"text"===a.nodeName&&(a.style.position="absolute");return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},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",l={left:0,center:.5,
  right:1}[g],n=this.shadows,t=this.styles;x(b,{marginLeft:c,marginTop:d});n&&w(n,function(a){x(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&w(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var u=this.rotation,C,H=I(this.textWidth),G=[u,g,b.innerHTML,this.textWidth].join();G!==this.cTT&&(C=a.fontMetrics(b.style.fontSize).b,r(u)&&this.setSpanRotation(u,l,C),n=z(this.elemWidth,b.offsetWidth),n>H&&/[ \-]/.test(b.textContent||b.innerText)&&(x(b,{width:H+"px",display:"block",
  whiteSpace:t&&t.whiteSpace||"normal"}),n=H),this.getSpanCorrection(n,C,l,u,g));x(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});gb&&(C=b.offsetHeight);this.cTT=G}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=Ha?"-ms-transform":gb?"-webkit-transform":Na?"MozTransform":Kb?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)";d[e+(Na?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+c+"px";x(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=
  -b}});M(Ua.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:P(b),y:P(c)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";d.css=d.htmlCss;f.isSVG&&(d.add=function(a){var b,
  c=f.box.parentNode,t=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)t.push(a),a=a.parentGroup;w(t.reverse(),function(a){var d,e=R(a.element,"class");e&&(e={className:e});b=a.div=a.div||A("div",e,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px"},b||c);d=b.style;M(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}});Ma.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.categories,e=a.names,f=this.pos,g=b.labels,l=a.tickPositions,n=f===l[0],t=f===l[l.length-1],e=d?z(d[f],e[f],f):f,d=this.label,l=l.info,u;a.isDatetimeAxis&&l&&(u=b.dateTimeLabelFormats[l.higherRanks[f]||l.unitName]);this.isFirst=n;this.isLast=t;b=a.labelFormatter.call({axis:a,chart:c,isFirst:n,isLast:t,dateTimeLabelFormat:u,value:a.isLog?la(h(e)):e});r(d)?
  d&&d.attr({text:b}):(this.labelLength=(this.label=d=r(b)&&g.enabled?c.renderer.text(b,0,0,g.useHTML).css(q(g.style)).add(a.labelGroup):null)&&d.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var b=this.axis,c=a.x,d=b.chart.chartWidth,e=b.chart.spacing,f=z(b.labelLeft,X(b.pos,e[3])),e=z(b.labelRight,L(b.pos+b.len,d-e[1])),g=this.label,l=this.rotation,n={left:0,center:.5,right:1}[b.labelAlign],
  t=g.getBBox().width,u=b.slotWidth,C=1,H,G={};if(l)0>l&&c-n*t<f?H=P(c/va(l*Ta)-f):0<l&&c+n*t>e&&(H=P((d-c)/va(l*Ta)));else if(d=c+(1-n)*t,c-n*t<f?u=a.x+u*(1-n)-f:d>e&&(u=e-a.x+u*n,C=-1),u=X(b.slotWidth,u),u<b.slotWidth&&"center"===b.labelAlign&&(a.x+=C*(b.slotWidth-u-n*(b.slotWidth-X(t,u)))),t>u||b.autoRotation&&g.styles.width)H=u;H&&(G.width=H,b.options.labels.style.textOverflow||(G.textOverflow="ellipsis"),g.css(G))},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,l){var n=this.axis,t=n.transA,u=n.reversed,C=n.staggerLines,H=n.tickRotCorr||{x:0,y:0};c=z(e.y,H.y+(2===n.side?8:-(c.getBBox().height/2)));a=a+e.x+H.x-(f&&d?f*t*(u?-1:1):0);b=b+c-(f&&!d?f*t*(u?1:-1):0);C&&(b+=g/(l||1)%C*(n.labelOffset/
  C));return{x:a,y:P(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,l=this.type,n=this.label,t=this.pos,u=e.labels,C=this.gridLine,H=l?l+"Grid":"grid",G=l?l+"Tick":"tick",k=e[H+"LineWidth"],m=e[H+"LineColor"],v=e[H+"LineDashStyle"],p=e[G+"Length"],H=e[G+"Width"]||0,r=e[G+"Color"],h=e[G+"Position"],G=this.mark,B=u.step,q=!0,K=d.tickmarkOffset,w=this.getPosition(g,t,K,b),D=
  w.x,w=w.y,x=g&&D===d.pos+d.len||!g&&w===d.pos?-1:1;c=z(c,1);this.isActive=!0;if(k&&(t=d.getPlotLinePath(t+K,k*x,b,!0),C===J&&(C={stroke:m,"stroke-width":k},v&&(C.dashstyle=v),l||(C.zIndex=1),b&&(C.opacity=0),this.gridLine=C=k?f.path(t).attr(C).add(d.gridGroup):null),!b&&C&&t))C[this.isNew?"attr":"animate"]({d:t,opacity:c});H&&p&&("inside"===h&&(p=-p),d.opposite&&(p=-p),l=this.getMarkPath(D,w,p,H*x,g,f),G?G.animate({d:l,opacity:c}):this.mark=f.path(l).attr({stroke:r,"stroke-width":H,opacity:c}).add(d.axisGroup));
  n&&!isNaN(D)&&(n.xy=w=this.getLabelPosition(D,w,n,g,u,K,a,B),this.isFirst&&!this.isLast&&!z(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!z(e.showLastLabel,1)?q=!1:!g||d.isRadial||u.step||u.rotation||b||0===c||this.handleOverflow(w),B&&a%B&&(q=!1),q&&!isNaN(w.y)?(w.opacity=c,n[this.isNew?"attr":"animate"](w),this.isNew=!1):n.attr("y",-9999))},destroy:function(){ka(this,this.axis)}};Y.PlotLineOrBand=function(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)};Y.PlotLineOrBand.prototype={render:function(){var a=
  this,b=a.axis,c=b.horiz,d=a.options,e=d.label,f=a.label,g=d.width,l=d.to,n=d.from,t=r(n)&&r(l),u=d.value,C=d.dashStyle,H=a.svgElem,G=[],k,m=d.color,v=d.zIndex,p=d.events,h={},B=b.chart.renderer;b.isLog&&(n=F(n),l=F(l),u=F(u));if(g)G=b.getPlotLinePath(u,g),h={stroke:m,"stroke-width":g},C&&(h.dashstyle=C);else if(t)G=b.getPlotBandPath(n,l,d),m&&(h.fill=m),d.borderWidth&&(h.stroke=d.borderColor,h["stroke-width"]=d.borderWidth);else return;r(v)&&(h.zIndex=v);if(H)G?H.animate({d:G},null,H.onGetPath):(H.hide(),
  H.onGetPath=function(){H.show()},f&&(a.label=f=f.destroy()));else if(G&&G.length&&(a.svgElem=H=B.path(G).attr(h).add(),p))for(k in d=function(b){H.on(b,function(c){p[b].apply(a,[c])})},p)d(k);e&&r(e.text)&&G&&G.length&&0<b.width&&0<b.height?(e=q({align:c&&t&&"center",x:c?!t&&4:10,verticalAlign:!c&&t&&"middle",y:c?t?16:10:t?6:-4,rotation:c&&!t&&90},e),f||(h={align:e.textAlign||e.align,rotation:e.rotation},r(v)&&(h.zIndex=v),a.label=f=B.text(e.text,0,0,e.useHTML).attr(h).css(e.style).add()),b=[G[1],
  G[4],t?G[6]:G[1]],t=[G[2],G[5],t?G[7]:G[2]],G=K(b),c=K(t),f.align(e,!1,{x:G,y:c,width:ga(b)-G,height:ga(t)-c}),f.show()):f&&f.hide();return a},destroy:function(){p(this.axis.plotLinesAndBands,this);delete this.axis;ka(this)}};var xa=Y.Axis=function(){this.init.apply(this,arguments)};xa.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:"#D8D8D8",labels:{enabled:!0,
  style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0,y:15},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 Y.numberFormat(this.total,-1)},style:q(aa.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},
  defaultTopAxisOptions:{labels:{autoRotation:[-45],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.names||[];this.isLog="logarithmic"===e;this.isDatetimeAxis="datetime"===e;this.isLinked=r(d.linkedTo);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=z(d.crosshair,y(a.options.tooltip.crosshairs)[c?0:1],!1);var f,
  d=this.options.events;-1===Oa(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===J&&(this.reversed=!0);this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)na(this,f,d[f]);this.isLog&&(this.val2lin=F,this.lin2val=h)},setOptions:function(a){this.options=q(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,
  this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],q(ra[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=ra.lang.numericSymbols,f=e&&e.length,g,l=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(l)g=v(l,this);else if(c)g=b;else if(d)g=Ra(d,b);else if(f&&1E3<=a)for(;f--&&g===J;)c=Math.pow(1E3,f+1),a>=c&&0===10*b%c&&null!==e[f]&&(g=Y.numberFormat(b/c,-1)+e[f]);g===J&&(g=1E4<=ea(b)?Y.numberFormat(b,-1):Y.numberFormat(b,
  -1,J,""));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();w(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=X(z(a.dataMin,d[0]),K(d)),a.dataMax=L(z(a.dataMax,d[0]),ga(d)))):(c.getExtremes(),e=c.dataMax,c=c.dataMin,r(c)&&r(e)&&(a.dataMin=
  X(z(a.dataMin,c),c),a.dataMax=L(z(a.dataMax,e),e)),r(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=this.linkedParent||this,l=1,n=0,t=d?g.oldTransA:g.transA;d=d?g.oldMin:g.min;var u=g.minPixelPadding;e=(g.doPostTranslate||g.isLog&&e)&&g.lin2val;t||(t=g.transA);c&&(l*=-1,n=g.len);g.reversed&&(l*=-1,n-=l*(g.sector||g.len));b?(a=a*l+n-u,a=a/t+d,e&&(a=g.lin2val(a))):(e&&(a=g.val2lin(a)),"between"===f&&
  (f=.5),a=l*(a-d)*t+n+l*u+(T(f)?t*f*g.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,l=this.top,n,t,u=c&&f.oldChartHeight||f.chartHeight,C=c&&f.oldChartWidth||f.chartWidth,H;n=this.transB;var G=function(a,b,c){if(a<b||a>c)d?a=X(L(b,a),c):H=!0;return a};e=z(e,this.translate(a,null,null,
  c));a=c=P(e+n);n=t=P(u-e-n);isNaN(e)?H=!0:this.horiz?(n=l,t=u-this.bottom,a=c=G(a,g,g+this.width)):(a=g,c=C-this.right,n=t=G(n,l,l+this.height));return H&&!d?null:f.renderer.crispLine(["M",a,n,"L",c,t],b||1)},getLinearTickPositions:function(a,b,c){var d,e=la(fa(b/a)*a),f=la(Ca(c/a)*a),g=[];if(b===c&&T(b))return[b];for(b=e;b<=f;){g.push(b);b=la(b+a);if(b===d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e,f=this.min;e=this.max;
  var g=e-f;if(g&&g/c<this.len/3)if(this.isLog)for(a=b.length,e=1;e<a;e++)d=d.concat(this.getLogTickPositions(c,b[e-1],b[e],!0));else if(this.isDatetimeAxis&&"auto"===a.minorTickInterval)d=d.concat(this.getTimeTicks(this.normalizeTimeTickInterval(c),f,e,a.startOfWeek));else for(b=f+(b[0]-f)%c;b<=e;b+=c)d.push(b);this.trimTicks(d);return d},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,l,n,t;this.isXAxis&&this.minRange===J&&!this.isLog&&
  (r(a.min)||r(a.max)?this.minRange=null:(w(this.series,function(a){n=a.xData;for(g=t=a.xIncrement?1:n.length-1;0<g;g--)if(l=n[g]-n[g-1],f===J||l<f)f=l}),this.minRange=X(5*f,this.dataMax-this.dataMin)));if(c-b<this.minRange){var u=this.minRange;d=(u-c+b)/2;d=[b-d,z(a.min,b-d)];e&&(d[2]=this.dataMin);b=ga(d);c=[b+u,z(a.max,b+u)];e&&(c[2]=this.dataMax);c=K(c);c-b<u&&(d[0]=c-u,d[1]=z(a.min,c-u),b=ga(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,l=b.linkedParent,n=!!b.categories,t=b.transA,u=b.isXAxis;if(u||n||d)l?(f=l.minPointOffset,g=l.pointRangePadding):w(b.series,function(a){var l=n?1:u?a.pointRange:b.axisPointRange||0,t=a.options.pointPlacement,k=a.closestPointRange;l>c&&(l=0);d=L(d,l);b.single||(f=L(f,W(t)?0:l/2),g=L(g,"on"===t?0:l));!a.noSharedTooltip&&r(k)&&(e=r(e)?X(e,k):k)}),l=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=l,b.pointRangePadding=g*=l,b.pointRange=X(d,c),u&&(b.closestPointRange=e);a&&(b.oldTransA=
  t);b.translationSlope=b.transA=t=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=t*f},setTickInterval:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,g=b.isXAxis,l=b.isLinked,n=d.maxPadding,t=d.minPadding,u=d.tickInterval,C=d.tickPixelInterval,H=b.categories;f||H||l||this.getTickAmount();l?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=z(c.min,c.dataMin),b.max=z(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&U(11,1)):
  (b.min=z(b.userMin,d.min,b.dataMin),b.max=z(b.userMax,d.max,b.dataMax));e&&(!a&&0>=X(b.min,z(b.dataMin,b.min))&&U(10,1),b.min=la(F(b.min)),b.max=la(F(b.max)));b.range&&r(b.max)&&(b.userMin=b.min=L(b.min,b.max-b.range),b.userMax=b.max,b.range=null);b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(H||b.axisPointRange||b.usePercentage||l)&&r(b.min)&&r(b.max)&&(c=b.max-b.min)&&(r(d.min)||r(b.userMin)||!t||!(0>b.dataMin)&&b.ignoreMinPadding||(b.min-=c*t),r(d.max)||r(b.userMax)||!n||!(0<b.dataMax)&&
  b.ignoreMaxPadding||(b.max+=c*n));T(d.floor)&&(b.min=L(b.min,d.floor));T(d.ceiling)&&(b.max=X(b.max,d.ceiling));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:l&&!u&&C===b.linkedParent.options.tickPixelInterval?u=b.linkedParent.tickInterval:z(u,this.tickAmount?(b.max-b.min)/L(this.tickAmount-1,1):void 0,H?1:(b.max-b.min)*C/L(b.len,C));g&&!a&&w(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=L(b.pointRange,b.tickInterval));a=z(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!u&&b.tickInterval<a&&(b.tickInterval=a);f||e||u||(b.tickInterval=k(b.tickInterval,null,m(b.tickInterval),z(d.allowDecimals,!(.5<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max)),!!this.tickAmount));!this.tickAmount&&this.len&&(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=
  this.options,b,c=a.tickPositions,d=a.tickPositioner,e=a.startOnTick,f=a.endOnTick,g;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===a.minorTickInterval&&this.tickInterval?this.tickInterval/5:a.minorTickInterval;this.tickPositions=b=c&&c.slice();!b&&(this.tickPositions=b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,
  this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d&&(d=d.apply(this,[this.min,this.max])))&&(this.tickPositions=b=d);this.isLinked||(this.trimTicks(b,e,f),this.min===this.max&&r(this.min)&&!this.tickAmount&&(g=!0,this.min-=.5,this.max+=.5),this.single=g,c||d||this.adjustTickAmount())},trimTicks:function(a,b,c){var d=a[0],e=a[a.length-1],f=this.minPointOffset||0;b?this.min=d:this.min-
  f>d&&a.shift();c?this.max=e:this.max+f<e&&a.pop();0===a.length&&r(d)&&a.push((e+d)/2)},getTickAmount:function(){var a={},b,c=this.options,d=c.tickAmount,e=c.tickPixelInterval;!r(c.tickInterval)&&this.len<e&&!this.isRadial&&!this.isLog&&c.startOnTick&&c.endOnTick&&(d=2);d||!1===this.chart.options.chart.alignTicks||!1===c.alignTicks||(w(this.chart[this.coll],function(c){var d=c.options,e=c.horiz,d=[e?d.left:d.top,e?d.width:d.height,d.pane].join();a[d]?c.series.length&&(b=!0):a[d]=1}),b&&(d=Ca(this.len/
  e)+1));4>d&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,d=this.finalTickAmt,e=b&&b.length;if(e<c){for(;b.length<c;)b.push(la(b[b.length-1]+a));this.transA*=(e-1)/(c-1);this.max=b[b.length-1]}else e>c&&(this.tickInterval*=2,this.setTickPositions());if(r(d)){for(a=c=b.length;a--;)(3===d&&1===a%2||2>=d&&0<a&&a<c-1)&&b.splice(a,1);this.finalTickAmt=J}},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;w(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.setTickInterval();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},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart;c=z(c,!0);w(f.series,function(a){delete a.kdTree});e=M(e,{min:a,max:b});ha(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||
  (r(c)&&a<=X(c,z(e.min,c))&&(a=J),r(d)&&b>=L(d,z(e.max,d))&&(b=J));this.displayBtn=a!==J||b!==J;this.setExtremes(a,b,!1,J,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=z(b.width,a.plotWidth-c+(b.offsetRight||0)),f=z(b.height,a.plotHeight),g=z(b.top,a.plotTop),b=z(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=parseFloat(f)/100*a.plotHeight);c.test(g)&&(g=parseFloat(g)/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=L(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=this.isLog;return{min:a?la(h(this.min)):this.min,max:a?la(h(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?h(this.min):this.min,b=b?h(this.max):this.max;null===a?a=0>b?b:c:c>a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(z(a,0)-90*this.side+
  720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},unsquish:function(){var a=this.ticks,b=this.options.labels,c=this.horiz,d=this.tickInterval,e=d,f=this.len/(((this.categories?1:0)+this.max-this.min)/d),g,l=b.rotation,n=this.chart.renderer.fontMetrics(b.style.fontSize,a[0]&&a[0].label),t,u=Number.MAX_VALUE,C,H=function(a){a/=f||1;a=1<a?Ca(a):1;return a*d};c?(C=r(l)?[l]:f<z(b.autoRotationLimit,80)&&!b.staggerLines&&!b.step&&b.autoRotation)&&w(C,function(a){var b;if(a===l||a&&-90<=a&&
  90>=a)t=H(ea(n.h/Da(Ta*a))),b=t+ea(a/360),b<u&&(u=b,g=a,e=t)}):e=H(n.h);this.autoRotation=C;this.labelRotation=g;return e},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,d=this.ticks,e=this.options.labels,f=this.horiz,g=a.margin,l=this.categories?c.length:c.length-1,n=this.slotWidth=f&&!e.step&&!e.rotation&&(this.staggerLines||1)*a.plotWidth/l||!f&&(g[3]&&g[3]-a.spacing[3]||.33*a.chartWidth),t=L(1,P(n-2*(e.padding||5))),u={},g=b.fontMetrics(e.style.fontSize,d[0]&&d[0].label),
  l=e.style.textOverflow,C,H=0;W(e.rotation)||(u.rotation=e.rotation);if(this.autoRotation)w(c,function(a){(a=d[a])&&a.labelLength>H&&(H=a.labelLength)}),H>t&&H>g.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(n&&(C={width:t+"px"},!l))for(C.textOverflow="clip",n=c.length;!f&&n--;)if(t=c[n],t=d[t].label)"ellipsis"===t.styles.textOverflow&&t.css({textOverflow:"clip"}),t.getBBox().height>this.len/c.length-(g.h-g.f)&&(t.specCss={textOverflow:"ellipsis"});u.rotation&&(C={width:(H>.5*a.chartHeight?
  .33*a.chartHeight:a.chartHeight)+"px"},l||(C.textOverflow="ellipsis"));this.labelAlign=u.align=e.align||this.autoLabelAlign(this.labelRotation);w(c,function(a){var b=(a=d[a])&&a.label;b&&(C&&b.css(q(C,b.specCss)),delete b.specCss,b.attr(u),a.rotation=u.rotation)});this.tickRotCorr=b.rotCorr(g.b,this.labelRotation||0,2===this.side)},hasData:function(){return this.hasVisibleSeries||r(this.min)&&r(this.max)&&!!this.tickPositions},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,
  f=a.ticks,g=a.horiz,l=a.side,n=b.inverted?[1,0,3,2][l]:l,t,u,C=0,H,G=0,k=d.title,m=d.labels,v=0,p=b.axisOffset,b=b.clipOffset,h=[-1,1,1,-1][l],B;t=a.hasData();a.showAxis=u=t||z(d.showEmpty,!0);a.staggerLines=a.horiz&&m.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:m.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels").add());if(t||a.isLinked)w(e,
  function(b){f[b]?f[b].addLabel():f[b]=new Ma(a,b)}),a.renderUnsquish(),w(e,function(b){if(0===l||2===l||{1:"left",3:"right"}[l]===a.labelAlign)v=L(f[b].getLabelSize(),v)}),a.staggerLines&&(v*=a.staggerLines,a.labelOffset=v);else for(B in f)f[B].destroy(),delete f[B];k&&k.text&&!1!==k.enabled&&(a.axisTitle||(a.axisTitle=c.text(k.text,0,0,k.useHTML).attr({zIndex:7,rotation:k.rotation||0,align:k.textAlign||{low:"left",middle:"center",high:"right"}[k.align]}).addClass("highcharts-"+this.coll.toLowerCase()+
  "-title").css(k.style).add(a.axisGroup),a.axisTitle.isNew=!0),u&&(C=a.axisTitle.getBBox()[g?"height":"width"],H=k.offset,G=r(H)?0:z(k.margin,g?5:10)),a.axisTitle[u?"show":"hide"]());a.offset=h*z(d.offset,p[l]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=2===l?a.tickRotCorr.y:0;g=v+G+(v&&h*(g?z(m.y,a.tickRotCorr.y+8):m.x)-c);a.axisTitleMargin=z(H,g);p[l]=L(p[l],a.axisTitleMargin+C+h*a.offset,g);C=2*fa(d.lineWidth/2);d.offset&&(C=L(0,C-d.offset));b[n]=L(b[n],C)},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,l=this.offset,n=e.x||0,t=e.y||0,u=I(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?u:0);return{x:a?d+n:b+(g?this.width:0)+l+n,y:a?b+t-(g?this.height:0)+l:d+t}},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,g=a.tickPositions,l=a.axisTitle,n=a.ticks,t=a.minorTicks,u=a.alternateBands,C=d.stackLabels,H=d.alternateGridColor,k=a.tickmarkOffset,m=d.lineWidth,v,p=b.hasRendered&&r(a.oldMin)&&!isNaN(a.oldMin),B=a.showAxis,z,q;a.labelEdge.length=0;a.overlap=!1;w([n,t,u],function(a){for(var b in a)a[b].isActive=
  !1});if(a.hasData()||f)a.minorTickInterval&&!a.categories&&w(a.getMinorTickPositions(),function(b){t[b]||(t[b]=new Ma(a,b,"minor"));p&&t[b].isNew&&t[b].render(null,!0);t[b].render(null,!1,1)}),g.length&&(w(g,function(b,c){if(!f||b>=a.min&&b<=a.max)n[b]||(n[b]=new Ma(a,b)),p&&n[b].isNew&&n[b].render(c,!0,.1),n[b].render(c)}),k&&(0===a.min||a.single)&&(n[-1]||(n[-1]=new Ma(a,-1,null,!0)),n[-1].render(-1))),H&&w(g,function(b,c){0===c%2&&b<a.max&&(u[b]||(u[b]=new Y.PlotLineOrBand(a)),z=b+k,q=g[c+1]!==
  J?g[c+1]+k:a.max,u[b].options={from:e?h(z):z,to:e?h(q):q,color:H},u[b].render(),u[b].isActive=!0)}),a._addedPlotLB||(w((d.plotLines||[]).concat(d.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0);w([n,t,u],function(a){var c,d,e=[],f=Ia?Ia.duration||500:0,g=function(){for(d=e.length;d--;)a[e[d]]&&!a[e[d]].isActive&&(a[e[d]].destroy(),delete a[e[d]])};for(c in a)a[c].isActive||(a[c].render(c,!1,0),a[c].isActive=!1,e.push(c));a!==u&&b.hasRendered&&f?f&&setTimeout(g,f):g()});m&&(v=
  a.getLinePath(m),a.axisLine?a.axisLine.animate({d:v}):a.axisLine=c.path(v).attr({stroke:d.lineColor,"stroke-width":m,zIndex:7}).add(a.axisGroup),a.axisLine[B?"show":"hide"]());l&&B&&(l[l.isNew?"attr":"animate"](a.getTitlePosition()),l.isNew=!1);C&&C.enabled&&a.renderStackTotals();a.isDirty=!1},redraw:function(){this.render();w(this.plotLinesAndBands,function(a){a.render()});w(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b=this,c=b.stacks,d,e=b.plotLinesAndBands;a||ta(b);for(d in c)ka(c[d]),
  c[d]=null;w([b.ticks,b.minorTicks,b.alternateBands],function(a){ka(a)});for(a=e.length;a--;)e[a].destroy();w("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){var c,d=this.crosshair,e=d.animation;if(!this.crosshair||!1===(r(b)||!z(this.crosshair.snap,!0))||b&&b.series&&b.series[this.coll]!==this)this.hideCrosshair();else if(z(d.snap,!0)?r(b)&&(c=this.isXAxis?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:z(b.stackY,b.y))||null:this.getPlotLinePath(null,null,null,null,c)||null,null===c)this.hideCrosshair();else if(this.cross)this.cross.attr({visibility:"visible"})[e?"animate":"attr"]({d:c},e);else e=this.categories&&!this.isRadial,e={"stroke-width":d.width||(e?this.transA:1),stroke:d.color||(e?"rgba(155,200,255,0.2)":"#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()}};M(xa.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b,null,null,!0),d=this.getPlotLinePath(a,null,null,!0);d&&c&&d.toString()!==c.toString()?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 Y.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();w([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&p(b,b[e])})}});xa.prototype.getTimeTicks=function(a,b,c,d){var e=[],f={},g=ra.global.useUTC,l,n=new Ja(b-D(b)),
  t=a.unitRange,u=a.count;if(r(b)){n[Fb](t>=ba.second?0:u*fa(n.getMilliseconds()/u));if(t>=ba.second)n[Gb](t>=ba.minute?0:u*fa(n.getSeconds()/u));if(t>=ba.minute)n[Hb](t>=ba.hour?0:u*fa(n[qb]()/u));if(t>=ba.hour)n[Ib](t>=ba.day?0:u*fa(n[rb]()/u));if(t>=ba.day)n[tb](t>=ba.month?1:u*fa(n[Wa]()/u));t>=ba.month&&(n[ub](t>=ba.year?0:u*fa(n[Xa]()/u)),l=n[Ya]());if(t>=ba.year)n[vb](l-l%u);if(t===ba.week)n[tb](n[Wa]()-n[sb]()+z(d,1));b=1;if(pb||db)n=n.getTime(),n=new Ja(n+D(n));l=n[Ya]();d=n.getTime();for(var C=
  n[Xa](),H=n[Wa](),k=(ba.day+(g?D(n):6E4*n.getTimezoneOffset()))%ba.day;d<c;)e.push(d),d=t===ba.year?fb(l+b*u,0):t===ba.month?fb(l,C+b*u):g||t!==ba.day&&t!==ba.week?d+t*u:fb(l,C,H+b*u*(t===ba.day?1:7)),b++;e.push(d);w(kb(e,function(a){return t<=ba.hour&&a%ba.day===k}),function(a){f[a]="day"})}e.info=M(a,{higherRanks:f,totalRange:t*u});return e};xa.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=ba[d[0]],f=d[1],g;for(g=0;g<c.length&&!(d=c[g],e=ba[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+ba[c[g+1][0]])/2);g++);e===ba.year&&a<5*e&&(f=[1,2,5]);c=k(a/e,f,"year"===d[0]?L(m(a/e),1):1);return{unitRange:e,count:c,unitName:d[0]}};xa.prototype.getLogTickPositions=function(a,b,c,d){var e=this.options,f=this.len,g=[];d||(this._minorAutoInterval=null);if(.5<=a)a=P(a),g=this.getLinearTickPositions(a,
  b,c);else if(.08<=a)for(var f=fa(b),l,n,t,u,C,e=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!C;f++)for(n=e.length,l=0;l<n&&!C;l++)t=F(h(f)*e[l]),t>b&&(!d||u<=c)&&u!==J&&g.push(u),u>c&&(C=!0),u=t;else b=h(b),c=h(c),a=e[d?"minorTickInterval":"tickInterval"],a=z("auto"===a?null:a,this._minorAutoInterval,e.tickPixelInterval/(d?5:1)*(c-b)/((d?f/this.tickPositions.length:f)||1)),a=k(a,null,m(a)),g=Pa(this.getLinearTickPositions(a,b,c),F),d||(this._minorAutoInterval=a/5);d||(this.tickInterval=
  a);return g};var Nb=Y.Tooltip=function(){this.init.apply(this,arguments)};Nb.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=I(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});ya||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<ea(a-f.x)||1<ea(b-f.y)),l=e.followPointer||1<e.len;M(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:l?J:g?(2*f.anchorX+c)/3:c,anchorY:l?J: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;clearTimeout(this.hideTimer);this.isHidden||(this.hideTimer=setTimeout(function(){b.label.fadeOut();b.isHidden=!0},z(a,this.options.hideDelay,500)))},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=d.plotLeft,l=0,n=0,t,u;a=y(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===J&&(b=d.pointer.normalize(b)),c=[b.chartX-d.plotLeft,b.chartY-f]);c||(w(a,function(a){t=a.series.yAxis;u=a.series.xAxis;l+=a.plotX+(!e&&u?u.left-g:0);n+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+
  (!e&&t?t.top-f:0)}),l/=a.length,n/=a.length,c=[e?d.plotWidth-n:l,this.shared&&!e&&1<a.length&&b?b.chartY-f:e?d.plotHeight-l:n]);return Pa(c,P)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,f={},g=c.h||0,l,n=["y",d.chartHeight,b,c.plotY+d.plotTop],t=["x",d.chartWidth,a,c.plotX+d.plotLeft],u=z(c.ttBelow,d.inverted&&!c.negative||!d.inverted&&c.negative),C=function(a,b,c,d){var l=c<d-e,n=d+e+c<b,t=d-e-c;d+=e;if(u&&n)f[a]=d;else if(!u&&l)f[a]=t;else if(l)f[a]=0>t-g?t:t-g;else if(n)f[a]=
  d+g+c>b?d:d+g;else return!1},H=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},k=function(a){var b=n;n=t;t=b;l=a},m=function(){!1!==C.apply(0,n)?!1!==H.apply(0,t)||l||(k(!0),m()):l?f.x=f.y=0:(k(!0),m())};(d.inverted||1<this.len)&&k();m();return f},defaultFormatter:function(a){var b=this.points||y(this),c;c=[a.tooltipFooterHeaderFormatter(b[0])];c=c.concat(a.bodyFormatter(b));c.push(a.tooltipFooterHeaderFormatter(b[0],!0));return c.join("")},refresh:function(a,b){var c=this.chart,
  d=this.label,e=this.options,f,g,l,n={},t,u=[];t=e.formatter||this.defaultFormatter;var n=c.hoverPoints,C,H=this.shared;clearTimeout(this.hideTimer);this.followPointer=y(a)[0].series.tooltipOptions.followPointer;l=this.getAnchor(a,b);f=l[0];g=l[1];!H||a.series&&a.series.noSharedTooltip?n=a.getLabelConfig():(c.hoverPoints=a,n&&w(n,function(a){a.setState()}),w(a,function(a){a.setState("hover");u.push(a.getLabelConfig())}),n={x:a[0].category,y:a[0].y},n.points=u,this.len=u.length,a=a[0]);t=t.call(n,this);
  n=a.series;this.distance=z(n.tooltipOptions.distance,16);!1===t?this.hide():(this.isHidden&&(ab(d),d.attr("opacity",1).show()),d.attr({text:t}),C=e.borderColor||a.color||n.color||"#606060",d.attr({stroke:C}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:l[2]||0}),this.isHidden=!1);ha(c,"tooltipRefresh",{text:t,x:f+c.plotLeft,y:g+c.plotTop,borderColor:C})},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(P(c.x),P(c.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d;b=b.dateTimeLabelFormats;var e=c&&c.closestPointRange,f,g={millisecond:15,second:12,minute:9,hour:6,day:3},l,n="millisecond";if(e){l=Ra("%m-%d %H:%M:%S.%L",a.x);for(f in ba){if(e===ba.week&&+Ra("%w",a.x)===c.options.startOfWeek&&"00:00:00.000"===l.substr(6)){f="week";break}else if(ba[f]>e){f=n;break}else if(g[f]&&l.substr(g[f])!=="01-01 00:00:00.000".substr(g[f]))break;"week"!==
  f&&(n=f)}f&&(d=b[f])}else d=b.day;return d||b.year},tooltipFooterHeaderFormatter:function(a,b){var c=b?"footer":"header",d=a.series,e=d.tooltipOptions,f=e.xDateFormat,g=d.xAxis,l=g&&"datetime"===g.options.type&&T(a.key),c=e[c+"Format"];l&&!f&&(f=this.getXDateFormat(a,e,g));l&&f&&(c=c.replace("{point.key}","{point.key:"+f+"}"));return v(c,{point:a,series:d})},bodyFormatter:function(a){return Pa(a,function(a){var c=a.series.tooltipOptions;return(c.pointFormatter||a.point.tooltipFormatter).call(a.point,
  c.pointFormat)})}};var Aa;Za=S.documentElement.ontouchstart!==J;var Qa=Y.Pointer=function(a,b){this.init(a,b)};Qa.prototype={init:function(a,b){var c=b.chart,d=c.events,e=ya?"":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={};Y.Tooltip&&b.tooltip.enabled&&(a.tooltip=new Nb(a,b.tooltip),this.followTouchMove=
  z(b.tooltip.followTouchMove,!0));this.setDOMEvents()},normalize:function(a,b){var c,d;a=a||window.event;a=Wb(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=Vb(this.chart.container));d.pageX===J?(c=L(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-b.top);return M(a,{chartX:P(c),chartY:P(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};w(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,
  value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e=d?d.shared:!1,f=b.hoverPoint,g=b.hoverSeries,l,n=b.chartWidth,t,u,C=[],H,k;if(!e&&!g)for(l=0;l<c.length;l++)if(c[l].directTouch||!c[l].options.stickyTracking)c=[];!e&&g&&g.directTouch&&f?H=f:(w(c,function(b){t=b.noSharedTooltip&&e;u=!e&&b.directTouch;b.visible&&!t&&!u&&z(b.options.enableMouseTracking,!0)&&(k=b.searchPoint(a,!t&&1===b.kdDimensions))&&C.push(k)}),w(C,function(a){a&&
  "number"===typeof a.dist&&a.dist<n&&(n=a.dist,H=a)}));if(H&&(H!==this.prevKDPoint||d&&d.isHidden)){if(e&&!H.series.noSharedTooltip){for(l=C.length;l--;)(C[l].clientX!==H.clientX||C[l].series.noSharedTooltip)&&C.splice(l,1);C.length&&d&&d.refresh(C,a);w(C,function(b){if(b!==H)b.onMouseOver(a)});(g&&g.directTouch&&f||H).onMouseOver(a)}else d&&d.refresh(H,a),H.onMouseOver(a);this.prevKDPoint=H}else c=g&&g.tooltipOptions.followPointer,d&&c&&!d.isHidden&&(c=d.getAnchor([{}],a),d.updatePosition({plotX:c[0],
  plotY:c[1]}));d&&!this._onDocumentMouseMove&&(this._onDocumentMouseMove=function(a){if(sa[Aa])sa[Aa].pointer.onDocumentMouseMove(a)},na(S,"mousemove",this._onDocumentMouseMove));w(b.axes,function(b){b.drawCrosshair(a,z(H,f))})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.hoverPoints,g=c.tooltip,l=g&&g.shared?f:e;(a=a&&g&&l)&&y(l)[0].plotX===J&&(a=!1);if(a)g.refresh(l),e&&(e.setState(e.state,!0),w(c.axes,function(a){z(a.options.crosshair&&a.options.crosshair.snap,!0)?a.drawCrosshair(null,
  e):a.hideCrosshair()}));else{if(e)e.onMouseOut();f&&w(f,function(a){a.setState()});if(d)d.onMouseOut();g&&g.hide(b);this._onDocumentMouseMove&&(ta(S,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null);w(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,d;w(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,l=b.plotLeft,n=b.plotTop,t=b.plotWidth,u=b.plotHeight,C,H=this.mouseDownX,k=this.mouseDownY,m=c.panKey&&a[c.panKey+"Key"];d<l?d=l:d>l+t&&(d=l+t);
  e<n?e=n:e>n+u&&(e=n+u);this.hasDragged=Math.sqrt(Math.pow(H-d,2)+Math.pow(k-e,2));10<this.hasDragged&&(C=b.isInsidePlot(H-l,k-n),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&C&&!m&&!this.selectionMarker&&(this.selectionMarker=b.renderer.rect(l,n,f?1:t,g?1:u,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&f&&(d-=H,this.selectionMarker.attr({width:ea(d),x:(0<d?0:d)+H})),this.selectionMarker&&g&&(d=e-k,this.selectionMarker.attr({height:ea(d),y:(0<
  d?0:d)+k})),C&&!this.selectionMarker&&c.panning&&b.pan(a,c.panning))},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e={xAxis:[],yAxis:[],originalEvent:a.originalEvent||a},f=this.selectionMarker,g=f.attr?f.attr("x"):f.x,l=f.attr?f.attr("y"):f.y,n=f.attr?f.attr("width"):f.width,t=f.attr?f.attr("height"):f.height,u;if(this.hasDragged||d)w(c.axes,function(c){if(c.zoomEnabled&&r(c.min)&&(d||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var f=c.horiz,k="touchend"===
  a.type?c.minPixelPadding:0,m=c.toValue((f?g:l)+k),f=c.toValue((f?g+n:l+t)-k);e[c.coll].push({axis:c,min:X(m,f),max:L(m,f)});u=!0}}),u&&ha(c,"selection",e,function(a){c.zoom(M(a,d?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();d&&this.scaleGroups()}c&&(x(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.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){sa[Aa]&&sa[Aa].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition;a=this.normalize(a,c);!c||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(){var a=sa[Aa];a&&(a.pointer.reset(),a.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;Aa=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=R(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.originalEvent=a;b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(ha(c.series,"click",M(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(M(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&ha(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)};na(b,"mouseleave",a.onContainerMouseLeave);1===$a&&na(S,"mouseup",a.onDocumentMouseUp);Za&&(b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},1===$a&&na(S,"touchend",a.onDocumentTouchEnd))},destroy:function(){var a;ta(this.chart.container,"mouseleave",this.onContainerMouseLeave);$a||(ta(S,"mouseup",this.onDocumentMouseUp),ta(S,"touchend",this.onDocumentTouchEnd));clearInterval(this.tooltipTimeout);
  for(a in this)this[a]=null}};M(Y.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,l){var n=this.chart,t=a?"x":"y",u=a?"X":"Y",C="chart"+u,H=a?"width":"height",k=n["plot"+(a?"Left":"Top")],m,v,p=l||1,h=n.inverted,r=n.bounds[a?"h":"v"],B=1===b.length,z=b[0][C],q=c[0][C],w=!B&&b[1][C],K=!B&&c[1][C],
  D;c=function(){!B&&20<ea(z-w)&&(p=l||ea(q-K)/ea(z-w));v=(k-q)/p+z;m=n["plot"+(a?"Width":"Height")]/p};c();b=v;b<r.min?(b=r.min,D=!0):b+m>r.max&&(b=r.max-m,D=!0);D?(q-=.8*(q-g[t][0]),B||(K-=.8*(K-g[t][1])),c()):g[t]=[q,K];h||(f[t]=v-k,f[H]=m);f=h?1/p:p;e[H]=m;e[t]=b;d[h?a?"scaleY":"scaleX":"scale"+u]=p;d["translate"+u]=f*k+(q-f*z)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches,f=e.length,g=b.lastValidTouch,l=b.hasZoom,n=b.selectionMarker,t={},u=1===f&&(b.inClass(a.target,"highcharts-tracker")&&
  c.runTrackerClick||b.runChartClick),C={};1<f&&(b.initiated=!0);l&&b.initiated&&!u&&a.preventDefault();Pa(e,function(a){return b.normalize(a)});"touchstart"===a.type?(w(e,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],w(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(z(a.options.min,a.dataMin)),f=a.toPixels(z(a.options.max,a.dataMax)),g=X(e,f),e=L(e,f);b.min=X(a.pos,
  g-d);b.max=L(a.pos+a.len,e+d)}}),b.res=!0):d.length&&(n||(b.selectionMarker=n=M({destroy:ma},c.plotBox)),b.pinchTranslate(d,e,t,n,C,g),b.hasPinched=l,b.scaleGroups(t,C),!l&&b.followTouchMove&&1===f?this.runPointActions(b.normalize(a)):b.res&&(b.res=!1,this.reset(!1,0)))},touch:function(a,b){var c=this.chart;Aa=c.index;1===a.touches.length?(a=this.normalize(a),c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop)&&!c.openMenu?(b&&this.runPointActions(a),this.pinch(a)):b&&this.reset()):2===a.touches.length&&
  this.pinch(a)},onContainerTouchStart:function(a){this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(a){sa[Aa]&&sa[Aa].pointer.drop(a)}});if(ca.PointerEvent||ca.MSPointerEvent){var Ga={},yb=!!ca.PointerEvent,ac=function(){var a,b=[];b.item=function(a){return this[a]};for(a in Ga)Ga.hasOwnProperty(a)&&b.push({pageX:Ga[a].pageX,pageY:Ga[a].pageY,target:Ga[a].target});return b},zb=function(a,b,c,d){a=a.originalEvent||a;"touch"!==a.pointerType&&a.pointerType!==
  a.MSPOINTER_TYPE_TOUCH||!sa[Aa]||(d(a),d=sa[Aa].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:ma,touches:ac()}))};M(Qa.prototype,{onContainerPointerDown:function(a){zb(a,"onContainerTouchStart","touchstart",function(a){Ga[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){zb(a,"onContainerTouchMove","touchmove",function(a){Ga[a.pointerId]={pageX:a.pageX,pageY:a.pageY};Ga[a.pointerId].target||(Ga[a.pointerId].target=a.currentTarget)})},
  onDocumentPointerUp:function(a){zb(a,"onDocumentTouchEnd","touchend",function(a){delete Ga[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,yb?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,yb?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(S,yb?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});pa(Qa.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&x(b.container,{"-ms-touch-action":"none","touch-action":"none"})});
  pa(Qa.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(na)});pa(Qa.prototype,"destroy",function(a){this.batchMSEvents(ta);a.call(this)})}var nb=Y.Legend=function(a,b){this.init(a,b)};nb.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=b.itemMarginTop||0;this.options=b;b.enabled&&(c.itemStyle=d,c.itemHiddenStyle=q(d,b.itemHiddenStyle),c.itemMarginTop=e,c.padding=d=z(b.padding,8),c.initialItemX=d,c.initialItemY=d-5,c.maxItemWidth=0,
  c.chart=a,c.itemHeight=0,c.symbolWidth=z(b.symbolWidth,16),c.pages=[],c.render(),na(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,l=b?a.legendColor||a.color||"#CCC":g,g=a.options&&a.options.marker,n={fill:l},t;d&&d.css({fill:c,color:c});e&&e.attr({stroke:l});if(f){if(g&&f.isMarker)for(t in n.stroke=l,g=a.convertAttribs(g),g)d=g[t],d!==J&&(n[t]=
  d);f.attr(n)}},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=a.legendGroup)&&a.element&&a.translate(b?e:this.legendWidth-e-2*c-4,d);f&&(f.x=e,f.y=d)},destroyItem:function(a){var b=a.checkbox;w(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&oa(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,w(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,x(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},setText:function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?v(b.labelFormat,a):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,e="horizontal"===d.layout,f=this.symbolWidth,g=d.symbolPadding,l=this.itemStyle,n=this.itemHiddenStyle,t=this.padding,u=e?z(d.itemDistance,20):0,C=!d.rtl,k=d.width,m=d.itemMarginBottom||0,v=this.itemMarginTop,p=this.initialItemX,
  h=a.legendItem,r=a.series&&a.series.drawLegendSymbol?a.series:a,B=r.options,B=this.createCheckboxForItem&&B&&B.showCheckbox,w=d.useHTML;h||(a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),a.legendItem=h=c.text("",C?f+g:-g,this.baseline||0,w).css(q(a.visible?l:n)).attr({align:C?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(l.fontSize,h),this.baseline=this.fontMetrics.f+3+v,h.attr("y",this.baseline)),r.drawLegendSymbol(this,a),this.setItemEvents&&
  this.setItemEvents(a,h,w,l,n),this.colorizeItem(a,a.visible),B&&this.createCheckboxForItem(a));this.setText(a);c=h.getBBox();f=a.checkboxOffset=d.itemWidth||a.legendItemWidth||f+g+c.width+u+(B?20:0);this.itemHeight=g=P(a.legendItemHeight||c.height);e&&this.itemX-p+f>(k||b.chartWidth-2*t-p-d.x)&&(this.itemX=p,this.itemY+=v+this.lastLineHeight+m,this.lastLineHeight=0);this.maxItemWidth=L(this.maxItemWidth,f);this.lastItemY=v+this.itemY+m;this.lastLineHeight=L(g,this.lastLineHeight);a._legendItemPos=
  [this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=v+g+m,this.lastLineHeight=g);this.offsetWidth=k||L((e?this.itemX-p-u:f)+t,this.offsetWidth)},getAllItems:function(){var a=[];w(this.chart.series,function(b){var c=b.options;z(c.showInLegend,r(c.linkedTo)?!1:J,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});return a},adjustMargins:function(a,b){var c=this.chart,d=this.options,e=d.align[0]+d.verticalAlign[0]+d.layout[0];this.display&&!d.floating&&w([/(lth|ct|rth)/,/(rtv|rm|rbv)/,
  /(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!r(a[g])&&(c[hb[g]]=L(c[hb[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+z(d.margin,12)+b[g]))})},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,l,n=a.box,t=a.options,u=a.padding,C=t.borderWidth,k=t.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();B(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});t.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;a.lastLineHeight=0;w(e,function(b){a.renderItem(b)});g=(t.width||a.offsetWidth)+u;l=a.lastItemY+a.lastLineHeight+a.titleHeight;l=a.handleOverflow(l);l+=u;if(C||k)n?0<g&&0<l&&(n[n.isNew?"attr":"animate"](n.crisp({width:g,height:l})),n.isNew=!1):(a.box=n=c.rect(0,0,g,l,t.borderRadius,
  C||0).attr({stroke:t.borderColor,"stroke-width":C||0,fill:k||"none"}).add(d).shadow(t.shadow),n.isNew=!0),n[f?"show":"hide"]();a.legendWidth=g;a.legendHeight=l;w(e,function(b){a.positionItem(b)});f&&d.align(M({width:g,height:l},t),!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,l,n=this.clipRect,t=e.navigation,u=z(t.animation,
  !0),C=t.arrowSize||12,k=this.nav,m=this.pages,v=this.padding,p,h=this.allItems,r=function(a){n.attr({height:a});b.contentGroup.div&&(b.contentGroup.div.style.clip="rect("+v+"px,9999px,"+(v+a)+"px,0)")};"horizontal"===e.layout&&(f/=2);g&&(f=X(f,g));m.length=0;a>f?(this.clipHeight=l=L(f-20-this.titleHeight-v,0),this.currentPage=z(this.currentPage,1),this.fullHeight=a,w(h,function(a,b){var c=a._legendItemPos[1],d=P(a.legendItem.getBBox().height),e=m.length;if(!e||c-m[e-1]>l&&(p||c)!==m[e-1])m.push(p||
  c),e++;b===h.length-1&&c+d-m[e-1]>l&&m.push(c);c!==p&&(p=c)}),n||(n=b.clipRect=d.clipRect(0,v,9999,0),b.contentGroup.clip(n)),r(l),k||(this.nav=k=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,C,C).on("click",function(){b.scroll(-1,u)}).add(k),this.pager=d.text("",15,10).css(t.style).add(k),this.down=d.symbol("triangle-down",0,0,C,C).on("click",function(){b.scroll(1,u)}).add(k)),b.scroll(0),a=f):k&&(r(c.chartHeight),k.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,l=g.activeColor,g=g.inactiveColor,n=this.pager,t=this.padding;e>d&&(e=d);0<e&&(b!==J&&Sa(b,this.chart),this.nav.attr({translateX:t,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===e?g:l}).css({cursor:1===e?"default":"pointer"}),n.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:l}).css({cursor:e===
  d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c))}};var cb=Y.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-c+1,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-P(.3*a.fontMetrics.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(Ka)||Na)&&pa(nb.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)});var Ab=Y.Chart=function(){this.init.apply(this,arguments)};
  Ab.prototype={callbacks:[],init:function(a,b){var c,d=a.series;a.series=null;c=q(ra,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=sa.length;sa.push(f);$a++;!1!==d.reflow&&na(f,"load",function(){f.initReflow()});if(e)for(g in e)na(f,g,e[g]);
  f.xAxis=[];f.yAxis=[];f.animation=ya?!1:z(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=N[a.type||b.type||b.defaultSeriesType])||U(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},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,l,n=this.hasCartesianSeries,t=this.isDirtyBox,
  u=c.length,C=u,k=this.renderer,m=k.isHidden(),v=[];Sa(a,this);m&&this.cloneRenderTo();for(this.layOutTitles();C--;)if(a=c[C],a.options.stacking&&(g=!0,a.isDirty)){l=!0;break}if(l)for(C=u;C--;)a=c[C],a.options.stacking&&(a.isDirty=!0);w(c,function(a){a.isDirty&&"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),f=!0)});f&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);g&&this.getStacks();n&&!this.isResizing&&(this.maxTicks=null,w(b,function(a){a.setScale()}));this.getMargins();
  n&&(w(b,function(a){a.isDirty&&(t=!0)}),w(b,function(a){a.isDirtyExtremes&&(a.isDirtyExtremes=!1,v.push(function(){ha(a,"afterSetExtremes",M(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(t||g)&&a.redraw()}));t&&this.drawChartBox();w(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset(!0);k.draw();ha(this,"redraw");m&&this.cloneRenderTo(!0);w(v,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=y(b.xAxis||{}),b=b.yAxis=y(b.yAxis||{});w(c,function(a,b){a.index=b;a.isX=!0});w(b,function(a,b){a.index=b});c=c.concat(b);w(c,function(b){new xa(a,b)})},getSelectedPoints:function(){var a=[];w(this.series,function(b){a=a.concat(kb(b.points||[],function(a){return a.selected}))});
  return a},getSelectedSeries:function(){return kb(this.series,function(a){return a.selected})},getStacks:function(){var a=this;w(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)});w(a.series,function(b){!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=b.type+z(b.options.stack,""))})},setTitle:function(a,b,c){var d=this,e=d.options,f;f=e.title=q(e.title,a);e=e.subtitle=q(e.subtitle,b);w([["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,l=this.spacingBox.width-44;c&&(c.css({width:(f.width||l)+"px"}).align(M({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||l)+"px"}).align(M({y:b+(f.margin-13)+g.fontMetrics(f.style.fontSize,d).b},e),!1,"spacingBox"),e.floating||e.verticalAlign||(b=Ca(b+d.getBBox().height)));c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=c,this.hasRendered&&z(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;r(b)||(this.containerWidth=jb(c,"width"));r(a)||(this.containerHeight=jb(c,
  "height"));this.chartWidth=L(0,b||this.containerWidth||600);this.chartHeight=L(0,z(a,19<this.containerHeight?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),oa(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),x(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),
  S.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-"+wb++;W(a)&&(this.renderTo=a=S.getElementById(a));a||U(13,!0);c=I(R(a,"data-highcharts-chart"));!isNaN(c)&&sa[c]&&sa[c].hasRendered&&sa[c].destroy();R(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=A("div",{className:"highcharts-container"+
  (b.className?" "+b.className:""),id:e},M({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 Ua(a,c,d,b.style,!0):new Ua(a,c,d,b.style);ya&&this.renderer.create(this,a,c,d);this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();
  d&&!r(c[0])&&(this.plotTop=L(this.plotTop,d+this.options.title.margin+b[0]));this.legend.adjustMargins(c,b);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&w(a.axes,function(a){a.getOffset()});w(hb,function(d,e){r(c[e])||(a[d]+=b[e])});a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=
  b.renderTo,e=c.width||jb(d,"width"),f=c.height||jb(d,"height"),c=a?a.target:ca,d=function(){b.container&&(b.setSize(e,f,!1),b.hasUserSize=null)};if(!b.hasUserSize&&!b.isPrinting&&e&&f&&(c===ca||c===S)){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)};na(ca,"resize",b);na(a,"destroy",function(){ta(ca,"resize",b)})},setSize:function(a,
  b,c){var d=this,e,f,g;d.isResizing+=1;g=function(){d&&ha(d,"endResize",null,function(){--d.isResizing})};Sa(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;r(a)&&(d.chartWidth=e=L(0,P(a)),d.hasUserSize=!!e);r(b)&&(d.chartHeight=f=L(0,P(b)));(Ia?lb:x)(d.container,{width:e+"px",height:f+"px"},Ia);d.setChartSize(!0);d.renderer.setSize(e,f,c);d.maxTicks=null;w(d.axes,function(a){a.isDirty=!0;a.setScale()});w(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();
  d.getMargins();d.redraw(c);d.oldChartHeight=null;ha(d,"resize");!1===Ia?g():setTimeout(g,Ia&&Ia.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,l=this.clipOffset,n,t,u,C;this.plotLeft=n=P(this.plotLeft);this.plotTop=t=P(this.plotTop);this.plotWidth=u=L(0,P(d-n-this.marginRight));this.plotHeight=C=L(0,P(e-t-this.marginBottom));this.plotSizeX=b?C:u;this.plotSizeY=b?u:C;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:n,y:t,width:u,height:C};d=2*fa(this.plotBorderWidth/2);b=Ca(L(d,l[3])/2);c=Ca(L(d,l[0])/2);this.clipBox={x:b,y:c,width:fa(this.plotSizeX-L(d,l[1])/2-b),height:L(0,fa(this.plotSizeY-L(d,l[2])/2-c))};a||w(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this;w(hb,function(b,c){a[b]=z(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.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,l=this.plotBGImage,n=a.borderWidth||0,t=a.backgroundColor,u=a.plotBackgroundColor,C=a.plotBackgroundImage,k=a.plotBorderWidth||0,m,v=this.plotLeft,p=this.plotTop,h=this.plotWidth,r=this.plotHeight,B=this.plotBox,z=this.clipRect,q=this.clipBox;m=n+(a.shadow?8:0);if(n||t)e?e.animate(e.crisp({width:c-m,height:d-m})):(e={fill:t||
  "none"},n&&(e.stroke=a.borderColor,e["stroke-width"]=n),this.chartBackground=b.rect(m/2,m/2,c-m,d-m,a.borderRadius,n).attr(e).addClass("highcharts-background").add().shadow(a.shadow));u&&(f?f.animate(B):this.plotBackground=b.rect(v,p,h,r,0).attr({fill:u}).add().shadow(a.plotShadow));C&&(l?l.animate(B):this.plotBGImage=b.image(C,v,p,h,r).add());z?z.animate({width:q.width,height:q.height}):this.clipRect=b.clipRect(q);k&&(g?g.animate(g.crisp({x:v,y:p,width:h,height:r,strokeWidth:-k})):this.plotBorder=
  b.rect(v,p,h,r,0,-k).attr({stroke:a.plotBorderColor,"stroke-width":k,fill:"none",zIndex:1}).add());this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;w(["inverted","angular","polar"],function(g){c=N[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=N[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;w(b,function(a){a.linkedSeries.length=0});w(b,function(b){var d=b.options.linkedTo;
  W(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&(d.linkedSeries.push(b),b.linkedParent=d)})},renderSeries:function(){w(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&w(b.items,function(c){var d=M(b.style,c.style),e=I(d.left)+a.plotLeft,f=I(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,d,e,f,g;this.setTitle();
  this.legend=new nb(this,c.legend);this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;e=this.plotHeight-=13;w(a,function(a){a.setScale()});this.getAxisMargins();f=1.1<d/this.plotWidth;g=1.1<e/this.plotHeight;if(f||g)this.maxTicks=null,w(a,function(a){(a.horiz&&f||!a.horiz&&g)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&w(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;ha(a,"destroy");sa[a.index]=J;$a--;a.renderTo.removeAttribute("data-highcharts-chart");ta(a);for(e=b.length;e--;)b[e]=b[e].destroy();
  for(e=c.length;e--;)c[e]=c[e].destroy();w("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="",ta(d),f&&oa(d));for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!ua&&ca==ca.top&&"complete"!==S.readyState||ya&&!ca.canvg?(ya?CanVGController.push(function(){a.firstRender()},a.options.global.canvasToolsURL):
  S.attachEvent("onreadystatechange",function(){S.detachEvent("onreadystatechange",a.firstRender);"complete"===S.readyState&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;a.isReadyToRender()&&(a.getContainer(),ha(a,"init"),a.resetMargins(),a.setChartSize(),a.propFromSeries(),a.getAxes(),w(b.series||[],function(b){a.initSeries(b)}),a.linkSeries(),ha(a,"beforeRender"),Y.Pointer&&(a.pointer=new Qa(a,b)),a.render(),a.renderer.draw(),c&&c.apply(a,[a]),w(a.callbacks,
  function(b){a.index!==J&&b.apply(a,[a])}),ha(a,"load"),a.cloneRenderTo(!0))},splashArray:function(a,b){var c=b[a],c=V(c)?c:[c,c,c,c];return[z(b[a+"Top"],c[0]),z(b[a+"Right"],c[1]),z(b[a+"Bottom"],c[2]),z(b[a+"Left"],c[3])]}};var Ob=Y.CenteredSeriesMixin={getCenter:function(){var a=this.options,b=this.chart,c=2*(a.slicedOffset||0),d=b.plotWidth-2*c,b=b.plotHeight-2*c,e=a.center,e=[z(e[0],"50%"),z(e[1],"50%"),a.size||"100%",a.innerSize||0],f=X(d,b),g,l;for(g=0;4>g;++g)l=e[g],a=2>g||2===g&&/%$/.test(l),
  e[g]=ia(l,[d,b,f,e[2]][g])+(a?c:0);return e}},Ba=function(){};Ba.prototype={init:function(a,b,c){this.series=a;this.color=a.color;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=Ba.prototype.optionsToObject.call(this,a);M(this,a);
  this.options=this.options?M(this.options,a):a;d&&(this.y=this[d]);this.x===J&&c&&(this.x=b===J?c.autoIncrement():b);return this},optionsToObject:function(a){var b={},c=this.series,d=c.options.keys,e=d||c.pointArrayMap||["y"],f=e.length,g=0,l=0;if("number"===typeof a||null===a)b[e[0]]=a;else if(Q(a))for(!d&&a.length>f&&(c=typeof a[0],"string"===c?b.name=a[0]:"number"===c&&(b.x=a[0]),g++);l<f;)b[e[l++]]=a[g++];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(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)ta(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=z(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";w(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 v(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&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});ha(this,a,b,c)}};var Z=Y.Series=function(){};Z.prototype={isCartesian:!0,type:"line",pointClass:Ba,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 z(a.options.index,a._i)-z(b.options.index,b._i)};c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();M(c,{name:b.name,state:"",pointAttr:{},visible:!1!==b.visible,selected:!0===b.selected});ya&&(b.animation=!1);e=b.events;for(d in e)na(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();w(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;B(f,g);this.yAxis&&B(this.yAxis.series,g);w(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;w(a.axisTypes||[],function(e){w(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]!==J&&b[e]===d.id||b[e]===J&&0===d.index)c.series.push(a),a[e]=c,c.isDirty=!0});a[e]||a.optionalAxis===e||U(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments;w(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,c,d=a.pointIntervalUnit,b=z(b,a.pointStart,0);this.pointInterval=c=z(this.pointInterval,a.pointInterval,1);if("month"===d||"year"===d)a=new Ja(b),a="month"===d?+a[ub](a[Xa]()+c):+a[vb](a[Ya]()+c),c=a-b;this.xIncrement=b+c;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 w(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=q(e,c.series,a);this.tooltipOptions=q(ra.tooltip,ra.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;this.zoneAxis=c.zoneAxis;a=this.zones=(c.zones||[]).slice();!c.negativeColor&&!c.negativeFillColor||c.zones||a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,color:c.negativeColor,fillColor:c.negativeFillColor});a.length&&r(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});return c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(r(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||aa[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:cb.drawLineMarker,setData:function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,l,n=e.options,t=e.chart,u=null,k=e.xAxis,m=k&&!!k.categories,
  v=n.turboThreshold,p=this.xData,h=this.yData,r=(l=e.pointArrayMap)&&l.length;a=a||[];l=a.length;b=z(b,!0);if(!1!==d&&l&&g===l&&!e.cropped&&!e.hasGroupedData&&e.visible)w(a,function(a,b){f[b].update&&f[b].update(a,!1,null,!1)});else{e.xIncrement=null;e.pointRange=m?1:n.pointRange;e.colorCounter=0;w(this.parallelArrays,function(a){e[a+"Data"].length=0});if(v&&l>v){for(c=0;null===u&&c<l;)u=a[c],c++;if(T(u)){m=z(n.pointStart,0);n=z(n.pointInterval,1);for(c=0;c<l;c++)p[c]=m,h[c]=a[c],m+=n;e.xIncrement=
  m}else if(Q(u))if(r)for(c=0;c<l;c++)n=a[c],p[c]=n[0],h[c]=n.slice(1,r+1);else for(c=0;c<l;c++)n=a[c],p[c]=n[0],h[c]=n[1];else U(12)}else for(c=0;c<l;c++)a[c]!==J&&(n={series:e},e.pointClass.prototype.applyOptions.apply(n,[a[c]]),e.updateParallelArrays(n,c),m&&n.name&&(k.names[n.x]=n.name));W(h[0])&&U(14,!0);e.data=[];e.options.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();k&&(k.minRange=k.userMinRange);e.isDirty=e.isDirtyData=t.isDirtyBox=!0;c=!1}b&&t.redraw(c)},processData:function(a){var b=
  this.xData,c=this.yData,d=b.length,e;e=0;var f,g,l=this.xAxis,n,t=this.options;n=t.cropThreshold;var u=this.isCartesian,k,m;if(u&&!this.isDirty&&!l.isDirty&&!this.yAxis.isDirty&&!a)return!1;l&&(a=l.getExtremes(),k=a.min,m=a.max);if(u&&this.sorted&&(!n||d>n||this.forceCrop))if(b[d-1]<k||b[0]>m)b=[],c=[];else if(b[0]<k||b[d-1]>m)e=this.cropData(this.xData,this.yData,k,m),b=e.xData,c=e.yData,e=e.start,f=!0;for(n=b.length-1;0<=n;n--)d=b[n]-b[n-1],0<d&&(g===J||d<g)?g=d:0>d&&this.requireSorting&&U(15);
  this.cropped=f;this.cropStart=e;this.processedXData=b;this.processedYData=c;null===t.pointRange&&(this.pointRange=g||1);this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,f=0,g=e,l=z(this.cropShoulder,1),n;for(n=0;n<e;n++)if(a[n]>=c){f=L(0,n-l);break}for(;n<e;n++)if(a[n]>d){g=n+l;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,
  l=this.cropStart||0,n,t=this.hasGroupedData,u,k=[],m;b||t||(b=[],b.length=a.length,b=this.data=b);for(m=0;m<g;m++)n=l+m,t?k[m]=(new f).init(this,[d[m]].concat(y(e[m]))):(b[n]?u=b[n]:a[n]!==J&&(b[n]=u=(new f).init(this,a[n],d[m])),k[m]=u),k[m].index=n;if(b&&(g!==(c=b.length)||t))for(m=0;m<c;m++)m!==l||t||(m+=g),b[m]&&(b[m].destroyElements(),b[m].plotX=J);this.data=b;this.points=k},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,e=[],f=0;d=this.xAxis.getExtremes();var g=d.min,l=d.max,
  n,t,u,k;a=a||this.stackedYData||this.processedYData;d=a.length;for(k=0;k<d;k++)if(t=c[k],u=a[k],n=null!==u&&u!==J&&(!b.isLog||u.length||0<u),t=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(c[k+1]||t)>=g&&(c[k-1]||t)<=l,n&&t)if(n=u.length)for(;n--;)null!==u[n]&&(e[f++]=u[n]);else e[f++]=u;this.dataMin=K(e);this.dataMax=ga(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,l=!!this.modifyValue,n=a.pointPlacement,t="between"===n||T(n),u=a.threshold,k=a.startFromThreshold?u:0,m,v,p,h=Number.MAX_VALUE,a=0;a<g;a++){var B=f[a],q=B.x,w=B.y;v=B.low;var K=b&&e.stacks[(this.negStacks&&w<(k?0:u)?"-":"")+this.stackKey];e.isLog&&null!==w&&0>=w&&(B.y=w=null,U(10));B.plotX=m=X(L(-1E5,c.translate(q,0,0,0,1,n,"flags"===this.type)),1E5);b&&this.visible&&K&&K[q]&&(K=K[q],w=K.points[this.index+","+a],v=w[0],w=w[1],v===k&&(v=z(u,e.min)),e.isLog&&0>=
  v&&(v=null),B.total=B.stackTotal=K.total,B.percentage=K.total&&B.y/K.total*100,B.stackY=w,K.setOffset(this.pointXOffset||0,this.barW||0));B.yBottom=r(v)?e.translate(v,0,1,0,1):null;l&&(w=this.modifyValue(w,B));B.plotY=v="number"===typeof w&&Infinity!==w?X(L(-1E5,e.translate(w,0,1,0,1)),1E5):J;B.isInside=v!==J&&0<=v&&v<=e.len&&0<=m&&m<=c.len;B.clientX=t?c.translate(q,0,0,0,1):m;B.negative=B.y<(u||0);B.category=d&&d[B.x]!==J?d[B.x]:B.x;a&&(h=X(h,ea(m-p)));p=m}this.closestPointRangePx=h;this.getSegments()},
  setClip:function(a){var b=this.chart,c=b.renderer,d=b.inverted,e=this.clipBox,f=e||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,f.height].join(),l=b[g],n=b[g+"m"];l||(a&&(f.width=0,b[g+"m"]=n=c.clipRect(-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[g]=l=c.clipRect(f));a&&(l.count+=1);!1!==this.options.clip&&(this.group.clip(a||e?l:b.clipRect),this.markerGroup.clip(n),this.sharedClipKey=g);a||(--l.count,0>=l.count&&g&&b[g]&&(e||(b[g]=b[g].destroy()),b[g+
  "m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=this.options.animation,d;c&&!V(c)&&(c=aa[this.type].animation);a?this.setClip(c):(d=this.sharedClipKey,(a=b[d])&&a.animate({width:b.plotSizeX},c),b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99},c),this.animate=null)},afterAnimate:function(){this.setClip();ha(this,"afterAnimate")},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,l,n,t,u,k=this.options.marker,m=this.pointAttr[""],v,p,h,B=this.markerGroup,r=
  z(k.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*k.radius);if(!1!==k.enabled||this._hasPointMarkers)for(f=b.length;f--;)g=b[f],d=fa(g.plotX),e=g.plotY,u=g.graphic,v=g.marker||{},p=!!g.marker,a=r&&v.enabled===J||v.enabled,h=g.isInside,a&&e!==J&&!isNaN(e)&&null!==g.y?(a=g.pointAttr[g.selected?"select":""]||m,l=a.r,n=z(v.symbol,this.symbol),t=0===n.indexOf("url"),u?u[h?"show":"hide"](!0).animate(M({x:d-l,y:e-l},u.symbolName?{width:2*l,height:2*l}:{})):h&&(0<l||t)&&(g.graphic=c.renderer.symbol(n,
  d-l,e-l,2*l,2*l,p?v:k).attr(a).add(B))):u&&(g.graphic=u.destroy())},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,l={};a=a||{};b=b||{};c=c||{};d=d||{};for(f in e)g=e[f],l[f]=z(a[g],b[f],c[f],d[f]);return l},getAttribs:function(){var a=this,b=a.options,c=aa[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color,l=a.options.negativeColor;f={stroke:g,fill:g};var n=a.points||[],t,u=[],k,m=a.pointAttrToOptions;k=a.hasPointSpecificOptions;var v=c.lineColor,p=c.fillColor;t=b.turboThreshold;
  var h=a.zones,B=a.zoneAxis||"y",z;b.marker?(e.radius=e.radius||c.radius+e.radiusPlus,e.lineWidth=e.lineWidth||c.lineWidth+e.lineWidthPlus):(e.color=e.color||Fa(e.color||g).brighten(e.brightness).get(),e.negativeColor=e.negativeColor||Fa(e.negativeColor||l).brighten(e.brightness).get());u[""]=a.convertAttribs(c,f);w(["hover","select"],function(b){u[b]=a.convertAttribs(d[b],u[""])});a.pointAttr=u;g=n.length;if(!t||g<t||k)for(;g--;){t=n[g];(c=t.options&&t.options.marker||t.options)&&!1===c.enabled&&
  (c.radius=0);if(h.length){k=0;for(f=h[k];t[B]>=f.value;)f=h[++k];t.color=t.fillColor=f.color}k=b.colorByPoint||t.color;if(t.options)for(z in m)r(c[m[z]])&&(k=!0);k?(c=c||{},k=[],d=c.states||{},f=d.hover=d.hover||{},b.marker||(f.color=f.color||!t.options.color&&e[t.negative&&l?"negativeColor":"color"]||Fa(t.color).brighten(f.brightness||e.brightness).get()),f={color:t.color},p||(f.fillColor=t.color),v||(f.lineColor=t.color),c.hasOwnProperty("color")&&!c.color&&delete c.color,k[""]=a.convertAttribs(M(f,
  c),u[""]),k.hover=a.convertAttribs(d.hover,u.hover,k[""]),k.select=a.convertAttribs(d.select,u.select,k[""])):k=u;t.pointAttr=k}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Ka),d,e=a.data||[],f,g,l;ha(a,"destroy");ta(a);w(a.axisTypes||[],function(b){if(l=a[b])p(l.series,a),l.isDirty=l.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(d=e.length;d--;)(f=e[d])&&f.destroy&&f.destroy();a.points=null;clearTimeout(a.animationTimeout);for(g in a)a[g]instanceof da&&!a[g].survive&&
  (d=c&&"group"===g?"hide":"destroy",a[g][d]());b.hoverSeries===a&&(b.hoverSeries=null);p(b.series,a);for(g in a)delete a[g]},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;w(a,function(e,f){var g=e.plotX,l=e.plotY,n;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(n=a[f-1],"right"===d?c.push(n.plotX,l):"center"===d?c.push((n.plotX+g)/2,n.plotY,(n.plotX+g)/2,l):c.push(g,n.plotY)),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=this,b=
  [],c,d=[];w(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,b.dashStyle]],d=b.lineWidth,e="square"!==b.linecap,f=this.getGraphPath(),g=this.fillGraph&&this.color||"none";w(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||a.color,d.dashStyle||b.dashStyle])});w(c,function(c,n){var t=c[0],u=a[t];u?(ab(u),u.animate({d:f})):(d||g)&&f.length&&
  (u={stroke:c[1],"stroke-width":d,fill:g,zIndex:1},c[2]?u.dashstyle=c[2]:e&&(u["stroke-linecap"]=u["stroke-linejoin"]="round"),a[t]=a.chart.renderer.path(f).attr(u).add(a.group).shadow(2>n&&b.shadow))})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,f,g=this.clips||[],l,n=this.graph,t=this.area,u=L(b.chartWidth,b.chartHeight),k=this[(this.zoneAxis||"y")+"Axis"],m,v=k.reversed,p=b.inverted,h=k.horiz,B,r,q,K=!1;d.length&&(n||t)&&(n&&n.hide(),t&&t.hide(),m=k.getExtremes(),
  w(d,function(d,w){e=v?h?b.plotWidth:0:h?0:k.toPixels(m.min);e=X(L(z(f,e),0),u);f=X(L(P(k.toPixels(z(d.value,m.max),!0)),0),u);K&&(e=f=k.toPixels(m.max));B=Math.abs(e-f);r=X(e,f);q=L(e,f);k.isXAxis?(l={x:p?q:r,y:0,width:B,height:u},h||(l.x=b.plotHeight-l.x)):(l={x:0,y:p?q:r,width:u,height:B},h&&(l.y=b.plotWidth-l.y));b.inverted&&c.isVML&&(l=k.isXAxis?{x:0,y:v?r:q,height:l.width,width:b.chartWidth}:{x:l.y-b.plotLeft-b.spacingBox.x,y:0,width:l.height,height:b.chartHeight});g[w]?g[w].animate(l):(g[w]=
  c.clipRect(l),n&&a["zoneGraph"+w].clip(g[w]),t&&a["zoneArea"+w].clip(g[w]));K=d.value>m.max}),this.clips=g)},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};w(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;b.xAxis&&(na(c,"resize",a),na(b,"destroy",function(){ta(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&&z(c.duration,500)||0,f=a.visible?"visible":"hidden",g=d.zIndex,l=a.hasRendered,n=b.seriesGroup;c=a.plotGroup("group","series",f,g,n);a.markerGroup=a.plotGroup("markerGroup",
  "markers",f,g,n);e&&a.animate(!0);a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());w(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||l||c.clip(b.clipRect);e&&a.animate();l||(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.isDirty,d=this.group,e=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:z(e&&e.left,a.plotLeft),translateY:z(f&&f.top,a.plotTop)}));this.translate();this.render();b&&ha(this,"updatedData");(c||b)&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?
  c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(b,d,g){var l,n;if(n=b&&b.length)return l=c.kdAxisArray[d%g],b.sort(function(a,b){return a[l]-b[l]}),n=Math.floor(n/2),{point:b[n],left:a(b.slice(0,n),d+1,g),right:a(b.slice(n+1),d+1,g)}}function b(){var b=kb(c.points,function(a){return null!==a.y});c.kdTree=a(b,d,d)}var c=this,d=c.kdDimensions;delete c.kdTree;c.options.kdSync?b():setTimeout(b)},searchKDTree:function(a,b){function c(a,
  b,t,u){var k=b.point,m=d.kdAxisArray[t%u],v,p,h=k;p=r(a[e])&&r(k[e])?Math.pow(a[e]-k[e],2):null;v=r(a[f])&&r(k[f])?Math.pow(a[f]-k[f],2):null;v=(p||0)+(v||0);k.dist=r(v)?Math.sqrt(v):Number.MAX_VALUE;k.distX=r(p)?Math.sqrt(p):Number.MAX_VALUE;m=a[m]-k[m];v=0>m?"left":"right";p=0>m?"right":"left";b[v]&&(v=c(a,b[v],t+1,u),h=v[g]<h[g]?v:k);b[p]&&Math.sqrt(m*m)<h[g]&&(a=c(a,b[p],t+1,u),h=a[g]<h[g]?a:h);return h}var d=this,e=this.kdAxisArray[0],f=this.kdAxisArray[1],g=b?"distX":"dist";this.kdTree||this.buildKDTree();
  if(this.kdTree)return c(a,this.kdTree,this.kdDimensions,this.kdDimensions)}};Jb.prototype={destroy:function(){ka(this,this.axis)},render:function(a){var b=this.options,c=b.format,c=c?v(c,this):b.formatter.call(this);this.label?this.label.attr({text:c,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(c,null,null,b.useHTML).css(b.style).attr({align:this.textAlign,rotation:b.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=c.reversed,
  f=this.isNegative&&!f||!this.isNegative&&f,g=c.translate(c.usePercentage?100:this.total,0,0,0,1),c=c.translate(0),c=ea(g-c),l=d.xAxis[0].translate(this.x)+a,n=d.plotHeight,f={x:e?f?g:g-c:l,y:e?n-l-b:f?n-g-c:n-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e[!1===this.options.crop||d.isInsidePlot(f.x,f.y)?"show":"hide"](!0)}};xa.prototype.buildStacks=function(){var a=this.series,b=z(this.options.reversedStacks,!0),c=a.length;if(!this.isXAxis){for(this.usePercentage=
  !1;c--;)a[b?c:a.length-c-1].setStackedPoints();if(this.usePercentage)for(c=0;c<a.length;c++)a[c].setPercentStacks()}};xa.prototype.renderStackTotals=function(){var a=this.chart,b=a.renderer,c=this.stacks,d,e,f=this.stackTotalGroup;f||(this.stackTotalGroup=f=b.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());f.translate(a.plotLeft,a.plotTop);for(d in c)for(e in a=c[d],a)a[e].render(f)};Z.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var a=
  this.processedXData,b=this.processedYData,c=[],d=b.length,e=this.options,f=e.threshold,g=e.startFromThreshold?f:0,l=e.stack,e=e.stacking,n=this.stackKey,t="-"+n,u=this.negStacks,k=this.yAxis,m=k.stacks,v=k.oldStacks,p,h,B,r,w,q;for(r=0;r<d;r++)w=a[r],q=b[r],B=this.index+","+r,h=(p=u&&q<(g?0:f))?t:n,m[h]||(m[h]={}),m[h][w]||(v[h]&&v[h][w]?(m[h][w]=v[h][w],m[h][w].total=null):m[h][w]=new Jb(k,k.options.stackLabels,p,w,l)),h=m[h][w],h.points[B]=[z(h.cum,g)],"percent"===e?(p=p?n:t,u&&m[p]&&m[p][w]?(p=
  m[p][w],h.total=p.total=L(p.total,h.total)+ea(q)||0):h.total=la(h.total+(ea(q)||0))):h.total=la(h.total+(q||0)),h.cum=z(h.cum,g)+(q||0),h.points[B].push(h.cum),c[r]=h.cum;"percent"===e&&(k.usePercentage=!0);this.stackedYData=c;k.oldStacks={}}};Z.prototype.setPercentStacks=function(){var a=this,b=a.stackKey,c=a.yAxis.stacks,d=a.processedXData;w([b,"-"+b],function(b){for(var f=d.length,g,l;f--;)if(g=d[f],g=(l=c[b]&&c[b][g])&&l.points[a.index+","+f])l=l.total?100/l.total:0,g[0]=la(g[0]*l),g[1]=la(g[1]*
  l),a.stackedYData[f]=g[1]})};M(Ab.prototype,{addSeries:function(a,b,c){var d,e=this;a&&(b=z(b,!0),ha(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 xa(this,q(a,{index:this[e].length,isX:b}));f[e]=y(f[e]||{});f[e].push(a);z(c,!0)&&this.redraw(d)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&x(d,{left:b.plotLeft+"px",
  top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=A("div",{className:"highcharts-loading"},M(e.style,{zIndex:10,display:"none"}),b.container),b.loadingSpan=A("span",null,e.labelStyle,d),na(b,"redraw",f));b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown||(x(d,{opacity:0,display:""}),lb(d,{opacity:e.style.opacity},{duration:e.showDuration||0}),b.loadingShown=!0);f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&lb(b,{opacity:0},{duration:a.loading.hideDuration||
  100,complete:function(){x(b,{display:"none"})}});this.loadingShown=!1}});M(Ba.prototype,{update:function(a,b,c,d){function e(){f.applyOptions(a);null===f.y&&l&&(f.graphic=l.destroy());V(a)&&!Q(a)&&(f.redraw=function(){if(l)if(a&&a.marker&&a.marker.symbol)f.graphic=l.destroy();else l.attr(f.pointAttr[f.state||""])[!1===f.visible?"hide":"show"]();a&&a.dataLabels&&f.dataLabel&&(f.dataLabel=f.dataLabel.destroy());f.redraw=null});n=f.index;g.updateParallelArrays(f,n);m&&f.name&&(m[f.x]=f.name);k.data[n]=
  f.options;g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(t.isDirtyBox=!0);"point"===k.legendType&&(t.isDirtyLegend=!0);b&&t.redraw(c)}var f=this,g=f.series,l=f.graphic,n,t=g.chart,k=g.options,m=g.xAxis&&g.xAxis.names;b=z(b,!0);!1===d?e():f.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(Oa(this,this.series.data),a,b)}});M(Z.prototype,{addPoint:function(a,b,c,d){var e=this,f=e.options,g=e.data,l=e.graph,n=e.area,t=e.chart,k=e.xAxis&&e.xAxis.names,
  m=l&&l.shift||0,v=["graph","area"],l=f.data,h,p=e.xData;Sa(d,t);if(c){for(d=e.zones.length;d--;)v.push("zoneGraph"+d,"zoneArea"+d);w(v,function(a){e[a]&&(e[a].shift=m+1)})}n&&(n.isArea=!0);b=z(b,!0);n={series:e};e.pointClass.prototype.applyOptions.apply(n,[a]);v=n.x;d=p.length;if(e.requireSorting&&v<p[d-1])for(h=!0;d&&p[d-1]>v;)d--;e.updateParallelArrays(n,"splice",d,0,0);e.updateParallelArrays(n,d);k&&n.name&&(k[v]=n.name);l.splice(d,0,a);h&&(e.data.splice(d,0,null),e.processData());"point"===f.legendType&&
  e.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),e.updateParallelArrays(n,"shift"),l.shift()));e.isDirty=!0;e.isDirtyData=!0;b&&(e.getAttribs(),t.redraw())},removePoint:function(a,b,c){var d=this,e=d.data,f=e[a],g=d.points,l=d.chart,n=function(){e.length===g.length&&g.splice(a,1);e.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(f||{series:d},"splice",a,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&l.redraw()};Sa(c,l);b=z(b,!0);f?f.firePointEvent("remove",null,
  n):n()},remove:function(a,b){var c=this,d=c.chart;a=z(a,!0);c.isRemoving||(c.isRemoving=!0,ha(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=N[f].prototype,l=["group","markerGroup","dataLabelsGroup"],n;if(a.type&&a.type!==f||void 0!==a.zIndex)l.length=0;w(l,function(a){l[a]=c[a];delete c[a]});a=q(e,{animation:!1,index:this.index,pointStart:this.xData[0]},
  {data:this.options.data},a);this.remove(!1);for(n in g)this[n]=J;M(this,N[a.type||f].prototype);w(l,function(a){c[a]=l[a]});this.init(d,a);d.linkSeries();z(b,!0)&&d.redraw(!1)}});M(xa.prototype,{update:function(a,b){var c=this.chart;a=c.options[this.coll][this.options.index]=q(this.userOptions,a);this.destroy(!0);this._addedPlotLB=this.chart._labelPanes=J;this.init(c,M(a,{events:J}));c.isDirtyBox=!0;z(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);p(b.axes,this);p(b[c],this);b.options[c].splice(this.options.index,1);w(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;z(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}});var bc=O(Z);N.line=bc;aa.area=q(bb,{threshold:0});var Pb=O(Z,{type:"area",getSegments:function(){var a=this,b=[],c=[],d=[],e=this.xAxis,f=this.yAxis,g=f.stacks[this.stackKey],l={},n,t,k=this.points,m=this.options.connectNulls,
  v,h;if(this.options.stacking&&!this.cropped){for(v=0;v<k.length;v++)l[k[v].x]=k[v];for(h in g)null!==g[h].total&&d.push(+h);d.sort(function(a,b){return a-b});w(d,function(b){var d=0,k;if(!m||l[b]&&null!==l[b].y)if(l[b])c.push(l[b]);else{for(v=a.index;v<=f.series.length;v++)if(k=g[b].points[v+","+b]){d=k[1];break}n=e.translate(b);t=f.toPixels(d,!0);c.push({y:null,plotX:n,clientX:n,plotY:t,yBottom:t,onMouseOver:ma})}});c.length&&b.push(c)}else Z.prototype.getSegments.call(this),b=this.segments;this.segments=
  b},getSegmentPath:function(a){var b=Z.prototype.getSegmentPath.call(this,a),c=[].concat(b),d,e=this.options;d=b.length;var f=this.yAxis.getThreshold(e.threshold),g;3===d&&c.push("L",b[1],b[2]);if(e.stacking&&!this.closedStacks)for(d=a.length-1;0<=d;d--)g=z(a[d].yBottom,f),d<a.length-1&&e.step&&c.push(a[d+1].plotX,g),c.push(a[d].plotX,g);else this.closeSegment(c,a,f);this.areaPath=this.areaPath.concat(c);return b},closeSegment:function(a,b,c){a.push("L",b[b.length-1].plotX,c,"L",b[0].plotX,c)},drawGraph:function(){this.areaPath=
  [];Z.prototype.drawGraph.apply(this);var a=this,b=this.areaPath,c=this.options,d=[["area",this.color,c.fillColor]];w(this.zones,function(b,f){d.push(["zoneArea"+f,b.color||a.color,b.fillColor||c.fillColor])});w(d,function(d){var f=d[0],g=a[f];g?g.animate({d:b}):a[f]=a.chart.renderer.path(b).attr({fill:z(d[2],Fa(d[1]).setOpacity(z(c.fillOpacity,.75)).get()),zIndex:0}).add(a.group)})},drawLegendSymbol:cb.drawRectangle});N.area=Pb;aa.spline=q(bb);var Qb=O(Z,{type:"spline",getPointSpline:function(a,b,
  c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],l,n,t,k;if(f&&g){a=f.plotY;t=g.plotX;var g=g.plotY,m;l=(1.5*d+f.plotX)/2.5;n=(1.5*e+a)/2.5;t=(1.5*d+t)/2.5;k=(1.5*e+g)/2.5;m=(k-n)*(t-d)/(t-l)+e-k;n+=m;k+=m;n>a&&n>e?(n=L(a,e),k=2*e-n):n<a&&n<e&&(n=X(a,e),k=2*e-n);k>g&&k>e?(k=L(g,e),n=2*e-k):k<g&&k<e&&(k=X(g,e),n=2*e-k);b.rightContX=t;b.rightContY=k}c?(b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,l||d,n||e,d,e],f.rightContX=f.rightContY=null):b=["M",d,e];return b}});N.spline=Qb;aa.areaspline=q(aa.area);
  var Bb=Pb.prototype,cc=O(Qb,{type:"areaspline",closedStacks:!0,getSegmentPath:Bb.getSegmentPath,closeSegment:Bb.closeSegment,drawGraph:Bb.drawGraph,drawLegendSymbol:cb.drawRectangle});N.areaspline=cc;aa.column=q(bb,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},
  startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0});var Cb=O(Z,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){Z.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&w(b.series,function(b){b.type===a.type&&(b.isDirty=!0)})},getColumnMetrics:function(){var a=this,b=a.options,c=a.xAxis,d=a.yAxis,e=c.reversed,f,g={},l,n=
  0;!1===b.grouping?n=1:w(a.chart.series,function(b){var c=b.options,e=b.yAxis;b.type===a.type&&b.visible&&d.len===e.len&&d.pos===e.pos&&(c.stacking?(f=b.stackKey,g[f]===J&&(g[f]=n++),l=g[f]):!1!==c.grouping&&(l=n++),b.columnIndex=l)});var c=X(ea(c.transA)*(c.ordinalSlope||b.pointRange||c.closestPointRange||c.tickInterval||1),c.len),t=c*b.groupPadding,k=(c-2*t)/n,m=b.pointWidth,b=r(m)?(k-m)/2:k*b.pointPadding,m=z(m,k-2*b);return a.columnMetrics={width:m,offset:b+(t+((e?n-(a.columnIndex||0):a.columnIndex)||
  0)*k-c/2)*(e?-1:1)}},translate:function(){var a=this,b=a.chart,c=a.options,d=a.borderWidth=z(c.borderWidth,2>a.closestPointRange*a.xAxis.transA?0:1),e=a.yAxis,f=a.translatedThreshold=e.getThreshold(c.threshold),g=z(c.minPointLength,5),l=a.getColumnMetrics(),n=l.width,k=a.barW=L(n,1+2*d),m=a.pointXOffset=l.offset,v=-(d%2?.5:0),h=d%2?.5:1;b.inverted&&(f-=.5,b.renderer.isVML&&(h+=1));c.pointPadding&&(k=Ca(k));Z.prototype.translate.apply(a);w(a.points,function(c){var d=z(c.yBottom,f),l=999+ea(d),l=X(L(-l,
  c.plotY),e.len+l),p=c.plotX+m,B=k,r=X(l,d),w,q;w=L(l,d)-r;ea(w)<g&&g&&(w=g,q=!e.reversed&&!c.negative||e.reversed&&c.negative,r=P(ea(r-f)>g?d-g:f-(q?g:0)));c.barX=p;c.pointWidth=n;B=P(p+B)+v;p=P(p)+v;B-=p;d=.5>ea(r);w=X(P(r+w)+h,9E4);r=P(r)+h;w-=r;d&&(--r,w+=1);c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-l,a.xAxis.len-p-B/2,w]:[p+B/2,l+e.pos-b.plotTop,w];c.shapeType="rect";c.shapeArgs={x:p,y:r,width:B,height:w}})},getSymbol:ma,drawLegendSymbol:cb.drawRectangle,drawGraph:ma,drawPoints:function(){var a=
  this,b=this.chart,c=a.options,d=b.renderer,e=c.animationLimit||250,f,g;w(a.points,function(l){var n=l.plotY,k=l.graphic;n===J||isNaN(n)||null===l.y?k&&(l.graphic=k.destroy()):(f=l.shapeArgs,n=r(a.borderWidth)?{"stroke-width":a.borderWidth}:{},g=l.pointAttr[l.selected?"select":""]||a.pointAttr[""],k?(ab(k),k.attr(n)[b.pointCount<e?"animate":"attr"](q(f))):l.graphic=d[l.shapeType](f).attr(n).attr(g).add(a.group).shadow(c.shadow,null,c.stacking&&!c.borderRadius))})},animate:function(a){var b=this.yAxis,
  c=this.options,d=this.chart.inverted,e={};ua&&(a?(e.scaleY=.001,a=X(b.pos+b.len,L(b.pos,b.toPixels(c.threshold))),d?e.translateX=a-b.len:e.translateY=a,this.group.attr(e)):(e.scaleY=1,e[d?"translateX":"translateY"]=b.pos,this.group.animate(e,this.options.animation),this.animate=null))},remove:function(){var a=this,b=a.chart;b.hasRendered&&w(b.series,function(b){b.type===a.type&&(b.isDirty=!0)});Z.prototype.remove.apply(a,arguments)}});N.column=Cb;aa.bar=q(aa.column);var dc=O(Cb,{type:"bar",inverted:!0});
  N.bar=dc;aa.scatter=q(bb,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{series.color}">\u25cf</span> <span style="font-size: 10px;"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});var Rb=O(Z,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&Z.prototype.drawGraph.call(this)}});
  N.scatter=Rb;aa.pie=q(bb,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});var Db={type:"pie",isCartesian:!1,pointClass:O(Ba,{init:function(){Ba.prototype.init.apply(this,arguments);var a=this,b;M(a,{visible:!1!==
  a.visible,name:z(a.name,"Slice")});b=function(b){a.slice("select"===b.type)};na(a,"select",b);na(a,"unselect",b);return a},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=d.options.ignoreHiddenPoint;b=z(b,f);a!==c.visible&&(c.visible=c.options.visible=a=a===J?!c.visible:a,d.options.data[Oa(c,d.data)]=c.options,w(["graphic","dataLabel","connector","shadowGroup"],function(b){if(c[b])c[b][a?"show":"hide"](!0)}),c.legendItem&&e.legend.colorizeItem(c,a),a||"hover"!==c.state||c.setState(""),
  f&&(d.isDirty=!0),b&&e.redraw())},slice:function(a,b,c){var d=this.series;Sa(c,d.chart);z(b,!0);this.sliced=this.options.sliced=a=r(a)?a:!this.sliced;d.options.data[Oa(this,d.data)]=this.options;a=a?this.slicedTranslation:{translateX:0,translateY:0};this.graphic.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)},haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,
  start:b.start,end:b.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:ma,animate:function(a){var b=this,c=b.points,d=b.startAngleRad;a||(w(c,function(a){var c=a.graphic,g=a.shapeArgs;c&&(c.attr({r:a.startR||b.center[3]/2,start:d,end:d}),c.animate({r:g.r,start:g.start,end:g.end},b.options.animation))}),b.animate=null)},setData:function(a,b,c,
  d){Z.prototype.setData.call(this,a,!1,c,d);this.processData();this.generatePoints();z(b,!0)&&this.chart.redraw(c)},updateTotals:function(){var a,b=0,c=this.points,d=c.length,e,f=this.options.ignoreHiddenPoint;for(a=0;a<d;a++)e=c[a],b+=f&&!e.visible?0:e.y;this.total=b;for(a=0;a<d;a++)e=c[a],e.percentage=0<b&&(e.visible||!f)?e.y/b*100:0,e.total=b},generatePoints:function(){Z.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();var b=0,c=this.options,d=
  c.slicedOffset,e=d+c.borderWidth,f,g,l,n=c.startAngle||0,k=this.startAngleRad=Ea/180*(n-90),n=(this.endAngleRad=Ea/180*(z(c.endAngle,n+360)-90))-k,m=this.points,v=c.dataLabels.distance,c=c.ignoreHiddenPoint,h,p=m.length,B;a||(this.center=a=this.getCenter());this.getX=function(b,c){l=ja.asin(X((b-a[1])/(a[2]/2+v),1));return a[0]+(c?-1:1)*va(l)*(a[2]/2+v)};for(h=0;h<p;h++){B=m[h];f=k+b*n;if(!c||B.visible)b+=B.percentage/100;g=k+b*n;B.shapeType="arc";B.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,
  start:P(1E3*f)/1E3,end:P(1E3*g)/1E3};l=(g+f)/2;l>1.5*Ea?l-=2*Ea:l<-Ea/2&&(l+=2*Ea);B.slicedTranslation={translateX:P(va(l)*d),translateY:P(Da(l)*d)};f=va(l)*a[2]/2;g=Da(l)*a[2]/2;B.tooltipPos=[a[0]+.7*f,a[1]+.7*g];B.half=l<-Ea/2||l>Ea/2?1:0;B.angle=l;e=X(e,v/2);B.labelPos=[a[0]+f+va(l)*v,a[1]+g+Da(l)*v,a[0]+f+va(l)*e,a[1]+g+Da(l)*e,a[0]+f,a[1]+g,0>v?"center":B.half?"right":"left",l]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,c,d,e=a.options.shadow,f,g,l;e&&!a.shadowGroup&&
  (a.shadowGroup=b.g("shadow").add(a.group));w(a.points,function(n){d=n.graphic;g=n.shapeArgs;f=n.shadowGroup;e&&!f&&(f=n.shadowGroup=b.g("shadow").add(a.shadowGroup));c=n.sliced?n.slicedTranslation:{translateX:0,translateY:0};f&&f.attr(c);d?d.animate(M(g,c)):(l={"stroke-linejoin":"round"},n.visible||(l.visibility="hidden"),n.graphic=d=b[n.shapeType](g).setRadialReference(a.center).attr(n.pointAttr[n.selected?"select":""]).attr(l).attr(c).add(a.group).shadow(e,f))})},searchPoint:ma,sortByAngle:function(a,
  b){a.sort(function(a,d){return void 0!==a.angle&&(d.angle-a.angle)*b})},drawLegendSymbol:cb.drawRectangle,getCenter:Ob.getCenter,getSymbol:ma},Db=O(Z,Db);N.pie=Db;Z.prototype.drawDataLabels=function(){var a=this,b=a.options,c=b.cursor,d=b.dataLabels,e=a.points,f,g,l=a.hasRendered||0,n,k,m=a.chart.renderer;if(d.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(d),k=a.plotGroup("dataLabelsGroup","data-labels",d.defer?"hidden":"visible",d.zIndex||6),z(d.defer,!0)&&(k.attr({opacity:+l}),
  l||na(a,"afterAnimate",function(){a.visible&&k.show();k[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),g=d,w(e,function(e){var l,h=e.dataLabel,p,B,w=e.connector,K=!0,D,x={};f=e.dlOptions||e.options&&e.options.dataLabels;l=z(f&&f.enabled,g.enabled);if(h&&!l)e.dataLabel=h.destroy();else if(l){d=q(g,f);D=d.style;l=d.rotation;p=e.getLabelConfig();n=d.format?v(d.format,p):d.formatter.call(p,d);D.color=z(d.color,D.color,a.color,"black");if(h)r(n)?(h.attr({text:n}),K=!1):(e.dataLabel=h=h.destroy(),
  w&&(e.connector=w.destroy()));else if(r(n)){h={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:l,padding:d.padding,zIndex:1};"contrast"===D.color&&(x.color=d.inside||0>d.distance||b.stacking?m.getContrast(e.color||a.color):"#000000");c&&(x.cursor=c);for(B in h)h[B]===J&&delete h[B];h=e.dataLabel=m[l?"text":"label"](n,0,-999,d.shape,null,null,d.useHTML).attr(h).css(M(D,x)).add(k).shadow(d.shadow)}h&&a.alignDataLabel(e,h,d,null,K)}})};Z.prototype.alignDataLabel=
  function(a,b,c,d,e){var f=this.chart,g=f.inverted,l=z(a.plotX,-999),n=z(a.plotY,-999),k=b.getBBox(),m=f.renderer.fontMetrics(c.style.fontSize).b,v=this.visible&&(a.series.forceDL||f.isInsidePlot(l,P(n),g)||d&&f.isInsidePlot(l,g?d.x+1:d.y+d.height-1,g));v&&(d=M({x:g?f.plotWidth-n:l,y:P(g?f.plotHeight-l:n),width:0,height:0},d),M(c,{width:k.width,height:k.height}),c.rotation?(a=f.renderer.rotCorr(m,c.rotation),b[e?"attr":"animate"]({x:d.x+c.x+d.width/2+a.x,y:d.y+c.y+d.height/2}).attr({align:c.align})):
  (b.align(c,null,d),g=b.alignAttr,"justify"===z(c.overflow,"justify")?this.justifyDataLabel(b,c,g,k,d,e):z(c.crop,!0)&&(v=f.isInsidePlot(g.x,g.y)&&f.isInsidePlot(g.x+k.width,g.y+k.height)),c.shape&&b.attr({anchorX:a.plotX,anchorY:a.plotY})));v||(b.attr({y:-999}),b.placed=!1)};Z.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g=this.chart,l=b.align,n=b.verticalAlign,k,m,v=a.box?0:a.padding||0;k=c.x+v;0>k&&("right"===l?b.align="left":b.x=-k,m=!0);k=c.x+d.width-v;k>g.plotWidth&&("left"===l?b.align=
  "right":b.x=g.plotWidth-k,m=!0);k=c.y+v;0>k&&("bottom"===n?b.verticalAlign="top":b.y=-k,m=!0);k=c.y+d.height-v;k>g.plotHeight&&("top"===n?b.verticalAlign="bottom":b.y=g.plotHeight-k,m=!0);m&&(a.placed=!f,a.align(b,null,e))};N.pie&&(N.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,d=a.chart,e=a.options.dataLabels,f=z(e.connectorPadding,10),g=z(e.connectorWidth,1),l=d.plotWidth,n=d.plotHeight,k,m,v=z(e.softConnector,!0),h=e.distance,p=a.center,B=p[2]/2,r=p[1],q=0<h,K,D,x,R=[[],[]],y,
  A,ka,U,E,J=[0,0,0,0],O=function(a,b){return b.y-a.y};if(a.visible&&(e.enabled||a._hasPointLabels)){Z.prototype.drawDataLabels.apply(a);w(b,function(a){a.dataLabel&&a.visible&&R[a.half].push(a)});for(U=2;U--;){var F=[],I=[],M=R[U],N=M.length,oa;if(N){a.sortByAngle(M,U-.5);for(E=b=0;!b&&M[E];)b=M[E]&&M[E].dataLabel&&(M[E].dataLabel.getBBox().height||21),E++;if(0<h){D=X(r+B+h,d.plotHeight);for(E=L(0,r-B-h);E<=D;E+=b)F.push(E);D=F.length;if(N>D){c=[].concat(M);c.sort(O);for(E=N;E--;)c[E].rank=E;for(E=
  N;E--;)M[E].rank>=D&&M.splice(E,1);N=M.length}for(E=0;E<N;E++){c=M[E];x=c.labelPos;c=9999;var ca,la;for(la=0;la<D;la++)ca=ea(F[la]-x[1]),ca<c&&(c=ca,oa=la);if(oa<E&&null!==F[E])oa=E;else for(D<N-E+oa&&null!==F[E]&&(oa=D-N+E);null===F[oa];)oa++;I.push({i:oa,y:F[oa]});F[oa]=null}I.sort(O)}for(E=0;E<N;E++){c=M[E];x=c.labelPos;K=c.dataLabel;ka=!1===c.visible?"hidden":"inherit";c=x[1];if(0<h){if(D=I.pop(),oa=D.i,A=D.y,c>A&&null!==F[oa+1]||c<A&&null!==F[oa-1])A=X(L(0,c),d.plotHeight)}else A=c;y=e.justify?
  p[0]+(U?-1:1)*(B+h):a.getX(A===r-B-h||A===r+B+h?c:A,U);K._attr={visibility:ka,align:x[6]};K._pos={x:y+e.x+({left:f,right:-f}[x[6]]||0),y:A+e.y-10};K.connX=y;K.connY=A;null===this.options.size&&(D=K.width,y-D<f?J[3]=L(P(D-y+f),J[3]):y+D>l-f&&(J[1]=L(P(y+D-l+f),J[1])),0>A-b/2?J[0]=L(P(-A+b/2),J[0]):A+b/2>n&&(J[2]=L(P(A+b/2-n),J[2])))}}}if(0===ga(J)||this.verifyDataLabelOverflow(J))this.placeDataLabels(),q&&g&&w(this.points,function(b){k=b.connector;x=b.labelPos;(K=b.dataLabel)&&K._pos&&b.visible?(ka=
  K._attr.visibility,y=K.connX,A=K.connY,m=v?["M",y+("left"===x[6]?5:-5),A,"C",y,A,2*x[2]-x[4],2*x[3]-x[5],x[2],x[3],"L",x[4],x[5]]:["M",y+("left"===x[6]?5:-5),A,"L",x[2],x[3],"L",x[4],x[5]],k?(k.animate({d:m}),k.attr("visibility",ka)):b.connector=k=a.chart.renderer.path(m).attr({"stroke-width":g,stroke:e.connectorColor||b.color||"#606060",visibility:ka}).add(a.dataLabelsGroup)):k&&(b.connector=k.destroy())})}},N.pie.prototype.placeDataLabels=function(){w(this.points,function(a){var b=a.dataLabel;b&&
  a.visible&&((a=b._pos)?(b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-999}))})},N.pie.prototype.alignDataLabel=ma,N.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e=c.minSize||80,f=e,g;null!==d[0]?f=L(b[2]-L(a[1],a[3]),e):(f=L(b[2]-a[1]-a[3],e),b[0]+=(a[3]-a[1])/2);null!==d[1]?f=L(X(f,b[2]-L(a[0],a[2])),e):(f=L(X(f,b[2]-a[0]-a[2]),e),b[1]+=(a[0]-a[2])/2);f<b[2]?(b[2]=f,b[3]=ia(c.innerSize||0,f),this.translate(b),w(this.points,
  function(a){a.dataLabel&&(a.dataLabel._pos=null)}),this.drawDataLabels&&this.drawDataLabels()):g=!0;return g});N.column&&(N.column.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart.inverted,g=a.series,l=a.dlBox||a.shapeArgs,n=z(a.below,a.plotY>z(this.translatedThreshold,g.yAxis.len)),k=z(c.inside,!!this.options.stacking);l&&(d=q(l),f&&(d={x:g.yAxis.len-d.y-d.height,y:g.xAxis.len-d.x-d.width,width:d.height,height:d.width}),k||(f?(d.x+=n?0:d.width,d.width=0):(d.y+=n?d.height:0,d.height=
  0)));c.align=z(c.align,!f||k?"center":n?"right":"left");c.verticalAlign=z(c.verticalAlign,f||k?"middle":n?"top":"bottom");Z.prototype.alignDataLabel.call(this,a,b,c,d,e)});var Va=Y.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(a){for(var c=a.target,d;c&&!d;)d=c.point,c=c.parentNode;if(d!==J&&d!==b.hoverPoint)d.onMouseOver(a)};w(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&(a.dataLabel.element.point=
  a)});a._hasTracking||(w(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),Za))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,l=f.renderer,n=f.options.tooltip.snap,k=a.tracker,m=b.cursor,v=m&&{cursor:m},m=a.singlePoints,h,p=function(){if(f.hoverSeries!==a)a.onMouseOver()},
  B="rgba(192,192,192,"+(ua?1E-4:.002)+")";if(e&&!c)for(h=e+1;h--;)"M"===d[h]&&d.splice(h+1,0,d[h+1]-n,d[h+2],"L"),(h&&"M"===d[h]||h===e)&&d.splice(h,0,"L",d[h-2]+n,d[h-1]);for(h=0;h<m.length;h++)e=m[h],d.push("M",e.plotX-n,e.plotY,"L",e.plotX+n,e.plotY);k?k.attr({d:d}):(a.tracker=l.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:B,fill:c?B:"none","stroke-width":b.lineWidth+(c?0:2*n),zIndex:2}).add(a.group),w([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",
  p).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(v);if(Za)a.on("touchstart",p)}))}};N.column&&(Cb.prototype.drawTracker=Va.drawTrackerPoint);N.pie&&(N.pie.prototype.drawTracker=Va.drawTrackerPoint);N.scatter&&(Rb.prototype.drawTracker=Va.drawTrackerPoint);M(nb.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):ha(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=A("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);na(a.checkbox,"click",function(b){ha(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});ra.legend.itemStyle.cursor="pointer";M(Ab.prototype,{showResetZoom:function(){var a=
  this,b=ra.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;ha(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,c=this.pointer,d=!1,e;!a||a.resetSelection?w(this.axes,function(a){b=a.zoom()}):w(a.xAxis.concat(a.yAxis),
  function(a){var e=a.axis,l=e.isXAxis;if(c[l?"zoomX":"zoomY"]||c[l?"pinchX":"pinchY"])b=e.zoom(a.min,a.max),e.displayBtn&&(d=!0)});e=this.resetZoomButton;d&&!e?this.showResetZoom():!d&&V(e)&&(this.resetZoomButton=e.destroy());b&&this.redraw(z(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&w(d,function(a){a.setState()});w("xy"===b?[1,0]:[1],function(b){var d=a[b?"chartX":"chartY"],l=c[b?"xAxis":"yAxis"][0],n=c[b?"mouseDownX":"mouseDownY"],
  k=(l.pointRange||0)/2,m=l.getExtremes(),h=l.toValue(n-d,!0)+k,k=l.toValue(n+c[b?"plotWidth":"plotHeight"]-d,!0)-k,n=n>d;l.series.length&&(n||h>X(m.dataMin,m.min))&&(!n||k<L(m.dataMax,m.max))&&(l.setExtremes(h,k,!1,!1,{trigger:"pan"}),e=!0);c[b?"mouseDownX":"mouseDownY"]=d});e&&c.redraw(!1);x(c.container,{cursor:"move"})}});M(Ba.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart;a=z(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=
  a;d.options.data[Oa(c,d.data)]=c.options;c.setState(a&&"select");b||w(e.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[Oa(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(c.hoverSeries!==b)b.onMouseOver();if(e&&e!==this)e.onMouseOut();this.series&&(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!==Oa(this,b)||(this.setState(),a.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var a=q(this.series.options.point,this.options).events,b;this.events=a;for(b in a)na(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=aa[e.type].marker&&e.options.marker,l=g&&!g.enabled,n=g&&g.states[a],
  k=n&&!1===n.enabled,m=e.stateMarkerGraphic,h=this.marker||{},v=e.chart,p=e.halo,B;a=a||"";B=this.pointAttr[a]||e.pointAttr[a];if(!(a===this.state&&!b||this.selected&&"select"!==a||f[a]&&!1===f[a].enabled||a&&(k||l&&!1===n.enabled)||a&&h.states&&h.states[a]&&!1===h.states[a].enabled)){if(this.graphic)g=g&&this.graphic.symbolName&&B.r,this.graphic.attr(q(B,g?{x:c-g,y:d-g,width:2*g,height:2*g}:{})),m&&m.hide();else{if(a&&n)if(g=n.radius,h=h.symbol||e.symbol,m&&m.currentSymbol!==h&&(m=m.destroy()),m)m[b?
  "animate":"attr"]({x:c-g,y:d-g});else h&&(e.stateMarkerGraphic=m=v.renderer.symbol(h,c-g,d-g,2*g,2*g).attr(B).add(e.markerGroup),m.currentSymbol=h);m&&(m[a&&v.isInsidePlot(c,d,v.inverted)?"show":"hide"](),m.element.point=this)}(c=f[a]&&f[a].halo)&&c.size?(p||(e.halo=p=v.renderer.path().add(v.seriesGroup)),p.attr(M({fill:Fa(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)}});M(Z.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&ha(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();
  this&&a.events.mouseOut&&ha(this,"mouseOut");!c||a.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this.options,c=this.graph,d=b.states,e=b.lineWidth,b=0;a=a||"";if(this.state!==a&&(this.state=a,!d[a]||!1!==d[a].enabled)&&(a&&(e=d[a].lineWidth||e+(d[a].lineWidthPlus||0)),c&&!c.dashstyle))for(a={"stroke-width":e},c.attr(a);this["zoneGraph"+b];)this["zoneGraph"+b].attr(a),b+=1},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,g=d.options.chart.ignoreHiddenSeries,
  l=c.visible;f=(c.visible=a=c.userOptions.visible=a===J?!l:a)?"show":"hide";w(["group","dataLabelsGroup","markerGroup","tracker"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&w(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});w(c.linkedSeries,function(b){b.setVisible(a,!1)});g&&(d.isDirtyBox=!0);!1!==b&&d.redraw();ha(c,f)},show:function(){this.setVisible(!0)},
  hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===J?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);ha(this,a?"select":"unselect")},drawTracker:Va.drawTrackerGraph});M(qa.prototype,{init:function(a,b,c){var d=this,e=d.defaultOptions;d.chart=b;d.options=a=q(e,b.angular?{background:{}}:void 0,a);(a=a.background)&&w([].concat(y(a)).reverse(),function(a){var b=a.backgroundColor,e=c.userOptions;a=q(d.defaultBackgroundOptions,a);b&&(a.backgroundColor=b);a.color=a.backgroundColor;
  c.options.plotBands.unshift(a);e.plotBands=e.plotBands||[];e.plotBands.unshift(a)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var ob=xa.prototype,Eb=Ma.prototype,ec={getOffset:ma,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=
  !1},setScale:ma,setCategories:ma,setTitle:ma},Sb={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",
  labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(a){a=this.options=q(this.defaultOptions,this.defaultRadialOptions,a);a.plotBands||(a.plotBands=[])},getOffset:function(){ob.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center=Ob.getCenter.call(this.pane)},getLinePath:function(a,b){var c=this.center;b=z(b,c[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+c[0],this.top+c[1],b,b,{start:this.startAngleRad,
  end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){ob.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)},setAxisSize:function(){ob.setAxisSize.call(this);this.isRadial&&
  (this.center=this.pane.center=Y.CenteredSeriesMixin.getCenter.call(this.pane),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*z(this.sector,1)/2)},getPosition:function(a,b){return this.postTranslate(this.isCircular?this.translate(a):0,z(this.isCircular?b:this.translate(a),this.center[2]/2)-this.offset)},postTranslate:function(a,b){var c=this.chart,d=this.center;a=this.startAngleRad+a;return{x:c.plotLeft+d[0]+Math.cos(a)*b,y:c.plotTop+
  d[1]+Math.sin(a)*b}},getPlotBandPath:function(a,b,c){var d=this.center,e=this.startAngleRad,f=d[2]/2,g=[z(c.outerRadius,"100%"),c.innerRadius,z(c.thickness,10)],l=/%$/,n,k=this.isCircular;"polygon"===this.options.gridLineInterpolation?d=this.getPlotLinePath(a).concat(this.getPlotLinePath(b,!0)):(a=Math.max(a,this.min),b=Math.min(b,this.max),k||(g[0]=this.translate(a),g[1]=this.translate(b)),g=Pa(g,function(a){l.test(a)&&(a=I(a,10)*f/100);return a}),"circle"!==c.shape&&k?(a=e+this.translate(a),b=e+
  this.translate(b)):(a=-Math.PI/2,b=1.5*Math.PI,n=!0),d=this.chart.renderer.symbols.arc(this.left+d[0],this.top+d[1],g[0],g[0],{start:Math.min(a,b),end:Math.max(a,b),innerR:z(g[1],g[0]-g[2]),open:n}));return d},getPlotLinePath:function(a,b){var c=this,d=c.center,e=c.chart,f=c.getPosition(a),g,l,n;c.isCircular?n=["M",d[0]+e.plotLeft,d[1]+e.plotTop,"L",f.x,f.y]:"circle"===c.options.gridLineInterpolation?(a=c.translate(a))&&(n=c.getLinePath(0,a)):(w(e.xAxis,function(a){a.pane===c.pane&&(g=a)}),n=[],a=
  c.translate(a),d=g.tickPositions,g.autoConnect&&(d=d.concat([d[0]])),b&&(d=[].concat(d).reverse()),w(d,function(b,c){l=g.getPosition(b,a);n.push(c?"L":"M",l.x,l.y)}));return n},getTitlePosition:function(){var a=this.center,b=this.chart,c=this.options.title;return{x:b.plotLeft+a[0]+(c.x||0),y:b.plotTop+a[1]-{high:.5,middle:.25,low:0}[c.align]*a[2]+(c.y||0)}}};pa(ob,"init",function(a,b,c){var d=b.angular,e=b.polar,f=c.isX,g=d&&f,l,n;n=b.options;var k=c.pane||0;if(d){if(M(this,g?ec:Sb),l=!f)this.defaultRadialOptions=
  this.defaultRadialGaugeOptions}else e&&(M(this,Sb),this.defaultRadialOptions=(l=f)?this.defaultRadialXOptions:q(this.defaultYAxisOptions,this.defaultRadialYOptions));a.call(this,b,c);g||!d&&!e||(a=this.options,b.panes||(b.panes=[]),this.pane=k=b.panes[k]=b.panes[k]||new qa(y(n.pane)[k],b,this),k=k.options,b.inverted=!1,n.chart.zoomType=null,this.startAngleRad=b=(k.startAngle-90)*Math.PI/180,this.endAngleRad=n=(z(k.endAngle,k.startAngle+360)-90)*Math.PI/180,this.offset=a.offset||0,(this.isCircular=
  l)&&c.max===J&&n-b===2*Math.PI&&(this.autoConnect=!0))});pa(Eb,"getPosition",function(a,b,c,d,e){var f=this.axis;return f.getPosition?f.getPosition(c):a.call(this,b,c,d,e)});pa(Eb,"getLabelPosition",function(a,b,c,d,e,f,g,l,n){var k=this.axis,m=f.y,h=20,v=f.align,p=(k.translate(this.pos)+k.startAngleRad+Math.PI/2)/Math.PI*180%360;k.isRadial?(a=k.getPosition(this.pos,k.center[2]/2+z(f.distance,-25)),"auto"===f.rotation?d.attr({rotation:p}):null===m&&(m=k.chart.renderer.fontMetrics(d.styles.fontSize).b-
  d.getBBox().height/2),null===v&&(k.isCircular?(this.label.getBBox().width>k.len*k.tickInterval/(k.max-k.min)&&(h=0),v=p>h&&p<180-h?"left":p>180+h&&p<360-h?"right":"center"):v="center",d.attr({align:v})),a.x+=f.x,a.y+=m):a=a.call(this,b,c,d,e,f,g,l,n);return a});pa(Eb,"getMarkPath",function(a,b,c,d,e,f,g){var l=this.axis;l.isRadial?(a=l.getPosition(this.pos,l.center[2]/2+d),b=["M",b,c,"L",a.x,a.y]):b=a.call(this,b,c,d,e,f,g);return b});aa.arearange=q(aa.area,{lineWidth:1,marker:null,threshold:null,
  tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}});N.arearange=O(N.area,{type:"arearange",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,c=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);
  a.plotHighX=c.x-b.plotLeft;a.plotHigh=c.y-b.plotTop},getSegments:function(){var a=this;w(a.points,function(b){a.options.connectNulls||null!==b.low&&null!==b.high?null===b.low&&null!==b.high&&(b.y=b.high):b.y=null});Z.prototype.getSegments.call(this)},translate:function(){var a=this,b=a.yAxis;N.area.prototype.translate.apply(a);w(a.points,function(a){var d=a.low,e=a.high,f=a.plotY;null===e&&null===d?a.y=null:null===d?(a.plotLow=a.plotY=null,a.plotHigh=b.translate(e,0,1,0,1)):null===e?(a.plotLow=f,
  a.plotHigh=null):(a.plotLow=f,a.plotHigh=b.translate(e,0,1,0,1))});this.chart.polar&&w(this.points,function(b){a.highToXY(b)})},getSegmentPath:function(a){var b,c=[],d=a.length,e=Z.prototype.getSegmentPath,f,g;g=this.options;var l=g.step;for(b=HighchartsAdapter.grep(a,function(a){return null!==a.plotLow});d--;)f=a[d],null!==f.plotHigh&&c.push({plotX:f.plotHighX||f.plotX,plotY:f.plotHigh});a=e.call(this,b);l&&(!0===l&&(l="left"),g.step={left:"right",center:"center",right:"left"}[l]);c=e.call(this,
  c);g.step=l;g=[].concat(a,c);this.chart.polar||(c[0]="L");this.areaPath=this.areaPath.concat(a,c);return g},drawDataLabels:function(){var a=this.data,b=a.length,c,d=[],e=Z.prototype,f=this.options.dataLabels,g=f.align,l,n,k=this.chart.inverted;if(f.enabled||this._hasPointLabels){for(c=b;c--;)if(l=a[c])n=l.plotHigh>l.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,d[c]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=n,k?(g||(f.align=n?"right":"left"),f.x=f.xHigh):f.y=f.yHigh;e.drawDataLabels&&
  e.drawDataLabels.apply(this,arguments);for(c=b;c--;)if(l=a[c])n=l.plotHigh>l.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=d[c],l.y=l.low,l.plotY=l._plotY,l.below=!n,k?(g||(f.align=n?"left":"right"),f.x=f.xLow):f.y=f.yLow;e.drawDataLabels&&e.drawDataLabels.apply(this,arguments)}f.align=g},alignDataLabel:function(){N.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:ma,getSymbol:ma,drawPoints:ma});aa.areasplinerange=q(aa.arearange);N.areasplinerange=O(N.arearange,{type:"areasplinerange",
  getPointSpline:N.spline.prototype.getPointSpline});(function(){var a=N.column.prototype;aa.columnrange=q(aa.column,aa.arearange,{lineWidth:1,pointRange:null});N.columnrange=O(N.arearange,{type:"columnrange",translate:function(){var b=this,c=b.yAxis,d;a.translate.apply(b);w(b.points,function(a){var f=a.shapeArgs,g=b.options.minPointLength,l;a.tooltipPos=null;a.plotHigh=d=c.translate(a.high,0,1,0,1);a.plotLow=a.plotY;l=d;a=a.plotY-d;Math.abs(a)<g?(g-=a,a+=g,l-=g/2):0>a&&(a*=-1,l-=a);f.height=a;f.y=
  l})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:ma,pointAttrToOptions:a.pointAttrToOptions,drawPoints:a.drawPoints,drawTracker:a.drawTracker,animate:a.animate,getColumnMetrics:a.getColumnMetrics})})();aa.gauge=q(aa.line,{dataLabels:{enabled:!0,defer:!1,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1});var fc={type:"gauge",pointClass:O(Ba,{setState:function(a){this.state=
  a}}),angular:!0,drawGraph:ma,fixedBox:!0,forceDL:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var a=this.yAxis,b=this.options,c=a.center;this.generatePoints();w(this.points,function(d){var e=q(b.dial,d.dial),f=I(z(e.radius,80))*c[2]/200,g=I(z(e.baseLength,70))*f/100,l=I(z(e.rearLength,10))*f/100,n=e.baseWidth||3,k=e.topWidth||1,m=b.overshoot,h=a.startAngleRad+a.translate(d.y,null,null,null,!0);m&&"number"===typeof m?(m=m/180*Math.PI,h=Math.max(a.startAngleRad-m,Math.min(a.endAngleRad+
  m,h))):!1===b.wrap&&(h=Math.max(a.startAngleRad,Math.min(a.endAngleRad,h)));h=180*h/Math.PI;d.shapeType="path";d.shapeArgs={d:e.path||["M",-l,-n/2,"L",g,-n/2,f,-k/2,f,k/2,g,n/2,-l,n/2,"z"],translateX:c[0],translateY:c[1],rotation:h};d.plotX=c[0];d.plotY=c[1]})},drawPoints:function(){var a=this,b=a.yAxis.center,c=a.pivot,d=a.options,e=d.pivot,f=a.chart.renderer;w(a.points,function(b){var c=b.graphic,e=b.shapeArgs,k=e.d,m=q(d.dial,b.dial);c?(c.animate(e),e.d=k):b.graphic=f[b.shapeType](e).attr({stroke:m.borderColor||
  "none","stroke-width":m.borderWidth||0,fill:m.backgroundColor||"black",rotation:e.rotation}).add(a.group)});c?c.animate({translateX:b[0],translateY:b[1]}):a.pivot=f.circle(0,0,z(e.radius,5)).attr({"stroke-width":e.borderWidth||0,stroke:e.borderColor||"silver",fill:e.backgroundColor||"black"}).translate(b[0],b[1]).add(a.group)},animate:function(a){var b=this;a||(w(b.points,function(a){var d=a.graphic;d&&(d.attr({rotation:180*b.yAxis.startAngleRad/Math.PI}),d.animate({rotation:a.shapeArgs.rotation},
  b.options.animation))}),b.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);Z.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(a,b){Z.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();z(b,!0)&&this.chart.redraw()},drawTracker:Va&&Va.drawTrackerPoint};N.gauge=O(N.line,fc);aa.boxplot=q(aa.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,
  states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",whiskerWidth:2});N.boxplot=O(N.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",
  stroke:"color","stroke-width":"lineWidth"},drawDataLabels:ma,translate:function(){var a=this.yAxis,b=this.pointArrayMap;N.column.prototype.translate.apply(this);w(this.points,function(c){w(b,function(b){null!==c[b]&&(c[b+"Plot"]=a.translate(c[b],0,1,0,1))})})},drawPoints:function(){var a=this,b=a.points,c=a.options,d=a.chart.renderer,e,f,g,l,k,m,h,v,p,B,r,q,K,D,x,y,R,A,ga,E,ka,U,F=!1!==a.doQuartiles,O=parseInt(a.options.whiskerLength,10)/100;w(b,function(b){p=b.graphic;ka=b.shapeArgs;r={};D={};y=
  {};U=b.color||a.color;b.plotY!==J&&(e=b.pointAttr[b.selected?"selected":""],R=ka.width,A=fa(ka.x),ga=A+R,E=P(R/2),f=fa(F?b.q1Plot:b.lowPlot),g=fa(F?b.q3Plot:b.lowPlot),l=fa(b.highPlot),k=fa(b.lowPlot),r.stroke=b.stemColor||c.stemColor||U,r["stroke-width"]=z(b.stemWidth,c.stemWidth,c.lineWidth),r.dashstyle=b.stemDashStyle||c.stemDashStyle,D.stroke=b.whiskerColor||c.whiskerColor||U,D["stroke-width"]=z(b.whiskerWidth,c.whiskerWidth,c.lineWidth),y.stroke=b.medianColor||c.medianColor||U,y["stroke-width"]=
  z(b.medianWidth,c.medianWidth,c.lineWidth),h=r["stroke-width"]%2/2,v=A+E+h,B=["M",v,g,"L",v,l,"M",v,f,"L",v,k],F&&(h=e["stroke-width"]%2/2,v=fa(v)+h,f=fa(f)+h,g=fa(g)+h,A+=h,ga+=h,q=["M",A,g,"L",A,f,"L",ga,f,"L",ga,g,"L",A,g,"z"]),O&&(h=D["stroke-width"]%2/2,l+=h,k+=h,K=["M",v-E*O,l,"L",v+E*O,l,"M",v-E*O,k,"L",v+E*O,k]),h=y["stroke-width"]%2/2,m=P(b.medianPlot)+h,x=["M",A,m,"L",ga,m],p?(b.stem.animate({d:B}),O&&b.whiskers.animate({d:K}),F&&b.box.animate({d:q}),b.medianShape.animate({d:x})):(b.graphic=
  p=d.g().add(a.group),b.stem=d.path(B).attr(r).add(p),O&&(b.whiskers=d.path(K).attr(D).add(p)),F&&(b.box=d.path(q).attr(e).add(p)),b.medianShape=d.path(x).attr(y).add(p)))})},setStackedPoints:ma});aa.errorbar=q(aa.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null});N.errorbar=O(N.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,
  a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:N.arearange?N.arearange.prototype.drawDataLabels:ma,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||N.column.prototype.getColumnMetrics.call(this)}});aa.waterfall=q(aa.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333",dataLabels:{inside:!0},states:{hover:{lineWidthPlus:0}}});N.waterfall=O(N.column,{type:"waterfall",upColorProp:"fill",pointValKey:"y",translate:function(){var a=this.options,
  b=this.yAxis,c,d,e,f,g,l,k,m,h,v=a.threshold,p=a.stacking;N.column.prototype.translate.apply(this);k=m=v;d=this.points;c=0;for(a=d.length;c<a;c++)e=d[c],l=this.processedYData[c],f=e.shapeArgs,h=(g=p&&b.stacks[(this.negStacks&&l<v?"-":"")+this.stackKey])?g[e.x].points[this.index+","+c]:[0,l],e.isSum?e.y=l:e.isIntermediateSum&&(e.y=l-m),g=L(k,k+e.y)+h[0],f.y=b.translate(g,0,1),e.isSum?(f.y=b.translate(h[1],0,1),f.height=Math.min(b.translate(h[0],0,1),b.len)-f.y):e.isIntermediateSum?(f.y=b.translate(h[1],
  0,1),f.height=Math.min(b.translate(m,0,1),b.len)-f.y,m=h[1]):(0!==k&&(f.height=0<l?b.translate(k,0,1)-f.y:b.translate(k,0,1)-b.translate(k-l,0,1)),k+=l),0>f.height&&(f.y+=f.height,f.height*=-1),e.plotY=f.y=P(f.y)-this.borderWidth%2/2,f.height=L(P(f.height),.001),e.yBottom=f.y+f.height,f=e.plotY+(e.negative?f.height:0),this.chart.inverted?e.tooltipPos[0]=b.len-f:e.tooltipPos[1]=f},processData:function(a){var b=this.yData,c=this.options.data,d,e=b.length,f,g,l,k,m,h;g=f=l=k=this.options.threshold||
  0;for(h=0;h<e;h++)m=b[h],d=c&&c[h]?c[h]:{},"sum"===m||d.isSum?b[h]=g:"intermediateSum"===m||d.isIntermediateSum?b[h]=f:(g+=m,f+=m),l=Math.min(g,l),k=Math.max(g,k);Z.prototype.processData.call(this,a);this.dataMin=l;this.dataMax=k},toYData:function(a){return a.isSum?0===a.x?null:"sum":a.isIntermediateSum?0===a.x?null:"intermediateSum":a.y},getAttribs:function(){N.column.prototype.getAttribs.apply(this,arguments);var a=this,b=a.options,c=b.states,d=b.upColor||a.color,b=Y.Color(d).brighten(.1).get(),
  e=q(a.pointAttr),f=a.upColorProp;e[""][f]=d;e.hover[f]=c.hover.upColor||b;e.select[f]=c.select.upColor||d;w(a.points,function(b){b.options.color||(0<b.y?(b.pointAttr=e,b.color=d):b.pointAttr=a.pointAttr)})},getGraphPath:function(){var a=this.data,b=a.length,c=P(this.options.lineWidth+this.borderWidth)%2/2,d=[],e,f,g;for(g=1;g<b;g++)f=a[g].shapeArgs,e=a[g-1].shapeArgs,f=["M",e.x+e.width,e.y+c,"L",f.x,e.y+c],0>a[g-1].y&&(f[2]+=e.height,f[5]+=e.height),d=d.concat(f);return d},getExtremes:ma,drawGraph:Z.prototype.drawGraph});
  aa.bubble=q(aa.scatter,{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},minSize:8,maxSize:"20%",states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});var gc=O(Ba,{haloPath:function(){return Ba.prototype.haloPath.call(this,this.shapeArgs.r+this.series.options.states.hover.halo.size)},ttBelow:!1});N.bubble=O(N.scatter,{type:"bubble",pointClass:gc,
  pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(a){var b=this.options.marker,c=z(b.fillOpacity,.5);a=a||b.fillColor||this.color;1!==c&&(a=Fa(a).setOpacity(c).get("rgba"));return a},convertAttribs:function(){var a=Z.prototype.convertAttribs.apply(this,arguments);a.fill=this.applyOpacity(a.fill);return a},getRadii:function(a,
  b,c,d){var e,f,g,l=this.zData,k=[],m="width"!==this.options.sizeBy;f=0;for(e=l.length;f<e;f++)g=b-a,g=0<g?(l[f]-a)/(b-a):.5,m&&0<=g&&(g=Math.sqrt(g)),k.push(ja.ceil(c+g*(d-c))/2);this.radii=k},animate:function(a){var b=this.options.animation;a||(w(this.points,function(a){var d=a.graphic;a=a.shapeArgs;d&&a&&(d.attr("r",1),d.animate({r:a.r},b))}),this.animate=null)},translate:function(){var a,b=this.data,c,d,e=this.radii;N.scatter.prototype.translate.call(this);for(a=b.length;a--;)c=b[a],d=e?e[a]:0,
  d>=this.minPxSize/2?(c.shapeType="circle",c.shapeArgs={x:c.plotX,y:c.plotY,r:d},c.dlBox={x:c.plotX-d,y:c.plotY-d,width:2*d,height:2*d}):c.shapeArgs=c.plotY=c.dlBox=J},drawLegendSymbol:function(a,b){var c=I(a.itemStyle.fontSize)/2;b.legendSymbol=this.chart.renderer.circle(c,a.baseline-c,c).attr({zIndex:3}).add(b.legendGroup);b.legendSymbol.isMarker=!0},drawPoints:N.column.prototype.drawPoints,alignDataLabel:N.column.prototype.alignDataLabel,buildKDTree:ma,applyZones:ma});xa.prototype.beforePadding=
  function(){var a=this,b=this.len,c=this.chart,d=0,e=b,f=this.isXAxis,g=f?"xData":"yData",l=this.min,k={},m=ja.min(c.plotWidth,c.plotHeight),h=Number.MAX_VALUE,v=-Number.MAX_VALUE,p=this.max-l,B=b/p,r=[];w(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,r.push(b),f&&(w(["minSize","maxSize"],function(a){var b=d[a],c=/%$/.test(b),b=I(b);k[a]=c?m*b/100:b}),b.minPxSize=k.minSize,b=b.zData,b.length&&(h=z(d.zMin,ja.min(h,ja.max(K(b),
  !1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),v=z(d.zMax,ja.max(v,ga(b))))))});w(r,function(a){var b=a[g],c=b.length,m;f&&a.getRadii(h,v,k.minSize,k.maxSize);if(0<p)for(;c--;)"number"===typeof b[c]&&(m=a.radii[c],d=Math.min((b[c]-l)*B-m,d),e=Math.max((b[c]-l)*B+m,e))});r.length&&0<p&&z(this.options.min,this.userMin)===J&&z(this.options.max,this.userMax)===J&&(e-=b,B*=(b+d-e)/b,this.min+=d/B,this.max+=e/B)};(function(){function a(a,b,c){a.call(this,b,c);this.chart.polar&&(this.closeSegment=
  function(a){var b=this.xAxis.center;a.push("L",b[0],b[1])},this.closedStacks=!0)}function b(a,b){var c=this.chart,d=this.options.animation,e=this.group,k=this.markerGroup,m=this.xAxis.center,h=c.plotLeft,v=c.plotTop;c.polar?c.renderer.isSVG&&(!0===d&&(d={}),b?(c={translateX:m[0]+h,translateY:m[1]+v,scaleX:.001,scaleY:.001},e.attr(c),k&&k.attr(c)):(c={translateX:h,translateY:v,scaleX:1,scaleY:1},e.animate(c,d),k&&k.animate(c,d),this.animate=null)):a.call(this,b)}var c=Z.prototype,d=Qa.prototype,e;
  c.searchPointByAngle=function(a){var b=this.chart,c=this.xAxis.pane.center;return this.searchKDTree({clientX:180+Math.atan2(a.chartX-c[0]-b.plotLeft,a.chartY-c[1]-b.plotTop)*(-180/Math.PI)})};pa(c,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.kdDimensions=2);a.apply(this)});c.toXY=function(a){var b,c=this.chart,d=a.plotX;b=a.plotY;a.rectPlotX=d;a.rectPlotY=b;b=this.xAxis.postTranslate(a.plotX,this.yAxis.len-b);a.plotX=a.polarPlotX=b.x-c.plotLeft;
  a.plotY=a.polarPlotY=b.y-c.plotTop;this.kdByAngle?(c=(d/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>c&&(c+=360),a.clientX=c):a.clientX=a.plotX};N.area&&pa(N.area.prototype,"init",a);N.areaspline&&pa(N.areaspline.prototype,"init",a);N.spline&&pa(N.spline.prototype,"getPointSpline",function(a,b,c,d){var e,k,m,h,v,p,B;this.chart.polar?(e=c.plotX,k=c.plotY,a=b[d-1],m=b[d+1],this.connectEnds&&(a||(a=b[b.length-2]),m||(m=b[1])),a&&m&&(h=a.plotX,v=a.plotY,b=m.plotX,p=m.plotY,h=(1.5*e+h)/2.5,v=
  (1.5*k+v)/2.5,m=(1.5*e+b)/2.5,B=(1.5*k+p)/2.5,b=Math.sqrt(Math.pow(h-e,2)+Math.pow(v-k,2)),p=Math.sqrt(Math.pow(m-e,2)+Math.pow(B-k,2)),h=Math.atan2(v-k,h-e),v=Math.atan2(B-k,m-e),B=Math.PI/2+(h+v)/2,Math.abs(h-B)>Math.PI/2&&(B-=Math.PI),h=e+Math.cos(B)*b,v=k+Math.sin(B)*b,m=e+Math.cos(Math.PI+B)*p,B=k+Math.sin(Math.PI+B)*p,c.rightContX=m,c.rightContY=B),d?(c=["C",a.rightContX||a.plotX,a.rightContY||a.plotY,h||e,v||k,e,k],a.rightContX=a.rightContY=null):c=["M",e,k]):c=a.call(this,b,c,d);return c});
  pa(c,"translate",function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});pa(c,"getSegmentPath",function(a,b){var c=this.points;this.chart.polar&&!1!==this.options.connectEnds&&b[b.length-1]===c[c.length-1]&&null!==c[0].y&&(this.connectEnds=!0,b=[].concat(b,[c[0]]));return a.call(this,b)});pa(c,"animate",b);N.column&&(e=N.column.prototype,pa(e,"animate",b),pa(e,"translate",function(a){var b=
  this.xAxis,c=this.yAxis.len,d=b.center,e=b.startAngleRad,k=this.chart.renderer,m,h;this.preventPostTranslate=!0;a.call(this);if(b.isRadial)for(b=this.points,h=b.length;h--;)m=b[h],a=m.barX+e,m.shapeType="path",m.shapeArgs={d:k.symbols.arc(d[0],d[1],c-m.plotY,null,{start:a,end:a+m.pointWidth,innerR:c-z(m.yBottom,c)})},this.toXY(m),m.tooltipPos=[m.plotX,m.plotY],m.ttBelow=m.plotY>d[1]}),pa(e,"alignDataLabel",function(a,b,d,e,k,m){this.chart.polar?(a=b.rectPlotX/Math.PI*180,null===e.align&&(e.align=
  20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===e.verticalAlign&&(e.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),c.alignDataLabel.call(this,b,d,e,k,m)):a.call(this,b,d,e,k,m)}));pa(d,"getCoordinates",function(a,b){var c=this.chart,d={xAxis:[],yAxis:[]};c.polar?w(c.axes,function(a){var e=a.isXAxis,f=a.center,k=b.chartX-f[0]-c.plotLeft,f=b.chartY-f[1]-c.plotTop;d[e?"xAxis":"yAxis"].push({axis:a,value:a.translate(e?Math.PI-Math.atan2(k,f):Math.sqrt(Math.pow(k,2)+Math.pow(f,
  2)),!0)})}):d=a.call(this,b);return d})})();M(Y,{Color:Fa,Point:Ba,Tick:Ma,Renderer:Ua,SVGElement:da,SVGRenderer:Ua,arrayMin:K,arrayMax:ga,charts:sa,dateFormat:Ra,error:U,format:v,pathAnim:xb,getOptions:function(){return ra},hasBidiBug:Tb,isTouchDevice:Lb,setOptions:function(a){ra=q(!0,ra,a);La();return ra},addEvent:na,removeEvent:ta,createElement:A,discardElement:oa,css:x,each:w,map:Pa,merge:q,splat:y,extendClass:O,pInt:I,svg:ua,canvas:ya,vml:!ua&&!ya,product:"Highcharts 4.1.7",version:"/Highstock 2.1.7"})})();
  (function(q){var I=q.getOptions(),W=I.plotOptions,V=q.seriesTypes,Q=q.merge,T=function(){},F=q.each,h=q.pick;W.funnel=Q(W.pie,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,dataLabels:{connectorWidth:1,connectorColor:"#606060"},size:!0,states:{select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}}});V.funnel=q.extendClass(V.pie,{type:"funnel",animate:T,translate:function(){var h=function(k,m){return/%$/.test(k)?m*parseInt(k,10)/100:parseInt(k,
  10)},r=0,q=this.chart,y=this.options,x=y.reversed,A=y.ignoreHiddenPoint,O=q.plotWidth,E=q.plotHeight,I=0,q=y.center,D=h(q[0],O),v=h(q[1],E),m=h(y.width,O),k,B,K=h(y.height,E),ga=h(y.neckWidth,O),ka=h(y.neckHeight,E),oa=K-ka,h=this.data,U,la,Q="left"===y.dataLabels.position?1:0,La,da,V,W,qa,J,S;this.getWidthAt=B=function(k){return k>K-ka||K===ka?ga:ga+(K-ka-k)/(K-ka)*(m-ga)};this.getX=function(k,m){return D+(m?-1:1)*(B(x?E-k:k)/2+y.dataLabels.distance)};this.center=[D,v,K];this.centerX=D;F(h,function(k){A&&
  !1===k.visible||(r+=k.y)});F(h,function(m){S=null;la=r?m.y/r:0;da=v-K/2+I*K;qa=da+la*K;k=B(da);La=D-k/2;V=La+k;k=B(qa);W=D-k/2;J=W+k;da>oa?(La=W=D-ga/2,V=J=D+ga/2):qa>oa&&(S=qa,k=B(oa),W=D-k/2,J=W+k,qa=oa);x&&(da=K-da,qa=K-qa,S=S?K-S:null);U=["M",La,da,"L",V,da,J,qa];S&&U.push(J,S,W,S);U.push(W,qa,"Z");m.shapeType="path";m.shapeArgs={d:U};m.percentage=100*la;m.plotX=D;m.plotY=(da+(S||qa))/2;m.tooltipPos=[D,m.plotY];m.slice=T;m.half=Q;A&&!1===m.visible||(I+=la)})},drawPoints:function(){var p=this,
  r=p.options,q=p.chart.renderer;F(p.data,function(y){var x=y.options,A=y.graphic,F=y.shapeArgs;A?A.animate(F):y.graphic=q.path(F).attr({fill:y.color,stroke:h(x.borderColor,r.borderColor),"stroke-width":h(x.borderWidth,r.borderWidth)}).add(p.group)})},sortByAngle:function(h){h.sort(function(h,p){return h.plotY-p.plotY})},drawDataLabels:function(){var h=this.data,r=this.options.dataLabels.distance,q,y,x,A=h.length,F,E;for(this.center[2]-=2*r;A--;)x=h[A],y=(q=x.half)?1:-1,E=x.plotY,F=this.getX(E,q),x.labelPos=
  [0,E,F+(r-5)*y,E,F+r*y,E,q?"right":"left",0];V.pie.prototype.drawDataLabels.call(this)}});I.plotOptions.pyramid=q.merge(I.plotOptions.funnel,{neckWidth:"0%",neckHeight:"0%",reversed:!0});q.seriesTypes.pyramid=q.extendClass(q.seriesTypes.funnel,{type:"pyramid"})})(Highcharts);
  (function(q){var I=q.Chart,W=q.addEvent,V=q.removeEvent,Q=HighchartsAdapter.fireEvent,T=q.createElement,F=q.discardElement,h=q.css,p=q.merge,r=q.each,R=q.extend,y=q.splat,x=Math.max,A=document,O=window,E=q.isTouchDevice,ia=q.Renderer.prototype.symbols,D=q.getOptions(),v;R(D.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});D.navigation=
  {menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF",padding:"5px 0"},menuItemStyle:{padding:"0 10px",background:"none",color:"#303030",fontSize:E?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{symbolFill:"#E0E0E0",symbolSize:14,symbolStroke:"#666",symbolStrokeWidth:3,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,theme:{fill:"white",stroke:"none"},verticalAlign:"top",width:24}};D.exporting={type:"image/png",url:"http://export.highcharts.com/",
  buttons:{contextButton:{menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};
  q.post=function(m,k,h){var v;m=T("form",p({method:"post",action:m,enctype:"multipart/form-data"},h),{display:"none"},A.body);for(v in k)T("input",{type:"hidden",name:v,value:k[v]},null,m);m.submit();F(m)};R(I.prototype,{sanitizeSVG:function(m){return m.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS[0-9]+\:)?href=/g,
  " xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g,"\u00a0").replace(/&shy;/g,"\u00ad").replace(/<IMG /g,"<image ").replace(/<(\/?)TITLE>/g,"<$1title>").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/ id=([^" >]+)/g,' id="$1"').replace(/class=([^" >]+)/g,'class="$1"').replace(/ transform /g,
  " ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(k){return k.toLowerCase()})},getSVG:function(m){var k=this,h,v,D,x,E,U=p(k.options,m);A.createElementNS||(A.createElementNS=function(k,m){return A.createElement(m)});v=T("div",null,{position:"absolute",top:"-9999em",width:k.chartWidth+"px",height:k.chartHeight+"px"},A.body);D=k.renderTo.style.width;E=k.renderTo.style.height;D=U.exporting.sourceWidth||U.chart.width||/px$/.test(D)&&parseInt(D,10)||600;E=U.exporting.sourceHeight||
  U.chart.height||/px$/.test(E)&&parseInt(E,10)||400;R(U.chart,{animation:!1,renderTo:v,forExport:!0,width:D,height:E});U.exporting.enabled=!1;delete U.data;U.series=[];r(k.series,function(k){x=p(k.options,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:k.visible});x.isInternal||U.series.push(x)});m&&r(["xAxis","yAxis"],function(k){r(y(m[k]),function(m,h){U[k][h]=p(U[k][h],m)})});h=new q.Chart(U,k.callback);r(["xAxis","yAxis"],function(m){r(k[m],function(k,v){var p=h[m][v],r=k.getExtremes(),
  q=r.userMin,r=r.userMax;!p||void 0===q&&void 0===r||p.setExtremes(q,r,!0,!1)})});D=h.container.innerHTML;U=null;h.destroy();F(v);D=this.sanitizeSVG(D);return D=D.replace(/(url\(#highcharts-[0-9]+)&quot;/g,"$1").replace(/&quot;/g,"'")},getSVGForExport:function(m,k){var h=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},h.chartOptions,k,{exporting:{sourceWidth:m&&m.sourceWidth||h.sourceWidth,sourceHeight:m&&m.sourceHeight||h.sourceHeight}}))},exportChart:function(m,k){var h=this.getSVGForExport(m,
  k);m=p(this.options.exporting,m);q.post(m.url,{filename:m.filename||"chart",type:m.type,width:m.width||0,scale:m.scale||2,svg:h},m.formAttributes)},print:function(){var m=this,k=m.container,h=[],v=k.parentNode,p=A.body,q=p.childNodes;m.isPrinting||(m.isPrinting=!0,Q(m,"beforePrint"),r(q,function(k,m){1===k.nodeType&&(h[m]=k.style.display,k.style.display="none")}),p.appendChild(k),O.focus(),O.print(),setTimeout(function(){v.appendChild(k);r(q,function(k,m){1===k.nodeType&&(k.style.display=h[m])});
  m.isPrinting=!1;Q(m,"afterPrint")},1E3))},contextMenu:function(m,k,v,p,q,D,y){var A=this,E=A.options.navigation,F=E.menuItemStyle,O=A.chartWidth,I=A.chartHeight,Q="cache-"+m,ia=A[Q],qa=x(q,D),J,S,ca,ja=function(k){A.pointer.inClass(k.target,m)||S()};ia||(A[Q]=ia=T("div",{className:m},{position:"absolute",zIndex:1E3,padding:qa+"px"},A.container),J=T("div",null,R({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},E.menuStyle),ia),S=function(){h(ia,{display:"none"});
  y&&y.setState(0);A.openMenu=!1},W(ia,"mouseleave",function(){ca=setTimeout(S,500)}),W(ia,"mouseenter",function(){clearTimeout(ca)}),W(document,"mouseup",ja),W(A,"destroy",function(){V(document,"mouseup",ja)}),r(k,function(k){if(k){var m=k.separator?T("hr",null,null,J):T("div",{onmouseover:function(){h(this,E.menuItemHoverStyle)},onmouseout:function(){h(this,F)},onclick:function(){S();k.onclick&&k.onclick.apply(A,arguments)},innerHTML:k.text||A.options.lang[k.textKey]},R({cursor:"pointer"},F),J);A.exportDivElements.push(m)}}),
  A.exportDivElements.push(J,ia),A.exportMenuWidth=ia.offsetWidth,A.exportMenuHeight=ia.offsetHeight);k={display:"block"};v+A.exportMenuWidth>O?k.right=O-v-q-qa+"px":k.left=v-qa+"px";p+D+A.exportMenuHeight>I&&"top"!==y.alignOptions.verticalAlign?k.bottom=I-p-qa+"px":k.top=p+D-qa+"px";h(ia,k);A.openMenu=!0},addButton:function(m){var k=this,h=k.renderer,r=p(k.options.navigation.buttonOptions,m),D=r.onclick,x=r.menuItems,A,y,E={stroke:r.symbolStroke,fill:r.symbolFill},F=r.symbolSize||12;k.btnCount||(k.btnCount=
  0);k.exportDivElements||(k.exportDivElements=[],k.exportSVGElements=[]);if(!1!==r.enabled){var O=r.theme,I=O.states,ia=I&&I.hover,I=I&&I.select,Q;delete O.states;D?Q=function(){D.apply(k,arguments)}:x&&(Q=function(){k.contextMenu(y.menuClassName,x,y.translateX,y.translateY,y.width,y.height,y);y.setState(2)});r.text&&r.symbol?O.paddingLeft=q.pick(O.paddingLeft,25):r.text||R(O,{width:r.width,height:r.height,padding:0});y=h.button(r.text,0,0,Q,O,ia,I).attr({title:k.options.lang[r._titleKey],"stroke-linecap":"round"});
  y.menuClassName=m.menuClassName||"highcharts-menu-"+k.btnCount++;r.symbol&&(A=h.symbol(r.symbol,r.symbolX-F/2,r.symbolY-F/2,F,F).attr(R(E,{"stroke-width":r.symbolStrokeWidth||1,zIndex:1})).add(y));y.add().align(R(r,{width:y.width,x:q.pick(r.x,v)}),!0,"spacingBox");v+=(y.width+r.buttonSpacing)*("right"===r.align?-1:1);k.exportSVGElements.push(y,A)}},destroyExport:function(m){m=m.target;var k,h;for(k=0;k<m.exportSVGElements.length;k++)if(h=m.exportSVGElements[k])h.onclick=h.ontouchstart=null,m.exportSVGElements[k]=
  h.destroy();for(k=0;k<m.exportDivElements.length;k++)h=m.exportDivElements[k],V(h,"mouseleave"),m.exportDivElements[k]=h.onmouseout=h.onmouseover=h.ontouchstart=h.onclick=null,F(h)}});ia.menu=function(m,k,h,v){return["M",m,k+2.5,"L",m+h,k+2.5,"M",m,k+v/2+.5,"L",m+h,k+v/2+.5,"M",m,k+v-1.5,"L",m+h,k+v-1.5]};I.prototype.callbacks.push(function(m){var k,h=m.options.exporting,p=h.buttons;v=0;if(!1!==h.enabled){for(k in p)m.addButton(p[k]);W(m,"destroy",m.destroyExport)}})})(Highcharts);
  (function(q){var I=q.each,W=q.pick,V=HighchartsAdapter.inArray,Q=q.splat,T,F=function(h,p){this.init(h,p)};q.extend(F.prototype,{init:function(h,p){this.options=h;this.chartOptions=p;this.columns=h.columns||this.rowsToColumns(h.rows)||[];this.firstRowAsNames=W(h.firstRowAsNames,!0);this.decimalRegex=h.decimalPoint&&new RegExp("^([0-9]+)"+h.decimalPoint+"([0-9]+)$");this.rawColumns=[];this.columns.length?this.dataFound():(this.parseCSV(),this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var h=
  this.chartOptions,p=this.options,r=[],R=function(h){return(q.seriesTypes[h||"line"].prototype.pointArrayMap||[0]).length},y=h&&h.chart&&h.chart.type,x=[],A=[],F=0,E;I(h&&h.series||[],function(h){x.push(R(h.type||y))});I(p&&p.seriesMapping||[],function(h){r.push(h.x||0)});0===r.length&&r.push(0);I(p&&p.seriesMapping||[],function(p){var r=new T,v,m=x[F]||R(y),k=q.seriesTypes[((h&&h.series||[])[F]||{}).type||y||"line"].prototype.pointArrayMap||["y"];r.addColumnReader(p.x,"x");for(v in p)p.hasOwnProperty(v)&&
  "x"!==v&&r.addColumnReader(p[v],v);for(E=0;E<m;E++)r.hasReader(k[E])||r.addColumnReader(void 0,k[E]);A.push(r);F++});p=q.seriesTypes[y||"line"].prototype.pointArrayMap;void 0===p&&(p=["y"]);this.valueCount={global:R(y),xColumns:r,individual:x,seriesBuilders:A,globalPointArrayMap:p}},dataFound:function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns));this.getColumnDistribution();this.parseTypes();!1!==this.parsed()&&this.complete()},parseCSV:function(){var h=this,
  p=this.options,r=p.csv,q=this.columns,y=p.startRow||0,x=p.endRow||Number.MAX_VALUE,A=p.startColumn||0,F=p.endColumn||Number.MAX_VALUE,E,Q,D=0;r&&(Q=r.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(p.lineDelimiter||"\n"),E=p.itemDelimiter||(-1!==r.indexOf("\t")?"\t":","),I(Q,function(v,m){var k=h.trim(v),p=0===k.indexOf("#");m>=y&&m<=x&&!p&&""!==k&&(k=v.split(E),I(k,function(k,m){m>=A&&m<=F&&(q[m-A]||(q[m-A]=[]),q[m-A][D]=k)}),D+=1)}),this.dataFound())},parseTable:function(){var h=this.options,p=
  h.table,r=this.columns,q=h.startRow||0,y=h.endRow||Number.MAX_VALUE,x=h.startColumn||0,A=h.endColumn||Number.MAX_VALUE;p&&("string"===typeof p&&(p=document.getElementById(p)),I(p.getElementsByTagName("tr"),function(h,p){p>=q&&p<=y&&I(h.children,function(h,D){("TD"===h.tagName||"TH"===h.tagName)&&D>=x&&D<=A&&(r[D-x]||(r[D-x]=[]),r[D-x][p-q]=h.innerHTML)})}),this.dataFound())},parseGoogleSpreadsheet:function(){var h=this,p=this.options,r=p.googleSpreadsheetKey,q=this.columns,y=p.startRow||0,x=p.endRow||
  Number.MAX_VALUE,A=p.startColumn||0,F=p.endColumn||Number.MAX_VALUE,E,I;r&&jQuery.ajax({dataType:"json",url:"https://spreadsheets.google.com/feeds/cells/"+r+"/"+(p.googleSpreadsheetWorksheet||"od6")+"/public/values?alt=json-in-script&callback=?",error:p.error,success:function(p){p=p.feed.entry;var v,m=p.length,k=0,r=0,K;for(K=0;K<m;K++)v=p[K],k=Math.max(k,v.gs$cell.col),r=Math.max(r,v.gs$cell.row);for(K=0;K<k;K++)K>=A&&K<=F&&(q[K-A]=[],q[K-A].length=Math.min(r,x-y));for(K=0;K<m;K++)v=p[K],E=v.gs$cell.row-
  1,I=v.gs$cell.col-1,I>=A&&I<=F&&E>=y&&E<=x&&(q[I-A][E-y]=v.content.$t);h.dataFound()}})},trim:function(h,p){"string"===typeof h&&(h=h.replace(/^\s+|\s+$/g,""),p&&/^[0-9\s]+$/.test(h)&&(h=h.replace(/\s/g,"")),this.decimalRegex&&(h=h.replace(this.decimalRegex,"$1.$2")));return h},parseTypes:function(){for(var h=this.columns,p=h.length;p--;)this.parseColumn(h[p],p)},parseColumn:function(h,p){var r=this.rawColumns,q=this.columns,y=h.length,x,A,F,E,I=this.firstRowAsNames,D=-1!==V(p,this.valueCount.xColumns),
  v=[],m=this.chartOptions,k,B=(this.options.columnTypes||[])[p],m=D&&(m&&m.xAxis&&"category"===Q(m.xAxis)[0].type||"string"===B);for(r[p]||(r[p]=[]);y--;)x=v[y]||h[y],F=this.trim(x),E=this.trim(x,!0),A=parseFloat(E),void 0===r[p][y]&&(r[p][y]=F),m||0===y&&I?h[y]=F:+E===A?(h[y]=A,31536E6<A&&"float"!==B?h.isDatetime=!0:h.isNumeric=!0,void 0!==h[y+1]&&(k=A>h[y+1])):(A=this.parseDate(x),D&&"number"===typeof A&&!isNaN(A)&&"float"!==B?(v[y]=x,h[y]=A,h.isDatetime=!0,void 0!==h[y+1]&&(x=A>h[y+1],x!==k&&void 0!==
  k&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,y=h.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):h.unsorted=!0),k=x)):(h[y]=""===F?null:F,0!==y&&(h.isDatetime||h.isNumeric)&&(h.mixed=!0)));D&&h.mixed&&(q[p]=r[p]);if(D&&k&&this.options.sort)for(p=0;p<q.length;p++)q[p].reverse(),I&&q[p].unshift(q[p].pop())},dateFormats:{"YYYY-mm-dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{2})[\-\/\.]([0-9]{2})$/,parser:function(h){return Date.UTC(+h[1],h[2]-1,+h[3])}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,
  parser:function(h){return Date.UTC(+h[3],h[2]-1,+h[1])},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(h){return Date.UTC(+h[3],h[1]-1,+h[2])}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(h){return Date.UTC(+h[3]+2E3,h[2]-1,+h[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(h){return Date.UTC(+h[3]+2E3,h[1]-1,+h[2])}}},
  parseDate:function(h){var p=this.options.parseDate,r,q,y=this.options.dateFormat||this.dateFormat,x;if(p)r=p(h);else if("string"===typeof h){if(y)p=this.dateFormats[y],(x=h.match(p.regex))&&(r=p.parser(x));else for(q in this.dateFormats)if(p=this.dateFormats[q],x=h.match(p.regex)){this.dateFormat=q;this.alternativeFormat=p.alternative;r=p.parser(x);break}x||(x=Date.parse(h),"object"===typeof x&&null!==x&&x.getTime?r=x.getTime()-6E4*x.getTimezoneOffset():"number"!==typeof x||isNaN(x)||(r=x-6E4*(new Date(x)).getTimezoneOffset()))}return r},
  rowsToColumns:function(h){var p,r,q,y,x;if(h)for(x=[],r=h.length,p=0;p<r;p++)for(y=h[p].length,q=0;q<y;q++)x[q]||(x[q]=[]),x[q][p]=h[p][q];return x},parsed:function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},getFreeIndexes:function(h,p){var r,q,y=[],x=[],A;for(q=0;q<h;q+=1)y.push(!0);for(r=0;r<p.length;r+=1)for(A=p[r].getReferencedColumnIndexes(),q=0;q<A.length;q+=1)y[A[q]]=!1;for(q=0;q<y.length;q+=1)y[q]&&x.push(q);return x},complete:function(){var h=this.columns,
  p,r=this.options,q,y,x,A,F=[],E;if(r.complete||r.afterComplete){for(x=0;x<h.length;x++)this.firstRowAsNames&&(h[x].name=h[x].shift());q=[];y=this.getFreeIndexes(h.length,this.valueCount.seriesBuilders);for(x=0;x<this.valueCount.seriesBuilders.length;x++)E=this.valueCount.seriesBuilders[x],E.populateColumns(y)&&F.push(E);for(;0<y.length;){E=new T;E.addColumnReader(0,"x");x=V(0,y);-1!==x&&y.splice(x,1);for(x=0;x<this.valueCount.global;x++)E.addColumnReader(void 0,this.valueCount.globalPointArrayMap[x]);
  E.populateColumns(y)&&F.push(E)}0<F.length&&0<F[0].readers.length&&(E=h[F[0].readers[0].columnIndex],void 0!==E&&(E.isDatetime?p="datetime":E.isNumeric||(p="category")));if("category"===p)for(x=0;x<F.length;x++)for(E=F[x],y=0;y<E.readers.length;y++)"x"===E.readers[y].configName&&(E.readers[y].configName="name");for(x=0;x<F.length;x++){E=F[x];y=[];for(A=0;A<h[0].length;A++)y[A]=E.read(h,A);q[x]={data:y};E.name&&(q[x].name=E.name);"category"===p&&(q[x].turboThreshold=0)}h={series:q};p&&(h.xAxis={type:p});
  r.complete&&r.complete(h);r.afterComplete&&r.afterComplete(h)}}});q.Data=F;q.data=function(h,p){return new F(h,p)};q.wrap(q.Chart.prototype,"init",function(h,p,r){var F=this;p&&p.data?q.data(q.extend(p.data,{afterComplete:function(y){var x,A;if(p.hasOwnProperty("series"))if("object"===typeof p.series)for(x=Math.max(p.series.length,y.series.length);x--;)A=p.series[x]||{},p.series[x]=q.merge(A,y.series[x]);else delete p.series;p=q.merge(y,p);h.call(F,p,r)}}),p):h.call(F,p,r)});T=function(){this.readers=
  [];this.pointIsArray=!0};T.prototype.populateColumns=function(h){var p=!0;I(this.readers,function(p){void 0===p.columnIndex&&(p.columnIndex=h.shift())});I(this.readers,function(h){void 0===h.columnIndex&&(p=!1)});return p};T.prototype.read=function(h,p){var r=this.pointIsArray,q=r?[]:{},y;I(this.readers,function(x){var y=h[x.columnIndex][p];r?q.push(y):q[x.configName]=y});void 0===this.name&&2<=this.readers.length&&(y=this.getReferencedColumnIndexes(),2<=y.length&&(y.shift(),y.sort(),this.name=h[y.shift()].name));
  return q};T.prototype.addColumnReader=function(h,p){this.readers.push({columnIndex:h,configName:p});"x"!==p&&"y"!==p&&void 0!==p&&(this.pointIsArray=!1)};T.prototype.getReferencedColumnIndexes=function(){var h,p=[],r;for(h=0;h<this.readers.length;h+=1)r=this.readers[h],void 0!==r.columnIndex&&p.push(r.columnIndex);return p};T.prototype.hasReader=function(h){var p,r;for(p=0;p<this.readers.length;p+=1)if(r=this.readers[p],r.configName===h)return!0}})(Highcharts);
  (function(q){function I(){return!!this.points.length}function W(){this.hasData()?this.hideNoData():this.showNoData()}var V=q.seriesTypes,Q=q.Chart.prototype,T=q.getOptions(),F=q.extend,h=q.each;F(T.lang,{noData:"No data to display"});T.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"},attr:{},style:{fontWeight:"bold",fontSize:"12px",color:"#60606a"}};h(["pie","gauge","waterfall","bubble"],function(h){V[h]&&(V[h].prototype.hasData=I)});q.Series.prototype.hasData=function(){return this.visible&&
  void 0!==this.dataMax&&void 0!==this.dataMin};Q.showNoData=function(h){var r=this.options;h=h||r.lang.noData;r=r.noData;this.noDataLabel||(this.noDataLabel=this.renderer.label(h,0,0,null,null,null,r.useHTML,null,"no-data").attr(r.attr).css(r.style).add(),this.noDataLabel.align(F(this.noDataLabel.getBBox(),r.position),!1,"plotBox"))};Q.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};Q.hasData=function(){for(var h=this.series,r=h.length;r--;)if(h[r].hasData()&&
  !h[r].options.isInternal)return!0;return!1};Q.callbacks.push(function(h){q.addEvent(h,"load",W);q.addEvent(h,"redraw",W)})})(Highcharts);
  (function(q){function I(h,m,k){var p;m.rgba.length&&h.rgba.length?(h=h.rgba,m=m.rgba,p=1!==m[3]||1!==h[3],h=(p?"rgba(":"rgb(")+Math.round(m[0]+(h[0]-m[0])*(1-k))+","+Math.round(m[1]+(h[1]-m[1])*(1-k))+","+Math.round(m[2]+(h[2]-m[2])*(1-k))+(p?","+(m[3]+(h[3]-m[3])*(1-k)):"")+")"):h=m.raw||"none";return h}var W=function(){},V=q.getOptions(),Q=q.each,T=q.extend,F=q.format,h=q.pick,p=q.wrap,r=q.Chart,R=q.seriesTypes,y=R.pie,x=R.column,A=q.Tick,O=HighchartsAdapter.fireEvent,E=HighchartsAdapter.inArray,
  ia=1;Q(["fill","stroke"],function(h){HighchartsAdapter.addAnimSetter(h,function(m){m.elem.attr(h,I(q.Color(m.start),q.Color(m.end),m.pos))})});T(V.lang,{drillUpText:"\u25c1 Back to {series.name}"});V.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#0d233a",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#0d233a",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};q.SVGRenderer.prototype.Element.prototype.fadeIn=
  function(v){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:h(this.newOpacity,1)},v||{duration:250})};r.prototype.addSeriesAsDrilldown=function(h,m){this.addSingleSeriesAsDrilldown(h,m);this.applyDrilldown()};r.prototype.addSingleSeriesAsDrilldown=function(h,m){var k=h.series,p=k.xAxis,r=k.yAxis,q;q=h.color||k.color;var D,x=[],y=[],A,F;this.drilldownLevels||(this.drilldownLevels=[]);A=k.options._levelNumber||0;(F=this.drilldownLevels[this.drilldownLevels.length-1])&&F.levelNumber!==
  A&&(F=void 0);m=T({color:q,_ddSeriesId:ia++},m);D=E(h,k.points);Q(k.chart.series,function(k){k.xAxis!==p||k.isDrilling||(k.options._ddSeriesId=k.options._ddSeriesId||ia++,k.options._colorIndex=k.userOptions._colorIndex,k.options._levelNumber=k.options._levelNumber||A,F?(x=F.levelSeries,y=F.levelSeriesOptions):(x.push(k),y.push(k.options)))});q={levelNumber:A,seriesOptions:k.options,levelSeriesOptions:y,levelSeries:x,shapeArgs:h.shapeArgs,bBox:h.graphic?h.graphic.getBBox():{},color:q,lowerSeriesOptions:m,
  pointOptions:k.options.data[D],pointIndex:D,oldExtremes:{xMin:p&&p.userMin,xMax:p&&p.userMax,yMin:r&&r.userMin,yMax:r&&r.userMax}};this.drilldownLevels.push(q);q=q.lowerSeries=this.addSeries(m,!1);q.options._levelNumber=A+1;p&&(p.oldPos=p.pos,p.userMin=p.userMax=null,r.userMin=r.userMax=null);k.type===q.type&&(q.animate=q.animateDrilldown||W,q.options.animation=!0)};r.prototype.applyDrilldown=function(){var h=this.drilldownLevels,m;h&&0<h.length&&(m=h[h.length-1].levelNumber,Q(this.drilldownLevels,
  function(k){k.levelNumber===m&&Q(k.levelSeries,function(k){k.options&&k.options._levelNumber===m&&k.remove(!1)})}));this.redraw();this.showDrillUpButton()};r.prototype.getDrilldownBackText=function(){var h=this.drilldownLevels;if(h&&0<h.length)return h=h[h.length-1],h.series=h.seriesOptions,F(this.options.lang.drillUpText,h)};r.prototype.showDrillUpButton=function(){var h=this,m=this.getDrilldownBackText(),k=h.options.drilldown.drillUpButton,p,r;this.drillUpButton?this.drillUpButton.attr({text:m}).align():
  (r=(p=k.theme)&&p.states,this.drillUpButton=this.renderer.button(m,null,null,function(){h.drillUp()},p,r&&r.hover,r&&r.select).attr({align:k.position.align,zIndex:9}).add().align(k.position,!1,k.relativeTo||"plotBox"))};r.prototype.drillUp=function(){for(var h=this,m=h.drilldownLevels,k=m[m.length-1].levelNumber,p=m.length,r=h.series,q,D,x,y,A=function(k){var m;Q(r,function(h){h.options._ddSeriesId===k._ddSeriesId&&(m=h)});m=m||h.addSeries(k,!1);m.type===x.type&&m.animateDrillupTo&&(m.animate=m.animateDrillupTo);
  k===D.seriesOptions&&(y=m)};p--;)if(D=m[p],D.levelNumber===k){m.pop();x=D.lowerSeries;if(!x.chart)for(q=r.length;q--;)if(r[q].options.id===D.lowerSeriesOptions.id&&r[q].options._levelNumber===k+1){x=r[q];break}x.xData=[];Q(D.levelSeriesOptions,A);O(h,"drillup",{seriesOptions:D.seriesOptions});y.type===x.type&&(y.drilldownLevel=D,y.options.animation=h.options.drilldown.animation,x.animateDrillupFrom&&x.chart&&x.animateDrillupFrom(D));y.options._levelNumber=k;x.remove(!1);y.xAxis&&(q=D.oldExtremes,
  y.xAxis.setExtremes(q.xMin,q.xMax,!1),y.yAxis.setExtremes(q.yMin,q.yMax,!1))}this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();this.ddDupes.length=[]};x.prototype.supportsDrilldown=!0;x.prototype.animateDrillupTo=function(h){if(!h){var m=this,k=m.drilldownLevel;Q(this.points,function(k){k.graphic&&k.graphic.hide();k.dataLabel&&k.dataLabel.hide();k.connector&&k.connector.hide()});setTimeout(function(){m.points&&
  Q(m.points,function(h,m){var p=m===(k&&k.pointIndex)?"show":"fadeIn",v="show"===p?!0:void 0;if(h.graphic)h.graphic[p](v);if(h.dataLabel)h.dataLabel[p](v);if(h.connector)h.connector[p](v)})},Math.max(this.chart.options.drilldown.animation.duration-50,0));this.animate=W}};x.prototype.animateDrilldown=function(p){var m=this,k=this.chart.drilldownLevels,r,q=this.chart.options.drilldown.animation,D=this.xAxis;p||(Q(k,function(k){m.options._ddSeriesId===k.lowerSeriesOptions._ddSeriesId&&(r=k.shapeArgs,
  r.fill=k.color)}),r.x+=h(D.oldPos,D.pos)-D.pos,Q(this.points,function(k){k.graphic&&k.graphic.attr(r).animate(T(k.shapeArgs,{fill:k.color}),q);k.dataLabel&&k.dataLabel.fadeIn(q)}),this.animate=null)};x.prototype.animateDrillupFrom=function(h){var m=this.chart.options.drilldown.animation,k=this.group,p=this;Q(p.trackerGroups,function(k){if(p[k])p[k].on("mouseover")});delete this.group;Q(this.points,function(p){var r=p.graphic,B=function(){r.destroy();k&&(k=k.destroy())};r&&(delete p.graphic,m?r.animate(T(h.shapeArgs,
  {fill:h.color}),q.merge(m,{complete:B})):(r.attr(h.shapeArgs),B()))})};y&&T(y.prototype,{supportsDrilldown:!0,animateDrillupTo:x.prototype.animateDrillupTo,animateDrillupFrom:x.prototype.animateDrillupFrom,animateDrilldown:function(h){var m=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],k=this.chart.options.drilldown.animation,p=m.shapeArgs,r=p.start,D=(p.end-r)/this.points.length;h||(Q(this.points,function(h,v){h.graphic.attr(q.merge(p,{start:r+v*D,end:r+(v+1)*D,fill:m.color}))[k?
  "animate":"attr"](T(h.shapeArgs,{fill:h.color}),k)}),this.animate=null)}});q.Point.prototype.doDrilldown=function(h,m){var k=this.series.chart,p=k.options.drilldown,r=(p.series||[]).length,q;k.ddDupes||(k.ddDupes=[]);for(;r--&&!q;)p.series[r].id===this.drilldown&&-1===E(this.drilldown,k.ddDupes)&&(q=p.series[r],k.ddDupes.push(this.drilldown));O(k,"drilldown",{point:this,seriesOptions:q,category:m,points:void 0!==m&&this.series.xAxis.ddPoints[m].slice(0)});q&&(h?k.addSingleSeriesAsDrilldown(this,q):
  k.addSeriesAsDrilldown(this,q))};q.Axis.prototype.drilldownCategory=function(h){var m,k,p=this.ddPoints[h];for(m in p)(k=p[m])&&k.series&&k.series.visible&&k.doDrilldown&&k.doDrilldown(!0,h);this.chart.applyDrilldown()};q.Axis.prototype.getDDPoints=function(h,m){var k=this.ddPoints;k||(this.ddPoints=k={});k[h]||(k[h]=[]);k[h].levelNumber!==m&&(k[h].length=0);return k[h]};A.prototype.drillable=function(){var h=this.pos,m=this.label,k=this.axis,p=k.ddPoints&&k.ddPoints[h];m&&p&&p.length?(m.basicStyles||
  (m.basicStyles=q.merge(m.styles)),m.addClass("highcharts-drilldown-axis-label").css(k.chart.options.drilldown.activeAxisLabelStyle).on("click",function(){k.drilldownCategory(h)})):m&&m.basicStyles&&(m.styles={},m.css(m.basicStyles),m.on("click",null))};p(A.prototype,"addLabel",function(h){h.call(this);this.drillable()});p(q.Point.prototype,"init",function(h,m,k,p){var r=h.call(this,m,k,p);h=(k=m.xAxis)&&k.ticks[p];k=k&&k.getDDPoints(p,m.options._levelNumber);r.drilldown&&(q.addEvent(r,"click",function(){m.xAxis&&
  !1===m.chart.options.drilldown.allowPointDrilldown?m.xAxis.drilldownCategory(p):r.doDrilldown()}),k&&(k.push(r),k.levelNumber=m.options._levelNumber));h&&h.drillable();return r});p(q.Series.prototype,"drawDataLabels",function(h){var m=this.chart.options.drilldown.activeDataLabelStyle;h.call(this);Q(this.points,function(k){k.drilldown&&k.dataLabel&&k.dataLabel.attr({"class":"highcharts-drilldown-data-label"}).css(m)})});var D,V=function(h){h.call(this);Q(this.points,function(h){h.drilldown&&h.graphic&&
  h.graphic.attr({"class":"highcharts-drilldown-point"}).css({cursor:"pointer"})})};for(D in R)R[D].prototype.supportsDrilldown&&p(R[D].prototype,"drawTracker",V)})(Highcharts);
  (function(q){var I=q.getOptions().plotOptions,W=q.pInt,V=q.pick,Q=q.each,T;I.solidgauge=q.merge(I.gauge,{colorByPoint:!0});T={initDataClasses:function(F){var h=this,p=this.chart,r,I=0,y=this.options;this.dataClasses=r=[];Q(F.dataClasses,function(x,A){var O;x=q.merge(x);r.push(x);x.color||("category"===y.dataClassColor?(O=p.options.colors,x.color=O[I++],I===O.length&&(I=0)):x.color=h.tweenColors(q.Color(y.minColor),q.Color(y.maxColor),A/(F.dataClasses.length-1)))})},initStops:function(F){this.stops=
  F.stops||[[0,this.options.minColor],[1,this.options.maxColor]];Q(this.stops,function(h){h.color=q.Color(h[1])})},toColor:function(q,h){var p,r=this.stops,I,y=this.dataClasses,x,A;if(y)for(A=y.length;A--;){if(x=y[A],I=x.from,r=x.to,(void 0===I||q>=I)&&(void 0===r||q<=r)){p=x.color;h&&(h.dataClass=A);break}}else{this.isLog&&(q=this.val2lin(q));p=1-(this.max-q)/(this.max-this.min);for(A=r.length;A--&&!(p>r[A][0]););I=r[A]||r[A+1];r=r[A+1]||I;p=1-(r[0]-p)/(r[0]-I[0]||1);p=this.tweenColors(I.color,r.color,
  p)}return p},tweenColors:function(q,h,p){var r;h.rgba.length&&q.rgba.length?(q=q.rgba,h=h.rgba,r=1!==h[3]||1!==q[3],q=(r?"rgba(":"rgb(")+Math.round(h[0]+(q[0]-h[0])*(1-p))+","+Math.round(h[1]+(q[1]-h[1])*(1-p))+","+Math.round(h[2]+(q[2]-h[2])*(1-p))+(r?","+(h[3]+(q[3]-h[3])*(1-p)):"")+")"):q=h.raw||"none";return q}};Q(["fill","stroke"],function(F){HighchartsAdapter.addAnimSetter(F,function(h){h.elem.attr(F,T.tweenColors(q.Color(h.start),q.Color(h.end),h.pos))})});q.seriesTypes.solidgauge=q.extendClass(q.seriesTypes.gauge,
  {type:"solidgauge",pointAttrToOptions:{},bindAxes:function(){var F;q.seriesTypes.gauge.prototype.bindAxes.call(this);F=this.yAxis;q.extend(F,T);F.options.dataClasses&&F.initDataClasses(F.options);F.initStops(F.options)},drawPoints:function(){var F=this,h=F.yAxis,p=h.center,r=F.options,I=F.chart.renderer,y=r.overshoot,x=y&&"number"===typeof y?y/180*Math.PI:0;q.each(F.points,function(q){var y=q.graphic,E=h.startAngleRad+h.translate(q.y,null,null,null,!0),Q=W(V(q.options.radius,r.radius,100))*p[2]/200,
  D=W(V(q.options.innerRadius,r.innerRadius,60))*p[2]/200,v=h.toColor(q.y,q);"none"===v&&(v=q.color||F.color||"none");"none"!==v&&(q.color=v);E=Math.max(h.startAngleRad-x,Math.min(h.endAngleRad+x,E));!1===r.wrap&&(E=Math.max(h.startAngleRad,Math.min(h.endAngleRad,E)));var E=180*E/Math.PI,m=E/(180/Math.PI),k=h.startAngleRad,E=Math.min(m,k),m=Math.max(m,k);m-E>2*Math.PI&&(m=E+2*Math.PI);q.shapeArgs=D={x:p[0],y:p[1],r:Q,innerR:D,start:E,end:m,fill:v};q.startR=Q;y?(q=D.d,y.animate(D),q&&(D.d=q)):q.graphic=
  I.arc(D).attr({stroke:r.borderColor||"none","stroke-width":r.borderWidth||0,fill:v,"sweep-flag":0}).add(F.group)})},animate:function(F){F||(this.startAngleRad=this.yAxis.startAngleRad,q.seriesTypes.pie.prototype.animate.call(this,F))}})})(Highcharts);
  (function(q){var I=q.Axis,W=q.Chart,V=q.Color,Q=q.Legend,T=q.LegendSymbolMixin,F=q.Series,h=q.getOptions(),p=q.each,r=q.extend,R=q.extendClass,y=q.merge,x=q.pick,A=q.seriesTypes,O=q.wrap,E=function(){},ia=q.ColorAxis=function(){this.isColorAxis=!0;this.init.apply(this,arguments)};r(ia.prototype,I.prototype);r(ia.prototype,{defaultColorAxisOptions:{lineWidth:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},color:"gray",width:.01},labels:{overflow:"justify"},
  minColor:"#EFEFFF",maxColor:"#003875",tickLength:5},init:function(h,p){var m="vertical"!==h.options.legend.layout,k;k=y(this.defaultColorAxisOptions,{side:m?2:1,reversed:!m},p,{isX:m,opposite:!m,showEmpty:!1,title:null,isColor:!0});I.prototype.init.call(this,h,k);p.dataClasses&&this.initDataClasses(p);this.initStops(p);this.isXAxis=!0;this.horiz=m;this.zoomEnabled=!1},tweenColors:function(h,p,m){var k;p.rgba.length&&h.rgba.length?(h=h.rgba,p=p.rgba,k=1!==p[3]||1!==h[3],h=(k?"rgba(":"rgb(")+Math.round(p[0]+
  (h[0]-p[0])*(1-m))+","+Math.round(p[1]+(h[1]-p[1])*(1-m))+","+Math.round(p[2]+(h[2]-p[2])*(1-m))+(k?","+(p[3]+(h[3]-p[3])*(1-m)):"")+")"):h=p.raw||"none";return h},initDataClasses:function(h){var q=this,m=this.chart,k,r=0,x=this.options,A=h.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];p(h.dataClasses,function(h,p){var D;h=y(h);k.push(h);h.color||("category"===x.dataClassColor?(D=m.options.colors,h.color=D[r++],r===D.length&&(r=0)):h.color=q.tweenColors(V(x.minColor),V(x.maxColor),
  2>A?.5:p/(A-1)))})},initStops:function(h){this.stops=h.stops||[[0,this.options.minColor],[1,this.options.maxColor]];p(this.stops,function(h){h.color=V(h[1])})},setOptions:function(h){I.prototype.setOptions.call(this,h);this.options.crosshair=this.options.marker;this.coll="colorAxis"},setAxisSize:function(){var h=this.legendSymbol,p=this.chart,m,k,q;h&&(this.left=m=h.attr("x"),this.top=k=h.attr("y"),this.width=q=h.attr("width"),this.height=h=h.attr("height"),this.right=p.chartWidth-m-q,this.bottom=
  p.chartHeight-k-h,this.len=this.horiz?q:h,this.pos=this.horiz?m:k)},toColor:function(h,p){var m,k=this.stops,q,r=this.dataClasses,x,y;if(r)for(y=r.length;y--;){if(x=r[y],q=x.from,k=x.to,(void 0===q||h>=q)&&(void 0===k||h<=k)){m=x.color;p&&(p.dataClass=y);break}}else{this.isLog&&(h=this.val2lin(h));m=1-(this.max-h)/(this.max-this.min||1);for(y=k.length;y--&&!(m>k[y][0]););q=k[y]||k[y+1];k=k[y+1]||q;m=1-(k[0]-m)/(k[0]-q[0]||1);m=this.tweenColors(q.color,k.color,m)}return m},getOffset:function(){var h=
  this.legendGroup,p=this.chart.axisOffset[this.side];h&&(I.prototype.getOffset.call(this),this.axisGroup.parentGroup||(this.axisGroup.add(h),this.gridGroup.add(h),this.labelGroup.add(h),this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=p)},setLegendColor:function(){var h,p=this.options;h=this.reversed;h=this.horiz?[+h,0,+!h,0]:[0,+!h,0,+h];this.legendColor={linearGradient:{x1:h[0],y1:h[1],x2:h[2],y2:h[3]},stops:p.stops||[[0,p.minColor],[1,p.maxColor]]}},drawLegendSymbol:function(h,
  p){var m=h.padding,k=h.options,q=this.horiz,r=x(k.symbolWidth,q?200:12),y=x(k.symbolHeight,q?12:200),A=x(k.labelPadding,q?16:30),k=x(k.itemDistance,10);this.setLegendColor();p.legendSymbol=this.chart.renderer.rect(0,h.baseline-11,r,y).attr({zIndex:1}).add(p.legendGroup);p.legendSymbol.getBBox();this.legendItemWidth=r+m+(q?k:A);this.legendItemHeight=y+m+(q?A:0)},setState:E,visible:!0,setVisible:E,getSeriesExtremes:function(){var h;this.series.length&&(h=this.series[0],this.dataMin=h.valueMin,this.dataMax=
  h.valueMax)},drawCrosshair:function(h,p){var m=p&&p.plotX,k=p&&p.plotY,q,r=this.pos,x=this.len;p&&(q=this.toPixels(p[p.series.colorKey]),q<r?q=r-2:q>r+x&&(q=r+x+2),p.plotX=q,p.plotY=this.len-q,I.prototype.drawCrosshair.call(this,h,p),p.plotX=m,p.plotY=k,this.cross&&this.cross.attr({fill:this.crosshair.color}).add(this.legendGroup))},getPlotLinePath:function(h,p,m,k,q){return"number"===typeof q?this.horiz?["M",q-4,this.top-6,"L",q+4,this.top-6,q,this.top,"Z"]:["M",this.left,q,"L",this.left-6,q+6,this.left-
  6,q-6,"Z"]:I.prototype.getPlotLinePath.call(this,h,p,m,k)},update:function(h,q){var m=this.chart,k=m.legend;p(this.series,function(h){h.isDirtyData=!0});h.dataClasses&&(p(k.allItems,function(h){h.isDataClass&&h.legendGroup.destroy()}),m.isDirtyLegend=!0);m.options[this.coll]=y(this.userOptions,h);I.prototype.update.call(this,h,q);this.legendItem&&(this.setLegendColor(),k.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var h=this,v=this.chart,m=this.legendItems,k=v.options.legend,x=k.valueDecimals,
  y=k.valueSuffix||"",A;m.length||p(this.dataClasses,function(k,F){var I=!0,O=k.from,Q=k.to;A="";void 0===O?A="< ":void 0===Q&&(A="> ");void 0!==O&&(A+=q.numberFormat(O,x)+y);void 0!==O&&void 0!==Q&&(A+=" - ");void 0!==Q&&(A+=q.numberFormat(Q,x)+y);m.push(r({chart:v,name:A,options:{},drawLegendSymbol:T.drawRectangle,visible:!0,setState:E,isDataClass:!0,setVisible:function(){I=this.visible=!I;p(h.series,function(h){p(h.points,function(h){h.dataClass===F&&h.setVisible(I)})});v.legend.colorizeItem(this,
  I)}},k))});return m},name:""});p(["fill","stroke"],function(h){HighchartsAdapter.addAnimSetter(h,function(p){p.elem.attr(h,ia.prototype.tweenColors(V(p.start),V(p.end),p.pos))})});O(W.prototype,"getAxes",function(h){var p=this.options.colorAxis;h.call(this);this.colorAxis=[];p&&new ia(this,p)});O(Q.prototype,"getAllItems",function(h){var q=[],m=this.chart.colorAxis[0];m&&(m.options.dataClasses?q=q.concat(m.getDataClassLegendSymbols()):q.push(m),p(m.series,function(h){h.options.showInLegend=!1}));
  return q.concat(h.call(this))});W={pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",dashstyle:"dashStyle"},pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:E,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var h=this,q=this.options.nullColor,m=this.colorAxis,k=this.colorKey;p(this.data,function(p){var r=p[k];if(r=null===r?q:m&&void 0!==
  r?m.toColor(r,p):p.color||h.color)p.color=r})}};h.plotOptions.heatmap=y(h.plotOptions.scatter,{animation:!1,borderWidth:0,nullColor:"#F8F8F8",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}});A.heatmap=R(A.scatter,y(W,{type:"heatmap",pointArrayMap:["y","value"],hasPointSpecificOptions:!0,
  supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var h;A.scatter.prototype.init.apply(this,arguments);h=this.options;this.pointRange=h.pointRange=x(h.pointRange,h.colsize||1);this.yAxis.axisPointRange=h.rowsize||1},translate:function(){var h=this.options,q=this.xAxis,m=this.yAxis;this.generatePoints();p(this.points,function(k){var p=(h.colsize||1)/2,r=(h.rowsize||1)/2,x=Math.round(q.len-q.translate(k.x-p,0,1,0,1)),p=Math.round(q.len-q.translate(k.x+p,0,1,0,1)),y=Math.round(m.translate(k.y-
  r,0,1,0,1)),r=Math.round(m.translate(k.y+r,0,1,0,1));k.plotX=k.clientX=(x+p)/2;k.plotY=(y+r)/2;k.shapeType="rect";k.shapeArgs={x:Math.min(x,p),y:Math.min(y,r),width:Math.abs(p-x),height:Math.abs(r-y)}});this.translateColors();this.chart.hasRendered&&p(this.points,function(h){h.shapeArgs.fill=h.options.color||h.color})},drawPoints:A.column.prototype.drawPoints,animate:E,getBox:E,drawLegendSymbol:T.drawRectangle,getExtremes:function(){F.prototype.getExtremes.call(this,this.valueData);this.valueMin=
  this.dataMin;this.valueMax=this.dataMax;F.prototype.getExtremes.call(this)}}))})(Highcharts); 
  