highstock-rails 2.1.10 → 5.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/css/highcharts.css +760 -0
  3. data/app/assets/javascripts/highstock.js +511 -419
  4. data/app/assets/javascripts/highstock/highstock.js +472 -0
  5. data/app/assets/javascripts/highstock/highstock.js.map +8 -0
  6. data/app/assets/javascripts/highstock/highstock.src.js +28809 -0
  7. data/app/assets/javascripts/highstock/modules/accessibility.js +48 -0
  8. data/app/assets/javascripts/highstock/modules/accessibility.js.map +8 -0
  9. data/app/assets/javascripts/highstock/modules/accessibility.src.js +1131 -0
  10. data/app/assets/javascripts/highstock/modules/annotations.js +14 -0
  11. data/app/assets/javascripts/highstock/modules/annotations.js.map +8 -0
  12. data/app/assets/javascripts/highstock/modules/annotations.src.js +407 -0
  13. data/app/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
  14. data/app/assets/javascripts/highstock/modules/boost-canvas.js.map +8 -0
  15. data/app/assets/javascripts/highstock/modules/boost-canvas.src.js +771 -0
  16. data/app/assets/javascripts/highstock/modules/boost.js +51 -12
  17. data/app/assets/javascripts/highstock/modules/boost.js.map +8 -0
  18. data/app/assets/javascripts/highstock/modules/boost.src.js +2580 -492
  19. data/app/assets/javascripts/highstock/modules/broken-axis.js.map +8 -0
  20. data/app/assets/javascripts/highstock/modules/canvasrenderer.experimental.js.map +8 -0
  21. data/app/assets/javascripts/highstock/modules/data.js +19 -19
  22. data/app/assets/javascripts/highstock/modules/data.js.map +8 -0
  23. data/app/assets/javascripts/highstock/modules/data.src.js +974 -950
  24. data/app/assets/javascripts/highstock/modules/drilldown.js +25 -17
  25. data/app/assets/javascripts/highstock/modules/drilldown.js.map +8 -0
  26. data/app/assets/javascripts/highstock/modules/drilldown.src.js +790 -709
  27. data/app/assets/javascripts/highstock/modules/export-data.js +17 -0
  28. data/app/assets/javascripts/highstock/modules/export-data.js.map +8 -0
  29. data/app/assets/javascripts/highstock/modules/export-data.src.js +417 -0
  30. data/app/assets/javascripts/highstock/modules/exporting.js +21 -18
  31. data/app/assets/javascripts/highstock/modules/exporting.js.map +8 -0
  32. data/app/assets/javascripts/highstock/modules/exporting.src.js +1013 -768
  33. data/app/assets/javascripts/highstock/modules/funnel.js +6 -7
  34. data/app/assets/javascripts/highstock/modules/funnel.js.map +8 -0
  35. data/app/assets/javascripts/highstock/modules/funnel.src.js +284 -308
  36. data/app/assets/javascripts/highstock/modules/gantt.js +24 -0
  37. data/app/assets/javascripts/highstock/modules/gantt.js.map +8 -0
  38. data/app/assets/javascripts/highstock/modules/gantt.src.js +793 -0
  39. data/app/assets/javascripts/highstock/modules/grid-axis.js +19 -0
  40. data/app/assets/javascripts/highstock/modules/grid-axis.js.map +8 -0
  41. data/app/assets/javascripts/highstock/modules/grid-axis.src.js +545 -0
  42. data/app/assets/javascripts/highstock/modules/heatmap.js +20 -18
  43. data/app/assets/javascripts/highstock/modules/heatmap.js.map +8 -0
  44. data/app/assets/javascripts/highstock/modules/heatmap.src.js +738 -633
  45. data/app/assets/javascripts/highstock/modules/map-parser.js.map +8 -0
  46. data/app/assets/javascripts/highstock/modules/map.js.map +8 -0
  47. data/app/assets/javascripts/highstock/modules/no-data-to-display.js +5 -5
  48. data/app/assets/javascripts/highstock/modules/no-data-to-display.js.map +8 -0
  49. data/app/assets/javascripts/highstock/modules/no-data-to-display.src.js +140 -133
  50. data/app/assets/javascripts/highstock/modules/offline-exporting.js +12 -7
  51. data/app/assets/javascripts/highstock/modules/offline-exporting.js.map +8 -0
  52. data/app/assets/javascripts/highstock/modules/offline-exporting.src.js +543 -270
  53. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js +10 -0
  54. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +8 -0
  55. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +187 -0
  56. data/app/assets/javascripts/highstock/modules/series-label.js +19 -0
  57. data/app/assets/javascripts/highstock/modules/series-label.js.map +8 -0
  58. data/app/assets/javascripts/highstock/modules/series-label.src.js +606 -0
  59. data/app/assets/javascripts/highstock/modules/solid-gauge.js +9 -8
  60. data/app/assets/javascripts/highstock/modules/solid-gauge.js.map +8 -0
  61. data/app/assets/javascripts/highstock/modules/solid-gauge.src.js +334 -266
  62. data/app/assets/javascripts/highstock/modules/static-scale.js +12 -0
  63. data/app/assets/javascripts/highstock/modules/static-scale.js.map +8 -0
  64. data/app/assets/javascripts/highstock/modules/static-scale.src.js +64 -0
  65. data/app/assets/javascripts/highstock/modules/stock.js +123 -0
  66. data/app/assets/javascripts/highstock/modules/stock.js.map +8 -0
  67. data/app/assets/javascripts/highstock/modules/stock.src.js +6247 -0
  68. data/app/assets/javascripts/highstock/modules/treemap.js +22 -23
  69. data/app/assets/javascripts/highstock/modules/treemap.js.map +8 -0
  70. data/app/assets/javascripts/highstock/modules/treemap.src.js +884 -859
  71. data/app/assets/javascripts/highstock/modules/xrange-series.js +15 -0
  72. data/app/assets/javascripts/highstock/modules/xrange-series.js.map +8 -0
  73. data/app/assets/javascripts/highstock/modules/xrange-series.src.js +258 -0
  74. data/app/assets/javascripts/highstock/themes/dark-blue.js +307 -244
  75. data/app/assets/javascripts/highstock/themes/dark-green.js +303 -244
  76. data/app/assets/javascripts/highstock/themes/dark-unica.js +231 -201
  77. data/app/assets/javascripts/highstock/themes/gray.js +314 -245
  78. data/app/assets/javascripts/highstock/themes/grid-light.js +91 -66
  79. data/app/assets/javascripts/highstock/themes/grid.js +124 -96
  80. data/app/assets/javascripts/highstock/themes/sand-signika.js +119 -94
  81. data/app/assets/javascripts/highstock/themes/skies.js +108 -85
  82. data/lib/highstock/rails/version.rb +1 -1
  83. metadata +54 -11
  84. data/app/assets/javascripts/highstock/adapters/standalone-framework.js +0 -18
  85. data/app/assets/javascripts/highstock/adapters/standalone-framework.src.js +0 -635
  86. data/app/assets/javascripts/highstock/highcharts-3d.js +0 -48
  87. data/app/assets/javascripts/highstock/highcharts-3d.src.js +0 -1711
  88. data/app/assets/javascripts/highstock/highcharts-more.js +0 -55
  89. data/app/assets/javascripts/highstock/highstock-all.js +0 -637
  90. data/app/assets/javascripts/highstock/modules/canvas-tools.js +0 -133
  91. data/app/assets/javascripts/highstock/modules/canvas-tools.src.js +0 -3114
@@ -1,424 +1,516 @@
1
1
  /*
2
- Highstock JS v2.1.10 (2015-12-07)
2
+ Highstock JS v5.0.11 (2017-05-04)
3
3
 
4
- (c) 2009-2014 Torstein Honsi
4
+ (c) 2009-2016 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- (function(Qa,ba){typeof module==="object"&&module.exports?module.exports=Qa.document?ba(Qa):function(C){return ba(C)}:Qa.Highcharts=ba()})(typeof window!=="undefined"?window:this,function(Qa){function ba(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw Error(c);U.console&&console.log(c)}function C(){var a,b=arguments,c,d={},e=function(a,b){var c,d;typeof a!=="object"&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&typeof c==="object"&&Object.prototype.toString.call(c)!==
9
- "[object Array]"&&d!=="renderTo"&&typeof c.nodeType!=="number"?e(a[d]||{},c):b[d]);return a};b[0]===!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 H(a,b){return parseInt(a,b||10)}function Ja(a){return typeof a==="string"}function ea(a){return a&&typeof a==="object"}function Ka(a){return Object.prototype.toString.call(a)==="[object Array]"}function sa(a){return typeof a==="number"}function La(a){return V.log(a)/V.LN10}function ta(a){return V.pow(10,
10
- a)}function ua(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function u(a){return a!==s&&a!==null}function T(a,b,c){var d,e;if(Ja(b))u(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(u(b)&&ea(b))for(d in b)a.setAttribute(d,b[d]);return e}function qa(a){return Ka(a)?a:[a]}function Ya(a,b,c){if(b)return setTimeout(a,b,c);a.call(0,c)}function J(a,b){if(za&&!ca&&b&&b.opacity!==s)b.filter="alpha(opacity="+b.opacity*100+")";v(a.style,b)}function $(a,b,c,d,e){a=F.createElement(a);
11
- b&&v(a,b);e&&J(a,{padding:0,border:"none",margin:0});c&&J(a,c);d&&d.appendChild(a);return a}function ia(a,b){var c=function(){};c.prototype=new a;v(c.prototype,b);return c}function Ra(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function cb(a){return(nb&&nb(a)||xb||0)*6E4}function Fa(a,b){for(var c="{",d=!1,e,f,g,h,i,k=[];(c=a.indexOf(c))!==-1;){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");i=g.length;e=b;for(h=0;h<i;h++)e=e[g[h]];if(f.length)f=f.join(":"),g=/\.([0-9])/,h=N.lang,
12
- i=void 0,/f$/.test(f)?(i=(i=f.match(g))?i[1]:-1,e!==null&&(e=z.numberFormat(e,i,h.decimalPoint,f.indexOf(",")>-1?h.thousandsSep:""))):e=ja(f,e)}k.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}k.push(a);return k.join("")}function yb(a){return V.pow(10,R(V.log(a)/V.LN10))}function zb(a,b,c,d,e){var f,g=a,c=p(c,1);f=a/c;b||(b=[1,2,2.5,5,10],d===!1&&(c===1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d<b.length;d++)if(g=b[d],e&&g*c>=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/2)break;g*=c;return g}function ob(a,b){var c=a.length,
13
- d,e;for(e=0;e<c;e++)a[e].safeI=e;a.sort(function(a,c){d=b(a,c);return d===0?a.safeI-c.safeI:d});for(e=0;e<c;e++)delete a[e].safeI}function Ma(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function Aa(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function Na(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Sa(a){pb||(pb=$(Ta));a&&pb.appendChild(a);pb.innerHTML=""}function na(a,b){return parseFloat(a.toPrecision(b||14))}function Za(a,
14
- b){b.renderer.globalAnimation=p(a,b.animation)}function ac(a){return{init:function(b){var c=a.fx;a.extend(a.easing,{easeOutQuad:function(a,b,c,g,h){return-g*(b/=h)*(b-2)+c}});a.each(["cur","_default","width","height","opacity"],function(b,e){var f=c.step,g;e==="cur"?f=c.prototype:e==="_default"&&a.Tween&&(f=a.Tween.propHooks[e],e="set");(g=f[e])&&(f[e]=function(a){var c,f;f=b?a:this;if(f.prop!=="align")return c=f.elem,c.attr?c.attr(f.prop.replace("strokeWidth","stroke-width"),e==="cur"?void 0:f.now):
15
- g.apply(this,arguments)})});M(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;if(!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(b.call(a[c],a[c],c,a)===!1)return c};a.fn.highcharts=function(){var a="Chart",
16
- b=arguments,c,g;if(this[0]){Ja(b[0])&&(a=b[0],b=Array.prototype.slice.call(b,1));c=b[0];if(c!==s)c.chart=c.chart||{},c.chart.renderTo=this[0],new z[a](c,b[1]),g=this;c===s&&(g=aa[T(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){var d=[],e,f=a.length;for(e=0;e<f;e++)d[e]=c.call(a[e],a[e],e,a);return d},offset:function(b){return a(b).offset()},
17
- addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){var e=F.removeEventListener?"removeEventListener":"detachEvent";F[e]&&b&&!b[e]&&(b[e]=function(){});a(b).unbind(c,d)},fireEvent:function(b,c,d,e){var f=a.Event(c),g="detached"+c,h;!za&&d&&(delete d.layerX,delete d.layerY,delete d.returnValue);v(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){b==="preventDefault"&&(h=!0)}}});a(b).trigger(f);
18
- b[g]&&(b[c]=b[g],b[g]=null);e&&!f.isDefaultPrevented()&&!h&&e(f)},washMouseEvent:function(a){var c=a.originalEvent||a;if(c.pageX===s)c.pageX=a.pageX,c.pageY=a.pageY;return c},animate:function(b,c,d){var e=a(b);if(!b.style)b.style={};if(c.d)b.toD=c.d,c.d=1;e.stop();c.opacity!==s&&b.attr&&(c.opacity+="px");b.hasAnim=1;e.animate(c,d)},stop:function(b){b.hasAnim&&a(b).stop()}}}function Ob(){var a=N.global,b=a.useUTC,c=b?"getUTC":"get",d=b?"setUTC":"set";fa=a.Date||window.Date;xb=b&&a.timezoneOffset;nb=
19
- b&&a.getTimezoneOffset;qb=function(a,c,d,h,i,k){var j;b?(j=fa.UTC.apply(0,arguments),j+=cb(j)):j=(new fa(a,c,p(d,1),p(h,0),p(i,0),p(k,0))).getTime();return j};Ab=c+"Minutes";Bb=c+"Hours";Cb=c+"Day";db=c+"Date";eb=c+"Month";fb=c+"FullYear";Pb=d+"Milliseconds";Qb=d+"Seconds";Rb=d+"Minutes";Sb=d+"Hours";Db=d+"Date";Eb=d+"Month";Fb=d+"FullYear"}function ka(a){if(!(this instanceof ka))return new ka(a);this.init(a)}function W(){}function $a(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;
20
- !c&&!d&&this.addLabel()}function Tb(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:p(b.y,f?4:c?14:-6),x:p(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":"center")}function Gb(a){var b=a.options,c=b.navigator,d=c.enabled,b=b.scrollbar,e=b.enabled,f=d?c.height:0,g=e?b.height:
21
- 0;this.handles=[];this.scrollbarButtons=[];this.elementsToDestroy=[];this.chart=a;this.setBaseSeries();this.height=f;this.scrollbarHeight=g;this.scrollbarEnabled=e;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=b;this.outlineHeight=f+g;this.init()}function Hb(a){this.init(a)}var s,U=Qa||window,F=U.document,V=Math,x=V.round,R=V.floor,Ba=V.ceil,t=V.max,E=V.min,P=V.abs,Y=V.cos,ga=V.sin,va=V.PI,oa=va*2/360,Ga=navigator.userAgent,Ub=U.opera,za=/(msie|trident|edge)/i.test(Ga)&&!Ub,
22
- rb=F.documentMode===8,sb=!za&&/AppleWebKit/.test(Ga),Ua=/Firefox/.test(Ga),gb=/(Mobile|Android|Windows Phone)/.test(Ga),Oa="http://www.w3.org/2000/svg",ca=!!F.createElementNS&&!!F.createElementNS(Oa,"svg").createSVGRect,Qa=Ua&&parseInt(Ga.split("Firefox/")[1],10)<4,pa=!ca&&!za&&!!F.createElement("canvas").getContext,Va,ab,Vb={},Ib=0,pb,N,ja,Jb,G,la=function(){},aa=[],hb=0,Ta="div",bc=/^[0-9]+$/,tb=["plotTop","marginRight","marginBottom","plotLeft"],fa,qb,xb,nb,Ab,Bb,Cb,db,eb,fb,Pb,Qb,Rb,Sb,Db,Eb,
23
- Fb,K={},z;z=U.Highcharts?ba(16,!0):function(a){z.loadAdapter(a);return z};z.seriesTypes=K;var v=z.extend=function(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a},p=z.pick=function(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==s&&c!==null)return c},M=z.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)}};ja=function(a,b,c){if(!u(b)||isNaN(b))return N.lang.invalidDate||"";var a=p(a,"%Y-%m-%d %H:%M:%S"),
24
- d=new fa(b-cb(b)),e,f=d[Bb](),g=d[Cb](),h=d[db](),i=d[eb](),k=d[fb](),j=N.lang,m=j.weekdays,d=v({a:m[g].substr(0,3),A:m[g],d:Ra(h),e:h,w:g,b:j.shortMonths[i],B:j.months[i],m:Ra(i+1),y:k.toString().substr(2,2),Y:k,H:Ra(f),k:f,I:Ra(f%12||12),l:f%12||12,M:Ra(d[Ab]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:Ra(d.getSeconds()),L:Ra(x(b%1E3),3)},z.dateFormats);for(e in d)for(;a.indexOf("%"+e)!==-1;)a=a.replace("%"+e,typeof d[e]==="function"?d[e](b):d[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};
25
- G={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};z.numberFormat=function(a,b,c,d){var e=N.lang,a=+a||0,f=b===-1?Math.min((a.toString().split(".")[1]||"").length,20):isNaN(b=Math.abs(b))?2:b,b=c===void 0?e.decimalPoint:c,d=d===void 0?e.thousandsSep:d,e=a<0?"-":"",c=String(H(a=P(a).toFixed(f))),g=c.length>3?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+P(a-c).toFixed(f).slice(2):"")};Jb={init:function(a,
26
- b,c){var b=b||"",d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,i,k=function(a){for(g=a.length;g--;)a[g]==="M"&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(k(b),k(c));a.isArea&&(h=b.splice(b.length-6,6),i=c.splice(c.length-6,6));if(d<=c.length/f&&b.length===c.length)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length<a;)d=[].concat(b).splice(b.length-f,f),e&&(d[f-6]=d[f-2],d[f-5]=d[f-1]),b=b.concat(d);h&&(b=b.concat(h),c=c.concat(i));
27
- return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(c===1)e=d;else if(f===b.length&&c<1)for(;f--;)d=parseFloat(a[f]),e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d;else e=b;return e}};var ib,Ha,n,bb,Wb,wa,A,Q,I,Xb,jb,Wa;z.loadAdapter=function(a){if(a)a.fn&&a.fn.jquery&&(a=ac(a)),a.init&&(a.init(Jb),delete a.init),z.extend(z,a),ib=z.adapterRun,Ha=z.inArray,n=z.each,bb=z.grep,Wb=z.offset,wa=z.map,A=z.addEvent,Q=z.removeEvent,I=z.fireEvent,Xb=z.washMouseEvent,jb=z.animate,Wa=z.stop};z.loadAdapter(U.HighchartsAdapter||
28
- U.jQuery);N={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:"k,M,G,T,P,E".split(","),
29
- resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/stock/2.1.10/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",
30
- 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 this.y===null?"":z.numberFormat(this.y,
31
- -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,softThreshold:!0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:0.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",
32
- 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:0.5,textAlign:"center"}},
33
- tooltip:{enabled:!0,animation:ca,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/>',
34
- shadow:!0,snap:gb?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",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 S=N.plotOptions,Z=S.line;Ob();ka.prototype={parsers:[{regex:/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*\)/,parse:function(a){return[H(a[1]),
35
- H(a[2]),H(a[3]),parseFloat(a[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(a){return[H(a[1],16),H(a[2],16),H(a[3],16),1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[H(a[1]),H(a[2]),H(a[3]),1]}}],init:function(a){var b,c,d,e;if((this.input=a)&&a.stops)this.stops=wa(a.stops,function(a){return new ka(a[1])});else for(d=this.parsers.length;d--&&!c;)e=this.parsers[d],(b=e.regex.exec(a))&&(c=e.parse(b));this.rgba=
36
- c||[]},get:function(a){var b=this.input,c=this.rgba,d;this.stops?(d=C(b),d.stops=[].concat(d.stops),n(this.stops,function(b,c){d.stops[c]=[d.stops[c][0],b.get(a)]})):d=c&&!isNaN(c[0])?a==="rgb"||!a&&c[3]===1?"rgb("+c[0]+","+c[1]+","+c[2]+")":a==="a"?c[3]:"rgba("+c.join(",")+")":b;return d},brighten:function(a){var b,c=this.rgba;if(this.stops)n(this.stops,function(b){b.brighten(a)});else if(sa(a)&&a!==0)for(b=0;b<3;b++)c[b]+=H(a*255),c[b]<0&&(c[b]=0),c[b]>255&&(c[b]=255);return this},setOpacity:function(a){this.rgba[3]=
37
- a;return this}};W.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),init:function(a,b){this.element=b==="span"?$(b):F.createElementNS(Oa,b);this.renderer=a},animate:function(a,b,c){b=p(b,this.renderer.globalAnimation,!0);Wa(this);if(b){b=C(b,{});if(c)b.complete=c;jb(this,a,b)}else this.attr(a,null,c);return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,h,i,k,j,m,l,o,q,r=[],D;
38
- a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");if(f){g=a[f];i=d.gradients;j=a.stops;o=c.radialReference;Ka(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});f==="radialGradient"&&o&&!u(g.gradientUnits)&&(h=g,g=C(g,d.getRadialAttr(o,h),{gradientUnits:"userSpaceOnUse"}));for(q in g)q!=="id"&&r.push(q,g[q]);for(q in j)r.push(j[q]);r=r.join(",");i[r]?o=i[r].attr("id"):(g.id=o="highcharts-"+Ib++,i[r]=k=d.createElement(f).attr(g).add(d.defs),k.radAttr=
39
- h,k.stops=[],n(j,function(a){a[1].indexOf("rgba")===0?(e=ka(a[1]),m=e.get("rgb"),l=e.get("a")):(m=a[1],l=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":m,"stop-opacity":l}).add(k);k.stops.push(a)}));D="url("+d.url+"#"+o+")";c.setAttribute(b,D);c.gradient=r;a.toString=function(){return D}}},applyTextShadow:function(a){var b=this.element,c,d=a.indexOf("contrast")!==-1,e={},f=this.renderer.forExport,g=f||b.style.textShadow!==s&&!za;if(d)e.textShadow=a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill));
40
- if(sb||f)e.textRendering="geometricPrecision";g?this.css(e):(this.fakeTS=!0,this.ySetter=this.xSetter,c=[].slice.call(b.getElementsByTagName("tspan")),n(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])&&n(c,function(a,c){var g;c===0&&(a.setAttribute("x",b.getAttribute("x")),c=b.getAttribute("y"),a.setAttribute("y",c||0),c===null&&b.setAttribute("y",0));g=a.cloneNode(1);T(g,{"class":"highcharts-text-shadow",fill:e,stroke:e,"stroke-opacity":1/t(H(f),
41
- 3),"stroke-width":f,"stroke-linejoin":"round"});b.insertBefore(g,d)})}))},attr:function(a,b,c){var d,e=this.element,f,g=this,h;typeof a==="string"&&b!==s&&(d=a,a={},a[d]=b);if(typeof a==="string")g=(this[a+"Getter"]||this._defaultGetter).call(this,a,e);else{for(d in a){b=a[d];h=!1;this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(d)&&(f||(this.symbolAttr(a),f=!0),h=!0);if(this.rotation&&(d==="x"||d==="y"))this.doTransform=!0;h||(this[d+"Setter"]||this._defaultSetter).call(this,
42
- b,d,e);this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(d)&&this.updateShadows(d,b)}if(this.doTransform)this.updateTransform(),this.doTransform=!1}c&&c();return g},updateShadows:function(a,b){for(var c=this.shadows,d=c.length;d--;)c[d].setAttribute(a,a==="height"?Math.max(b-(c[d].cutHeight||0),0):a==="d"?this.d:b)},addClass:function(a){var b=this.element,c=T(b,"class")||"";c.indexOf(a)===-1&&T(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;n("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),
43
- function(c){b[c]=p(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a){var b,c={},d,e=a.strokeWidth||this.strokeWidth||0;d=x(e)%2/2;a.x=R(a.x||this.x||0)+d;a.y=R(a.y||this.y||0)+d;a.width=R((a.width||this.width||0)-2*d);a.height=R((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=
44
- this.styles,c={},d=this.element,e,f,g="";e=!b;if(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&&d.nodeName.toLowerCase()==="text"&&H(a.width)||this.textWidth;b&&(a=v(b,c));this.styles=a;e&&(pa||!ca&&this.renderer.forExport)&&delete a.width;if(za&&!ca)J(this.element,a);else{b=function(a,b){return"-"+b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";T(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},
45
- on:function(a,b){var c=this,d=c.element;ab&&a==="click"?(d.ontouchstart=function(a){c.touchEventFired=fa.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(Ga.indexOf("Android")===-1||fa.now()-(c.touchEventFired||0)>1100)&&b.call(d,a)}):d["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,
46
- 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)+")");(u(c)||u(d))&&a.push("scale("+p(c,1)+" "+p(d,1)+")");a.length&&g.setAttribute("transform",
47
- a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;f=e.alignedObjects;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||Ja(c))this.alignTo=d=c||"renderer",ua(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=p(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(d==="right"||d==="center")f+=(c.width-(a.width||0))/{right:1,center:2}[d];
48
- h[b?"translateX":"x"]=x(f);if(e==="bottom"||e==="middle")g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=x(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a,b){var c,d=this.renderer,e,f,g,h=this.element,i=this.styles;e=this.textStr;var k,j=h.style,m,l=d.cache,o=d.cacheKeys,q;f=p(b,this.rotation);g=f*oa;e!==s&&(q=["",f||0,i&&i.fontSize,h.style.width].join(","),q=e===""||bc.test(e)?"num:"+e.toString().length+q:e+q);
49
- q&&!a&&(c=l[q]);if(!c){if(h.namespaceURI===Oa||d.forExport){try{m=this.fakeTS&&function(a){n(h.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=a})},Ua&&j.textShadow?(k=j.textShadow,j.textShadow=""):m&&m("none"),c=h.getBBox?v({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight},k?j.textShadow=k:m&&m("")}catch(r){}if(!c||c.width<0)c={width:0,height:0}}else c=this.htmlGetBBox();if(d.isSVG){d=c.width;e=c.height;if(za&&i&&i.fontSize==="11px"&&e.toPrecision(3)==="16.9")c.height=
50
- e=14;if(f)c.width=P(e*ga(g))+P(d*Y(g)),c.height=P(e*Y(g))+P(d*ga(g))}if(q){for(;o.length>250;)delete l[o.shift()];l[q]||o.push(q);l[q]=c}}return c},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},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;if(a)this.parentGroup=a;this.parentInverted=a&&a.inverted;this.textStr!==
51
- void 0&&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&&b.nodeName==="SPAN"&&a.parentGroup,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;Wa(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f]=
52
- a.stops[f].destroy();a.stops=null}a.safeRemoveChild(b);for(c&&n(c,function(b){a.safeRemoveChild(b)});d&&d.div&&d.div.childNodes.length===0;)b=d.parentGroup,a.safeRemoveChild(d.div),delete d.div,d=b;a.alignTo&&ua(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},shadow:function(a,b,c){var d=[],e,f,g=this.element,h,i,k,j;if(a){i=p(a.width,3);k=(a.opacity||0.15)/i;j=this.parentInverted?"(-1,-1)":"("+p(a.offsetX,1)+", "+p(a.offsetY,1)+")";for(e=1;e<=i;e++){f=g.cloneNode(0);h=i*2+1-2*e;
53
- T(f,{isShadow:"true",stroke:a.color||"black","stroke-opacity":k*e,"stroke-width":h,transform:"translate"+j,fill:"none"});if(c)T(f,"height",t(T(f,"height")-h,0)),f.cutHeight=h;b?b.element.appendChild(f):g.parentNode.insertBefore(f,g);d.push(f)}this.shadows=d}return this},xGetter:function(a){this.element.nodeName==="circle"&&(a={x:"cx",y:"cy"}[a]||a);return this._defaultGetter(a)},_defaultGetter:function(a){a=p(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));
54
- 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]=H(a[b])*this["stroke-width"];a=a.join(",").replace("NaN",
55
- "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=F.createElementNS(Oa,"title"),this.element.appendChild(b));b.appendChild(F.createTextNode(String(p(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){if(a!==this.textStr)delete this.bBox,
56
- this.textStr=a,this.added&&this.renderer.buildText(this)},fillSetter:function(a,b,c){typeof a==="string"?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},visibilitySetter:function(a,b,c){a==="inherit"?c.removeAttribute(b):c.setAttribute(b,a)},zIndexSetter:function(a,b){var c=this.renderer,d=this.parentGroup,c=(d||c).element||c.box,e,f,g=this.element,h;e=this.added;var i;u(a)&&(g.setAttribute(b,a),a=+a,this[b]===a&&(e=!1),this[b]=a);if(e){if((a=this.zIndex)&&d)d.handleZ=!0;d=c.childNodes;for(i=0;i<
57
- d.length&&!h;i++)if(e=d[i],f=T(e,"zIndex"),e!==g&&(H(f)>a||!u(a)&&u(f)))c.insertBefore(g,e),h=!0;h||c.appendChild(g)}return h},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};W.prototype.yGetter=W.prototype.xGetter;W.prototype.translateXSetter=W.prototype.translateYSetter=W.prototype.rotationSetter=W.prototype.verticalAlignSetter=W.prototype.scaleXSetter=W.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};W.prototype["stroke-widthSetter"]=W.prototype.strokeSetter=function(a,
58
- b,c){this[b]=a;if(this.stroke&&this["stroke-width"])this.strokeWidth=this["stroke-width"],W.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0;else if(b==="stroke-width"&&a===0&&this.hasStroke)c.removeAttribute("stroke"),this.hasStroke=!1};var ra=function(){this.init.apply(this,arguments)};ra.prototype={Element:W,init:function(a,b,c,d,e,f){var g=location,h,d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));
59
- h=d.element;a.appendChild(h);a.innerHTML.indexOf("xmlns")===-1&&T(h,"xmlns",Oa);this.isSVG=!0;this.box=h;this.boxWrapper=d;this.alignedObjects=[];this.url=(Ua||sb)&&F.getElementsByTagName("base").length?g.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(F.createTextNode("Created with Highstock 2.1.10"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=e;this.gradients={};this.cache={};this.cacheKeys=
60
- [];this.setSize(b,c,!1);var i;if(Ua&&a.getBoundingClientRect)this.subPixelFix=b=function(){J(a,{left:0,top:0});i=a.getBoundingClientRect();J(a,{left:Ba(i.left)-i.left+"px",top:Ba(i.top)-i.top+"px"})},b(),A(U,"resize",b)},getStyle:function(a){return this.style=v({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();
61
- Na(this.gradients||{});this.gradients=null;if(a)this.defs=a.destroy();this.subPixelFix&&Q(U,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},buildText:function(a){for(var b=a.element,c=this,d=c.forExport,e=p(a.textStr,"").toString(),f=e.indexOf("<")!==-1,g=b.childNodes,h,i,k=T(b,"x"),j=a.styles,m=a.textWidth,
62
- l=j&&j.lineHeight,o=j&&j.textShadow,q=j&&j.textOverflow==="ellipsis",r=g.length,D=m&&!a.added&&this.box,B=function(a){return l?H(l):c.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:j&&j.fontSize||c.style.fontSize||12,a).h},w=function(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,">")};r--;)b.removeChild(g[r]);!f&&!o&&!q&&e.indexOf(" ")===-1?b.appendChild(F.createTextNode(w(e))):(h=/<.*style="([^"]+)".*>/,i=/<.*href="(http[^"]+)".*>/,D&&D.appendChild(b),e=f?e.replace(/<(b|strong)>/g,
63
- '<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(),n(e,function(e,f){var g,l=0,e=e.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");g=e.split("|||");n(g,function(e){if(e!==""||g.length===1){var o={},r=F.createElementNS(Oa,"tspan"),D;h.test(e)&&(D=e.match(h)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),T(r,"style",D));i.test(e)&&!d&&
64
- (T(r,"onclick",'location.href="'+e.match(i)[1]+'"'),J(r,{cursor:"pointer"}));e=w(e.replace(/<(.|\n)*?>/g,"")||" ");if(e!==" "){r.appendChild(F.createTextNode(e));if(l)o.dx=0;else if(f&&k!==null)o.x=k;T(r,o);b.appendChild(r);!l&&f&&(!ca&&d&&J(r,{display:"block"}),T(r,"dy",B(r)));if(m){for(var o=e.replace(/([^\^])-/g,"$1- ").split(" "),p=g.length>1||f||o.length>1&&j.whiteSpace!=="nowrap",n,y,s,u=[],t=B(r),x=1,v=a.rotation,z=e,C=z.length;(p||q)&&(o.length||u.length);)a.rotation=0,n=a.getBBox(!0),s=n.width,
65
- !ca&&c.forExport&&(s=c.measureSpanWidth(r.firstChild.data,a.styles)),n=s>m,y===void 0&&(y=n),q&&y?(C/=2,z===""||!n&&C<0.5?o=[]:(n&&(y=!0),z=e.substring(0,z.length+(n?-1:1)*Ba(C)),o=[z+(m>3?"\u2026":"")],r.removeChild(r.firstChild))):!n||o.length===1?(o=u,u=[],o.length&&(x++,r=F.createElementNS(Oa,"tspan"),T(r,{dy:t,x:k}),D&&T(r,"style",D),b.appendChild(r)),s>m&&(m=s)):(r.removeChild(r.firstChild),u.unshift(o.pop())),o.length&&r.appendChild(F.createTextNode(o.join(" ").replace(/- /g,"-")));y&&a.attr("title",
66
- a.textStr);a.rotation=v}l++}}})}),D&&D.removeChild(b),o&&a.applyTextShadow&&a.applyTextShadow(o))},getContrast:function(a){a=ka(a).rgba;return a[0]+a[1]+a[2]>384?"#000000":"#FFFFFF"},button:function(a,b,c,d,e,f,g,h,i){var k=this.label(a,b,c,i,null,null,null,null,"button"),j=0,m,l,o,q,r,D,a={x1:0,y1:0,x2:0,y2:1},e=C({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);o=e.style;delete e.style;f=C(e,{stroke:"#68A",fill:{linearGradient:a,
67
- stops:[[0,"#FFF"],[1,"#ACF"]]}},f);q=f.style;delete f.style;g=C(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);r=g.style;delete g.style;h=C(e,{style:{color:"#CCC"}},h);D=h.style;delete h.style;A(k.element,za?"mouseover":"mouseenter",function(){j!==3&&k.attr(f).css(q)});A(k.element,za?"mouseout":"mouseleave",function(){j!==3&&(m=[e,f,g][j],l=[o,q,r][j],k.attr(m).css(l))});k.setState=function(a){(k.state=j=a)?a===2?k.attr(g).css(r):a===3&&k.attr(h).css(D):k.attr(e).css(o)};
68
- return k.on("click",function(a){j!==3&&d.call(k,a)}).attr(e).css(v({cursor:"default"},o))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=x(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=x(a[2])+b%2/2);return a},path:function(a){var b={fill:"none"};Ka(a)?b.d=a:ea(a)&&v(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=ea(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)};
69
- return b.attr(a)},arc:function(a,b,c,d,e,f){if(ea(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){var e=ea(a)?a.r:e,g=this.createElement("rect"),a=ea(a)?a:a===s?{}:{x:a,y:b,width:t(c,0),height:t(d,0)};if(f!==s)a.strokeWidth=f,a=g.crisp(a);if(e)a.r=e;g.rSetter=function(a){T(this.element,{rx:a,ry:a})};return g.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=
70
- a;this.height=b;for(this.boxWrapper[p(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return u(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};arguments.length>1&&v(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,
71
- b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(x(b),x(c),d,e,f),i=/^url\((.*?)\)$/,k,j;if(h)g=this.path(h),v(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&v(g,f);else if(i.test(a))j=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(x((d-b[0])/2),x((e-b[1])/2)))},k=a.match(i)[1],a=Vb[k]||f&&f.width&&f.height&&[f.width,f.height],g=this.image(k).attr({x:b,y:c}),g.isImg=!0,a?j(g,a):(g.attr({width:0,height:0}),$("img",{onload:function(){this.width===0&&(J(this,{position:"absolute",
72
- top:"-999em"}),document.body.appendChild(this));j(g,Vb[k]=[this.width,this.height]);this.parentNode&&this.parentNode.removeChild(this)},src:k}));return g},symbols:{circle:function(a,b,c,d){var e=0.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"]},
73
- 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,g=e.end-0.001,d=e.innerR,h=e.open,i=Y(f),k=ga(f),j=Y(g),g=ga(g),e=e.end-f<va?0:1;return["M",a+c*i,b+c*k,"A",c,c,0,e,1,a+c*j,b+c*g,h?"M":"L",a+d*j,b+d*g,"A",d,d,0,e,0,a+d*i,b+d*k,h?"":"Z"]},callout:function(a,b,c,d,e){var f=E(e&&e.r||0,c,d),g=f+6,h=e&&e.anchorX,e=e&&e.anchorY,i;i=["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+
74
- d,"L",a+f,b+d,"C",a,b+d,a,b+d,a,b+d-f,"L",a,b+f,"C",a,b,a,b,a+f,b];h&&h>c&&e>b+g&&e<b+d-g?i.splice(13,3,"L",a+c,e-6,a+c+6,e,a+c,e+6,a+c,b+d-f):h&&h<0&&e>b+g&&e<b+d-g?i.splice(33,3,"L",a,e+6,a-6,e,a,e-6,a,b+f):e&&e>d&&h>a+g&&h<a+c-g?i.splice(23,3,"L",h+6,b+d,h,b+d+6,h-6,b+d,a+f,b+d):e&&e<0&&h>a+g&&h<a+c-g&&i.splice(3,3,"L",h-6,b,h,b-6,h+6,b,c-f,b);return i}},clipRect:function(a,b,c,d){var e="highcharts-"+Ib++,f=this.createElement("clipPath").attr({id:e}).add(this.defs),a=this.rect(a,b,c,d,0).add(f);
75
- a.id=e;a.clipPath=f;a.count=0;return a},text:function(a,b,c,d){var e=pa||!ca&&this.forExport,f={};if(d&&(this.allowHTML||!this.forExport))return this.html(a,b,c);f.x=Math.round(b||0);if(c)f.y=Math.round(c);if(a||a===0)f.text=a;a=this.createElement("text").attr(f);e&&a.css({position:"absolute"});if(!d)a.xSetter=function(a,b,c){var d=c.getElementsByTagName("tspan"),e,f=c.getAttribute(b),l;for(l=0;l<d.length;l++)e=d[l],e.getAttribute(b)===f&&e.setAttribute(b,a);c.setAttribute(b,a)};return a},fontMetrics:function(a,
76
- b){var c,d,a=a||this.style.fontSize;!a&&b&&U.getComputedStyle&&(b=b.element||b,a=(c=U.getComputedStyle(b,""))&&c.fontSize);a=/px/.test(a)?H(a):/em/.test(a)?parseFloat(a)*12:12;c=a<24?a+3:x(a*1.2);d=x(c*0.8);return{h:c,b:d,f:a}},rotCorr:function(a,b,c){var d=a;b&&c&&(d=t(d*Y(b*oa),4));return{x:-a/3*ga(b*oa),y:d}},label:function(a,b,c,d,e,f,g,h,i){var k=this,j=k.g(i),m=k.text("",0,0,g).attr({zIndex:1}),l,o,q=0,r=3,D=0,p,w,y,ma,ha=0,kb={},t,z,Kb,E,A;Kb=function(){var a,b;a=m.element.style;o=(p===void 0||
77
- w===void 0||j.styles.textAlign)&&u(m.textStr)&&m.getBBox();j.width=(p||o.width||0)+2*r+D;j.height=(w||o.height||0)+2*r;t=r+k.fontMetrics(a&&a.fontSize,m).b;if(z){if(!l)a=ha,b=(h?-t:0)+ha,j.box=l=d?k.symbol(d,a,b,j.width,j.height,kb):k.rect(a,b,j.width,j.height,0,kb["stroke-width"]),l.isImg||l.attr("fill","none"),l.add(j);l.isImg||l.attr(v({width:x(j.width),height:x(j.height)},kb));kb=null}};E=function(){var a=j.styles,a=a&&a.textAlign,b=D+r,c;c=h?0:t;if(u(p)&&o&&(a==="center"||a==="right"))b+={center:0.5,
78
- right:1}[a]*(p-o.width);if(b!==m.x||c!==m.y)m.attr("x",b),c!==s&&m.attr("y",c);m.x=b;m.y=c};A=function(a,b){l?l.attr(a,b):kb[a]=b};j.onAdd=function(){m.add(j);j.attr({text:a||a===0?a:"",x:b,y:c});l&&u(e)&&j.attr({anchorX:e,anchorY:f})};j.widthSetter=function(a){p=a};j.heightSetter=function(a){w=a};j.paddingSetter=function(a){if(u(a)&&a!==r)r=j.padding=a,E()};j.paddingLeftSetter=function(a){u(a)&&a!==D&&(D=a,E())};j.alignSetter=function(a){a={left:0,center:0.5,right:1}[a];a!==q&&(q=a,o&&j.attr({x:b}))};
79
- j.textSetter=function(a){a!==s&&m.textSetter(a);Kb();E()};j["stroke-widthSetter"]=function(a,b){a&&(z=!0);ha=a%2/2;A(b,a)};j.strokeSetter=j.fillSetter=j.rSetter=function(a,b){b==="fill"&&a&&(z=!0);A(b,a)};j.anchorXSetter=function(a,b){e=a;A(b,x(a)-ha-y)};j.anchorYSetter=function(a,b){f=a;A(b,a-ma)};j.xSetter=function(a){j.x=a;q&&(a-=q*((p||o.width)+2*r));y=x(a);j.attr("translateX",y)};j.ySetter=function(a){ma=j.y=x(a);j.attr("translateY",ma)};var F=j.css;return v(j,{css:function(a){if(a){var b={},
80
- a=C(a);n(j.textProps,function(c){a[c]!==s&&(b[c]=a[c],delete a[c])});m.css(b)}return F.call(j,a)},getBBox:function(){return{width:o.width+2*r,height:o.height+2*r,x:o.x-r,y:o.y-r}},shadow:function(a){l&&l.shadow(a);return j},destroy:function(){Q(j.element,"mouseenter");Q(j.element,"mouseleave");m&&(m=m.destroy());l&&(l=l.destroy());W.prototype.destroy.call(j);j=k=Kb=E=A=null}})}};Va=ra;v(W.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&b.tagName==="SPAN"&&a.width)delete a.width,this.textWidth=
81
- b,this.updateTransform();if(a&&a.textOverflow==="ellipsis")a.whiteSpace="nowrap",a.overflow="hidden";this.styles=v(this.styles,a);J(this.element,a);return this},htmlGetBBox:function(){var a=this.element;if(a.nodeName==="text")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",
82
- h={left:0,center:0.5,right:1}[g],i=this.shadows,k=this.styles;J(b,{marginLeft:c,marginTop:d});i&&n(i,function(a){J(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(b.tagName==="SPAN"){var j=this.rotation,m,l=H(this.textWidth),o=[j,g,b.innerHTML,this.textWidth,this.textAlign].join(",");if(o!==this.cTT){m=a.fontMetrics(b.style.fontSize).b;u(j)&&this.setSpanRotation(j,h,m);i=p(this.elemWidth,b.offsetWidth);if(i>l&&/[ \-]/.test(b.textContent||b.innerText))J(b,
83
- {width:l+"px",display:"block",whiteSpace:k&&k.whiteSpace||"normal"}),i=l;this.getSpanCorrection(i,m,h,j,g)}J(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});if(sb)m=b.offsetHeight;this.cTT=o}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=za?"-ms-transform":sb?"-webkit-transform":Ua?"MozTransform":Ub?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)";d[e+(Ua?"Origin":"-origin")]=d.transformOrigin=b*100+"% "+c+"px";J(this.element,d)},getSpanCorrection:function(a,
84
- b,c){this.xCorr=-a*c;this.yCorr=-b}});v(ra.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.htmlUpdateTransform()};d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,b){b==="align"&&(b="textAlign");d[b]=a;d.htmlUpdateTransform()};d.attr({text:a,x:x(b),y:x(c)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace=
85
- "nowrap";d.css=d.htmlCss;if(f.isSVG)d.add=function(a){var b,c=f.box.parentNode,k=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)k.push(a),a=a.parentGroup;n(k.reverse(),function(a){var d,e=T(a.element,"class");e&&(e={className:e});b=a.div=a.div||$(Ta,e,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px"},b||c);d=b.style;v(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}});n(["opacity",
86
- "visibility"],function(b){M(a,b+"Setter",function(a,b,c,e){a.call(this,b,c,e);d[c]=b})})})}}else b=c;b.appendChild(e);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d};return d}});var lb,X;if(!ca&&!pa)X={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e=b===Ta;(b==="shape"||e)&&d.push("left:0;top:0;width:1px;height:1px;");d.push("visibility: ",e?"hidden":"visible");c.push(' style="',d.join(""),'"/>');if(b)c=e||b==="span"||b==="img"?c.join(""):a.prepVML(c),
87
- this.element=$(c);this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,e=a&&a.inverted,d=a?a.element||a:d;if(a)this.parentGroup=a;e&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();return this},updateTransform:W.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=this.rotation,b=Y(a*oa),c=ga(a*oa);J(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",
88
- b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,c,d,e){var f=d?Y(d*oa):1,g=d?ga(d*oa):0,h=p(this.elemHeight,this.element.offsetHeight),i;this.xCorr=f<0&&-a;this.yCorr=g<0&&-h;i=f*g<0;this.xCorr+=g*b*(i?1-c:c);this.yCorr-=f*b*(d?i?c:1-c:1);e&&e!=="left"&&(this.xCorr-=a*c*(f<0?-1:1),d&&(this.yCorr-=h*c*(g<0?-1:1)),J(this.element,{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)if(sa(a[b]))c[b]=x(a[b]*10)-5;else if(a[b]===
89
- "Z")c[b]="x";else if(c[b]=a[b],a.isArc&&(a[b]==="wa"||a[b]==="at"))c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1);return c.join(" ")||"x"},clip:function(a){var b=this,c;a?(c=a.members,ua(c,b),c.push(b),b.destroyClip=function(){ua(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:rb?"inherit":"rect(auto)"});return b.css(a)},css:W.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&Sa(a)},destroy:function(){this.destroyClip&&this.destroyClip();
90
- return W.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+a]=function(){var a=U.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c,a=a.split(/[ ,]/);c=a.length;if(c===9||c===11)a[c-4]=a[c-2]=H(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,i=f.style,k,j=f.path,m,l,o,q;j&&typeof j.value!=="string"&&(j="x");l=j;if(a){o=p(a.width,3);q=(a.opacity||0.15)/o;for(e=1;e<=3;e++){m=o*2+1-2*e;c&&(l=this.cutOffPath(j.value,
91
- m+0.5));k=['<shape isShadow="true" strokeweight="',m,'" filled="false" path="',l,'" coordsize="10 10" style="',f.style.cssText,'" />'];h=$(g.prepVML(k),null,{left:H(i.left)+p(a.offsetX,1),top:H(i.top)+p(a.offsetY,1)});if(c)h.cutOff=m+1;k=['<stroke color="',a.color||"black",'" opacity="',q*e,'"/>'];$(g.prepVML(k),null,null,h);b?b.element.appendChild(h):f.parentNode.insertBefore(h,f);d.push(h)}this.shadows=d}return this},updateShadows:la,setAttr:function(a,b){rb?this.element[a]=b:this.element.setAttribute(a,
92
- b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||$(this.renderer.prepVML(["<stroke/>"]),null,null,c))[b]=a||"solid";this[b]=a},dSetter:function(a,b,c){var d=this.shadows,a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;if(d==="SPAN")c.style.color=a;else if(d!=="IMG")c.filled=
93
- a!=="none",this.setAttr("fillcolor",this.renderer.color(a,c,b,this))},opacitySetter:la,rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-x(ga(a*oa)+1)+"px";c.top=x(Y(a*oa))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;this[b]=a;sa(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){a==="inherit"&&(a="visible");this.shadows&&
94
- n(this.shadows,function(c){c.style[b]=a});c.nodeName==="DIV"&&(a=a==="hidden"?"-999em":0,rb||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},xSetter:function(a,b,c){this[b]=a;b==="x"?b="left":b==="y"&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}},z.VMLElement=X=ia(W,X),X.prototype.ySetter=X.prototype.widthSetter=X.prototype.heightSetter=X.prototype.xSetter,X={Element:X,isIE8:Ga.indexOf("MSIE 8.0")>-1,init:function(a,
95
- b,c,d){var e;this.alignedObjects=[];d=this.createElement(Ta).css(v(this.getStyle(d),{position:"relative"}));e=d.element;a.appendChild(d.element);this.isVML=!0;this.box=e;this.boxWrapper=d;this.gradients={};this.cache={};this.cacheKeys=[];this.setSize(b,c,!1);if(!F.namespaces.hcv){F.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{F.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){F.styleSheets[0].cssText+=
96
- "hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=ea(a);return v(e,{members:[],count:0,left:(f?a.x:a)+1,top:(f?a.y:b)+1,width:(f?a.width:c)-1,height:(f?a.height:d)-1,getCSS:function(a){var b=a.element,c=b.nodeName,a=a.inverted,d=this.top-(c==="shape"?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+x(a?e:d)+"px,"+
97
- x(a?f:b)+"px,"+x(a?b:f)+"px,"+x(a?d:e)+"px)"};!a&&rb&&c==="DIV"&&v(d,{width:b+"px",height:f+"px"});return d},updateClipping:function(){n(e.members,function(a){a.element&&a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,i,k="none";a&&a.linearGradient?i="gradient":a&&a.radialGradient&&(i="pattern");if(i){var j,m,l=a.linearGradient||a.radialGradient,o,q,r,D,p,w="",a=a.stops,y,ma=[],ha=function(){h=['<fill colors="'+ma.join(",")+'" opacity="',r,'" o:opacity2="',q,'" type="',i,
98
- '" ',w,'focus="100%" method="any" />'];$(e.prepVML(h),null,null,b)};o=a[0];y=a[a.length-1];o[0]>0&&a.unshift([0,o[1]]);y[0]<1&&a.push([1,y[1]]);n(a,function(a,b){g.test(a[1])?(f=ka(a[1]),j=f.get("rgb"),m=f.get("a")):(j=a[1],m=1);ma.push(a[0]*100+"% "+j);b?(r=m,D=j):(q=m,p=j)});if(c==="fill")if(i==="gradient")c=l.x1||l[0]||0,a=l.y1||l[1]||0,o=l.x2||l[2]||0,l=l.y2||l[3]||0,w='angle="'+(90-V.atan((l-a)/(o-c))*180/va)+'"',ha();else{var k=l.r,s=k*2,u=k*2,t=l.cx,x=l.cy,z=b.radialReference,v,k=function(){z&&
99
- (v=d.getBBox(),t+=(z[0]-v.x)/v.width-0.5,x+=(z[1]-v.y)/v.height-0.5,s*=z[2]/v.width,u*=z[2]/v.height);w='src="'+N.global.VMLRadialGradientURL+'" size="'+s+","+u+'" origin="0.5,0.5" position="'+t+","+x+'" color2="'+p+'" ';ha()};d.added?k():d.onAdd=k;k=D}else k=j}else if(g.test(a)&&b.tagName!=="IMG")f=ka(a),h=["<",c,' opacity="',f.get("a"),'"/>'],$(this.prepVML(h),null,null,b),k=f.get("rgb");else{k=b.getElementsByTagName(c);if(k.length)k[0].opacity=1,k[0].type="solid";k=a}return k},prepVML:function(a){var b=
100
- this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:");return a},text:ra.prototype.html,path:function(a){var b={coordsize:"10 10"};Ka(a)?b.d=a:ea(a)&&v(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){var d=this.symbol("circle");if(ea(a))c=
101
- a.r,b=a.y,a=a.x;d.isCircle=!0;d.r=c;return d.attr({x:a,y:b})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement(Ta).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.attr({x:b,y:c,width:d,height:e});return f},createElement:function(a){return a==="rect"?this.symbol(a):ra.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this,d=b.style,e=a.tagName==="IMG"&&a.style;J(a,{flip:"x",
102
- left:H(d.width)-(e?H(e.top):1),top:H(d.height)-(e?H(e.left):1),rotation:-90});n(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=e.innerR,d=Y(f),i=ga(f),k=Y(g),j=ga(g);if(g-f===0)return["x"];f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*i,a+h*k,b+h*j];e.open&&!c&&f.push("e","M",a,b);f.push("at",a-c,b-c,a+c,b+c,a+c*k,b+c*j,a+c*d,b+c*i,"x","e");f.isArc=!0;return f},circle:function(a,b,c,d,e){e&&(c=d=2*e.r);e&&e.isCircle&&(a-=c/2,b-=d/2);return["wa",
103
- a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){return ra.prototype.symbols[!u(e)||!e.r?"square":"callout"].call(0,a,b,c,d,e)}}},z.VMLRenderer=lb=function(){this.init.apply(this,arguments)},lb.prototype=C(ra.prototype,X),Va=lb;ra.prototype.measureSpanWidth=function(a,b){var c=F.createElement("span"),d;d=F.createTextNode(a);c.appendChild(d);J(c,b);this.box.appendChild(c);d=c.offsetWidth;Sa(c);return d};var Yb;if(pa)z.CanVGRenderer=X=function(){Oa="http://www.w3.org/1999/xhtml"},X.prototype.symbols=
104
- {},Yb=function(){function a(){var a=b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){b.length===0&&z.getScript(d,a);b.push(c)}}}(),Va=X;$a.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,h=a.tickPositions,i=f===h[0],k=f===h[h.length-1],e=d?p(d[f],e[f],f):f,d=this.label,h=h.info,j;a.isDatetimeAxis&&h&&(j=b.dateTimeLabelFormats[h.higherRanks[f]||h.unitName]);this.isFirst=i;this.isLast=k;b=a.labelFormatter.call({axis:a,
105
- chart:c,isFirst:i,isLast:k,dateTimeLabelFormat:j,value:a.isLog?na(ta(e)):e});u(d)?d&&d.attr({text:b}):(this.labelLength=(this.label=d=u(b)&&g.enabled?c.renderer.text(b,0,0,g.useHTML).css(C(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=p(b.labelLeft,E(b.pos,e[3])),e=p(b.labelRight,t(b.pos+
106
- b.len,d-e[1])),g=this.label,h=this.rotation,i={left:0,center:0.5,right:1}[b.labelAlign],k=g.getBBox().width,j=b.slotWidth,m=1,l,o={};if(h)h<0&&c-i*k<f?l=x(c/Y(h*oa)-f):h>0&&c+i*k>e&&(l=x((d-c)/Y(h*oa)));else if(d=c+(1-i)*k,c-i*k<f?j=a.x+j*(1-i)-f:d>e&&(j=e-a.x+j*i,m=-1),j=E(b.slotWidth,j),j<b.slotWidth&&b.labelAlign==="center"&&(a.x+=m*(b.slotWidth-j-i*(b.slotWidth-E(k,j)))),k>j||b.autoRotation&&g.styles.width)l=j;if(l){o.width=l;if(!b.options.labels.style.textOverflow)o.textOverflow="ellipsis";g.css(o)}},
107
- getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var i=this.axis,k=i.transA,j=i.reversed,m=i.staggerLines,l=i.tickRotCorr||{x:0,y:0},o=e.y;u(o)||(o=i.side===2?l.y+8:o=Y(c.rotation*oa)*(l.y-c.getBBox(!1,
108
- 0).height/2));a=a+e.x+l.x-(f&&d?f*k*(j?-1:1):0);b=b+o-(f&&!d?f*k*(j?1:-1):0);m&&(c=g/(h||1)%m,i.opposite&&(c=m-c-1),b+=c*(i.labelOffset/m));return{x:a,y:x(b)}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,i=this.label,k=this.pos,j=e.labels,m=this.gridLine,l=h?h+"Grid":"grid",o=h?h+"Tick":"tick",q=e[l+"LineWidth"],r=e[l+"LineColor"],D=e[l+"LineDashStyle"],n=e[o+
109
- "Length"],l=p(e[o+"Width"],!h&&d.isXAxis?1:0),w=e[o+"Color"],y=e[o+"Position"],o=this.mark,ma=j.step,ha=!0,u=d.tickmarkOffset,t=this.getPosition(g,k,u,b),x=t.x,t=t.y,v=g&&x===d.pos+d.len||!g&&t===d.pos?-1:1,c=p(c,1);this.isActive=!0;if(q){k=d.getPlotLinePath(k+u,q*v,b,!0);if(m===s){m={stroke:r,"stroke-width":q};if(D)m.dashstyle=D;if(!h)m.zIndex=1;if(b)m.opacity=0;this.gridLine=m=q?f.path(k).attr(m).add(d.gridGroup):null}if(!b&&m&&k)m[this.isNew?"attr":"animate"]({d:k,opacity:c})}if(l&&n)y==="inside"&&
110
- (n=-n),d.opposite&&(n=-n),h=this.getMarkPath(x,t,n,l*v,g,f),o?o.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:w,"stroke-width":l,opacity:c}).add(d.axisGroup);if(i&&!isNaN(x))i.xy=t=this.getLabelPosition(x,t,i,g,j,u,a,ma),this.isFirst&&!this.isLast&&!p(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!p(e.showLastLabel,1)?ha=!1:g&&!d.isRadial&&!j.step&&!j.rotation&&!b&&c!==0&&this.handleOverflow(t),ma&&a%ma&&(ha=!1),ha&&!isNaN(t.y)?(t.opacity=c,i[this.isNew?"attr":"animate"](t),this.isNew=
111
- !1):i.attr("y",-9999)},destroy:function(){Na(this,this.axis)}};z.PlotLineOrBand=function(a,b){this.axis=a;if(b)this.options=b,this.id=b.id};z.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,h=d.to,i=d.from,k=u(i)&&u(h),j=d.value,m=d.dashStyle,l=a.svgElem,o=[],q,r=d.color,D=d.zIndex,p=d.events,n={},y=b.chart.renderer;b.isLog&&(i=La(i),h=La(h),j=La(j));if(g){if(o=b.getPlotLinePath(j,g),n={stroke:r,"stroke-width":g},m)n.dashstyle=m}else if(k){o=
112
- b.getPlotBandPath(i,h,d);if(r)n.fill=r;if(d.borderWidth)n.stroke=d.borderColor,n["stroke-width"]=d.borderWidth}else return;if(u(D))n.zIndex=D;if(l)if(o)l.show(),l.animate({d:o});else{if(l.hide(),f)a.label=f=f.destroy()}else if(o&&o.length&&(a.svgElem=l=y.path(o).attr(n).add(),p))for(q in d=function(b){l.on(b,function(c){p[b].apply(a,[c])})},p)d(q);if(e&&u(e.text)&&o&&o.length&&b.width>0&&b.height>0&&!o.flat){e=C({align:c&&k&&"center",x:c?!k&&4:10,verticalAlign:!c&&k&&"middle",y:c?k?16:10:k?6:-4,rotation:c&&
113
- !k&&90},e);if(!f){n={align:e.textAlign||e.align,rotation:e.rotation};if(u(D))n.zIndex=D;a.label=f=y.text(e.text,0,0,e.useHTML).attr(n).css(e.style).add()}b=[o[1],o[4],k?o[6]:o[1]];k=[o[2],o[5],k?o[7]:o[2]];o=Ma(b);c=Ma(k);f.align(e,!1,{x:o,y:c,width:Aa(b)-o,height:Aa(k)-c});f.show()}else f&&f.hide();return a},destroy:function(){ua(this.axis.plotLinesAndBands,this);delete this.axis;Na(this)}};var L=z.Axis=function(){this.init.apply(this,arguments)};L.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",
114
- 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:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,
115
- tickPosition:"outside",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:0.05,minPadding:0.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return z.numberFormat(this.total,-1)},style:C(S.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,
116
- 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.chart=a;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;
117
- this.userOptions=b;this.minPixelPadding=0;this.reversed=d.reversed;this.visible=d.visible!==!1;this.zoomEnabled=d.zoomEnabled!==!1;this.categories=d.categories||e==="category";this.names=this.names||[];this.isLog=e==="logarithmic";this.isDatetimeAxis=e==="datetime";this.isLinked=u(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;
118
- this.stacks={};this.oldStacks={};this.stacksTouched=0;this.min=this.max=null;this.crosshair=p(d.crosshair,qa(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;Ha(this,a.axes)===-1&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];if(a.inverted&&c&&this.reversed===s)this.reversed=!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)A(this,f,d[f]);if(this.isLog)this.val2lin=
119
- La,this.lin2val=ta},setOptions:function(a){this.options=C(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],C(N[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=N.lang.numericSymbols,f=e&&e.length,g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=Fa(h,this);else if(c)g=b;else if(d)g=
120
- ja(d,b);else if(f&&a>=1E3)for(;f--&&g===s;)c=Math.pow(1E3,f+1),a>=c&&b*10%c===0&&e[f]!==null&&(g=z.numberFormat(b/c,-1)+e[f]);g===s&&(g=P(b)>=1E4?z.numberFormat(b,-1):z.numberFormat(b,-1,s,""));return g},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();n(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d=c.options,e=d.threshold,f;a.hasVisibleSeries=!0;a.isLog&&
121
- e<=0&&(e=null);if(a.isXAxis){if(d=c.xData,d.length)a.dataMin=E(p(a.dataMin,d[0]),Ma(d)),a.dataMax=t(p(a.dataMax,d[0]),Aa(d))}else{c.getExtremes();f=c.dataMax;c=c.dataMin;if(u(c)&&u(f))a.dataMin=E(p(a.dataMin,c),c),a.dataMax=t(p(a.dataMax,f),f);if(u(e))a.threshold=e;if(!d.softThreshold||a.isLog)a.softThreshold=!1}}})},translate:function(a,b,c,d,e,f){var g=this.linkedParent||this,h=1,i=0,k=d?g.oldTransA:g.transA,d=d?g.oldMin:g.min,j=g.minPixelPadding,e=(g.doPostTranslate||g.isLog&&e)&&g.lin2val;if(!k)k=
122
- g.transA;if(c)h*=-1,i=g.len;g.reversed&&(h*=-1,i-=h*(g.sector||g.len));b?(a=a*h+i,a-=j,a=a/k+d,e&&(a=g.lin2val(a))):(e&&(a=g.val2lin(a)),f==="between"&&(f=0.5),a=h*(a-d)*k+i+h*j+(sa(f)?k*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,h=this.top,i,k,j=c&&f.oldChartHeight||f.chartHeight,
123
- m=c&&f.oldChartWidth||f.chartWidth,l;i=this.transB;var o=function(a,b,c){if(a<b||a>c)d?a=E(t(b,a),c):l=!0;return a},e=p(e,this.translate(a,null,null,c)),a=c=x(e+i);i=k=x(j-e-i);isNaN(e)?l=!0:this.horiz?(i=h,k=j-this.bottom,a=c=o(a,g,g+this.width)):(a=g,c=m-this.right,i=k=o(i,h,h+this.height));return l&&!d?null:f.renderer.crispLine(["M",a,i,"L",c,k],b||1)},getLinearTickPositions:function(a,b,c){var d,e=na(R(b/a)*a),f=na(Ba(c/a)*a),g=[];if(b===c&&sa(b))return[b];for(b=e;b<=f;){g.push(b);b=na(b+a);if(b===
124
- d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e,f=this.pointRangePadding||0;e=this.min-f;var f=this.max+f,g=f-e;if(g&&g/c<this.len/3)if(this.isLog){f=b.length;for(e=1;e<f;e++)d=d.concat(this.getLogTickPositions(c,b[e-1],b[e],!0))}else if(this.isDatetimeAxis&&a.minorTickInterval==="auto")d=d.concat(this.getTimeTicks(this.normalizeTimeTickInterval(c),e,f,a.startOfWeek));else for(b=e+(b[0]-e)%c;b<=f;b+=c)d.push(b);d.length!==
125
- 0&&this.trimTicks(d,a.startOnTick,a.endOnTick);return d},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,h,i,k,j;if(this.isXAxis&&this.minRange===s&&!this.isLog)u(a.min)||u(a.max)?this.minRange=null:(n(this.series,function(a){i=a.xData;for(g=k=a.xIncrement?1:i.length-1;g>0;g--)if(h=i[g]-i[g-1],f===s||h<f)f=h}),this.minRange=E(f*5,this.dataMax-this.dataMin));if(c-b<this.minRange){j=this.minRange;d=(j-c+b)/2;d=[b-d,p(a.min,b-d)];
126
- if(e)d[2]=this.dataMin;b=Aa(d);c=[b+j,p(a.max,b+j)];if(e)c[2]=this.dataMax;c=Ma(c);c-b<j&&(d[0]=c-j,d[1]=p(a.min,c-j),b=Aa(d))}this.min=b;this.max=c},setAxisTranslation:function(a){var b=this,c=b.max-b.min,d=b.axisPointRange||0,e,f=0,g=0,h=b.linkedParent,i=!!b.categories,k=b.transA,j=b.isXAxis;if(j||i||d)if(h?(f=h.minPointOffset,g=h.pointRangePadding):(n(b.series,function(a){var b=a.closestPointRange;!a.noSharedTooltip&&u(b)&&(e=u(e)?E(e,b):b)}),n(b.series,function(a){var c=i?1:j?p(a.options.pointRange,
127
- e,0):b.axisPointRange||0,a=a.options.pointPlacement;d=t(d,c);b.single||(f=t(f,Ja(a)?0:c/2),g=t(g,a==="on"?0:c))})),h=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=h,b.pointRangePadding=g*=h,b.pointRange=E(d,c),j)b.closestPointRange=e;if(a)b.oldTransA=k;b.translationSlope=b.transA=k=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=k*f},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,
128
- g=b.isXAxis,h=b.isLinked,i=d.maxPadding,k=d.minPadding,j=d.tickInterval,m=d.tickPixelInterval,l=b.categories,o=b.threshold,q=b.softThreshold,r,D,B,w;!f&&!l&&!h&&this.getTickAmount();B=p(b.userMin,d.min);w=p(b.userMax,d.max);h?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=p(c.min,c.dataMin),b.max=p(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&ba(11,1)):(!q&&u(o)&&(b.dataMin>=o?(r=o,k=0):b.dataMax<=o&&(D=o,i=0)),b.min=p(B,r,b.dataMin),b.max=p(w,D,b.dataMax));if(e)!a&&
129
- E(b.min,p(b.dataMin,b.min))<=0&&ba(10,1),b.min=na(La(b.min),15),b.max=na(La(b.max),15);if(b.range&&u(b.max))b.userMin=b.min=B=t(b.min,b.minFromRange()),b.userMax=w=b.max,b.range=null;b.beforePadding&&b.beforePadding();b.adjustForMinRange();if(!l&&!b.axisPointRange&&!b.usePercentage&&!h&&u(b.min)&&u(b.max)&&(c=b.max-b.min))!u(B)&&k&&(b.min-=c*k),!u(w)&&i&&(b.max+=c*i);if(sa(d.floor))b.min=t(b.min,d.floor);if(sa(d.ceiling))b.max=E(b.max,d.ceiling);if(q&&u(b.dataMin))if(o=o||0,!u(B)&&b.min<o&&b.dataMin>=
130
- o)b.min=o;else if(!u(w)&&b.max>o&&b.dataMax<=o)b.max=o;b.tickInterval=b.min===b.max||b.min===void 0||b.max===void 0?1:h&&!j&&m===b.linkedParent.options.tickPixelInterval?j=b.linkedParent.tickInterval:p(j,this.tickAmount?(b.max-b.min)/t(this.tickAmount-1,1):void 0,l?1:(b.max-b.min)*m/t(b.len,m));g&&!a&&n(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval);
131
- if(b.pointRange&&!j)b.tickInterval=t(b.pointRange,b.tickInterval);a=p(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);if(!j&&b.tickInterval<a)b.tickInterval=a;if(!f&&!e&&!j)b.tickInterval=zb(b.tickInterval,null,yb(b.tickInterval),p(d.allowDecimals,!(b.tickInterval>0.5&&b.tickInterval<5&&b.max>1E3&&b.max<9999)),!!this.tickAmount);if(!this.tickAmount&&this.len)b.tickInterval=b.unsquish();this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions,d=a.tickPositioner,
132
- e=a.startOnTick,f=a.endOnTick,g;this.tickmarkOffset=this.categories&&a.tickmarkPlacement==="between"&&this.tickInterval===1?0.5:0;this.minorTickInterval=a.minorTickInterval==="auto"&&this.tickInterval?this.tickInterval/5:a.minorTickInterval;this.tickPositions=b=c&&c.slice();if(!b&&(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,
133
- this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()]),this.tickPositions=b,d&&(d=d.apply(this,[this.min,this.max]))))this.tickPositions=b=d;if(!this.isLinked)this.trimTicks(b,e,f),this.min===this.max&&u(this.min)&&!this.tickAmount&&(g=!0,this.min-=0.5,this.max+=0.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=
134
- e:this.max+f<e&&a.pop();a.length===0&&u(d)&&a.push((e+d)/2)},alignToOthers:function(){var a={},b,c=this.options;this.chart.options.chart.alignTicks!==!1&&c.alignTicks!==!1&&n(this.chart[this.coll],function(c){var e=c.options,e=[c.horiz?e.left:e.top,e.width,e.height,e.pane].join(",");c.series.length&&(a[e]?b=!0:a[e]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!u(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&
135
- (b=2);!b&&this.alignToOthers()&&(b=Ba(this.len/c)+1);if(b<4)this.finalTickAmt=b,b=5;this.tickAmount=b},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(na(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(u(d)){for(a=c=b.length;a--;)(d===3&&a%2===1||d<=2&&a>0&&a<c-1)&&b.splice(a,1);this.finalTickAmt=s}},setScale:function(){var a,
136
- b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;n(this.series,function(b){if(b.isDirtyData||b.isDirty||b.xAxis.isDirty)a=!0});if(b||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()){if(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,!this.isDirty)this.isDirty=
137
- b||this.min!==this.oldMin||this.max!==this.oldMax}else this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart,c=p(c,!0);n(f.series,function(a){delete a.kdTree});e=v(e,{min:a,max:b});I(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.eventArgs=e;c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options,f=E(c,p(e.min,c)),e=t(d,p(e.max,d));this.allowZoomOutside||(u(c)&&a<=f&&(a=f),u(d)&&b>=e&&(b=e));this.displayBtn=a!==s||b!==s;this.setExtremes(a,
138
- b,!1,s,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=p(b.width,a.plotWidth-c+(b.offsetRight||0)),f=p(b.height,a.plotHeight),g=p(b.top,a.plotTop),b=p(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=t(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=
139
- this.isLog;return{min:a?na(ta(this.min)):this.min,max:a?na(ta(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?ta(this.min):this.min,b=b?ta(this.max):this.max;a===null?a=b<0?b:c:c>a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(p(a,0)-this.side*90+720)%360;return a>15&&a<165?"right":a>195&&a<345?"left":"center"},unsquish:function(){var a=this.ticks,b=this.options.labels,
140
- c=this.horiz,d=this.tickInterval,e=d,f=this.len/(((this.categories?1:0)+this.max-this.min)/d),g,h=b.rotation,i=this.chart.renderer.fontMetrics(b.style.fontSize,a[0]&&a[0].label),k,j=Number.MAX_VALUE,m,l=function(a){a/=f||1;a=a>1?Ba(a):1;return a*d};c?(m=!b.staggerLines&&!b.step&&(u(h)?[h]:f<p(b.autoRotationLimit,80)&&b.autoRotation))&&n(m,function(a){var b;if(a===h||a&&a>=-90&&a<=90)k=l(P(i.h/ga(oa*a))),b=k+P(a/360),b<j&&(j=b,g=a,e=k)}):b.step||(e=l(i.h));this.autoRotation=m;this.labelRotation=p(g,
141
- h);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,h=this.categories?c.length:c.length-1,g=this.slotWidth=f&&(e.step||0)<2&&!e.rotation&&(this.staggerLines||1)*a.plotWidth/h||!f&&(g[3]&&g[3]-a.spacing[3]||a.chartWidth*0.33),i=t(1,x(g-2*(e.padding||5))),k={},h=b.fontMetrics(e.style.fontSize,d[0]&&d[0].label),j=e.style.textOverflow,m,l=0,o,q;if(!Ja(e.rotation))k.rotation=e.rotation||0;if(this.autoRotation)n(c,
142
- function(a){if((a=d[a])&&a.labelLength>l)l=a.labelLength}),l>i&&l>h.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(g&&(m={width:i+"px"},!j)){m.textOverflow="clip";for(o=c.length;!f&&o--;)if(q=c[o],i=d[q].label)if(i.styles.textOverflow==="ellipsis"&&i.css({textOverflow:"clip"}),i.getBBox().height>this.len/c.length-(h.h-h.f)||d[q].labelLength>g)i.specCss={textOverflow:"ellipsis"}}if(k.rotation&&(m={width:(l>a.chartHeight*0.5?a.chartHeight*0.33:a.chartHeight)+"px"},!j))m.textOverflow="ellipsis";
143
- this.labelAlign=k.align=e.align||this.autoLabelAlign(this.labelRotation);n(c,function(a){var b=(a=d[a])&&a.label;if(b)b.attr(k),m&&b.css(C(m,b.specCss)),delete b.specCss,a.rotation=k.rotation});this.tickRotCorr=b.rotCorr(h.b,this.labelRotation||0,this.side!==0)},hasData:function(){return this.hasVisibleSeries||u(this.min)&&u(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,h=a.side,i=b.inverted?[1,0,3,2][h]:h,
144
- k,j,m=0,l,o=0,q=d.title,r=d.labels,D=0,B=a.opposite,w=b.axisOffset,b=b.clipOffset,y=[-1,1,1,-1][h],ma,ha=a.axisParent;k=a.hasData();a.showAxis=j=k||p(d.showEmpty,!0);a.staggerLines=a.horiz&&r.staggerLines;if(!a.axisGroup)a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(ha),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(ha),a.labelGroup=c.g("axis-labels").attr({zIndex:r.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels").add(ha);if(k||a.isLinked){if(n(e,function(b){f[b]?
145
- f[b].addLabel():f[b]=new $a(a,b)}),a.renderUnsquish(),r.reserveSpace!==!1&&(h===0||h===2||{1:"left",3:"right"}[h]===a.labelAlign||a.labelAlign==="center")&&n(e,function(a){D=t(f[a].getLabelSize(),D)}),a.staggerLines)D*=a.staggerLines,a.labelOffset=D*(a.opposite?-1:1)}else for(ma in f)f[ma].destroy(),delete f[ma];if(q&&q.text&&q.enabled!==!1){if(!a.axisTitle)a.axisTitle=c.text(q.text,0,0,q.useHTML).attr({zIndex:7,rotation:q.rotation||0,align:q.textAlign||{low:B?"right":"left",middle:"center",high:B?
146
- "left":"right"}[q.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(q.style).add(a.axisGroup),a.axisTitle.isNew=!0;if(j)m=a.axisTitle.getBBox()[g?"height":"width"],l=q.offset,o=u(l)?0:p(q.margin,g?5:10);a.axisTitle[j?"show":"hide"](!0)}a.offset=y*p(d.offset,w[h]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=h===2?a.tickRotCorr.y:0;g=Math.abs(D)+o+(D&&y*(g?p(r.y,a.tickRotCorr.y+8):r.x)-c);a.axisTitleMargin=p(l,g);w[h]=t(w[h],a.axisTitleMargin+m+y*a.offset,g);d=d.offset?0:R(d.lineWidth/
147
- 2)*2;b[i]=t(b[i],d)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;c&&(a*=-1);return b.renderer.crispLine(["M",e?this.left:f,e?d:this.top,"L",e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,i=e.x||0,k=e.y||0,j=H(e.style.fontSize||12),
148
- 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+(this.side===2?j:0);return{x:a?d+i:b+(g?this.width:0)+h+i,y:a?b+k-(g?this.height:0)+h:d+k}},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,g=a.tickPositions,h=a.axisTitle,i=a.ticks,k=a.minorTicks,j=a.alternateBands,m=d.stackLabels,l=d.alternateGridColor,o=a.tickmarkOffset,q=d.lineWidth,r,D=b.hasRendered&&u(a.oldMin)&&!isNaN(a.oldMin),p=a.showAxis,
149
- w=c.globalAnimation,y,t;a.labelEdge.length=0;a.overlap=!1;n([i,k,j],function(a){for(var b in a)a[b].isActive=!1});if(a.hasData()||f){a.minorTickInterval&&!a.categories&&n(a.getMinorTickPositions(),function(b){k[b]||(k[b]=new $a(a,b,"minor"));D&&k[b].isNew&&k[b].render(null,!0);k[b].render(null,!1,1)});if(g.length&&(n(g,function(b,c){if(!f||b>=a.min&&b<=a.max)i[b]||(i[b]=new $a(a,b)),D&&i[b].isNew&&i[b].render(c,!0,0.1),i[b].render(c)}),o&&(a.min===0||a.single)))i[-1]||(i[-1]=new $a(a,-1,null,!0)),
150
- i[-1].render(-1);l&&n(g,function(c,d){t=g[d+1]!==s?g[d+1]+o:a.max-o;if(d%2===0&&c<a.max&&t<=a.max+(b.polar?-o:o))j[c]||(j[c]=new z.PlotLineOrBand(a)),y=c+o,j[c].options={from:e?ta(y):y,to:e?ta(t):t,color:l},j[c].render(),j[c].isActive=!0});if(!a._addedPlotLB)n((d.plotLines||[]).concat(d.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0}n([i,k,j],function(a){var c,d,e=[],f=w?w.duration||500:0;for(c in a)if(!a[c].isActive)a[c].render(c,!1,0),a[c].isActive=!1,e.push(c);Ya(function(){for(d=
151
- e.length;d--;)a[e[d]]&&!a[e[d]].isActive&&(a[e[d]].destroy(),delete a[e[d]])},a===j||!b.hasRendered||!f?0:f)});if(q)r=a.getLinePath(q),a.axisLine?a.axisLine.animate({d:r}):a.axisLine=c.path(r).attr({stroke:d.lineColor,"stroke-width":q,zIndex:7}).add(a.axisGroup),a.axisLine[p?"show":"hide"](!0);if(h&&p)h[h.isNew?"attr":"animate"](a.getTitlePosition()),h.isNew=!1;m&&m.enabled&&a.renderStackTotals();a.isDirty=!1},redraw:function(){this.visible&&(this.render(),n(this.plotLinesAndBands,function(a){a.render()}));
152
- n(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b=this,c=b.stacks,d,e=b.plotLinesAndBands;a||Q(b);for(d in c)Na(c[d]),c[d]=null;n([b.ticks,b.minorTicks,b.alternateBands],function(a){Na(a)});for(a=e.length;a--;)e[a].destroy();n("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,f;if(!this.crosshair||(u(b)||!p(d.snap,!0))===
153
- !1||b&&b.series&&b.series[this.coll]!==this)this.hideCrosshair();else if(p(d.snap,!0)?u(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:p(b.stackY,b.y))||null:this.getPlotLinePath(null,null,null,null,c)||null,c===null)this.hideCrosshair();else if(e=this.categories&&!this.isRadial,f=p(d.width,e?this.transA:1),this.cross)this.cross.attr({d:c,visibility:"visible","stroke-width":f});else{e={"stroke-width":f,
154
- stroke:d.color||(e?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:p(d.zIndex,2)};if(d.dashStyle)e.dashstyle=d.dashStyle;this.cross=this.chart.renderer.path(c).attr(e).add()}},hideCrosshair:function(){this.cross&&this.cross.hide()}};v(L.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b,null,null,!0),d=this.getPlotLinePath(a,null,null,!0);d&&c?(d.flat=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")},
155
- addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(a,b){var c=(new z.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();n([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&
156
- ua(b,b[e])})}});L.prototype.getTimeTicks=function(a,b,c,d){var e=[],f={},g=N.global.useUTC,h,i=new fa(b-cb(b)),k=a.unitRange,j=a.count;if(u(b)){i[Pb](k>=G.second?0:j*R(i.getMilliseconds()/j));if(k>=G.second)i[Qb](k>=G.minute?0:j*R(i.getSeconds()/j));if(k>=G.minute)i[Rb](k>=G.hour?0:j*R(i[Ab]()/j));if(k>=G.hour)i[Sb](k>=G.day?0:j*R(i[Bb]()/j));if(k>=G.day)i[Db](k>=G.month?1:j*R(i[db]()/j));k>=G.month&&(i[Eb](k>=G.year?0:j*R(i[eb]()/j)),h=i[fb]());k>=G.year&&(h-=h%j,i[Fb](h));if(k===G.week)i[Db](i[db]()-
157
- i[Cb]()+p(d,1));b=1;if(xb||nb)i=i.getTime(),i=new fa(i+cb(i));h=i[fb]();for(var d=i.getTime(),m=i[eb](),l=i[db](),o=(G.day+(g?cb(i):i.getTimezoneOffset()*6E4))%G.day;d<c;)e.push(d),k===G.year?d=qb(h+b*j,0):k===G.month?d=qb(h,m+b*j):!g&&(k===G.day||k===G.week)?d=qb(h,m,l+b*j*(k===G.day?1:7)):d+=k*j,b++;e.push(d);n(bb(e,function(a){return k<=G.hour&&a%G.day===o}),function(a){f[a]="day"})}e.info=v(a,{higherRanks:f,totalRange:k*j});return e};L.prototype.normalizeTimeTickInterval=function(a,b){var c=b||
158
- [["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=G[d[0]],f=d[1],g;for(g=0;g<c.length;g++)if(d=c[g],e=G[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+G[c[g+1][0]])/2)break;e===G.year&&a<5*e&&(f=[1,2,5]);c=zb(a/e,f,d[0]==="year"?t(yb(a/e),1):1);return{unitRange:e,count:c,unitName:d[0]}};L.prototype.getLogTickPositions=function(a,b,c,d){var e=
159
- this.options,f=this.len,g=[];if(!d)this._minorAutoInterval=null;if(a>=0.5)a=x(a),g=this.getLinearTickPositions(a,b,c);else if(a>=0.08)for(var f=R(b),h,i,k,j,m,e=a>0.3?[1,2,4]:a>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!m;f++){i=e.length;for(h=0;h<i&&!m;h++)k=La(ta(f)*e[h]),k>b&&(!d||j<=c)&&j!==s&&g.push(j),j>c&&(m=!0),j=k}else if(b=ta(b),c=ta(c),a=e[d?"minorTickInterval":"tickInterval"],a=p(a==="auto"?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:
160
- f)||1)),a=zb(a,null,yb(a)),g=wa(this.getLinearTickPositions(a,b,c),La),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g};var Lb=z.Tooltip=function(){this.init.apply(this,arguments)};Lb.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=H(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,
161
- r:b.borderRadius,zIndex:8}).css(d).css({padding:0}).add().attr({y:-9999});pa||this.label.shadow(b.shadow);this.shared=b.shared},destroy:function(){if(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=e.options.animation!==!1&&!e.isHidden&&(P(a-f.x)>1||P(b-f.y)>1),h=e.followPointer||e.len>1;v(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?s:g?(2*f.anchorX+c)/3:c,anchorY:h?s:g?(f.anchorY+d)/2:d});e.label.attr(f);
162
- if(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);a=p(a,this.options.hideDelay,500);if(!this.isHidden)this.hideTimer=Ya(function(){b.label[a?"fadeOut":"hide"]();b.isHidden=!0},a)},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=d.plotLeft,h=0,i=0,k,j,a=qa(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===s&&(b=d.pointer.normalize(b)),c=[b.chartX-d.plotLeft,b.chartY-
163
- f]);c||(n(a,function(a){k=a.series.yAxis;j=a.series.xAxis;h+=a.plotX+(!e&&j?j.left-g:0);i+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&k?k.top-f:0)}),h/=a.length,i/=a.length,c=[e?d.plotWidth-i:h,this.shared&&!e&&a.length>1&&b?b.chartY-f:e?d.plotHeight-h:i]);return wa(c,x)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,f={},g=c.h||0,h,i=["y",d.chartHeight,b,c.plotY+d.plotTop,d.plotTop,d.plotTop+d.plotHeight],k=["x",d.chartWidth,a,c.plotX+d.plotLeft,d.plotLeft,d.plotLeft+d.plotWidth],
164
- j=p(c.ttBelow,d.inverted&&!c.negative||!d.inverted&&c.negative),m=function(a,b,c,d,h,i){var k=c<d-e,l=d+e+c<b,o=d-e-c;d+=e;if(j&&l)f[a]=d;else if(!j&&k)f[a]=o;else if(k)f[a]=E(i-c,o-g<0?o:o-g);else if(l)f[a]=t(h,d+g+c>b?d:d+g);else return!1},l=function(a,b,c,d){var g;d<e||d>b-e?g=!1:f[a]=d<c/2?1:d>b-c/2?b-c-2:d-c/2;return g},o=function(a){var b=i;i=k;k=b;h=a},q=function(){m.apply(0,i)!==!1?l.apply(0,k)===!1&&!h&&(o(!0),q()):h?f.x=f.y=0:(o(!0),q())};(d.inverted||this.len>1)&&o();q();return f},defaultFormatter:function(a){var b=
165
- this.points||qa(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,h,i={},k,j=[];k=e.formatter||this.defaultFormatter;var i=c.hoverPoints,m,l=this.shared;clearTimeout(this.hideTimer);this.followPointer=qa(a)[0].series.tooltipOptions.followPointer;h=this.getAnchor(a,b);f=h[0];g=h[1];l&&(!a.series||!a.series.noSharedTooltip)?(c.hoverPoints=
166
- a,i&&n(i,function(a){a.setState()}),n(a,function(a){a.setState("hover");j.push(a.getLabelConfig())}),i={x:a[0].category,y:a[0].y},i.points=j,this.len=j.length,a=a[0]):i=a.getLabelConfig();k=k.call(i,this);i=a.series;this.distance=p(i.tooltipOptions.distance,16);k===!1?this.hide():(this.isHidden&&(Wa(d),d.attr("opacity",1).show()),d.attr({text:k}),m=e.borderColor||a.color||i.color||"#606060",d.attr({stroke:m}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:h[2]||0}),this.isHidden=
167
- !1);I(c,"tooltipRefresh",{text:k,x:f+c.plotLeft,y:g+c.plotTop,borderColor:m})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(x(c.x),x(c.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d,b=b.dateTimeLabelFormats,e=c&&c.closestPointRange,f,g={millisecond:15,second:12,minute:9,hour:6,day:3},h,i="millisecond";if(e){h=ja("%m-%d %H:%M:%S.%L",a.x);for(f in G){if(e===G.week&&+ja("%w",
168
- a.x)===c.options.startOfWeek&&h.substr(6)==="00:00:00.000"){f="week";break}if(G[f]>e){f=i;break}if(g[f]&&h.substr(g[f])!=="01-01 00:00:00.000".substr(g[f]))break;f!=="week"&&(i=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,h=g&&g.options.type==="datetime"&&sa(a.key),c=e[c+"Format"];h&&!f&&(f=this.getXDateFormat(a,e,g));h&&f&&(c=c.replace("{point.key}","{point.key:"+f+"}"));
169
- return Fa(c,{point:a,series:d})},bodyFormatter:function(a){return wa(a,function(a){var c=a.series.tooltipOptions;return(c.pointFormatter||a.point.tooltipFormatter).call(a.point,c.pointFormat)})}};var xa;ab=F.documentElement.ontouchstart!==s;var Xa=z.Pointer=function(a,b){this.init(a,b)};Xa.prototype={init:function(a,b){var c=b.chart,d=c.events,e=pa?"":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||
170
- f&&c;this.hasZoom=f||e;this.runChartClick=d&&!!d.click;this.pinchDown=[];this.lastValidTouch={};if(z.Tooltip&&b.tooltip.enabled)a.tooltip=new Lb(a,b.tooltip),this.followTouchMove=p(b.tooltip.followTouchMove,!0);this.setDOMEvents()},normalize:function(a,b){var c,d,a=a||window.event,a=Xb(a);if(!a.target)a.target=a.srcElement;d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;if(!b)this.chartPosition=b=Wb(this.chart.container);d.pageX===s?(c=t(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-
171
- b.left,d=d.pageY-b.top);return v(a,{chartX:x(c),chartY:x(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};n(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,h,i=Number.MAX_VALUE,k,j,m,l=[],o,q;if(!e&&!g)for(h=0;h<c.length;h++)if(c[h].directTouch||!c[h].options.stickyTracking)c=[];g&&(e?g.noSharedTooltip:
172
- g.directTouch)&&f?o=f:(n(c,function(b){k=b.noSharedTooltip&&e;j=!e&&b.directTouch;b.visible&&!k&&!j&&p(b.options.enableMouseTracking,!0)&&(q=b.searchPoint(a,!k&&b.kdDimensions===1))&&l.push(q)}),n(l,function(a){m=!e&&a.series.kdDimensions===1?a.dist:a.distX;a&&typeof m==="number"&&m<i&&(i=m,o=a)}));if(o&&(o!==this.prevKDPoint||d&&d.isHidden)){if(e&&!o.series.noSharedTooltip){for(h=l.length;h--;)(l[h].clientX!==o.clientX||l[h].series.noSharedTooltip)&&l.splice(h,1);l.length&&d&&d.refresh(l,a);n(l,
173
- function(b){b.onMouseOver(a,b!==(g&&g.directTouch&&f||o))})}else if(d&&d.refresh(o,a),!g||!g.directTouch)o.onMouseOver(a);this.prevKDPoint=o}else c=g&&g.tooltipOptions.followPointer,d&&c&&!d.isHidden&&(c=d.getAnchor([{}],a),d.updatePosition({plotX:c[0],plotY:c[1]}));if(!this._onDocumentMouseMove)this._onDocumentMouseMove=function(a){if(aa[xa])aa[xa].pointer.onDocumentMouseMove(a)},A(F,"mousemove",this._onDocumentMouseMove);n(b.axes,function(b){b.drawCrosshair(a,p(o,f))})},reset:function(a,b){var c=
174
- this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.hoverPoints,g=c.tooltip,h=g&&g.shared?f:e;(a=a&&g&&h)&&n(qa(h),function(b){b.plotX===void 0&&(a=!1)});if(a)g.refresh(h),e&&(e.setState(e.state,!0),n(c.axes,function(a){p(a.options.crosshair&&a.options.crosshair.snap,!0)?a.drawCrosshair(null,e):a.hideCrosshair()}));else{if(e)e.onMouseOut();f&&n(f,function(a){a.setState()});if(d)d.onMouseOut();g&&g.hide(b);if(this._onDocumentMouseMove)Q(F,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=
175
- null;n(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,d;n(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=
176
- this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,e=a.chartY,f=this.zoomHor,g=this.zoomVert,h=b.plotLeft,i=b.plotTop,k=b.plotWidth,j=b.plotHeight,m,l=this.selectionMarker,o=this.mouseDownX,q=this.mouseDownY,r=c.panKey&&a[c.panKey+"Key"];if(!l||!l.touch)if(d<h?d=h:d>h+k&&(d=h+k),e<i?e=i:e>i+j&&(e=i+j),this.hasDragged=Math.sqrt(Math.pow(o-d,2)+Math.pow(q-e,2)),this.hasDragged>10){m=b.isInsidePlot(o-h,q-i);if(b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&m&&!r&&
177
- !l)this.selectionMarker=l=b.renderer.rect(h,i,f?1:k,g?1:j,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();l&&f&&(d-=o,l.attr({width:P(d),x:(d>0?0:d)+o}));l&&g&&(d=e-q,l.attr({height:P(d),y:(d>0?0:d)+q}));m&&!l&&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,h=f.attr?f.attr("y"):f.y,i=f.attr?f.attr("width"):
178
- f.width,k=f.attr?f.attr("height"):f.height,j;if(this.hasDragged||d)n(c.axes,function(c){if(c.zoomEnabled&&u(c.min)&&(d||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var f=c.horiz,o=a.type==="touchend"?c.minPixelPadding:0,q=c.toValue((f?g:h)+o),f=c.toValue((f?g+i:h+k)-o);e[c.coll].push({axis:c,min:E(q,f),max:t(q,f)});j=!0}}),j&&I(c,"selection",e,function(a){c.zoom(v(a,d?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();d&&this.scaleGroups()}if(c)J(c.container,{cursor:c._cursor}),
179
- c.cancelClick=this.hasDragged>10,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){aa[xa]&&aa[xa].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=
180
- aa[xa];if(a)a.pointer.reset(),a.pointer.chartPosition=null},onContainerMouseMove:function(a){var b=this.chart;xa=b.index;a=this.normalize(a);a.returnValue=!1;b.mouseIsDown==="mousedown"&&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=T(a,"class")){if(c.indexOf(b)!==-1)return!0;if(c.indexOf("highcharts-container")!==-1)return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=
181
- this.chart.hoverSeries,a=a.relatedTarget||a.toElement;if(b&&!b.options.stickyTracking&&!this.inClass(a,"highcharts-tooltip")&&!this.inClass(a,"highcharts-series-"+b.index))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")?(I(c.series,"click",v(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(v(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-
182
- d,a.chartY-e)&&I(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)};A(b,"mouseleave",a.onContainerMouseLeave);hb===1&&A(F,"mouseup",a.onDocumentMouseUp);if(ab)b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},hb===1&&A(F,"touchend",a.onDocumentTouchEnd)},destroy:function(){var a;
183
- Q(this.chart.container,"mouseleave",this.onContainerMouseLeave);hb||(Q(F,"mouseup",this.onDocumentMouseUp),Q(F,"touchend",this.onDocumentTouchEnd));clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}};v(z.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f);(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var i=this.chart,k=a?"x":
184
- "y",j=a?"X":"Y",m="chart"+j,l=a?"width":"height",o=i["plot"+(a?"Left":"Top")],q,r,D=h||1,p=i.inverted,n=i.bounds[a?"h":"v"],y=b.length===1,t=b[0][m],u=c[0][m],s=!y&&b[1][m],x=!y&&c[1][m],v,c=function(){!y&&P(t-s)>20&&(D=h||P(u-x)/P(t-s));r=(o-u)/D+t;q=i["plot"+(a?"Width":"Height")]/D};c();b=r;b<n.min?(b=n.min,v=!0):b+q>n.max&&(b=n.max-q,v=!0);v?(u-=0.8*(u-g[k][0]),y||(x-=0.8*(x-g[k][1])),c()):g[k]=[u,x];p||(f[k]=r-o,f[l]=q);f=p?1/D:D;e[l]=q;e[k]=b;d[p?a?"scaleY":"scaleX":"scale"+j]=D;d["translate"+
185
- j]=f*o+(u-f*t)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches,f=e.length,g=b.lastValidTouch,h=b.hasZoom,i=b.selectionMarker,k={},j=f===1&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),m={};if(f>1)b.initiated=!0;h&&b.initiated&&!j&&a.preventDefault();wa(e,function(a){return b.normalize(a)});if(a.type==="touchstart")n(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],n(c.axes,
186
- function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(p(a.options.min,a.dataMin)),f=a.toPixels(p(a.options.max,a.dataMax)),g=E(e,f),e=t(e,f);b.min=E(a.pos,g-d);b.max=t(a.pos+a.len,e+d)}}),b.res=!0;else if(d.length){if(!i)b.selectionMarker=i=v({destroy:la,touch:!0},c.plotBox);b.pinchTranslate(d,e,k,i,m,g);b.hasPinched=h;b.scaleGroups(k,m);if(!h&&b.followTouchMove&&f===1)this.runPointActions(b.normalize(a));else if(b.res)b.res=!1,this.reset(!1,0)}},touch:function(a,
187
- b){var c=this.chart;xa=c.index;a.touches.length===1?(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()):a.touches.length===2&&this.pinch(a)},onContainerTouchStart:function(a){this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(a){aa[xa]&&aa[xa].pointer.drop(a)}});if(U.PointerEvent||U.MSPointerEvent){var Ca={},Mb=!!U.PointerEvent,cc=function(){var a,b=[];b.item=
188
- function(a){return this[a]};for(a in Ca)Ca.hasOwnProperty(a)&&b.push({pageX:Ca[a].pageX,pageY:Ca[a].pageY,target:Ca[a].target});return b},Nb=function(a,b,c,d){a=a.originalEvent||a;if((a.pointerType==="touch"||a.pointerType===a.MSPOINTER_TYPE_TOUCH)&&aa[xa])d(a),d=aa[xa].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:la,touches:cc()})};v(Xa.prototype,{onContainerPointerDown:function(a){Nb(a,"onContainerTouchStart","touchstart",function(a){Ca[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},
189
- onContainerPointerMove:function(a){Nb(a,"onContainerTouchMove","touchmove",function(a){Ca[a.pointerId]={pageX:a.pageX,pageY:a.pageY};if(!Ca[a.pointerId].target)Ca[a.pointerId].target=a.currentTarget})},onDocumentPointerUp:function(a){Nb(a,"onDocumentTouchEnd","touchend",function(a){delete Ca[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,Mb?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,Mb?"pointermove":"MSPointerMove",this.onContainerPointerMove);
190
- a(F,Mb?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});M(Xa.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&J(b.container,{"-ms-touch-action":"none","touch-action":"none"})});M(Xa.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(A)});M(Xa.prototype,"destroy",function(a){this.batchMSEvents(Q);a.call(this)})}var ub=z.Legend=function(a,b){this.init(a,b)};ub.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=b.itemMarginTop||
191
- 0;this.options=b;if(b.enabled)c.itemStyle=d,c.itemHiddenStyle=C(d,b.itemHiddenStyle),c.itemMarginTop=e,c.padding=d=p(b.padding,8),c.initialItemX=d,c.initialItemY=d-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.symbolWidth=p(b.symbolWidth,16),c.pages=[],c.render(),A(c.chart,"endResize",function(){c.positionCheckboxes()})},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,h=b?a.legendColor||a.color||"#CCC":
192
- g,g=a.options&&a.options.marker,i={fill:h},k;d&&d.css({fill:c,color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(k in i.stroke=h,g=a.convertAttribs(g),g)d=g[k],d!==s&&(i[k]=d);f.attr(i)}},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);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;n(["legendItem","legendLine","legendSymbol","legendGroup"],
193
- function(b){a[b]&&(a[b]=a[b].destroy())});b&&Sa(a.checkbox)},destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();if(a)this.group=a.destroy()},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight;if(b)c=b.translateY,n(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,J(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,
194
- c=0;if(b.text){if(!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?Fa(b.labelFormat,a):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,e=d.layout==="horizontal",
195
- f=this.symbolWidth,g=d.symbolPadding,h=this.itemStyle,i=this.itemHiddenStyle,k=this.padding,j=e?p(d.itemDistance,20):0,m=!d.rtl,l=d.width,o=d.itemMarginBottom||0,q=this.itemMarginTop,r=this.initialItemX,n=a.legendItem,B=a.series&&a.series.drawLegendSymbol?a.series:a,w=B.options,w=this.createCheckboxForItem&&w&&w.showCheckbox,y=d.useHTML;if(!n){a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup);a.legendItem=n=c.text("",m?f+g:-g,this.baseline||0,y).css(C(a.visible?h:i)).attr({align:m?
196
- "left":"right",zIndex:2}).add(a.legendGroup);if(!this.baseline)this.fontMetrics=c.fontMetrics(h.fontSize,n),this.baseline=this.fontMetrics.f+3+q,n.attr("y",this.baseline);B.drawLegendSymbol(this,a);this.setItemEvents&&this.setItemEvents(a,n,y,h,i);this.colorizeItem(a,a.visible);w&&this.createCheckboxForItem(a)}this.setText(a);c=n.getBBox();f=a.checkboxOffset=d.itemWidth||a.legendItemWidth||f+g+c.width+j+(w?20:0);this.itemHeight=g=x(a.legendItemHeight||c.height);if(e&&this.itemX-r+f>(l||b.chartWidth-
197
- 2*k-r-d.x))this.itemX=r,this.itemY+=q+this.lastLineHeight+o,this.lastLineHeight=0;this.maxItemWidth=t(this.maxItemWidth,f);this.lastItemY=q+this.itemY+o;this.lastLineHeight=t(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=q+g+o,this.lastLineHeight=g);this.offsetWidth=l||t((e?this.itemX-r-j:f)+k,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b.options;if(p(c.showInLegend,!u(c.linkedTo)?s:!1,!0))a=a.concat(b.legendItems||
198
- (c.legendType==="point"?b.data:b))});return a},adjustMargins:function(a,b){var c=this.chart,d=this.options,e=d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0);this.display&&!d.floating&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!u(a[g])&&(c[tb[g]]=t(c[tb[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+p(d.margin,12)+b[g]))})},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,i=a.box,k=
199
- a.options,j=a.padding,m=k.borderWidth,l=k.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;if(!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();ob(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});k.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;a.lastLineHeight=0;n(e,function(b){a.renderItem(b)});
200
- g=(k.width||a.offsetWidth)+j;h=a.lastItemY+a.lastLineHeight+a.titleHeight;h=a.handleOverflow(h);h+=j;if(m||l){if(i){if(g>0&&h>0)i[i.isNew?"attr":"animate"](i.crisp({width:g,height:h})),i.isNew=!1}else a.box=i=c.rect(0,0,g,h,k.borderRadius,m||0).attr({stroke:k.borderColor,"stroke-width":m||0,fill:l||"none"}).add(d).shadow(k.shadow),i.isNew=!0;i[f?"show":"hide"]()}a.legendWidth=g;a.legendHeight=h;n(e,function(b){a.positionItem(b)});f&&d.align(v({width:g,height:h},k),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},
201
- handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+(e.verticalAlign==="top"?-f:f)-this.padding,g=e.maxHeight,h,i=this.clipRect,k=e.navigation,j=p(k.animation,!0),m=k.arrowSize||12,l=this.nav,o=this.pages,q=this.padding,r,D=this.allItems,B=function(a){i.attr({height:a});if(b.contentGroup.div)b.contentGroup.div.style.clip="rect("+q+"px,9999px,"+(q+a)+"px,0)"};e.layout==="horizontal"&&(f/=2);g&&(f=E(f,g));o.length=0;if(a>f){this.clipHeight=h=t(f-
202
- 20-this.titleHeight-q,0);this.currentPage=p(this.currentPage,1);this.fullHeight=a;n(D,function(a,b){var c=a._legendItemPos[1],d=x(a.legendItem.getBBox().height),e=o.length;if(!e||c-o[e-1]>h&&(r||c)!==o[e-1])o.push(r||c),e++;b===D.length-1&&c+d-o[e-1]>h&&o.push(c);c!==r&&(r=c)});if(!i)i=b.clipRect=d.clipRect(0,q,9999,0),b.contentGroup.clip(i);B(h);if(!l)this.nav=l=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,m,m).on("click",function(){b.scroll(-1,j)}).add(l),this.pager=d.text("",
203
- 15,10).css(k.style).add(l),this.down=d.symbol("triangle-down",0,0,m,m).on("click",function(){b.scroll(1,j)}).add(l);b.scroll(0);a=f}else if(l)B(c.chartHeight),l.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0;return a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,i=this.pager,k=this.padding;e>d&&(e=d);if(e>0)b!==s&&Za(b,this.chart),this.nav.attr({translateX:k,translateY:f+this.padding+
204
- 7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:e===1?g:h}).css({cursor:e===1?"default":"pointer"}),i.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c)}};X=z.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-
205
- 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-x(a.fontMetrics.b*0.3),g;if(b.lineWidth){g={"stroke-width":b.lineWidth};if(b.dashStyle)g.dashstyle=b.dashStyle;this.legendLine=e.path(["M",0,a,"L",d,a]).attr(g).add(f)}if(c&&c.enabled!==!1)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(Ga)||
206
- Ua)&&M(ub.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)});var Ia=z.Chart=function(){this.init.apply(this,arguments)};Ia.prototype={callbacks:[],init:function(a,b){var c,d=a.series;a.series=null;c=C(N,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=[];
207
- this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=aa.length;aa.push(f);hb++;d.reflow!==!1&&A(f,"load",function(){f.initReflow()});if(e)for(g in e)A(f,g,e[g]);f.xAxis=[];f.yAxis=[];f.animation=pa?!1:p(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=K[a.type||b.type||b.defaultSeriesType])||ba(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 d>=0&&d<=this.plotWidth&&
208
- a>=0&&a<=this.plotHeight},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,i=this.hasCartesianSeries,k=this.isDirtyBox,j=c.length,m=j,l=this.renderer,o=l.isHidden(),q=[];Za(a,this);o&&this.cloneRenderTo();for(this.layOutTitles();m--;)if(a=c[m],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(m=j;m--;)if(a=c[m],a.options.stacking)a.isDirty=!0;n(c,function(a){a.isDirty&&a.options.legendType==="point"&&(a.updateTotals&&a.updateTotals(),f=
209
- !0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend=!1;g&&this.getStacks();if(i&&!this.isResizing)this.maxTicks=null,n(b,function(a){a.setScale()});this.getMargins();i&&(n(b,function(a){a.isDirty&&(k=!0)}),n(b,function(a){var b=a.min+","+a.max;if(a.extKey!==b)a.extKey=b,q.push(function(){I(a,"afterSetExtremes",v(a.eventArgs,a.getExtremes()));delete a.eventArgs});(k||g)&&a.redraw()}));k&&this.drawChartBox();n(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset(!0);
210
- l.draw();I(this,"redraw");o&&this.cloneRenderTo(!0);n(q,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++){e=c[d].points||[];for(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=qa(b.xAxis||{}),b=b.yAxis=qa(b.yAxis||{});n(c,function(a,b){a.index=b;a.isX=!0});n(b,function(a,
211
- b){a.index=b});c=c.concat(b);n(c,function(b){new L(a,b)})},getSelectedPoints:function(){var a=[];n(this.series,function(b){a=a.concat(bb(b.points||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return bb(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var g;var d=this,e=d.options,f;f=e.title=C(e.title,a);g=e.subtitle=C(e.subtitle,b),e=g;n([["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&&
212
- !c&&(d[b]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add())});d.layOutTitles(c)},layOutTitles:function(a){var b=0,c=this.title,d=this.subtitle,e=this.options,f=e.title,e=e.subtitle,g=this.renderer,h=this.spacingBox.width-44;if(c&&(c.css({width:(f.width||h)+"px"}).align(v({y:g.fontMetrics(f.style.fontSize,c).b-3},f),!1,"spacingBox"),!f.floating&&!f.verticalAlign))b=c.getBBox().height;d&&(d.css({width:(e.width||h)+"px"}).align(v({y:b+
213
- (f.margin-13)+g.fontMetrics(e.style.fontSize,c).b},e),!1,"spacingBox"),!e.floating&&!e.verticalAlign&&(b=Ba(b+d.getBBox().height)));c=this.titleOffset!==b;this.titleOffset=b;if(!this.isDirtyBox&&c)this.isDirtyBox=c,this.hasRendered&&p(a,!0)&&this.isDirtyBox&&this.redraw()},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;if(!u(b))this.containerWidth=ib(c,"width");if(!u(a))this.containerHeight=ib(c,"height");this.chartWidth=t(0,b||this.containerWidth||
214
- 600);this.chartHeight=t(0,p(a,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Sa(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),J(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),F.body.appendChild(b),c&&b.appendChild(c))},
215
- getContainer:function(){var a,b=this.options,c=b.chart,d,e,f;this.renderTo=a=c.renderTo;f="highcharts-"+Ib++;if(Ja(a))this.renderTo=a=F.getElementById(a);a||ba(13,!0);d=H(T(a,"data-highcharts-chart"));!isNaN(d)&&aa[d]&&aa[d].hasRendered&&aa[d].destroy();T(a,"data-highcharts-chart",this.index);a.innerHTML="";!c.skipClone&&!a.offsetWidth&&this.cloneRenderTo();this.getChartSize();d=this.chartWidth;e=this.chartHeight;this.container=a=$(Ta,{className:"highcharts-container"+(c.className?" "+c.className:
216
- ""),id:f},v({position:"relative",overflow:"hidden",width:d+"px",height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},c.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=new (z[c.renderer]||Va)(a,d,e,c.style,c.forExport,b.exporting&&b.exporting.allowHTML);pa&&this.renderer.create(this,a,d,e);this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();if(d&&
217
- !u(c[0]))this.plotTop=t(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&&n(a.axes,function(a){a.visible&&a.getOffset()});n(tb,function(d,e){u(c[e])||(a[d]+=b[e])});a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,
218
- d=b.renderTo,e=c.width||ib(d,"width"),f=c.height||ib(d,"height"),c=a?a.target:U;if(!b.hasUserSize&&!b.isPrinting&&e&&f&&(c===U||c===F)){if(e!==b.containerWidth||f!==b.containerHeight)clearTimeout(b.reflowTimeout),b.reflowTimeout=Ya(function(){if(b.container)b.setSize(e,f,!1),b.hasUserSize=null},a?100:0);b.containerWidth=e;b.containerHeight=f}},initReflow:function(){var a=this,b=function(b){a.reflow(b)};A(U,"resize",b);A(a,"destroy",function(){Q(U,"resize",b)})},setSize:function(a,b,c){var d=this,
219
- e,f,g=d.renderer;d.isResizing+=1;Za(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;if(u(a))d.chartWidth=e=t(0,x(a)),d.hasUserSize=!!e;if(u(b))d.chartHeight=f=t(0,x(b));a=g.globalAnimation;(a?jb:J)(d.container,{width:e+"px",height:f+"px"},a);d.setChartSize(!0);g.setSize(e,f,c);d.maxTicks=null;n(d.axes,function(a){a.isDirty=!0;a.setScale()});n(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight=null;I(d,
220
- "resize");a=g.globalAnimation;Ya(function(){d&&I(d,"endResize",null,function(){d.isResizing-=1})},a===!1?0:a&&a.duration||500)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,i,k,j,m;this.plotLeft=i=x(this.plotLeft);this.plotTop=k=x(this.plotTop);this.plotWidth=j=t(0,x(d-i-this.marginRight));this.plotHeight=m=t(0,x(e-k-this.marginBottom));this.plotSizeX=b?m:j;this.plotSizeY=b?j:m;this.plotBorderWidth=
221
- 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:i,y:k,width:j,height:m};d=2*R(this.plotBorderWidth/2);b=Ba(t(d,h[3])/2);c=Ba(t(d,h[0])/2);this.clipBox={x:b,y:c,width:R(this.plotSizeX-t(d,h[1])/2-b),height:t(0,R(this.plotSizeY-t(d,h[2])/2-c))};a||n(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this;n(tb,function(b,c){a[b]=p(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,
222
- 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,h=this.plotBGImage,i=a.borderWidth||0,k=a.backgroundColor,j=a.plotBackgroundColor,m=a.plotBackgroundImage,l=a.plotBorderWidth||0,o,q=this.plotLeft,r=this.plotTop,n=this.plotWidth,p=this.plotHeight,w=this.plotBox,y=this.clipRect,t=this.clipBox;o=i+(a.shadow?8:0);if(i||k)if(e)e.animate(e.crisp({width:c-o,height:d-
223
- o}));else{e={fill:k||"none"};if(i)e.stroke=a.borderColor,e["stroke-width"]=i;this.chartBackground=b.rect(o/2,o/2,c-o,d-o,a.borderRadius,i).attr(e).addClass("highcharts-background").add().shadow(a.shadow)}if(j)f?f.animate(w):this.plotBackground=b.rect(q,r,n,p,0).attr({fill:j}).add().shadow(a.plotShadow);if(m)h?h.animate(w):this.plotBGImage=b.image(m,q,r,n,p).add();y?y.animate({width:t.width,height:t.height}):this.clipRect=b.clipRect(t);if(l)g?g.animate(g.crisp({x:q,y:r,width:n,height:p,strokeWidth:-l})):
224
- this.plotBorder=b.rect(q,r,n,p,0,-l).attr({stroke:a.plotBorderColor,"stroke-width":l,fill:"none",zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;n(["inverted","angular","polar"],function(g){c=K[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=K[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;n(b,function(a){a.linkedSeries.length=0});n(b,function(b){var d=
225
- b.options.linkedTo;if(Ja(d)&&(d=d===":previous"?a.series[b.index-1]:a.get(d)))d.linkedSeries.push(b),b.linkedParent=d,b.visible=p(b.options.visible,d.options.visible,b.visible)})},renderSeries:function(){n(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&n(b.items,function(c){var d=v(b.style,c.style),e=H(d.left)+a.plotLeft,f=H(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})},
226
- render:function(){var a=this.axes,b=this.renderer,c=this.options,d,e,f,g;this.setTitle();this.legend=new ub(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;e=this.plotHeight-=21;n(a,function(a){a.setScale()});this.getAxisMargins();f=d/this.plotWidth>1.1;g=e/this.plotHeight>1.05;if(f||g)this.maxTicks=null,n(a,function(a){(a.horiz&&f||!a.horiz&&g)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&n(a,function(a){a.visible&&
227
- a.render()});if(!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){if(a.enabled&&!this.credits)this.credits=this.renderer.text(a.text,0,0).on("click",function(){if(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;I(a,"destroy");
228
- aa[a.index]=s;hb--;a.renderTo.removeAttribute("data-highcharts-chart");Q(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();n("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())});if(d)d.innerHTML="",Q(d),f&&Sa(d);for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!ca&&
229
- U==U.top&&F.readyState!=="complete"||pa&&!U.canvg?(pa?Yb.push(function(){a.firstRender()},a.options.global.canvasToolsURL):F.attachEvent("onreadystatechange",function(){F.detachEvent("onreadystatechange",a.firstRender);F.readyState==="complete"&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;if(a.isReadyToRender()){a.getContainer();I(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();n(b.series||[],function(b){a.initSeries(b)});a.linkSeries();
230
- I(a,"beforeRender");if(z.Pointer)a.pointer=new Xa(a,b);a.render();a.renderer.draw();c&&c.apply(a,[a]);n(a.callbacks,function(b){a.index!==s&&b.apply(a,[a])});I(a,"load");a.cloneRenderTo(!0)}},splashArray:function(a,b){var c=b[a],c=ea(c)?c:[c,c,c,c];return[p(b[a+"Top"],c[0]),p(b[a+"Right"],c[1]),p(b[a+"Bottom"],c[2]),p(b[a+"Left"],c[3])]}};var dc=z.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=[p(e[0],
231
- "50%"),p(e[1],"50%"),a.size||"100%",a.innerSize||0],f=E(d,b),g,h;for(g=0;g<4;++g)h=e[g],a=g<2||g===2&&/%$/.test(h),e[g]=(/%$/.test(h)?[d,b,f,e[2]][g]*parseFloat(h)/100:parseFloat(h))+(a?c:0);e[3]>e[2]&&(e[3]=e[2]);return e}},Da=function(){};Da.prototype={init:function(a,b,c){this.series=a;this.color=a.color;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length))a.colorCounter=
232
- 0;a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey,a=Da.prototype.optionsToObject.call(this,a);v(this,a);this.options=this.options?v(this.options,a):a;if(d)this.y=this[d];if(this.x===s&&c)this.x=b===s?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,h=0;if(typeof a==="number"||a===null)b[e[0]]=a;else if(Ka(a)){if(!d&&a.length>f){c=typeof a[0];
233
- if(c==="string")b.name=a[0];else if(c==="number")b.x=a[0];g++}for(;h<f;){if(!d||a[g]!==void 0)b[e[h]]=a[g];g++;h++}}else if(typeof a==="object"){b=a;if(a.dataLabels)c._hasPointLabels=!0;if(a.marker)c._hasPointMarkers=!0}return b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;if(b&&(this.setState(),ua(b,this),!b.length))a.hoverPoints=null;if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)Q(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);
234
- for(c in this)this[c]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,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=p(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||
235
- "";n(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 Fa(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();a==="click"&&e.allowPointSelect&&(c=function(a){d.select&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});I(this,a,b,c)},visible:!0};var O=z.Series=function(){};O.prototype=
236
- {isCartesian:!0,type:"line",pointClass:Da,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},directTouch:!1,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 p(a.options.index,a._i)-p(b.options.index,b._i)};c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();v(c,{name:b.name,state:"",pointAttr:{},visible:b.visible!==!1,selected:b.selected===
237
- !0});if(pa)b.animation=!1;e=b.events;for(d in e)A(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();n(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);if(c.isCartesian)a.hasCartesianSeries=!0;f.push(c);c._i=f.length-1;ob(f,g);this.yAxis&&ob(this.yAxis.series,g);n(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;n(a.axisTypes||
238
- [],function(e){n(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]!==s&&b[e]===d.id||b[e]===s&&d.index===0)c.series.push(a),a[e]=c,c.isDirty=!0});!a[e]&&a.optionalAxis!==e&&ba(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments;n(c.parallelArrays,typeof b==="number"?function(d){var f=d==="y"&&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,
239
- c,d=a.pointIntervalUnit,b=p(b,a.pointStart,0);this.pointInterval=c=p(this.pointInterval,a.pointInterval,1);if(d==="month"||d==="year")a=new fa(b),a=d==="month"?+a[Eb](a[eb]()+c):+a[Fb](a[fb]()+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--;)d[c].y===null&&d.splice(c,1);d.length&&(b=[d])}else n(d,function(c,g){c.y===null?(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=
240
- 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=C(e,c.series,a);this.tooltipOptions=C(N.tooltip,N.plotOptions[this.type].tooltip,b.tooltip,d.series&&d.series.tooltip,d[this.type]&&d[this.type].tooltip,a.tooltip);e.marker===null&&delete c.marker;this.zoneAxis=c.zoneAxis;a=this.zones=(c.zones||[]).slice();if((c.negativeColor||c.negativeFillColor)&&!c.zones)a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||
241
- 0,color:c.negativeColor,fillColor:c.negativeFillColor});a.length&&u(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||(u(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.options.color=null:this.getCyclic("color",this.options.color||S[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=
242
- this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols);if(/^url/.test(this.symbol))a.radius=0},drawLegendSymbol:X.drawLineMarker,setData:function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,i=e.options,k=e.chart,j=null,m=e.xAxis,l=m&&!!m.categories,o=i.turboThreshold,q=this.xData,r=this.yData,D=(h=e.pointArrayMap)&&h.length,a=a||[];h=a.length;b=p(b,!0);if(d!==!1&&h&&g===h&&!e.cropped&&!e.hasGroupedData&&e.visible)n(a,function(a,b){f[b].update&&a!==i.data[b]&&f[b].update(a,
243
- !1,null,!1)});else{e.xIncrement=null;e.colorCounter=0;n(this.parallelArrays,function(a){e[a+"Data"].length=0});if(o&&h>o){for(c=0;j===null&&c<h;)j=a[c],c++;if(sa(j)){l=p(i.pointStart,0);j=p(i.pointInterval,1);for(c=0;c<h;c++)q[c]=l,r[c]=a[c],l+=j;e.xIncrement=l}else if(Ka(j))if(D)for(c=0;c<h;c++)j=a[c],q[c]=j[0],r[c]=j.slice(1,D+1);else for(c=0;c<h;c++)j=a[c],q[c]=j[0],r[c]=j[1];else ba(12)}else for(c=0;c<h;c++)if(a[c]!==s&&(j={series:e},e.pointClass.prototype.applyOptions.apply(j,[a[c]]),e.updateParallelArrays(j,
244
- c),l&&u(j.name)))m.names[j.x]=j.name;Ja(r[0])&&ba(14,!0);e.data=[];e.options.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();if(m)m.minRange=m.userMinRange;e.isDirty=e.isDirtyData=k.isDirtyBox=!0;c=!1}i.legendType==="point"&&(this.processData(),this.generatePoints());b&&k.redraw(c)},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e;e=0;var f,g,h=this.xAxis,i,k=this.options;i=k.cropThreshold;var k=this.getExtremesFromAll||k.getExtremesFromAll,j=this.isCartesian,m,l;if(j&&!this.isDirty&&
245
- !h.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(h)a=h.getExtremes(),m=a.min,l=a.max;if(j&&this.sorted&&!k&&(!i||d>i||this.forceCrop))if(b[d-1]<m||b[0]>l)b=[],c=[];else if(b[0]<m||b[d-1]>l)e=this.cropData(this.xData,this.yData,m,l),b=e.xData,c=e.yData,e=e.start,f=!0;for(i=b.length-1;i>=0;i--)d=b[i]-b[i-1],d>0&&(g===s||d<g)?g=d:d<0&&this.requireSorting&&ba(15);this.cropped=f;this.cropStart=e;this.processedXData=b;this.processedYData=c;this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,
246
- f=0,g=e,h=p(this.cropShoulder,1),i;for(i=0;i<e;i++)if(a[i]>=c){f=t(0,i-h);break}for(c=i;c<e;c++)if(a[c]>d){g=c+h;break}return{xData:a.slice(f,g),yData:b.slice(f,g),start:f,end:g}},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,i,k=this.hasGroupedData,j,m=[],l;if(!b&&!k)b=[],b.length=a.length,b=this.data=b;for(l=0;l<g;l++)i=h+l,k?m[l]=(new f).init(this,[d[l]].concat(qa(e[l]))):(b[i]?j=b[i]:
247
- a[i]!==s&&(b[i]=j=(new f).init(this,a[i],d[l])),m[l]=j),m[l].index=i;if(b&&(g!==(c=b.length)||k))for(l=0;l<c;l++)if(l===h&&!k&&(l+=g),b[l])b[l].destroyElements(),b[l].plotX=s;this.data=b;this.points=m},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,e=[],f=0;d=this.xAxis.getExtremes();var g=d.min,h=d.max,i,k,j,m,a=a||this.stackedYData||this.processedYData;d=a.length;for(m=0;m<d;m++)if(k=c[m],j=a[m],i=j!==null&&j!==s&&(!b.isLog||j.length||j>0),k=this.getExtremesFromAll||this.options.getExtremesFromAll||
248
- this.cropped||(c[m+1]||k)>=g&&(c[m-1]||k)<=h,i&&k)if(i=j.length)for(;i--;)j[i]!==null&&(e[f++]=j[i]);else e[f++]=j;this.dataMin=Ma(e);this.dataMax=Aa(e)},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,g=f.length,h=!!this.modifyValue,i=a.pointPlacement,k=i==="between"||sa(i),j=a.threshold,m=a.startFromThreshold?j:0,l,o,q,r,n=Number.MAX_VALUE,a=0;a<g;a++){var B=f[a],w=B.x,y=
249
- B.y;o=B.low;var x=b&&e.stacks[(this.negStacks&&y<(m?0:j)?"-":"")+this.stackKey];if(e.isLog&&y!==null&&y<=0)B.y=y=null,ba(10);B.plotX=l=E(t(-1E5,c.translate(w,0,0,0,1,i,this.type==="flags")),1E5);if(b&&this.visible&&x&&x[w])r=this.getStackIndicator(r,w,this.index),x=x[w],y=x.points[r.key],o=y[0],y=y[1],o===m&&(o=p(j,e.min)),e.isLog&&o<=0&&(o=null),B.total=B.stackTotal=x.total,B.percentage=x.total&&B.y/x.total*100,B.stackY=y,x.setOffset(this.pointXOffset||0,this.barW||0);B.yBottom=u(o)?e.translate(o,
250
- 0,1,0,1):null;h&&(y=this.modifyValue(y,B));B.plotY=o=typeof y==="number"&&y!==Infinity?E(t(-1E5,e.translate(y,0,1,0,1)),1E5):s;B.isInside=o!==s&&o>=0&&o<=e.len&&l>=0&&l<=c.len;B.clientX=k?c.translate(w,0,0,0,1):l;B.negative=B.y<(j||0);B.category=d&&d[B.x]!==s?d[B.x]:B.x;a&&(n=E(n,P(l-q)));q=l}this.closestPointRangePx=n;this.getSegments()},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,e=b.inverted,f=this.clipBox,g=f||b.clipBox,h=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&
251
- a.easing,g.height,c.xAxis,c.yAxis].join(","),i=b[h],k=b[h+"m"];if(!i){if(a)g.width=0,b[h+"m"]=k=d.clipRect(-99,e?-b.plotLeft:-b.plotTop,99,e?b.chartWidth:b.chartHeight);b[h]=i=d.clipRect(g)}a&&(i.count+=1);if(c.clip!==!1)this.group.clip(a||f?i:b.clipRect),this.markerGroup.clip(k),this.sharedClipKey=h;a||(i.count-=1,i.count<=0&&h&&b[h]&&(f||(b[h]=b[h].destroy()),b[h+"m"]&&(b[h+"m"]=b[h+"m"].destroy())))},animate:function(a){var b=this.chart,c=this.options.animation,d;if(c&&!ea(c))c=S[this.type].animation;
252
- 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();I(this,"afterAnimate")},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,i,k,j,m=this.options.marker,l=this.pointAttr[""],o,q,r,n=this.markerGroup,B=p(m.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*m.radius);if(m.enabled!==!1||this._hasPointMarkers)for(f=b.length;f--;)if(g=b[f],d=
253
- R(g.plotX),e=g.plotY,j=g.graphic,o=g.marker||{},q=!!g.marker,a=B&&o.enabled===s||o.enabled,r=g.isInside,a&&e!==s&&!isNaN(e)&&g.y!==null)if(a=g.pointAttr[g.selected?"select":""]||l,h=a.r,i=p(o.symbol,this.symbol),k=i.indexOf("url")===0,j)j[r?"show":"hide"](!0).animate(v({x:d-h,y:e-h},j.symbolName?{width:2*h,height:2*h}:{}));else{if(r&&(h>0||k))g.graphic=c.renderer.symbol(i,d-h,e-h,2*h,2*h,q?o:m).attr(a).add(n)}else if(j)g.graphic=j.destroy()},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,
254
- f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=p(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=a.options,c=S[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color,h=a.options.negativeColor;f={stroke:g,fill:g};var i=a.points||[],k,j,m=[],l=a.pointAttrToOptions;k=a.hasPointSpecificOptions;var o=c.lineColor,q=c.fillColor;j=b.turboThreshold;var r=a.zones,D=a.zoneAxis||"y",B;b.marker?(e.radius=e.radius||c.radius+e.radiusPlus,e.lineWidth=e.lineWidth||c.lineWidth+
255
- e.lineWidthPlus):(e.color=e.color||ka(e.color||g).brighten(e.brightness).get(),e.negativeColor=e.negativeColor||ka(e.negativeColor||h).brighten(e.brightness).get());m[""]=a.convertAttribs(c,f);n(["hover","select"],function(b){m[b]=a.convertAttribs(d[b],m[""])});a.pointAttr=m;g=i.length;if(!j||g<j||k)for(;g--;){j=i[g];if((c=j.options&&j.options.marker||j.options)&&c.enabled===!1)c.radius=0;if(r.length){k=0;for(f=r[k];j[D]>=f.value;)f=r[++k];j.color=j.fillColor=p(f.color,a.color)}k=b.colorByPoint||
256
- j.color;if(j.options)for(B in l)u(c[l[B]])&&(k=!0);if(k){c=c||{};k=[];d=c.states||{};f=d.hover=d.hover||{};if(!b.marker||j.negative&&!f.fillColor&&!e.fillColor)f[a.pointAttrToOptions.fill]=f.color||!j.options.color&&e[j.negative&&h?"negativeColor":"color"]||ka(j.color).brighten(f.brightness||e.brightness).get();f={color:j.color};if(!q)f.fillColor=j.color;if(!o)f.lineColor=j.color;c.hasOwnProperty("color")&&!c.color&&delete c.color;k[""]=a.convertAttribs(v(f,c),m[""]);k.hover=a.convertAttribs(d.hover,
257
- m.hover,k[""]);k.select=a.convertAttribs(d.select,m.select,k[""])}else k=m;j.pointAttr=k}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Ga),d,e=a.data||[],f,g,h;I(a,"destroy");Q(a);n(a.axisTypes||[],function(b){if(h=a[b])ua(h.series,a),h.isDirty=h.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 W&&!a[g].survive&&(d=c&&g==="group"?"hide":"destroy",
258
- a[g][d]());if(b.hoverSeries===a)b.hoverSeries=null;ua(b.series,a);for(g in a)delete a[g]},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;n(a,function(e,f){var g=e.plotX,h=e.plotY,i;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(i=a[f-1],d==="right"?c.push(i.plotX,h,"L"):d==="center"?c.push((i.plotX+g)/2,i.plotY,"L",(i.plotX+g)/2,h,"L"):c.push(g,i.plotY,"L")),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=this,b=[],c,d=[];n(a.segments,
259
- function(e){c=a.getSegmentPath(e);e.length>1?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=b.linecap!=="square",f=this.getGraphPath(),g=this.fillGraph&&this.color||"none";n(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||a.color,d.dashStyle||b.dashStyle])});n(c,function(c,i){var k=c[0],j=a[k];if(j)j.animate({d:f});else if((d||g)&&f.length)j={stroke:c[1],"stroke-width":d,
260
- fill:g,zIndex:1},c[2]?j.dashstyle=c[2]:e&&(j["stroke-linecap"]=j["stroke-linejoin"]="round"),a[k]=a.chart.renderer.path(f).attr(j).add(a.group).shadow(i<2&&b.shadow)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,f,g=this.clips||[],h,i=this.graph,k=this.area,j=t(b.chartWidth,b.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],l,o=m.reversed,q=b.inverted,r=m.horiz,D,B,w,y=!1;if(d.length&&(i||k)&&m.min!==s)i&&i.hide(),k&&k.hide(),l=m.getExtremes(),n(d,function(d,n){e=o?
261
- r?b.plotWidth:0:r?0:m.toPixels(l.min);e=E(t(p(f,e),0),j);f=E(t(x(m.toPixels(p(d.value,l.max),!0)),0),j);y&&(e=f=m.toPixels(l.max));D=Math.abs(e-f);B=E(e,f);w=t(e,f);if(m.isXAxis){if(h={x:q?w:B,y:0,width:D,height:j},!r)h.x=b.plotHeight-h.x}else if(h={x:0,y:q?w:B,width:j,height:D},r)h.y=b.plotWidth-h.y;b.inverted&&c.isVML&&(h=m.isXAxis?{x:0,y:o?B:w,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});g[n]?g[n].animate(h):(g[n]=c.clipRect(h),i&&
262
- a["zoneGraph"+n].clip(g[n]),k&&a["zoneArea"+n].clip(g[n]));y=d.value>l.max}),this.clips=g},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};n(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;if(b.xAxis)A(c,"resize",a),A(b,"destroy",function(){Q(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||0.1}).add(e),f.addClass("highcharts-series-"+
263
- this.index));f[g?"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;if(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&&p(c.duration,500)||0,f=a.visible?"inherit":"hidden",g=d.zIndex,h=a.hasRendered,i=b.seriesGroup;c=a.plotGroup("group","series",f,g,i);a.markerGroup=a.plotGroup("markerGroup",
264
- "markers",f,g,i);e&&a.animate(!0);a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());n(a.points,function(a){a.redraw&&a.redraw()});a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&a.options.enableMouseTracking!==!1&&a.drawTracker();b.inverted&&a.invertGroups();d.clip!==!1&&!a.sharedClipKey&&!h&&c.clip(b.clipRect);e&&a.animate();if(!h)a.animationTimeout=Ya(function(){a.afterAnimate()},e);a.isDirty=a.isDirtyData=!1;a.hasRendered=
265
- !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:p(e&&e.left,a.plotLeft),translateY:p(f&&f.top,a.plotTop)}));this.translate();this.render();b&&I(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?
266
- 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(c,e,f){var g,h;if(h=c&&c.length)return g=b.kdAxisArray[e%f],c.sort(function(a,b){return a[g]-b[g]}),h=Math.floor(h/2),{point:c[h],left:a(c.slice(0,h),e+1,f),right:a(c.slice(h+1),e+1,f)}}var b=this,c=b.kdDimensions;delete b.kdTree;Ya(function(){var d=bb(b.points||[],function(a){return a.y!==null});b.kdTree=a(d,c,c)},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,k,
267
- j){var m=b.point,l=d.kdAxisArray[k%j],o,q,r=m;q=u(a[e])&&u(m[e])?Math.pow(a[e]-m[e],2):null;o=u(a[f])&&u(m[f])?Math.pow(a[f]-m[f],2):null;o=(q||0)+(o||0);m.dist=u(o)?Math.sqrt(o):Number.MAX_VALUE;m.distX=u(q)?Math.sqrt(q):Number.MAX_VALUE;l=a[l]-m[l];o=l<0?"left":"right";q=l<0?"right":"left";b[o]&&(o=c(a,b[o],k+1,j),r=o[g]<r[g]?o:m);b[q]&&Math.sqrt(l*l)<r[g]&&(a=c(a,b[q],k+1,j),r=a[g]<r[g]?a:r);return r}var d=this,e=this.kdAxisArray[0],f=this.kdAxisArray[1],g=b?"distX":"dist";this.kdTree||this.buildKDTree();
268
- if(this.kdTree)return c(a,this.kdTree,this.kdDimensions,this.kdDimensions)}};Tb.prototype={destroy:function(){Na(this,this.axis)},render:function(a){var b=this.options,c=b.format,c=c?Fa(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,
269
- f=this.isNegative&&!f||!this.isNegative&&f,g=c.translate(c.usePercentage?100:this.total,0,0,0,1),c=c.translate(0),c=P(g-c),h=d.xAxis[0].translate(this.x)+a,i=d.plotHeight,f={x:e?f?g:g-c:h,y:e?i-h-b:f?i-g-c:i-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e[this.options.crop===!1||d.isInsidePlot(f.x,f.y)?"show":"hide"](!0)}};Ia.prototype.getStacks=function(){var a=this;n(a.yAxis,function(a){if(a.stacks&&a.hasVisibleSeries)a.oldStacks=a.stacks});n(a.series,
270
- function(b){if(b.options.stacking&&(b.visible===!0||a.options.chart.ignoreHiddenSeries===!1))b.stackKey=b.type+p(b.options.stack,"")})};L.prototype.buildStacks=function(){var a=this.series,b=p(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()}};L.prototype.renderStackTotals=function(){var a=this.chart,b=a.renderer,c=this.stacks,d,e,f=this.stackTotalGroup;
271
- if(!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)};L.prototype.resetStacks=function(){var a=this.stacks,b,c;if(!this.isXAxis)for(b in a)for(c in a[b])a[b][c].touched<this.stacksTouched?(a[b][c].destroy(),delete a[b][c]):(a[b][c].total=null,a[b][c].cum=0)};L.prototype.cleanStacks=function(){var a,b,c;if(!this.isXAxis){if(this.oldStacks)a=this.stacks=this.oldStacks;for(b in a)for(c in a[b])a[b][c].cum=
272
- a[b][c].total}};O.prototype.setStackedPoints=function(){if(this.options.stacking&&!(this.visible!==!0&&this.chart.options.chart.ignoreHiddenSeries!==!1)){var a=this.processedXData,b=this.processedYData,c=[],d=b.length,e=this.options,f=e.threshold,g=e.startFromThreshold?f:0,h=e.stack,e=e.stacking,i=this.stackKey,k="-"+i,j=this.negStacks,m=this.yAxis,l=m.stacks,o=m.oldStacks,q,r,n,B,w,y,u;m.stacksTouched+=1;for(w=0;w<d;w++){y=a[w];u=b[w];q=this.getStackIndicator(q,y,this.index);B=q.key;n=(r=j&&u<(g?
273
- 0:f))?k:i;l[n]||(l[n]={});if(!l[n][y])o[n]&&o[n][y]?(l[n][y]=o[n][y],l[n][y].total=null):l[n][y]=new Tb(m,m.options.stackLabels,r,y,h);n=l[n][y];n.points[B]=[p(n.cum,g)];n.touched=m.stacksTouched;q.index>0&&this.singleStacks===!1&&(n.points[B][0]=n.points[this.index+","+y+",0"][0]);e==="percent"?(r=r?i:k,j&&l[r]&&l[r][y]?(r=l[r][y],n.total=r.total=t(r.total,n.total)+P(u)||0):n.total=na(n.total+(P(u)||0))):n.total=na(n.total+(u||0));n.cum=p(n.cum,g)+(u||0);n.points[B].push(n.cum);c[w]=n.cum}if(e===
274
- "percent")m.usePercentage=!0;this.stackedYData=c;m.oldStacks={}}};O.prototype.setPercentStacks=function(){var a=this,b=a.stackKey,c=a.yAxis.stacks,d=a.processedXData,e;n([b,"-"+b],function(b){var f;for(var g=d.length,h,i;g--;)if(h=d[g],e=a.getStackIndicator(e,h,a.index),f=(i=c[b]&&c[b][h])&&i.points[e.key],h=f)i=i.total?100/i.total:0,h[0]=na(h[0]*i),h[1]=na(h[1]*i),a.stackedYData[g]=h[1]})};O.prototype.getStackIndicator=function(a,b,c){!u(a)||a.x!==b?a={x:b,index:0}:a.index++;a.key=[c,b,a.index].join(",");
275
- return a};v(Ia.prototype,{addSeries:function(a,b,c){var d,e=this;a&&(b=p(b,!0),I(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 L(this,C(a,{index:this[e].length,isX:b}));f[e]=qa(f[e]||{});f[e].push(a);p(c,!0)&&this.redraw(d)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&J(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+
276
- "px",height:b.plotHeight+"px"})};if(!d)b.loadingDiv=d=$(Ta,{className:"highcharts-loading"},v(e.style,{zIndex:10,display:"none"}),b.container),b.loadingSpan=$("span",null,e.labelStyle,d),A(b,"redraw",f);b.loadingSpan.innerHTML=a||c.lang.loading;if(!b.loadingShown)J(d,{opacity:0,display:""}),jb(d,{opacity:e.style.opacity},{duration:e.showDuration||0}),b.loadingShown=!0;f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&jb(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){J(b,
277
- {display:"none"})}});this.loadingShown=!1}});v(Da.prototype,{update:function(a,b,c,d){function e(){f.applyOptions(a);if(f.y===null&&h)f.graphic=h.destroy();if(ea(a)&&!Ka(a))f.redraw=function(){if(h&&h.element&&a&&a.marker&&a.marker.symbol)f.graphic=h.destroy();if(a&&a.dataLabels&&f.dataLabel)f.dataLabel=f.dataLabel.destroy();f.redraw=null};i=f.index;g.updateParallelArrays(f,i);if(m&&f.name)m[f.x]=f.name;j.data[i]=ea(j.data[i])?f.options:a;g.isDirty=g.isDirtyData=!0;if(!g.fixedBox&&g.hasCartesianSeries)k.isDirtyBox=
278
- !0;if(j.legendType==="point")k.isDirtyLegend=!0;b&&k.redraw(c)}var f=this,g=f.series,h=f.graphic,i,k=g.chart,j=g.options,m=g.xAxis&&g.xAxis.names,b=p(b,!0);d===!1?e():f.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(Ha(this,this.series.data),a,b)}});v(O.prototype,{addPoint:function(a,b,c,d){var e=this,f=e.options,g=e.data,h=e.graph,i=e.area,k=e.chart,j=e.xAxis&&e.xAxis.names,m=h&&h.shift||0,l=["graph","area"],h=f.data,o,q=e.xData;Za(d,k);if(c){for(d=e.zones.length;d--;)l.push("zoneGraph"+
279
- d,"zoneArea"+d);n(l,function(a){if(e[a])e[a].shift=m+(f.step?2:1)})}if(i)i.isArea=!0;b=p(b,!0);i={series:e};e.pointClass.prototype.applyOptions.apply(i,[a]);l=i.x;d=q.length;if(e.requireSorting&&l<q[d-1])for(o=!0;d&&q[d-1]>l;)d--;e.updateParallelArrays(i,"splice",d,0,0);e.updateParallelArrays(i,d);if(j&&i.name)j[l]=i.name;h.splice(d,0,a);o&&(e.data.splice(d,0,null),e.processData());f.legendType==="point"&&e.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),e.updateParallelArrays(i,
280
- "shift"),h.shift()));e.isDirty=!0;e.isDirtyData=!0;b&&(e.getAttribs(),k.redraw())},removePoint:function(a,b,c){var d=this,e=d.data,f=e[a],g=d.points,h=d.chart,i=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&&h.redraw()};Za(c,h);b=p(b,!0);f?f.firePointEvent("remove",null,i):i()},remove:function(a,b){var c=this,d=c.chart,a=p(a,!0);if(!c.isRemoving)c.isRemoving=!0,
281
- I(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=K[f].prototype,h=["group","markerGroup","dataLabelsGroup"],i;if(a.type&&a.type!==f||a.zIndex!==void 0)h.length=0;n(h,function(a){h[a]=c[a];delete c[a]});a=C(e,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},a);this.remove(!1);for(i in g)this[i]=s;v(this,K[a.type||f].prototype);
282
- n(h,function(a){c[a]=h[a]});this.init(d,a);d.linkSeries();p(b,!0)&&d.redraw(!1)}});v(L.prototype,{update:function(a,b){var c=this.chart,a=c.options[this.coll][this.options.index]=C(this.userOptions,a);this.destroy(!0);this._addedPlotLB=this.chart._labelPanes=s;this.init(c,v(a,{events:s}));c.isDirtyBox=!0;p(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);ua(b.axes,this);ua(b[c],this);b.options[c].splice(this.options.index,1);
283
- n(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;p(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}});var Ea=ia(O);K.line=Ea;S.area=C(Z,{softThreshold:!1,threshold:0});var ya=ia(O,{type:"area",singleStacks:!1,getSegments:function(){var a=this,b=[],c=[],d=[],e=this.xAxis,f=this.yAxis,g=f.stacks[this.stackKey],h={},i,k,j=this.points,m=this.options.connectNulls,l,o,q;if(this.options.stacking&&!this.cropped){for(o=
284
- 0;o<j.length;o++)h[j[o].x]=j[o];for(q in g)g[q].total!==null&&d.push(+q);d.sort(function(a,b){return a-b});n(d,function(b){var d=null,j;if(!m||h[b]&&h[b].y!==null)if(h[b])c.push(h[b]);else{for(o=a.index;o<=f.series.length;o++)if(l=a.getStackIndicator(null,b,o),j=g[b].points[l.key]){d=j[1];break}i=e.translate(b);k=f.getThreshold(d);c.push({y:null,plotX:i,clientX:i,plotY:k,yBottom:k,onMouseOver:la})}});c.length&&b.push(c)}else O.prototype.getSegments.call(this),b=this.segments;this.segments=b},getSegmentPath:function(a){var b=
285
- O.prototype.getSegmentPath.call(this,a),c=[].concat(b),d,e=this.options;d=b.length;var f=this.yAxis.getThreshold(e.threshold),g;d===3&&c.push("L",b[1],b[2]);if(e.stacking&&!this.closedStacks)for(d=a.length-1;d>=0;d--)g=p(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=[];O.prototype.drawGraph.apply(this);
286
- var a=this,b=this.areaPath,c=this.options,d=[["area",this.color,c.fillColor]];n(this.zones,function(b,f){d.push(["zoneArea"+f,b.color||a.color,b.fillColor||c.fillColor])});n(d,function(d){var f=d[0],g=a[f];g?g.animate({d:b}):a[f]=a.chart.renderer.path(b).attr({fill:p(d[2],ka(d[1]).setOpacity(p(c.fillOpacity,0.75)).get()),zIndex:0}).add(a.group)})},drawLegendSymbol:X.drawRectangle});K.area=ya;S.spline=C(Z);Ea=ia(O,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+
287
- 1],h,i,k,j;if(f&&g){a=f.plotY;k=g.plotX;var g=g.plotY,m;h=(1.5*d+f.plotX)/2.5;i=(1.5*e+a)/2.5;k=(1.5*d+k)/2.5;j=(1.5*e+g)/2.5;m=(j-i)*(k-d)/(k-h)+e-j;i+=m;j+=m;i>a&&i>e?(i=t(a,e),j=2*e-i):i<a&&i<e&&(i=E(a,e),j=2*e-i);j>g&&j>e?(j=t(g,e),i=2*e-j):j<g&&j<e&&(j=E(g,e),i=2*e-j);b.rightContX=k;b.rightContY=j}c?(b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,i||e,d,e],f.rightContX=f.rightContY=null):b=["M",d,e];return b}});K.spline=Ea;S.areaspline=C(S.area);ya=ya.prototype;Ea=ia(Ea,{type:"areaspline",
288
- closedStacks:!0,getSegmentPath:ya.getSegmentPath,closeSegment:ya.closeSegment,drawGraph:ya.drawGraph,drawLegendSymbol:X.drawRectangle});K.areaspline=Ea;S.column=C(Z,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,
289
- tooltip:{distance:6},threshold:0});Ea=ia(O,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){O.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&n(b.series,function(b){if(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={},h,i=0;b.grouping===!1?i=1:n(a.chart.series,function(b){var c=
290
- b.options,e=b.yAxis;if(b.type===a.type&&b.visible&&d.len===e.len&&d.pos===e.pos)c.stacking?(f=b.stackKey,g[f]===s&&(g[f]=i++),h=g[f]):c.grouping!==!1&&(h=i++),b.columnIndex=h});var k=E(P(c.transA)*(c.ordinalSlope||b.pointRange||c.closestPointRange||c.tickInterval||1),c.len),j=k*b.groupPadding,m=(k-2*j)/i,b=E(b.maxPointWidth||c.len,p(b.pointWidth,m*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(m-b)/2+(j+((a.columnIndex||0)+(e?1:0))*m-k/2)*(e?-1:1)};return a.columnMetrics},crispCol:function(a,
291
- b,c,d){var e=this.chart,f=this.borderWidth,g=-(f%2?0.5:0),f=f%2?0.5:1;e.inverted&&e.renderer.isVML&&(f+=1);c=Math.round(a+c)+g;a=Math.round(a)+g;c-=a;d=Math.round(b+d)+f;g=P(b)<=0.5&&d>0.5;b=Math.round(b)+f;d-=b;g&&(b-=1,d+=1);return{x:a,y:b,width:c,height:d}},translate:function(){var a=this,b=a.chart,c=a.options,d=a.borderWidth=p(c.borderWidth,a.closestPointRange*a.xAxis.transA<2?0:1),e=a.yAxis,f=a.translatedThreshold=e.getThreshold(c.threshold),g=p(c.minPointLength,5),h=a.getColumnMetrics(),i=h.width,
292
- k=a.barW=t(i,1+2*d),j=a.pointXOffset=h.offset;b.inverted&&(f-=0.5);c.pointPadding&&(k=Ba(k));O.prototype.translate.apply(a);n(a.points,function(c){var d=E(p(c.yBottom,f),9E4),h=999+P(d),h=E(t(-h,c.plotY),e.len+h),q=c.plotX+j,r=k,n=E(h,d),B,w=t(h,d)-n;P(w)<g&&g&&(w=g,B=!e.reversed&&!c.negative||e.reversed&&c.negative,n=P(n-f)>g?d-g:f-(B?g:0));c.barX=q;c.pointWidth=i;c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-h,a.xAxis.len-q-r/2,w]:[q+r/2,h+e.pos-b.plotTop,w];c.shapeType="rect";c.shapeArgs=a.crispCol(q,
293
- n,r,w)})},getSymbol:la,drawLegendSymbol:X.drawRectangle,drawGraph:la,drawPoints:function(){var a=this,b=this.chart,c=a.options,d=b.renderer,e=c.animationLimit||250,f,g;n(a.points,function(h){var i=h.plotY,k=h.graphic;if(i!==s&&!isNaN(i)&&h.y!==null)f=h.shapeArgs,i=u(a.borderWidth)?{"stroke-width":a.borderWidth}:{},g=h.pointAttr[h.selected?"select":""]||a.pointAttr[""],k?(Wa(k),k.attr(i).attr(g)[b.pointCount<e?"animate":"attr"](C(f))):h.graphic=d[h.shapeType](f).attr(i).attr(g).add(h.group||a.group).shadow(c.shadow,
294
- null,c.stacking&&!c.borderRadius);else if(k)h.graphic=k.destroy()})},animate:function(a){var b=this.yAxis,c=this.options,d=this.chart.inverted,e={};if(ca)a?(e.scaleY=0.001,a=E(b.pos+b.len,t(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&&n(b.series,function(b){if(b.type===a.type)b.isDirty=!0});
295
- O.prototype.remove.apply(a,arguments)}});K.column=Ea;S.bar=C(S.column);ya=ia(Ea,{type:"bar",inverted:!0});K.bar=ya;S.scatter=C(Z,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.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/>"}});ya=ia(O,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,
296
- kdDimensions:2,drawGraph:function(){this.options.lineWidth&&O.prototype.drawGraph.call(this)}});K.scatter=ya;S.pie=C(Z,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.y===null?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});Z={type:"pie",
297
- isCartesian:!1,pointClass:ia(Da,{init:function(){Da.prototype.init.apply(this,arguments);var a=this,b;a.name=p(a.name,"Slice");b=function(b){a.slice(b.type==="select")};A(a,"select",b);A(a,"unselect",b);return a},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=d.options.ignoreHiddenPoint,b=p(b,f);if(a!==c.visible){c.visible=c.options.visible=a=a===s?!c.visible:a;d.options.data[Ha(c,d.data)]=c.options;n(["graphic","dataLabel","connector","shadowGroup"],function(b){if(c[b])c[b][a?"show":
298
- "hide"](!0)});c.legendItem&&e.legend.colorizeItem(c,a);!a&&c.state==="hover"&&c.setState("");if(f)d.isDirty=!0;b&&e.redraw()}},slice:function(a,b,c){var d=this.series;Za(c,d.chart);p(b,!0);this.sliced=this.options.sliced=a=u(a)?a:!this.sliced;d.options.data[Ha(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?
299
- []: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"},animate:function(a){var b=this,c=b.points,d=b.startAngleRad;if(!a)n(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,
300
- start:g.start,end:g.end},b.options.animation))}),b.animate=null},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=b>0&&(e.visible||!f)?e.y/b*100:0,e.total=b},generatePoints:function(){O.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,h,i=c.startAngle||
301
- 0,k=this.startAngleRad=va/180*(i-90),i=(this.endAngleRad=va/180*(p(c.endAngle,i+360)-90))-k,j=this.points,m=c.dataLabels.distance,c=c.ignoreHiddenPoint,l,o=j.length,q;if(!a)this.center=a=this.getCenter();this.getX=function(b,c){h=V.asin(E((b-a[1])/(a[2]/2+m),1));return a[0]+(c?-1:1)*Y(h)*(a[2]/2+m)};for(l=0;l<o;l++){q=j[l];f=k+b*i;if(!c||q.visible)b+=q.percentage/100;g=k+b*i;q.shapeType="arc";q.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:x(f*1E3)/1E3,end:x(g*1E3)/1E3};h=(g+f)/2;h>1.5*va?
302
- h-=2*va:h<-va/2&&(h+=2*va);q.slicedTranslation={translateX:x(Y(h)*d),translateY:x(ga(h)*d)};f=Y(h)*a[2]/2;g=ga(h)*a[2]/2;q.tooltipPos=[a[0]+f*0.7,a[1]+g*0.7];q.half=h<-va/2||h>va/2?1:0;q.angle=h;e=E(e,m/2);q.labelPos=[a[0]+f+Y(h)*m,a[1]+g+ga(h)*m,a[0]+f+Y(h)*e,a[1]+g+ga(h)*e,a[0]+f,a[1]+g,m<0?"center":q.half?"right":"left",h]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,c,d,e=a.options.shadow,f,g,h,i;if(e&&!a.shadowGroup)a.shadowGroup=b.g("shadow").add(a.group);n(a.points,
303
- function(k){if(k.y!==null){d=k.graphic;h=k.shapeArgs;f=k.shadowGroup;g=k.pointAttr[k.selected?"select":""];if(!g.stroke)g.stroke=g.fill;if(e&&!f)f=k.shadowGroup=b.g("shadow").add(a.shadowGroup);c=k.sliced?k.slicedTranslation:{translateX:0,translateY:0};f&&f.attr(c);if(d)d.setRadialReference(a.center).attr(g).animate(v(h,c));else{i={"stroke-linejoin":"round"};if(!k.visible)i.visibility="hidden";k.graphic=d=b[k.shapeType](h).setRadialReference(a.center).attr(g).attr(i).attr(c).add(a.group).shadow(e,
304
- f)}}})},searchPoint:la,sortByAngle:function(a,b){a.sort(function(a,d){return a.angle!==void 0&&(d.angle-a.angle)*b})},drawLegendSymbol:X.drawRectangle,getCenter:dc.getCenter,getSymbol:la};Z=ia(O,Z);K.pie=Z;O.prototype.drawDataLabels=function(){var a=this,b=a.options,c=b.cursor,d=b.dataLabels,e=a.points,f,g,h=a.hasRendered||0,i,k,j=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||
305
- 6),p(d.defer,!0)&&(k.attr({opacity:+h}),h||A(a,"afterAnimate",function(){a.visible&&k.show();k[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),g=d,n(e,function(e){var h,o=e.dataLabel,q,r,n=e.connector,B=!0,w,y={};f=e.dlOptions||e.options&&e.options.dataLabels;h=p(f&&f.enabled,g.enabled)&&e.y!==null;if(o&&!h)e.dataLabel=o.destroy();else if(h){d=C(g,f);w=d.style;h=d.rotation;q=e.getLabelConfig();i=d.format?Fa(d.format,q):d.formatter.call(q,d);w.color=p(d.color,w.color,a.color,"black");
306
- if(o)if(u(i))o.attr({text:i}),B=!1;else{if(e.dataLabel=o=o.destroy(),n)e.connector=n.destroy()}else if(u(i)){o={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:h,padding:d.padding,zIndex:1};if(w.color==="contrast")y.color=d.inside||d.distance<0||b.stacking?j.getContrast(e.color||a.color):"#000000";if(c)y.cursor=c;for(r in o)o[r]===s&&delete o[r];o=e.dataLabel=j[h?"text":"label"](i,0,-9999,d.shape,null,null,d.useHTML).attr(o).css(v(w,y)).add(k).shadow(d.shadow)}o&&
307
- a.alignDataLabel(e,o,d,null,B)}})};O.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=p(a.plotX,-9999),i=p(a.plotY,-9999),k=b.getBBox(),j=f.renderer.fontMetrics(c.style.fontSize).b,m=this.visible&&(a.series.forceDL||f.isInsidePlot(h,x(i),g)||d&&f.isInsidePlot(h,g?d.x+1:d.y+d.height-1,g));if(m)d=v({x:g?f.plotWidth-i:h,y:x(g?f.plotHeight-h:i),width:0,height:0},d),v(c,{width:k.width,height:k.height}),c.rotation?(a=f.renderer.rotCorr(j,c.rotation),b[e?"attr":"animate"]({x:d.x+
308
- 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,p(c.overflow,"justify")==="justify"?this.justifyDataLabel(b,c,g,k,d,e):p(c.crop,!0)&&(m=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}));if(!m)Wa(b),b.attr({y:-9999}),b.placed=!1};O.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g=this.chart,h=b.align,i=b.verticalAlign,k,j,m=a.box?0:a.padding||0;k=c.x+m;if(k<0)h==="right"?b.align=
309
- "left":b.x=-k,j=!0;k=c.x+d.width-m;if(k>g.plotWidth)h==="left"?b.align="right":b.x=g.plotWidth-k,j=!0;k=c.y+m;if(k<0)i==="bottom"?b.verticalAlign="top":b.y=-k,j=!0;k=c.y+d.height-m;if(k>g.plotHeight)i==="top"?b.verticalAlign="bottom":b.y=g.plotHeight-k,j=!0;if(j)a.placed=!f,a.align(b,null,e)};if(K.pie)K.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,d=a.chart,e=a.options.dataLabels,f=p(e.connectorPadding,10),g=p(e.connectorWidth,1),h=d.plotWidth,i=d.plotHeight,k,j,m=p(e.softConnector,
310
- !0),l=e.distance,o=a.center,q=o[2]/2,r=o[1],D=l>0,B,w,y,u=[[],[]],s,v,z,C,A,F=[0,0,0,0],K=function(a,b){return b.y-a.y};if(a.visible&&(e.enabled||a._hasPointLabels)){O.prototype.drawDataLabels.apply(a);n(b,function(a){a.dataLabel&&a.visible&&u[a.half].push(a)});for(C=2;C--;){var H=[],L=[],J=u[C],G=J.length,I;if(G){a.sortByAngle(J,C-0.5);for(A=b=0;!b&&J[A];)b=J[A]&&J[A].dataLabel&&(J[A].dataLabel.getBBox().height||21),A++;if(l>0){w=E(r+q+l,d.plotHeight);for(A=t(0,r-q-l);A<=w;A+=b)H.push(A);w=H.length;
311
- if(G>w){c=[].concat(J);c.sort(K);for(A=G;A--;)c[A].rank=A;for(A=G;A--;)J[A].rank>=w&&J.splice(A,1);G=J.length}for(A=0;A<G;A++){c=J[A];y=c.labelPos;c=9999;var N,M;for(M=0;M<w;M++)N=P(H[M]-y[1]),N<c&&(c=N,I=M);if(I<A&&H[A]!==null)I=A;else for(w<G-A+I&&H[A]!==null&&(I=w-G+A);H[I]===null;)I++;L.push({i:I,y:H[I]});H[I]=null}L.sort(K)}for(A=0;A<G;A++){c=J[A];y=c.labelPos;B=c.dataLabel;z=c.visible===!1?"hidden":"inherit";c=y[1];if(l>0){if(w=L.pop(),I=w.i,v=w.y,c>v&&H[I+1]!==null||c<v&&H[I-1]!==null)v=E(t(0,
312
- c),d.plotHeight)}else v=c;s=e.justify?o[0]+(C?-1:1)*(q+l):a.getX(v===r-q-l||v===r+q+l?c:v,C);B._attr={visibility:z,align:y[6]};B._pos={x:s+e.x+({left:f,right:-f}[y[6]]||0),y:v+e.y-10};B.connX=s;B.connY=v;if(this.options.size===null)w=B.width,s-w<f?F[3]=t(x(w-s+f),F[3]):s+w>h-f&&(F[1]=t(x(s+w-h+f),F[1])),v-b/2<0?F[0]=t(x(-v+b/2),F[0]):v+b/2>i&&(F[2]=t(x(v+b/2-i),F[2]))}}}if(Aa(F)===0||this.verifyDataLabelOverflow(F))this.placeDataLabels(),D&&g&&n(this.points,function(b){k=b.connector;y=b.labelPos;
313
- if((B=b.dataLabel)&&B._pos&&b.visible)z=B._attr.visibility,s=B.connX,v=B.connY,j=m?["M",s+(y[6]==="left"?5:-5),v,"C",s,v,2*y[2]-y[4],2*y[3]-y[5],y[2],y[3],"L",y[4],y[5]]:["M",s+(y[6]==="left"?5:-5),v,"L",y[2],y[3],"L",y[4],y[5]],k?(k.animate({d:j}),k.attr("visibility",z)):b.connector=k=a.chart.renderer.path(j).attr({"stroke-width":g,stroke:e.connectorColor||b.color||"#606060",visibility:z}).add(a.dataLabelsGroup);else if(k)b.connector=k.destroy()})}},K.pie.prototype.placeDataLabels=function(){n(this.points,
314
- function(a){var b=a.dataLabel;if(b&&a.visible)(a=b._pos)?(b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999})})},K.pie.prototype.alignDataLabel=la,K.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e=c.minSize||80,f=e,g;d[0]!==null?f=t(b[2]-t(a[1],a[3]),e):(f=t(b[2]-a[1]-a[3],e),b[0]+=(a[3]-a[1])/2);d[1]!==null?f=t(E(f,b[2]-t(a[0],a[2])),e):(f=t(E(f,b[2]-a[0]-a[2]),e),b[1]+=(a[0]-a[2])/2);f<b[2]?(b[2]=f,b[3]=Math.min(/%$/.test(c.innerSize||
315
- 0)?f*parseFloat(c.innerSize||0)/100:parseFloat(c.innerSize||0),f),this.translate(b),n(this.points,function(a){if(a.dataLabel)a.dataLabel._pos=null}),this.drawDataLabels&&this.drawDataLabels()):g=!0;return g};if(K.column)K.column.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart.inverted,g=a.series,h=a.dlBox||a.shapeArgs,i=p(a.below,a.plotY>p(this.translatedThreshold,g.yAxis.len)),k=p(c.inside,!!this.options.stacking);if(h){d=C(h);if(d.y<0)d.height+=d.y,d.y=0;h=d.y+d.height-g.yAxis.len;
316
- h>0&&(d.height-=h);f&&(d={x:g.yAxis.len-d.y-d.height,y:g.xAxis.len-d.x-d.width,width:d.height,height:d.width});if(!k)f?(d.x+=i?0:d.width,d.width=0):(d.y+=i?d.height:0,d.height=0)}c.align=p(c.align,!f||k?"center":i?"right":"left");c.verticalAlign=p(c.verticalAlign,f||k?"middle":i?"top":"bottom");O.prototype.alignDataLabel.call(this,a,b,c,d,e)};(function(a){var b=a.Chart,c=a.each,d=a.pick,e=a.addEvent;b.prototype.callbacks.push(function(a){function b(){var e=[];c(a.series,function(a){var b=a.options.dataLabels,
317
- f=a.dataLabelCollections||["dataLabel"];(b.enabled||a._hasPointLabels)&&!b.allowOverlap&&a.visible&&c(f,function(b){c(a.points,function(a){if(a[b])a[b].labelrank=d(a.labelrank,a.shapeArgs&&a.shapeArgs.height),e.push(a[b])})})});a.hideOverlappingLabels(e)}b();e(a,"redraw",b)});b.prototype.hideOverlappingLabels=function(a){var b=a.length,d,e,k,j,m,l,o;for(e=0;e<b;e++)if(d=a[e])d.oldOpacity=d.opacity,d.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(e=0;e<b;e++){k=a[e];
318
- for(d=e+1;d<b;++d)if(j=a[d],k&&j&&k.placed&&j.placed&&k.newOpacity!==0&&j.newOpacity!==0&&(m=k.alignAttr,l=j.alignAttr,o=2*(k.box?0:k.padding),m=!(l.x>m.x+(k.width-o)||l.x+(j.width-o)<m.x||l.y>m.y+(k.height-o)||l.y+(j.height-o)<m.y)))(k.labelrank<j.labelrank?k:j).newOpacity=0}c(a,function(a){var b,c;if(a){c=a.newOpacity;if(a.oldOpacity!==c&&a.placed)c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b);a.isOld=!0}})}})(z);var mb=z.TrackerMixin={drawTrackerPoint:function(){var a=
319
- 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!==s&&d!==b.hoverPoint)d.onMouseOver(a)};n(a.points,function(a){if(a.graphic)a.graphic.element.point=a;if(a.dataLabel)a.dataLabel.element.point=a});if(!a._hasTracking)n(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),ab))a[b].on("touchstart",f)}),a._hasTracking=!0},
320
- drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,i=f.options.tooltip.snap,k=a.tracker,j=b.cursor,m=j&&{cursor:j},j=a.singlePoints,l,o=function(){if(f.hoverSeries!==a)a.onMouseOver()},q="rgba(192,192,192,"+(ca?1.0E-4:0.002)+")";if(e&&!c)for(l=e+1;l--;)d[l]==="M"&&d.splice(l+1,0,d[l+1]-i,d[l+2],"L"),(l&&d[l]==="M"||l===e)&&d.splice(l,0,"L",d[l-2]+i,d[l-1]);for(l=0;l<j.length;l++)e=j[l],d.push("M",e.plotX-
321
- i,e.plotY,"L",e.plotX+i,e.plotY);k?k.attr({d:d}):(a.tracker=h.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:q,fill:c?q:"none","stroke-width":b.lineWidth+(c?0:2*i),zIndex:2}).add(a.group),n([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(m);if(ab)a.on("touchstart",o)}))}};if(K.column)Ea.prototype.drawTracker=mb.drawTrackerPoint;if(K.pie)K.pie.prototype.drawTracker=
322
- mb.drawTrackerPoint;if(K.scatter)ya.prototype.drawTracker=mb.drawTrackerPoint;v(ub.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&&a.setVisible()},b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):I(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=
323
- $("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);A(a.checkbox,"click",function(b){I(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});N.legend.itemStyle.cursor="pointer";v(Ia.prototype,{showResetZoom:function(){var a=this,b=N.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f=c.relativeTo==="chart"?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,
324
- 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;I(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,c=this.pointer,d=!1,e;!a||a.resetSelection?n(this.axes,function(a){b=a.zoom()}):n(a.xAxis.concat(a.yAxis),function(a){var e=a.axis,h=e.isXAxis;if(c[h?"zoomX":"zoomY"]||c[h?"pinchX":"pinchY"])b=e.zoom(a.min,a.max),e.displayBtn&&(d=!0)});e=this.resetZoomButton;if(d&&!e)this.showResetZoom();
325
- else if(!d&&ea(e))this.resetZoomButton=e.destroy();b&&this.redraw(p(this.options.chart.animation,a&&a.animation,this.pointCount<100))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&n(d,function(a){a.setState()});n(b==="xy"?[1,0]:[1],function(b){var d=a[b?"chartX":"chartY"],h=c[b?"xAxis":"yAxis"][0],i=c[b?"mouseDownX":"mouseDownY"],k=(h.pointRange||0)/2,j=h.getExtremes(),m=h.toValue(i-d,!0)+k,k=h.toValue(i+c[b?"plotWidth":"plotHeight"]-d,!0)-k,i=i>d;if(h.series.length&&(i||m>E(j.dataMin,j.min))&&
326
- (!i||k<t(j.dataMax,j.max)))h.setExtremes(m,k,!1,!1,{trigger:"pan"}),e=!0;c[b?"mouseDownX":"mouseDownY"]=d});e&&c.redraw(!1);J(c.container,{cursor:"move"})}});v(Da.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart,a=p(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;d.options.data[Ha(c,d.data)]=c.options;c.setState(a&&"select");b||n(e.getSelectedPoints(),function(a){if(a.selected&&a!==c)a.selected=a.options.selected=!1,d.options.data[Ha(a,
327
- d.data)]=a.options,a.setState(""),a.firePointEvent("unselect")})})},onMouseOver:function(a,b){var c=this.series,d=c.chart,e=d.tooltip,f=d.hoverPoint;if(d.hoverSeries!==c)c.onMouseOver();if(f&&f!==this)f.onMouseOut();if(this.series&&(this.firePointEvent("mouseOver"),e&&(!e.shared||c.noSharedTooltip)&&e.refresh(this,a),this.setState("hover"),!b))d.hoverPoint=this},onMouseOut:function(){var a=this.series.chart,b=a.hoverPoints;this.firePointEvent("mouseOut");if(!b||Ha(this,b)===-1)this.setState(),a.hoverPoint=
328
- null},importEvents:function(){if(!this.hasImportedEvents){var a=C(this.series.options.point,this.options).events,b;this.events=a;for(b in a)A(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a,b){var c=R(this.plotX),d=this.plotY,e=this.series,f=e.options.states,g=S[e.type].marker&&e.options.marker,h=g&&!g.enabled,i=g&&g.states[a],k=i&&i.enabled===!1,j=e.stateMarkerGraphic,m=this.marker||{},l=e.chart,o=e.halo,q,a=a||"";q=this.pointAttr[a]||e.pointAttr[a];if(!(a===this.state&&!b||this.selected&&
329
- a!=="select"||f[a]&&f[a].enabled===!1||a&&(k||h&&i.enabled===!1)||a&&m.states&&m.states[a]&&m.states[a].enabled===!1)){if(this.graphic)g=g&&this.graphic.symbolName&&q.r,this.graphic.attr(C(q,g?{x:c-g,y:d-g,width:2*g,height:2*g}:{})),j&&j.hide();else{if(a&&i)if(g=i.radius,m=m.symbol||e.symbol,j&&j.currentSymbol!==m&&(j=j.destroy()),j)j[b?"animate":"attr"]({x:c-g,y:d-g});else if(m)e.stateMarkerGraphic=j=l.renderer.symbol(m,c-g,d-g,2*g,2*g).attr(q).add(e.markerGroup),j.currentSymbol=m;if(j)j[a&&l.isInsidePlot(c,
330
- d,l.inverted)?"show":"hide"](),j.element.point=this}if((c=f[a]&&f[a].halo)&&c.size){if(!o)e.halo=o=l.renderer.path().add(l.seriesGroup);o.attr(v(ca?{fill:this.color||e.color,"fill-opacity":c.opacity}:{fill:ka(this.color||e.color).setOpacity(c.opacity).get()},c.attributes))[b?"animate":"attr"]({d:this.haloPath(c.size)})}else o&&o.attr({d:[]});this.state=a}},haloPath:function(a){var b=this.series,c=b.chart,d=b.getPlotBox(),e=c.inverted,f=Math.floor(this.plotX);return c.renderer.symbols.circle(d.translateX+
331
- (e?b.yAxis.len-this.plotY:f)-a,d.translateY+(e?b.xAxis.len-f:this.plotY)-a,a*2,a*2)}});v(O.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&I(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&&I(this,"mouseOut");c&&!a.stickyTracking&&(!c.shared||this.noSharedTooltip)&&
332
- 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]&&d[a].enabled===!1)&&(a&&(e=d[a].lineWidth||e+(d[a].lineWidthPlus||0)),c&&!c.dashstyle))){a={"stroke-width":e};for(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,h=c.visible;f=(c.visible=a=c.userOptions.visible=a===s?!h:a)?"show":
333
- "hide";n(["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&&n(d.series,function(a){if(a.options.stacking&&a.visible)a.isDirty=!0});n(c.linkedSeries,function(b){b.setVisible(a,!1)});if(g)d.isDirtyBox=!0;b!==!1&&d.redraw();I(c,f)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=
334
- a=a===s?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;I(this,a?"select":"unselect")},drawTracker:mb.drawTrackerGraph});M(O.prototype,"init",function(a){var b;a.apply(this,Array.prototype.slice.call(arguments,1));(b=this.xAxis)&&b.options.ordinal&&A(this,"updatedData",function(){delete b.ordinalIndex})});M(L.prototype,"getTimeTicks",function(a,b,c,d,e,f,g,h){var i=0,k,j,m={},l,o,q,n=[],p=-Number.MAX_VALUE,B=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||
335
- !f||f.length<3||c===s)return a.call(this,b,c,d,e);o=f.length;for(k=0;k<o;k++){q=k&&f[k-1]>d;f[k]<c&&(i=k);if(k===o-1||f[k+1]-f[k]>g*5||q){if(f[k]>p){for(j=a.call(this,b,f[i],f[k],e);j.length&&j[0]<=p;)j.shift();j.length&&(p=j[j.length-1]);n=n.concat(j)}i=k+1}if(q)break}a=j.info;if(h&&a.unitRange<=G.hour){k=n.length-1;for(i=1;i<k;i++)ja("%d",n[i])!==ja("%d",n[i-1])&&(m[n[i]]="day",l=!0);l&&(m[n[0]]="day");a.higherRanks=m}n.info=a;if(h&&u(B)){h=a=n.length;k=[];var w;for(l=[];h--;)i=this.translate(n[h]),
336
- w&&(l[h]=w-i),k[h]=w=i;l.sort();l=l[R(l.length/2)];l<B*0.6&&(l=null);h=n[a-1]>d?a-1:a;for(w=void 0;h--;)i=k[h],d=w-i,w&&d<B*0.8&&(l===null||d<l*0.8)?(m[n[h]]&&!m[n[h+1]]?(d=h+1,w=i):d=h,n.splice(d,1)):w=i}return n});v(L.prototype,{beforeSetTickPositions:function(){var a,b=[],c=!1,d,e=this.getExtremes(),f=e.min,g=e.max,h,i=this.isXAxis&&!!this.options.breaks;if((e=this.options.ordinal)||i){n(this.series,function(c,d){if(c.visible!==!1&&(c.takeOrdinalPosition!==!1||i))if(b=b.concat(c.processedXData),
337
- a=b.length,b.sort(function(a,b){return a-b}),a)for(d=a-1;d--;)b[d]===b[d+1]&&b.splice(d,1)});a=b.length;if(a>2){d=b[1]-b[0];for(h=a-1;h--&&!c;)b[h+1]-b[h]!==d&&(c=!0);if(!this.options.keepOrdinalPadding&&(b[0]-f>d||g-b[b.length-1]>d))c=!0}c?(this.ordinalPositions=b,d=this.val2lin(t(f,b[0]),!0),h=t(this.val2lin(E(g,b[b.length-1]),!0),1),this.ordinalSlope=g=(g-f)/(h-d),this.ordinalOffset=f-d*g):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=s}this.doPostTranslate=e&&c||i;this.groupIntervalFactor=
338
- null},val2lin:function(a,b){var c=this.ordinalPositions,d;if(c){var e=c.length,f;for(d=e;d--;)if(c[d]===a){f=d;break}for(d=e-1;d--;)if(a>c[d]||d===0){c=(a-c[d])/(c[d+1]-c[d]);f=d+c;break}d=b?f:this.ordinalSlope*(f||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,b){var c=this.ordinalPositions;if(c){var d=this.ordinalSlope,e=this.ordinalOffset,f=c.length-1,g,h;if(b)a<0?a=c[0]:a>f?a=c[f]:(f=R(a),h=a-f);else for(;f--;)if(g=d*f+e,a>=g){d=d*(f+1)+e;h=(a-g)/(d-g);break}c=h!==s&&c[f]!==s?c[f]+
339
- (h?h*(c[f+1]-c[f]):0):a}else c=a;return c},getExtendedPositions:function(){var a=this.chart,b=this.series[0].currentDataGrouping,c=this.ordinalIndex,d=b?b.count+b.unitName:"raw",e=this.getExtremes(),f,g;if(!c)c=this.ordinalIndex={};if(!c[d])f={series:[],getExtremes:function(){return{min:e.dataMin,max:e.dataMax}},options:{ordinal:!0},val2lin:L.prototype.val2lin},n(this.series,function(c){g={xAxis:f,xData:c.xData,chart:a,destroyGroupedData:la};g.options={dataGrouping:b?{enabled:!0,forced:!0,approximation:"open",
340
- units:[[b.unitName,[b.count]]]}:{enabled:!1}};c.processData.apply(g);f.series.push(g)}),this.beforeSetTickPositions.apply(f),c[d]=f.ordinalPositions;return c[d]},getGroupIntervalFactor:function(a,b,c){var d,c=c.processedXData,e=c.length,f=[];d=this.groupIntervalFactor;if(!d){for(d=0;d<e-1;d++)f[d]=c[d+1]-c[d];f.sort(function(a,b){return a-b});f=f[R(e/2)];a=t(a,c[0]);b=E(b,c[e-1]);this.groupIntervalFactor=d=e*f/(b-a)}return d},postProcessTickInterval:function(a){var b=this.ordinalSlope;return b?this.options.breaks?
341
- this.closestPointRange:a/(b/this.closestPointRange):a}});M(Ia.prototype,"pan",function(a,b){var c=this.xAxis[0],d=b.chartX,e=!1;if(c.options.ordinal&&c.series.length){var f=this.mouseDownX,g=c.getExtremes(),h=g.dataMax,i=g.min,k=g.max,j=this.hoverPoints,m=c.closestPointRange,f=(f-d)/(c.translationSlope*(c.ordinalSlope||m)),l={ordinalPositions:c.getExtendedPositions()},m=c.lin2val,o=c.val2lin,q;if(l.ordinalPositions){if(P(f)>1)j&&n(j,function(a){a.setState()}),f<0?(j=l,q=c.ordinalPositions?c:l):(j=
342
- c.ordinalPositions?c:l,q=l),l=q.ordinalPositions,h>l[l.length-1]&&l.push(h),this.fixedRange=k-i,f=c.toFixedRange(null,null,m.apply(j,[o.apply(j,[i,!0])+f,!0]),m.apply(q,[o.apply(q,[k,!0])+f,!0])),f.min>=E(g.dataMin,i)&&f.max<=t(h,k)&&c.setExtremes(f.min,f.max,!0,!1,{trigger:"pan"}),this.mouseDownX=d,J(this.container,{cursor:"move"})}else e=!0}else e=!0;e&&a.apply(this,Array.prototype.slice.call(arguments,1))});M(O.prototype,"getSegments",function(a){var b,c=this.options.gapSize,d=this.xAxis;a.apply(this,
343
- Array.prototype.slice.call(arguments,1));if(c)b=this.segments,n(b,function(a,f){for(var g=a.length-1;g--;)if(a[g].x<d.min&&a[g+1].x>d.max){b.length=0;break}else a[g+1].x-a[g].x>d.closestPointRange*c&&b.splice(f+1,0,a.splice(g+1,a.length-g))})});(function(a){typeof module==="object"&&module.exports?module.exports=a:a(z)})(function(a){function b(){return Array.prototype.slice.call(arguments,1)}function c(a){a.apply(this);this.drawBreaks()}var d=a.pick,e=a.wrap,f=a.each,g=a.extend,h=a.fireEvent,i=a.Axis,
344
- k=a.Series;g(i.prototype,{isInBreak:function(a,b){var c=a.repeat||Infinity,d=a.from,e=a.to-a.from,c=b>=d?(b-d)%c:c-(d-b)%c;return a.inclusive?c<=e:c<e&&c!==0},isInAnyBreak:function(a,b){var c=this.options.breaks,e=c&&c.length,f,g,h;if(e){for(;e--;)this.isInBreak(c[e],a)&&(f=!0,g||(g=d(c[e].showPoints,this.isXAxis?!1:!0)));h=f&&b?f&&!g:f}return h}});e(i.prototype,"setTickPositions",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var b=this.tickPositions,c=
345
- this.tickPositions.info,d=[],e;for(e=0;e<b.length;e++)this.isInAnyBreak(b[e])||d.push(b[e]);this.tickPositions=d;this.tickPositions.info=c}});e(i.prototype,"init",function(a,b,c){if(c.breaks&&c.breaks.length)c.ordinal=!1;a.call(this,b,c);if(this.options.breaks){var d=this;d.doPostTranslate=!0;this.val2lin=function(a){var b=a,c,e;for(e=0;e<d.breakArray.length;e++)if(c=d.breakArray[e],c.to<=a)b-=c.len;else if(c.from>=a)break;else if(d.isInBreak(c,a)){b-=a-c.from;break}return b};this.lin2val=function(a){var b,
346
- c;for(c=0;c<d.breakArray.length;c++)if(b=d.breakArray[c],b.from>=a)break;else b.to<a?a+=b.len:d.isInBreak(b,a)&&(a+=b.len);return a};this.setExtremes=function(a,b,c,d,e){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(b);)b-=this.closestPointRange;i.prototype.setExtremes.call(this,a,b,c,d,e)};this.setAxisTranslation=function(a){i.prototype.setAxisTranslation.call(this,a);var b=d.options.breaks,a=[],c=[],e=0,f,g,j=d.userMin||d.min,k=d.userMax||d.max,l,m;for(m in b)g=b[m],
347
- f=g.repeat||Infinity,d.isInBreak(g,j)&&(j+=g.to%f-j%f),d.isInBreak(g,k)&&(k-=k%f-g.from%f);for(m in b){g=b[m];l=g.from;for(f=g.repeat||Infinity;l-f>j;)l-=f;for(;l<j;)l+=f;for(;l<k;l+=f)a.push({value:l,move:"in"}),a.push({value:l+(g.to-g.from),move:"out",size:g.breakSize})}a.sort(function(a,b){return a.value===b.value?(a.move==="in"?0:1)-(b.move==="in"?0:1):a.value-b.value});b=0;l=j;for(m in a){g=a[m];b+=g.move==="in"?1:-1;if(b===1&&g.move==="in")l=g.value;b===0&&(c.push({from:l,to:g.value,len:g.value-
348
- l-(g.size||0)}),e+=g.value-l-(g.size||0))}d.breakArray=c;h(d,"afterBreaks");d.transA*=(k-d.min)/(k-j-e);d.min=j;d.max=k}}});e(k.prototype,"generatePoints",function(a){a.apply(this,b(arguments));var c=this.xAxis,d=this.yAxis,e=this.points,f,g=e.length,h=this.options.connectNulls,i;if(c&&d&&(c.options.breaks||d.options.breaks))for(;g--;)if(f=e[g],i=f.y===null&&h===!1,!i&&(c.isInAnyBreak(f.x,!0)||d.isInAnyBreak(f.y,!0)))e.splice(g,1),this.data[g]&&this.data[g].destroyElements()});a.Series.prototype.drawBreaks=
349
- function(){var a=this,b=a.points,c,e,g,i,k;f(["y","x"],function(n){c=a[n+"Axis"];e=c.breakArray||[];g=c.isXAxis?c.min:d(a.options.threshold,c.min);f(b,function(a){k=d(a["stack"+n.toUpperCase()],a[n]);f(e,function(b){i=!1;if(g<b.from&&k>b.to||g>b.from&&k<b.from)i="pointBreak";else if(g<b.from&&k>b.from&&k<b.to||g>b.from&&k>b.to&&k<b.from)i="pointInBreak";i&&h(c,i,{point:a,brk:b})})})})};e(a.seriesTypes.column.prototype,"drawPoints",c);e(a.Series.prototype,"drawPoints",c)});var da=O.prototype,ec=da.processData,
350
- fc=da.generatePoints,gc=da.destroy,hc={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y",
351
- "%Y","-%Y"]}},Zb={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},$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]],["week",[1]],["month",
352
- [1,3,6]],["year",null]],Pa={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length,a=Pa.sum(a);typeof a==="number"&&b&&(a/=b);return a},open:function(a){return a.length?a[0]:a.hasNulls?null:s},high:function(a){return a.length?Aa(a):a.hasNulls?null:s},low:function(a){return a.length?Ma(a):a.hasNulls?null:s},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:s},ohlc:function(a,b,c,d){a=Pa.open(a);b=Pa.high(b);
353
- c=Pa.low(c);d=Pa.close(d);if(typeof a==="number"||typeof b==="number"||typeof c==="number"||typeof d==="number")return[a,b,c,d]},range:function(a,b){a=Pa.low(a);b=Pa.high(b);if(typeof a==="number"||typeof b==="number")return[a,b]}};da.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,g=[],h=[],i=a.length,k,j,m=!!b,l=[[],[],[],[]],d=typeof d==="function"?d:Pa[d],o=this.pointArrayMap,n=o&&o.length,p;for(p=0;p<=i;p++)if(a[p]>=c[0])break;for(;p<=i;p++){for(;c[1]!==s&&a[p]>=c[1]||p===i;)if(k=
354
- c.shift(),j=d.apply(0,l),j!==s&&(g.push(k),h.push(j)),l[0]=[],l[1]=[],l[2]=[],l[3]=[],p===i)break;if(p===i)break;if(o){k=this.cropStart+p;k=e&&e[k]||this.pointClass.prototype.applyOptions.apply({series:this},[f[k]]);var u;for(j=0;j<n;j++)if(u=k[o[j]],typeof u==="number")l[j].push(u);else if(u===null)l[j].hasNulls=!0}else if(k=m?b[p]:null,typeof k==="number")l[0].push(k);else if(k===null)l[0].hasNulls=!0}return[g,h]};da.processData=function(){var a=this.chart,b=this.options.dataGrouping,c=this.allowDG!==
355
- !1&&b&&p(b.enabled,a.options._stock),d;this.forceCrop=c;this.groupPixelWidth=null;this.hasProcessed=!0;if(ec.apply(this,arguments)!==!1&&c){this.destroyGroupedData();var e=this.processedXData,f=this.processedYData,g=a.plotSizeX,a=this.xAxis,h=a.options.ordinal,i=this.groupPixelWidth=a.getGroupPixelWidth&&a.getGroupPixelWidth();if(i){d=!0;this.points=null;var k=a.getExtremes(),c=k.min,k=k.max,h=h&&a.getGroupIntervalFactor(c,k,this)||1,g=i*(k-c)/g*h,i=a.getTimeTicks(a.normalizeTimeTickInterval(g,b.units||
356
- $b),c,k,a.options.startOfWeek,e,this.closestPointRange),f=da.groupData.apply(this,[e,f,i,b.approximation]),e=f[0],f=f[1];if(b.smoothed){b=e.length-1;for(e[b]=Math.min(e[b],k);b--&&b>0;)e[b]+=g/2;e[0]=Math.max(e[0],c)}this.currentDataGrouping=i.info;this.closestPointRange=i.info.totalRange;if(u(e[0])&&e[0]<a.dataMin){if(a.min===a.dataMin)a.min=e[0];a.dataMin=e[0]}this.processedXData=e;this.processedYData=f}else this.currentDataGrouping=null;this.hasGroupedData=d}};da.destroyGroupedData=function(){var a=
357
- this.groupedData;n(a||[],function(b,c){b&&(a[c]=b.destroy?b.destroy():null)});this.groupedData=null};da.generatePoints=function(){fc.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};M(Lb.prototype,"tooltipFooterHeaderFormatter",function(a,b,c){var d=b.series,e=d.tooltipOptions,f=d.options.dataGrouping,g=e.xDateFormat,h,i=d.xAxis;return i&&i.options.type==="datetime"&&f&&sa(b.key)?(a=d.currentDataGrouping,f=f.dateTimeLabelFormats,a?(i=f[a.unitName],a.count===
358
- 1?g=i[0]:(g=i[1],h=i[2])):!g&&f&&(g=this.getXDateFormat(b,e,i)),g=ja(g,b.key),h&&(g+=ja(h,b.key+a.totalRange-1)),Fa(e[(c?"footer":"header")+"Format"],{point:v(b,{key:g}),series:d})):a.call(this,b,c)});da.destroy=function(){for(var a=this.groupedData||[],b=a.length;b--;)a[b]&&a[b].destroy();gc.apply(this)};M(da,"setOptions",function(a,b){var c=a.call(this,b),d=this.type,e=this.chart.options.plotOptions,f=S[d].dataGrouping;if(Zb[d])f||(f=C(hc,Zb[d])),c.dataGrouping=C(f,e.series&&e.series.dataGrouping,
359
- e[d].dataGrouping,b.dataGrouping);if(this.chart.options._stock)this.requireSorting=!0;return c});M(L.prototype,"setScale",function(a){a.call(this);n(this.series,function(a){a.hasProcessed=!1})});L.prototype.getGroupPixelWidth=function(){var a=this.series,b=a.length,c,d=0,e=!1,f;for(c=b;c--;)(f=a[c].options.dataGrouping)&&(d=t(d,f.groupPixelWidth));for(c=b;c--;)if((f=a[c].options.dataGrouping)&&a[c].hasProcessed)if(b=(a[c].processedXData||a[c].data).length,a[c].groupPixelWidth||b>this.chart.plotSizeX/
360
- d||b&&f.forced)e=!0;return e?d:0};L.prototype.setDataGrouping=function(a,b){var c,b=p(b,!0);a||(a={forced:!1,units:null});if(this instanceof L)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:a},!1);else n(this.chart.options.series,function(b){b.dataGrouping=a},!1);b&&this.chart.redraw()};S.ohlc=C(S.column,{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},
361
- states:{hover:{lineWidth:3}},threshold:null});Z=ia(K.column,{type:"ohlc",pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"high",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},upColorProp:"stroke",getAttribs:function(){K.column.prototype.getAttribs.apply(this,arguments);var a=this.options,b=a.states,a=a.upColor||this.color,c=C(this.pointAttr),d=this.upColorProp;c[""][d]=a;c.hover[d]=b.hover.upColor||a;c.select[d]=b.select.upColor||
362
- a;n(this.points,function(a){if(a.open<a.close&&!a.options.color)a.pointAttr=c})},translate:function(){var a=this.yAxis;K.column.prototype.translate.apply(this);n(this.points,function(b){if(b.open!==null)b.plotOpen=a.translate(b.open,0,1,0,1);if(b.close!==null)b.plotClose=a.translate(b.close,0,1,0,1)})},drawPoints:function(){var a=this,b=a.chart,c,d,e,f,g,h,i,k;n(a.points,function(j){if(j.plotY!==s)i=j.graphic,c=j.pointAttr[j.selected?"selected":""]||a.pointAttr[""],f=c["stroke-width"]%2/2,k=x(j.plotX)-
363
- f,g=x(j.shapeArgs.width/2),h=["M",k,x(j.yBottom),"L",k,x(j.plotY)],j.open!==null&&(d=x(j.plotOpen)+f,h.push("M",k,d,"L",k-g,d)),j.close!==null&&(e=x(j.plotClose)+f,h.push("M",k,e,"L",k+g,e)),i?i.attr(c).animate({d:h}):j.graphic=b.renderer.path(h).attr(c).add(a.group)})},animate:null});K.ohlc=Z;S.candlestick=C(S.column,{lineColor:"black",lineWidth:1,states:{hover:{lineWidth:2}},tooltip:S.ohlc.tooltip,threshold:null,upColor:"white"});Z=ia(Z,{type:"candlestick",pointAttrToOptions:{fill:"color",stroke:"lineColor",
364
- "stroke-width":"lineWidth"},upColorProp:"fill",getAttribs:function(){K.ohlc.prototype.getAttribs.apply(this,arguments);var a=this.options,b=a.states,c=a.upLineColor||a.lineColor,d=b.hover.upLineColor||c,e=b.select.upLineColor||c;n(this.points,function(a){if(a.open<a.close){if(a.lineColor)a.pointAttr=C(a.pointAttr),c=a.lineColor;a.pointAttr[""].stroke=c;a.pointAttr.hover.stroke=d;a.pointAttr.select.stroke=e}})},drawPoints:function(){var a=this,b=a.chart,c,d=a.pointAttr[""],e,f,g,h,i,k,j,m,l,o,q;n(a.points,
365
- function(n){l=n.graphic;if(n.plotY!==s)c=n.pointAttr[n.selected?"selected":""]||d,j=c["stroke-width"]%2/2,m=x(n.plotX)-j,e=n.plotOpen,f=n.plotClose,g=V.min(e,f),h=V.max(e,f),q=x(n.shapeArgs.width/2),i=x(g)!==x(n.plotY),k=h!==n.yBottom,g=x(g)+j,h=x(h)+j,o=["M",m-q,h,"L",m-q,g,"L",m+q,g,"L",m+q,h,"Z","M",m,g,"L",m,i?x(n.plotY):g,"M",m,h,"L",m,k?x(n.yBottom):h],l?l.attr(c).animate({d:o}):n.graphic=b.renderer.path(o).attr(c).add(a.group).shadow(a.options.shadow)})}});K.candlestick=Z;var vb=ra.prototype.symbols;
366
- S.flags=C(S.column,{fillColor:"white",lineWidth:1,pointRange:0,shape:"flag",stackDistance:12,states:{hover:{lineColor:"black",fillColor:"#FCFFC5"}},style:{fontSize:"11px",fontWeight:"bold",textAlign:"center"},tooltip:{pointFormat:"{point.text}<br/>"},threshold:null,y:-30});K.flags=ia(K.column,{type:"flags",sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:O.prototype.init,pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth",
367
- r:"radius"},translate:function(){K.column.prototype.translate.apply(this);var a=this.chart,b=this.points,c=b.length-1,d,e,f=this.options.onSeries,f=(d=f&&a.get(f))&&d.options.step,g=d&&d.points,h=g&&g.length,i=this.xAxis,k=i.getExtremes(),j,m,l;if(d&&d.visible&&h){d=d.currentDataGrouping;m=g[h-1].x+(d?d.totalRange:0);for(b.sort(function(a,b){return a.x-b.x});h--&&b[c];)if(d=b[c],j=g[h],j.x<=d.x&&j.plotY!==s){if(d.x<=m)d.plotY=j.plotY,j.x<d.x&&!f&&(l=g[h+1])&&l.plotY!==s&&(d.plotY+=(d.x-j.x)/(l.x-
368
- j.x)*(l.plotY-j.plotY));c--;h++;if(c<0)break}}n(b,function(c,d){var f;if(c.plotY===s)c.x>=k.min&&c.x<=k.max?c.plotY=a.chartHeight-i.bottom-(i.opposite?i.height:0)+i.offset-a.plotTop:c.shapeArgs={};if((e=b[d-1])&&e.plotX===c.plotX){if(e.stackIndex===s)e.stackIndex=0;f=e.stackIndex+1}c.stackIndex=f})},drawPoints:function(){var a,b=this.pointAttr[""],c=this.points,d=this.chart.renderer,e,f,g=this.options,h=g.y,i,k,j,m,l,o;for(k=c.length;k--;)if(j=c[k],a=j.plotX>this.xAxis.len,e=j.plotX,e>0&&(e-=p(j.lineWidth,
369
- g.lineWidth)%2),m=j.stackIndex,i=j.options.shape||g.shape,f=j.plotY,f!==s&&(f=j.plotY+h-(m!==s&&m*g.stackDistance)),l=m?s:j.plotX,o=m?s:j.plotY,m=j.graphic,f!==s&&e>=0&&!a)a=j.pointAttr[j.selected?"select":""]||b,m?m.attr({x:e,y:f,r:a.r,anchorX:l,anchorY:o}):j.graphic=d.label(j.options.title||g.title||"A",e,f,i,l,o,g.useHTML).css(C(g.style,j.style)).attr(a).attr({align:i==="flag"?"left":"center",width:g.width,height:g.height}).add(this.markerGroup).shadow(g.shadow),j.tooltipPos=[e,f];else if(m)j.graphic=
370
- m.destroy()},drawTracker:function(){var a=this.points;mb.drawTrackerPoint.apply(this);n(a,function(b){var c=b.graphic;c&&A(c.element,"mouseover",function(){if(b.stackIndex>0&&!b.raised)b._y=c.y,c.attr({y:b._y-8}),b.raised=!0;n(a,function(a){if(a!==b&&a.raised&&a.graphic)a.graphic.attr({y:a._y}),a.raised=!1})})})},animate:la,buildKDTree:la,setClip:la});vb.flag=function(a,b,c,d,e){return["M",e&&e.anchorX||a,e&&e.anchorY||b,"L",a,b+d,a,b,a+c,b,a+c,b+d,a,b+d,"Z"]};n(["circle","square"],function(a){vb[a+
371
- "pin"]=function(b,c,d,e,f){var g=f&&f.anchorX,f=f&&f.anchorY;a==="circle"&&e>d&&(b-=x((e-d)/2),d=e);b=vb[a](b,c,d,e);g&&f&&b.push("M",g,c>f?c:c+e,"L",g,f);return b}});Va===z.VMLRenderer&&n(["flag","circlepin","squarepin"],function(a){lb.prototype.symbols[a]=vb[a]});var Z=[].concat($b),wb=function(a){var b=bb(arguments,function(a){return typeof a==="number"});if(b.length)return Math[a].apply(0,b)};Z[4]=["day",[1,2,3,4]];Z[5]=["week",[1,2,3]];v(N,{navigator:{handles:{backgroundColor:"#ebe7e8",borderColor:"#b2b1b6"},
372
- height:40,margin:25,maskFill:"rgba(128,179,236,0.3)",maskInside:!0,outlineColor:"#b2b1b6",outlineWidth:1,series:{type:K.areaspline===s?"line":"areaspline",color:"#4572A7",compare:null,fillOpacity:0.05,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:Z},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",lineColor:null,lineWidth:1,marker:{enabled:!1},pointRange:0,shadow:!1,threshold:null},xAxis:{tickWidth:0,lineWidth:0,gridLineColor:"#EEE",gridLineWidth:1,
373
- tickPixelInterval:200,labels:{align:"left",style:{color:"#888"},x:3,y:-4},crosshair:!1},yAxis:{gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:0.1,maxPadding:0.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickWidth:0}},scrollbar:{height:gb?20:14,barBackgroundColor:"#bfc8d1",barBorderRadius:0,barBorderWidth:1,barBorderColor:"#bfc8d1",buttonArrowColor:"#666",buttonBackgroundColor:"#ebe7e8",buttonBorderColor:"#bbb",buttonBorderRadius:0,buttonBorderWidth:1,minWidth:6,rifleColor:"#666",
374
- trackBackgroundColor:"#eeeeee",trackBorderColor:"#eeeeee",trackBorderWidth:1,liveRedraw:ca&&!gb}});Gb.prototype={drawHandle:function(a,b){var c=this.chart,d=c.renderer,e=this.elementsToDestroy,f=this.handles,g=this.navigatorOptions.handles,g={fill:g.backgroundColor,stroke:g.borderColor,"stroke-width":1},h;this.rendered||(f[b]=d.g("navigator-handle-"+["left","right"][b]).css({cursor:"ew-resize"}).attr({zIndex:10-b}).add(),h=d.rect(-4.5,0,9,16,0,1).attr(g).add(f[b]),e.push(h),h=d.path(["M",-1.5,4,"L",
375
- -1.5,12,"M",0.5,4,"L",0.5,12]).attr(g).add(f[b]),e.push(h));f[b][c.isResizing?"animate":"attr"]({translateX:this.scrollerLeft+this.scrollbarHeight+parseInt(a,10),translateY:this.top+this.height/2-8})},drawScrollbarButton:function(a){var b=this.chart.renderer,c=this.elementsToDestroy,d=this.scrollbarButtons,e=this.scrollbarHeight,f=this.scrollbarOptions,g;this.rendered||(d[a]=b.g().add(this.scrollbarGroup),g=b.rect(-0.5,-0.5,e+1,e+1,f.buttonBorderRadius,f.buttonBorderWidth).attr({stroke:f.buttonBorderColor,
376
- "stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor}).add(d[a]),c.push(g),g=b.path(["M",e/2+(a?-1:1),e/2-3,"L",e/2+(a?-1:1),e/2+3,e/2+(a?2:-2),e/2]).attr({fill:f.buttonArrowColor}).add(d[a]),c.push(g));a&&d[a].attr({translateX:this.scrollerWidth-e})},render:function(a,b,c,d){var e=this.chart,f=e.renderer,g,h,i,k,j=this.scrollbarGroup,m=this.navigatorGroup,l=this.scrollbar,m=this.xAxis,o=this.scrollbarTrack,n=this.scrollbarHeight,r=this.scrollbarEnabled,s=this.navigatorOptions,B=this.scrollbarOptions,
377
- w=B.minWidth,y=this.height,v=this.top,z=this.navigatorEnabled,A=s.outlineWidth,C=A/2,F=0,H=this.outlineHeight,J=B.barBorderRadius,I=B.barBorderWidth,G=v+C,K;if(u(a)&&!(isNaN(a)||this.hasDragged&&!u(c))){this.navigatorLeft=g=p(m.left,e.plotLeft+n);this.navigatorWidth=h=p(m.len,e.plotWidth-2*n);this.scrollerLeft=i=g-n;this.scrollerWidth=k=k=h+2*n;m.getExtremes&&(K=this.getUnionExtremes(!0))&&(K.dataMin!==m.min||K.dataMax!==m.max)&&m.setExtremes(K.dataMin,K.dataMax,!0,!1);c=p(c,m.translate(a));d=p(d,
378
- m.translate(b));if(isNaN(c)||P(c)===Infinity)c=0,d=k;if(!(m.translate(d,!0)-m.translate(c,!0)<e.xAxis[0].minRange)){this.zoomedMax=E(t(c,d,0),h);this.zoomedMin=t(this.fixedWidth?this.zoomedMax-this.fixedWidth:E(c,d),0);this.range=this.zoomedMax-this.zoomedMin;c=x(this.zoomedMax);b=x(this.zoomedMin);a=c-b;if(!this.rendered){if(z)this.navigatorGroup=m=f.g("navigator").attr({zIndex:3}).add(),this.leftShade=f.rect().attr({fill:s.maskFill}).add(m),s.maskInside?this.leftShade.css({cursor:"ew-resize"}):
379
- this.rightShade=f.rect().attr({fill:s.maskFill}).add(m),this.outline=f.path().attr({"stroke-width":A,stroke:s.outlineColor}).add(m);if(r)this.scrollbarGroup=j=f.g("scrollbar").add(),l=B.trackBorderWidth,this.scrollbarTrack=o=f.rect().attr({x:0,y:-l%2/2,fill:B.trackBackgroundColor,stroke:B.trackBorderColor,"stroke-width":l,r:B.trackBorderRadius||0,height:n}).add(j),this.scrollbar=l=f.rect().attr({y:-I%2/2,height:n,fill:B.barBackgroundColor,stroke:B.barBorderColor,"stroke-width":I,r:J}).add(j),this.scrollbarRifles=
380
- f.path().attr({stroke:B.rifleColor,"stroke-width":1}).add(j)}e=e.isResizing?"animate":"attr";if(z){this.leftShade[e](s.maskInside?{x:g+b,y:v,width:c-b,height:y}:{x:g,y:v,width:b,height:y});if(this.rightShade)this.rightShade[e]({x:g+c,y:v,width:h-c,height:y});this.outline[e]({d:["M",i,G,"L",g+b-C,G,g+b-C,G+H,"L",g+c-C,G+H,"L",g+c-C,G,i+k,G].concat(s.maskInside?["M",g+b+C,G,"L",g+c-C,G]:[])});this.drawHandle(b+C,0);this.drawHandle(c+C,1)}if(r&&j)this.drawScrollbarButton(0),this.drawScrollbarButton(1),
381
- j[e]({translateX:i,translateY:x(G+y)}),o[e]({width:k}),g=n+b,h=a-I,h<w&&(F=(w-h)/2,h=w,g-=F),this.scrollbarPad=F,l[e]({x:R(g)+I%2/2,width:h}),w=n+b+a/2-0.5,this.scrollbarRifles.attr({visibility:a>12?"visible":"hidden"})[e]({d:["M",w-3,n/4,"L",w-3,2*n/3,"M",w,n/4,"L",w,2*n/3,"M",w+3,n/4,"L",w+3,2*n/3]});this.scrollbarPad=F;this.rendered=!0}}},addEvents:function(){var a=this.chart.container,b=this.mouseDownHandler,c=this.mouseMoveHandler,d=this.mouseUpHandler,e;e=[[a,"mousedown",b],[a,"mousemove",c],
382
- [document,"mouseup",d]];ab&&e.push([a,"touchstart",b],[a,"touchmove",c],[document,"touchend",d]);n(e,function(a){A.apply(null,a)});this._events=e},removeEvents:function(){n(this._events,function(a){Q.apply(null,a)});this._events=s;this.navigatorEnabled&&this.baseSeries&&Q(this.baseSeries,"updatedData",this.updatedDataHandler)},init:function(){var a=this,b=a.chart,c,d,e=a.scrollbarHeight,f=a.navigatorOptions,g=a.height,h=a.top,i,k=a.baseSeries;a.mouseDownHandler=function(d){var d=b.pointer.normalize(d),
383
- e=a.zoomedMin,f=a.zoomedMax,h=a.top,j=a.scrollbarHeight,k=a.scrollerLeft,m=a.scrollerWidth,n=a.navigatorLeft,p=a.navigatorWidth,u=a.scrollbarPad,s=a.range,t=d.chartX,v=d.chartY,d=b.xAxis[0],x,z=gb?10:7;if(v>h&&v<h+g+j)if((h=!a.scrollbarEnabled||v<h+g)&&V.abs(t-e-n)<z)a.grabbedLeft=!0,a.otherHandlePos=f,a.fixedExtreme=d.max,b.fixedRange=null;else if(h&&V.abs(t-f-n)<z)a.grabbedRight=!0,a.otherHandlePos=e,a.fixedExtreme=d.min,b.fixedRange=null;else if(t>n+e-u&&t<n+f+u)a.grabbedCenter=t,a.fixedWidth=
384
- s,i=t-e;else if(t>k&&t<k+m){f=h?t-n-s/2:t<n?e-s*0.2:t>k+m-j?e+s*0.2:t<n+e?e-s:f;if(f<0)f=0;else if(f+s>=p)f=p-s,x=a.getUnionExtremes().dataMax;if(f!==e)a.fixedWidth=s,e=c.toFixedRange(f,f+s,null,x),d.setExtremes(e.min,e.max,!0,!1,{trigger:"navigator"})}};a.mouseMoveHandler=function(c){var d=a.scrollbarHeight,e=a.navigatorLeft,f=a.navigatorWidth,g=a.scrollerLeft,h=a.scrollerWidth,j=a.range,k,m;if(!c.touches||c.touches[0].pageX!==0)c=b.pointer.normalize(c),k=c.chartX,k<e?k=e:k>g+h-d&&(k=g+h-d),a.grabbedLeft?
385
- (m=!0,a.render(0,0,k-e,a.otherHandlePos)):a.grabbedRight?(m=!0,a.render(0,0,a.otherHandlePos,k-e)):a.grabbedCenter&&(m=!0,k<i?k=i:k>f+i-j&&(k=f+i-j),a.render(0,0,k-i,k-i+j)),m&&a.scrollbarOptions.liveRedraw&&setTimeout(function(){a.mouseUpHandler(c)},0),a.hasDragged=m};a.mouseUpHandler=function(d){var e,f;if(a.hasDragged){if(a.zoomedMin===a.otherHandlePos)e=a.fixedExtreme;else if(a.zoomedMax===a.otherHandlePos)f=a.fixedExtreme;e=c.toFixedRange(a.zoomedMin,a.zoomedMax,e,f);u(e.min)&&b.xAxis[0].setExtremes(e.min,
386
- e.max,!0,!1,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d})}if(d.type!=="mousemove")a.grabbedLeft=a.grabbedRight=a.grabbedCenter=a.fixedWidth=a.fixedExtreme=a.otherHandlePos=a.hasDragged=i=null};var j=b.xAxis.length,m=b.yAxis.length;b.extraBottomMargin=a.outlineHeight+f.margin;a.navigatorEnabled?(a.xAxis=c=new L(b,C({breaks:k&&k.xAxis.options.breaks,ordinal:k&&k.xAxis.options.ordinal},f.xAxis,{id:"navigator-x-axis",isX:!0,type:"datetime",index:j,height:g,offset:0,offsetLeft:e,offsetRight:-e,
387
- keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1})),a.yAxis=d=new L(b,C(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,height:g,offset:0,index:m,zoomEnabled:!1})),k||f.series.data?a.addBaseSeries():b.series.length===0&&M(b,"redraw",function(c,d){if(b.series.length>0&&!a.series)a.setBaseSeries(),b.redraw=c;c.call(b,d)})):a.xAxis=c={translate:function(a,c){var d=b.xAxis[0],f=d.getExtremes(),g=b.plotWidth-2*e,h=wb("min",d.options.min,f.dataMin),d=wb("max",d.options.max,
388
- f.dataMax)-h;return c?a*d/g+h:g*(a-h)/d},toFixedRange:L.prototype.toFixedRange};M(b,"getMargins",function(b){var e=this.legend,f=e.options;b.apply(this,[].slice.call(arguments,1));a.top=h=a.navigatorOptions.top||this.chartHeight-a.height-a.scrollbarHeight-this.spacing[2]-(f.verticalAlign==="bottom"&&f.enabled&&!f.floating?e.legendHeight+p(f.margin,10):0);if(c&&d)c.options.top=d.options.top=h,c.setAxisSize(),d.setAxisSize()});a.addEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=
389
- this.xAxis,d=c.options,e=b.options,f;if(!a||b.dataMin!==null)f={dataMin:p(d&&d.min,wb("min",e.min,b.dataMin,c.dataMin)),dataMax:p(d&&d.max,wb("max",e.max,b.dataMax,c.dataMax))};return f},setBaseSeries:function(a){var b=this.chart,a=a||b.options.navigator.baseSeries;this.series&&this.series.remove();this.baseSeries=b.series[a]||typeof a==="string"&&b.get(a)||b.series[0];this.xAxis&&this.addBaseSeries()},addBaseSeries:function(){var a=this.baseSeries,b=a?a.options:{},c=b.data,d=this.navigatorOptions.series,
390
- e;e=d.data;this.hasNavigatorData=!!e;b=C(b,d,{enableMouseTracking:!1,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",name:"Navigator",showInLegend:!1,isInternal:!0,visible:!0});b.data=e||c;this.series=this.chart.initSeries(b);if(a&&this.navigatorOptions.adaptToUpdatedData!==!1)A(a,"updatedData",this.updatedDataHandler),a.userOptions.events=v(a.userOptions.event,{updatedData:this.updatedDataHandler})},updatedDataHandler:function(){var a=this.chart.scroller,b=a.baseSeries,
391
- c=b.xAxis,d=c.getExtremes(),e=d.min,f=d.max,g=d.dataMin,d=d.dataMax,h=f-e,i,k,j,m,l,o=a.series;i=o.xData;var n=!!c.setExtremes;k=f>=i[i.length-1]-(this.closestPointRange||0);i=e<=g;if(!a.hasNavigatorData)o.options.pointStart=b.xData[0],o.setData(b.options.data,!1),l=!0;i&&(m=g,j=m+h);k&&(j=d,i||(m=t(j-h,o.xData[0])));n&&(i||k)?isNaN(m)||c.setExtremes(m,j,!0,!1,{trigger:"updatedData"}):(l&&this.chart.redraw(!1),a.render(t(e,g),E(f,d)))},destroy:function(){this.removeEvents();n([this.xAxis,this.yAxis,
392
- this.leftShade,this.rightShade,this.outline,this.scrollbarTrack,this.scrollbarRifles,this.scrollbarGroup,this.scrollbar],function(a){a&&a.destroy&&a.destroy()});this.xAxis=this.yAxis=this.leftShade=this.rightShade=this.outline=this.scrollbarTrack=this.scrollbarRifles=this.scrollbarGroup=this.scrollbar=null;n([this.scrollbarButtons,this.handles,this.elementsToDestroy],function(a){Na(a)})}};z.Scroller=Gb;M(L.prototype,"zoom",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,g=e.navigator,
393
- e=e.rangeSelector,h;if(this.isXAxis&&(g&&g.enabled||e&&e.enabled))if(f==="x")d.resetZoomButton="blocked";else if(f==="y")h=!1;else if(f==="xy")d=this.previousZoom,u(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom);return h!==s?h:a.call(this,b,c)});M(Ia.prototype,"init",function(a,b,c){A(this,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=new Gb(this)});a.call(this,b,c)});M(O.prototype,"addPoint",function(a,
394
- b,c,d,e){var f=this.options.turboThreshold;f&&this.xData.length>f&&ea(b)&&!Ka(b)&&this.chart.scroller&&ba(20,!0);a.call(this,b,c,d,e)});v(N,{rangeSelector:{buttonTheme:{width:28,height:18,fill:"#f7f7f7",padding:2,r:0,"stroke-width":0,style:{color:"#444",cursor:"pointer",fontWeight:"normal"},zIndex:7,states:{hover:{fill:"#e7e7e7"},select:{fill:"#e7f0f9",style:{color:"black",fontWeight:"bold"}}}},height:35,inputPosition:{align:"right"},labelStyle:{color:"#666"}}});N.lang=C(N.lang,{rangeSelectorZoom:"Zoom",
395
- rangeSelectorFrom:"From",rangeSelectorTo:"To"});Hb.prototype={clickButton:function(a,b){var c=this,d=c.selected,e=c.chart,f=c.buttons,g=c.buttonOptions[a],h=e.xAxis[0],i=e.scroller&&e.scroller.getUnionExtremes()||h||{},k=i.dataMin,j=i.dataMax,m,l=h&&x(E(h.max,p(j,h.max))),o=g.type,q,i=g._range,r,u,v,w=g.dataGrouping;if(!(k===null||j===null||a===c.selected)){e.fixedRange=i;if(w)this.forcedDataGrouping=!0,L.prototype.setDataGrouping.call(h||{chart:this.chart},w,!1);if(o==="month"||o==="year")if(h){if(o=
396
- {range:g,max:l,dataMin:k,dataMax:j},m=h.minFromRange.call(o),typeof o.newMax==="number")l=o.newMax}else i=g;else if(i)m=t(l-i,k),l=E(m+i,j);else if(o==="ytd")if(h){if(j===s)k=Number.MAX_VALUE,j=Number.MIN_VALUE,n(e.series,function(a){a=a.xData;k=E(a[0],k);j=t(a[a.length-1],j)}),b=!1;l=new fa(j);m=l.getFullYear();m=r=t(k||0,fa.UTC(m,0,1));l=l.getTime();l=E(j||l,l)}else{A(e,"beforeRender",function(){c.clickButton(a)});return}else o==="all"&&h&&(m=k,l=j);f[d]&&f[d].setState(0);if(f[a])f[a].setState(2),
397
- c.lastSelected=a;h?(h.setExtremes(m,l,p(b,1),0,{trigger:"rangeSelectorButton",rangeSelectorButton:g}),c.setSelected(a)):(q=e.options.xAxis[0],v=q.range,q.range=i,u=q.min,q.min=r,c.setSelected(a),A(e,"load",function(){q.range=v;q.min=u}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var b=
398
- this,c=a.options.rangeSelector,d=c.buttons||[].concat(b.defaultButtons),e=c.selected,f=b.blurInputs=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&I(a,"blur");c&&c.blur&&I(c,"blur")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=d;A(a.container,"mousedown",f);A(a,"resize",f);n(d,b.computeButtonRange);e!==s&&d[e]&&this.clickButton(e,!1);A(a,"load",function(){A(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&c.trigger!=="rangeSelectorButton"&&
399
- c.trigger!=="updatedData"&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)});A(a.xAxis[0],"afterSetExtremes",function(){b.updateButtonStates(!0)})})},updateButtonStates:function(a){var b=this,c=this.chart,d=c.xAxis[0],e=c.scroller&&c.scroller.getUnionExtremes()||d,f=e.dataMin,g=e.dataMax,h=b.selected,i=b.options.allButtonsEnabled,k=b.buttons;a&&c.fixedRange!==x(d.max-d.min)&&(k[h]&&k[h].setState(0),b.setSelected(null));n(b.buttonOptions,function(a,e){var l=x(d.max-d.min),o=a._range,n=a.type,p=a.count||
400
- 1,s=o>g-f,t=o<d.minRange,u=a.type==="all"&&d.max-d.min>=g-f&&k[e].state!==2,v=a.type==="ytd"&&ja("%Y",f)===ja("%Y",g),z=c.renderer.forExport&&e===h,o=o===l,A=!d.hasVisibleSeries;if((n==="month"||n==="year")&&l>={month:28,year:365}[n]*864E5*p&&l<={month:31,year:366}[n]*864E5*p)o=!0;z||o&&e!==h&&e===b.lastSelected?(b.setSelected(e),k[e].setState(2)):!i&&(s||t||u||v||A)?k[e].setState(3):k[e].state===3&&k[e].setState(0)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,
401
- minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if(b==="month"||b==="year")a._range={month:30,year:365}[b]*864E5*c},setInputValue:function(a,b){var c=this.chart.options.rangeSelector;if(u(b))this[a+"Input"].HCTime=b;this[a+"Input"].value=ja(c.inputEditDateFormat||"%Y-%m-%d",this[a+"Input"].HCTime);this[a+"DateBox"].attr({text:ja(c.inputDateFormat||"%b %e, %Y",this[a+"Input"].HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"];J(this[a+"Input"],{left:b.translateX+
402
- c.x+"px",top:b.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){J(this[a+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(a)},drawInput:function(a){var b=this,c=b.chart,d=c.renderer.style,e=c.renderer,f=c.options.rangeSelector,g=b.div,h=a==="min",i,k,j=this.inputGroup;this[a+"Label"]=k=e.label(N.lang[h?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).attr({padding:2}).css(C(d,f.labelStyle)).add(j);j.offset+=
403
- k.width+5;this[a+"DateBox"]=e=e.label("",j.offset).attr({padding:2,width:f.inputBoxWidth||90,height:f.inputBoxHeight||17,stroke:f.inputBoxBorderColor||"silver","stroke-width":1}).css(C({textAlign:"center",color:"#444"},d,f.inputStyle)).on("click",function(){b.showInput(a);b[a+"Input"].focus()}).add(j);j.offset+=e.width+(h?10:0);this[a+"Input"]=i=$("input",{name:a,className:"highcharts-range-selector",type:"text"},v({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",
404
- fontSize:d.fontSize,fontFamily:d.fontFamily,top:c.plotTop+"px"},f.inputStyle),g);i.onfocus=function(){b.showInput(a)};i.onblur=function(){b.hideInput(a)};i.onchange=function(){var a=i.value,d=(f.inputDateParser||fa.parse)(a),e=c.xAxis[0],g=e.dataMin,k=e.dataMax;isNaN(d)&&(d=a.split("-"),d=fa.UTC(H(d[0]),H(d[1])-1,H(d[2])));isNaN(d)||(N.global.useUTC||(d+=(new fa).getTimezoneOffset()*6E4),h?d>b.maxInput.HCTime?d=s:d<g&&(d=g):d<b.minInput.HCTime?d=s:d>k&&(d=k),d!==s&&c.xAxis[0].setExtremes(h?d:e.min,
405
- h?e.max:d,s,s,{trigger:"rangeSelectorInput"}))}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=p((b.buttonPosition||{}).y,a.plotTop-a.axisOffset[0]-b.height);return{buttonTop:a,inputTop:a-10}},render:function(a,b){var c=this,d=c.chart,e=d.renderer,f=d.container,g=d.options,h=g.exporting&&g.navigation&&g.navigation.buttonOptions,i=g.rangeSelector,k=c.buttons,g=N.lang,j=c.div,j=c.inputGroup,m=i.buttonTheme,l=i.buttonPosition||{},o=i.inputEnabled,q=m&&m.states,r=d.plotLeft,s,t=
406
- this.getPosition(),w=c.group,x=c.rendered;if(!x&&(c.group=w=e.g("range-selector-buttons").add(),c.zoomText=e.text(g.rangeSelectorZoom,p(l.x,r),15).css(i.labelStyle).add(w),s=p(l.x,r)+c.zoomText.getBBox().width+5,n(c.buttonOptions,function(a,b){k[b]=e.button(a.text,s,0,function(){c.clickButton(b);c.isActive=!0},m,q&&q.hover,q&&q.select,q&&q.disabled).css({textAlign:"center"}).add(w);s+=k[b].width+p(i.buttonSpacing,5);c.selected===b&&k[b].setState(2)}),c.updateButtonStates(),o!==!1))c.div=j=$("div",
407
- null,{position:"relative",height:0,zIndex:1}),f.parentNode.insertBefore(j,f),c.inputGroup=j=e.g("input-group").add(),j.offset=0,c.drawInput("min"),c.drawInput("max");w[x?"animate":"attr"]({translateY:t.buttonTop});o!==!1&&(j.align(v({y:t.inputTop,width:j.offset,x:h&&t.inputTop<(h.y||0)+h.height-d.spacing[0]?-40:0},i.inputPosition),!0,d.spacingBox),u(o)||(d=w.getBBox(),j[j.translateX<d.x+d.width+10?"hide":"show"]()),c.setInputValue("min",a),c.setInputValue("max",b));c.rendered=!0},destroy:function(){var a=
408
- this.minInput,b=this.maxInput,c=this.chart,d=this.blurInputs,e;Q(c.container,"mousedown",d);Q(c,"resize",d);Na(this.buttons);if(a)a.onfocus=a.onblur=a.onchange=null;if(b)b.onfocus=b.onblur=b.onchange=null;for(e in this)this[e]&&e!=="chart"&&(this[e].destroy?this[e].destroy():this[e].nodeType&&Sa(this[e])),this[e]=null}};L.prototype.toFixedRange=function(a,b,c,d){var e=this.chart&&this.chart.fixedRange,a=p(c,this.translate(a,!0)),b=p(d,this.translate(b,!0)),c=e&&(b-a)/e;c>0.7&&c<1.3&&(d?a=b-e:b=a+
409
- e);isNaN(a)&&(a=b=void 0);return{min:a,max:b}};L.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],c,d=this.max,e,f,g=function(a,c){var d=new fa(a);d["set"+b](d["get"+b]()+c);return d.getTime()-a};typeof a==="number"?(c=this.max-a,f=a):c=d+g(d,-a.count);e=p(this.dataMin,Number.MIN_VALUE);isNaN(c)&&(c=e);if(c<=e)c=e,f===void 0&&(f=g(c,a.count)),this.newMax=E(c+f,this.dataMax);isNaN(d)&&(c=void 0);return c};M(Ia.prototype,"init",function(a,b,c){A(this,"init",
410
- function(){if(this.options.rangeSelector.enabled)this.rangeSelector=new Hb(this)});a.call(this,b,c)});z.RangeSelector=Hb;Ia.prototype.callbacks.push(function(a){function b(){f=a.xAxis[0].getExtremes();g.render(f.min,f.max)}function c(){f=a.xAxis[0].getExtremes();isNaN(f.min)||h.render(f.min,f.max)}function d(a){a.triggerOp!=="navigator-drag"&&g.render(a.min,a.max)}function e(a){h.render(a.min,a.max)}var f,g=a.scroller,h=a.rangeSelector;g&&(A(a.xAxis[0],"afterSetExtremes",d),M(a,"drawChartBox",function(a){var c=
411
- this.isDirtyBox;a.call(this);c&&b()}),b());h&&(A(a.xAxis[0],"afterSetExtremes",e),A(a,"resize",c),c());A(a,"destroy",function(){g&&Q(a.xAxis[0],"afterSetExtremes",d);h&&(Q(a,"resize",c),Q(a.xAxis[0],"afterSetExtremes",e))})});z.StockChart=function(a,b){var c=a.series,d,e=p(a.navigator&&a.navigator.enabled,!0)?{startOnTick:!1,endOnTick:!1}:null,f={marker:{enabled:!1,radius:2}},g={shadow:!1,borderWidth:0};a.xAxis=wa(qa(a.xAxis||{}),function(a){return C({minPadding:0,maxPadding:0,ordinal:!0,title:{text:null},
412
- labels:{overflow:"justify"},showLastLabel:!0},a,{type:"datetime",categories:null},e)});a.yAxis=wa(qa(a.yAxis||{}),function(a){d=p(a.opposite,!0);return C({labels:{y:-2},opposite:d,showLastLabel:!1,title:{text:null}},a)});a.series=null;a=C({chart:{panning:!0,pinchType:"x"},navigator:{enabled:!0},scrollbar:{enabled:!0},rangeSelector:{enabled:!0},title:{text:null,style:{fontSize:"16px"}},tooltip:{shared:!0,crosshairs:!0},legend:{enabled:!1},plotOptions:{line:f,spline:f,area:f,areaspline:f,arearange:f,
413
- areasplinerange:f,column:g,columnrange:g,candlestick:g,ohlc:g}},a,{_stock:!0,chart:{inverted:!1}});a.series=c;return new Ia(a,b)};M(Xa.prototype,"init",function(a,b,c){var d=c.chart.pinchType||"";a.call(this,b,c);this.pinchX=this.pinchHor=d.indexOf("x")!==-1;this.pinchY=this.pinchVert=d.indexOf("y")!==-1;this.hasZoom=this.hasZoom||this.pinchHor||this.pinchVert});M(L.prototype,"autoLabelAlign",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;if(this.chart.options._stock&&
414
- this.coll==="yAxis"&&(c=c.top+","+c.height,!b[c]&&d.enabled)){if(d.x===15)d.x=0;if(d.align===void 0)d.align="right";b[c]=1;return"right"}return a.call(this,[].slice.call(arguments,1))});M(L.prototype,"getPlotLinePath",function(a,b,c,d,e,f){var g=this,h=this.isLinked&&!this.series?this.linkedParent.series:this.series,i=g.chart,k=i.renderer,j=g.left,m=g.top,l,o,q,r,s=[],v=[],w,y;if(g.coll==="colorAxis")return a.apply(this,[].slice.call(arguments,1));v=g.isXAxis?u(g.options.yAxis)?[i.yAxis[g.options.yAxis]]:
415
- wa(h,function(a){return a.yAxis}):u(g.options.xAxis)?[i.xAxis[g.options.xAxis]]:wa(h,function(a){return a.xAxis});n(g.isXAxis?i.yAxis:i.xAxis,function(a){if(u(a.options.id)?a.options.id.indexOf("navigator")===-1:1){var b=a.isXAxis?"yAxis":"xAxis",b=u(a.options[b])?i[b][a.options[b]]:i[b][0];g===b&&v.push(a)}});w=v.length?[]:[g.isXAxis?i.yAxis[0]:i.xAxis[0]];n(v,function(a){Ha(a,w)===-1&&w.push(a)});y=p(f,g.translate(b,null,null,d));isNaN(y)||(g.horiz?n(w,function(a){var b;o=a.pos;r=o+a.len;l=q=x(y+
416
- g.transB);if(l<j||l>j+g.width)e?l=q=E(t(j,l),j+g.width):b=!0;b||s.push("M",l,o,"L",q,r)}):n(w,function(a){var b;l=a.pos;q=l+a.len;o=r=x(m+g.height-y);if(o<m||o>m+g.height)e?o=r=E(t(m,o),g.top+g.height):b=!0;b||s.push("M",l,o,"L",q,r)}));return s.length>0?k.crispPolyLine(s,c||1):null});L.prototype.getPlotBandPath=function(a,b){var c=this.getPlotLinePath(b,null,null,!0),d=this.getPlotLinePath(a,null,null,!0),e=[],f;if(d&&c&&d.toString()!==c.toString())for(f=0;f<d.length;f+=6)e.push("M",d[f+1],d[f+2],
417
- "L",d[f+4],d[f+5],c[f+4],c[f+5],c[f+1],c[f+2]);else e=null;return e};ra.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=x(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=x(a[c+2])+b%2/2);return a};if(Va===z.VMLRenderer)lb.prototype.crispPolyLine=ra.prototype.crispPolyLine;M(L.prototype,"hideCrosshair",function(a,b){a.call(this,b);if(this.crossLabel)this.crossLabel=this.crossLabel.hide()});M(L.prototype,"drawCrosshair",function(a,b,c){var d,e;a.call(this,
418
- b,c);if(u(this.crosshair.label)&&this.crosshair.label.enabled){var a=this.chart,f=this.options.crosshair.label,g=this.horiz,h=this.opposite,i=this.left,k=this.top,j=this.crossLabel,m,l=f.format,o="",n=this.options.tickPosition==="inside",r=this.crosshair.snap!==!1;m=g?"center":h?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";if(!j)j=this.crossLabel=a.renderer.label(null,null,null,f.shape||"callout").attr({align:f.align||m,zIndex:12,fill:f.backgroundColor||this.series[0]&&
419
- this.series[0].color||"gray",padding:p(f.padding,8),stroke:f.borderColor||"","stroke-width":f.borderWidth||0,r:p(f.borderRadius,3)}).css(v({color:"white",fontWeight:"normal",fontSize:"11px",textAlign:"center"},f.style)).add();g?(m=r?c.plotX+i:b.chartX,k+=h?0:this.height):(m=h?this.width+i:0,k=r?c.plotY+k:b.chartY);!l&&!f.formatter&&(this.isDatetimeAxis&&(o="%b %d, %Y"),l="{value"+(o?":"+o:"")+"}");b=r?c[this.isXAxis?"x":"y"]:this.toValue(g?b.chartX:b.chartY);j.attr({text:l?Fa(l,{value:b}):f.formatter.call(this,
420
- b),anchorX:g?m:this.opposite?0:a.chartWidth,anchorY:g?this.opposite?a.chartHeight:0:k,x:m,y:k,visibility:"visible"});b=j.getBBox();if(g){if(n&&!h||!n&&h)k=j.y-b.height}else k=j.y-b.height/2;g?(d=i-b.x,e=i+this.width-b.x):(d=this.labelAlign==="left"?i:0,e=this.labelAlign==="right"?i+this.width:a.chartWidth);j.translateX<d&&(m+=d-j.translateX);j.translateX+b.width>=e&&(m-=j.translateX+b.width-e);j.attr({x:m,y:k,visibility:"visible"})}});var ic=da.init,jc=da.processData,kc=Da.prototype.tooltipFormatter;
421
- da.init=function(){ic.apply(this,arguments);this.setCompare(this.options.compare)};da.setCompare=function(a){this.modifyValue=a==="value"||a==="percent"?function(b,c){var d=this.compareValue;if(b!==s&&(b=a==="value"?b-d:b=100*(b/d)-100,c))c.change=b;return b}:null;if(this.chart.hasRendered)this.isDirty=!0};da.processData=function(){var a,b,c,d;jc.apply(this,arguments);if(this.xAxis&&this.processedYData){b=this.processedXData;c=this.processedYData;d=c.length;for(a=0;a<d;a++)if(typeof c[a]==="number"&&
422
- b[a]>=this.xAxis.min){this.compareValue=c[a];break}}};M(da,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));if(this.modifyValue)b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=Ma(b),this.dataMax=Aa(b)});L.prototype.setCompare=function(a,b){this.isXAxis||(n(this.series,function(b){b.setCompare(a)}),p(b,!0)&&this.chart.redraw())};Da.prototype.tooltipFormatter=function(a){a=a.replace("{point.change}",(this.change>0?"+":"")+z.numberFormat(this.change,
423
- p(this.series.tooltipOptions.changeDecimals,2)));return kc.apply(this,[a])};M(O.prototype,"render",function(a){if(this.chart.options._stock&&this.xAxis)!this.clipBox&&this.animate?(this.clipBox=C(this.chart.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len):this.chart[this.sharedClipKey]&&(Wa(this.chart[this.sharedClipKey]),this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:this.yAxis.len}));a.call(this)});v(z,{Color:ka,Point:Da,Tick:$a,Renderer:Va,SVGElement:W,
424
- SVGRenderer:ra,arrayMin:Ma,arrayMax:Aa,charts:aa,dateFormat:ja,error:ba,format:Fa,pathAnim:Jb,getOptions:function(){return N},hasBidiBug:Qa,isTouchDevice:gb,setOptions:function(a){N=C(!0,N,a);Ob();return N},addEvent:A,removeEvent:Q,createElement:$,discardElement:Sa,css:J,each:n,map:wa,merge:C,splat:qa,stableSort:ob,extendClass:ia,pInt:H,svg:ca,canvas:pa,vml:!ca&&!pa,product:"Highstock",version:"2.1.10"});return z});
8
+ (function(L,T){"object"===typeof module&&module.exports?module.exports=L.document?T(L):T:L.Highcharts=T(L)})("undefined"!==typeof window?window:this,function(L){L=function(){var a=window,C=a.document,B=a.navigator&&a.navigator.userAgent||"",F=C&&C.createElementNS&&!!C.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,E=/(edge|msie|trident)/i.test(B)&&!window.opera,q=!F,f=/Firefox/.test(B),t=f&&4>parseInt(B.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highstock",
9
+ version:"5.0.11",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:t,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:E,isWebKit:/AppleWebKit/.test(B),isFirefox:f,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(B),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:F,vml:q,win:a,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){var C=[],B=a.charts,F=a.doc,E=a.win;a.error=function(q,f){q=a.isNumber(q)?"Highcharts error #"+
10
+ q+": www.highcharts.com/errors/"+q:q;if(f)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,f,t){this.options=f;this.elem=a;this.prop=t};a.Fx.prototype={dSetter:function(){var a=this.paths[0],f=this.paths[1],t=[],p=this.now,y=a.length,u;if(1===p)t=this.toD;else if(y===f.length&&1>p)for(;y--;)u=parseFloat(a[y]),t[y]=isNaN(u)?a[y]:p*parseFloat(f[y]-u)+u;else t=f;this.elem.attr("d",t,null,!0)},update:function(){var a=this.elem,f=this.prop,t=this.now,p=this.options.step;if(this[f+"Setter"])this[f+
11
+ "Setter"]();else a.attr?a.element&&a.attr(f,t,null,!0):a.style[f]=t+this.unit;p&&p.call(a,t,this)},run:function(a,f,t){var p=this,q=function(a){return q.stopped?!1:p.step(a)},u;this.startTime=+new Date;this.start=a;this.end=f;this.unit=t;this.now=this.start;this.pos=0;q.elem=this.elem;q.prop=this.prop;q()&&1===C.push(q)&&(q.timerId=setInterval(function(){for(u=0;u<C.length;u++)C[u]()||C.splice(u--,1);C.length||clearInterval(q.timerId)},13))},step:function(q){var f=+new Date,t,p=this.options,y=this.elem,
12
+ u=p.complete,k=p.duration,e=p.curAnim;y.attr&&!y.element?q=!1:q||f>=k+this.startTime?(this.now=this.end,this.pos=1,this.update(),t=e[this.prop]=!0,a.objectEach(e,function(a){!0!==a&&(t=!1)}),t&&u&&u.call(y),q=!1):(this.pos=p.easing((f-this.startTime)/k),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,f,t){function p(a){var c,b;for(A=a.length;A--;)c="M"===a[A]||"L"===a[A],b=/[a-zA-Z]/.test(a[A+3]),c&&b&&a.splice(A+1,0,a[A+1],a[A+2],a[A+1],a[A+2])}
13
+ function y(a,c){for(;a.length<l;){a[0]=c[l-a.length];var d=a.slice(0,b);[].splice.apply(a,[0,0].concat(d));n&&(d=a.slice(a.length-b),[].splice.apply(a,[a.length,0].concat(d)),A--)}a[0]="M"}function u(a,c){for(var r=(l-a.length)/b;0<r&&r--;)d=a.slice().splice(a.length/H-b,b*H),d[0]=c[l-b-r*b],x&&(d[b-6]=d[b-2],d[b-5]=d[b-1]),[].splice.apply(a,[a.length/H,0].concat(d)),n&&r--}f=f||"";var k,e=q.startX,g=q.endX,x=-1<f.indexOf("C"),b=x?7:3,l,d,A;f=f.split(" ");t=t.slice();var n=q.isArea,H=n?2:1,r;x&&(p(f),
14
+ p(t));if(e&&g){for(A=0;A<e.length;A++)if(e[A]===g[0]){k=A;break}else if(e[0]===g[g.length-e.length+A]){k=A;r=!0;break}void 0===k&&(f=[])}f.length&&a.isNumber(k)&&(l=t.length+k*H*b,r?(y(f,t),u(t,f)):(y(t,f),u(f,t)));return[f,t]}};a.extend=function(a,f){var q;a||(a={});for(q in f)a[q]=f[q];return a};a.merge=function(){var q,f=arguments,t,p={},y=function(f,k){"object"!==typeof f&&(f={});a.objectEach(k,function(e,g){!a.isObject(e,!0)||a.isClass(e)||a.isDOMElement(e)?f[g]=k[g]:f[g]=y(f[g]||{},e)});return f};
15
+ !0===f[0]&&(p=f[1],f=Array.prototype.slice.call(f,2));t=f.length;for(q=0;q<t;q++)p=y(p,f[q]);return p};a.pInt=function(a,f){return parseInt(a,f||10)};a.isString=function(a){return"string"===typeof a};a.isArray=function(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a};a.isObject=function(q,f){return!!q&&"object"===typeof q&&(!f||!a.isArray(q))};a.isDOMElement=function(q){return a.isObject(q)&&"number"===typeof q.nodeType};a.isClass=function(q){var f=
16
+ q&&q.constructor;return!(!a.isObject(q,!0)||a.isDOMElement(q)||!f||!f.name||"Object"===f.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)};a.erase=function(a,f){for(var q=a.length;q--;)if(a[q]===f){a.splice(q,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(q,f,t){var p;a.isString(f)?a.defined(t)?q.setAttribute(f,t):q&&q.getAttribute&&(p=q.getAttribute(f)):a.defined(f)&&a.isObject(f)&&a.objectEach(f,function(a,f){q.setAttribute(f,a)});return p};a.splat=
17
+ function(q){return a.isArray(q)?q:[q]};a.syncTimeout=function(a,f,t){if(f)return setTimeout(a,f,t);a.call(0,t)};a.pick=function(){var a=arguments,f,t,p=a.length;for(f=0;f<p;f++)if(t=a[f],void 0!==t&&null!==t)return t};a.css=function(q,f){a.isMS&&!a.svg&&f&&void 0!==f.opacity&&(f.filter="alpha(opacity\x3d"+100*f.opacity+")");a.extend(q.style,f)};a.createElement=function(q,f,t,p,y){q=F.createElement(q);var u=a.css;f&&a.extend(q,f);y&&u(q,{padding:0,border:"none",margin:0});t&&u(q,t);p&&p.appendChild(q);
18
+ return q};a.extendClass=function(q,f){var t=function(){};t.prototype=new q;a.extend(t.prototype,f);return t};a.pad=function(a,f,t){return Array((f||2)+1-String(a).length).join(t||0)+a};a.relativeLength=function(a,f){return/%$/.test(a)?f*parseFloat(a)/100:parseFloat(a)};a.wrap=function(a,f,t){var p=a[f];a[f]=function(){var a=Array.prototype.slice.call(arguments),f=arguments,k=this;k.proceed=function(){p.apply(k,arguments.length?arguments:f)};a.unshift(p);a=t.apply(this,a);k.proceed=null;return a}};
19
+ a.getTZOffset=function(q){var f=a.Date;return 6E4*(f.hcGetTimezoneOffset&&f.hcGetTimezoneOffset(q)||f.hcTimezoneOffset||0)};a.dateFormat=function(q,f,t){if(!a.defined(f)||isNaN(f))return a.defaultOptions.lang.invalidDate||"";q=a.pick(q,"%Y-%m-%d %H:%M:%S");var p=a.Date,y=new p(f-a.getTZOffset(f)),u=y[p.hcGetHours](),k=y[p.hcGetDay](),e=y[p.hcGetDate](),g=y[p.hcGetMonth](),x=y[p.hcGetFullYear](),b=a.defaultOptions.lang,l=b.weekdays,d=b.shortWeekdays,A=a.pad,p=a.extend({a:d?d[k]:l[k].substr(0,3),A:l[k],
20
+ d:A(e),e:A(e,2," "),w:k,b:b.shortMonths[g],B:b.months[g],m:A(g+1),y:x.toString().substr(2,2),Y:x,H:A(u),k:u,I:A(u%12||12),l:u%12||12,M:A(y[p.hcGetMinutes]()),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:A(y.getSeconds()),L:A(Math.round(f%1E3),3)},a.dateFormats);a.objectEach(p,function(a,b){for(;-1!==q.indexOf("%"+b);)q=q.replace("%"+b,"function"===typeof a?a(f):a)});return t?q.substr(0,1).toUpperCase()+q.substr(1):q};a.formatSingle=function(q,f){var t=/\.([0-9])/,p=a.defaultOptions.lang;/f$/.test(q)?(t=(t=
21
+ q.match(t))?t[1]:-1,null!==f&&(f=a.numberFormat(f,t,p.decimalPoint,-1<q.indexOf(",")?p.thousandsSep:""))):f=a.dateFormat(q,f);return f};a.format=function(q,f){for(var t="{",p=!1,y,u,k,e,g=[],x;q;){t=q.indexOf(t);if(-1===t)break;y=q.slice(0,t);if(p){y=y.split(":");u=y.shift().split(".");e=u.length;x=f;for(k=0;k<e;k++)x=x[u[k]];y.length&&(x=a.formatSingle(y.join(":"),x));g.push(x)}else g.push(y);q=q.slice(t+1);t=(p=!p)?"}":"{"}g.push(q);return g.join("")};a.getMagnitude=function(a){return Math.pow(10,
22
+ Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(q,f,t,p,y){var u,k=q;t=a.pick(t,1);u=q/t;f||(f=y?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===p&&(1===t?f=a.grep(f,function(a){return 0===a%1}):.1>=t&&(f=[1/t])));for(p=0;p<f.length&&!(k=f[p],y&&k*t>=q||!y&&u<=(f[p]+(f[p+1]||f[p]))/2);p++);return k=a.correctFloat(k*t,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,f){var q=a.length,p,y;for(y=0;y<q;y++)a[y].safeI=y;a.sort(function(a,k){p=f(a,k);return 0===p?
23
+ a.safeI-k.safeI:p});for(y=0;y<q;y++)delete a[y].safeI};a.arrayMin=function(a){for(var f=a.length,q=a[0];f--;)a[f]<q&&(q=a[f]);return q};a.arrayMax=function(a){for(var f=a.length,q=a[0];f--;)a[f]>q&&(q=a[f]);return q};a.destroyObjectProperties=function(q,f){a.objectEach(q,function(a,p){a&&a!==f&&a.destroy&&a.destroy();delete q[p]})};a.discardElement=function(q){var f=a.garbageBin;f||(f=a.createElement("div"));q&&f.appendChild(q);f.innerHTML=""};a.correctFloat=function(a,f){return parseFloat(a.toPrecision(f||
24
+ 14))};a.setAnimation=function(q,f){f.renderer.globalAnimation=a.pick(q,f.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(q,f,t,p){q=+q||0;f=+f;var y=a.defaultOptions.lang,u=(q.toString().split(".")[1]||"").length,k,e;-1===f?f=Math.min(u,20):a.isNumber(f)||(f=2);e=(Math.abs(q)+Math.pow(10,-Math.max(f,u)-1)).toFixed(f);
25
+ u=String(a.pInt(e));k=3<u.length?u.length%3:0;t=a.pick(t,y.decimalPoint);p=a.pick(p,y.thousandsSep);q=(0>q?"-":"")+(k?u.substr(0,k)+p:"");q+=u.substr(k).replace(/(\d{3})(?=\d)/g,"$1"+p);f&&(q+=t+e.slice(-f));return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,f,t){if("width"===f)return Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,"padding-left")-a.getStyle(q,"padding-right");if("height"===f)return Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,
26
+ "padding-top")-a.getStyle(q,"padding-bottom");if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(f),a.pick(t,!0)&&(q=a.pInt(q));return q};a.inArray=function(a,f){return f.indexOf?f.indexOf(a):[].indexOf.call(f,a)};a.grep=function(a,f){return[].filter.call(a,f)};a.find=function(a,f){return[].find.call(a,f)};a.map=function(a,f){for(var q=[],p=0,y=a.length;p<y;p++)q[p]=f.call(a[p],a[p],p,a);return q};a.offset=function(a){var f=F.documentElement;a=a.getBoundingClientRect();return{top:a.top+(E.pageYOffset||
27
+ f.scrollTop)-(f.clientTop||0),left:a.left+(E.pageXOffset||f.scrollLeft)-(f.clientLeft||0)}};a.stop=function(a,f){for(var q=C.length;q--;)C[q].elem!==a||f&&f!==C[q].prop||(C[q].stopped=!0)};a.each=function(a,f,t){return Array.prototype.forEach.call(a,f,t)};a.objectEach=function(a,f,t){for(var p in a)a.hasOwnProperty(p)&&f.call(t,a[p],p,a)};a.addEvent=function(q,f,t){function p(a){a.target=a.srcElement||E;t.call(q,a)}var y=q.hcEvents=q.hcEvents||{};q.addEventListener?q.addEventListener(f,t,!1):q.attachEvent&&
28
+ (q.hcEventsIE||(q.hcEventsIE={}),q.hcEventsIE[t.toString()]=p,q.attachEvent("on"+f,p));y[f]||(y[f]=[]);y[f].push(t);return function(){a.removeEvent(q,f,t)}};a.removeEvent=function(q,f,t){function p(a,e){q.removeEventListener?q.removeEventListener(a,e,!1):q.attachEvent&&(e=q.hcEventsIE[e.toString()],q.detachEvent("on"+a,e))}function y(){var e,x;q.nodeName&&(f?(e={},e[f]=!0):e=k,a.objectEach(e,function(a,e){if(k[e])for(x=k[e].length;x--;)p(e,k[e][x])}))}var u,k=q.hcEvents,e;k&&(f?(u=k[f]||[],t?(e=a.inArray(t,
29
+ u),-1<e&&(u.splice(e,1),k[f]=u),p(f,t)):(y(),k[f]=[])):(y(),q.hcEvents={}))};a.fireEvent=function(q,f,t,p){var y;y=q.hcEvents;var u,k;t=t||{};if(F.createEvent&&(q.dispatchEvent||q.fireEvent))y=F.createEvent("Events"),y.initEvent(f,!0,!0),a.extend(y,t),q.dispatchEvent?q.dispatchEvent(y):q.fireEvent(f,y);else if(y)for(y=y[f]||[],u=y.length,t.target||a.extend(t,{preventDefault:function(){t.defaultPrevented=!0},target:q,type:f}),f=0;f<u;f++)(k=y[f])&&!1===k.call(q,t)&&t.preventDefault();p&&!t.defaultPrevented&&
30
+ p(t)};a.animate=function(q,f,t){var p,y="",u,k,e;a.isObject(t)||(e=arguments,t={duration:e[2],easing:e[3],complete:e[4]});a.isNumber(t.duration)||(t.duration=400);t.easing="function"===typeof t.easing?t.easing:Math[t.easing]||Math.easeInOutSine;t.curAnim=a.merge(f);a.objectEach(f,function(e,x){a.stop(q,x);k=new a.Fx(q,t,x);u=null;"d"===x?(k.paths=k.initPath(q,q.d,f.d),k.toD=f.d,p=0,u=1):q.attr?p=q.attr(x):(p=parseFloat(a.getStyle(q,x))||0,"opacity"!==x&&(y="px"));u||(u=e);u&&u.match&&u.match("px")&&
31
+ (u=u.replace(/px/g,""));k.run(p,u,y)})};a.seriesType=function(q,f,t,p,y){var u=a.getOptions(),k=a.seriesTypes;u.plotOptions[q]=a.merge(u.plotOptions[f],t);k[q]=a.extendClass(k[f]||function(){},p);k[q].prototype.type=q;y&&(k[q].prototype.pointClass=a.extendClass(a.Point,y));return k[q]};a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),f=0;return function(){return"highcharts-"+a+"-"+f++}}();E.jQuery&&(E.jQuery.fn.highcharts=function(){var q=[].slice.call(arguments);if(this[0])return q[0]?
32
+ (new (a[a.isString(q[0])?q.shift():"Chart"])(this[0],q[0],q[1]),this):B[a.attr(this[0],"data-highcharts-chart")]});F&&!F.defaultView&&(a.getStyle=function(q,f){var t={width:"clientWidth",height:"clientHeight"}[f];if(q.style[f])return a.pInt(q.style[f]);"opacity"===f&&(f="filter");if(t)return q.style.zoom=1,Math.max(q[t]-2*a.getStyle(q,"padding"),0);q=q.currentStyle[f.replace(/\-(\w)/g,function(a,f){return f.toUpperCase()})];"filter"===f&&(q=q.replace(/alpha\(opacity=([0-9]+)\)/,function(a,f){return f/
33
+ 100}));return""===q?1:a.pInt(q)});Array.prototype.forEach||(a.each=function(a,f,t){for(var p=0,q=a.length;p<q;p++)if(!1===f.call(t,a[p],p,a))return p});Array.prototype.indexOf||(a.inArray=function(a,f){var t,p=0;if(f)for(t=f.length;p<t;p++)if(f[p]===a)return p;return-1});Array.prototype.filter||(a.grep=function(a,f){for(var t=[],p=0,y=a.length;p<y;p++)f(a[p],p)&&t.push(a[p]);return t});Array.prototype.find||(a.find=function(a,f){var t,p=a.length;for(t=0;t<p;t++)if(f(a[t],t))return a[t]})})(L);(function(a){var C=
34
+ a.each,B=a.isNumber,F=a.map,E=a.merge,q=a.pInt;a.Color=function(f){if(!(this instanceof a.Color))return new a.Color(f);this.init(f)};a.Color.prototype={parsers:[{regex:/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*\)/,parse:function(a){return[q(a[1]),q(a[2]),q(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[q(a[1]),q(a[2]),q(a[3]),1]}}],names:{white:"#ffffff",black:"#000000"},
35
+ init:function(f){var t,p,y,u;if((this.input=f=this.names[f&&f.toLowerCase?f.toLowerCase():""]||f)&&f.stops)this.stops=F(f.stops,function(k){return new a.Color(k[1])});else if(f&&"#"===f[0]&&(t=f.length,f=parseInt(f.substr(1),16),7===t?p=[(f&16711680)>>16,(f&65280)>>8,f&255,1]:4===t&&(p=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!p)for(y=this.parsers.length;y--&&!p;)u=this.parsers[y],(t=u.regex.exec(f))&&(p=u.parse(t));this.rgba=p||[]},get:function(a){var f=this.input,p=this.rgba,
36
+ y;this.stops?(y=E(f),y.stops=[].concat(y.stops),C(this.stops,function(f,k){y.stops[k]=[y.stops[k][0],f.get(a)]})):y=p&&B(p[0])?"rgb"===a||!a&&1===p[3]?"rgb("+p[0]+","+p[1]+","+p[2]+")":"a"===a?p[3]:"rgba("+p.join(",")+")":f;return y},brighten:function(a){var f,p=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(B(a)&&0!==a)for(f=0;3>f;f++)p[f]+=q(255*a),0>p[f]&&(p[f]=0),255<p[f]&&(p[f]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this}};a.color=function(f){return new a.Color(f)}})(L);
37
+ (function(a){var C,B,F=a.addEvent,E=a.animate,q=a.attr,f=a.charts,t=a.color,p=a.css,y=a.createElement,u=a.defined,k=a.deg2rad,e=a.destroyObjectProperties,g=a.doc,x=a.each,b=a.extend,l=a.erase,d=a.grep,A=a.hasTouch,n=a.inArray,H=a.isArray,r=a.isFirefox,J=a.isMS,c=a.isObject,w=a.isString,K=a.isWebKit,v=a.merge,D=a.noop,m=a.objectEach,I=a.pick,h=a.pInt,z=a.removeEvent,P=a.stop,M=a.svg,Q=a.SVG_NS,N=a.symbolSizes,O=a.win;C=a.SVGElement=function(){return this};C.prototype={opacity:1,SVG_NS:Q,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),
38
+ init:function(a,h){this.element="span"===h?y(h):g.createElementNS(this.SVG_NS,h);this.renderer=a},animate:function(G,h,c){h=a.animObject(I(h,this.renderer.globalAnimation,!0));0!==h.duration?(c&&(h.complete=c),E(this,G,h)):(this.attr(G,null,c),h.step&&h.step.call(this));return this},colorGradient:function(h,c,b){var G=this.renderer,z,d,r,e,w,D,g,M,n,R,l=[],I;h.radialGradient?d="radialGradient":h.linearGradient&&(d="linearGradient");d&&(r=h[d],w=G.gradients,g=h.stops,R=b.radialReference,H(r)&&(h[d]=
39
+ r={x1:r[0],y1:r[1],x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===d&&R&&!u(r.gradientUnits)&&(e=r,r=v(r,G.getRadialAttr(R,e),{gradientUnits:"userSpaceOnUse"})),m(r,function(a,h){"id"!==h&&l.push(h,a)}),m(g,function(a){l.push(a)}),l=l.join(","),w[l]?R=w[l].attr("id"):(r.id=R=a.uniqueKey(),w[l]=D=G.createElement(d).attr(r).add(G.defs),D.radAttr=e,D.stops=[],x(g,function(h){0===h[1].indexOf("rgba")?(z=a.color(h[1]),M=z.get("rgb"),n=z.get("a")):(M=h[1],n=1);h=G.createElement("stop").attr({offset:h[0],
40
+ "stop-color":M,"stop-opacity":n}).add(D);D.stops.push(h)})),I="url("+G.url+"#"+R+")",b.setAttribute(c,I),b.gradient=l,h.toString=function(){return I})},applyTextOutline:function(h){var G=this.element,c,b,z,m,d;-1!==h.indexOf("contrast")&&(h=h.replace(/contrast/g,this.renderer.getContrast(G.style.fill)));h=h.split(" ");b=h[h.length-1];if((z=h[0])&&"none"!==z&&a.svg){this.fakeTS=!0;h=[].slice.call(G.getElementsByTagName("tspan"));this.ySetter=this.xSetter;z=z.replace(/(^[\d\.]+)(.*?)$/g,function(a,
41
+ h,G){return 2*h+G});for(d=h.length;d--;)c=h[d],"highcharts-text-outline"===c.getAttribute("class")&&l(h,G.removeChild(c));m=G.firstChild;x(h,function(a,h){0===h&&(a.setAttribute("x",G.getAttribute("x")),h=G.getAttribute("y"),a.setAttribute("y",h||0),null===h&&G.setAttribute("y",0));a=a.cloneNode(1);q(a,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":z,"stroke-linejoin":"round"});G.insertBefore(a,m)})}},attr:function(a,h,c,b){var G,z=this.element,d,r=this,v,e;"string"===typeof a&&
42
+ void 0!==h&&(G=a,a={},a[G]=h);"string"===typeof a?r=(this[a+"Getter"]||this._defaultGetter).call(this,a,z):(m(a,function(h,G){v=!1;b||P(this,G);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(G)&&(d||(this.symbolAttr(a),d=!0),v=!0);!this.rotation||"x"!==G&&"y"!==G||(this.doTransform=!0);v||(e=this[G+"Setter"]||this._defaultSetter,e.call(this,h,G,z),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(G)&&this.updateShadows(G,h,e))},this),this.doTransform&&
43
+ (this.updateTransform(),this.doTransform=!1));c&&c();return r},updateShadows:function(a,h,c){for(var G=this.shadows,b=G.length;b--;)c.call(G[b],"height"===a?Math.max(h-(G[b].cutHeight||0),0):"d"===a?this.d:h,a,G[b])},addClass:function(a,h){var G=this.attr("class")||"";-1===G.indexOf(a)&&(h||(a=(G+(G?" ":"")+a).replace(" "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==q(this.element,"class").indexOf(a)},removeClass:function(a){q(this.element,"class",(q(this.element,"class")||
44
+ "").replace(a,""));return this},symbolAttr:function(a){var h=this;x("x y r start end width height innerR anchorX anchorY".split(" "),function(G){h[G]=I(a[G],h[G])});h.attr({d:h.renderer.symbols[h.symbolName](h.x,h.y,h.width,h.height,h)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,h){var G=this,c={},b;h=h||a.strokeWidth||0;b=Math.round(h)%2/2;a.x=Math.floor(a.x||G.x||0)+b;a.y=Math.floor(a.y||G.y||0)+b;a.width=Math.floor((a.width||
45
+ G.width||0)-2*b);a.height=Math.floor((a.height||G.height||0)-2*b);u(a.strokeWidth)&&(a.strokeWidth=h);m(a,function(a,h){G[h]!==a&&(G[h]=c[h]=a)});return c},css:function(a){var G=this.styles,c={},z=this.element,d,r="",v,e=!G,w=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);G&&m(a,function(a,h){a!==G[h]&&(c[h]=a,e=!0)});e&&(G&&(a=b(G,c)),d=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===z.nodeName.toLowerCase()&&h(a.width),this.styles=a,d&&!M&&this.renderer.forExport&&delete a.width,
46
+ J&&!M?p(this.element,a):(v=function(a,h){return"-"+h.toLowerCase()},m(a,function(a,h){-1===n(h,w)&&(r+=h.replace(/([A-Z])/g,v)+":"+a+";")}),r&&q(z,"style",r)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},strokeWidth:function(){return this["stroke-width"]||0},on:function(a,h){var G=this,c=G.element;A&&"click"===a?(c.ontouchstart=function(a){G.touchEventFired=Date.now();a.preventDefault();h.call(c,a)},
47
+ c.onclick=function(a){(-1===O.navigator.userAgent.indexOf("Android")||1100<Date.now()-(G.touchEventFired||0))&&h.call(c,a)}):c["on"+a]=h;return this},setRadialReference:function(a){var h=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;h&&h.radAttr&&h.animate(this.renderer.getRadialAttr(a,h.radAttr));return this},translate:function(a,h){return this.attr({translateX:a,translateY:h})},invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=
48
+ this.translateX||0,h=this.translateY||0,c=this.scaleX,b=this.scaleY,z=this.inverted,m=this.rotation,d=this.element;z&&(a+=this.width,h+=this.height);a=["translate("+a+","+h+")"];z?a.push("rotate(90) scale(-1,1)"):m&&a.push("rotate("+m+" "+(d.getAttribute("x")||0)+" "+(d.getAttribute("y")||0)+")");(u(c)||u(b))&&a.push("scale("+I(c,1)+" "+I(b,1)+")");a.length&&d.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,h,c){var G,
49
+ b,z,m,d={};b=this.renderer;z=b.alignedObjects;var r,v;if(a){if(this.alignOptions=a,this.alignByTranslate=h,!c||w(c))this.alignTo=G=c||"renderer",l(z,this),z.push(this),c=null}else a=this.alignOptions,h=this.alignByTranslate,G=this.alignTo;c=I(c,b[G],b);G=a.align;b=a.verticalAlign;z=(c.x||0)+(a.x||0);m=(c.y||0)+(a.y||0);"right"===G?r=1:"center"===G&&(r=2);r&&(z+=(c.width-(a.width||0))/r);d[h?"translateX":"x"]=Math.round(z);"bottom"===b?v=1:"middle"===b&&(v=2);v&&(m+=(c.height-(a.height||0))/v);d[h?
50
+ "translateY":"y"]=Math.round(m);this[this.placed?"animate":"attr"](d);this.placed=!0;this.alignAttr=d;return this},getBBox:function(a,h){var c,G=this.renderer,z,m=this.element,d=this.styles,r,v=this.textStr,e,w=G.cache,D=G.cacheKeys,g;h=I(h,this.rotation);z=h*k;r=d&&d.fontSize;void 0!==v&&(g=v.toString(),-1===g.indexOf("\x3c")&&(g=g.replace(/[0-9]/g,"0")),g+=["",h||0,r,d&&d.width,d&&d.textOverflow].join());g&&!a&&(c=w[g]);if(!c){if(m.namespaceURI===this.SVG_NS||G.forExport){try{(e=this.fakeTS&&function(a){x(m.querySelectorAll(".highcharts-text-outline"),
51
+ function(h){h.style.display=a})})&&e("none"),c=m.getBBox?b({},m.getBBox()):{width:m.offsetWidth,height:m.offsetHeight},e&&e("")}catch(W){}if(!c||0>c.width)c={width:0,height:0}}else c=this.htmlGetBBox();G.isSVG&&(a=c.width,G=c.height,d&&"11px"===d.fontSize&&17===Math.round(G)&&(c.height=G=14),h&&(c.width=Math.abs(G*Math.sin(z))+Math.abs(a*Math.cos(z)),c.height=Math.abs(G*Math.cos(z))+Math.abs(a*Math.sin(z))));if(g&&0<c.height){for(;250<D.length;)delete w[D.shift()];w[g]||D.push(g);w[g]=c}}return c},
52
+ show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var h=this;h.animate({opacity:0},{duration:a||150,complete:function(){h.attr({y:-9999})}})},add:function(a){var h=this.renderer,c=this.element,G;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&h.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)G=this.zIndexSetter();G||(a?a.element:h.box).appendChild(c);if(this.onAdd)this.onAdd();
53
+ return this},safeRemoveChild:function(a){var h=a.parentNode;h&&h.removeChild(a)},destroy:function(){var a=this,h=a.element||{},c=a.renderer.isSVG&&"SPAN"===h.nodeName&&a.parentGroup,b=h.ownerSVGElement;h.onclick=h.onmouseout=h.onmouseover=h.onmousemove=h.point=null;P(a);a.clipPath&&b&&(x(b.querySelectorAll("[clip-path]"),function(h){-1<h.getAttribute("clip-path").indexOf(a.clipPath.element.id+")")&&h.removeAttribute("clip-path")}),a.clipPath=a.clipPath.destroy());if(a.stops){for(b=0;b<a.stops.length;b++)a.stops[b]=
54
+ a.stops[b].destroy();a.stops=null}a.safeRemoveChild(h);for(a.destroyShadows();c&&c.div&&0===c.div.childNodes.length;)h=c.parentGroup,a.safeRemoveChild(c.div),delete c.div,c=h;a.alignTo&&l(a.renderer.alignedObjects,a);m(a,function(h,c){delete a[c]});return null},shadow:function(a,h,c){var b=[],z,G,m=this.element,d,r,v,e;if(!a)this.destroyShadows();else if(!this.shadows){r=I(a.width,3);v=(a.opacity||.15)/r;e=this.parentInverted?"(-1,-1)":"("+I(a.offsetX,1)+", "+I(a.offsetY,1)+")";for(z=1;z<=r;z++)G=
55
+ m.cloneNode(0),d=2*r+1-2*z,q(G,{isShadow:"true",stroke:a.color||"#000000","stroke-opacity":v*z,"stroke-width":d,transform:"translate"+e,fill:"none"}),c&&(q(G,"height",Math.max(q(G,"height")-d,0)),G.cutHeight=d),h?h.element.appendChild(G):m.parentNode.insertBefore(G,m),b.push(G);this.shadows=b}return this},destroyShadows:function(){x(this.shadows||[],function(a){this.safeRemoveChild(a)},this);this.shadows=void 0},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));
56
+ return this._defaultGetter(a)},_defaultGetter:function(a){a=I(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,h,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");c.setAttribute(h,a);this[h]=a},dashstyleSetter:function(a){var c,b=this["stroke-width"];"inherit"===b&&(b=1);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",
57
+ "3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=a.length;c--;)a[c]=h(a[c])*b;a=a.join(",").replace(/NaN/g,"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,h,c){this[h]=a;c.setAttribute(h,a)},titleSetter:function(a){var h=this.element.getElementsByTagName("title")[0];h||(h=g.createElementNS(this.SVG_NS,
58
+ "title"),this.element.appendChild(h));h.firstChild&&h.removeChild(h.firstChild);h.appendChild(g.createTextNode(String(I(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,h,c){"string"===typeof a?c.setAttribute(h,a):a&&this.colorGradient(a,h,c)},visibilitySetter:function(a,h,c){"inherit"===a?c.removeAttribute(h):c.setAttribute(h,a)},zIndexSetter:function(a,c){var b=this.renderer,
59
+ z=this.parentGroup,m=(z||b).element||b.box,d,r=this.element,G;d=this.added;var v;u(a)&&(r.zIndex=a,a=+a,this[c]===a&&(d=!1),this[c]=a);if(d){(a=this.zIndex)&&z&&(z.handleZ=!0);c=m.childNodes;for(v=0;v<c.length&&!G;v++)z=c[v],d=z.zIndex,z!==r&&(h(d)>a||!u(a)&&u(d)||0>a&&!u(d)&&m!==b.box)&&(m.insertBefore(r,z),G=!0);G||m.appendChild(r)}return G},_defaultSetter:function(a,h,c){c.setAttribute(h,a)}};C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=
60
+ C.prototype.verticalAlignSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=function(a,h){this[h]=a;this.doTransform=!0};C.prototype["stroke-widthSetter"]=C.prototype.strokeSetter=function(a,h,c){this[h]=a;this.stroke&&this["stroke-width"]?(C.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===h&&0===a&&this.hasStroke&&(c.removeAttribute("stroke"),this.hasStroke=!1)};B=a.SVGRenderer=function(){this.init.apply(this,
61
+ arguments)};B.prototype={Element:C,SVG_NS:Q,init:function(a,h,c,b,z,m){var d;b=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}).css(this.getStyle(b));d=b.element;a.appendChild(d);-1===a.innerHTML.indexOf("xmlns")&&q(d,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=d;this.boxWrapper=b;this.alignedObjects=[];this.url=(r||K)&&g.getElementsByTagName("base").length?O.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highstock 5.0.11"));
62
+ this.defs=this.createElement("defs").add();this.allowHTML=m;this.forExport=z;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(h,c,!1);var G;r&&a.getBoundingClientRect&&(h=function(){p(a,{left:0,top:0});G=a.getBoundingClientRect();p(a,{left:Math.ceil(G.left)-G.left+"px",top:Math.ceil(G.top)-G.top+"px"})},h(),this.unSubPixelFix=F(O,"resize",h))},getStyle:function(a){return this.style=b({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},
63
+ a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();e(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var h=new this.Element;h.init(this,a);return h},draw:D,getRadialAttr:function(a,h){return{cx:a[0]-a[2]/2+h.cx*a[2],cy:a[1]-
64
+ a[2]/2+h.cy*a[2],r:h.r*a[2]}},getSpanWidth:function(a,h){var c=a.getBBox(!0).width;!M&&this.forExport&&(c=this.measureSpanWidth(h.firstChild.data,a.styles));return c},applyEllipsis:function(a,h,c,b){var z=this.getSpanWidth(a,h),m=z>b,z=c,d,r=0,v=c.length,G=function(a){h.removeChild(h.firstChild);a&&h.appendChild(g.createTextNode(a))};if(m){for(;r<=v;)d=Math.ceil((r+v)/2),z=c.substring(0,d)+"\u2026",G(z),z=this.getSpanWidth(a,h),r===v?r=v+1:z>b?v=d-1:r=d;0===v&&G("")}return m},buildText:function(a){var c=
65
+ a.element,b=this,z=b.forExport,m=I(a.textStr,"").toString(),r=-1!==m.indexOf("\x3c"),v=c.childNodes,G,e,w,D,n=q(c,"x"),l=a.styles,J=a.textWidth,A=l&&l.lineHeight,k=l&&l.textOutline,H=l&&"ellipsis"===l.textOverflow,K=l&&"nowrap"===l.whiteSpace,f=l&&l.fontSize,P,u,y=v.length,l=J&&!a.added&&this.box,t=function(a){var z;z=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:f||b.style.fontSize||12;return A?h(A):b.fontMetrics(z,a.getAttribute("style")?a:c).h};P=[m,H,K,A,k,f,J].join();if(P!==a.textCache){for(a.textCache=
66
+ P;y--;)c.removeChild(v[y]);r||k||H||J||-1!==m.indexOf(" ")?(G=/<.*class="([^"]+)".*>/,e=/<.*style="([^"]+)".*>/,w=/<.*href="(http[^"]+)".*>/,l&&l.appendChild(c),m=r?m.replace(/<(b|strong)>/g,'\x3cspan style\x3d"font-weight:bold"\x3e').replace(/<(i|em)>/g,'\x3cspan style\x3d"font-style:italic"\x3e').replace(/<a/g,"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(/<br.*?>/g):[m],m=d(m,function(a){return""!==a}),x(m,function(h,m){var d,r=0;h=h.replace(/^\s+|\s+$/g,"").replace(/<span/g,
67
+ "|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");d=h.split("|||");x(d,function(h){if(""!==h||1===d.length){var v={},l=g.createElementNS(b.SVG_NS,"tspan"),I,x;G.test(h)&&(I=h.match(G)[1],q(l,"class",I));e.test(h)&&(x=h.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),q(l,"style",x));w.test(h)&&!z&&(q(l,"onclick",'location.href\x3d"'+h.match(w)[1]+'"'),p(l,{cursor:"pointer"}));h=(h.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e");if(" "!==h){l.appendChild(g.createTextNode(h));
68
+ r?v.dx=0:m&&null!==n&&(v.x=n);q(l,v);c.appendChild(l);!r&&u&&(!M&&z&&p(l,{display:"block"}),q(l,"dy",t(l)));if(J){v=h.replace(/([^\^])-/g,"$1- ").split(" ");I=1<d.length||m||1<v.length&&!K;var A=[],k,f=t(l),P=a.rotation;for(H&&(D=b.applyEllipsis(a,l,h,J));!H&&I&&(v.length||A.length);)a.rotation=0,k=b.getSpanWidth(a,l),h=k>J,void 0===D&&(D=h),h&&1!==v.length?(l.removeChild(l.firstChild),A.unshift(v.pop())):(v=A,A=[],v.length&&!K&&(l=g.createElementNS(Q,"tspan"),q(l,{dy:f,x:n}),x&&q(l,"style",x),c.appendChild(l)),
69
+ k>J&&(J=k)),v.length&&l.appendChild(g.createTextNode(v.join(" ").replace(/- /g,"-")));a.rotation=P}r++}}});u=u||c.childNodes.length}),D&&a.attr("title",a.textStr),l&&l.removeChild(c),k&&a.applyTextOutline&&a.applyTextOutline(k)):c.appendChild(g.createTextNode(m.replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e")))}},getContrast:function(a){a=t(a).rgba;return 510<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,h,c,z,m,d,r,e,w){var G=this.label(a,h,c,w,null,null,null,null,"button"),l=0;G.attr(v({padding:8,
70
+ r:2},m));var D,g,n,M;m=v({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},m);D=m.style;delete m.style;d=v(m,{fill:"#e6e6e6"},d);g=d.style;delete d.style;r=v(m,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},r);n=r.style;delete r.style;e=v(m,{style:{color:"#cccccc"}},e);M=e.style;delete e.style;F(G.element,J?"mouseover":"mouseenter",function(){3!==l&&G.setState(1)});F(G.element,J?"mouseout":"mouseleave",function(){3!==l&&G.setState(l)});
71
+ G.setState=function(a){1!==a&&(G.state=l=a);G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);G.attr([m,d,r,e][a||0]).css([D,g,n,M][a||0])};G.attr(m).css(b({cursor:"default"},D));return G.on("click",function(a){3!==l&&z.call(G,a)})},crispLine:function(a,h){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-h%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+h%2/2);return a},path:function(a){var h={fill:"none"};H(a)?h.d=
72
+ a:c(a)&&b(h,a);return this.createElement("path").attr(h)},circle:function(a,h,b){a=c(a)?a:{x:a,y:h,r:b};h=this.createElement("circle");h.xSetter=h.ySetter=function(a,h,c){c.setAttribute("c"+h,a)};return h.attr(a)},arc:function(a,h,b,z,m,d){c(a)?(z=a,h=z.y,b=z.r,a=z.x):z={innerR:z,start:m,end:d};a=this.symbol("arc",a,h,b,b,z);a.r=b;return a},rect:function(a,h,b,z,m,d){m=c(a)?a.r:m;var r=this.createElement("rect");a=c(a)?a:void 0===a?{}:{x:a,y:h,width:Math.max(b,0),height:Math.max(z,0)};void 0!==d&&
73
+ (a.strokeWidth=d,a=r.crisp(a));a.fill="none";m&&(a.r=m);r.rSetter=function(a,h,c){q(c,{rx:a,ry:a})};return r.attr(a)},setSize:function(a,h,c){var b=this.alignedObjects,z=b.length;this.width=a;this.height=h;for(this.boxWrapper.animate({width:a,height:h},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:I(c,!0)?void 0:0});z--;)b[z].align()},g:function(a){var h=this.createElement("g");return a?h.attr({"class":"highcharts-"+a}):h},image:function(a,h,c,z,
74
+ m){var d={preserveAspectRatio:"none"};1<arguments.length&&b(d,{x:h,y:c,width:z,height:m});d=this.createElement("image").attr(d);d.element.setAttributeNS?d.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):d.element.setAttribute("hc-svg-href",a);return d},symbol:function(a,h,c,z,m,d){var r=this,v,e=/^url\((.*?)\)$/,w=e.test(a),G=!w&&(this.symbols[a]?a:"circle"),l=G&&this.symbols[G],D=u(h)&&l&&l.call(this.symbols,Math.round(h),Math.round(c),z,m,d),n,M;l?(v=this.path(D),v.attr("fill","none"),
75
+ b(v,{symbolName:G,x:h,y:c,width:z,height:m}),d&&b(v,d)):w&&(n=a.match(e)[1],v=this.image(n),v.imgwidth=I(N[n]&&N[n].width,d&&d.width),v.imgheight=I(N[n]&&N[n].height,d&&d.height),M=function(){v.attr({width:v.width,height:v.height})},x(["width","height"],function(a){v[a+"Setter"]=function(a,h){var c={},b=this["img"+h],z="width"===h?"translateX":"translateY";this[h]=a;u(b)&&(this.element&&this.element.setAttribute(h,b),this.alignByTranslate||(c[z]=((this[h]||0)-b)/2,this.attr(c)))}}),u(h)&&v.attr({x:h,
76
+ y:c}),v.isImg=!0,u(v.imgwidth)&&u(v.imgheight)?M():(v.attr({width:0,height:0}),y("img",{onload:function(){var a=f[r.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this));N[n]={width:this.width,height:this.height};v.imgwidth=this.width;v.imgheight=this.height;v.element&&M();this.parentNode&&this.parentNode.removeChild(this);r.imgCount--;if(!r.imgCount&&a&&a.onload)a.onload()},src:n}),this.imgCount++));return v},symbols:{circle:function(a,h,c,b){return this.arc(a+
77
+ c/2,h+b/2,c/2,b/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,h,c,b){return["M",a,h,"L",a+c,h,a+c,h+b,a,h+b,"Z"]},triangle:function(a,h,c,b){return["M",a+c/2,h,"L",a+c,h+b,a,h+b,"Z"]},"triangle-down":function(a,h,c,b){return["M",a,h,"L",a+c,h,a+c/2,h+b,"Z"]},diamond:function(a,h,c,b){return["M",a+c/2,h,"L",a+c,h+b/2,a+c/2,h+b,a,h+b/2,"Z"]},arc:function(a,h,c,b,z){var m=z.start,d=z.r||c,r=z.r||b||c,v=z.end-.001;c=z.innerR;b=z.open;var e=Math.cos(m),w=Math.sin(m),l=Math.cos(v),v=Math.sin(v);
78
+ z=z.end-m<Math.PI?0:1;d=["M",a+d*e,h+r*w,"A",d,r,0,z,1,a+d*l,h+r*v];u(c)&&d.push(b?"M":"L",a+c*l,h+c*v,"A",c,c,0,z,0,a+c*e,h+c*w);d.push(b?"":"Z");return d},callout:function(a,h,c,b,z){var m=Math.min(z&&z.r||0,c,b),d=m+6,r=z&&z.anchorX;z=z&&z.anchorY;var v;v=["M",a+m,h,"L",a+c-m,h,"C",a+c,h,a+c,h,a+c,h+m,"L",a+c,h+b-m,"C",a+c,h+b,a+c,h+b,a+c-m,h+b,"L",a+m,h+b,"C",a,h+b,a,h+b,a,h+b-m,"L",a,h+m,"C",a,h,a,h,a+m,h];r&&r>c?z>h+d&&z<h+b-d?v.splice(13,3,"L",a+c,z-6,a+c+6,z,a+c,z+6,a+c,h+b-m):v.splice(13,
79
+ 3,"L",a+c,b/2,r,z,a+c,b/2,a+c,h+b-m):r&&0>r?z>h+d&&z<h+b-d?v.splice(33,3,"L",a,z+6,a-6,z,a,z-6,a,h+m):v.splice(33,3,"L",a,b/2,r,z,a,b/2,a,h+m):z&&z>b&&r>a+d&&r<a+c-d?v.splice(23,3,"L",r+6,h+b,r,h+b+6,r-6,h+b,a+m,h+b):z&&0>z&&r>a+d&&r<a+c-d&&v.splice(3,3,"L",r-6,h,r,h-6,r+6,h,c-m,h);return v}},clipRect:function(h,c,b,z){var m=a.uniqueKey(),d=this.createElement("clipPath").attr({id:m}).add(this.defs);h=this.rect(h,c,b,z,0).add(d);h.id=m;h.clipPath=d;h.count=0;return h},text:function(a,h,c,b){var z=
80
+ !M&&this.forExport,m={};if(b&&(this.allowHTML||!this.forExport))return this.html(a,h,c);m.x=Math.round(h||0);c&&(m.y=Math.round(c));if(a||0===a)m.text=a;a=this.createElement("text").attr(m);z&&a.css({position:"absolute"});b||(a.xSetter=function(a,h,c){var b=c.getElementsByTagName("tspan"),z,m=c.getAttribute(h),d;for(d=0;d<b.length;d++)z=b[d],z.getAttribute(h)===m&&z.setAttribute(h,a);c.setAttribute(h,a)});return a},fontMetrics:function(a,c){a=a||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize;
81
+ a=/px/.test(a)?h(a):/em/.test(a)?parseFloat(a)*(c?this.fontMetrics(null,c.parentNode).f:16):12;c=24>a?a+3:Math.round(1.2*a);return{h:c,b:Math.round(.8*c),f:a}},rotCorr:function(a,h,c){var b=a;h&&c&&(b=Math.max(b*Math.cos(h*k),4));return{x:-a/3*Math.sin(h*k),y:b}},label:function(h,c,m,d,r,e,w,l,D){var g=this,n=g.g("button"!==D&&"label"),M=n.text=g.text("",0,0,w).attr({zIndex:1}),I,J,G=0,A=3,k=0,H,K,f,P,p,Q={},y,q,t=/^url\((.*?)\)$/.test(d),N=t,R,V,U,O;D&&n.addClass("highcharts-"+D);N=t;R=function(){return(y||
82
+ 0)%2/2};V=function(){var a=M.element.style,h={};J=(void 0===H||void 0===K||p)&&u(M.textStr)&&M.getBBox();n.width=(H||J.width||0)+2*A+k;n.height=(K||J.height||0)+2*A;q=A+g.fontMetrics(a&&a.fontSize,M).b;N&&(I||(n.box=I=g.symbols[d]||t?g.symbol(d):g.rect(),I.addClass(("button"===D?"":"highcharts-label-box")+(D?" highcharts-"+D+"-box":"")),I.add(n),a=R(),h.x=a,h.y=(l?-q:0)+a),h.width=Math.round(n.width),h.height=Math.round(n.height),I.attr(b(h,Q)),Q={})};U=function(){var a=k+A,h;h=l?0:q;u(H)&&J&&("center"===
83
+ p||"right"===p)&&(a+={center:.5,right:1}[p]*(H-J.width));if(a!==M.x||h!==M.y)M.attr("x",a),void 0!==h&&M.attr("y",h);M.x=a;M.y=h};O=function(a,h){I?I.attr(a,h):Q[a]=h};n.onAdd=function(){M.add(n);n.attr({text:h||0===h?h:"",x:c,y:m});I&&u(r)&&n.attr({anchorX:r,anchorY:e})};n.widthSetter=function(h){H=a.isNumber(h)?h:null};n.heightSetter=function(a){K=a};n["text-alignSetter"]=function(a){p=a};n.paddingSetter=function(a){u(a)&&a!==A&&(A=n.padding=a,U())};n.paddingLeftSetter=function(a){u(a)&&a!==k&&
84
+ (k=a,U())};n.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==G&&(G=a,J&&n.attr({x:f}))};n.textSetter=function(a){void 0!==a&&M.textSetter(a);V();U()};n["stroke-widthSetter"]=function(a,h){a&&(N=!0);y=this["stroke-width"]=a;O(h,a)};n.strokeSetter=n.fillSetter=n.rSetter=function(a,h){"fill"===h&&a&&(N=!0);O(h,a)};n.anchorXSetter=function(a,h){r=n.anchorX=a;O(h,Math.round(a)-R()-f)};n.anchorYSetter=function(a,h){e=n.anchorY=a;O(h,a-P)};n.xSetter=function(a){n.x=a;G&&(a-=G*((H||J.width)+2*
85
+ A));f=Math.round(a);n.attr("translateX",f)};n.ySetter=function(a){P=n.y=Math.round(a);n.attr("translateY",P)};var B=n.css;return b(n,{css:function(a){if(a){var h={};a=v(a);x(n.textProps,function(c){void 0!==a[c]&&(h[c]=a[c],delete a[c])});M.css(h)}return B.call(n,a)},getBBox:function(){return{width:J.width+2*A,height:J.height+2*A,x:J.x-A,y:J.y-A}},shadow:function(a){a&&(V(),I&&I.shadow(a));return n},destroy:function(){z(n.element,"mouseenter");z(n.element,"mouseleave");M&&(M=M.destroy());I&&(I=I.destroy());
86
+ C.prototype.destroy.call(n);n=g=V=U=O=null}})}};a.Renderer=B})(L);(function(a){var C=a.attr,B=a.createElement,F=a.css,E=a.defined,q=a.each,f=a.extend,t=a.isFirefox,p=a.isMS,y=a.isWebKit,u=a.pInt,k=a.SVGRenderer,e=a.win,g=a.wrap;f(a.SVGElement.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=f(this.styles,a);F(this.element,
87
+ 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,e=this.translateX||0,d=this.translateY||0,g=this.x||0,n=this.y||0,k=this.textAlign||"left",r={left:0,center:.5,right:1}[k],J=this.styles;F(b,{marginLeft:e,marginTop:d});this.shadows&&q(this.shadows,function(a){F(a,{marginLeft:e+1,marginTop:d+
88
+ 1})});this.inverted&&q(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var c=this.rotation,w=u(this.textWidth),K=J&&J.whiteSpace,v=[c,k,b.innerHTML,this.textWidth,this.textAlign].join();v!==this.cTT&&(J=a.fontMetrics(b.style.fontSize).b,E(c)&&this.setSpanRotation(c,r,J),F(b,{width:"",whiteSpace:K||"nowrap"}),b.offsetWidth>w&&/[ \-]/.test(b.textContent||b.innerText)&&F(b,{width:w+"px",display:"block",whiteSpace:K||"normal"}),this.getSpanCorrection(b.offsetWidth,J,r,c,k));F(b,{left:g+
89
+ (this.xCorr||0)+"px",top:n+(this.yCorr||0)+"px"});y&&(J=b.offsetHeight);this.cTT=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,l){var d={},g=p?"-ms-transform":y?"-webkit-transform":t?"MozTransform":e.opera?"-o-transform":"";d[g]=d.transform="rotate("+a+"deg)";d[g+(t?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+l+"px";F(this.element,d)},getSpanCorrection:function(a,b,e){this.xCorr=-a*e;this.yCorr=-b}});f(k.prototype,{html:function(a,b,e){var d=this.createElement("span"),l=d.element,
90
+ n=d.renderer,k=n.isSVG,r=function(a,c){q(["opacity","visibility"],function(b){g(a,b+"Setter",function(a,b,d,m){a.call(this,b,d,m);c[d]=b})})};d.textSetter=function(a){a!==l.innerHTML&&delete this.bBox;l.innerHTML=this.textStr=a;d.htmlUpdateTransform()};k&&r(d,d.element.style);d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,c){"align"===c&&(c="textAlign");d[c]=a;d.htmlUpdateTransform()};d.attr({text:a,x:Math.round(b),y:Math.round(e)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,
91
+ position:"absolute"});l.style.whiteSpace="nowrap";d.css=d.htmlCss;k&&(d.add=function(a){var c,b=n.box.parentNode,e=[];if(this.parentGroup=a){if(c=a.div,!c){for(;a;)e.push(a),a=a.parentGroup;q(e.reverse(),function(a){var v,m=C(a.element,"class");m&&(m={className:m});c=a.div=a.div||B("div",m,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},c||b);v=c.style;f(a,{on:function(){d.on.apply({element:e[0].div},
92
+ arguments);return a},translateXSetter:function(c,h){v.left=c+"px";a[h]=c;a.doTransform=!0},translateYSetter:function(c,h){v.top=c+"px";a[h]=c;a.doTransform=!0}});r(a,v)})}}else c=b;c.appendChild(l);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d});return d}})})(L);(function(a){var C,B,F=a.createElement,E=a.css,q=a.defined,f=a.deg2rad,t=a.discardElement,p=a.doc,y=a.each,u=a.erase,k=a.extend;C=a.extendClass;var e=a.isArray,g=a.isNumber,x=a.isObject,b=a.merge;B=a.noop;var l=a.pick,d=a.pInt,
93
+ A=a.SVGElement,n=a.SVGRenderer,H=a.win;a.svg||(B={docMode8:p&&8===p.documentMode,init:function(a,b){var c=["\x3c",b,' filled\x3d"f" stroked\x3d"f"'],d=["position: ","absolute",";"],r="div"===b;("shape"===b||r)&&d.push("left:0;top:0;width:1px;height:1px;");d.push("visibility: ",r?"hidden":"visible");c.push(' style\x3d"',d.join(""),'"/\x3e');b&&(c=r||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=F(c));this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,r=a&&a.inverted,
94
+ d=a?a.element||a:d;a&&(this.parentGroup=a);r&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();this.className&&this.attr("class",this.className);return this},updateTransform:A.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=this.rotation,b=Math.cos(a*f),c=Math.sin(a*f);E(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11\x3d",b,", M12\x3d",-c,", M21\x3d",c,", M22\x3d",
95
+ b,", sizingMethod\x3d'auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,c,d,e){var r=d?Math.cos(d*f):1,n=d?Math.sin(d*f):0,m=l(this.elemHeight,this.element.offsetHeight),w;this.xCorr=0>r&&-a;this.yCorr=0>n&&-m;w=0>r*n;this.xCorr+=n*b*(w?1-c:c);this.yCorr-=r*b*(d?w?c:1-c:1);e&&"left"!==e&&(this.xCorr-=a*c*(0>r?-1:1),d&&(this.yCorr-=m*c*(0>n?-1:1)),E(this.element,{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)g(a[b])?c[b]=Math.round(10*a[b])-5:"Z"===a[b]?c[b]="x":
96
+ (c[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b]||(c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1)));return c.join(" ")||"x"},clip:function(a){var b=this,c;a?(c=a.members,u(c,b),c.push(b),b.destroyClip=function(){u(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:b.docMode8?"inherit":"rect(auto)"});return b.css(a)},css:A.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&t(a)},destroy:function(){this.destroyClip&&this.destroyClip();return A.prototype.destroy.apply(this)},
97
+ on:function(a,b){this.element["on"+a]=function(){var a=H.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c;a=a.split(/[ ,]/);c=a.length;if(9===c||11===c)a[c-4]=a[c-2]=d(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var r=[],e,v=this.element,n=this.renderer,m,g=v.style,h,z=v.path,k,M,A,x;z&&"string"!==typeof z.value&&(z="x");M=z;if(a){A=l(a.width,3);x=(a.opacity||.15)/A;for(e=1;3>=e;e++)k=2*A+1-2*e,c&&(M=this.cutOffPath(z.value,k+.5)),h=['\x3cshape isShadow\x3d"true" strokeweight\x3d"',
98
+ k,'" filled\x3d"false" path\x3d"',M,'" coordsize\x3d"10 10" style\x3d"',v.style.cssText,'" /\x3e'],m=F(n.prepVML(h),null,{left:d(g.left)+l(a.offsetX,1),top:d(g.top)+l(a.offsetY,1)}),c&&(m.cutOff=k+1),h=['\x3cstroke color\x3d"',a.color||"#000000",'" opacity\x3d"',x*e,'"/\x3e'],F(n.prepVML(h),null,null,m),b?b.element.appendChild(m):v.parentNode.insertBefore(m,v),r.push(m);this.shadows=r}return this},updateShadows:B,setAttr:function(a,b){this.docMode8?this.element[a]=b:this.element.setAttribute(a,b)},
99
+ classSetter:function(a){(this.added?this.element:this).className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||F(this.renderer.prepVML(["\x3cstroke/\x3e"]),null,null,c))[b]=a||"solid";this[b]=a},dSetter:function(a,b,c){var d=this.shadows;a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;"SPAN"===d?c.style.color=a:"IMG"!==
100
+ d&&(c.filled="none"!==a,this.setAttr("fillcolor",this.renderer.color(a,c,b,this)))},"fill-opacitySetter":function(a,b,c){F(this.renderer.prepVML(["\x3c",b.split("-")[0],' opacity\x3d"',a,'"/\x3e']),null,null,c)},opacitySetter:B,rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-Math.round(Math.sin(a*f)+1)+"px";c.top=Math.round(Math.cos(a*f))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b,this))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;
101
+ this[b]=a;g(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){"inherit"===a&&(a="visible");this.shadows&&y(this.shadows,function(c){c.style[b]=a});"DIV"===c.nodeName&&(a="hidden"===a?"-999em":0,this.docMode8||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},xSetter:function(a,b,c){this[b]=a;"x"===b?b="left":"y"===b&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,
102
+ b,c){c.style[b]=a}},B["stroke-opacitySetter"]=B["fill-opacitySetter"],a.VMLElement=B=C(A,B),B.prototype.ySetter=B.prototype.widthSetter=B.prototype.heightSetter=B.prototype.xSetter,B={Element:B,isIE8:-1<H.navigator.userAgent.indexOf("MSIE 8.0"),init:function(a,b,c){var d,e;this.alignedObjects=[];d=this.createElement("div").css({position:"relative"});e=d.element;a.appendChild(d.element);this.isVML=!0;this.box=e;this.boxWrapper=d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,
103
+ c,!1);if(!p.namespaces.hcv){p.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{p.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(v){p.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),v=x(a);return k(e,{members:[],
104
+ count:0,left:(v?a.x:a)+1,top:(v?a.y:b)+1,width:(v?a.width:c)-1,height:(v?a.height:d)-1,getCSS:function(a){var c=a.element,b=c.nodeName,h=a.inverted,z=this.top-("shape"===b?c.offsetTop:0),d=this.left,c=d+this.width,v=z+this.height,z={clip:"rect("+Math.round(h?d:z)+"px,"+Math.round(h?v:c)+"px,"+Math.round(h?c:v)+"px,"+Math.round(h?z:d)+"px)"};!h&&a.docMode8&&"DIV"===b&&k(z,{width:c+"px",height:v+"px"});return z},updateClipping:function(){y(e.members,function(a){a.element&&a.css(e.getCSS(a))})}})},color:function(b,
105
+ d,c,e){var r=this,v,n=/^rgba/,m,l,h="none";b&&b.linearGradient?l="gradient":b&&b.radialGradient&&(l="pattern");if(l){var z,g,w=b.linearGradient||b.radialGradient,k,A,x,G,H,f="";b=b.stops;var J,p=[],u=function(){m=['\x3cfill colors\x3d"'+p.join(",")+'" opacity\x3d"',x,'" o:opacity2\x3d"',A,'" type\x3d"',l,'" ',f,'focus\x3d"100%" method\x3d"any" /\x3e'];F(r.prepVML(m),null,null,d)};k=b[0];J=b[b.length-1];0<k[0]&&b.unshift([0,k[1]]);1>J[0]&&b.push([1,J[1]]);y(b,function(h,b){n.test(h[1])?(v=a.color(h[1]),
106
+ z=v.get("rgb"),g=v.get("a")):(z=h[1],g=1);p.push(100*h[0]+"% "+z);b?(x=g,G=z):(A=g,H=z)});if("fill"===c)if("gradient"===l)c=w.x1||w[0]||0,b=w.y1||w[1]||0,k=w.x2||w[2]||0,w=w.y2||w[3]||0,f='angle\x3d"'+(90-180*Math.atan((w-b)/(k-c))/Math.PI)+'"',u();else{var h=w.r,q=2*h,t=2*h,B=w.cx,C=w.cy,E=d.radialReference,S,h=function(){E&&(S=e.getBBox(),B+=(E[0]-S.x)/S.width-.5,C+=(E[1]-S.y)/S.height-.5,q*=E[2]/S.width,t*=E[2]/S.height);f='src\x3d"'+a.getOptions().global.VMLRadialGradientURL+'" size\x3d"'+q+","+
107
+ t+'" origin\x3d"0.5,0.5" position\x3d"'+B+","+C+'" color2\x3d"'+H+'" ';u()};e.added?h():e.onAdd=h;h=G}else h=z}else n.test(b)&&"IMG"!==d.tagName?(v=a.color(b),e[c+"-opacitySetter"](v.get("a"),c,d),h=v.get("rgb")):(h=d.getElementsByTagName(c),h.length&&(h[0].opacity=1,h[0].type="solid"),h=b);return h},prepVML:function(a){var b=this.isIE8;a=a.join("");b?(a=a.replace("/\x3e",' xmlns\x3d"urn:schemas-microsoft-com:vml" /\x3e'),a=-1===a.indexOf('style\x3d"')?a.replace("/\x3e",' style\x3d"display:inline-block;behavior:url(#default#VML);" /\x3e'):
108
+ a.replace('style\x3d"','style\x3d"display:inline-block;behavior:url(#default#VML);')):a=a.replace("\x3c","\x3chcv:");return a},text:n.prototype.html,path:function(a){var b={coordsize:"10 10"};e(a)?b.d=a:x(a)&&k(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){var d=this.symbol("circle");x(a)&&(c=a.r,b=a.y,a=a.x);d.isCircle=!0;d.r=c;return d.attr({x:a,y:b})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement("div").attr(b)},
109
+ image:function(a,b,c,d,e){var v=this.createElement("img").attr({src:a});1<arguments.length&&v.attr({x:b,y:c,width:d,height:e});return v},createElement:function(a){return"rect"===a?this.symbol(a):n.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this;b=b.style;var e="IMG"===a.tagName&&a.style;E(a,{flip:"x",left:d(b.width)-(e?d(e.top):1),top:d(b.height)-(e?d(e.left):1),rotation:-90});y(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var v=e.start,
110
+ n=e.end,m=e.r||c||d;c=e.innerR;d=Math.cos(v);var l=Math.sin(v),h=Math.cos(n),z=Math.sin(n);if(0===n-v)return["x"];v=["wa",a-m,b-m,a+m,b+m,a+m*d,b+m*l,a+m*h,b+m*z];e.open&&!c&&v.push("e","M",a,b);v.push("at",a-c,b-c,a+c,b+c,a+c*h,b+c*z,a+c*d,b+c*l,"x","e");v.isArc=!0;return v},circle:function(a,b,c,d,e){e&&q(e.r)&&(c=d=2*e.r);e&&e.isCircle&&(a-=c/2,b-=d/2);return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){return n.prototype.symbols[q(e)&&e.r?"callout":"square"].call(0,a,b,
111
+ c,d,e)}}},a.VMLRenderer=C=function(){this.init.apply(this,arguments)},C.prototype=b(n.prototype,B),a.Renderer=C);n.prototype.measureSpanWidth=function(a,b){var c=p.createElement("span");a=p.createTextNode(a);c.appendChild(a);E(c,b);this.box.appendChild(c);b=c.offsetWidth;t(c);return b}})(L);(function(a){function C(){var f=a.defaultOptions.global,u=p.moment;if(f.timezone){if(u)return function(a){return-u.tz(a,f.timezone).utcOffset()};a.error(25)}return f.useUTC&&f.getTimezoneOffset}function B(){var f=
112
+ a.defaultOptions.global,u,k=f.useUTC,e=k?"getUTC":"get",g=k?"setUTC":"set";a.Date=u=f.Date||p.Date;u.hcTimezoneOffset=k&&f.timezoneOffset;u.hcGetTimezoneOffset=C();u.hcMakeTime=function(a,b,e,d,g,n){var l;k?(l=u.UTC.apply(0,arguments),l+=q(l)):l=(new u(a,b,t(e,1),t(d,0),t(g,0),t(n,0))).getTime();return l};E("Minutes Hours Day Date Month FullYear".split(" "),function(a){u["hcGet"+a]=e+a});E("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "),function(a){u["hcSet"+a]=g+a})}var F=a.color,
113
+ E=a.each,q=a.getTZOffset,f=a.merge,t=a.pick,p=a.win;a.defaultOptions={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(" "),
114
+ decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,VMLRadialGradientURL:"http://code.highcharts.com/5.0.11/gfx/vml-radial-gradient.png"},chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",
115
+ align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",
116
+ width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:a.svg,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",
117
+ month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:F("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'\x3cspan style\x3d"font-size: 10px"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",
118
+ position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.setOptions=function(p){a.defaultOptions=f(!0,a.defaultOptions,p);B();return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;B()})(L);(function(a){var C=a.correctFloat,B=a.defined,F=a.destroyObjectProperties,E=a.isNumber,q=a.merge,f=a.pick,t=a.deg2rad;a.Tick=function(a,f,u,k){this.axis=a;this.pos=
119
+ f;this.type=u||"";this.isNew=!0;u||k||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,t=a.options,u=a.chart,k=a.categories,e=a.names,g=this.pos,x=t.labels,b=a.tickPositions,l=g===b[0],d=g===b[b.length-1],e=k?f(k[g],e[g],g):g,k=this.label,b=b.info,A;a.isDatetimeAxis&&b&&(A=t.dateTimeLabelFormats[b.higherRanks[g]||b.unitName]);this.isFirst=l;this.isLast=d;t=a.labelFormatter.call({axis:a,chart:u,isFirst:l,isLast:d,dateTimeLabelFormat:A,value:a.isLog?C(a.lin2log(e)):e});B(k)?k&&
120
+ k.attr({text:t}):(this.labelLength=(this.label=k=B(t)&&x.enabled?u.renderer.text(t,0,0,x.useHTML).css(q(x.style)).add(a.labelGroup):null)&&k.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var p=this.axis,u=a.x,k=p.chart.chartWidth,e=p.chart.spacing,g=f(p.labelLeft,Math.min(p.pos,e[3])),e=f(p.labelRight,Math.max(p.pos+p.len,k-e[1])),x=this.label,b=this.rotation,l={left:0,center:.5,right:1}[p.labelAlign],
121
+ d=x.getBBox().width,A=p.getSlotWidth(),n=A,H=1,r,J={};if(b)0>b&&u-l*d<g?r=Math.round(u/Math.cos(b*t)-g):0<b&&u+l*d>e&&(r=Math.round((k-u)/Math.cos(b*t)));else if(k=u+(1-l)*d,u-l*d<g?n=a.x+n*(1-l)-g:k>e&&(n=e-a.x+n*l,H=-1),n=Math.min(A,n),n<A&&"center"===p.labelAlign&&(a.x+=H*(A-n-l*(A-Math.min(d,n)))),d>n||p.autoRotation&&(x.styles||{}).width)r=n;r&&(J.width=r,(p.options.labels.style||{}).textOverflow||(J.textOverflow="ellipsis"),x.css(J))},getPosition:function(a,f,u,k){var e=this.axis,g=e.chart,
122
+ x=k&&g.oldChartHeight||g.chartHeight;return{x:a?e.translate(f+u,null,null,k)+e.transB:e.left+e.offset+(e.opposite?(k&&g.oldChartWidth||g.chartWidth)-e.right-e.left:0),y:a?x-e.bottom+e.offset-(e.opposite?e.height:0):x-e.translate(f+u,null,null,k)-e.transB}},getLabelPosition:function(a,f,u,k,e,g,x,b){var l=this.axis,d=l.transA,A=l.reversed,n=l.staggerLines,H=l.tickRotCorr||{x:0,y:0},r=e.y;B(r)||(r=0===l.side?u.rotation?-8:-u.getBBox().height:2===l.side?H.y+8:Math.cos(u.rotation*t)*(H.y-u.getBBox(!1,
123
+ 0).height/2));a=a+e.x+H.x-(g&&k?g*d*(A?-1:1):0);f=f+r-(g&&!k?g*d*(A?1:-1):0);n&&(u=x/(b||1)%n,l.opposite&&(u=n-u-1),f+=l.labelOffset/n*u);return{x:a,y:Math.round(f)}},getMarkPath:function(a,f,u,k,e,g){return g.crispLine(["M",a,f,"L",a+(e?0:-u),f+(e?u:0)],k)},renderGridLine:function(a,f,u){var k=this.axis,e=k.options,g=this.gridLine,x={},b=this.pos,l=this.type,d=k.tickmarkOffset,A=k.chart.renderer,n=l?l+"Grid":"grid",H=e[n+"LineWidth"],r=e[n+"LineColor"],e=e[n+"LineDashStyle"];g||(x.stroke=r,x["stroke-width"]=
124
+ H,e&&(x.dashstyle=e),l||(x.zIndex=1),a&&(x.opacity=0),this.gridLine=g=A.path().attr(x).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(k.gridGroup));if(!a&&g&&(a=k.getPlotLinePath(b+d,g.strokeWidth()*u,a,!0)))g[this.isNew?"attr":"animate"]({d:a,opacity:f})},renderMark:function(a,t,u){var k=this.axis,e=k.options,g=k.chart.renderer,x=this.type,b=x?x+"Tick":"tick",l=k.tickSize(b),d=this.mark,A=!d,n=a.x;a=a.y;var H=f(e[b+"Width"],!x&&k.isXAxis?1:0),e=e[b+"Color"];l&&(k.opposite&&(l[0]=-l[0]),A&&
125
+ (this.mark=d=g.path().addClass("highcharts-"+(x?x+"-":"")+"tick").add(k.axisGroup),d.attr({stroke:e,"stroke-width":H})),d[A?"attr":"animate"]({d:this.getMarkPath(n,a,l[0],d.strokeWidth()*u,k.horiz,g),opacity:t}))},renderLabel:function(a,t,u,k){var e=this.axis,g=e.horiz,x=e.options,b=this.label,l=x.labels,d=l.step,A=e.tickmarkOffset,n=!0,H=a.x;a=a.y;b&&E(H)&&(b.xy=a=this.getLabelPosition(H,a,b,g,l,A,k,d),this.isFirst&&!this.isLast&&!f(x.showFirstLabel,1)||this.isLast&&!this.isFirst&&!f(x.showLastLabel,
126
+ 1)?n=!1:!g||e.isRadial||l.step||l.rotation||t||0===u||this.handleOverflow(a),d&&k%d&&(n=!1),n&&E(a.y)?(a.opacity=u,b[this.isNew?"attr":"animate"](a)):b.attr("y",-9999),this.isNew=!1)},render:function(a,t,u){var k=this.axis,e=k.horiz,g=this.getPosition(e,this.pos,k.tickmarkOffset,t),x=g.x,b=g.y,k=e&&x===k.pos+k.len||!e&&b===k.pos?-1:1;u=f(u,1);this.isActive=!0;this.renderGridLine(t,u,k);this.renderMark(g,u,k);this.renderLabel(g,t,u,a)},destroy:function(){F(this,this.axis)}}})(L);var T=function(a){var C=
127
+ a.addEvent,B=a.animObject,F=a.arrayMax,E=a.arrayMin,q=a.color,f=a.correctFloat,t=a.defaultOptions,p=a.defined,y=a.deg2rad,u=a.destroyObjectProperties,k=a.each,e=a.extend,g=a.fireEvent,x=a.format,b=a.getMagnitude,l=a.grep,d=a.inArray,A=a.isArray,n=a.isNumber,H=a.isString,r=a.merge,J=a.normalizeTickInterval,c=a.objectEach,w=a.pick,K=a.removeEvent,v=a.splat,D=a.syncTimeout,m=a.Tick,I=function(){this.init.apply(this,arguments)};a.extend(I.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",
128
+ second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",
129
+ lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},
130
+ defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,b){var h=b.isX,z=this;z.chart=a;z.horiz=a.inverted?!h:h;z.isXAxis=h;z.coll=z.coll||(h?"xAxis":"yAxis");z.opposite=b.opposite;z.side=b.side||(z.horiz?z.opposite?0:2:z.opposite?1:3);z.setOptions(b);var m=this.options,e=m.type;z.labelFormatter=m.labels.formatter||z.defaultLabelFormatter;
131
+ z.userOptions=b;z.minPixelPadding=0;z.reversed=m.reversed;z.visible=!1!==m.visible;z.zoomEnabled=!1!==m.zoomEnabled;z.hasNames="category"===e||!0===m.categories;z.categories=m.categories||z.hasNames;z.names=z.names||[];z.plotLinesAndBandsGroups={};z.isLog="logarithmic"===e;z.isDatetimeAxis="datetime"===e;z.positiveValuesOnly=z.isLog&&!z.allowNegativeLog;z.isLinked=p(m.linkedTo);z.ticks={};z.labelEdge=[];z.minorTicks={};z.plotLinesAndBands=[];z.alternateBands={};z.len=0;z.minRange=z.userMinRange=m.minRange||
132
+ m.maxZoom;z.range=m.range;z.offset=m.offset||0;z.stacks={};z.oldStacks={};z.stacksTouched=0;z.max=null;z.min=null;z.crosshair=w(m.crosshair,v(a.options.tooltip.crosshairs)[h?0:1],!1);b=z.options.events;-1===d(z,a.axes)&&(h?a.axes.splice(a.xAxis.length,0,z):a.axes.push(z),a[z.coll].push(z));z.series=z.series||[];a.inverted&&h&&void 0===z.reversed&&(z.reversed=!0);c(b,function(a,h){C(z,h,a)});z.lin2log=m.linearToLogConverter||z.lin2log;z.isLog&&(z.val2lin=z.log2lin,z.lin2val=z.lin2log)},setOptions:function(a){this.options=
133
+ r(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],r(t[this.coll],a))},defaultLabelFormatter:function(){var h=this.axis,b=this.value,c=h.categories,d=this.dateTimeLabelFormat,m=t.lang,e=m.numericSymbols,m=m.numericSymbolMagnitude||1E3,v=e&&e.length,n,l=h.options.labels.format,h=h.isLog?Math.abs(b):h.tickInterval;if(l)n=x(l,this);else if(c)n=b;else if(d)n=
134
+ a.dateFormat(d,b);else if(v&&1E3<=h)for(;v--&&void 0===n;)c=Math.pow(m,v+1),h>=c&&0===10*b%c&&null!==e[v]&&0!==b&&(n=a.numberFormat(b/c,-1)+e[v]);void 0===n&&(n=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,""));return n},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();k(a.series,function(h){if(h.visible||!b.options.chart.ignoreHiddenSeries){var c=h.options,z=c.threshold,
135
+ d;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=z&&(z=null);if(a.isXAxis)c=h.xData,c.length&&(h=E(c),n(h)||h instanceof Date||(c=l(c,function(a){return n(a)}),h=E(c)),a.dataMin=Math.min(w(a.dataMin,c[0]),h),a.dataMax=Math.max(w(a.dataMax,c[0]),F(c)));else if(h.getExtremes(),d=h.dataMax,h=h.dataMin,p(h)&&p(d)&&(a.dataMin=Math.min(w(a.dataMin,h),h),a.dataMax=Math.max(w(a.dataMax,d),d)),p(z)&&(a.threshold=z),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})},translate:function(a,b,c,d,m,
136
+ e){var h=this.linkedParent||this,z=1,v=0,l=d?h.oldTransA:h.transA;d=d?h.oldMin:h.min;var g=h.minPixelPadding;m=(h.isOrdinal||h.isBroken||h.isLog&&m)&&h.lin2val;l||(l=h.transA);c&&(z*=-1,v=h.len);h.reversed&&(z*=-1,v-=z*(h.sector||h.len));b?(a=(a*z+v-g)/l+d,m&&(a=h.lin2val(a))):(m&&(a=h.val2lin(a)),a=z*(a-d)*l+v+z*g+(n(e)?l*e: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,
137
+ null,!0)},getPlotLinePath:function(a,b,c,d,m){var h=this.chart,z=this.left,e=this.top,v,l,g=c&&h.oldChartHeight||h.chartHeight,r=c&&h.oldChartWidth||h.chartWidth,D;v=this.transB;var k=function(a,h,b){if(a<h||a>b)d?a=Math.min(Math.max(h,a),b):D=!0;return a};m=w(m,this.translate(a,null,null,c));a=c=Math.round(m+v);v=l=Math.round(g-m-v);n(m)?this.horiz?(v=e,l=g-this.bottom,a=c=k(a,z,z+this.width)):(a=z,c=r-this.right,v=l=k(v,e,e+this.height)):D=!0;return D&&!d?null:h.renderer.crispLine(["M",a,v,"L",
138
+ c,l],b||1)},getLinearTickPositions:function(a,b,c){var h,z=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var d=[];if(this.single)return[b];for(b=z;b<=c;){d.push(b);b=f(b+a);if(b===h)break;h=b}return d},getMinorTickPositions:function(){var a=this,b=a.options,c=a.tickPositions,d=a.minorTickInterval,m=[],v=a.pointRangePadding||0,e=a.min-v,v=a.max+v,n=v-e;if(n&&n/d<a.len/3)if(a.isLog)k(this.paddedTicks,function(h,b,c){b&&m.push.apply(m,a.getLogTickPositions(d,c[b-1],c[b],!0))});else if(a.isDatetimeAxis&&
139
+ "auto"===b.minorTickInterval)m=m.concat(a.getTimeTicks(a.normalizeTimeTickInterval(d),e,v,b.startOfWeek));else for(b=e+(c[0]-e)%d;b<=v&&b!==m[0];b+=d)m.push(b);0!==m.length&&a.trimTicks(m);return m},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,m=this.dataMax-this.dataMin>=this.minRange,v,e,n,l,g,r;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(p(a.min)||p(a.max)?this.minRange=null:(k(this.series,function(a){l=a.xData;for(e=g=a.xIncrement?1:l.length-1;0<e;e--)if(n=l[e]-
140
+ l[e-1],void 0===v||n<v)v=n}),this.minRange=Math.min(5*v,this.dataMax-this.dataMin)));c-b<this.minRange&&(r=this.minRange,d=(r-c+b)/2,d=[b-d,w(a.min,b-d)],m&&(d[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=F(d),c=[b+r,w(a.max,b+r)],m&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=E(c),c-b<r&&(d[0]=c-r,d[1]=w(a.min,c-r),b=F(d)));this.min=b;this.max=c},getClosest:function(){var a;this.categories?a=1:k(this.series,function(h){var b=h.closestPointRange,c=h.visible||!h.chart.options.chart.ignoreHiddenSeries;
141
+ !h.noSharedTooltip&&p(b)&&c&&(a=p(a)?Math.min(a,b):b)});return a},nameToX:function(a){var h=A(this.categories),b=h?this.categories:this.names,c=a.options.x,m;a.series.requireSorting=!1;p(c)||(c=!1===this.options.uniqueNames?a.series.autoIncrement():d(a.name,b));-1===c?h||(m=b.length):m=c;void 0!==m&&(this.names[m]=a.name);return m},updateNames:function(){var a=this;0<this.names.length&&(this.names.length=0,this.minRange=void 0,k(this.series||[],function(h){h.xIncrement=null;if(!h.points||h.isDirtyData)h.processData(),
142
+ h.generatePoints();k(h.points,function(b,c){var d;b.options&&(d=a.nameToX(b),void 0!==d&&d!==b.x&&(b.x=d,h.xData[c]=d))})}))},setAxisTranslation:function(a){var h=this,b=h.max-h.min,c=h.axisPointRange||0,d,m=0,v=0,e=h.linkedParent,n=!!h.categories,l=h.transA,g=h.isXAxis;if(g||n||c)d=h.getClosest(),e?(m=e.minPointOffset,v=e.pointRangePadding):k(h.series,function(a){var b=n?1:g?w(a.options.pointRange,d,0):h.axisPointRange||0;a=a.options.pointPlacement;c=Math.max(c,b);h.single||(m=Math.max(m,H(a)?0:
143
+ b/2),v=Math.max(v,"on"===a?0:b))}),e=h.ordinalSlope&&d?h.ordinalSlope/d:1,h.minPointOffset=m*=e,h.pointRangePadding=v*=e,h.pointRange=Math.min(c,b),g&&(h.closestPointRange=d);a&&(h.oldTransA=l);h.translationSlope=h.transA=l=h.options.staticScale||h.len/(b+v||1);h.transB=h.horiz?h.left:h.bottom;h.minPixelPadding=l*m},minFromRange:function(){return this.max-this.range},setTickInterval:function(h){var c=this,d=c.chart,m=c.options,v=c.isLog,e=c.log2lin,l=c.isDatetimeAxis,r=c.isXAxis,D=c.isLinked,A=m.maxPadding,
144
+ I=m.minPadding,x=m.tickInterval,H=m.tickPixelInterval,K=c.categories,u=c.threshold,t=c.softThreshold,q,y,B,C;l||K||D||this.getTickAmount();B=w(c.userMin,m.min);C=w(c.userMax,m.max);D?(c.linkedParent=d[c.coll][m.linkedTo],d=c.linkedParent.getExtremes(),c.min=w(d.min,d.dataMin),c.max=w(d.max,d.dataMax),m.type!==c.linkedParent.options.type&&a.error(11,1)):(!t&&p(u)&&(c.dataMin>=u?(q=u,I=0):c.dataMax<=u&&(y=u,A=0)),c.min=w(B,q,c.dataMin),c.max=w(C,y,c.dataMax));v&&(c.positiveValuesOnly&&!h&&0>=Math.min(c.min,
145
+ w(c.dataMin,c.min))&&a.error(10,1),c.min=f(e(c.min),15),c.max=f(e(c.max),15));c.range&&p(c.max)&&(c.userMin=c.min=B=Math.max(c.min,c.minFromRange()),c.userMax=C=c.max,c.range=null);g(c,"foundExtremes");c.beforePadding&&c.beforePadding();c.adjustForMinRange();!(K||c.axisPointRange||c.usePercentage||D)&&p(c.min)&&p(c.max)&&(e=c.max-c.min)&&(!p(B)&&I&&(c.min-=e*I),!p(C)&&A&&(c.max+=e*A));n(m.softMin)&&(c.min=Math.min(c.min,m.softMin));n(m.softMax)&&(c.max=Math.max(c.max,m.softMax));n(m.floor)&&(c.min=
146
+ Math.max(c.min,m.floor));n(m.ceiling)&&(c.max=Math.min(c.max,m.ceiling));t&&p(c.dataMin)&&(u=u||0,!p(B)&&c.min<u&&c.dataMin>=u?c.min=u:!p(C)&&c.max>u&&c.dataMax<=u&&(c.max=u));c.tickInterval=c.min===c.max||void 0===c.min||void 0===c.max?1:D&&!x&&H===c.linkedParent.options.tickPixelInterval?x=c.linkedParent.tickInterval:w(x,this.tickAmount?(c.max-c.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(c.max-c.min)*H/Math.max(c.len,H));r&&!h&&k(c.series,function(a){a.processData(c.min!==c.oldMin||c.max!==
147
+ c.oldMax)});c.setAxisTranslation(!0);c.beforeSetTickPositions&&c.beforeSetTickPositions();c.postProcessTickInterval&&(c.tickInterval=c.postProcessTickInterval(c.tickInterval));c.pointRange&&!x&&(c.tickInterval=Math.max(c.pointRange,c.tickInterval));h=w(m.minTickInterval,c.isDatetimeAxis&&c.closestPointRange);!x&&c.tickInterval<h&&(c.tickInterval=h);l||v||x||(c.tickInterval=J(c.tickInterval,null,b(c.tickInterval),w(m.allowDecimals,!(.5<c.tickInterval&&5>c.tickInterval&&1E3<c.max&&9999>c.max)),!!this.tickAmount));
148
+ this.tickAmount||(c.tickInterval=c.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,c,b=a.tickPositions,d=a.tickPositioner,m=a.startOnTick,e=a.endOnTick;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.single=this.min===this.max&&p(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);
149
+ this.tickPositions=c=b&&b.slice();!c&&(c=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),c.length>this.len&&(c=[c[0],c.pop()]),this.tickPositions=c,d&&(d=d.apply(this,[this.min,this.max])))&&(this.tickPositions=c=d);this.paddedTicks=c.slice(0);
150
+ this.trimTicks(c,m,e);this.isLinked||(this.single&&(this.min-=.5,this.max+=.5),b||d||this.adjustTickAmount())},trimTicks:function(a,c,b){var h=a[0],d=a[a.length-1],m=this.minPointOffset||0;if(!this.isLinked){if(c&&-Infinity!==h)this.min=h;else for(;this.min-m>a[0];)a.shift();if(b)this.max=d;else for(;this.max+m<a[a.length-1];)a.pop();0===a.length&&p(h)&&a.push((d+h)/2)}},alignToOthers:function(){var a={},c,b=this.options;!1===this.chart.options.chart.alignTicks||!1===b.alignTicks||this.isLog||k(this.chart[this.coll],
151
+ function(h){var b=h.options,b=[h.horiz?b.left:b.top,b.width,b.height,b.pane].join();h.series.length&&(a[b]?c=!0:a[b]=1)});return c},getTickAmount:function(){var a=this.options,c=a.tickAmount,b=a.tickPixelInterval;!p(a.tickInterval)&&this.len<b&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(c=2);!c&&this.alignToOthers()&&(c=Math.ceil(this.len/b)+1);4>c&&(this.finalTickAmt=c,c=5);this.tickAmount=c},adjustTickAmount:function(){var a=this.tickInterval,c=this.tickPositions,b=this.tickAmount,
152
+ d=this.finalTickAmt,m=c&&c.length;if(m<b){for(;c.length<b;)c.push(f(c[c.length-1]+a));this.transA*=(m-1)/(b-1);this.max=c[c.length-1]}else m>b&&(this.tickInterval*=2,this.setTickPositions());if(p(d)){for(a=b=c.length;a--;)(3===d&&1===a%2||2>=d&&0<a&&a<b-1)&&c.splice(a,1);this.finalTickAmt=void 0}},setScale:function(){var a,c;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();c=this.len!==this.oldAxisLength;k(this.series,function(c){if(c.isDirtyData||c.isDirty||
153
+ c.xAxis.isDirty)a=!0});c||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=c||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,c,b,d,m){var h=this,v=h.chart;b=w(b,!0);k(h.series,
154
+ function(a){delete a.kdTree});m=e(m,{min:a,max:c});g(h,"setExtremes",m,function(){h.userMin=a;h.userMax=c;h.eventArgs=m;b&&v.redraw(d)})},zoom:function(a,c){var h=this.dataMin,b=this.dataMax,d=this.options,m=Math.min(h,w(d.min,h)),d=Math.max(b,w(d.max,b));if(a!==this.min||c!==this.max)this.allowZoomOutside||(p(h)&&(a<m&&(a=m),a>d&&(a=d)),p(b)&&(c<m&&(c=m),c>d&&(c=d))),this.displayBtn=void 0!==a||void 0!==c,this.setExtremes(a,c,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,
155
+ c=this.options,b=c.offsets||[0,0,0,0],d=this.horiz,m=w(c.width,a.plotWidth-b[3]+b[1]),e=w(c.height,a.plotHeight-b[0]+b[2]),v=w(c.top,a.plotTop+b[0]),c=w(c.left,a.plotLeft+b[3]),b=/%$/;b.test(e)&&(e=Math.round(parseFloat(e)/100*a.plotHeight));b.test(v)&&(v=Math.round(parseFloat(v)/100*a.plotHeight+a.plotTop));this.left=c;this.top=v;this.width=m;this.height=e;this.bottom=a.chartHeight-e-v;this.right=a.chartWidth-m-c;this.len=Math.max(d?m:e,0);this.pos=d?c:v},getExtremes:function(){var a=this.isLog,
156
+ c=this.lin2log;return{min:a?f(c(this.min)):this.min,max:a?f(c(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var c=this.isLog,b=this.lin2log,h=c?b(this.min):this.min,c=c?b(this.max):this.max;null===a?a=h:h>a?a=h:c<a&&(a=c);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(w(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var c=this.options,b=c[a+
157
+ "Length"],h=w(c[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(h&&b)return"inside"===c[a+"Position"]&&(b=-b),[b,h]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var a=this.options.labels,c=this.horiz,b=this.tickInterval,d=b,m=this.len/(((this.categories?1:0)+this.max-this.min)/b),e,v=a.rotation,n=this.labelMetrics(),l,g=Number.MAX_VALUE,r,D=function(a){a/=m||1;a=1<
158
+ a?Math.ceil(a):1;return a*b};c?(r=!a.staggerLines&&!a.step&&(p(v)?[v]:m<w(a.autoRotationLimit,80)&&a.autoRotation))&&k(r,function(a){var c;if(a===v||a&&-90<=a&&90>=a)l=D(Math.abs(n.h/Math.sin(y*a))),c=l+Math.abs(a/360),c<g&&(g=c,e=a,d=l)}):a.step||(d=D(n.h));this.autoRotation=r;this.labelRotation=w(e,v);return d},getSlotWidth:function(){var a=this.chart,c=this.horiz,b=this.options.labels,d=Math.max(this.tickPositions.length-(this.categories?0:1),1),m=a.margin[3];return c&&2>(b.step||0)&&!b.rotation&&
159
+ (this.staggerLines||1)*this.len/d||!c&&(m&&m-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,c=a.renderer,b=this.tickPositions,d=this.ticks,m=this.options.labels,v=this.horiz,e=this.getSlotWidth(),n=Math.max(1,Math.round(e-2*(m.padding||5))),l={},g=this.labelMetrics(),D=m.style&&m.style.textOverflow,w,A=0,I,x;H(m.rotation)||(l.rotation=m.rotation||0);k(b,function(a){(a=d[a])&&a.labelLength>A&&(A=a.labelLength)});this.maxLabelLength=A;if(this.autoRotation)A>n&&A>g.h?l.rotation=
160
+ this.labelRotation:this.labelRotation=0;else if(e&&(w={width:n+"px"},!D))for(w.textOverflow="clip",I=b.length;!v&&I--;)if(x=b[I],n=d[x].label)n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):d[x].labelLength>e&&n.css({width:e+"px"}),n.getBBox().height>this.len/b.length-(g.h-g.f)&&(n.specCss={textOverflow:"ellipsis"});l.rotation&&(w={width:(A>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight)+"px"},D||(w.textOverflow="ellipsis"));if(this.labelAlign=m.align||this.autoLabelAlign(this.labelRotation))l.align=
161
+ this.labelAlign;k(b,function(a){var c=(a=d[a])&&a.label;c&&(c.attr(l),w&&c.css(r(w,c.specCss)),delete c.specCss,a.rotation=l.rotation)});this.tickRotCorr=c.rotCorr(g.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||p(this.min)&&p(this.max)&&!!this.tickPositions},addTitle:function(a){var c=this.chart.renderer,b=this.horiz,h=this.opposite,d=this.options.title,m;this.axisTitle||((m=d.textAlign)||(m=(b?{low:"left",middle:"center",high:"right"}:{low:h?"right":"left",
162
+ middle:"center",high:h?"left":"right"})[d.align]),this.axisTitle=c.text(d.text,0,0,d.useHTML).attr({zIndex:7,rotation:d.rotation||0,align:m}).addClass("highcharts-axis-title").css(d.style).add(this.axisGroup),this.axisTitle.isNew=!0);this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var c=this.ticks;c[a]?c[a].addLabel():c[a]=new m(this,a)},getOffset:function(){var a=this,b=a.chart,d=b.renderer,m=a.options,e=a.tickPositions,v=a.ticks,n=a.horiz,l=a.side,g=b.inverted?[1,0,3,2][l]:l,r,D,A=
163
+ 0,I,x=0,f=m.title,H=m.labels,K=0,J=b.axisOffset,b=b.clipOffset,u=[-1,1,1,-1][l],t=m.className,q=a.axisParent,y=this.tickSize("tick");r=a.hasData();a.showAxis=D=r||w(m.showEmpty,!0);a.staggerLines=a.horiz&&H.staggerLines;a.axisGroup||(a.gridGroup=d.g("grid").attr({zIndex:m.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(t||"")).add(q),a.axisGroup=d.g("axis").attr({zIndex:m.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(t||"")).add(q),a.labelGroup=d.g("axis-labels").attr({zIndex:H.zIndex||
164
+ 7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(t||"")).add(q));r||a.isLinked?(k(e,function(c,b){a.generateTick(c,b)}),a.renderUnsquish(),!1===H.reserveSpace||0!==l&&2!==l&&{1:"left",3:"right"}[l]!==a.labelAlign&&"center"!==a.labelAlign||k(e,function(a){K=Math.max(v[a].getLabelSize(),K)}),a.staggerLines&&(K*=a.staggerLines,a.labelOffset=K*(a.opposite?-1:1))):c(v,function(a,c){a.destroy();delete v[c]});f&&f.text&&!1!==f.enabled&&(a.addTitle(D),D&&!1!==f.reserveSpace&&(a.titleOffset=A=a.axisTitle.getBBox()[n?
165
+ "height":"width"],I=f.offset,x=p(I)?0:w(f.margin,n?5:10)));a.renderLine();a.offset=u*w(m.offset,J[l]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};d=0===l?-a.labelMetrics().h:2===l?a.tickRotCorr.y:0;x=Math.abs(K)+x;K&&(x=x-d+u*(n?w(H.y,a.tickRotCorr.y+8*u):H.x));a.axisTitleMargin=w(I,x);J[l]=Math.max(J[l],a.axisTitleMargin+A+u*a.offset,x,r&&e.length&&y?y[0]+u*a.offset:0);m=m.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[g]=Math.max(b[g],m)},getLinePath:function(a){var c=this.chart,b=this.opposite,
166
+ h=this.offset,d=this.horiz,m=this.left+(b?this.width:0)+h,h=c.chartHeight-this.bottom-(b?this.height:0)+h;b&&(a*=-1);return c.renderer.crispLine(["M",d?this.left:m,d?h:this.top,"L",d?c.chartWidth-this.right:m,d?h:c.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var a=
167
+ this.horiz,c=this.left,b=this.top,d=this.len,m=this.options.title,e=a?c:b,v=this.opposite,n=this.offset,l=m.x||0,g=m.y||0,r=this.chart.renderer.fontMetrics(m.style&&m.style.fontSize,this.axisTitle).f,d={low:e+(a?0:d),middle:e+d/2,high:e+(a?d:0)}[m.align],c=(a?b+this.height:c)+(a?1:-1)*(v?-1:1)*this.axisTitleMargin+(2===this.side?r:0);return{x:a?d+l:c+(v?this.width:0)+n+l,y:a?c+g-(v?this.height:0)+n:d+g}},renderMinorTick:function(a){var c=this.chart.hasRendered&&n(this.oldMin),b=this.minorTicks;b[a]||
168
+ (b[a]=new m(this,a,"minor"));c&&b[a].isNew&&b[a].render(null,!0);b[a].render(null,!1,1)},renderTick:function(a,c){var b=this.isLinked,h=this.ticks,d=this.chart.hasRendered&&n(this.oldMin);if(!b||a>=this.min&&a<=this.max)h[a]||(h[a]=new m(this,a)),d&&h[a].isNew&&h[a].render(c,!0,.1),h[a].render(c)},render:function(){var b=this,d=b.chart,e=b.options,v=b.isLog,n=b.lin2log,l=b.isLinked,g=b.tickPositions,r=b.axisTitle,w=b.ticks,A=b.minorTicks,I=b.alternateBands,x=e.stackLabels,f=e.alternateGridColor,H=
169
+ b.tickmarkOffset,K=b.axisLine,J=b.showAxis,u=B(d.renderer.globalAnimation),p,t;b.labelEdge.length=0;b.overlap=!1;k([w,A,I],function(a){c(a,function(a){a.isActive=!1})});if(b.hasData()||l)b.minorTickInterval&&!b.categories&&k(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),g.length&&(k(g,function(a,c){b.renderTick(a,c)}),H&&(0===b.min||b.single)&&(w[-1]||(w[-1]=new m(b,-1,null,!0)),w[-1].render(-1))),f&&k(g,function(c,h){t=void 0!==g[h+1]?g[h+1]+H:b.max-H;0===h%2&&c<b.max&&t<=b.max+(d.polar?
170
+ -H:H)&&(I[c]||(I[c]=new a.PlotLineOrBand(b)),p=c+H,I[c].options={from:v?n(p):p,to:v?n(t):t,color:f},I[c].render(),I[c].isActive=!0)}),b._addedPlotLB||(k((e.plotLines||[]).concat(e.plotBands||[]),function(a){b.addPlotBandOrLine(a)}),b._addedPlotLB=!0);k([w,A,I],function(a){var b,h=[],m=u.duration;c(a,function(a,c){a.isActive||(a.render(c,!1,0),a.isActive=!1,h.push(c))});D(function(){for(b=h.length;b--;)a[h[b]]&&!a[h[b]].isActive&&(a[h[b]].destroy(),delete a[h[b]])},a!==I&&d.hasRendered&&m?m:0)});K&&
171
+ (K[K.isPlaced?"animate":"attr"]({d:this.getLinePath(K.strokeWidth())}),K.isPlaced=!0,K[J?"show":"hide"](!0));r&&J&&(r[r.isNew?"attr":"animate"](b.getTitlePosition()),r.isNew=!1);x&&x.enabled&&b.renderStackTotals();b.isDirty=!1},redraw:function(){this.visible&&(this.render(),k(this.plotLinesAndBands,function(a){a.render()}));k(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var b=this,h=b.stacks,m=b.plotLinesAndBands,e;
172
+ a||K(b);c(h,function(a,c){u(a);h[c]=null});k([b.ticks,b.minorTicks,b.alternateBands],function(a){u(a)});if(m)for(a=m.length;a--;)m[a].destroy();k("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(a){b[a]&&(b[a]=b[a].destroy())});for(e in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[e]=b.plotLinesAndBandsGroups[e].destroy();c(b,function(a,c){-1===d(c,b.keepProps)&&delete b[c]})},drawCrosshair:function(a,c){var b,h=this.crosshair,d=w(h.snap,!0),m,e=
173
+ this.cross;a||(a=this.cross&&this.cross.e);this.crosshair&&!1!==(p(c)||!d)?(d?p(c)&&(m=this.isXAxis?c.plotX:this.len-c.plotY):m=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos),p(m)&&(b=this.getPlotLinePath(c&&(this.isXAxis?c.x:w(c.stackY,c.y)),null,null,null,m)||null),p(b)?(c=this.categories&&!this.isRadial,e||(this.cross=e=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(c?"category ":"thin ")+h.className).attr({zIndex:w(h.zIndex,2)}).add(),e.attr({stroke:h.color||
174
+ (c?q("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":w(h.width,1)}),h.dashStyle&&e.attr({dashstyle:h.dashStyle})),e.show().attr({d:b}),c&&!h.width&&e.attr({"stroke-width":this.transA}),this.cross.e=a):this.hideCrosshair()):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}});return a.Axis=I}(L);(function(a){var C=a.Axis,B=a.Date,F=a.dateFormat,E=a.defaultOptions,q=a.defined,f=a.each,t=a.extend,p=a.getMagnitude,y=a.getTZOffset,u=a.normalizeTickInterval,k=a.pick,
175
+ e=a.timeUnits;C.prototype.getTimeTicks=function(a,x,b,l){var d=[],g={},n=E.global.useUTC,H,r=new B(x-Math.max(y(x),y(b))),J=B.hcMakeTime,c=a.unitRange,w=a.count,K;if(q(x)){r[B.hcSetMilliseconds](c>=e.second?0:w*Math.floor(r.getMilliseconds()/w));if(c>=e.second)r[B.hcSetSeconds](c>=e.minute?0:w*Math.floor(r.getSeconds()/w));if(c>=e.minute)r[B.hcSetMinutes](c>=e.hour?0:w*Math.floor(r[B.hcGetMinutes]()/w));if(c>=e.hour)r[B.hcSetHours](c>=e.day?0:w*Math.floor(r[B.hcGetHours]()/w));if(c>=e.day)r[B.hcSetDate](c>=
176
+ e.month?1:w*Math.floor(r[B.hcGetDate]()/w));c>=e.month&&(r[B.hcSetMonth](c>=e.year?0:w*Math.floor(r[B.hcGetMonth]()/w)),H=r[B.hcGetFullYear]());if(c>=e.year)r[B.hcSetFullYear](H-H%w);if(c===e.week)r[B.hcSetDate](r[B.hcGetDate]()-r[B.hcGetDay]()+k(l,1));H=r[B.hcGetFullYear]();l=r[B.hcGetMonth]();var v=r[B.hcGetDate](),D=r[B.hcGetHours]();if(B.hcTimezoneOffset||B.hcGetTimezoneOffset)K=(!n||!!B.hcGetTimezoneOffset)&&(b-x>4*e.month||y(x)!==y(b)),r=r.getTime(),r=new B(r+y(r));n=r.getTime();for(x=1;n<b;)d.push(n),
177
+ n=c===e.year?J(H+x*w,0):c===e.month?J(H,l+x*w):!K||c!==e.day&&c!==e.week?K&&c===e.hour?J(H,l,v,D+x*w):n+c*w:J(H,l,v+x*w*(c===e.day?1:7)),x++;d.push(n);c<=e.hour&&1E4>d.length&&f(d,function(a){0===a%18E5&&"000000000"===F("%H%M%S%L",a)&&(g[a]="day")})}d.info=t(a,{higherRanks:g,totalRange:c*w});return d};C.prototype.normalizeTimeTickInterval=function(a,k){var b=k||[["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",
178
+ [1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];k=b[b.length-1];var l=e[k[0]],d=k[1],g;for(g=0;g<b.length&&!(k=b[g],l=e[k[0]],d=k[1],b[g+1]&&a<=(l*d[d.length-1]+e[b[g+1][0]])/2);g++);l===e.year&&a<5*l&&(d=[1,2,5]);a=u(a/l,d,"year"===k[0]?Math.max(p(a/l),1):1);return{unitRange:l,count:a,unitName:k[0]}}})(L);(function(a){var C=a.Axis,B=a.getMagnitude,F=a.map,E=a.normalizeTickInterval,q=a.pick;C.prototype.getLogTickPositions=function(a,t,p,y){var f=this.options,k=this.len,e=this.lin2log,g=
179
+ this.log2lin,x=[];y||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),x=this.getLinearTickPositions(a,t,p);else if(.08<=a)for(var k=Math.floor(t),b,l,d,A,n,f=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];k<p+1&&!n;k++)for(l=f.length,b=0;b<l&&!n;b++)d=g(e(k)*f[b]),d>t&&(!y||A<=p)&&void 0!==A&&x.push(A),A>p&&(n=!0),A=d;else t=e(t),p=e(p),a=f[y?"minorTickInterval":"tickInterval"],a=q("auto"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(y?5:1)*(p-t)/((y?k/this.tickPositions.length:
180
+ k)||1)),a=E(a,null,B(a)),x=F(this.getLinearTickPositions(a,t,p),g),y||(this._minorAutoInterval=a/5);y||(this.tickInterval=a);return x};C.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var B=a.arrayMax,F=a.arrayMin,E=a.defined,q=a.destroyObjectProperties,f=a.each,t=a.erase,p=a.merge,y=a.pick;a.PlotLineOrBand=function(a,k){this.axis=a;k&&(this.options=k,this.id=k.id)};a.PlotLineOrBand.prototype={render:function(){var f=
181
+ this,k=f.axis,e=k.horiz,g=f.options,x=g.label,b=f.label,l=g.to,d=g.from,A=g.value,n=E(d)&&E(l),H=E(A),r=f.svgElem,J=!r,c=[],w=g.color,K=y(g.zIndex,0),v=g.events,c={"class":"highcharts-plot-"+(n?"band ":"line ")+(g.className||"")},D={},m=k.chart.renderer,I=n?"bands":"lines",h=k.log2lin;k.isLog&&(d=h(d),l=h(l),A=h(A));H?(c={stroke:w,"stroke-width":g.width},g.dashStyle&&(c.dashstyle=g.dashStyle)):n&&(w&&(c.fill=w),g.borderWidth&&(c.stroke=g.borderColor,c["stroke-width"]=g.borderWidth));D.zIndex=K;I+=
182
+ "-"+K;(w=k.plotLinesAndBandsGroups[I])||(k.plotLinesAndBandsGroups[I]=w=m.g("plot-"+I).attr(D).add());J&&(f.svgElem=r=m.path().attr(c).add(w));if(H)c=k.getPlotLinePath(A,r.strokeWidth());else if(n)c=k.getPlotBandPath(d,l,g);else return;J&&c&&c.length?(r.attr({d:c}),v&&a.objectEach(v,function(a,c){r.on(c,function(a){v[c].apply(f,[a])})})):r&&(c?(r.show(),r.animate({d:c})):(r.hide(),b&&(f.label=b=b.destroy())));x&&E(x.text)&&c&&c.length&&0<k.width&&0<k.height&&!c.flat?(x=p({align:e&&n&&"center",x:e?
183
+ !n&&4:10,verticalAlign:!e&&n&&"middle",y:e?n?16:10:n?6:-4,rotation:e&&!n&&90},x),this.renderLabel(x,c,n,K)):b&&b.hide();return f},renderLabel:function(a,k,e,g){var x=this.label,b=this.axis.chart.renderer;x||(x={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(e?"band":"line")+"-label "+(a.className||"")},x.zIndex=g,this.label=x=b.text(a.text,0,0,a.useHTML).attr(x).add(),x.css(a.style));g=[k[1],k[4],e?k[6]:k[1]];k=[k[2],k[5],e?k[7]:k[2]];e=F(g);b=F(k);x.align(a,!1,{x:e,y:b,
184
+ width:B(g)-e,height:B(k)-b});x.show()},destroy:function(){t(this.axis.plotLinesAndBands,this);delete this.axis;q(this)}};a.extend(C.prototype,{getPlotBandPath:function(a,k){var e=this.getPlotLinePath(k,null,null,!0),g=this.getPlotLinePath(a,null,null,!0),x=this.horiz,b=1;a=a<this.min&&k<this.min||a>this.max&&k>this.max;g&&e?(a&&(g.flat=g.toString()===e.toString(),b=0),g.push(x&&e[4]===g[4]?e[4]+b:e[4],x||e[5]!==g[5]?e[5]:e[5]+b,x&&e[1]===g[1]?e[1]+b:e[1],x||e[2]!==g[2]?e[2]:e[2]+b)):g=null;return g},
185
+ addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(f,k){var e=(new a.PlotLineOrBand(this,f)).render(),g=this.userOptions;e&&(k&&(g[k]=g[k]||[],g[k].push(f)),this.plotLinesAndBands.push(e));return e},removePlotBandOrLine:function(a){for(var k=this.plotLinesAndBands,e=this.options,g=this.userOptions,x=k.length;x--;)k[x].id===a&&k[x].destroy();f([e.plotLines||[],g.plotLines||[],e.plotBands||
186
+ [],g.plotBands||[]],function(b){for(x=b.length;x--;)b[x].id===a&&t(b,b[x])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(L,T);(function(a){var C=a.dateFormat,B=a.each,F=a.extend,E=a.format,q=a.isNumber,f=a.map,t=a.merge,p=a.pick,y=a.splat,u=a.syncTimeout,k=a.timeUnits;a.Tooltip=function(){this.init.apply(this,arguments)};a.Tooltip.prototype={init:function(a,g){this.chart=a;this.options=g;this.crosshairs=[];this.now={x:0,y:0};
187
+ this.isHidden=!0;this.split=g.split&&!a.inverted;this.shared=g.shared||this.split},cleanSplit:function(a){B(this.chart.series,function(e){var g=e&&e.tt;g&&(!g.isActive||a?e.tt=g.destroy():g.isActive=!1)})},getLabel:function(){var a=this.chart.renderer,g=this.options;this.label||(this.split?this.label=a.g("tooltip"):(this.label=a.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,"tooltip").attr({padding:g.padding,r:g.borderRadius}),this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).shadow(g.shadow)),
188
+ this.label.attr({zIndex:8}).add());return this.label},update:function(a){this.destroy();t(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,t(!0,this.options,a))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,g,k,b){var e=this,d=e.now,A=!1!==e.options.animation&&!e.isHidden&&(1<Math.abs(a-d.x)||1<Math.abs(g-
189
+ d.y)),n=e.followPointer||1<e.len;F(d,{x:A?(2*d.x+a)/3:a,y:A?(d.y+g)/2:g,anchorX:n?void 0:A?(2*d.anchorX+k)/3:k,anchorY:n?void 0:A?(d.anchorY+b)/2:b});e.getLabel().attr(d);A&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,g,k,b)},32))},hide:function(a){var e=this;clearTimeout(this.hideTimer);a=p(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=u(function(){e.getLabel()[a?"fadeOut":"hide"]();e.isHidden=!0},a))},getAnchor:function(a,g){var e,b=this.chart,
190
+ l=b.inverted,d=b.plotTop,k=b.plotLeft,n=0,H=0,r,J;a=y(a);e=a[0].tooltipPos;this.followPointer&&g&&(void 0===g.chartX&&(g=b.pointer.normalize(g)),e=[g.chartX-b.plotLeft,g.chartY-d]);e||(B(a,function(a){r=a.series.yAxis;J=a.series.xAxis;n+=a.plotX+(!l&&J?J.left-k:0);H+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!l&&r?r.top-d:0)}),n/=a.length,H/=a.length,e=[l?b.plotWidth-H:n,this.shared&&!l&&1<a.length&&g?g.chartY-d:l?b.plotHeight-n:H]);return f(e,Math.round)},getPosition:function(a,g,k){var b=this.chart,
191
+ e=this.distance,d={},A=k.h||0,n,x=["y",b.chartHeight,g,k.plotY+b.plotTop,b.plotTop,b.plotTop+b.plotHeight],r=["x",b.chartWidth,a,k.plotX+b.plotLeft,b.plotLeft,b.plotLeft+b.plotWidth],f=!this.followPointer&&p(k.ttBelow,!b.inverted===!!k.negative),c=function(a,c,b,h,v,n){var m=b<h-e,l=h+e+b<c,g=h-e-b;h+=e;if(f&&l)d[a]=h;else if(!f&&m)d[a]=g;else if(m)d[a]=Math.min(n-b,0>g-A?g:g-A);else if(l)d[a]=Math.max(v,h+A+b>c?h:h+A);else return!1},w=function(a,c,b,h){var m;h<e||h>c-e?m=!1:d[a]=h<b/2?1:h>c-b/2?
192
+ c-b-2:h-b/2;return m},K=function(a){var c=x;x=r;r=c;n=a},v=function(){!1!==c.apply(0,x)?!1!==w.apply(0,r)||n||(K(!0),v()):n?d.x=d.y=0:(K(!0),v())};(b.inverted||1<this.len)&&K();v();return d},defaultFormatter:function(a){var e=this.points||y(this),k;k=[a.tooltipFooterHeaderFormatter(e[0])];k=k.concat(a.bodyFormatter(e));k.push(a.tooltipFooterHeaderFormatter(e[0],!0));return k},refresh:function(a,g){var e,b=this.options,l,d=a,k,n={},f=[];e=b.formatter||this.defaultFormatter;var n=this.shared,r;clearTimeout(this.hideTimer);
193
+ this.followPointer=y(d)[0].series.tooltipOptions.followPointer;k=this.getAnchor(d,g);g=k[0];l=k[1];!n||d.series&&d.series.noSharedTooltip?n=d.getLabelConfig():(B(d,function(a){a.setState("hover");f.push(a.getLabelConfig())}),n={x:d[0].category,y:d[0].y},n.points=f,d=d[0]);this.len=f.length;n=e.call(n,this);r=d.series;this.distance=p(r.tooltipOptions.distance,16);!1===n?this.hide():(e=this.getLabel(),this.isHidden&&e.attr({opacity:1}).show(),this.split?this.renderSplit(n,a):(e.attr({text:n&&n.join?
194
+ n.join(""):n}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+p(d.colorIndex,r.colorIndex)),e.attr({stroke:b.borderColor||d.color||r.color||"#666666"}),this.updatePosition({plotX:g,plotY:l,negative:d.negative,ttBelow:d.ttBelow,h:k[2]||0})),this.isHidden=!1)},renderSplit:function(e,g){var k=this,b=[],l=this.chart,d=l.renderer,A=!0,n=this.options,f,r=this.getLabel();B(e.slice(0,g.length+1),function(a,c){c=g[c-1]||{isHeader:!0,plotX:g[0].plotX};var e=c.series||k,x=e.tt,v=c.series||
195
+ {},D="highcharts-color-"+p(c.colorIndex,v.colorIndex,"none");x||(e.tt=x=d.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+D).attr({padding:n.padding,r:n.borderRadius,fill:n.backgroundColor,stroke:c.color||v.color||"#333333","stroke-width":n.borderWidth}).add(r));x.isActive=!0;x.attr({text:a});x.css(n.style);a=x.getBBox();v=a.width+x.strokeWidth();c.isHeader?(f=a.height,v=Math.max(0,Math.min(c.plotX+l.plotLeft-v/2,l.chartWidth-v))):v=c.plotX+l.plotLeft-p(n.distance,16)-v;0>v&&(A=
196
+ !1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=l.plotTop;b.push({target:c.isHeader?l.plotHeight+f:a,rank:c.isHeader?1:0,size:e.tt.getBBox().height+1,point:c,x:v,tt:x})});this.cleanSplit();a.distribute(b,l.plotHeight+f);B(b,function(a){var c=a.point,b=c.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:A||c.isHeader?a.x:c.plotX+l.plotLeft+p(n.distance,16),y:a.pos+l.plotTop,anchorX:c.isHeader?c.plotX+l.plotLeft:c.plotX+b.xAxis.pos,anchorY:c.isHeader?a.pos+l.plotTop-
197
+ 15:c.plotY+b.yAxis.pos})})},updatePosition:function(a){var e=this.chart,k=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,k.width,k.height,a);this.move(Math.round(k.x),Math.round(k.y||0),a.plotX+e.plotLeft,a.plotY+e.plotTop)},getDateFormat:function(a,g,f,b){var e=C("%m-%d %H:%M:%S.%L",g),d,A,n={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond";for(A in k){if(a===k.week&&+C("%w",g)===f&&"00:00:00.000"===e.substr(6)){A="week";break}if(k[A]>a){A=x;break}if(n[A]&&
198
+ e.substr(n[A])!=="01-01 00:00:00.000".substr(n[A]))break;"week"!==A&&(x=A)}A&&(d=b[A]);return d},getXDateFormat:function(a,g,k){g=g.dateTimeLabelFormats;var b=k&&k.closestPointRange;return(b?this.getDateFormat(b,a.x,k.options.startOfWeek,g):g.day)||g.year},tooltipFooterHeaderFormatter:function(a,g){var e=g?"footer":"header";g=a.series;var b=g.tooltipOptions,l=b.xDateFormat,d=g.xAxis,k=d&&"datetime"===d.options.type&&q(a.key),e=b[e+"Format"];k&&!l&&(l=this.getXDateFormat(a,b,d));k&&l&&(e=e.replace("{point.key}",
199
+ "{point.key:"+l+"}"));return E(e,{point:a,series:g})},bodyFormatter:function(a){return f(a,function(a){var e=a.series.tooltipOptions;return(e.pointFormatter||a.point.tooltipFormatter).call(a.point,e.pointFormat)})}}})(L);(function(a){var C=a.addEvent,B=a.attr,F=a.charts,E=a.color,q=a.css,f=a.defined,t=a.doc,p=a.each,y=a.extend,u=a.fireEvent,k=a.offset,e=a.pick,g=a.removeEvent,x=a.splat,b=a.Tooltip,l=a.win;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,l){this.options=
200
+ l;this.chart=a;this.runChartClick=l.chart.events&&!!l.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&l.tooltip.enabled&&(a.tooltip=new b(a,l.tooltip),this.followTouchMove=e(l.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,d=b.options.chart,l=d.zoomType||"",b=b.inverted;/touch/.test(a.type)&&(l=e(d.pinchType,l));this.zoomX=a=/x/.test(l);this.zoomY=l=/y/.test(l);this.zoomHor=a&&!b||l&&b;this.zoomVert=l&&!b||a&&b;this.hasZoom=a||l},normalize:function(a,
201
+ b){var d,e;a=a||l.event;a.target||(a.target=a.srcElement);e=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=k(this.chart.container));void 0===e.pageX?(d=Math.max(a.x,a.clientX-b.left),b=a.y):(d=e.pageX-b.left,b=e.pageY-b.top);return y(a,{chartX:Math.round(d),chartY:Math.round(b)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};p(this.chart.axes,function(d){b[d.isXAxis?"xAxis":"yAxis"].push({axis:d,value:d.toValue(a[d.horiz?"chartX":"chartY"])})});
202
+ return b},getKDPoints:function(a,b,l){var d=[],n,g,c;p(a,function(a){n=a.noSharedTooltip&&b;g=!b&&a.directTouch;a.visible&&!g&&e(a.options.enableMouseTracking,!0)&&(c=a.searchPoint(l,!n&&0>a.options.findNearestPointBy.indexOf("y")))&&c.series&&d.push(c)});d.sort(function(a,c){var d=a.distX-c.distX,e=a.dist-c.dist,m=(c.series.group&&c.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);return 0!==d&&b?d:0!==e?e:0!==m?m:a.series.index>c.series.index?-1:1});if(b&&d[0]&&!d[0].series.noSharedTooltip)for(a=
203
+ d.length;a--;)(d[a].x!==d[0].x||d[a].series.noSharedTooltip)&&d.splice(a,1);return d},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getHoverData:function(b,l,n,g,r,k){var c=b,d=l,f;g?r?(f=[],p(n,function(a){var b=a.noSharedTooltip&&r,d=!r&&a.directTouch;a.visible&&!b&&!d&&e(a.options.enableMouseTracking,!0)&&(a=a.searchKDTree({clientX:c.clientX,plotY:c.plotY},!b&&1===a.kdDimensions))&&a.series&&f.push(a)}),0===f.length&&(f=[c])):f=[c]:d&&!d.stickyTracking?
204
+ (r||(n=[d]),f=this.getKDPoints(n,r,k),c=a.find(f,function(a){return a.series===d})):(b=a.grep(n,function(a){return a.stickyTracking}),f=this.getKDPoints(b,r,k),d=(c=f[0])&&c.series,r&&(f=this.getKDPoints(n,r,k)));f.sort(function(a,b){return a.series.index-b.series.index});return{hoverPoint:c,hoverSeries:d,hoverPoints:f}},runPointActions:function(b,l){var d=this.chart,g=d.tooltip,r=g?g.shared:!1,k=l||d.hoverPoint,c=k&&k.series||d.hoverSeries;l=this.getHoverData(k,c,d.series,!!l||c&&c.directTouch,r,
205
+ b);var w,f,k=l.hoverPoint;w=(c=l.hoverSeries)&&c.tooltipOptions.followPointer;f=(r=r&&k&&!k.series.noSharedTooltip)?l.hoverPoints:k?[k]:[];if(k&&(k!==d.hoverPoint||g&&g.isHidden)){p(d.hoverPoints||[],function(b){-1===a.inArray(b,f)&&b.setState()});p(f||[],function(a){a.setState("hover")});if(d.hoverSeries!==c)c.onMouseOver();c&&!c.directTouch&&(d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut"),k.firePointEvent("mouseOver"));d.hoverPoints=f;d.hoverPoint=k;g&&g.refresh(r?f:k,b)}else w&&g&&!g.isHidden&&
206
+ (c=g.getAnchor([{}],b),g.updatePosition({plotX:c[0],plotY:c[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(t,"mousemove",function(b){var c=F[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));p(d.axes,function(c){e(c.crosshair.snap,!0)?a.find(f,function(a){return a.series[c.coll]===c})?c.drawCrosshair(b,k):c.hideCrosshair():c.drawCrosshair(b)})},reset:function(a,b){var d=this.chart,e=d.hoverSeries,l=d.hoverPoint,g=d.hoverPoints,c=d.tooltip,k=c&&c.shared?g:l;a&&k&&p(x(k),function(b){b.series.isCartesian&&
207
+ void 0===b.plotX&&(a=!1)});if(a)c&&k&&(c.refresh(k),l&&(l.setState(l.state,!0),p(d.axes,function(a){a.crosshair&&a.drawCrosshair(null,l)})));else{if(l)l.onMouseOut();g&&p(g,function(a){a.setState()});if(e)e.onMouseOut();c&&c.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());p(d.axes,function(a){a.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}},scaleGroups:function(a,b){var d=this.chart,e;p(d.series,function(l){e=a||l.getPlotBox();l.xAxis&&l.xAxis.zoomEnabled&&
208
+ l.group&&(l.group.attr(e),l.markerGroup&&(l.markerGroup.attr(e),l.markerGroup.clip(b?d.clipRect:null)),l.dataLabelsGroup&&l.dataLabelsGroup.attr(e))});d.clipRect.attr(b||d.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,d=b.options.chart,e=a.chartX,l=a.chartY,g=this.zoomHor,c=this.zoomVert,k=b.plotLeft,f=b.plotTop,v=b.plotWidth,D=b.plotHeight,m,I=this.selectionMarker,
209
+ h=this.mouseDownX,z=this.mouseDownY,x=d.panKey&&a[d.panKey+"Key"];I&&I.touch||(e<k?e=k:e>k+v&&(e=k+v),l<f?l=f:l>f+D&&(l=f+D),this.hasDragged=Math.sqrt(Math.pow(h-e,2)+Math.pow(z-l,2)),10<this.hasDragged&&(m=b.isInsidePlot(h-k,z-f),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&m&&!x&&!I&&(this.selectionMarker=I=b.renderer.rect(k,f,g?1:v,c?1:D,0).attr({fill:d.selectionMarkerFill||E("#335cad").setOpacity(.25).get(),"class":"highcharts-selection-marker",zIndex:7}).add()),I&&g&&(e-=h,I.attr({width:Math.abs(e),
210
+ x:(0<e?0:e)+h})),I&&c&&(e=l-z,I.attr({height:Math.abs(e),y:(0<e?0:e)+z})),m&&!I&&d.panning&&b.pan(a,d.panning)))},drop:function(a){var b=this,d=this.chart,e=this.hasPinched;if(this.selectionMarker){var l={originalEvent:a,xAxis:[],yAxis:[]},g=this.selectionMarker,c=g.attr?g.attr("x"):g.x,k=g.attr?g.attr("y"):g.y,x=g.attr?g.attr("width"):g.width,v=g.attr?g.attr("height"):g.height,D;if(this.hasDragged||e)p(d.axes,function(d){if(d.zoomEnabled&&f(d.min)&&(e||b[{xAxis:"zoomX",yAxis:"zoomY"}[d.coll]])){var m=
211
+ d.horiz,h="touchend"===a.type?d.minPixelPadding:0,g=d.toValue((m?c:k)+h),m=d.toValue((m?c+x:k+v)-h);l[d.coll].push({axis:d,min:Math.min(g,m),max:Math.max(g,m)});D=!0}}),D&&u(d,"selection",l,function(a){d.zoom(y(a,e?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();e&&this.scaleGroups()}d&&(q(d.container,{cursor:d._cursor}),d.cancelClick=10<this.hasDragged,d.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);
212
+ this.zoomOption(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(b){F[a.hoverChartIndex]&&F[a.hoverChartIndex].pointer.drop(b)},onDocumentMouseMove:function(a){var b=this.chart,d=this.chartPosition;a=this.normalize(a,d);!d||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(b){var d=F[a.hoverChartIndex];d&&(b.relatedTarget||b.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=
213
+ null)},onContainerMouseMove:function(b){var d=this.chart;f(a.hoverChartIndex)&&F[a.hoverChartIndex]&&F[a.hoverChartIndex].mouseIsDown||(a.hoverChartIndex=d.index);b=this.normalize(b);b.returnValue=!1;"mousedown"===d.mouseIsDown&&this.drag(b);!this.inClass(b.target,"highcharts-tracker")&&!d.isInsidePlot(b.chartX-d.plotLeft,b.chartY-d.plotTop)||d.openMenu||this.runPointActions(b)},inClass:function(a,b){for(var d;a;){if(d=B(a,"class")){if(-1!==d.indexOf(b))return!0;if(-1!==d.indexOf("highcharts-container"))return!1}a=
214
+ a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,d=b.hoverPoint,e=b.plotLeft,l=b.plotTop;a=this.normalize(a);b.cancelClick||(d&&this.inClass(a.target,"highcharts-tracker")?(u(d.series,"click",y(a,{point:d})),b.hoverPoint&&d.firePointEvent("click",
215
+ a)):(y(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-e,a.chartY-l)&&u(b,"click",a)))},setDOMEvents:function(){var b=this,e=b.chart.container;e.onmousedown=function(a){b.onContainerMouseDown(a)};e.onmousemove=function(a){b.onContainerMouseMove(a)};e.onclick=function(a){b.onContainerClick(a)};C(e,"mouseleave",b.onContainerMouseLeave);1===a.chartCount&&C(t,"mouseup",b.onDocumentMouseUp);a.hasTouch&&(e.ontouchstart=function(a){b.onContainerTouchStart(a)},e.ontouchmove=function(a){b.onContainerTouchMove(a)},
216
+ 1===a.chartCount&&C(t,"touchend",b.onDocumentTouchEnd))},destroy:function(){var b=this;b.unDocMouseMove&&b.unDocMouseMove();g(b.chart.container,"mouseleave",b.onContainerMouseLeave);a.chartCount||(g(t,"mouseup",b.onDocumentMouseUp),g(t,"touchend",b.onDocumentTouchEnd));clearInterval(b.tooltipTimeout);a.objectEach(b,function(a,d){b[d]=null})}}})(L);(function(a){var C=a.charts,B=a.each,F=a.extend,E=a.map,q=a.noop,f=a.pick;F(a.Pointer.prototype,{pinchTranslate:function(a,f,q,u,k,e){this.zoomHor&&this.pinchTranslateDirection(!0,
217
+ a,f,q,u,k,e);this.zoomVert&&this.pinchTranslateDirection(!1,a,f,q,u,k,e)},pinchTranslateDirection:function(a,f,q,u,k,e,g,x){var b=this.chart,l=a?"x":"y",d=a?"X":"Y",A="chart"+d,n=a?"width":"height",H=b["plot"+(a?"Left":"Top")],r,p,c=x||1,w=b.inverted,t=b.bounds[a?"h":"v"],v=1===f.length,D=f[0][A],m=q[0][A],I=!v&&f[1][A],h=!v&&q[1][A],z;q=function(){!v&&20<Math.abs(D-I)&&(c=x||Math.abs(m-h)/Math.abs(D-I));p=(H-m)/c+D;r=b["plot"+(a?"Width":"Height")]/c};q();f=p;f<t.min?(f=t.min,z=!0):f+r>t.max&&(f=
218
+ t.max-r,z=!0);z?(m-=.8*(m-g[l][0]),v||(h-=.8*(h-g[l][1])),q()):g[l]=[m,h];w||(e[l]=p-H,e[n]=r);e=w?1/c:c;k[n]=r;k[l]=f;u[w?a?"scaleY":"scaleX":"scale"+d]=c;u["translate"+d]=e*H+(m-e*D)},pinch:function(a){var p=this,t=p.chart,u=p.pinchDown,k=a.touches,e=k.length,g=p.lastValidTouch,x=p.hasZoom,b=p.selectionMarker,l={},d=1===e&&(p.inClass(a.target,"highcharts-tracker")&&t.runTrackerClick||p.runChartClick),A={};1<e&&(p.initiated=!0);x&&p.initiated&&!d&&a.preventDefault();E(k,function(a){return p.normalize(a)});
219
+ "touchstart"===a.type?(B(k,function(a,b){u[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[u[0].chartX,u[1]&&u[1].chartX],g.y=[u[0].chartY,u[1]&&u[1].chartY],B(t.axes,function(a){if(a.zoomEnabled){var b=t.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(f(a.options.min,a.dataMin)),c=a.toPixels(f(a.options.max,a.dataMax)),l=Math.max(e,c);b.min=Math.min(a.pos,Math.min(e,c)-d);b.max=Math.max(a.pos+a.len,l+d)}}),p.res=!0):p.followTouchMove&&1===e?this.runPointActions(p.normalize(a)):u.length&&(b||
220
+ (p.selectionMarker=b=F({destroy:q,touch:!0},t.plotBox)),p.pinchTranslate(u,k,l,b,A,g),p.hasPinched=x,p.scaleGroups(l,A),p.res&&(p.res=!1,this.reset(!1,0)))},touch:function(t,p){var q=this.chart,u,k;if(q.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=q.index;1===t.touches.length?(t=this.normalize(t),(k=q.isInsidePlot(t.chartX-q.plotLeft,t.chartY-q.plotTop))&&!q.openMenu?(p&&this.runPointActions(t),"touchmove"===t.type&&(p=this.pinchDown,u=p[0]?4<=Math.sqrt(Math.pow(p[0].chartX-
221
+ t.chartX,2)+Math.pow(p[0].chartY-t.chartY,2)):!1),f(u,!0)&&this.pinch(t)):p&&this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchStart:function(a){this.zoomOption(a);this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(f){C[a.hoverChartIndex]&&C[a.hoverChartIndex].pointer.drop(f)}})})(L);(function(a){var C=a.addEvent,B=a.charts,F=a.css,E=a.doc,q=a.extend,f=a.noop,t=a.Pointer,p=a.removeEvent,y=a.win,u=a.wrap;if(!a.hasTouch&&(y.PointerEvent||y.MSPointerEvent)){var k=
222
+ {},e=!!y.PointerEvent,g=function(){var b=[];b.item=function(a){return this[a]};a.objectEach(k,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b},x=function(b,e,d,k){"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!B[a.hoverChartIndex]||(k(b),k=B[a.hoverChartIndex].pointer,k[e]({type:d,target:b.currentTarget,preventDefault:f,touches:g()}))};q(t.prototype,{onContainerPointerDown:function(a){x(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]=
223
+ {pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){x(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){x(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,e?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,e?"pointermove":
224
+ "MSPointerMove",this.onContainerPointerMove);a(E,e?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});u(t.prototype,"init",function(a,e,d){a.call(this,e,d);this.hasZoom&&F(e.container,{"-ms-touch-action":"none","touch-action":"none"})});u(t.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(C)});u(t.prototype,"destroy",function(a){this.batchMSEvents(p);a.call(this)})}})(L);(function(a){var C,B=a.addEvent,F=a.css,E=a.discardElement,q=a.defined,
225
+ f=a.each,t=a.isFirefox,p=a.marginNames,y=a.merge,u=a.pick,k=a.setAnimation,e=a.stableSort,g=a.win,x=a.wrap;C=a.Legend=function(a,e){this.init(a,e)};C.prototype={init:function(a,e){this.chart=a;this.setOptions(e);e.enabled&&(this.render(),B(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(a){var b=u(a.padding,8);this.options=a;this.itemStyle=a.itemStyle;this.itemHiddenStyle=y(this.itemStyle,a.itemHiddenStyle);this.itemMarginTop=a.itemMarginTop||0;this.padding=
226
+ b;this.initialItemY=b-5;this.itemHeight=this.maxItemWidth=0;this.symbolWidth=u(a.symbolWidth,16);this.pages=[]},update:function(a,e){var b=this.chart;this.setOptions(y(!0,this.options,a));this.destroy();b.isDirtyLegend=b.isDirtyBox=!0;u(e,!0)&&b.redraw()},colorizeItem:function(b,e){b.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden");var d=this.options,l=b.legendItem,g=b.legendLine,k=b.legendSymbol,r=this.itemHiddenStyle.color,d=e?d.itemStyle.color:r,f=e?b.color||r:r,c=b.options&&
227
+ b.options.marker,w={fill:f};l&&l.css({fill:d,color:d});g&&g.attr({stroke:f});k&&(c&&k.isMarker&&(w=b.pointAttribs(),e||a.objectEach(w,function(a,b){w[b]=r})),k.attr(w))},positionItem:function(a){var b=this.options,d=b.symbolPadding,b=!b.rtl,e=a._legendItemPos,g=e[0],e=e[1],k=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(b?g:this.legendWidth-g-2*d-4,e);k&&(k.x=g,k.y=e)},destroyItem:function(a){var b=a.checkbox;f(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=
228
+ a[b].destroy())});b&&E(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}f(this.getAllItems(),function(b){f(["legendItem","legendGroup"],a,b)});f("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(a){var b=this.group&&this.group.alignAttr,d,e=this.clipHeight||this.legendHeight,g=this.titleHeight;b&&(d=b.translateY,f(this.allItems,function(l){var k=l.checkbox,n;k&&(n=d+g+k.y+(a||0)+3,F(k,{left:b.translateX+
229
+ l.checkboxOffset+k.x-20+"px",top:n+"px",display:n>d-6&&n<d+e-6?"":"none"}))}))},renderTitle:function(){var a=this.options,e=this.padding,d=a.title,g=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,e-3,e-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).css(d.style).add(this.group)),a=this.title.getBBox(),g=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:g}));this.titleHeight=g},setText:function(b){var e=this.options;b.legendItem.attr({text:e.labelFormat?
230
+ a.format(e.labelFormat,b):e.labelFormatter.call(b)})},renderItem:function(a){var b=this.chart,d=b.renderer,e=this.options,g="horizontal"===e.layout,k=this.symbolWidth,r=e.symbolPadding,f=this.itemStyle,c=this.itemHiddenStyle,w=this.padding,x=g?u(e.itemDistance,20):0,v=!e.rtl,D=e.width,m=e.itemMarginBottom||0,I=this.itemMarginTop,h=a.legendItem,z=!a.series,p=!z&&a.series.drawLegendSymbol?a.series:a,q=p.options,q=this.createCheckboxForItem&&q&&q.showCheckbox,t=e.useHTML,N=a.options.className;h||(a.legendGroup=
231
+ d.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+a.colorIndex+(N?" "+N:"")+(z?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=h=d.text("",v?k+r:-r,this.baseline||0,t).css(y(a.visible?f:c)).attr({align:v?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(f=f.fontSize,this.fontMetrics=d.fontMetrics(f,h),this.baseline=this.fontMetrics.f+3+I,h.attr("y",this.baseline)),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,p.drawLegendSymbol(this,
232
+ a),this.setItemEvents&&this.setItemEvents(a,h,t),q&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);this.setText(a);d=h.getBBox();k=a.checkboxOffset=e.itemWidth||a.legendItemWidth||k+r+d.width+x+(q?20:0);this.itemHeight=r=Math.round(a.legendItemHeight||d.height||this.symbolHeight);g&&this.itemX-w+k>(D||b.spacingBox.width-2*w-e.x)&&(this.itemX=w,this.itemY+=I+this.lastLineHeight+m,this.lastLineHeight=0);this.maxItemWidth=Math.max(this.maxItemWidth,k);this.lastItemY=I+this.itemY+m;this.lastLineHeight=
233
+ Math.max(r,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];g?this.itemX+=k:(this.itemY+=I+r+m,this.lastLineHeight=r);this.offsetWidth=D||Math.max((g?this.itemX-w-x:k)+w,this.offsetWidth)},getAllItems:function(){var a=[];f(this.chart.series,function(b){var d=b&&b.options;b&&u(d.showInLegend,q(d.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===d.legendType?b.data:b)))});return a},adjustMargins:function(a,e){var b=this.chart,g=this.options,l=g.align.charAt(0)+g.verticalAlign.charAt(0)+
234
+ g.layout.charAt(0);g.floating||f([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(d,k){d.test(l)&&!q(a[k])&&(b[p[k]]=Math.max(b[p[k]],b.legend[(k+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][k]*g[k%2?"x":"y"]+u(g.margin,12)+e[k]))})},render:function(){var a=this,g=a.chart,d=g.renderer,k=a.group,n,x,r,p,c=a.box,w=a.options,q=a.padding;a.itemX=q;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;k||(a.group=k=d.g("legend").attr({zIndex:7}).add(),a.contentGroup=d.g().attr({zIndex:1}).add(k),
235
+ a.scrollGroup=d.g().add(a.contentGroup));a.renderTitle();n=a.getAllItems();e(n,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});w.reversed&&n.reverse();a.allItems=n;a.display=x=!!n.length;a.lastLineHeight=0;f(n,function(b){a.renderItem(b)});r=(w.width||a.offsetWidth)+q;p=a.lastItemY+a.lastLineHeight+a.titleHeight;p=a.handleOverflow(p);p+=q;c||(a.box=c=d.rect().addClass("highcharts-legend-box").attr({r:w.borderRadius}).add(k),c.isNew=!0);c.attr({stroke:w.borderColor,
236
+ "stroke-width":w.borderWidth||0,fill:w.backgroundColor||"none"}).shadow(w.shadow);0<r&&0<p&&(c[c.isNew?"attr":"animate"](c.crisp({x:0,y:0,width:r,height:p},c.strokeWidth())),c.isNew=!1);c[x?"show":"hide"]();a.legendWidth=r;a.legendHeight=p;f(n,function(b){a.positionItem(b)});x&&k.align(y(w,{width:r,height:p}),!0,"spacingBox");g.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,d=this.chart,e=d.renderer,g=this.options,k=g.y,r=this.padding,d=d.spacingBox.height+("top"===g.verticalAlign?
237
+ -k:k)-r,k=g.maxHeight,x,c=this.clipRect,w=g.navigation,p=u(w.animation,!0),v=w.arrowSize||12,D=this.nav,m=this.pages,I,h=this.allItems,z=function(a){"number"===typeof a?c.attr({height:a}):c&&(b.clipRect=c.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+r+"px,9999px,"+(r+a)+"px,0)":"auto")};"horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(d/=2);k&&(d=Math.min(d,k));m.length=0;a>d&&!1!==w.enabled?(this.clipHeight=x=Math.max(d-20-this.titleHeight-
238
+ r,0),this.currentPage=u(this.currentPage,1),this.fullHeight=a,f(h,function(a,b){var c=a._legendItemPos[1];a=Math.round(a.legendItem.getBBox().height);var d=m.length;if(!d||c-m[d-1]>x&&(I||c)!==m[d-1])m.push(I||c),d++;b===h.length-1&&c+a-m[d-1]>x&&m.push(c);c!==I&&(I=c)}),c||(c=b.clipRect=e.clipRect(0,r,9999,0),b.contentGroup.clip(c)),z(x),D||(this.nav=D=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,v,v).on("click",function(){b.scroll(-1,p)}).add(D),this.pager=e.text("",15,
239
+ 10).addClass("highcharts-legend-navigation").css(w.style).add(D),this.down=e.symbol("triangle-down",0,0,v,v).on("click",function(){b.scroll(1,p)}).add(D)),b.scroll(0),a=d):D&&(z(),this.nav=D.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,e){var b=this.pages,g=b.length;a=this.currentPage+a;var l=this.clipHeight,f=this.options.navigation,r=this.pager,x=this.padding;a>g&&(a=g);0<a&&(void 0!==e&&k(e,this.chart),this.nav.attr({translateX:x,translateY:l+this.padding+
240
+ 7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),r.attr({text:a+"/"+g}),this.down.attr({x:18+this.pager.getBBox().width,"class":a===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.up.attr({fill:1===a?f.inactiveColor:f.activeColor}).css({cursor:1===a?"default":"pointer"}),this.down.attr({fill:a===g?f.inactiveColor:f.activeColor}).css({cursor:a===g?"default":"pointer"}),e=-b[a-1]+this.initialItemY,
241
+ this.scrollGroup.animate({translateY:e}),this.currentPage=a,this.positionCheckboxes(e))}};a.LegendSymbolMixin={drawRectangle:function(a,e){var b=a.symbolHeight,g=a.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(g?(a.symbolWidth-b)/2:0,a.baseline-b+1,g?b:a.symbolWidth,b,u(a.options.symbolRadius,b/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(a){var b=this.options,d=b.marker,e=a.symbolWidth,g=a.symbolHeight,k=g/2,r=this.chart.renderer,f=
242
+ this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var c;c={"stroke-width":b.lineWidth||0};b.dashStyle&&(c.dashstyle=b.dashStyle);this.legendLine=r.path(["M",0,a,"L",e,a]).addClass("highcharts-graph").attr(c).add(f);d&&!1!==d.enabled&&(b=Math.min(u(d.radius,k),k),0===this.symbol.indexOf("url")&&(d=y(d,{width:g,height:g}),b=0),this.legendSymbol=d=r.symbol(this.symbol,e/2-b,a-b,2*b,2*b,d).addClass("highcharts-point").add(f),d.isMarker=!0)}};(/Trident\/7\.0/.test(g.navigator.userAgent)||t)&&
243
+ x(C.prototype,"positionItem",function(a,e){var b=this,g=function(){e._legendItemPos&&a.call(b,e)};g();setTimeout(g)})})(L);(function(a){var C=a.addEvent,B=a.animate,F=a.animObject,E=a.attr,q=a.doc,f=a.Axis,t=a.createElement,p=a.defaultOptions,y=a.discardElement,u=a.charts,k=a.css,e=a.defined,g=a.each,x=a.extend,b=a.find,l=a.fireEvent,d=a.getStyle,A=a.grep,n=a.isNumber,H=a.isObject,r=a.isString,J=a.Legend,c=a.marginNames,w=a.merge,K=a.objectEach,v=a.Pointer,D=a.pick,m=a.pInt,I=a.removeEvent,h=a.seriesTypes,
244
+ z=a.splat,P=a.svg,M=a.syncTimeout,Q=a.win,N=a.Renderer,O=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new O(a,b,c)};x(O.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(r(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(b,c){var h,d,m=b.series,e=b.plotOptions||{};b.series=null;h=w(p,b);for(d in h.plotOptions)h.plotOptions[d].tooltip=e[d]&&w(e[d].tooltip)||void 0;h.tooltip.userOptions=b.chart&&b.chart.forExport&&
245
+ b.tooltip.userOptions||b.tooltip;h.series=b.series=m;this.userOptions=b;b=h.chart;d=b.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.callback=c;this.isResizing=0;this.options=h;this.axes=[];this.series=[];this.hasCartesianSeries=b.showAxes;var v=this;v.index=u.length;u.push(v);a.chartCount++;d&&K(d,function(a,b){C(v,b,a)});v.xAxis=[];v.yAxis=[];v.pointCount=v.colorCounter=v.symbolCounter=0;v.firstRender()},initSeries:function(b){var c=this.options.chart;(c=h[b.type||c.type||c.defaultSeriesType])||
246
+ a.error(17,!0);c=new c;c.init(this,b);return c},orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].name||"Series "+(b[a].index+1))},isInsidePlot:function(a,b,c){var h=c?b:a;a=c?a:b;return 0<=h&&h<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){var c=this.axes,h=this.series,d=this.pointer,m=this.legend,e=this.isDirtyLegend,v,k,z=this.hasCartesianSeries,D=this.isDirtyBox,n,r=this.renderer,f=r.isHidden(),w=[];this.setResponsive&&this.setResponsive(!1);
247
+ a.setAnimation(b,this);f&&this.temporaryDisplay();this.layOutTitles();for(b=h.length;b--;)if(n=h[b],n.options.stacking&&(v=!0,n.isDirty)){k=!0;break}if(k)for(b=h.length;b--;)n=h[b],n.options.stacking&&(n.isDirty=!0);g(h,function(a){a.isDirty&&"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),e=!0);a.isDirtyData&&l(a,"updatedData")});e&&m.options.enabled&&(m.render(),this.isDirtyLegend=!1);v&&this.getStacks();z&&g(c,function(a){a.updateNames();a.setScale()});this.getMargins();z&&(g(c,
248
+ function(a){a.isDirty&&(D=!0)}),g(c,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,w.push(function(){l(a,"afterSetExtremes",x(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(D||v)&&a.redraw()}));D&&this.drawChartBox();l(this,"predraw");g(h,function(a){(D||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});d&&d.reset(!0);r.draw();l(this,"redraw");l(this,"render");f&&this.temporaryDisplay(!0);g(w,function(a){a.call()})},get:function(a){function c(b){return b.id===a||b.options&&b.options.id===
249
+ a}var h,d=this.series,m;h=b(this.axes,c)||b(this.series,c);for(m=0;!h&&m<d.length;m++)h=b(d[m].points||[],c);return h},getAxes:function(){var a=this,b=this.options,c=b.xAxis=z(b.xAxis||{}),b=b.yAxis=z(b.yAxis||{});g(c,function(a,b){a.index=b;a.isX=!0});g(b,function(a,b){a.index=b});c=c.concat(b);g(c,function(b){new f(a,b)})},getSelectedPoints:function(){var a=[];g(this.series,function(b){a=a.concat(A(b.data||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return A(this.series,
250
+ function(a){return a.selected})},setTitle:function(a,b,c){var h=this,d=h.options,m;m=d.title=w({style:{color:"#333333",fontSize:d.isStock?"16px":"18px"}},d.title,a);d=d.subtitle=w({style:{color:"#666666"}},d.subtitle,b);g([["title",a,m],["subtitle",b,d]],function(a,b){var c=a[0],d=h[c],m=a[1];a=a[2];d&&m&&(h[c]=d=d.destroy());a&&a.text&&!d&&(h[c]=h.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||4}).add(),h[c].update=function(a){h.setTitle(!b&&a,b&&
251
+ a)},h[c].css(a.style))});h.layOutTitles(c)},layOutTitles:function(a){var b=0,c,h=this.renderer,d=this.spacingBox;g(["title","subtitle"],function(a){var c=this[a],m=this.options[a];a="title"===a?-3:m.verticalAlign?0:b+2;var e;c&&(e=m.style.fontSize,e=h.fontMetrics(e,c).b,c.css({width:(m.width||d.width+m.widthAdjust)+"px"}).align(x({y:a+e},m),!1,"spacingBox"),m.floating||m.verticalAlign||(b=Math.ceil(b+c.getBBox(m.useHTML).height)))},this);c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&
252
+ c&&(this.isDirtyBox=c,this.hasRendered&&D(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var b=this.options.chart,c=b.width,b=b.height,h=this.renderTo;e(c)||(this.containerWidth=d(h,"width"));e(b)||(this.containerHeight=d(h,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,a.relativeLength(b,this.chartWidth)||this.containerHeight||400)},temporaryDisplay:function(b){var c=this.renderTo;if(b)for(;c&&c.style;)c.hcOrigStyle&&(a.css(c,c.hcOrigStyle),
253
+ delete c.hcOrigStyle),c=c.parentNode;else for(;c&&c.style;)"none"===d(c,"display",!1)&&(c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a.css(c,{display:"block",height:0,overflow:"hidden"}),c.style.setProperty&&c.style.setProperty("display","block","important")),c=c.parentNode},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var b,c=this.options,h=c.chart,d,e;b=this.renderTo;var v=a.uniqueKey(),g;b||
254
+ (this.renderTo=b=h.renderTo);r(b)&&(this.renderTo=b=q.getElementById(b));b||a.error(13,!0);d=m(E(b,"data-highcharts-chart"));n(d)&&u[d]&&u[d].hasRendered&&u[d].destroy();E(b,"data-highcharts-chart",this.index);b.innerHTML="";h.skipClone||b.offsetWidth||this.temporaryDisplay();this.getChartSize();d=this.chartWidth;e=this.chartHeight;g=x({position:"relative",overflow:"hidden",width:d+"px",height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},h.style);
255
+ this.container=b=t("div",{id:v},g,b);this._cursor=b.style.cursor;this.renderer=new (a[h.renderer]||N)(b,d,e,null,h.forExport,c.exporting&&c.exporting.allowHTML);this.setClassName(h.className);this.renderer.setStyle(h.style);this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,h=this.titleOffset;this.resetMargins();h&&!e(c[0])&&(this.plotTop=Math.max(this.plotTop,h+this.options.title.margin+b[0]));this.legend.display&&this.legend.adjustMargins(c,b);this.extraMargin&&
256
+ (this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],h=a.margin;a.hasCartesianSeries&&g(a.axes,function(a){a.visible&&a.getOffset()});g(c,function(c,d){e(h[d])||(a[c]+=b[d])});a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,h=b.renderTo,m=e(c.width),v=c.width||d(h,"width"),c=c.height||d(h,"height"),h=a?a.target:
257
+ Q;if(!m&&!b.isPrinting&&v&&c&&(h===Q||h===q)){if(v!==b.containerWidth||c!==b.containerHeight)clearTimeout(b.reflowTimeout),b.reflowTimeout=M(function(){b.container&&b.setSize(void 0,void 0,!1)},a?100:0);b.containerWidth=v;b.containerHeight=c}},initReflow:function(){var a=this,b;b=C(Q,"resize",function(b){a.reflow(b)});C(a,"destroy",b)},setSize:function(b,c,h){var d=this,m=d.renderer;d.isResizing+=1;a.setAnimation(h,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;void 0!==b&&(d.options.chart.width=
258
+ b);void 0!==c&&(d.options.chart.height=c);d.getChartSize();b=m.globalAnimation;(b?B:k)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},b);d.setChartSize(!0);m.setSize(d.chartWidth,d.chartHeight,h);g(d.axes,function(a){a.isDirty=!0;a.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(h);d.oldChartHeight=null;l(d,"resize");M(function(){d&&l(d,"endResize",null,function(){--d.isResizing})},F(b).duration)},setChartSize:function(a){var b=this.inverted,
259
+ c=this.renderer,h=this.chartWidth,d=this.chartHeight,m=this.options.chart,e=this.spacing,v=this.clipOffset,k,l,z,n;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=z=Math.max(0,Math.round(h-k-this.marginRight));this.plotHeight=n=Math.max(0,Math.round(d-l-this.marginBottom));this.plotSizeX=b?n:z;this.plotSizeY=b?z:n;this.plotBorderWidth=m.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:e[3],y:e[0],width:h-e[3]-e[1],height:d-e[0]-e[2]};this.plotBox=
260
+ c.plotBox={x:k,y:l,width:z,height:n};h=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(h,v[3])/2);c=Math.ceil(Math.max(h,v[0])/2);this.clipBox={x:b,y:c,width:Math.floor(this.plotSizeX-Math.max(h,v[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(h,v[2])/2-c))};a||g(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this,b=a.options.chart;g(["margin","spacing"],function(c){var h=b[c],d=H(h)?h:[h,h,h,h];g(["Top","Right","Bottom","Left"],
261
+ function(h,m){a[c][m]=D(b[c+h],d[m])})});g(c,function(b,c){a[b]=D(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,h=this.chartHeight,d=this.chartBackground,m=this.plotBackground,e=this.plotBorder,v,g=this.plotBGImage,k=a.backgroundColor,l=a.plotBackgroundColor,z=a.plotBackgroundImage,n,D=this.plotLeft,r=this.plotTop,f=this.plotWidth,w=this.plotHeight,I=this.plotBox,x=this.clipRect,p=this.clipBox,
262
+ q="animate";d||(this.chartBackground=d=b.rect().addClass("highcharts-background").add(),q="attr");v=a.borderWidth||0;n=v+(a.shadow?8:0);k={fill:k||"none"};if(v||d["stroke-width"])k.stroke=a.borderColor,k["stroke-width"]=v;d.attr(k).shadow(a.shadow);d[q]({x:n/2,y:n/2,width:c-n-v%2,height:h-n-v%2,r:a.borderRadius});q="animate";m||(q="attr",this.plotBackground=m=b.rect().addClass("highcharts-plot-background").add());m[q](I);m.attr({fill:l||"none"}).shadow(a.plotShadow);z&&(g?g.animate(I):this.plotBGImage=
263
+ b.image(z,D,r,f,w).add());x?x.animate({width:p.width,height:p.height}):this.clipRect=b.clipRect(p);q="animate";e||(q="attr",this.plotBorder=e=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});e[q](e.crisp({x:D,y:r,width:f,height:w},-e.strokeWidth()));this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,m,e;g(["inverted","angular","polar"],function(v){c=h[b.type||
264
+ b.defaultSeriesType];e=b[v]||c&&c.prototype[v];for(m=d&&d.length;!e&&m--;)(c=h[d[m].type])&&c.prototype[v]&&(e=!0);a[v]=e})},linkSeries:function(){var a=this,b=a.series;g(b,function(a){a.linkedSeries.length=0});g(b,function(b){var c=b.options.linkedTo;r(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=D(b.options.visible,c.options.visible,b.visible))})},renderSeries:function(){g(this.series,function(a){a.translate();a.render()})},
265
+ renderLabels:function(){var a=this,b=a.options.labels;b.items&&g(b.items,function(c){var h=x(b.style,c.style),d=m(h.left)+a.plotLeft,e=m(h.top)+a.plotTop+12;delete h.left;delete h.top;a.renderer.text(c.html,d,e).attr({zIndex:2}).css(h).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,h,d,m;this.setTitle();this.legend=new J(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;h=this.plotHeight-=21;g(a,function(a){a.setScale()});
266
+ this.getAxisMargins();d=1.1<c/this.plotWidth;m=1.05<h/this.plotHeight;if(d||m)g(a,function(a){(a.horiz&&d||!a.horiz&&m)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&g(a,function(a){a.visible&&a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0},addCredits:function(a){var b=this;a=w(!0,this.options.credits,
267
+ a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(Q.location.href=a.href)}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},destroy:function(){var b=this,c=b.axes,h=b.series,d=b.container,m,e=d&&d.parentNode;l(b,"destroy");b.renderer.forExport?a.erase(u,b):u[b.index]=void 0;a.chartCount--;
268
+ b.renderTo.removeAttribute("data-highcharts-chart");I(b);for(m=c.length;m--;)c[m]=c[m].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(m=h.length;m--;)h[m]=h[m].destroy();g("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});d&&(d.innerHTML="",I(d),e&&y(d));K(b,function(a,c){delete b[c]})},isReadyToRender:function(){var a=
269
+ this;return P||Q!=Q.top||"complete"===q.readyState?!0:(q.attachEvent("onreadystatechange",function(){q.detachEvent("onreadystatechange",a.firstRender);"complete"===q.readyState&&a.firstRender()}),!1)},firstRender:function(){var a=this,b=a.options;if(a.isReadyToRender()){a.getContainer();l(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();g(b.series||[],function(b){a.initSeries(b)});a.linkSeries();l(a,"beforeRender");v&&(a.pointer=new v(a,b));a.render();if(!a.renderer.imgCount&&
270
+ a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){g([this.callback].concat(this.callbacks),function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);l(this,"load");l(this,"render");e(this.index)&&!1!==this.options.chart.reflow&&this.initReflow();this.onload=null}})})(L);(function(a){var C,B=a.each,F=a.extend,E=a.erase,q=a.fireEvent,f=a.format,t=a.isArray,p=a.isNumber,y=a.pick,u=a.removeEvent;C=a.Point=function(){};C.prototype={init:function(a,e,g){this.series=a;this.color=a.color;
271
+ this.applyOptions(e,g);a.options.colorByPoint?(e=a.options.colors||a.chart.options.colors,this.color=this.color||e[a.colorCounter],e=e.length,g=a.colorCounter,a.colorCounter++,a.colorCounter===e&&(a.colorCounter=0)):g=a.colorIndex;this.colorIndex=y(this.colorIndex,g);a.chart.pointCount++;return this},applyOptions:function(a,e){var g=this.series,k=g.options.pointValKey||g.pointValKey;a=C.prototype.optionsToObject.call(this,a);F(this,a);this.options=this.options?F(this.options,a):a;a.group&&delete this.group;
272
+ k&&(this.y=this[k]);this.isNull=y(this.isValid&&!this.isValid(),null===this.x||!p(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===e&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));void 0===this.x&&g&&(this.x=void 0===e?g.autoIncrement(this):e);return this},optionsToObject:function(a){var e={},g=this.series,k=g.options.keys,b=k||g.pointArrayMap||["y"],l=b.length,d=0,f=0;if(p(a)||null===a)e[b[0]]=a;else if(t(a))for(!k&&a.length>l&&(g=typeof a[0],"string"===g?e.name=
273
+ a[0]:"number"===g&&(e.x=a[0]),d++);f<l;)k&&void 0===a[d]||(e[b[f]]=a[d]),d++,f++;else"object"===typeof a&&(e=a,a.dataLabels&&(g._hasPointLabels=!0),a.marker&&(g._hasPointMarkers=!0));return e},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&
274
+ this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var a=this.series,e=a.zones,a=a.zoneAxis||"y",g=0,f;for(f=e[g];this[a]>=f.value;)f=e[++g];f&&f.color&&!this.options.color&&(this.color=f.color);return f},destroy:function(){var a=this.series.chart,e=a.hoverPoints,g;a.pointCount--;e&&(this.setState(),E(e,this),e.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)u(this),this.destroyElements();this.legendItem&&
275
+ a.legend.destroyItem(this);for(g in this)this[g]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],e,g=6;g--;)e=a[g],this[e]&&(this[e]=this[e].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var e=this.series,g=e.tooltipOptions,
276
+ k=y(g.valueDecimals,""),b=g.valuePrefix||"",l=g.valueSuffix||"";B(e.pointArrayMap||["y"],function(d){d="{point."+d;if(b||l)a=a.replace(d+"}",b+d+"}"+l);a=a.replace(d+"}",d+":,."+k+"f}")});return f(a,{point:this,series:this.series})},firePointEvent:function(a,e,g){var k=this,b=this.series.options;(b.point.events[a]||k.options&&k.options.events&&k.options.events[a])&&this.importEvents();"click"===a&&b.allowPointSelect&&(g=function(a){k.select&&k.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});q(this,
277
+ a,e,g)},visible:!0}})(L);(function(a){var C=a.addEvent,B=a.animObject,F=a.arrayMax,E=a.arrayMin,q=a.correctFloat,f=a.Date,t=a.defaultOptions,p=a.defaultPlotOptions,y=a.defined,u=a.each,k=a.erase,e=a.extend,g=a.fireEvent,x=a.grep,b=a.isArray,l=a.isNumber,d=a.isString,A=a.merge,n=a.objectEach,H=a.pick,r=a.removeEvent,J=a.splat,c=a.SVGElement,w=a.syncTimeout,K=a.win;a.Series=a.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{lineWidth:0,
278
+ lineColor:"#ffffff",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":a.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},
279
+ lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(a,b){var c=this,d,h=a.series,v;c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();e(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});d=b.events;n(d,function(a,
280
+ b){C(c,b,a)});if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();u(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);h.length&&(v=h[h.length-1]);c._i=H(v&&v._i,-1)+1;a.orderSeries(this.insert(h))},insert:function(a){var b=this.options.index,c;if(l(b)){for(c=a.length;c--;)if(b>=H(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);
281
+ return H(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,e;u(b.axisTypes||[],function(h){u(d[h],function(a){e=a.options;if(c[h]===e.index||void 0!==c[h]&&c[h]===e.id||void 0===c[h]&&0===e.index)b.insert(a.series),b[h]=a,a.isDirty=!0});b[h]||b.optionalAxis===h||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments,h=l(b)?function(h){var d="y"===h&&c.toYData?c.toYData(a):a[h];c[h+"Data"][b]=d}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,
282
+ 2))};u(c.parallelArrays,h)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,b=H(b,a.pointStart,0);this.pointInterval=c=H(this.pointInterval,a.pointInterval,1);d&&(a=new f(b),"day"===d?a=+a[f.hcSetDate](a[f.hcGetDate]()+c):"month"===d?a=+a[f.hcSetMonth](a[f.hcGetMonth]()+c):"year"===d&&(a=+a[f.hcSetFullYear](a[f.hcGetFullYear]()+c)),c=a-b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,c=b.options,d=c.plotOptions,h=(b.userOptions||{}).plotOptions||
283
+ {},e=d[this.type];this.userOptions=a;b=A(e,d.series,a);this.tooltipOptions=A(t.tooltip,t.plotOptions.series&&t.plotOptions.series.tooltip,t.plotOptions[this.type].tooltip,c.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=H(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===e.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=
284
+ (b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+"Threshold"]||b.threshold||0,className:"highcharts-negative",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&y(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});return b},getCyclic:function(a,b,c){var d,h=this.chart,e=this.userOptions,m=a+"Index",v=a+"Counter",g=c?c.length:H(h.options.chart[a+"Count"],h[a+"Count"]);b||(d=H(e[m],e["_"+m]),y(d)||(h.series.length||
285
+ (h[v]=0),e["_"+m]=d=h[v]%g,h[v]+=1),c&&(b=c[d]));void 0!==d&&(this[m]=d);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||p[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,setData:function(c,e,m,g){var h=this,v=h.points,k=v&&v.length||0,n,f=h.options,r=h.chart,w=null,D=h.xAxis,
286
+ I=f.turboThreshold,x=this.xData,p=this.yData,q=(n=h.pointArrayMap)&&n.length;c=c||[];n=c.length;e=H(e,!0);if(!1!==g&&n&&k===n&&!h.cropped&&!h.hasGroupedData&&h.visible)u(c,function(a,b){v[b].update&&a!==f.data[b]&&v[b].update(a,!1,null,!1)});else{h.xIncrement=null;h.colorCounter=0;u(this.parallelArrays,function(a){h[a+"Data"].length=0});if(I&&n>I){for(m=0;null===w&&m<n;)w=c[m],m++;if(l(w))for(m=0;m<n;m++)x[m]=this.autoIncrement(),p[m]=c[m];else if(b(w))if(q)for(m=0;m<n;m++)w=c[m],x[m]=w[0],p[m]=w.slice(1,
287
+ q+1);else for(m=0;m<n;m++)w=c[m],x[m]=w[0],p[m]=w[1];else a.error(12)}else for(m=0;m<n;m++)void 0!==c[m]&&(w={series:h},h.pointClass.prototype.applyOptions.apply(w,[c[m]]),h.updateParallelArrays(w,m));d(p[0])&&a.error(14,!0);h.data=[];h.options.data=h.userOptions.data=c;for(m=k;m--;)v[m]&&v[m].destroy&&v[m].destroy();D&&(D.minRange=D.userMinRange);h.isDirty=r.isDirtyBox=!0;h.isDirtyData=!!v;m=!1}"point"===f.legendType&&(this.processData(),this.generatePoints());e&&r.redraw(m)},processData:function(b){var c=
288
+ this.xData,d=this.yData,e=c.length,h;h=0;var g,v,k=this.xAxis,l,n=this.options;l=n.cropThreshold;var f=this.getExtremesFromAll||n.getExtremesFromAll,w=this.isCartesian,n=k&&k.val2lin,r=k&&k.isLog,x,p;if(w&&!this.isDirty&&!k.isDirty&&!this.yAxis.isDirty&&!b)return!1;k&&(b=k.getExtremes(),x=b.min,p=b.max);if(w&&this.sorted&&!f&&(!l||e>l||this.forceCrop))if(c[e-1]<x||c[0]>p)c=[],d=[];else if(c[0]<x||c[e-1]>p)h=this.cropData(this.xData,this.yData,x,p),c=h.xData,d=h.yData,h=h.start,g=!0;for(l=c.length||
289
+ 1;--l;)e=r?n(c[l])-n(c[l-1]):c[l]-c[l-1],0<e&&(void 0===v||e<v)?v=e:0>e&&this.requireSorting&&a.error(15);this.cropped=g;this.cropStart=h;this.processedXData=c;this.processedYData=d;this.closestPointRange=v},cropData:function(a,b,c,d){var h=a.length,e=0,m=h,g=H(this.cropShoulder,1),v;for(v=0;v<h;v++)if(a[v]>=c){e=Math.max(0,v-g);break}for(c=v;c<h;c++)if(a[c]>d){m=c+g;break}return{xData:a.slice(e,m),yData:b.slice(e,m),start:e,end:m}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,
290
+ d,h=this.processedXData,e=this.processedYData,g=this.pointClass,k=h.length,l=this.cropStart||0,n,f=this.hasGroupedData,a=a.keys,w,r=[],x;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(x=0;x<k;x++)n=l+x,f?(w=(new g).init(this,[h[x]].concat(J(e[x]))),w.dataGroup=this.groupMap[x]):(w=c[n])||void 0===b[n]||(c[n]=w=(new g).init(this,b[n],h[x])),w&&(w.index=n,r[x]=w);this.options.keys=a;if(c&&(k!==(d=c.length)||f))for(x=0;x<d;x++)x!==l||f||(x+=k),c[x]&&(c[x].destroyElements(),
291
+ c[x].plotX=void 0);this.data=c;this.points=r},getExtremes:function(a){var c=this.yAxis,d=this.processedXData,e,h=[],g=0;e=this.xAxis.getExtremes();var v=e.min,k=e.max,n,f,w,r;a=a||this.stackedYData||this.processedYData||[];e=a.length;for(r=0;r<e;r++)if(f=d[r],w=a[r],n=(l(w,!0)||b(w))&&(!c.positiveValuesOnly||w.length||0<w),f=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(d[r]||f)>=v&&(d[r]||f)<=k,n&&f)if(n=w.length)for(;n--;)null!==w[n]&&(h[g++]=w[n]);else h[g++]=w;this.dataMin=
292
+ E(h);this.dataMax=F(h)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,h=this.yAxis,e=this.points,g=e.length,k=!!this.modifyValue,n=a.pointPlacement,w="between"===n||l(n),f=a.threshold,r=a.startFromThreshold?f:0,x,p,t,u,K=Number.MAX_VALUE;"between"===n&&(n=.5);l(n)&&(n*=H(a.pointRange||c.pointRange));for(a=0;a<g;a++){var A=e[a],J=A.x,B=A.y;p=A.low;var C=b&&h.stacks[(this.negStacks&&B<(r?0:f)?"-":"")+this.stackKey],
293
+ E;h.positiveValuesOnly&&null!==B&&0>=B&&(A.isNull=!0);A.plotX=x=q(Math.min(Math.max(-1E5,c.translate(J,0,0,0,1,n,"flags"===this.type)),1E5));b&&this.visible&&!A.isNull&&C&&C[J]&&(u=this.getStackIndicator(u,J,this.index),E=C[J],B=E.points[u.key],p=B[0],B=B[1],p===r&&u.key===C[J].base&&(p=H(f,h.min)),h.positiveValuesOnly&&0>=p&&(p=null),A.total=A.stackTotal=E.total,A.percentage=E.total&&A.y/E.total*100,A.stackY=B,E.setOffset(this.pointXOffset||0,this.barW||0));A.yBottom=y(p)?h.translate(p,0,1,0,1):
294
+ null;k&&(B=this.modifyValue(B,A));A.plotY=p="number"===typeof B&&Infinity!==B?Math.min(Math.max(-1E5,h.translate(B,0,1,0,1)),1E5):void 0;A.isInside=void 0!==p&&0<=p&&p<=h.len&&0<=x&&x<=c.len;A.clientX=w?q(c.translate(J,0,0,0,1,n)):x;A.negative=A.y<(f||0);A.category=d&&void 0!==d[A.x]?d[A.x]:A.x;A.isNull||(void 0!==t&&(K=Math.min(K,Math.abs(x-t))),t=x);A.zone=this.zones.length&&A.getZone()}this.closestPointRangePx=K},getValidPoints:function(a,b){var c=this.chart;return x(a||this.points||[],function(a){return b&&
295
+ !c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,h=b.inverted,e=this.clipBox,g=e||b.clipBox,v=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,g.height,c.xAxis,c.yAxis].join(),k=b[v],l=b[v+"m"];k||(a&&(g.width=0,b[v+"m"]=l=d.clipRect(-99,h?-b.plotLeft:-b.plotTop,99,h?b.chartWidth:b.chartHeight)),b[v]=k=d.clipRect(g),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&
296
+ (this.group.clip(a||e?k:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=v);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&v&&b[v]&&(e||(b[v]=b[v].destroy()),b[v+"m"]&&(b[v+"m"]=b[v+"m"].destroy())))},animate:function(a){var b=this.chart,c=B(this.options.animation),d;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();
297
+ g(this,"afterAnimate")},drawPoints:function(){var a=this.points,b=this.chart,c,d,h,e,g=this.options.marker,k,n,f,w,r=this[this.specialGroup]||this.markerGroup,x=H(g.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=2*g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(d=0;d<a.length;d++)h=a[d],c=h.plotY,e=h.graphic,k=h.marker||{},n=!!h.marker,f=x&&void 0===k.enabled||k.enabled,w=h.isInside,f&&l(c)&&null!==h.y?(c=H(k.symbol,this.symbol),h.hasImage=0===c.indexOf("url"),f=this.markerAttribs(h,
298
+ h.selected&&"select"),e?e[w?"show":"hide"](!0).animate(f):w&&(0<f.width||h.hasImage)&&(h.graphic=e=b.renderer.symbol(c,f.x,f.y,f.width,f.height,n?k:g).add(r)),e&&e.attr(this.pointAttribs(h,h.selected&&"select")),e&&e.addClass(h.getClassName(),!0)):e&&(h.graphic=e.destroy())},markerAttribs:function(a,b){var c=this.options.marker,d=a.marker||{},h=H(d.radius,c.radius);b&&(c=c.states[b],b=d.states&&d.states[b],h=H(b&&b.radius,c&&c.radius,h+(c&&c.radiusPlus||0)));a.hasImage&&(h=0);a={x:Math.floor(a.plotX)-
299
+ h,y:a.plotY-h};h&&(a.width=a.height=2*h);return a},pointAttribs:function(a,b){var c=this.options.marker,d=a&&a.options,h=d&&d.marker||{},e=this.color,g=d&&d.color,v=a&&a.color,d=H(h.lineWidth,c.lineWidth);a=a&&a.zone&&a.zone.color;e=g||a||v||e;a=h.fillColor||c.fillColor||e;e=h.lineColor||c.lineColor||e;b&&(c=c.states[b],b=h.states&&h.states[b]||{},d=H(b.lineWidth,c.lineWidth,d+H(b.lineWidthPlus,c.lineWidthPlus,0)),a=b.fillColor||c.fillColor||a,e=b.lineColor||c.lineColor||e);return{stroke:e,"stroke-width":d,
300
+ fill:a}},destroy:function(){var a=this,b=a.chart,d=/AppleWebKit\/533/.test(K.navigator.userAgent),e,h,l=a.data||[],f,w;g(a,"destroy");r(a);u(a.axisTypes||[],function(b){(w=a[b])&&w.series&&(k(w.series,a),w.isDirty=w.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(h=l.length;h--;)(f=l[h])&&f.destroy&&f.destroy();a.points=null;clearTimeout(a.animationTimeout);n(a,function(a,b){a instanceof c&&!a.survive&&(e=d&&"group"===b?"hide":"destroy",a[e]())});b.hoverSeries===a&&(b.hoverSeries=
301
+ null);k(b.series,a);b.orderSeries();n(a,function(b,c){delete a[c]})},getGraphPath:function(a,b,c){var d=this,h=d.options,e=h.step,m,g=[],k=[],v;a=a||d.points;(m=a.reversed)&&a.reverse();(e={right:1,center:2}[e]||e&&3)&&m&&(e=4-e);!h.connectNulls||b||c||(a=this.getValidPoints(a));u(a,function(m,l){var n=m.plotX,f=m.plotY,w=a[l-1];(m.leftCliff||w&&w.rightCliff)&&!c&&(v=!0);m.isNull&&!y(b)&&0<l?v=!h.connectNulls:m.isNull&&!b?v=!0:(0===l||v?l=["M",m.plotX,m.plotY]:d.getPointSpline?l=d.getPointSpline(a,
302
+ m,l):e?(l=1===e?["L",w.plotX,f]:2===e?["L",(w.plotX+n)/2,w.plotY,"L",(w.plotX+n)/2,f]:["L",n,w.plotY],l.push("L",n,f)):l=["L",n,f],k.push(m.x),e&&k.push(m.x),g.push.apply(g,l),v=!1)});g.xMap=k;return d.graphPath=g},drawGraph:function(){var a=this,b=this.options,c=(this.gappedPath||this.getGraphPath).call(this),d=[["graph","highcharts-graph",b.lineColor||this.color,b.dashStyle]];u(this.zones,function(c,e){d.push(["zone-graph-"+e,"highcharts-graph highcharts-zone-graph-"+e+" "+(c.className||""),c.color||
303
+ a.color,c.dashStyle||b.dashStyle])});u(d,function(d,e){var h=d[0],m=a[h];m?(m.endX=c.xMap,m.animate({d:c})):c.length&&(a[h]=a.chart.renderer.path(c).addClass(d[1]).attr({zIndex:1}).add(a.group),m={stroke:d[2],"stroke-width":b.lineWidth,fill:a.fillGraph&&a.color||"none"},d[3]?m.dashstyle=d[3]:"square"!==b.linecap&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),m=a[h].attr(m).shadow(2>e&&b.shadow));m&&(m.startX=c.xMap,m.isArea=c.isArea)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,
304
+ d=this.zones,h,e,g=this.clips||[],k,l=this.graph,n=this.area,f=Math.max(b.chartWidth,b.chartHeight),w=this[(this.zoneAxis||"y")+"Axis"],r,x,p=b.inverted,q,A,t,K,J=!1;d.length&&(l||n)&&w&&void 0!==w.min&&(x=w.reversed,q=w.horiz,l&&l.hide(),n&&n.hide(),r=w.getExtremes(),u(d,function(d,m){h=x?q?b.plotWidth:0:q?0:w.toPixels(r.min);h=Math.min(Math.max(H(e,h),0),f);e=Math.min(Math.max(Math.round(w.toPixels(H(d.value,r.max),!0)),0),f);J&&(h=e=w.toPixels(r.max));A=Math.abs(h-e);t=Math.min(h,e);K=Math.max(h,
305
+ e);w.isXAxis?(k={x:p?K:t,y:0,width:A,height:f},q||(k.x=b.plotHeight-k.x)):(k={x:0,y:p?K:t,width:f,height:A},q&&(k.y=b.plotWidth-k.y));p&&c.isVML&&(k=w.isXAxis?{x:0,y:x?t:K,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});g[m]?g[m].animate(k):(g[m]=c.clipRect(k),l&&a["zone-graph-"+m].clip(g[m]),n&&a["zone-area-"+m].clip(g[m]));J=d.value>r.max}),this.clips=g)},invertGroups:function(a){function b(){u(["group","markerGroup"],function(b){c[b]&&
306
+ (d.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,d=c.chart,h;c.xAxis&&(h=C(d,"resize",b),C(c,"destroy",h),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,d,h){var e=this[a],m=!e;m&&(this[a]=e=this.chart.renderer.g().attr({zIndex:d||.1}).add(h));e.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),
307
+ !0);e.attr({visibility:c})[m?"attr":"animate"](this.getPlotBox());return e},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,h=!!a.animate&&b.renderer.isSVG&&B(d.animation).duration,e=a.visible?"inherit":"hidden",g=d.zIndex,k=a.hasRendered,l=b.seriesGroup,n=b.inverted;c=a.plotGroup("group","series",e,g,l);a.markerGroup=
308
+ a.plotGroup("markerGroup","markers",e,g,l);h&&a.animate(!0);c.inverted=a.isCartesian?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);!1===d.clip||a.sharedClipKey||k||c.clip(b.clipRect);h&&a.animate();k||(a.animationTimeout=w(function(){a.afterAnimate()},h));a.isDirty=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,
309
+ c=this.group,d=this.xAxis,h=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:H(d&&d.left,a.plotLeft),translateY:H(h&&h.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,h=this.chart.inverted;return this.searchKDTree({clientX:h?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:h?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(c,
310
+ d,e){var h,m;if(m=c&&c.length)return h=b.kdAxisArray[d%e],c.sort(function(a,b){return a[h]-b[h]}),m=Math.floor(m/2),{point:c[m],left:a(c.slice(0,m),d+1,e),right:a(c.slice(m+1),d+1,e)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;w(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),c,c);b.buildingKdTree=!1},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,m,k){var l=b.point,n=d.kdAxisArray[m%k],w,f,v=l;f=y(a[h])&&y(l[h])?
311
+ Math.pow(a[h]-l[h],2):null;w=y(a[e])&&y(l[e])?Math.pow(a[e]-l[e],2):null;w=(f||0)+(w||0);l.dist=y(w)?Math.sqrt(w):Number.MAX_VALUE;l.distX=y(f)?Math.sqrt(f):Number.MAX_VALUE;n=a[n]-l[n];w=0>n?"left":"right";f=0>n?"right":"left";b[w]&&(w=c(a,b[w],m+1,k),v=w[g]<v[g]?w:l);b[f]&&Math.sqrt(n*n)<v[g]&&(a=c(a,b[f],m+1,k),v=a[g]<v[g]?a:v);return v}var d=this,h=this.kdAxisArray[0],e=this.kdAxisArray[1],g=b?"distX":"dist";b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||
312
+ this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,b,b)}})})(L);(function(a){function C(a,e,g,f,b){var k=a.chart.inverted;this.axis=a;this.isNegative=g;this.options=e;this.x=f;this.total=null;this.points={};this.stack=b;this.rightCliff=this.leftCliff=0;this.alignOptions={align:e.align||(k?g?"left":"right":"center"),verticalAlign:e.verticalAlign||(k?"middle":g?"bottom":"top"),y:u(e.y,k?4:g?14:-6),x:u(e.x,k?g?-6:6:0)};this.textAlign=e.textAlign||(k?g?"right":"left":"center")}var B=a.Axis,F=a.Chart,
313
+ E=a.correctFloat,q=a.defined,f=a.destroyObjectProperties,t=a.each,p=a.format,y=a.objectEach,u=a.pick;a=a.Series;C.prototype={destroy:function(){f(this,this.axis)},render:function(a){var e=this.options,g=e.format,g=g?p(g,this):e.formatter.call(this);this.label?this.label.attr({text:g,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(g,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,e){var g=this.axis,k=
314
+ g.chart,b=k.inverted,l=g.reversed,l=this.isNegative&&!l||!this.isNegative&&l,d=g.translate(g.usePercentage?100:this.total,0,0,0,1),g=g.translate(0),g=Math.abs(d-g);a=k.xAxis[0].translate(this.x)+a;var f=k.plotHeight,b={x:b?l?d:d-g:a,y:b?f-a-e:l?f-d-g:f-d,width:b?g:e,height:b?e:g};if(e=this.label)e.align(this.alignOptions,null,b),b=e.alignAttr,e[!1===this.options.crop||k.isInsidePlot(b.x,b.y)?"show":"hide"](!0)}};F.prototype.getStacks=function(){var a=this;t(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&
315
+ (a.oldStacks=a.stacks)});t(a.series,function(e){!e.options.stacking||!0!==e.visible&&!1!==a.options.chart.ignoreHiddenSeries||(e.stackKey=e.type+u(e.options.stack,""))})};B.prototype.buildStacks=function(){var a=this.series,e,g=u(this.options.reversedStacks,!0),f=a.length,b;if(!this.isXAxis){this.usePercentage=!1;for(b=f;b--;)a[g?b:f-b-1].setStackedPoints();for(b=f;b--;)e=a[g?b:f-b-1],e.setStackCliffs&&e.setStackCliffs();if(this.usePercentage)for(b=0;b<f;b++)a[b].setPercentStacks()}};B.prototype.renderStackTotals=
316
+ function(){var a=this.chart,e=a.renderer,g=this.stacks,f=this.stackTotalGroup;f||(this.stackTotalGroup=f=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());f.translate(a.plotLeft,a.plotTop);y(g,function(a){y(a,function(a){a.render(f)})})};B.prototype.resetStacks=function(){var a=this,e=a.stacks;a.isXAxis||y(e,function(e){y(e,function(g,b){g.touched<a.stacksTouched?(g.destroy(),delete e[b]):(g.total=null,g.cum=null)})})};B.prototype.cleanStacks=function(){var a;this.isXAxis||(this.oldStacks&&
317
+ (a=this.stacks=this.oldStacks),y(a,function(a){y(a,function(a){a.cum=a.total})}))};a.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var a=this.processedXData,e=this.processedYData,g=[],f=e.length,b=this.options,l=b.threshold,d=b.startFromThreshold?l:0,p=b.stack,b=b.stacking,n=this.stackKey,t="-"+n,r=this.negStacks,J=this.yAxis,c=J.stacks,w=J.oldStacks,K,v,D,m,I,h,z;J.stacksTouched+=1;for(I=0;I<f;I++)h=a[I],z=e[I],
318
+ K=this.getStackIndicator(K,h,this.index),m=K.key,D=(v=r&&z<(d?0:l))?t:n,c[D]||(c[D]={}),c[D][h]||(w[D]&&w[D][h]?(c[D][h]=w[D][h],c[D][h].total=null):c[D][h]=new C(J,J.options.stackLabels,v,h,p)),D=c[D][h],null!==z&&(D.points[m]=D.points[this.index]=[u(D.cum,d)],q(D.cum)||(D.base=m),D.touched=J.stacksTouched,0<K.index&&!1===this.singleStacks&&(D.points[m][0]=D.points[this.index+","+h+",0"][0])),"percent"===b?(v=v?n:t,r&&c[v]&&c[v][h]?(v=c[v][h],D.total=v.total=Math.max(v.total,D.total)+Math.abs(z)||
319
+ 0):D.total=E(D.total+(Math.abs(z)||0))):D.total=E(D.total+(z||0)),D.cum=u(D.cum,d)+(z||0),null!==z&&(D.points[m].push(D.cum),g[I]=D.cum);"percent"===b&&(J.usePercentage=!0);this.stackedYData=g;J.oldStacks={}}};a.prototype.setPercentStacks=function(){var a=this,e=a.stackKey,g=a.yAxis.stacks,f=a.processedXData,b;t([e,"-"+e],function(e){for(var d=f.length,k,l;d--;)if(k=f[d],b=a.getStackIndicator(b,k,a.index,e),k=(l=g[e]&&g[e][k])&&l.points[b.key])l=l.total?100/l.total:0,k[0]=E(k[0]*l),k[1]=E(k[1]*l),
320
+ a.stackedYData[d]=k[1]})};a.prototype.getStackIndicator=function(a,e,g,f){!q(a)||a.x!==e||f&&a.key!==f?a={x:e,index:0,key:f}:a.index++;a.key=[g,e,a.index].join();return a}})(L);(function(a){var C=a.addEvent,B=a.animate,F=a.Axis,E=a.createElement,q=a.css,f=a.defined,t=a.each,p=a.erase,y=a.extend,u=a.fireEvent,k=a.inArray,e=a.isNumber,g=a.isObject,x=a.isArray,b=a.merge,l=a.objectEach,d=a.pick,A=a.Point,n=a.Series,H=a.seriesTypes,r=a.setAnimation,J=a.splat;y(a.Chart.prototype,{addSeries:function(a,b,
321
+ e){var c,g=this;a&&(b=d(b,!0),u(g,"addSeries",{options:a},function(){c=g.initSeries(a);g.isDirtyLegend=!0;g.linkSeries();b&&g.redraw(e)}));return c},addAxis:function(a,e,g,k){var c=e?"xAxis":"yAxis",m=this.options;a=b(a,{index:this[c].length,isX:e});new F(this,a);m[c]=J(m[c]||{});m[c].push(a);d(g,!0)&&this.redraw(k)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,m=function(){d&&q(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};
322
+ d||(b.loadingDiv=d=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=E("span",{className:"highcharts-loading-inner"},null,d),C(b,"redraw",m));d.className="highcharts-loading";b.loadingSpan.innerHTML=a||c.lang.loading;q(d,y(e.style,{zIndex:10}));q(b.loadingSpan,e.labelStyle);b.loadingShown||(q(d,{opacity:0,display:""}),B(d,{opacity:e.style.opacity||.5},{duration:e.showDuration||0}));b.loadingShown=!0;m()},hideLoading:function(){var a=this.options,b=
323
+ this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",B(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){q(b,{display:"none"})}}));this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),
324
+ update:function(a,g){var c=this,n={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},w=a.chart,m,r;if(w){b(!0,c.options.chart,w);"className"in w&&c.setClassName(w.className);if("inverted"in w||"polar"in w)c.propFromSeries(),m=!0;"alignTicks"in w&&(m=!0);l(w,function(a,b){-1!==k("chart."+b,c.propsRequireUpdateSeries)&&(r=!0);-1!==k(b,c.propsRequireDirtyBox)&&(c.isDirtyBox=!0)});"style"in w&&c.renderer.setStyle(w.style)}a.colors&&(this.options.colors=a.colors);a.plotOptions&&b(!0,this.options.plotOptions,
325
+ a.plotOptions);l(a,function(a,b){if(c[b]&&"function"===typeof c[b].update)c[b].update(a,!1);else if("function"===typeof c[n[b]])c[n[b]](a);"chart"!==b&&-1!==k(b,c.propsRequireUpdateSeries)&&(r=!0)});t("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){a[b]&&t(J(a[b]),function(a,d){(d=f(a.id)&&c.get(a.id)||c[b][d])&&d.coll===b&&d.update(a,!1)})});m&&t(c.axes,function(a){a.update({},!1)});r&&t(c.series,function(a){a.update({},!1)});a.loading&&b(!0,c.options.loading,a.loading);m=w&&w.width;
326
+ w=w&&w.height;e(m)&&m!==c.chartWidth||e(w)&&w!==c.chartHeight?c.setSize(m,w):d(g,!0)&&c.redraw()},setSubtitle:function(a){this.setTitle(void 0,a)}});y(A.prototype,{update:function(a,b,e,k){function c(){m.applyOptions(a);null===m.y&&h&&(m.graphic=h.destroy());g(a,!0)&&(h&&h.element&&a&&a.marker&&a.marker.symbol&&(m.graphic=h.destroy()),a&&a.dataLabels&&m.dataLabel&&(m.dataLabel=m.dataLabel.destroy()));f=m.index;l.updateParallelArrays(m,f);w.data[f]=g(w.data[f],!0)||g(a,!0)?m.options:a;l.isDirty=l.isDirtyData=
327
+ !0;!l.fixedBox&&l.hasCartesianSeries&&(n.isDirtyBox=!0);"point"===w.legendType&&(n.isDirtyLegend=!0);b&&n.redraw(e)}var m=this,l=m.series,h=m.graphic,f,n=l.chart,w=l.options;b=d(b,!0);!1===k?c():m.firePointEvent("update",{options:a},c)},remove:function(a,b){this.series.removePoint(k(this,this.series.data),a,b)}});y(n.prototype,{addPoint:function(a,b,e,g){var c=this.options,m=this.data,k=this.chart,h=this.xAxis,h=h&&h.hasNames&&h.names,l=c.data,f,n,w=this.xData,r,v;b=d(b,!0);f={series:this};this.pointClass.prototype.applyOptions.apply(f,
328
+ [a]);v=f.x;r=w.length;if(this.requireSorting&&v<w[r-1])for(n=!0;r&&w[r-1]>v;)r--;this.updateParallelArrays(f,"splice",r,0,0);this.updateParallelArrays(f,r);h&&f.name&&(h[v]=f.name);l.splice(r,0,a);n&&(this.data.splice(r,0,null),this.processData());"point"===c.legendType&&this.generatePoints();e&&(m[0]&&m[0].remove?m[0].remove(!1):(m.shift(),this.updateParallelArrays(f,"shift"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(g)},removePoint:function(a,b,e){var c=this,g=c.data,m=g[a],k=c.points,
329
+ h=c.chart,l=function(){k&&k.length===g.length&&k.splice(a,1);g.splice(a,1);c.options.data.splice(a,1);c.updateParallelArrays(m||{series:c},"splice",a,1);m&&m.destroy();c.isDirty=!0;c.isDirtyData=!0;b&&h.redraw()};r(e,h);b=d(b,!0);m?m.firePointEvent("remove",null,l):l()},remove:function(a,b,e){function c(){g.destroy();m.isDirtyLegend=m.isDirtyBox=!0;m.linkSeries();d(a,!0)&&m.redraw(b)}var g=this,m=g.chart;!1!==e?u(g,"remove",null,c):c()},update:function(a,e){var c=this,g=c.chart,k=c.userOptions,m=
330
+ c.oldType||c.type,l=a.type||k.type||g.options.chart.type,h=H[m].prototype,f=["group","markerGroup","dataLabelsGroup"],n;if(l&&l!==m||void 0!==a.zIndex)f.length=0;t(f,function(a){f[a]=c[a];delete c[a]});a=b(k,{animation:!1,index:c.index,pointStart:c.xData[0]},{data:c.options.data},a);c.remove(!1,null,!1);for(n in h)c[n]=void 0;y(c,H[l||m].prototype);t(f,function(a){c[a]=f[a]});c.init(g,a);c.oldType=m;g.linkSeries();d(e,!0)&&g.redraw(!1)}});y(F.prototype,{update:function(a,e){var c=this.chart;a=c.options[this.coll][this.options.index]=
331
+ b(this.userOptions,a);this.destroy(!0);this.init(c,y(a,{events:void 0}));c.isDirtyBox=!0;d(e,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,e=this.series,g=e.length;g--;)e[g]&&e[g].remove(!1);p(b.axes,this);p(b[c],this);x(b.options[c])?b.options[c].splice(this.options.index,1):delete b.options[c];t(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;d(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},
332
+ b)}})})(L);(function(a){var C=a.color,B=a.each,F=a.map,E=a.pick,q=a.Series,f=a.seriesType;f("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(){var f=[],p=[],q=this.xAxis,u=this.yAxis,k=u.stacks[this.stackKey],e={},g=this.points,x=this.index,b=u.series,l=b.length,d,A=E(u.options.reversedStacks,!0)?1:-1,n;if(this.options.stacking){for(n=0;n<g.length;n++)e[g[n].x]=g[n];a.objectEach(k,function(a,b){null!==a.total&&p.push(b)});p.sort(function(a,b){return a-b});d=F(b,
333
+ function(){return this.visible});B(p,function(a,b){var g=0,c,r;if(e[a]&&!e[a].isNull)f.push(e[a]),B([-1,1],function(g){var f=1===g?"rightNull":"leftNull",w=0,m=k[p[b+g]];if(m)for(n=x;0<=n&&n<l;)c=m.points[n],c||(n===x?e[a][f]=!0:d[n]&&(r=k[a].points[n])&&(w-=r[1]-r[0])),n+=A;e[a][1===g?"rightCliff":"leftCliff"]=w});else{for(n=x;0<=n&&n<l;){if(c=k[a].points[n]){g=c[1];break}n+=A}g=u.translate(g,0,1,0,1);f.push({isNull:!0,plotX:q.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return f},getGraphPath:function(a){var f=
334
+ q.prototype.getGraphPath,t=this.options,u=t.stacking,k=this.yAxis,e,g,x=[],b=[],l=this.index,d,A=k.stacks[this.stackKey],n=t.threshold,H=k.getThreshold(t.threshold),r,t=t.connectNulls||"percent"===u,J=function(c,e,g){var f=a[c];c=u&&A[f.x].points[l];var r=f[g+"Null"]||0;g=f[g+"Cliff"]||0;var m,w,f=!0;g||r?(m=(r?c[0]:c[1])+g,w=c[0]+g,f=!!r):!u&&a[e]&&a[e].isNull&&(m=w=n);void 0!==m&&(b.push({plotX:d,plotY:null===m?H:k.getThreshold(m),isNull:f,isCliff:!0}),x.push({plotX:d,plotY:null===w?H:k.getThreshold(w),
335
+ doCurve:!1}))};a=a||this.points;u&&(a=this.getStackPoints());for(e=0;e<a.length;e++)if(g=a[e].isNull,d=E(a[e].rectPlotX,a[e].plotX),r=E(a[e].yBottom,H),!g||t)t||J(e,e-1,"left"),g&&!u&&t||(b.push(a[e]),x.push({x:e,plotX:d,plotY:r})),t||J(e,e+1,"right");e=f.call(this,b,!0,!0);x.reversed=!0;g=f.call(this,x,!0,!0);g.length&&(g[0]="L");g=e.concat(g);f=f.call(this,b,!1,t);g.xMap=e.xMap;this.areaPath=g;return f},drawGraph:function(){this.areaPath=[];q.prototype.drawGraph.apply(this);var a=this,f=this.areaPath,
336
+ y=this.options,u=[["area","highcharts-area",this.color,y.fillColor]];B(this.zones,function(f,e){u.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+e+" "+f.className,f.color||a.color,f.fillColor||y.fillColor])});B(u,function(k){var e=k[0],g=a[e];g?(g.endX=f.xMap,g.animate({d:f})):(g=a[e]=a.chart.renderer.path(f).addClass(k[1]).attr({fill:E(k[3],C(k[2]).setOpacity(E(y.fillOpacity,.75)).get()),zIndex:0}).add(a.group),g.isArea=!0);g.startX=f.xMap;g.shiftUnit=y.step?2:1})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(L);
337
+ (function(a){var C=a.pick;a=a.seriesType;a("spline","line",{},{getPointSpline:function(a,F,E){var q=F.plotX,f=F.plotY,t=a[E-1];E=a[E+1];var p,y,u,k;if(t&&!t.isNull&&!1!==t.doCurve&&!F.isCliff&&E&&!E.isNull&&!1!==E.doCurve&&!F.isCliff){a=t.plotY;u=E.plotX;E=E.plotY;var e=0;p=(1.5*q+t.plotX)/2.5;y=(1.5*f+a)/2.5;u=(1.5*q+u)/2.5;k=(1.5*f+E)/2.5;u!==p&&(e=(k-y)*(u-q)/(u-p)+f-k);y+=e;k+=e;y>a&&y>f?(y=Math.max(a,f),k=2*f-y):y<a&&y<f&&(y=Math.min(a,f),k=2*f-y);k>E&&k>f?(k=Math.max(E,f),y=2*f-k):k<E&&k<f&&
338
+ (k=Math.min(E,f),y=2*f-k);F.rightContX=u;F.rightContY=k}F=["C",C(t.rightContX,t.plotX),C(t.rightContY,t.plotY),C(p,q),C(y,f),q,f];t.rightContX=t.rightContY=null;return F}})})(L);(function(a){var C=a.seriesTypes.area.prototype,B=a.seriesType;B("areaspline","spline",a.defaultPlotOptions.area,{getStackPoints:C.getStackPoints,getGraphPath:C.getGraphPath,setStackCliffs:C.setStackCliffs,drawGraph:C.drawGraph,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(L);(function(a){var C=a.animObject,B=a.color,
339
+ F=a.each,E=a.extend,q=a.isNumber,f=a.merge,t=a.pick,p=a.Series,y=a.seriesType,u=a.svg;y("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1,shadow:!1},select:{color:"#cccccc",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,
340
+ directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){p.prototype.init.apply(this,arguments);var a=this,e=a.chart;e.hasRendered&&F(e.series,function(e){e.type===a.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var a=this,e=a.options,g=a.xAxis,f=a.yAxis,b=g.reversed,l,d={},p=0;!1===e.grouping?p=1:F(a.chart.series,function(b){var c=b.options,e=b.yAxis,g;b.type===a.type&&b.visible&&f.len===e.len&&f.pos===e.pos&&(c.stacking?(l=b.stackKey,void 0===d[l]&&(d[l]=p++),
341
+ g=d[l]):!1!==c.grouping&&(g=p++),b.columnIndex=g)});var n=Math.min(Math.abs(g.transA)*(g.ordinalSlope||e.pointRange||g.closestPointRange||g.tickInterval||1),g.len),q=n*e.groupPadding,r=(n-2*q)/(p||1),e=Math.min(e.maxPointWidth||g.len,t(e.pointWidth,r*(1-2*e.pointPadding)));a.columnMetrics={width:e,offset:(r-e)/2+(q+((a.columnIndex||0)+(b?1:0))*r-n/2)*(b?-1:1)};return a.columnMetrics},crispCol:function(a,e,g,f){var b=this.chart,l=this.borderWidth,d=-(l%2?.5:0),l=l%2?.5:1;b.inverted&&b.renderer.isVML&&
342
+ (l+=1);this.options.crisp&&(g=Math.round(a+g)+d,a=Math.round(a)+d,g-=a);f=Math.round(e+f)+l;d=.5>=Math.abs(e)&&.5<f;e=Math.round(e)+l;f-=e;d&&f&&(--e,f+=1);return{x:a,y:e,width:g,height:f}},translate:function(){var a=this,e=a.chart,g=a.options,f=a.dense=2>a.closestPointRange*a.xAxis.transA,f=a.borderWidth=t(g.borderWidth,f?0:1),b=a.yAxis,l=a.translatedThreshold=b.getThreshold(g.threshold),d=t(g.minPointLength,5),q=a.getColumnMetrics(),n=q.width,u=a.barW=Math.max(n,1+2*f),r=a.pointXOffset=q.offset;
343
+ e.inverted&&(l-=.5);g.pointPadding&&(u=Math.ceil(u));p.prototype.translate.apply(a);F(a.points,function(g){var c=t(g.yBottom,l),f=999+Math.abs(c),f=Math.min(Math.max(-f,g.plotY),b.len+f),k=g.plotX+r,v=u,x=Math.min(f,c),m,p=Math.max(f,c)-x;Math.abs(p)<d&&d&&(p=d,m=!b.reversed&&!g.negative||b.reversed&&g.negative,x=Math.abs(x-l)>d?c-d:l-(m?d:0));g.barX=k;g.pointWidth=n;g.tooltipPos=e.inverted?[b.len+b.pos-e.plotLeft-f,a.xAxis.len-k-v/2,p]:[k+v/2,f+b.pos-e.plotTop,p];g.shapeType="rect";g.shapeArgs=a.crispCol.apply(a,
344
+ g.isNull?[k,l,v,0]:[k,x,v,p])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(a,e){var g=this.options,k,b=this.pointAttrToOptions||{};k=b.stroke||"borderColor";var l=b["stroke-width"]||"borderWidth",d=a&&a.color||this.color,p=a[k]||g[k]||this.color||d,n=a[l]||g[l]||this[l]||0,b=g.dashStyle;a&&this.zones.length&&(d=a.getZone(),d=a.options.color||d&&d.color||this.color);
345
+ e&&(a=f(g.states[e],a.options.states&&a.options.states[e]||{}),e=a.brightness,d=a.color||void 0!==e&&B(d).brighten(a.brightness).get()||d,p=a[k]||p,n=a[l]||n,b=a.dashStyle||b);k={fill:d,stroke:p,"stroke-width":n};g.borderRadius&&(k.r=g.borderRadius);b&&(k.dashstyle=b);return k},drawPoints:function(){var a=this,e=this.chart,g=a.options,x=e.renderer,b=g.animationLimit||250,l;F(a.points,function(d){var k=d.graphic;if(q(d.plotY)&&null!==d.y){l=d.shapeArgs;if(k)k[e.pointCount<b?"animate":"attr"](f(l));
346
+ else d.graphic=k=x[d.shapeType](l).add(d.group||a.group);k.attr(a.pointAttribs(d,d.selected&&"select")).shadow(g.shadow,null,g.stacking&&!g.borderRadius);k.addClass(d.getClassName(),!0)}else k&&(d.graphic=k.destroy())})},animate:function(a){var e=this,g=this.yAxis,f=e.options,b=this.chart.inverted,l={};u&&(a?(l.scaleY=.001,a=Math.min(g.pos+g.len,Math.max(g.pos,g.toPixels(f.threshold))),b?l.translateX=a-g.len:l.translateY=a,e.group.attr(l)):(l[b?"translateX":"translateY"]=g.pos,e.group.animate(l,E(C(e.options.animation),
347
+ {step:function(a,b){e.group.attr({scaleY:Math.max(.001,b.pos)})}})),e.animate=null))},remove:function(){var a=this,e=a.chart;e.hasRendered&&F(e.series,function(e){e.type===a.type&&(e.isDirty=!0)});p.prototype.remove.apply(a,arguments)}})})(L);(function(a){a=a.seriesType;a("bar","column",null,{inverted:!0})})(L);(function(a){var C=a.Series;a=a.seriesType;a("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cspan style\x3d"font-size: 0.85em"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e',
348
+ pointFormat:"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&C.prototype.drawGraph.call(this)}})})(L);(function(a){var C=a.pick,B=a.relativeLength;a.CenteredSeriesMixin={getCenter:function(){var a=this.options,E=this.chart,q=2*(a.slicedOffset||0),f=E.plotWidth-2*q,E=E.plotHeight-2*q,t=a.center,
349
+ t=[C(t[0],"50%"),C(t[1],"50%"),a.size||"100%",a.innerSize||0],p=Math.min(f,E),y,u;for(y=0;4>y;++y)u=t[y],a=2>y||2===y&&/%$/.test(u),t[y]=B(u,[f,E,p,t[2]][y])+(a?q:0);t[3]>t[2]&&(t[3]=t[2]);return t}}})(L);(function(a){var C=a.addEvent,B=a.defined,F=a.each,E=a.extend,q=a.inArray,f=a.noop,t=a.pick,p=a.Point,y=a.Series,u=a.seriesType,k=a.setAnimation;u("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},
350
+ x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var e=this,f=e.points,b=e.startAngleRad;a||(F(f,function(a){var d=a.graphic,g=a.shapeArgs;
351
+ d&&(d.attr({r:a.startR||e.center[3]/2,start:b,end:b}),d.animate({r:g.r,start:g.start,end:g.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var a,g=0,f=this.points,b=f.length,l,d=this.options.ignoreHiddenPoint;for(a=0;a<b;a++)l=f[a],g+=d&&!l.visible?0:l.isNull?0:l.y;this.total=g;for(a=0;a<b;a++)l=f[a],l.percentage=0<g&&(l.visible||!d)?l.y/g*100:0,l.total=g},generatePoints:function(){y.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();
352
+ var e=0,f=this.options,b=f.slicedOffset,l=b+(f.borderWidth||0),d,k,n,p=f.startAngle||0,r=this.startAngleRad=Math.PI/180*(p-90),p=(this.endAngleRad=Math.PI/180*(t(f.endAngle,p+360)-90))-r,q=this.points,c,w=f.dataLabels.distance,f=f.ignoreHiddenPoint,u,v=q.length,D;a||(this.center=a=this.getCenter());this.getX=function(b,c,d){n=Math.asin(Math.min((b-a[1])/(a[2]/2+d.labelDistance),1));return a[0]+(c?-1:1)*Math.cos(n)*(a[2]/2+d.labelDistance)};for(u=0;u<v;u++){D=q[u];D.labelDistance=t(D.options.dataLabels&&
353
+ D.options.dataLabels.distance,w);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,D.labelDistance);d=r+e*p;if(!f||D.visible)e+=D.percentage/100;k=r+e*p;D.shapeType="arc";D.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*d)/1E3,end:Math.round(1E3*k)/1E3};n=(k+d)/2;n>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI);D.slicedTranslation={translateX:Math.round(Math.cos(n)*b),translateY:Math.round(Math.sin(n)*b)};k=Math.cos(n)*a[2]/2;c=Math.sin(n)*a[2]/2;D.tooltipPos=[a[0]+
354
+ .7*k,a[1]+.7*c];D.half=n<-Math.PI/2||n>Math.PI/2?1:0;D.angle=n;d=Math.min(l,D.labelDistance/5);D.labelPos=[a[0]+k+Math.cos(n)*D.labelDistance,a[1]+c+Math.sin(n)*D.labelDistance,a[0]+k+Math.cos(n)*d,a[1]+c+Math.sin(n)*d,a[0]+k,a[1]+c,0>D.labelDistance?"center":D.half?"right":"left",n]}},drawGraph:null,drawPoints:function(){var a=this,g=a.chart.renderer,f,b,l,d,k=a.options.shadow;k&&!a.shadowGroup&&(a.shadowGroup=g.g("shadow").add(a.group));F(a.points,function(e){if(!e.isNull){b=e.graphic;d=e.shapeArgs;
355
+ f=e.getTranslate();var n=e.shadowGroup;k&&!n&&(n=e.shadowGroup=g.g("shadow").add(a.shadowGroup));n&&n.attr(f);l=a.pointAttribs(e,e.selected&&"select");b?b.setRadialReference(a.center).attr(l).animate(E(d,f)):(e.graphic=b=g[e.shapeType](d).setRadialReference(a.center).attr(f).add(a.group),e.visible||b.attr({visibility:"hidden"}),b.attr(l).attr({"stroke-linejoin":"round"}).shadow(k,n));b.addClass(e.getClassName())}})},searchPoint:f,sortByAngle:function(a,g){a.sort(function(a,b){return void 0!==a.angle&&
356
+ (b.angle-a.angle)*g})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:a.CenteredSeriesMixin.getCenter,getSymbol:f},{init:function(){p.prototype.init.apply(this,arguments);var a=this,g;a.name=t(a.name,"Slice");g=function(e){a.slice("select"===e.type)};C(a,"select",g);C(a,"unselect",g);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,g){var e=this,b=e.series,f=b.chart,d=b.options.ignoreHiddenPoint;g=t(g,d);a!==e.visible&&(e.visible=e.options.visible=
357
+ a=void 0===a?!e.visible:a,b.options.data[q(e,b.data)]=e.options,F(["graphic","dataLabel","connector","shadowGroup"],function(b){if(e[b])e[b][a?"show":"hide"](!0)}),e.legendItem&&f.legend.colorizeItem(e,a),a||"hover"!==e.state||e.setState(""),d&&(b.isDirty=!0),g&&f.redraw())},slice:function(a,g,f){var b=this.series;k(f,b.chart);t(g,!0);this.sliced=this.options.sliced=B(a)?a:!this.sliced;b.options.data[q(this,b.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},
358
+ getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+a,e.r+a,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}})})(L);(function(a){var C=a.addEvent,B=a.arrayMax,F=a.defined,E=a.each,q=a.extend,f=a.format,t=a.map,p=a.merge,y=a.noop,u=a.pick,k=a.relativeLength,e=a.Series,g=a.seriesTypes,x=a.stableSort;a.distribute=function(a,e){function b(a,
359
+ b){return a.target-b.target}var g,f=!0,l=a,k=[],p;p=0;for(g=a.length;g--;)p+=a[g].size;if(p>e){x(a,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=g=0;p<=e;)p+=a[g].size,g++;k=a.splice(g-1,a.length)}x(a,b);for(a=t(a,function(a){return{size:a.size,targets:[a.target]}});f;){for(g=a.length;g--;)f=a[g],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size/2),e-f.size);g=a.length;for(f=!1;g--;)0<g&&a[g-1].pos+a[g-1].size>a[g].pos&&(a[g-1].size+=a[g].size,
360
+ a[g-1].targets=a[g-1].targets.concat(a[g].targets),a[g-1].pos+a[g-1].size>e&&(a[g-1].pos=e-a[g-1].size),a.splice(g,1),f=!0)}g=0;E(a,function(a){var b=0;E(a.targets,function(){l[g].pos=a.pos+b;b+=l[g].size;g++})});l.push.apply(l,k);x(l,b)};e.prototype.drawDataLabels=function(){var b=this,e=b.options,d=e.dataLabels,g=b.points,k,q,r=b.hasRendered||0,x,c,w=u(d.defer,!0),t=b.chart.renderer;if(d.enabled||b._hasPointLabels)b.dlProcessOptions&&b.dlProcessOptions(d),c=b.plotGroup("dataLabelsGroup","data-labels",
361
+ w&&!r?"hidden":"visible",d.zIndex||6),w&&(c.attr({opacity:+r}),r||C(b,"afterAnimate",function(){b.visible&&c.show(!0);c[e.animation?"animate":"attr"]({opacity:1},{duration:200})})),q=d,E(g,function(g){var l,m=g.dataLabel,n,h,r=g.connector,w=!m,v;k=g.dlOptions||g.options&&g.options.dataLabels;if(l=u(k&&k.enabled,q.enabled)&&null!==g.y)d=p(q,k),n=g.getLabelConfig(),x=d.format?f(d.format,n):d.formatter.call(n,d),v=d.style,n=d.rotation,v.color=u(d.color,v.color,b.color,"#000000"),"contrast"===v.color&&
362
+ (g.contrastColor=t.getContrast(g.color||b.color),v.color=d.inside||0>u(g.labelDistance,d.distance)||e.stacking?g.contrastColor:"#000000"),e.cursor&&(v.cursor=e.cursor),h={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:n,padding:d.padding,zIndex:1},a.objectEach(h,function(a,b){void 0===a&&delete h[b]});!m||l&&F(x)?l&&F(x)&&(m?h.text=x:(m=g.dataLabel=t[n?"text":"label"](x,0,-9999,d.shape,null,null,d.useHTML,null,"data-label"),m.addClass("highcharts-data-label-color-"+
363
+ g.colorIndex+" "+(d.className||"")+(d.useHTML?"highcharts-tracker":""))),m.attr(h),m.css(v).shadow(d.shadow),m.added||m.add(c),b.alignDataLabel(g,m,d,null,w)):(g.dataLabel=m=m.destroy(),r&&(g.connector=r.destroy()))})};e.prototype.alignDataLabel=function(a,e,d,g,f){var b=this.chart,l=b.inverted,k=u(a.plotX,-9999),c=u(a.plotY,-9999),n=e.getBBox(),p,v=d.rotation,x=d.align,m=this.visible&&(a.series.forceDL||b.isInsidePlot(k,Math.round(c),l)||g&&b.isInsidePlot(k,l?g.x+1:g.y+g.height-1,l)),t="justify"===
364
+ u(d.overflow,"justify");if(m&&(p=d.style.fontSize,p=b.renderer.fontMetrics(p,e).b,g=q({x:l?b.plotWidth-c:k,y:Math.round(l?b.plotHeight-k:c),width:0,height:0},g),q(d,{width:n.width,height:n.height}),v?(t=!1,k=b.renderer.rotCorr(p,v),k={x:g.x+d.x+g.width/2+k.x,y:g.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*g.height},e[f?"attr":"animate"](k).attr({align:x}),c=(v+720)%360,c=180<c&&360>c,"left"===x?k.y-=c?n.height:0:"center"===x?(k.x-=n.width/2,k.y-=n.height/2):"right"===x&&(k.x-=n.width,k.y-=c?
365
+ 0:n.height)):(e.align(d,null,g),k=e.alignAttr),t?a.isLabelJustified=this.justifyDataLabel(e,d,k,n,g,f):u(d.crop,!0)&&(m=b.isInsidePlot(k.x,k.y)&&b.isInsidePlot(k.x+n.width,k.y+n.height)),d.shape&&!v))e[f?"attr":"animate"]({anchorX:l?b.plotWidth-a.plotY:a.plotX,anchorY:l?b.plotHeight-a.plotX:a.plotY});m||(e.attr({y:-9999}),e.placed=!1)};e.prototype.justifyDataLabel=function(a,e,d,g,f,k){var b=this.chart,l=e.align,c=e.verticalAlign,n,p,v=a.box?0:a.padding||0;n=d.x+v;0>n&&("right"===l?e.align="left":
366
+ e.x=-n,p=!0);n=d.x+g.width-v;n>b.plotWidth&&("left"===l?e.align="right":e.x=b.plotWidth-n,p=!0);n=d.y+v;0>n&&("bottom"===c?e.verticalAlign="top":e.y=-n,p=!0);n=d.y+g.height-v;n>b.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=b.plotHeight-n,p=!0);p&&(a.placed=!k,a.align(e,null,f));return p};g.pie&&(g.pie.prototype.drawDataLabels=function(){var b=this,g=b.data,d,f=b.chart,k=b.options.dataLabels,p=u(k.connectorPadding,10),r=u(k.connectorWidth,1),x=f.plotWidth,c=f.plotHeight,w,q=b.center,v=q[2]/
367
+ 2,t=q[1],m,I,h,z,y=[[],[]],M,C,N,O,G=[0,0,0,0];b.visible&&(k.enabled||b._hasPointLabels)&&(E(g,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),e.prototype.drawDataLabels.apply(b),E(g,function(a){a.dataLabel&&a.visible&&(y[a.half].push(a),a.dataLabel._pos=null)}),E(y,function(e,g){var l,n,r=e.length,w=[],u;if(r)for(b.sortByAngle(e,g-.5),0<b.maxLabelDistance&&(l=Math.max(0,t-v-b.maxLabelDistance),
368
+ n=Math.min(t+v+b.maxLabelDistance,f.plotHeight),E(e,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,t-v-a.labelDistance),a.bottom=Math.min(t+v+a.labelDistance,f.plotHeight),u=a.dataLabel.getBBox().height||21,a.positionsIndex=w.push({target:a.labelPos[1]-a.top+u/2,size:u,rank:a.y})-1)}),a.distribute(w,n+u-l)),O=0;O<r;O++)d=e[O],n=d.positionsIndex,h=d.labelPos,m=d.dataLabel,N=!1===d.visible?"hidden":"inherit",l=h[1],w&&F(w[n])?void 0===w[n].pos?N="hidden":(z=w[n].size,C=d.top+w[n].pos):
369
+ C=l,delete d.positionIndex,M=k.justify?q[0]+(g?-1:1)*(v+d.labelDistance):b.getX(C<d.top+2||C>d.bottom-2?l:C,g,d),m._attr={visibility:N,align:h[6]},m._pos={x:M+k.x+({left:p,right:-p}[h[6]]||0),y:C+k.y-10},h.x=M,h.y=C,null===b.options.size&&(I=m.getBBox().width,l=null,M-I<p?(l=Math.round(I-M+p),G[3]=Math.max(l,G[3])):M+I>x-p&&(l=Math.round(M+I-x+p),G[1]=Math.max(l,G[1])),0>C-z/2?G[0]=Math.max(Math.round(-C+z/2),G[0]):C+z/2>c&&(G[2]=Math.max(Math.round(C+z/2-c),G[2])),m.sideOverflow=l)}),0===B(G)||this.verifyDataLabelOverflow(G))&&
370
+ (this.placeDataLabels(),r&&E(this.points,function(a){var c;w=a.connector;if((m=a.dataLabel)&&m._pos&&a.visible&&0<a.labelDistance){N=m._attr.visibility;if(c=!w)a.connector=w=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+a.colorIndex).add(b.dataLabelsGroup),w.attr({"stroke-width":r,stroke:k.connectorColor||a.color||"#666666"});w[c?"attr":"animate"]({d:b.connectorPath(a.labelPos)});w.attr("visibility",N)}else w&&(a.connector=w.destroy())}))},g.pie.prototype.connectorPath=
371
+ function(a){var b=a.x,d=a.y;return u(this.options.dataLabels.softConnector,!0)?["M",b+("left"===a[6]?5:-5),d,"C",b,d,2*a[2]-a[4],2*a[3]-a[5],a[2],a[3],"L",a[4],a[5]]:["M",b+("left"===a[6]?5:-5),d,"L",a[2],a[3],"L",a[4],a[5]]},g.pie.prototype.placeDataLabels=function(){E(this.points,function(a){var b=a.dataLabel;b&&a.visible&&((a=b._pos)?(b.sideOverflow&&(b._attr.width=b.getBBox().width-b.sideOverflow,b.css({width:b._attr.width+"px",textOverflow:"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?
372
+ "animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))},this)},g.pie.prototype.alignDataLabel=y,g.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,d=this.options,e=d.center,g=d.minSize||80,f,r;null!==e[0]?f=Math.max(b[2]-Math.max(a[1],a[3]),g):(f=Math.max(b[2]-a[1]-a[3],g),b[0]+=(a[3]-a[1])/2);null!==e[1]?f=Math.max(Math.min(f,b[2]-Math.max(a[0],a[2])),g):(f=Math.max(Math.min(f,b[2]-a[0]-a[2]),g),b[1]+=(a[0]-a[2])/2);f<b[2]?(b[2]=f,b[3]=Math.min(k(d.innerSize||0,f),f),this.translate(b),
373
+ this.drawDataLabels&&this.drawDataLabels()):r=!0;return r});g.column&&(g.column.prototype.alignDataLabel=function(a,g,d,f,k){var b=this.chart.inverted,n=a.series,l=a.dlBox||a.shapeArgs,c=u(a.below,a.plotY>u(this.translatedThreshold,n.yAxis.len)),w=u(d.inside,!!this.options.stacking);l&&(f=p(l),0>f.y&&(f.height+=f.y,f.y=0),l=f.y+f.height-n.yAxis.len,0<l&&(f.height-=l),b&&(f={x:n.yAxis.len-f.y-f.height,y:n.xAxis.len-f.x-f.width,width:f.height,height:f.width}),w||(b?(f.x+=c?0:f.width,f.width=0):(f.y+=
374
+ c?f.height:0,f.height=0)));d.align=u(d.align,!b||w?"center":c?"right":"left");d.verticalAlign=u(d.verticalAlign,b||w?"middle":c?"top":"bottom");e.prototype.alignDataLabel.call(this,a,g,d,f,k);a.isLabelJustified&&a.contrastColor&&a.dataLabel.css({color:a.contrastColor})})})(L);(function(a){var C=a.Chart,B=a.each,F=a.pick,E=a.addEvent;C.prototype.callbacks.push(function(a){function f(){var f=[];B(a.series||[],function(a){var p=a.options.dataLabels,q=a.dataLabelCollections||["dataLabel"];(p.enabled||
375
+ a._hasPointLabels)&&!p.allowOverlap&&a.visible&&B(q,function(k){B(a.points,function(a){a[k]&&(a[k].labelrank=F(a.labelrank,a.shapeArgs&&a.shapeArgs.height),f.push(a[k]))})})});a.hideOverlappingLabels(f)}f();E(a,"redraw",f)});C.prototype.hideOverlappingLabels=function(a){var f=a.length,q,p,y,u,k,e,g,x,b,l=function(a,b,e,g,f,k,c,l){return!(f>a+e||f+c<a||k>b+g||k+l<b)};for(p=0;p<f;p++)if(q=a[p])q.oldOpacity=q.opacity,q.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(p=
376
+ 0;p<f;p++)for(y=a[p],q=p+1;q<f;++q)if(u=a[q],y&&u&&y!==u&&y.placed&&u.placed&&0!==y.newOpacity&&0!==u.newOpacity&&(k=y.alignAttr,e=u.alignAttr,g=y.parentGroup,x=u.parentGroup,b=2*(y.box?0:y.padding),k=l(k.x+g.translateX,k.y+g.translateY,y.width-b,y.height-b,e.x+x.translateX,e.y+x.translateY,u.width-b,u.height-b)))(y.labelrank<u.labelrank?y:u).newOpacity=0;B(a,function(a){var b,d;a&&(d=a.newOpacity,a.oldOpacity!==d&&a.placed&&(d?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=d,a[a.isOld?"animate":
377
+ "attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(L);(function(a){var C=a.addEvent,B=a.Chart,F=a.createElement,E=a.css,q=a.defaultOptions,f=a.defaultPlotOptions,t=a.each,p=a.extend,y=a.fireEvent,u=a.hasTouch,k=a.inArray,e=a.isObject,g=a.Legend,x=a.merge,b=a.pick,l=a.Point,d=a.Series,A=a.seriesTypes,n=a.svg,H;H=a.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart.pointer,c=function(a){var c=b.getPointFromEvent(a);if(void 0!==c)c.onMouseOver(a)};t(a.points,function(a){a.graphic&&(a.graphic.element.point=
378
+ a);a.dataLabel&&(a.dataLabel.div?a.dataLabel.div.point=a:a.dataLabel.element.point=a)});a._hasTracking||(t(a.trackerGroups,function(d){if(a[d]){a[d].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){b.onTrackerMouseOut(a)});if(u)a[d].on("touchstart",c);a.options.cursor&&a[d].css(E).css({cursor:a.options.cursor})}}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,g=a.chart,f=g.pointer,m=
379
+ g.renderer,k=g.options.tooltip.snap,h=a.tracker,l,p=function(){if(g.hoverSeries!==a)a.onMouseOver()},x="rgba(192,192,192,"+(n?.0001:.002)+")";if(e&&!c)for(l=e+1;l--;)"M"===d[l]&&d.splice(l+1,0,d[l+1]-k,d[l+2],"L"),(l&&"M"===d[l]||l===e)&&d.splice(l,0,"L",d[l-2]+k,d[l-1]);h?h.attr({d:d}):a.graph&&(a.tracker=m.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:x,fill:c?x:"none","stroke-width":a.graph.strokeWidth()+(c?0:2*k),zIndex:2}).add(a.group),t([a.tracker,a.markerGroup],
380
+ function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(a){f.onTrackerMouseOut(a)});b.cursor&&a.css({cursor:b.cursor});if(u)a.on("touchstart",p)}))}};A.column&&(A.column.prototype.drawTracker=H.drawTrackerPoint);A.pie&&(A.pie.prototype.drawTracker=H.drawTrackerPoint);A.scatter&&(A.scatter.prototype.drawTracker=H.drawTrackerPoint);p(g.prototype,{setItemEvents:function(a,b,c){var d=this,e=d.chart.renderer.boxWrapper,g="highcharts-legend-"+(a.series?"point":"series")+"-active";
381
+ (c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");e.addClass(g);b.css(d.options.itemHoverStyle)}).on("mouseout",function(){b.css(x(a.visible?d.itemStyle:d.itemHiddenStyle));e.removeClass(g);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):y(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=F("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},
382
+ this.options.itemCheckboxStyle,this.chart.container);C(a.checkbox,"click",function(b){y(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});q.legend.itemStyle.cursor="pointer";p(B.prototype,{showResetZoom:function(){var a=this,b=q.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,g="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}).addClass("highcharts-reset-zoom").add().align(c.position,
383
+ !1,g)},zoomOut:function(){var a=this;y(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var d,c=this.pointer,g=!1,f;!a||a.resetSelection?t(this.axes,function(a){d=a.zoom()}):t(a.xAxis.concat(a.yAxis),function(a){var b=a.axis;c[b.isXAxis?"zoomX":"zoomY"]&&(d=b.zoom(a.min,a.max),b.displayBtn&&(g=!0))});f=this.resetZoomButton;g&&!f?this.showResetZoom():!g&&e(f)&&(this.resetZoomButton=f.destroy());d&&this.redraw(b(this.options.chart.animation,a&&a.animation,100>this.pointCount))},
384
+ pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&t(d,function(a){a.setState()});t("xy"===b?[1,0]:[1],function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,g=a[d?"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",f=c[d],h=(b.pointRange||0)/2,k=b.getExtremes(),l=b.toValue(f-g,!0)+h,h=b.toValue(f+b.len-g,!0)-h,n=h<l,f=n?h:l,l=n?l:h,h=Math.min(k.dataMin,b.toValue(b.toPixels(k.min)-b.minPixelPadding)),n=Math.max(k.dataMax,b.toValue(b.toPixels(k.max)+b.minPixelPadding)),r;r=h-f;0<r&&(l+=r,f=h);r=l-n;0<r&&
385
+ (l=n,f-=r);b.series.length&&f!==k.min&&l!==k.max&&(b.setExtremes(f,l,!1,!1,{trigger:"pan"}),e=!0);c[d]=g});e&&c.redraw(!1);E(c.container,{cursor:"move"})}});p(l.prototype,{select:function(a,d){var c=this,e=c.series,g=e.chart;a=b(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:d},function(){c.selected=c.options.selected=a;e.options.data[k(c,e.data)]=c.options;c.setState(a&&"select");d||t(g.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,e.options.data[k(a,
386
+ e.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series.chart.pointer;this.firePointEvent("mouseOver");b.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");t(a.hoverPoints||[],function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,d=x(b.series.options.point,b.options).events;b.events=d;a.objectEach(d,function(a,d){C(b,d,a)});
387
+ this.hasImportedEvents=!0}},setState:function(a,d){var c=Math.floor(this.plotX),e=this.plotY,g=this.series,k=g.options.states[a]||{},l=f[g.type].marker&&g.options.marker,m=l&&!1===l.enabled,n=l&&l.states&&l.states[a]||{},h=!1===n.enabled,r=g.stateMarkerGraphic,x=this.marker||{},q=g.chart,u=g.halo,t,y=l&&g.markerAttribs;a=a||"";if(!(a===this.state&&!d||this.selected&&"select"!==a||!1===k.enabled||a&&(h||m&&!1===n.enabled)||a&&x.states&&x.states[a]&&!1===x.states[a].enabled)){y&&(t=g.markerAttribs(this,
388
+ a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+this.state),a&&this.graphic.addClass("highcharts-point-"+a),this.graphic.attr(g.pointAttribs(this,a)),t&&this.graphic.animate(t,b(q.options.chart.animation,n.animation,l.animation)),r&&r.hide();else{if(a&&n){l=x.symbol||g.symbol;r&&r.currentSymbol!==l&&(r=r.destroy());if(r)r[d?"animate":"attr"]({x:t.x,y:t.y});else l&&(g.stateMarkerGraphic=r=q.renderer.symbol(l,t.x,t.y,t.width,t.height).add(g.markerGroup),r.currentSymbol=
389
+ l);r&&r.attr(g.pointAttribs(this,a))}r&&(r[a&&q.isInsidePlot(c,e,q.inverted)?"show":"hide"](),r.element.point=this)}(c=k.halo)&&c.size?(u||(g.halo=u=q.renderer.path().add(y?g.markerGroup:g.group)),u[d?"animate":"attr"]({d:this.haloPath(c.size)}),u.attr({"class":"highcharts-halo highcharts-color-"+b(this.colorIndex,g.colorIndex)}),u.point=this,u.attr(p({fill:this.color||g.color,"fill-opacity":c.opacity,zIndex:-1},c.attributes))):u&&u.point&&u.point.haloPath&&u.animate({d:u.point.haloPath(0)});this.state=
390
+ a}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});p(d.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&y(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&&y(this,"mouseOut");!c||this.stickyTracking||
391
+ c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var d=this,c=d.options,e=d.graph,g=c.states,f=c.lineWidth,c=0;a=a||"";if(d.state!==a&&(t([d.group,d.markerGroup,d.dataLabelsGroup],function(b){b&&(d.state&&b.removeClass("highcharts-series-"+d.state),a&&b.addClass("highcharts-series-"+a))}),d.state=a,!g[a]||!1!==g[a].enabled)&&(a&&(f=g[a].lineWidth||f+(g[a].lineWidthPlus||0)),e&&!e.dashstyle))for(f={"stroke-width":f},e.animate(f,b(d.chart.options.chart.animation,g[a]&&
392
+ g[a].animation));d["zone-graph-"+c];)d["zone-graph-"+c].attr(f),c+=1},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,g,f=d.options.chart.ignoreHiddenSeries,m=c.visible;g=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!m:a)?"show":"hide";t(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(a){if(c[a])c[a][g]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&t(d.series,
393
+ function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});t(c.linkedSeries,function(b){b.setVisible(a,!1)});f&&(d.isDirtyBox=!0);!1!==b&&d.redraw();y(c,g)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);y(this,a?"select":"unselect")},drawTracker:H.drawTrackerGraph})})(L);(function(a){var C=a.Chart,B=a.each,F=a.inArray,E=a.isArray,q=a.isObject,f=a.pick,t=a.splat;C.prototype.setResponsive=
394
+ function(f){var p=this.options.responsive,q=[],k=this.currentResponsive;p&&p.rules&&B(p.rules,function(e){void 0===e._id&&(e._id=a.uniqueKey());this.matchResponsiveRule(e,q,f)},this);var e=a.merge.apply(0,a.map(q,function(e){return a.find(p.rules,function(a){return a._id===e}).chartOptions})),q=q.toString()||void 0;q!==(k&&k.ruleIds)&&(k&&this.update(k.undoOptions,f),q?(this.currentResponsive={ruleIds:q,mergedOptions:e,undoOptions:this.currentOptions(e)},this.update(e,f)):this.currentResponsive=void 0)};
395
+ C.prototype.matchResponsiveRule=function(a,q){var p=a.condition;(p.callback||function(){return this.chartWidth<=f(p.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=f(p.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=f(p.minWidth,0)&&this.chartHeight>=f(p.minHeight,0)}).call(this)&&q.push(a._id)};C.prototype.currentOptions=function(f){function p(f,e,g,x){var b;a.objectEach(f,function(a,d){if(!x&&-1<F(d,["series","xAxis","yAxis"]))for(f[d]=t(f[d]),g[d]=[],b=0;b<f[d].length;b++)e[d][b]&&(g[d][b]={},p(a[b],
396
+ e[d][b],g[d][b],x+1));else q(a)?(g[d]=E(a)?[]:{},p(a,e[d]||{},g[d],x+1)):g[d]=e[d]||null})}var u={};p(f,this.options,u,0);return u}})(L);(function(a){var C=a.addEvent,B=a.Axis,F=a.Chart,E=a.css,q=a.dateFormat,f=a.defined,t=a.each,p=a.extend,y=a.noop,u=a.timeUnits,k=a.wrap;k(a.Series.prototype,"init",function(a){var e;a.apply(this,Array.prototype.slice.call(arguments,1));(e=this.xAxis)&&e.options.ordinal&&C(this,"updatedData",function(){delete e.ordinalIndex})});k(B.prototype,"getTimeTicks",function(a,
397
+ g,k,b,l,d,p,n){var e=0,r,x,c={},w,t,v,D=[],m=-Number.MAX_VALUE,I=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||!d||3>d.length||void 0===k)return a.call(this,g,k,b,l);t=d.length;for(r=0;r<t;r++){v=r&&d[r-1]>b;d[r]<k&&(e=r);if(r===t-1||d[r+1]-d[r]>5*p||v){if(d[r]>m){for(x=a.call(this,g,d[e],d[r],l);x.length&&x[0]<=m;)x.shift();x.length&&(m=x[x.length-1]);D=D.concat(x)}e=r+1}if(v)break}a=x.info;if(n&&a.unitRange<=u.hour){r=D.length-1;for(e=1;e<r;e++)q("%d",D[e])!==q("%d",
398
+ D[e-1])&&(c[D[e]]="day",w=!0);w&&(c[D[0]]="day");a.higherRanks=c}D.info=a;if(n&&f(I)){n=a=D.length;r=[];var h;for(w=[];n--;)e=this.translate(D[n]),h&&(w[n]=h-e),r[n]=h=e;w.sort();w=w[Math.floor(w.length/2)];w<.6*I&&(w=null);n=D[a-1]>b?a-1:a;for(h=void 0;n--;)e=r[n],b=Math.abs(h-e),h&&b<.8*I&&(null===w||b<.8*w)?(c[D[n]]&&!c[D[n+1]]?(b=n+1,h=e):b=n,D.splice(b,1)):h=e}return D});p(B.prototype,{beforeSetTickPositions:function(){var a,g=[],f=!1,b,k=this.getExtremes(),d=k.min,p=k.max,n,q=this.isXAxis&&
399
+ !!this.options.breaks,k=this.options.ordinal,r=this.chart.options.chart.ignoreHiddenSeries;if(k||q){t(this.series,function(b,c){if(!(r&&!1===b.visible||!1===b.takeOrdinalPosition&&!q)&&(g=g.concat(b.processedXData),a=g.length,g.sort(function(a,b){return a-b}),a))for(c=a-1;c--;)g[c]===g[c+1]&&g.splice(c,1)});a=g.length;if(2<a){b=g[1]-g[0];for(n=a-1;n--&&!f;)g[n+1]-g[n]!==b&&(f=!0);!this.options.keepOrdinalPadding&&(g[0]-d>b||p-g[g.length-1]>b)&&(f=!0)}f?(this.ordinalPositions=g,b=this.ordinal2lin(Math.max(d,
400
+ g[0]),!0),n=Math.max(this.ordinal2lin(Math.min(p,g[g.length-1]),!0),1),this.ordinalSlope=p=(p-d)/(n-b),this.ordinalOffset=d-b*p):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0}this.isOrdinal=k&&f;this.groupIntervalFactor=null},val2lin:function(a,g){var e=this.ordinalPositions;if(e){var b=e.length,f,d;for(f=b;f--;)if(e[f]===a){d=f;break}for(f=b-1;f--;)if(a>e[f]||0===f){a=(a-e[f])/(e[f+1]-e[f]);d=f+a;break}g=g?d:this.ordinalSlope*(d||0)+this.ordinalOffset}else g=a;return g},lin2val:function(a,
401
+ g){var e=this.ordinalPositions;if(e){var b=this.ordinalSlope,f=this.ordinalOffset,d=e.length-1,k;if(g)0>a?a=e[0]:a>d?a=e[d]:(d=Math.floor(a),k=a-d);else for(;d--;)if(g=b*d+f,a>=g){b=b*(d+1)+f;k=(a-g)/(b-g);break}return void 0!==k&&void 0!==e[d]?e[d]+(k?k*(e[d+1]-e[d]):0):a}return a},getExtendedPositions:function(){var a=this.chart,g=this.series[0].currentDataGrouping,f=this.ordinalIndex,b=g?g.count+g.unitName:"raw",k=this.getExtremes(),d,p;f||(f=this.ordinalIndex={});f[b]||(d={series:[],chart:a,getExtremes:function(){return{min:k.dataMin,
402
+ max:k.dataMax}},options:{ordinal:!0},val2lin:B.prototype.val2lin,ordinal2lin:B.prototype.ordinal2lin},t(this.series,function(b){p={xAxis:d,xData:b.xData,chart:a,destroyGroupedData:y};p.options={dataGrouping:g?{enabled:!0,forced:!0,approximation:"open",units:[[g.unitName,[g.count]]]}:{enabled:!1}};b.processData.apply(p);d.series.push(p)}),this.beforeSetTickPositions.apply(d),f[b]=d.ordinalPositions);return f[b]},getGroupIntervalFactor:function(a,g,f){var b;f=f.processedXData;var e=f.length,d=[];b=
403
+ this.groupIntervalFactor;if(!b){for(b=0;b<e-1;b++)d[b]=f[b+1]-f[b];d.sort(function(a,b){return a-b});d=d[Math.floor(e/2)];a=Math.max(a,f[0]);g=Math.min(g,f[e-1]);this.groupIntervalFactor=b=e*d/(g-a)}return b},postProcessTickInterval:function(a){var e=this.ordinalSlope;return e?this.options.breaks?this.closestPointRange:a/(e/this.closestPointRange):a}});B.prototype.ordinal2lin=B.prototype.val2lin;k(F.prototype,"pan",function(a,g){var e=this.xAxis[0],b=g.chartX,f=!1;if(e.options.ordinal&&e.series.length){var d=
404
+ this.mouseDownX,k=e.getExtremes(),n=k.dataMax,p=k.min,r=k.max,q=this.hoverPoints,c=e.closestPointRange,d=(d-b)/(e.translationSlope*(e.ordinalSlope||c)),w={ordinalPositions:e.getExtendedPositions()},c=e.lin2val,u=e.val2lin,v;w.ordinalPositions?1<Math.abs(d)&&(q&&t(q,function(a){a.setState()}),0>d?(q=w,v=e.ordinalPositions?e:w):(q=e.ordinalPositions?e:w,v=w),w=v.ordinalPositions,n>w[w.length-1]&&w.push(n),this.fixedRange=r-p,d=e.toFixedRange(null,null,c.apply(q,[u.apply(q,[p,!0])+d,!0]),c.apply(v,[u.apply(v,
405
+ [r,!0])+d,!0])),d.min>=Math.min(k.dataMin,p)&&d.max<=Math.max(n,r)&&e.setExtremes(d.min,d.max,!0,!1,{trigger:"pan"}),this.mouseDownX=b,E(this.container,{cursor:"move"})):f=!0}else f=!0;f&&a.apply(this,Array.prototype.slice.call(arguments,1))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function B(a){a.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,F(this.pointArrayMap,["y"]))}var F=a.pick,E=a.wrap,q=a.each,f=a.extend,t=a.isArray,p=a.fireEvent,
406
+ y=a.Axis,u=a.Series;f(y.prototype,{isInBreak:function(a,e){var g=a.repeat||Infinity,f=a.from,b=a.to-a.from;e=e>=f?(e-f)%g:g-(f-e)%g;return a.inclusive?e<=b:e<b&&0!==e},isInAnyBreak:function(a,e){var g=this.options.breaks,f=g&&g.length,b,k,d;if(f){for(;f--;)this.isInBreak(g[f],a)&&(b=!0,k||(k=F(g[f].showPoints,this.isXAxis?!1:!0)));d=b&&e?b&&!k:b}return d}});E(y.prototype,"setTickPositions",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var e=this.tickPositions,
407
+ g=this.tickPositions.info,f=[],b;for(b=0;b<e.length;b++)this.isInAnyBreak(e[b])||f.push(e[b]);this.tickPositions=f;this.tickPositions.info=g}});E(y.prototype,"init",function(a,e,g){var f=this;g.breaks&&g.breaks.length&&(g.ordinal=!1);a.call(this,e,g);a=this.options.breaks;f.isBroken=t(a)&&!!a.length;f.isBroken&&(f.val2lin=function(a){var b=a,d,e;for(e=0;e<f.breakArray.length;e++)if(d=f.breakArray[e],d.to<=a)b-=d.len;else if(d.from>=a)break;else if(f.isInBreak(d,a)){b-=a-d.from;break}return b},f.lin2val=
408
+ function(a){var b,d;for(d=0;d<f.breakArray.length&&!(b=f.breakArray[d],b.from>=a);d++)b.to<a?a+=b.len:f.isInBreak(b,a)&&(a+=b.len);return a},f.setExtremes=function(a,e,d,g,f){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(e);)e-=this.closestPointRange;y.prototype.setExtremes.call(this,a,e,d,g,f)},f.setAxisTranslation=function(a){y.prototype.setAxisTranslation.call(this,a);a=f.options.breaks;var b=[],d=[],e=0,g,k,r=f.userMin||f.min,t=f.userMax||f.max,c=F(f.pointRangePadding,
409
+ 0),w,u;q(a,function(a){k=a.repeat||Infinity;f.isInBreak(a,r)&&(r+=a.to%k-r%k);f.isInBreak(a,t)&&(t-=t%k-a.from%k)});q(a,function(a){w=a.from;for(k=a.repeat||Infinity;w-k>r;)w-=k;for(;w<r;)w+=k;for(u=w;u<t;u+=k)b.push({value:u,move:"in"}),b.push({value:u+(a.to-a.from),move:"out",size:a.breakSize})});b.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});g=0;w=r;q(b,function(a){g+="in"===a.move?1:-1;1===g&&"in"===a.move&&(w=a.value);0===g&&(d.push({from:w,
410
+ to:a.value,len:a.value-w-(a.size||0)}),e+=a.value-w-(a.size||0))});f.breakArray=d;f.unitLength=t-r-e+c;p(f,"afterBreaks");f.options.staticScale?f.transA=f.options.staticScale:f.unitLength&&(f.transA*=(t-f.min+c)/f.unitLength);c&&(f.minPixelPadding=f.transA*f.minPointOffset);f.min=r;f.max=t})});E(u.prototype,"generatePoints",function(a){a.apply(this,C(arguments));var e=this.xAxis,g=this.yAxis,f=this.points,b,k=f.length,d=this.options.connectNulls,p;if(e&&g&&(e.options.breaks||g.options.breaks))for(;k--;)b=
411
+ f[k],p=null===b.y&&!1===d,p||!e.isInAnyBreak(b.x,!0)&&!g.isInAnyBreak(b.y,!0)||(f.splice(k,1),this.data[k]&&this.data[k].destroyElements())});a.Series.prototype.drawBreaks=function(a,e){var g=this,f=g.points,b,k,d,t;a&&q(e,function(e){b=a.breakArray||[];k=a.isXAxis?a.min:F(g.options.threshold,a.min);q(f,function(g){t=F(g["stack"+e.toUpperCase()],g[e]);q(b,function(b){d=!1;if(k<b.from&&t>b.to||k>b.from&&t<b.from)d="pointBreak";else if(k<b.from&&t>b.from&&t<b.to||k>b.from&&t>b.to&&t<b.from)d="pointInBreak";
412
+ d&&p(a,d,{point:g,brk:b})})})})};a.Series.prototype.gappedPath=function(){var a=this.options.gapSize,e=this.points.slice(),g=e.length-1;if(a&&0<g)for(;g--;)e[g+1].x-e[g].x>this.closestPointRange*a&&e.splice(g+1,0,{isNull:!0});return this.getGraphPath(e)};E(a.seriesTypes.column.prototype,"drawPoints",B);E(a.Series.prototype,"drawPoints",B)})(L);(function(a){var C=a.arrayMax,B=a.arrayMin,F=a.Axis,E=a.defaultPlotOptions,q=a.defined,f=a.each,t=a.extend,p=a.format,y=a.isNumber,u=a.merge,k=a.pick,e=a.Point,
413
+ g=a.Tooltip,x=a.wrap,b=a.Series.prototype,l=b.processData,d=b.generatePoints,A=b.destroy,n={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e",
414
+ "-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},H={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},r=a.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",
415
+ [1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],J={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=J.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];f(arguments,function(b){a.push(J.average(b))});return a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?
416
+ B(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,d,e){a=J.open(a);b=J.high(b);d=J.low(d);e=J.close(e);if(y(a)||y(b)||y(d)||y(e))return[a,b,d,e]},range:function(a,b){a=J.low(a);b=J.high(b);if(y(a)||y(b))return[a,b]}};b.groupData=function(a,b,d,e){var c=this.data,g=this.options.data,k=[],h=[],l=[],p=a.length,w,r,v=!!b,q=[];e="function"===typeof e?e:J[e]||H[this.type]&&J[H[this.type].approximation]||J[n.approximation];var t=this.pointArrayMap,
417
+ u=t&&t.length,x=0;r=0;var A,K;u?f(t,function(){q.push([])}):q.push([]);A=u||1;for(K=0;K<=p&&!(a[K]>=d[0]);K++);for(K;K<=p;K++){for(;void 0!==d[x+1]&&a[K]>=d[x+1]||K===p;){w=d[x];this.dataGroupInfo={start:r,length:q[0].length};r=e.apply(this,q);void 0!==r&&(k.push(w),h.push(r),l.push(this.dataGroupInfo));r=K;for(w=0;w<A;w++)q[w].length=0,q[w].hasNulls=!1;x+=1;if(K===p)break}if(K===p)break;if(t){w=this.cropStart+K;var B=c&&c[w]||this.pointClass.prototype.applyOptions.apply({series:this},[g[w]]),C;for(w=
418
+ 0;w<u;w++)C=B[t[w]],y(C)?q[w].push(C):null===C&&(q[w].hasNulls=!0)}else w=v?b[K]:null,y(w)?q[0].push(w):null===w&&(q[0].hasNulls=!0)}return[k,h,l]};b.processData=function(){var a=this.chart,d=this.options.dataGrouping,e=!1!==this.allowDG&&d&&k(d.enabled,a.options.isStock),g=this.visible||!a.options.chart.ignoreHiddenSeries,f;this.forceCrop=e;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==l.apply(this,arguments)&&e){this.destroyGroupedData();var m=this.processedXData,n=this.processedYData,
419
+ h=a.plotSizeX,a=this.xAxis,p=a.options.ordinal,t=this.groupPixelWidth=a.getGroupPixelWidth&&a.getGroupPixelWidth();if(t){this.isDirty=f=!0;var u=a.getExtremes(),e=u.min,u=u.max,p=p&&a.getGroupIntervalFactor(e,u,this)||1,h=t*(u-e)/h*p,t=a.getTimeTicks(a.normalizeTimeTickInterval(h,d.units||r),Math.min(e,m[0]),Math.max(u,m[m.length-1]),a.options.startOfWeek,m,this.closestPointRange),m=b.groupData.apply(this,[m,n,t,d.approximation]),n=m[0],p=m[1];if(d.smoothed){d=n.length-1;for(n[d]=Math.min(n[d],u);d--&&
420
+ 0<d;)n[d]+=h/2;n[0]=Math.max(n[0],e)}this.currentDataGrouping=t.info;this.closestPointRange=t.info.totalRange;this.groupMap=m[2];q(n[0])&&n[0]<a.dataMin&&g&&(a.min===a.dataMin&&(a.min=n[0]),a.dataMin=n[0]);this.processedXData=n;this.processedYData=p}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=f}};b.destroyGroupedData=function(){var a=this.groupedData;f(a||[],function(b,c){b&&(a[c]=b.destroy?b.destroy():null)});this.groupedData=null};b.generatePoints=function(){d.apply(this);
421
+ this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};x(e.prototype,"update",function(b){this.dataGroup?a.error(24):b.apply(this,[].slice.call(arguments,1))});x(g.prototype,"tooltipFooterHeaderFormatter",function(b,d,e){var c=d.series,g=c.tooltipOptions,f=c.options.dataGrouping,k=g.xDateFormat,h,n=c.xAxis,l=a.dateFormat;return n&&"datetime"===n.options.type&&f&&y(d.key)?(b=c.currentDataGrouping,f=f.dateTimeLabelFormats,b?(n=f[b.unitName],1===b.count?k=n[0]:(k=n[1],h=n[2])):
422
+ !k&&f&&(k=this.getXDateFormat(d,g,n)),k=l(k,d.key),h&&(k+=l(h,d.key+b.totalRange-1)),p(g[(e?"footer":"header")+"Format"],{point:t(d.point,{key:k}),series:c})):b.call(this,d,e)});b.destroy=function(){for(var a=this.groupedData||[],b=a.length;b--;)a[b]&&a[b].destroy();A.apply(this)};x(b,"setOptions",function(a,b){a=a.call(this,b);var c=this.type,d=this.chart.options.plotOptions,e=E[c].dataGrouping;H[c]&&(e||(e=u(n,H[c])),a.dataGrouping=u(e,d.series&&d.series.dataGrouping,d[c].dataGrouping,b.dataGrouping));
423
+ this.chart.options.isStock&&(this.requireSorting=!0);return a});x(F.prototype,"setScale",function(a){a.call(this);f(this.series,function(a){a.hasProcessed=!1})});F.prototype.getGroupPixelWidth=function(){var a=this.series,b=a.length,d,e=0,g=!1,f;for(d=b;d--;)(f=a[d].options.dataGrouping)&&(e=Math.max(e,f.groupPixelWidth));for(d=b;d--;)(f=a[d].options.dataGrouping)&&a[d].hasProcessed&&(b=(a[d].processedXData||a[d].data).length,a[d].groupPixelWidth||b>this.chart.plotSizeX/e||b&&f.forced)&&(g=!0);return g?
424
+ e:0};F.prototype.setDataGrouping=function(a,b){var c;b=k(b,!0);a||(a={forced:!1,units:null});if(this instanceof F)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:a},!1);else f(this.chart.options.series,function(b){b.dataGrouping=a},!1);b&&this.chart.redraw()}})(L);(function(a){var C=a.each,B=a.Point,F=a.seriesType,E=a.seriesTypes;F("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'},
425
+ threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,f){f=E.column.prototype.pointAttribs.call(this,a,f);var q=this.options;delete f.fill;!a.options.color&&q.upColor&&a.open<a.close&&(f.stroke=q.upColor);return f},translate:function(){var a=this,f=a.yAxis,t=!!a.modifyValue,
426
+ p=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];E.column.prototype.translate.apply(a);C(a.points,function(q){C([q.open,q.high,q.low,q.close,q.low],function(u,k){null!==u&&(t&&(u=a.modifyValue(u)),q[p[k]]=f.toPixels(u,!0))});q.tooltipPos[1]=q.plotHigh+f.pos-a.chart.plotTop})},drawPoints:function(){var a=this,f=a.chart;C(a.points,function(q){var p,t,u,k,e=q.graphic,g,x=!e;void 0!==q.plotY&&(e||(q.graphic=e=f.renderer.path().add(a.group)),e.attr(a.pointAttribs(q,q.selected&&"select")),t=e.strokeWidth()%
427
+ 2/2,g=Math.round(q.plotX)-t,u=Math.round(q.shapeArgs.width/2),k=["M",g,Math.round(q.yBottom),"L",g,Math.round(q.plotHigh)],null!==q.open&&(p=Math.round(q.plotOpen)+t,k.push("M",g,p,"L",g-u,p)),null!==q.close&&(p=Math.round(q.plotClose)+t,k.push("M",g,p,"L",g+u,p)),e[x?"attr":"animate"]({d:k}).addClass(q.getClassName(),!0))})},animate:null},{getClassName:function(){return B.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}})})(L);(function(a){var C=
428
+ a.defaultPlotOptions,B=a.each,F=a.merge,E=a.seriesType,q=a.seriesTypes;E("candlestick","ohlc",F(C.column,{states:{hover:{lineWidth:2}},tooltip:C.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}),{pointAttribs:function(a,t){var f=q.column.prototype.pointAttribs.call(this,a,t),y=this.options,u=a.open<a.close,k=y.lineColor||this.color;f["stroke-width"]=y.lineWidth;f.fill=a.options.color||(u?y.upColor||this.color:this.color);f.stroke=a.lineColor||(u?y.upLineColor||
429
+ k:k);t&&(a=y.states[t],f.fill=a.color||f.fill,f.stroke=a.lineColor||f.stroke,f["stroke-width"]=a.lineWidth||f["stroke-width"]);return f},drawPoints:function(){var a=this,q=a.chart;B(a.points,function(f){var p=f.graphic,t,k,e,g,x,b,l,d=!p;void 0!==f.plotY&&(p||(f.graphic=p=q.renderer.path().add(a.group)),p.attr(a.pointAttribs(f,f.selected&&"select")).shadow(a.options.shadow),x=p.strokeWidth()%2/2,b=Math.round(f.plotX)-x,t=f.plotOpen,k=f.plotClose,e=Math.min(t,k),t=Math.max(t,k),l=Math.round(f.shapeArgs.width/
430
+ 2),k=Math.round(e)!==Math.round(f.plotHigh),g=t!==f.yBottom,e=Math.round(e)+x,t=Math.round(t)+x,x=[],x.push("M",b-l,t,"L",b-l,e,"L",b+l,e,"L",b+l,t,"Z","M",b,e,"L",b,k?Math.round(f.plotHigh):e,"M",b,t,"L",b,g?Math.round(f.yBottom):t),p[d?"attr":"animate"]({d:x}).addClass(f.getClassName(),!0))})}})})(L);(function(a){var C=a.addEvent,B=a.each,F=a.merge,E=a.noop,q=a.Renderer,f=a.seriesType,t=a.seriesTypes,p=a.TrackerMixin,y=a.VMLRenderer,u=a.SVGRenderer.prototype.symbols,k=a.stableSort;f("flags","column",
431
+ {pointRange:0,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,f){var e=this.options,b=a&&a.color||this.color,g=e.lineColor,d=a&&a.lineWidth;
432
+ a=a&&a.fillColor||e.fillColor;f&&(a=e.states[f].fillColor,g=e.states[f].lineColor,d=e.states[f].lineWidth);return{fill:a||b,stroke:g||b,"stroke-width":d||e.lineWidth||0}},translate:function(){t.column.prototype.translate.apply(this);var a=this.options,f=this.chart,p=this.points,b=p.length-1,l,d,q=a.onSeries;l=q&&f.get(q);var a=a.onKey||"y",q=l&&l.options.step,n=l&&l.points,u=n&&n.length,r=this.xAxis,y=this.yAxis,c=r.getExtremes(),w=0,K,v,D;if(l&&l.visible&&u)for(w=(l.pointXOffset||0)+(l.barW||0)/
433
+ 2,l=l.currentDataGrouping,v=n[u-1].x+(l?l.totalRange:0),k(p,function(a,b){return a.x-b.x}),a="plot"+a[0].toUpperCase()+a.substr(1);u--&&p[b]&&!(l=p[b],K=n[u],K.x<=l.x&&void 0!==K[a]&&(l.x<=v&&(l.plotY=K[a],K.x<l.x&&!q&&(D=n[u+1])&&void 0!==D[a]&&(l.plotY+=(l.x-K.x)/(D.x-K.x)*(D[a]-K[a]))),b--,u++,0>b)););B(p,function(a,b){var e;void 0===a.plotY&&(a.x>=c.min&&a.x<=c.max?a.plotY=f.chartHeight-r.bottom-(r.opposite?r.height:0)+r.offset-y.top:a.shapeArgs={});a.plotX+=w;(d=p[b-1])&&d.plotX===a.plotX&&(void 0===
434
+ d.stackIndex&&(d.stackIndex=0),e=d.stackIndex+1);a.stackIndex=e})},drawPoints:function(){var e=this.points,f=this.chart,k=f.renderer,b,l,d=this.options,p=d.y,n,q,r,t,c,w,u,v=this.yAxis;for(q=e.length;q--;)r=e[q],u=r.plotX>this.xAxis.len,b=r.plotX,t=r.stackIndex,n=r.options.shape||d.shape,l=r.plotY,void 0!==l&&(l=r.plotY+p-(void 0!==t&&t*d.stackDistance)),c=t?void 0:r.plotX,w=t?void 0:r.plotY,t=r.graphic,void 0!==l&&0<=b&&!u?(t||(t=r.graphic=k.label("",null,null,n,null,null,d.useHTML).attr(this.pointAttribs(r)).css(F(d.style,
435
+ r.style)).attr({align:"flag"===n?"left":"center",width:d.width,height:d.height,"text-align":d.textAlign}).addClass("highcharts-point").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),t.shadow(d.shadow)),0<b&&(b-=t.strokeWidth()%2),t.attr({text:r.options.title||d.title||"A",x:b,y:l,anchorX:c,anchorY:w}),r.tooltipPos=f.inverted?[v.len+v.pos-f.plotLeft-l,this.xAxis.len-b]:[b,l+v.pos-f.plotTop]):t&&(r.graphic=t.destroy());d.useHTML&&a.wrap(this.markerGroup,"on",function(b){return a.SVGElement.prototype.on.apply(b.apply(this,
436
+ [].slice.call(arguments,1)),[].slice.call(arguments,1))})},drawTracker:function(){var a=this.points;p.drawTrackerPoint.apply(this);B(a,function(e){var f=e.graphic;f&&C(f.element,"mouseover",function(){0<e.stackIndex&&!e.raised&&(e._y=f.y,f.attr({y:e._y-8}),e.raised=!0);B(a,function(a){a!==e&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})})})},animate:E,buildKDTree:E,setClip:E});u.flag=function(a,f,k,b,l){return["M",l&&l.anchorX||a,l&&l.anchorY||f,"L",a,f+b,a,f,a+k,f,a+k,f+b,a,f+b,"Z"]};
437
+ B(["circle","square"],function(a){u[a+"pin"]=function(e,f,b,k,d){var g=d&&d.anchorX;d=d&&d.anchorY;"circle"===a&&k>b&&(e-=Math.round((k-b)/2),b=k);e=u[a](e,f,b,k);g&&d&&e.push("M",g,f>d?f:f+k,"L",g,d);return e}});q===y&&B(["flag","circlepin","squarepin"],function(a){y.prototype.symbols[a]=u[a]})})(L);(function(a){function C(a,b,d){this.init(a,b,d)}var B=a.addEvent,F=a.Axis,E=a.correctFloat,q=a.defaultOptions,f=a.defined,t=a.destroyObjectProperties,p=a.doc,y=a.each,u=a.fireEvent,k=a.hasTouch,e=a.isTouchDevice,
438
+ g=a.merge,x=a.pick,b=a.removeEvent,l=a.wrap,d,A={height:e?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:a.svg&&!e,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};q.scrollbar=g(!0,A,q.scrollbar);a.swapXY=d=function(a,b){var d=
439
+ a.length,e;if(b)for(b=0;b<d;b+=3)e=a[b+1],a[b+1]=a[b+2],a[b+2]=e;return a};C.prototype={init:function(a,b,d){this.scrollbarButtons=[];this.renderer=a;this.userOptions=b;this.options=g(A,b);this.chart=d;this.size=x(this.options.size,this.options.height);b.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var a=this.renderer,b=this.options,e=this.size,f;this.group=f=a.g("scrollbar").attr({zIndex:b.zIndex,translateY:-99999}).add();this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,
440
+ r:b.trackBorderRadius||0,height:e,width:e}).add(f);this.track.attr({fill:b.trackBackgroundColor,stroke:b.trackBorderColor,"stroke-width":b.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(f);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:e,width:e,r:b.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(d(["M",-3,e/4,"L",-3,2*e/3,"M",0,e/4,"L",0,2*e/3,"M",
441
+ 3,e/4,"L",3,2*e/3],b.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);this.scrollbar.attr({fill:b.barBackgroundColor,stroke:b.barBorderColor,"stroke-width":b.barBorderWidth});this.scrollbarRifles.attr({stroke:b.rifleColor,"stroke-width":1});this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)},position:function(a,b,d,e){var c=
442
+ this.options.vertical,f=0,g=this.rendered?"animate":"attr";this.x=a;this.y=b+this.trackBorderWidth;this.width=d;this.xOffset=this.height=e;this.yOffset=f;c?(this.width=this.yOffset=d=f=this.size,this.xOffset=b=0,this.barWidth=e-2*d,this.x=a+=this.options.margin):(this.height=this.xOffset=e=b=this.size,this.barWidth=d-2*e,this.y+=this.options.margin);this.group[g]({translateX:a,translateY:this.y});this.track[g]({width:d,height:e});this.scrollbarButtons[1][g]({translateX:c?0:d-b,translateY:c?e-f:0})},
443
+ drawScrollbarButton:function(a){var b=this.renderer,e=this.scrollbarButtons,f=this.options,c=this.size,g;g=b.g().add(this.group);e.push(g);g=b.rect().addClass("highcharts-scrollbar-button").add(g);g.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor});g.attr(g.crisp({x:-.5,y:-.5,width:c+1,height:c+1,r:f.buttonBorderRadius},g.strokeWidth()));g=b.path(d(["M",c/2+(a?-1:1),c/2-3,"L",c/2+(a?-1:1),c/2+3,"L",c/2+(a?2:-2),c/2],f.vertical)).addClass("highcharts-scrollbar-arrow").add(e[a]);
444
+ g.attr({fill:f.buttonArrowColor})},setRange:function(a,b){var d=this.options,e=d.vertical,c=d.minWidth,g=this.barWidth,k,n,l=this.rendered&&!this.hasDragged?"animate":"attr";f(g)&&(a=Math.max(a,0),k=Math.ceil(g*a),this.calculatedWidth=n=E(g*Math.min(b,1)-k),n<c&&(k=(g-c+n)*a,n=c),c=Math.floor(k+this.xOffset+this.yOffset),g=n/2-.5,this.from=a,this.to=b,e?(this.scrollbarGroup[l]({translateY:c}),this.scrollbar[l]({height:n}),this.scrollbarRifles[l]({translateY:g}),this.scrollbarTop=c,this.scrollbarLeft=
445
+ 0):(this.scrollbarGroup[l]({translateX:c}),this.scrollbar[l]({width:n}),this.scrollbarRifles[l]({translateX:g}),this.scrollbarLeft=c,this.scrollbarTop=0),12>=n?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===d.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var d=a.chart.pointer.normalize(b),e=a.options.vertical?"chartY":"chartX",c=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||
446
+ (d=a.cursorToScrollbarPosition(d)[e],e=a[e],e=d-e,a.hasDragged=!0,a.updatePosition(c[0]+e,c[1]+e),a.hasDragged&&u(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;
447
+ a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var d=E(a.to-a.from)*a.options.step;a.updatePosition(E(a.from-d),E(a.to-d));u(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.buttonToMaxClick=function(b){var d=(a.to-a.from)*a.options.step;a.updatePosition(a.from+d,a.to+d);u(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.trackClick=function(b){var d=a.chart.pointer.normalize(b),e=a.to-a.from,c=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;
448
+ a.options.vertical&&d.chartY>c||!a.options.vertical&&d.chartX>f?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1<b&&(a=E(1-E(b-a)),b=1);0>a&&(b=E(b-a),a=0);
449
+ this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,g(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,d=this.scrollbarGroup.element,e=this.mouseDownHandler,c=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,"click",this.buttonToMinClick],[b[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[d,"mousedown",e],[p,"mousemove",c],[p,"mouseup",f]];
450
+ k&&a.push([d,"touchstart",e],[p,"touchmove",c],[p,"touchend",f]);y(a,function(a){B.apply(null,a)});this._events=a},removeEvents:function(){y(this._events,function(a){b.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();y(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,t(a.scrollbarButtons))}};l(F.prototype,"init",function(a){var b=
451
+ this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),B(b.scrollbar,"changed",function(a){var d=Math.min(x(b.options.min,b.min),b.min,b.dataMin),c=Math.max(x(b.options.max,b.max),b.max,b.dataMax)-d,e;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(e=d+c*this.to,d+=c*this.from):(e=d+c*(1-this.from),d+=c*(1-
452
+ this.to));b.setExtremes(d,e,!0,!1,a)}))});l(F.prototype,"render",function(a){var b=Math.min(x(this.options.min,this.min),this.min,this.dataMin),d=Math.max(x(this.options.max,this.max),this.max,this.dataMax),e=this.scrollbar,c=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:c+this.axisTitleMargin+this.offset),this.width,this.height),c=1):(e.position(this.left+this.width+
453
+ 2+this.chart.scrollbarsOffsets[0]+(this.opposite?c+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),c=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[c]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(d)||!f(this.min)||!f(this.max)?e.setRange(0,0):(c=(this.min-b)/(d-b),b=(this.max-b)/(d-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(c,b):e.setRange(1-b,1-c))}});l(F.prototype,"getOffset",function(a){var b=
454
+ this.horiz?2:1,d=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));d&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=d.size+d.options.margin)});l(F.prototype,"destroy",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var B=a.addEvent,F=a.Axis,E=a.Chart,q=a.color,f=a.defaultOptions,t=a.defined,p=a.destroyObjectProperties,y=a.doc,u=
455
+ a.each,k=a.erase,e=a.error,g=a.extend,x=a.grep,b=a.hasTouch,l=a.isNumber,d=a.isObject,A=a.merge,n=a.pick,H=a.removeEvent,r=a.Scrollbar,J=a.Series,c=a.seriesTypes,w=a.wrap,K=a.swapXY,v=[].concat(a.defaultDataGroupingUnits),D=function(a){var b=x(arguments,l);if(b.length)return Math[a].apply(0,b)};v[4]=["day",[1,2,3,4]];v[5]=["week",[1,2,3]];c=void 0===c.areaspline?"line":"areaspline";g(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:q("#6685c2").setOpacity(.3).get(),
456
+ outlineColor:"#cccccc",outlineWidth:1,series:{type:c,color:"#335cad",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:v},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,shadow:!1,threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,
457
+ labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});C.prototype={drawHandle:function(a,b,c,d){this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2-8),translateY:Math.round(this.top+parseInt(a,10)+.5)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+
458
+ this.height/2-8)})},getHandlePath:function(a){return K(["M",-4.5,.5,"L",3.5,.5,"L",3.5,15.5,"L",-4.5,15.5,"L",-4.5,.5,"M",-1.5,4,"L",-1.5,12,"M",.5,4,"L",.5,12],a)},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,h=this.outline.strokeWidth(),f=h/2,h=h%2/2,g=this.outlineHeight,m=this.scrollbarHeight,k=this.size,l=this.left-m,n=this.top;c?(l-=f,c=n+b+h,b=n+a+h,a=["M",l+g,n-m-h,"L",l+g,c,"L",l,c,"L",l,b,"L",l+g,b,"L",l+g,n+k+m].concat(e?["M",l+g,c-f,"L",l+g,b+f]:[])):(a+=l+m-h,b+=
459
+ l+m-h,n+=f,a=["M",l,n,"L",a,n,"L",a,n+g,"L",b,n+g,"L",b,n,"L",l+k+2*m,n].concat(e?["M",a-f,n,"L",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,h=this.top,f=this.height,g,m,k,l;c?(k=[e,e,e],l=[h,h+a,h+b],m=[f,f,f],g=[a,b-a,this.size-b]):(k=[e,e+a,e+b],l=[h,h,h],m=[a,b-a,this.size-b],g=[f,f,f]);u(this.shades,function(a,b){a[d]({x:k[b],y:l[b],width:m[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=
460
+ d.renderer,g;a.navigatorGroup=g=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();var k={cursor:e?"ns-resize":"ew-resize"};u([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass("highcharts-navigator-mask"+(1===d?"-inside":"-outside")).attr({fill:c?b.maskFill:"transparent"}).css(1===d&&k).add(g)});a.outline=f.path().addClass("highcharts-navigator-outline").attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor}).add(g);u([0,1],function(c){a.handles[c]=f.path(a.getHandlePath(e)).attr({zIndex:7-
461
+ c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(g);var d=b.handles;a.handles[c].attr({fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":1}).css(k)})},update:function(a){this.destroy();A(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,b,c,d){var e=this.chart,h,f,g=this.scrollbarHeight,m,k=this.xAxis;h=k.fake?e.xAxis[0]:k;var p=this.navigatorEnabled,q,v=this.rendered;f=e.inverted;var w=e.xAxis[0].minRange;
462
+ if(!this.hasDragged||t(c)){if(!l(a)||!l(b))if(v)c=0,d=k.width;else return;this.left=n(k.left,e.plotLeft+g+(f?e.plotWidth:0));this.size=q=m=n(k.len,(f?e.plotHeight:e.plotWidth)-2*g);e=f?g:m+2*g;c=n(c,k.toPixels(a,!0));d=n(d,k.toPixels(b,!0));l(c)&&Infinity!==Math.abs(c)||(c=0,d=e);a=k.toValue(c,!0);b=k.toValue(d,!0);if(Math.abs(b-a)<w)if(this.grabbedLeft)c=k.toPixels(b-w,!0);else if(this.grabbedRight)d=k.toPixels(a+w,!0);else return;this.zoomedMax=Math.min(Math.max(c,d,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?
463
+ this.zoomedMax-this.fixedWidth:Math.min(c,d),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:"visible"}),v=v&&!this.hasDragged?"animate":"attr",this.drawMasks(c,q,f,v),this.drawOutline(c,q,f,v),this.drawHandle(c,0,f,v),this.drawHandle(q,1,f,v));this.scrollbar&&(f?(f=this.top-g,h=this.left-g+(p?0:(h.titleOffset||0)+h.axisTitleMargin),g=m+2*g):(f=this.top+(p?this.height:-g),h=this.left-g),this.scrollbar.position(h,
464
+ f,e,g),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,c=a.chart,d=c.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents("mousedown");e.push(B(d,"mousemove",f),B(y,"mouseup",g));b&&(e.push(B(d,"touchmove",f),B(y,"touchend",g)),e.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(B(a.series[0].xAxis,"foundExtremes",
465
+ function(){c.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];u(["shades","handles"],function(d){u(b[d],function(e,h){c.push(B(e.element,a,function(a){b[d+"Mousedown"](a,h)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,m=this.range,k=a.chartX,l;c.inverted&&(k=a.chartY,f=this.top);1===b?(this.grabbedCenter=k,this.fixedWidth=m,this.dragOffset=k-e):(a=k-f-m/
466
+ 2,0===b?a=Math.max(0,a):2===b&&a+m>=g&&(a=g-m,l=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=m,b=d.toFixedRange(a,a+m,null,l),c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=
467
+ this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,m=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,m&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,c<g?c=g:c>e+g-f&&(c=e+g-f),b.render(0,0,c-g,c-g+f)),b.hasDragged&&
468
+ b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,e,f,g=a.DOMEvent||a;(!this.hasDragged||d&&d.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?e=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(f=this.fixedExtreme),this.zoomedMax===this.size&&(f=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,e,f),t(c.min)&&
469
+ b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:g}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=
470
+ this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(u(a,function(a){H(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&H(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=e.enabled,b=d?c.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=
471
+ c;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=n(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,m=a.yAxis.length,l=e&&e[0]&&e[0].xAxis||a.xAxis[0];a.extraMargin={type:k.opposite?"plotTop":"marginBottom",value:(d||!a.inverted?k.outlineHeight:0)+c.margin};a.inverted&&(a.extraMargin.type=k.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new F(a,A({breaks:l.options.breaks,ordinal:l.options.ordinal},c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",
472
+ isX:!0,type:"datetime",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),k.yAxis=new F(a,A(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.addBaseSeries():0===a.series.length&&w(a,"redraw",function(b,c){0<a.series.length&&!k.series&&(k.setBaseSeries(),a.redraw=b);b.call(a,c)}),k.renderElements(),
473
+ k.addMouseEvents()):k.xAxis={translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),f=d.len-2*g,h=D("min",d.options.min,e.dataMin),d=D("max",d.options.max,e.dataMax)-h;return c?b*d/f+h:f*(b-h)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:F.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=k.scrollbar=new r(a.renderer,A(a.options.scrollbar,{margin:k.navigatorEnabled?0:10,vertical:a.inverted}),a),B(k.scrollbar,
474
+ "changed",function(b){var c=k.size,d=c*this.to,c=c*this.from;k.hasDragged=k.scrollbar.hasDragged;k.render(0,0,c,d);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType)&&setTimeout(function(){k.onMouseUp(b)})}));k.addBaseSeriesEvents();k.addChartEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:n(d&&d.min,D("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:n(d&&d.max,D("max",e.max,b.dataMax,c.dataMax,c.max))});
475
+ return f},setBaseSeries:function(a){var b=this.chart,c;a=a||b.options&&b.options.navigator.baseSeries||0;this.series&&(this.removeBaseSeriesEvents(),u(this.series,function(a){a.destroy()}));c=this.baseSeries=[];u(b.series||[],function(b,d){(b.options.showInNavigator||(d===a||b.options.id===a)&&!1!==b.options.showInNavigator)&&c.push(b)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,b=a.chart,c=a.series=[],d=a.baseSeries,e,f,g=a.navigatorOptions.series,k,
476
+ l={enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0};d?u(d,function(d,h){l.name="Navigator "+(h+1);e=d.options||{};k=e.navigatorOptions||{};f=A(e,l,g,k);h=k.data||g.data;a.hasNavigatorData=a.hasNavigatorData||!!h;f.data=h||e.data&&e.data.slice(0);d.navigatorSeries=b.initSeries(f);c.push(d.navigatorSeries)}):(f=A(g,l),f.data=g.data,a.hasNavigatorData=!!f.data,c.push(b.initSeries(f)));this.addBaseSeriesEvents()},
477
+ addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&B(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&u(b,function(b){b.xAxis&&B(b,"updatedData",this.updatedDataHandler);B(b,"remove",function(){this.navigatorSeries&&(k(a.series,this.navigatorSeries),this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||
478
+ b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax,b=b.max-b.min,e=a.stickToMin,f=a.stickToMax,g,k,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(e&&(k=c,g=k+b),f&&(g=d,e||(k=Math.max(g-b,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),p&&(e||f)&&l(k)&&(this.min=this.userMin=k,this.max=this.userMax=g));a.stickToMin=
479
+ a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMin=l(this.xAxis.min)&&this.xAxis.min<=this.xData[0];a.stickToMax=Math.round(a.zoomedMax)>=Math.round(a.size);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){B(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,
480
+ b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(k(this.chart.xAxis,this.xAxis),k(this.chart.axes,this.xAxis));this.yAxis&&(k(this.chart.yAxis,this.yAxis),k(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){p(a)},this)}};
481
+ a.Navigator=C;w(F.prototype,"zoom",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,h=e.navigator,e=e.rangeSelector,g;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&("x"===f?d.resetZoomButton="blocked":"y"===f?g=!1:"xy"===f&&(d=this.previousZoom,t(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==g?g:a.call(this,b,c)});w(E.prototype,"init",function(a,b,c){B(this,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=
482
+ this.navigator=new C(this)});a.call(this,b,c)});w(E.prototype,"setChartSize",function(a){var b=this.legend,c=this.navigator,d,e,f,g;a.apply(this,[].slice.call(arguments,1));c&&(e=b.options,f=c.xAxis,g=c.yAxis,d=c.scrollbarHeight,this.inverted?(c.left=c.opposite?this.chartWidth-d-c.height:this.spacing[3]+d,c.top=this.plotTop+d):(c.left=this.plotLeft+d,c.top=c.navigatorOptions.top||this.chartHeight-c.height-d-this.spacing[2]-("bottom"===e.verticalAlign&&e.enabled&&!e.floating?b.legendHeight+n(e.margin,
483
+ 10):0)),f&&g&&(this.inverted?f.options.left=g.options.left=c.left:f.options.top=g.options.top=c.top,f.setAxisSize(),g.setAxisSize()))});w(J.prototype,"addPoint",function(a,b,c,f,g){var h=this.options.turboThreshold;h&&this.xData.length>h&&d(b,!0)&&this.chart.navigator&&e(20,!0);a.call(this,b,c,f,g)});w(E.prototype,"addSeries",function(a,b,c,d){a=a.call(this,b,!1,d);this.navigator&&this.navigator.setBaseSeries();n(c,!0)&&this.redraw();return a});w(J.prototype,"update",function(a,b,c){a.call(this,b,
484
+ !1);this.chart.navigator&&this.chart.navigator.setBaseSeries();n(c,!0)&&this.chart.redraw()});E.prototype.callbacks.push(function(a){var b=a.navigator;b&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var B=a.addEvent,F=a.Axis,E=a.Chart,q=a.css,f=a.createElement,t=a.dateFormat,p=a.defaultOptions,y=p.global.useUTC,u=a.defined,k=a.destroyObjectProperties,e=a.discardElement,g=a.each,x=a.extend,b=a.fireEvent,l=a.Date,d=a.isNumber,A=a.merge,n=a.pick,H=
485
+ a.pInt,r=a.splat,J=a.wrap;x(p,{rangeSelector:{buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},height:35,inputPosition:{align:"right"},labelStyle:{color:"#666666"}}});p.lang=A(p.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});C.prototype={clickButton:function(a,b){var c=this,e=c.chart,f=c.buttonOptions[a],k=e.xAxis[0],l=e.scroller&&e.scroller.getUnionExtremes()||k||{},h=l.dataMin,p=l.dataMax,q,t=k&&Math.round(Math.min(k.max,n(p,k.max))),w=f.type,
486
+ u,l=f._range,x,A,C,E=f.dataGrouping;if(null!==h&&null!==p){e.fixedRange=l;E&&(this.forcedDataGrouping=!0,F.prototype.setDataGrouping.call(k||{chart:this.chart},E,!1));if("month"===w||"year"===w)k?(w={range:f,max:t,dataMin:h,dataMax:p},q=k.minFromRange.call(w),d(w.newMax)&&(t=w.newMax)):l=f;else if(l)q=Math.max(t-l,h),t=Math.min(q+l,p);else if("ytd"===w)if(k)void 0===p&&(h=Number.MAX_VALUE,p=Number.MIN_VALUE,g(e.series,function(a){a=a.xData;h=Math.min(a[0],h);p=Math.max(a[a.length-1],p)}),b=!1),t=
487
+ c.getYTDExtremes(p,h,y),q=x=t.min,t=t.max;else{B(e,"beforeRender",function(){c.clickButton(a)});return}else"all"===w&&k&&(q=h,t=p);c.setSelected(a);k?k.setExtremes(q,t,n(b,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:f}):(u=r(e.options.xAxis)[0],C=u.range,u.range=l,A=u.min,u.min=x,B(e,"load",function(){u.range=C;u.min=A}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,
488
+ text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var c=this,d=a.options.rangeSelector,e=d.buttons||[].concat(c.defaultButtons),f=d.selected,k=function(){var a=c.minInput,d=c.maxInput;a&&a.blur&&b(a,"blur");d&&d.blur&&b(d,"blur")};c.chart=a;c.options=d;c.buttons=[];a.extraTopMargin=d.height;c.buttonOptions=e;this.unMouseDown=B(a.container,"mousedown",k);this.unResize=B(a,"resize",k);g(e,c.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,
489
+ !1);B(a,"load",function(){B(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],e=Math.round(b.max-b.min),f=!b.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||b,k=a.dataMin,m=a.dataMax,a=this.getYTDExtremes(m,k,y),l=a.min,h=a.max,n=this.selected,p=d(n),q=this.options.allButtonsEnabled,t=this.buttons;
490
+ g(this.buttonOptions,function(a,c){var d=a._range,g=a.type,v=a.count||1;a=t[c];var r=0;c=c===n;var w=d>m-k,u=d<b.minRange,x=!1,z=!1,d=d===e;("month"===g||"year"===g)&&e>=864E5*{month:28,year:365}[g]*v&&e<=864E5*{month:31,year:366}[g]*v?d=!0:"ytd"===g?(d=h-l===e,x=!c):"all"===g&&(d=b.max-b.min>=m-k,z=!c&&p&&d);g=!q&&(w||u||z||f);d=c&&d||d&&!p&&!x;g?r=3:d&&(p=!0,r=2);a.state!==r&&a.setState(r)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,
491
+ day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this[a+"Input"];u(b)&&(d.previousValue=d.HCTime,d.HCTime=b);d.value=t(c.inputEditDateFormat||"%Y-%m-%d",d.HCTime);this[a+"DateBox"].attr({text:t(c.inputDateFormat||"%b %e, %Y",d.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"];q(this[a+"Input"],{left:b.translateX+c.x+"px",top:b.translateY+
492
+ "px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){q(this[a+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(a)},drawInput:function(a){function b(){var a=t.value,b=(l.inputDateParser||Date.parse)(a),f=e.xAxis[0],g=e.scroller&&e.scroller.xAxis?e.scroller.xAxis:f,h=g.dataMin,g=g.dataMax;b!==t.previousValue&&(t.previousValue=b,d(b)||(b=a.split("-"),b=Date.UTC(H(b[0]),H(b[1])-1,H(b[2]))),d(b)&&(y||(b+=6E4*(new Date).getTimezoneOffset()),
493
+ n?b>c.maxInput.HCTime?b=void 0:b<h&&(b=h):b<c.minInput.HCTime?b=void 0:b>g&&(b=g),void 0!==b&&f.setExtremes(n?b:f.min,n?f.max:b,void 0,void 0,{trigger:"rangeSelectorInput"})))}var c=this,e=c.chart,g=e.renderer.style||{},k=e.renderer,l=e.options.rangeSelector,h=c.div,n="min"===a,t,r,u=this.inputGroup;this[a+"Label"]=r=k.label(p.lang[n?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(u);u.offset+=r.width+5;this[a+"DateBox"]=k=k.label("",
494
+ u.offset).addClass("highcharts-range-input").attr({padding:2,width:l.inputBoxWidth||90,height:l.inputBoxHeight||17,stroke:l.inputBoxBorderColor||"#cccccc","stroke-width":1,"text-align":"center"}).on("click",function(){c.showInput(a);c[a+"Input"].focus()}).add(u);u.offset+=k.width+(n?10:0);this[a+"Input"]=t=f("input",{name:a,className:"highcharts-range-selector",type:"text"},{top:e.plotTop+"px"},h);r.css(A(g,l.labelStyle));k.css(A({color:"#333333"},g,l.inputStyle));q(t,x({position:"absolute",border:0,
495
+ width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g.fontSize,fontFamily:g.fontFamily,left:"-9em"},l.inputStyle));t.onfocus=function(){c.showInput(a)};t.onblur=function(){c.hideInput(a)};t.onchange=b;t.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=n((b.buttonPosition||{}).y,a.plotTop-a.axisOffset[0]-b.height);return{buttonTop:a,inputTop:a-10}},getYTDExtremes:function(a,b,d){var c=new l(a),e=c[l.hcGetFullYear]();d=d?l.UTC(e,
496
+ 0,1):+new l(e,0,1);b=Math.max(b||0,d);c=c.getTime();return{max:Math.min(a||c,c),min:b}},render:function(a,b){var c=this,d=c.chart,e=d.renderer,k=d.container,l=d.options,h=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,q=l.rangeSelector,t=c.buttons,l=p.lang,r=c.div,r=c.inputGroup,w=q.buttonTheme,y=q.buttonPosition||{},A=q.inputEnabled,B=w&&w.states,C=d.plotLeft,E,F=this.getPosition(),H=c.group,J=c.rendered;!1!==q.enabled&&(J||(c.group=H=e.g("range-selector-buttons").add(),
497
+ c.zoomText=e.text(l.rangeSelectorZoom,n(y.x,C),15).css(q.labelStyle).add(H),E=n(y.x,C)+c.zoomText.getBBox().width+5,g(c.buttonOptions,function(a,b){t[b]=e.button(a.text,E,0,function(){c.clickButton(b);c.isActive=!0},w,B&&B.hover,B&&B.select,B&&B.disabled).attr({"text-align":"center"}).add(H);E+=t[b].width+n(q.buttonSpacing,5)}),!1!==A&&(c.div=r=f("div",null,{position:"relative",height:0,zIndex:1}),k.parentNode.insertBefore(r,k),c.inputGroup=r=e.g("input-group").add(),r.offset=0,c.drawInput("min"),
498
+ c.drawInput("max"))),c.updateButtonStates(),H[J?"animate":"attr"]({translateY:F.buttonTop}),!1!==A&&(r.align(x({y:F.inputTop,width:r.offset,x:h&&F.inputTop<(h.y||0)+h.height-d.spacing[0]?-40:0},q.inputPosition),!0,d.spacingBox),u(A)||(d=H.getBBox(),r[r.alignAttr.translateX<d.x+d.width+10?"hide":"show"]()),c.setInputValue("min",a),c.setInputValue("max",b)),c.rendered=!0)},update:function(a){var b=this.chart;A(!0,b.options.rangeSelector,a);this.destroy();this.init(b)},destroy:function(){var b=this,
499
+ d=b.minInput,f=b.maxInput;b.unMouseDown();b.unResize();k(b.buttons);d&&(d.onfocus=d.onblur=d.onchange=null);f&&(f.onfocus=f.onblur=f.onchange=null);a.objectEach(b,function(a,c){a&&"chart"!==c&&(a.destroy?a.destroy():a.nodeType&&e(this[c]));a!==C.prototype[c]&&(b[c]=null)},this)}};F.prototype.toFixedRange=function(a,b,e,f){var c=this.chart&&this.chart.fixedRange;a=n(e,this.translate(a,!0,!this.horiz));b=n(f,this.translate(b,!0,!this.horiz));e=c&&(b-a)/c;.7<e&&1.3>e&&(f?a=b-c:b=a+c);d(a)||(a=b=void 0);
500
+ return{min:a,max:b}};F.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],e,f=this.max,g,k,l=function(a,c){var d=new Date(a),e=d["get"+b]();d["set"+b](e+c);e===d["get"+b]()&&d.setDate(0);return d.getTime()-a};d(a)?(e=f-a,k=a):(e=f+l(f,-a.count),this.chart&&(this.chart.fixedRange=f-e));g=n(this.dataMin,Number.MIN_VALUE);d(e)||(e=g);e<=g&&(e=g,void 0===k&&(k=l(e,a.count)),this.newMax=Math.min(e+k,this.dataMax));d(f)||(e=void 0);return e};J(E.prototype,"init",
501
+ function(a,b,d){B(this,"init",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});a.call(this,b,d)});E.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();d(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=B(a.xAxis[0],"afterSetExtremes",function(a){e.render(a.min,a.max)}),f=B(a,"redraw",b),b());B(a,"destroy",function(){e&&(f(),g())})});a.RangeSelector=C})(L);(function(a){var C=a.arrayMax,B=a.arrayMin,F=a.Axis,E=a.Chart,q=a.defined,
502
+ f=a.each,t=a.extend,p=a.format,y=a.grep,u=a.inArray,k=a.isNumber,e=a.isString,g=a.map,x=a.merge,b=a.pick,l=a.Point,d=a.Renderer,A=a.Series,n=a.splat,H=a.SVGRenderer,r=a.VMLRenderer,J=a.wrap,c=A.prototype,w=c.init,K=c.processData,v=l.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,d,f){var h=e(c)||c.nodeName,k=arguments[h?1:0],l=k.series,m=a.getOptions(),p,q=b(k.navigator&&k.navigator.enabled,m.navigator.enabled,!0),t=q?{startOnTick:!1,endOnTick:!1}:null,r={marker:{enabled:!1,radius:2}},
503
+ u={shadow:!1,borderWidth:0};k.xAxis=g(n(k.xAxis||{}),function(a){return x({minPadding:0,maxPadding:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},m.xAxis,a,{type:"datetime",categories:null},t)});k.yAxis=g(n(k.yAxis||{}),function(a){p=b(a.opposite,!0);return x({labels:{y:-2},opposite:p,showLastLabel:!1,title:{text:null}},m.yAxis,a)});k.series=null;k=x({chart:{panning:!0,pinchType:"x"},navigator:{enabled:q},scrollbar:{enabled:b(m.scrollbar.enabled,!0)},rangeSelector:{enabled:b(m.rangeSelector.enabled,
504
+ !0)},title:{text:null},tooltip:{shared:!0,crosshairs:!0},legend:{enabled:!1},plotOptions:{line:r,spline:r,area:r,areaspline:r,arearange:r,areasplinerange:r,column:u,columnrange:u,candlestick:u,ohlc:u}},k,{isStock:!0});k.series=l;return h?new E(c,k,f):new E(k,d)};J(F.prototype,"autoLabelAlign",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&d.enabled)?(15===d.x&&
505
+ (d.x=0),void 0===d.align&&(d.align="right"),b[c]=this,"right"):a.call(this,[].slice.call(arguments,1))});J(F.prototype,"destroy",function(a){var b=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&b._labelPanes&&b._labelPanes[c]===this&&delete b._labelPanes[c];return a.call(this,Array.prototype.slice.call(arguments,1))});J(F.prototype,"getPlotLinePath",function(c,d,l,h,n,p){var m=this,t=this.isLinked&&!this.series?this.linkedParent.series:this.series,r=m.chart,v=r.renderer,w=
506
+ m.left,x=m.top,z,y,D,A,B=[],C=[],E,I;if("colorAxis"===m.coll)return c.apply(this,[].slice.call(arguments,1));C=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=m.options[b];return k(a)?[r[b][a]]:e(a)?[r.get(a)]:g(t,function(a){return a[b]})}(m.coll);f(m.isXAxis?r.yAxis:r.xAxis,function(a){if(q(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=q(a.options[b])?r[b][a.options[b]]:r[b][0];m===b&&C.push(a)}});E=C.length?[]:[m.isXAxis?r.yAxis[0]:r.xAxis[0]];f(C,function(b){-1!==
507
+ u(b,E)||a.find(E,function(a){return a.pos===b.pos&&a.len&&b.len})||E.push(b)});I=b(p,m.translate(d,null,null,h));k(I)&&(m.horiz?f(E,function(a){var b;y=a.pos;A=y+a.len;z=D=Math.round(I+m.transB);if(z<w||z>w+m.width)n?z=D=Math.min(Math.max(w,z),w+m.width):b=!0;b||B.push("M",z,y,"L",D,A)}):f(E,function(a){var b;z=a.pos;D=z+a.len;y=A=Math.round(x+m.height-I);if(y<x||y>x+m.height)n?y=A=Math.min(Math.max(x,y),m.top+m.height):b=!0;b||B.push("M",z,y,"L",D,A)}));return 0<B.length?v.crispPolyLine(B,l||1):
508
+ null});F.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};H.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/
509
+ 2);return a};d===r&&(r.prototype.crispPolyLine=H.prototype.crispPolyLine);J(F.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});J(F.prototype,"drawCrosshair",function(a,c,d){var e,f;a.call(this,c,d);if(q(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var g=this.options.crosshair.label,k=this.horiz;e=this.opposite;f=this.left;var l=this.top,m=this.crossLabel,n,r=g.format,u="",v="inside"===this.options.tickPosition,
510
+ w=!1!==this.crosshair.snap,x=0;c||(c=this.cross&&this.cross.e);n=k?"center":e?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";m||(m=this.crossLabel=a.renderer.label(null,null,null,g.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:g.align||n,padding:b(g.padding,8),r:b(g.borderRadius,3),zIndex:2}).add(this.labelGroup),m.attr({fill:g.backgroundColor||this.series[0]&&this.series[0].color||
511
+ "#666666",stroke:g.borderColor||"","stroke-width":g.borderWidth||0}).css(t({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},g.style)));k?(n=w?d.plotX+f:c.chartX,l+=e?0:this.height):(n=e?this.width+f:0,l=w?d.plotY+l:c.chartY);r||g.formatter||(this.isDatetimeAxis&&(u="%b %d, %Y"),r="{value"+(u?":"+u:"")+"}");c=w?d[this.isXAxis?"x":"y"]:this.toValue(k?c.chartX:c.chartY);m.attr({text:r?p(r,{value:c}):g.formatter.call(this,c),x:n,y:l,visibility:"visible"});c=m.getBBox();if(k){if(v&&
512
+ !e||!v&&e)l=m.y-c.height}else l=m.y-c.height/2;k?(e=f-c.x,f=f+this.width-c.x):(e="left"===this.labelAlign?f:0,f="right"===this.labelAlign?f+this.width:a.chartWidth);m.translateX<e&&(x=e-m.translateX);m.translateX+c.width>=f&&(x=-(m.translateX+c.width-f));m.attr({x:n+x,y:l,anchorX:k?n:this.opposite?0:a.chartWidth,anchorY:k?this.opposite?a.chartHeight:0:l+c.height/2})}});c.init=function(){w.apply(this,arguments);this.setCompare(this.options.compare)};c.setCompare=function(a){this.modifyValue="value"===
513
+ a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};c.processData=function(){var a,b=-1,c,d,e,f;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(c=this.processedXData,d=this.processedYData,e=d.length,this.pointArrayMap&&(b=u("close",this.pointArrayMap),-1===b&&(b=u(this.pointValKey||"y",this.pointArrayMap))),
514
+ a=0;a<e-1;a++)if(f=d[a]&&-1<b?d[a][b]:d[a],k(f)&&c[a+1]>=this.xAxis.min&&0!==f){this.compareValue=f;break}};J(c,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=B(b),this.dataMax=C(b))});F.prototype.setCompare=function(a,c){this.isXAxis||(f(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};l.prototype.tooltipFormatter=function(c){c=c.replace("{point.change}",
515
+ (0<this.change?"+":"")+a.numberFormat(this.change,b(this.series.tooltipOptions.changeDecimals,2)));return v.apply(this,[c])};J(A.prototype,"render",function(a){this.chart.is3d&&this.chart.is3d()||this.chart.polar||!this.xAxis||this.xAxis.isRadial||(!this.clipBox&&this.animate?(this.clipBox=x(this.chart.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len):this.chart[this.sharedClipKey]?this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:this.yAxis.len}):this.clipBox&&
516
+ (this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len));a.call(this)});J(E.prototype,"getSelectedPoints",function(a){var b=a.call(this);f(this.series,function(a){a.hasGroupedData&&(b=b.concat(y(a.points||[],function(a){return a.selected})))});return b});J(E.prototype,"update",function(a,b){"scrollbar"in b&&this.navigator&&(x(!0,this.options.scrollbar,b.scrollbar),this.navigator.update({},!1),delete b.scrollbar);return a.apply(this,Array.prototype.slice.call(arguments,1))})})(L);return L});