highchartsScript top-level constant
String
const highchartsScript
Implementation
const highchartsScript = r'''
!function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):"function"==typeof define&&define.amd?define("highcharts/highcharts",function(){return e(t)}):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}("undefined"!=typeof window?window:this,function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}var i={};return e(i,"Core/Globals.js",[],function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,s=e.navigator&&e.navigator.userAgent||"",o=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=/(edge|msie|trident)/i.test(s)&&!e.opera,n=-1!==s.indexOf("Firefox"),a=-1!==s.indexOf("Chrome"),h=n&&4>parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.2.2",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:h,hasTouch:!!e.TouchEvent,isMS:r,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:n,isChrome:a,isSafari:!a&&-1!==s.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(s),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:o,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],function(t){function e(t,i,s,o){var r=i?"Highcharts error":"Highcharts warning";32===t&&(t=r+": Deprecated member");var n=g(t),a=n?r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(r=function(){if(i)throw Error(a);l.console&&-1===e.messages.indexOf(a)&&console.log(a)},void 0!==o){var h="";n&&(a+="?"),Y(o,function(t,e){h+="\n - "+e+": "+t,n&&(a+=encodeURI(e)+"="+encodeURI(t))}),a+=h}s?_(s,"displayError",{code:t,message:a,params:o},r):r(),e.messages.push(a)}function i(){var t,e=arguments,i={},o=function(t,e){return"object"!=typeof t&&(t={}),Y(e,function(i,r){!s(i,!0)||f(i)||u(i)?t[r]=e[r]:t[r]=o(t[r]||{},i)}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t<r;t++)i=o(i,e[t]);return i}function s(t,e){return!(!t||"object"!=typeof t||e&&p(t))}function o(t,e,i){var s;return d(e)?y(i)?t.setAttribute(e,i):t&&t.getAttribute&&((s=t.getAttribute(e))||"class"!==e||(s=t.getAttribute(e+"Name"))):Y(e,function(e,i){t.setAttribute(i,e)}),s}function r(){for(var t=arguments,e=t.length,i=0;i<e;i++){var s=t[i];if(null!=s)return s}}function n(t,e){if(!t)return e;var i=t.split(".").reverse();if(1===i.length)return e[t];for(t=i.pop();void 0!==t&&null!=e;)e=e[t],t=i.pop();return e}t.timers=[];var a=t.charts,h=t.doc,l=t.win;(e||(e={})).messages=[],t.error=e,t.merge=i;var c=t.pInt=function(t,e){return parseInt(t,e||10)},d=t.isString=function(t){return"string"==typeof t},p=t.isArray=function(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t};t.isObject=s;var u=t.isDOMElement=function(t){return s(t)&&"number"==typeof t.nodeType},f=t.isClass=function(t){var e=t&&t.constructor;return!(!s(t,!0)||u(t)||!e||!e.name||"Object"===e.name)},g=t.isNumber=function(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t},m=t.erase=function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},y=t.defined=function(t){return null!=t};t.attr=o;var v=t.splat=function(t){return p(t)?t:[t]},x=t.syncTimeout=function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},b=t.clearTimeout=function(t){y(t)&&clearTimeout(t)},k=t.extend=function(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t};t.pick=r;var M=t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),k(e.style,i)},S=t.createElement=function(t,e,i,s,o){return t=h.createElement(t),e&&k(t,e),o&&M(t,{padding:"0",border:"none",margin:"0"}),i&&M(t,i),s&&s.appendChild(t),t},w=t.extendClass=function(t,e){var i=function(){};return i.prototype=new t,k(i.prototype,e),i},C=t.pad=function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},A=t.relativeLength=function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},T=t.wrap=function(t,e,i){var s=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,o=this;return o.proceed=function(){s.apply(o,arguments.length?arguments:e)},t.unshift(s),t=i.apply(this,t),o.proceed=null,t}},P=t.format=function(e,i,s){var o="{",r=!1,a=[],h=/f$/,l=/\.([0-9])/,c=t.defaultOptions.lang,d=s&&s.time||t.time;for(s=s&&s.numberFormatter||N;e;){var p=e.indexOf(o);if(-1===p)break;var u=e.slice(0,p);if(r){if(o=n((u=u.split(":")).shift()||"",i),u.length&&"number"==typeof o)if(u=u.join(":"),h.test(u)){var f=parseInt((u.match(l)||["","-1"])[1],10);null!==o&&(o=s(o,f,c.decimalPoint,-1<u.indexOf(",")?c.thousandsSep:""))}else o=d.dateFormat(u,o);a.push(o)}else a.push(u);e=e.slice(p+1),o=(r=!r)?"}":"{"}return a.push(e),a.join("")},L=t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},O=t.normalizeTickInterval=function(t,e,i,s,o){var n=t,a=t/(i=r(i,1));for(e||(e=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===i?e=e.filter(function(t){return 0==t%1}):.1>=i&&(e=[1/i]))),s=0;s<e.length&&(n=e[s],!(o&&n*i>=t||!o&&a<=(e[s]+(e[s+1]||e[s]))/2));s++);return z(n*i,-Math.round(Math.log(.001)/Math.LN10))},E=t.stableSort=function(t,e){var i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI},D=t.arrayMin=function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},I=t.arrayMax=function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},B=t.destroyObjectProperties=function(t,e){Y(t,function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]})},j=t.discardElement=function(e){var i=t.garbageBin;i||(i=S("div")),e&&i.appendChild(e),i.innerHTML=""},z=t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},R=t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},N=t.numberFormat=function(e,i,s,o){e=+e||0,i=+i;var n=t.defaultOptions.lang,a=(e.toString().split(".")[1]||"").split("e")[0].length,h=e.toString().split("e");if(-1===i)i=Math.min(a,20);else if(g(i)){if(i&&h[1]&&0>h[1]){var l=i+ +h[1];0<=l?(h[0]=(+h[0]).toExponential(l).split("e")[0],i=l):(h[0]=h[0].split(".")[0]||0,e=20>i?(h[0]*Math.pow(10,h[1])).toFixed(i):0,h[1]=0)}}else i=2;var d=(Math.abs(h[1]?h[0]:e)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i);return l=3<(a=String(c(d))).length?a.length%3:0,s=r(s,n.decimalPoint),o=r(o,n.thousandsSep),e=(0>e?"-":"")+(l?a.substr(0,l)+o:""),e+=a.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o),i&&(e+=s+d.slice(-i)),h[1]&&0!=+e&&(e+="e"+h[1]),e};Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var W=t.getStyle=function(i,s,o){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),(o=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&o>=s-1&&(s=Math.floor(o)),Math.max(0,s-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===s?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(l.getComputedStyle||e(27,!0),(i=l.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),r(o,"opacity"!==s)&&(i=c(i))),i)},G=t.inArray=function(t,i,s){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,s)},X=t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};t.keys=function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)};var H=t.offset=function(t){var e=h.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(l.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(l.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},Y=t.objectEach=function(t,e,i){for(var s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)};Y({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,s){t[s]=function(t){var o;return e(32,!1,void 0,((o={})["Highcharts."+s]="use Array."+i,o)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}});var F,U=t.addEvent=function(e,i,s,o){void 0===o&&(o={});var r=e.addEventListener||t.addEventListenerPolyfill,n="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{};return t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),r&&r.call(e,i,s,!1),n[i]||(n[i]=[]),n[i].push({fn:s,order:"number"==typeof o.order?o.order:1/0}),n[i].sort(function(t,e){return t.order-e.order}),function(){V(e,i,s)}},V=t.removeEvent=function(e,i,s){function o(i,s){var o=e.removeEventListener||t.removeEventListenerPolyfill;o&&o.call(e,i,s,!1)}function r(t){var s;if(e.nodeName){if(i){var r={};r[i]=!0}else r=t;Y(r,function(e,i){if(t[i])for(s=t[i].length;s--;)o(i,t[i][s].fn)})}}var n;["protoEvents","hcEvents"].forEach(function(t,a){var h=(a=a?e:e.prototype)&&a[t];h&&(i?(n=h[i]||[],s?(h[i]=n.filter(function(t){return s!==t.fn}),o(i,s)):(r(h),h[i]=[])):(r(h),a[t]={}))})},_=t.fireEvent=function(t,e,i,s){var o;if(i=i||{},h.createEvent&&(t.dispatchEvent||t.fireEvent)){var r=h.createEvent("Events");r.initEvent(e,!0,!0),k(r,i),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent(e,r)}else i.target||k(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e}),function(e,s){void 0===e&&(e=[]),void 0===s&&(s=[]);var r=0,n=0,a=e.length+s.length;for(o=0;o<a;o++)!1===(e[r]?s[n]?e[r].order<=s[n].order?e[r++]:s[n++]:e[r++]:s[n++]).fn.call(t,i)&&i.preventDefault()}(t.protoEvents&&t.protoEvents[e],t.hcEvents&&t.hcEvents[e]);s&&!i.defaultPrevented&&s.call(t,i)},K=t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(F?"":t)+e++}}(),Z=t.useSerialIds=function(t){return F=r(t,F)},q=t.isFunction=function(t){return"function"==typeof t},$=t.getOptions=function(){return t.defaultOptions},J=t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(i(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions};return l.jQuery&&(l.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[d(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):a[o(this[0],"data-highcharts-chart")]}),{addEvent:U,arrayMax:I,arrayMin:D,attr:o,clamp:function(t,e,i){return t>e?t<i?t:i:e},clearTimeout:b,correctFloat:z,createElement:S,css:M,defined:y,destroyObjectProperties:B,discardElement:j,erase:m,error:e,extend:k,extendClass:w,find:X,fireEvent:_,format:P,getMagnitude:L,getNestedProperty:n,getOptions:$,getStyle:W,inArray:G,isArray:p,isClass:f,isDOMElement:u,isFunction:q,isNumber:g,isObject:s,isString:d,merge:i,normalizeTickInterval:O,numberFormat:N,objectEach:Y,offset:H,pad:C,pick:r,pInt:c,relativeLength:A,removeEvent:V,setOptions:J,splat:v,stableSort:E,syncTimeout:x,timeUnits:R,uniqueKey:K,useSerialIds:Z,wrap:T}}),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.isNumber,s=e.merge,o=e.pInt;return e=function(){function e(i){return this.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(t){return[o(t[1]),o(t[2]),o(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),1]}}],this.rgba=[],t.Color!==e?new t.Color(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return new e(t)},e.prototype.init=function(t){var i,s;if((this.input=t=e.names[t&&t.toLowerCase?t.toLowerCase():""]||t)&&t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else{if(t&&t.charAt&&"#"===t.charAt()){var o=t.length;t=parseInt(t.substr(1),16),7===o?i=[(16711680&t)>>16,(65280&t)>>8,255&t,1]:4===o&&(i=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var r=this.parsers[s];(o=r.regex.exec(t))&&(i=r.parse(o))}}this.rgba=i||[]},e.prototype.get=function(t){var e=this.input,o=this.rgba;if(void 0!==this.stops){var r=s(e);r.stops=[].concat(r.stops),this.stops.forEach(function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]})}else r=o&&i(o[0])?"rgb"===t||!t&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===t?o[3]:"rgba("+o.join(",")+")":e;return r},e.prototype.brighten=function(t){var e,s=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(e=0;3>e;e++)s[e]+=o(255*t),0>s[e]&&(s[e]=0),255<s[e]&&(s[e]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,s=t.rgba;return s.length&&i&&i.length?e=((t=1!==s[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(s[0]+(i[0]-s[0])*(1-e))+","+Math.round(s[1]+(i[1]-s[1])*(1-e))+","+Math.round(s[2]+(i[2]-s[2])*(1-e))+(t?","+(s[3]+(i[3]-s[3])*(1-e)):"")+")":e=t.input||"none",e},e.names={white:"#ffffff",black:"#000000"},e}(),t.Color=e,t.color=e.parse,e}),e(i,"Core/Animation/Fx.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.win,s=e.isNumber,o=e.objectEach;return e=function(){function e(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return e.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=[],s=this.now||0;if(1!==s&&e&&t)if(e.length===t.length&&1>s)for(var o=0;o<t.length;o++){for(var r=e[o],n=t[o],a=[],h=0;h<n.length;h++){var l=r[h],c=n[h];a[h]="number"==typeof l&&"number"==typeof c&&("A"!==n[0]||4!==h&&5!==h)?l+s*(c-l):c}i.push(a)}else i=t;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)},e.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)},e.prototype.run=function(e,s,o){var r=this,n=r.options,a=function(t){return!a.stopped&&r.step(t)},h=i.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&h(l)};e!==s||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=s,this.unit=o,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&h(l)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},e.prototype.step=function(t){var e=+new Date,i=this.options,s=this.elem,r=i.complete,n=i.duration,a=i.curAnim;if(s.attr&&!s.element)t=!1;else if(t||e>=n+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;o(a,function(t){!0!==t&&(h=!1)}),h&&r&&r.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,i){function o(t,e){for(;t.length<p;){var i=t[0],s=e[p-t.length];s&&"M"===i[0]&&(t[0]="C"===s[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),h&&t.push(t[t.length-1])}}function r(t,e){for(;t.length<p;)if("C"===(e=t[t.length/l-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),h){var i=t[t.length/l].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}var n=t.startX,a=t.endX;e=e&&e.slice(),i=i.slice();var h=t.isArea,l=h?2:1;if(!e)return[i,i];if(n&&a){for(t=0;t<n.length;t++){if(n[t]===a[0]){var c=t;break}if(n[0]===a[a.length-n.length+t]){c=t;var d=!0;break}if(n[n.length-1]===a[a.length-n.length+t]){c=n.length-t;break}}void 0===c&&(e=[])}if(e.length&&s(c)){var p=i.length+c*l;d?(o(e,i),r(i,e)):(o(i,e),r(e,i))}return[e,i]},e.prototype.fillSetter=function(){e.prototype.strokeSetter.apply(this,arguments)},e.prototype.strokeSetter=function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)},e}(),t.Fx=e}),e(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var s=i.defined,o=i.getStyle,r=i.isArray,n=i.isNumber,a=i.isObject,h=i.merge,l=i.objectEach,c=i.pick;i=e.setAnimation=function(t,e){e.renderer.globalAnimation=c(t,e.options.chart.animation,!0)};var d=e.animObject=function(t){return a(t)?e.merge({duration:500,defer:0},t):{duration:t?500:0,defer:0}},p=e.getDeferredAnimation=function(t,e,i){var o=d(e),r=0,n=0;return(i?[i]:t.series).forEach(function(t){t=d(t.options.animation),r=e&&s(e.defer)?o.defer:Math.max(r,t.duration+t.defer),n=Math.min(o.duration,t.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-n),duration:Math.min(r,n)}},u=e.animate=function(e,i,s){var c,d,p,u="";if(!a(s)){var g=arguments;s={duration:g[2],easing:g[3],complete:g[4]}}n(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=h(i),l(i,function(n,a){f(e,a),p=new t(e,s,a),d=null,"d"===a&&r(i.d)?(p.paths=p.initPath(e,e.pathArray,i.d),p.toD=i.d,c=0,d=1):e.attr?c=e.attr(a):(c=parseFloat(o(e,a))||0,"opacity"!==a&&(u="px")),d||(d=n),d&&d.match&&d.match("px")&&(d=d.replace(/px/g,"")),p.run(c,d,u)})},f=e.stop=function(t,i){for(var s=e.timers.length;s--;)e.timers[s].elem!==t||i&&i!==e.timers[s].prop||(e.timers[s].stopped=!0)};return{animate:u,animObject:d,getDeferredAnimation:p,setAnimation:i,stop:f}}),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i,s){var o=t.animate,r=t.animObject,n=t.stop,a=i.deg2rad,h=i.doc,l=i.hasTouch,c=i.isFirefox,d=i.noop,p=i.svg,u=i.SVG_NS,f=i.win,g=s.attr,m=s.createElement,y=s.css,v=s.defined,x=s.erase,b=s.extend,k=s.fireEvent,M=s.isArray,S=s.isFunction,w=s.isNumber,C=s.isString,A=s.merge,T=s.objectEach,P=s.pick,L=s.pInt,O=s.syncTimeout,E=s.uniqueKey;return(t=function(){function t(){this.height=this.element=void 0,this.opacity=1,this.renderer=void 0,this.SVG_NS=u,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" "),this.width=void 0}return t.prototype._defaultGetter=function(t){return t=P(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var s=this.zIndexSetter();return s||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var s,o,r,n={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||C(i))&&(this.alignTo=s=i||"renderer",x(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,s=this.alignTo),i=P(i,a[s],a),s=t.align,a=t.verticalAlign,h=(i.x||0)+(t.x||0);var l=(i.y||0)+(t.y||0);return"right"===s?o=1:"center"===s&&(o=2),o&&(h+=(i.width-(t.width||0))/o),n[e?"translateX":"x"]=Math.round(h),"bottom"===a?r=1:"middle"===a&&(r=2),r&&(l+=(i.height-(t.height||0))/r),n[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](n),this.placed=!0,this.alignAttr=n,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var s=this,n=r(P(e,this.renderer.globalAnimation,!0));return e=n.defer,P(h.hidden,h.msHidden,h.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),O(function(){s.element&&o(s,t,n)},e)):(this.attr(t,void 0,i),T(t,function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1})},this)),this},t.prototype.applyTextOutline=function(t){var e,s=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(s.style.fill)));var o=(t=t.split(" "))[t.length-1];if((e=t[0])&&"none"!==e&&i.svg){this.fakeTS=!0,t=[].slice.call(s.getElementsByTagName("tspan")),this.ySetter=this.xSetter,e=e.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*e+i}),this.removeTextOutline(t);var r=!!s.textContent&&/^[\u0591-\u065F\u066A-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(s.textContent),n=s.firstChild;t.forEach(function(t,i){0===i&&(t.setAttribute("x",s.getAttribute("x")),i=s.getAttribute("y"),t.setAttribute("y",i||0),null===i&&s.setAttribute("y",0)),i=t.cloneNode(!0),g(r&&!c?t:i,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":e,"stroke-linejoin":"round"}),s.insertBefore(i,n)}),r&&c&&t[0]&&((t=t[0].cloneNode(!0)).textContent=" ",s.insertBefore(t,n))}},t.prototype.attr=function(t,e,i,s){var o,r,a,h=this.element,l=this,c=this.symbolCustomAttribs;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(T(t,function(e,i){r=!1,s||n(this,i),this.symbolName&&-1!==c.indexOf(i)&&(o||(this.symbolAttr(t),o=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||((a=this[i+"Setter"]||this._defaultSetter).call(this,e,i,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,a))},this),this.afterSetters()),i&&i.call(this),l},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),v(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,i,s){var o,r,n,a,h,l,c,d,p,u,f,g=this.renderer,m=[];k(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],h=g.gradients,l=t.stops,p=s.radialReference,M(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!v(n.gradientUnits)&&(a=n,n=A(n,g.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),T(n,function(t,e){"id"!==e&&m.push(e,t)}),T(l,function(t){m.push(t)}),m=m.join(","),h[m])u=h[m].attr("id");else{n.id=u=E();var y=h[m]=g.createElement(r).attr(n).add(g.defs);y.radAttr=a,y.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(o=e.parse(t[1]),c=o.get("rgb"),d=o.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(y),y.stops.push(t)})}f="url("+g.url+"#"+u+")",s.setAttribute(i,f),s.gradient=m,t.toString=function(){return f}}})},t.prototype.css=function(t){var e=this.styles,i={},s=this.element,o="",r=!e,n=["textOutline","textOverflow","width"];if(t&&t.color&&(t.fill=t.color),e&&T(t,function(t,s){e&&e[s]!==t&&(i[s]=t,r=!0)}),r){if(e&&(t=b(e,i)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===s.nodeName.toLowerCase()&&t.width)var a=this.textWidth=L(t.width);if(this.styles=t,a&&!p&&this.renderer.forExport&&delete t.width,s.namespaceURI===this.SVG_NS){var h=function(t,e){return"-"+e.toLowerCase()};T(t,function(t,e){-1===n.indexOf(e)&&(o+=e.replace(/([A-Z])/g,h)+":"+t+";")}),o&&g(s,"style",o)}else y(s,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.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(t=i.length;t--;)i[t]=""+L(i[t])*P(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0,o=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,n(t),t.clipPath&&o){var r=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(r.element.id)&&t.removeAttribute("clip-path")}),t.clipPath=r.destroy()}if(t.stops){for(o=0;o<t.stops.length;o++)t.stops[o].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();s&&s.div&&0===s.div.childNodes.length;)e=s.parentGroup,t.safeRemoveChild(s.div),delete s.div,s=e;t.alignTo&&x(i.alignedObjects,t),T(t,function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,i){M(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:P(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.getBBox=function(e,i){var s,o=this.renderer,r=this.element,n=this.styles,h=this.textStr,l=o.cache,c=o.cacheKeys,d=r.namespaceURI===this.SVG_NS;i=P(i,this.rotation,0);var p=o.styledMode?r&&t.prototype.getStyle.call(r,"font-size"):n&&n.fontSize;if(v(h)){var u=h.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0")),u+=["",i,p,this.textWidth,n&&n.textOverflow,n&&n.fontWeight].join()}if(u&&!e&&(s=l[u]),!s){if(d||o.forExport){try{var f=this.fakeTS&&function(t){[].forEach.call(r.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})};S(f)&&f("none"),s=r.getBBox?b({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight},S(f)&&f("")}catch(t){}(!s||0>s.width)&&(s={width:0,height:0})}else s=this.htmlGetBBox();if(o.isSVG&&(e=s.width,o=s.height,d&&(s.height=o={"11px,17":14,"13px,20":16}[n&&n.fontSize+","+Math.round(o)]||o),i&&(n=i*a,s.width=Math.abs(o*Math.sin(n))+Math.abs(e*Math.cos(n)),s.height=Math.abs(o*Math.cos(n))+Math.abs(e*Math.sin(n)))),u&&0<s.height){for(;250<c.length;)delete l[c.shift()];l[u]||c.push(u),l[u]=s}}return s},t.prototype.getStyle=function(t){return f.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?m(e):h.createElementNS(this.SVG_NS,e),this.renderer=t,k(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var i,s,o,r=this.element;return l&&"click"===t?(r.ontouchstart=function(t){i=t.touches[0].clientX,s=t.touches[0].clientY},r.ontouchend=function(t){i&&4<=Math.sqrt(Math.pow(i-t.changedTouches[0].clientX,2)+Math.pow(s-t.changedTouches[0].clientY,2))||e.call(r,t),o=!0,!1!==t.cancelable&&t.preventDefault()},r.onclick=function(t){o||e.call(r,t)}):r["on"+t]=e,this},t.prototype.opacitySetter=function(t,e,i){this.opacity=t=Number(Number(t).toFixed(3)),i.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(C(t)?new RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&x(t,this.element.removeChild(e))},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,e){var i=this.element,s={textAnchor:"text-anchor"},o=!1,r=this.textPathWrapper,n=!r,a=(e=A(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e)).attributes;if(t&&e&&e.enabled){r&&null===r.element.parentNode?(n=!0,r=r.destroy()):r&&this.removeTextOutline.call(r.parentGroup,[].slice.call(i.getElementsByTagName("tspan"))),this.options&&this.options.padding&&(a.dx=-this.options.padding),r||(this.textPathWrapper=r=this.renderer.createElement("textPath"),o=!0);var h=r.element;if((e=t.element.getAttribute("id"))||t.element.setAttribute("id",e=E()),n)for(t=i.getElementsByTagName("tspan");t.length;)t[0].setAttribute("y",0),w(a.dx)&&t[0].setAttribute("x",-a.dx),h.appendChild(t[0]);o&&r&&r.add({element:this.text?this.text.element:i}),h.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+e),v(a.dy)&&(h.parentNode.setAttribute("dy",a.dy),delete a.dy),v(a.dx)&&(h.parentNode.setAttribute("dx",a.dx),delete a.dx),T(a,function(t,e){h.setAttribute(s[e]||e,t)}),i.removeAttribute("transform"),this.removeTextOutline.call(r,[].slice.call(i.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=d}else r&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(i,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},t.prototype.shadow=function(t,e,i){var s,o=[],r=this.element,n=!1,a=this.oldShadowOptions,h={color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:3};if(!0===t?s=h:"object"==typeof t&&(s=b(h,t)),s&&(s&&a&&T(s,function(t,e){t!==a[e]&&(n=!0)}),n&&this.destroyShadows(),this.oldShadowOptions=s),s){if(!this.shadows){var l=s.opacity/s.width,c=this.parentInverted?"translate(-1,-1)":"translate("+s.offsetX+", "+s.offsetY+")";for(h=1;h<=s.width;h++){var d=r.cloneNode(!1),p=2*s.width+1-2*h;g(d,{stroke:t.color||"#000000","stroke-opacity":l*h,"stroke-width":p,transform:c,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),i&&(g(d,"height",Math.max(g(d,"height")-p,0)),d.cutHeight=p),e?e.element.appendChild(d):r.parentNode&&r.parentNode.insertBefore(d,r),o.push(d)}this.shadows=o}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,i,s){this[i]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",s),s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===e&&this.hasStroke?(s.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=L(t);else if(""!==t){var i=h.createElementNS(u,"rect");g(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(i){e[i]=P(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=h.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(h.createTextNode(String(P(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,i){var s=this.shadows;if(s)for(var o=s.length;o--;)i.call(s[o],"height"===t?Math.max(e-(s[o].cutHeight||0),0):"d"===t?this.d:e,t,s[o])},t.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,s=this.scaleY,o=this.inverted,r=this.rotation,n=this.matrix,a=this.element;o&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],v(n)&&t.push("matrix("+n.join(",")+")"),o?t.push("rotate(90) scale(-1,1)"):r&&t.push("rotate("+r+" "+P(this.rotationOriginX,a.getAttribute("x"),0)+" "+P(this.rotationOriginY,a.getAttribute("y")||0)+")"),(v(i)||v(s))&&t.push("scale("+P(i,1)+" "+P(s,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i=this.renderer,s=this.parentGroup,o=(s||i).element||i.box,r=this.element,n=!1;i=o===i.box;var a,h=this.added;if(v(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):v(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&s&&(s.handleZ=!0),a=(e=o.childNodes).length-1;0<=a&&!n;a--){h=(s=e[a]).getAttribute("data-z-index");var l=!v(h);s!==r&&(0>t&&l&&!i&&!a?(o.insertBefore(r,e[a]),n=!0):(L(h)<=t||l&&(!v(t)||0<=t))&&(o.insertBefore(r,e[a+1]||null),n=!0))}n||(o.insertBefore(r,e[i?3:0]||null),n=!0)}return n},t}()).prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},i.SVGElement=t,i.SVGElement}),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),s=e.defined,o=e.extend,r=e.isNumber,n=e.merge,a=e.removeEvent;return function(e){function h(t,i,s,o,r,n,a,l,c,d){var p=e.call(this)||this;if(p.init(t,"g"),p.textStr=i,p.x=s,p.y=o,p.anchorX=n,p.anchorY=a,p.baseline=c,p.className=d,"button"!==d&&p.addClass("highcharts-label"),d&&p.addClass("highcharts-"+d),p.text=t.text("",0,0,l).attr({zIndex:1}),"string"==typeof r){var u=/^url\((.*?)\)$/.test(r);(p.renderer.symbols[r]||u)&&(p.symbolKey=r)}return p.bBox=h.emptyBBox,p.padding=3,p.paddingLeft=0,p.baselineOffset=0,p.needsBox=t.styledMode||u,p.deferredAttr={},p.alignFactor=0,p}return i(h,e),h.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},h.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},h.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},h.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},h.prototype.css=function(e){if(e){var i={};e=n(e),h.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),this.text.css(i);var s="fontSize"in i||"fontWeight"in i;("width"in i||s)&&(this.updateBoxSize(),s&&this.updateTextPadding())}return t.prototype.css.call(this,e)},h.prototype.destroy=function(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},h.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},h.prototype.getBBox=function(){var t=this.bBox,e=this.padding;return{width:t.width+2*e,height:t.height+2*e,x:t.x-e,y:t.y-e}},h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},h.prototype.heightSetter=function(t){this.heightSetting=t},h.prototype.on=function(e,i){var s=this,o=s.text,r=o&&"SPAN"===o.element.tagName?o:void 0;if(r){var n=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(s.element.contains(t.relatedTarget)||r.element.contains(t.relatedTarget))||i.call(s.element,t)};r.on(e,n)}return t.prototype.on.call(s,e,n||i),s},h.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},h.prototype.paddingSetter=function(t){s(t)&&t!==this.padding&&(this.padding=t,this.updateTextPadding())},h.prototype.paddingLeftSetter=function(t){s(t)&&t!==this.paddingLeft&&(this.paddingLeft=t,this.updateTextPadding())},h.prototype.rSetter=function(t,e){this.boxAttr(e,t)},h.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},h.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},h.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},h.prototype["text-alignSetter"]=function(t){this.textAlign=t},h.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateBoxSize(),this.updateTextPadding()},h.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,n=this.paddingLeft,a=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?h.emptyBBox:this.text.getBBox();this.width=(this.widthSetting||a.width||0)+2*i+n,this.height=(this.heightSetting||a.height||0)+2*i,this.baselineOffset=i+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,a.height||1/0),this.needsBox&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t),e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(o(e,this.deferredAttr)),this.deferredAttr={}),this.bBox=a},h.prototype.updateTextPadding=function(){var t=this.text,e=this.baseline?0:this.baselineOffset,i=this.paddingLeft+this.padding;s(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0),this.updateBoxSize()),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},h.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},h.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*((this.widthSetting||this.bBox.width)+2*this.padding),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},h.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},h.emptyBBox={width:0,height:0,x:0,y:0},h.textProps="color cursor direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),h}(t)}),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Utilities.js"]],function(t,e,i,s,o){var r=o.addEvent,n=o.attr,a=o.createElement,h=o.css,l=o.defined,c=o.destroyObjectProperties,d=o.extend,p=o.isArray,u=o.isNumber,f=o.isObject,g=o.isString,m=o.merge,y=o.objectEach,v=o.pick,x=o.pInt,b=o.splat,k=o.uniqueKey,M=e.charts,S=e.deg2rad,w=e.doc,C=e.isFirefox,A=e.isMS,T=e.isWebKit;o=e.noop;var P=e.svg,L=e.SVG_NS,O=e.symbolSizes,E=e.win,D=function(){function e(t,e,i,s,o,r,n){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,s,o,r,n)}return e.prototype.init=function(t,e,i,s,o,a,l){var c,d=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});l||d.css(this.getStyle(s)),s=d.element,t.appendChild(s),n(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&n(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=d,this.alignedObjects=[],this.url=(C||T)&&w.getElementsByTagName("base").length?E.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 8.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=o,this.styledMode=l,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),C&&t.getBoundingClientRect&&((e=function(){h(t,{left:0,top:0}),c=t.getBoundingClientRect(),h(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=r(E,"resize",e))},e.prototype.definition=function(t){var e=this;return function t(i,s){var o;return b(i).forEach(function(i){var r=e.createElement(i.tagName),n={};y(i,function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(n[e]=t)}),r.attr(n),r.add(s||e.defs),i.textContent&&r.element.appendChild(w.createTextNode(i.textContent)),t(i.children||[],r),o=r}),o}(t)},e.prototype.getStyle=function(t){return this.style=d({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),c(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},e.prototype.truncate=function(t,e,i,s,o,r,n){var a,h,l=this,c=t.rotation,d=s?1:0,p=(i||s).length,u=p,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(w.createTextNode(t))},m=function(r,a){if(void 0===f[a=a||r])if(e.getSubStringLength)try{f[a]=o+e.getSubStringLength(0,s?a+1:a)}catch(t){}else l.getSpanWidth&&(g(n(i||s,r)),f[a]=o+l.getSpanWidth(t,e));return f[a]};t.rotation=0;var y=m(e.textContent.length);if(h=o+y>r){for(;d<=p;)u=Math.ceil((d+p)/2),s&&(a=n(s,u)),y=m(u,a&&a.length-1),d===p?d=p+1:y>r?p=u-1:d=u;0===p?g(""):i&&p===i.length-1||g(a||n(i||s,u))}return s&&s.splice(0,u),t.actualWidth=y,t.rotation=c,h},e.prototype.buildText=function(t){var e,i,s=t.element,o=this,r=o.forExport,a=v(t.textStr,"").toString(),l=-1!==a.indexOf("<"),c=s.childNodes,d=n(s,"x"),p=t.styles,u=t.textWidth,f=p&&p.lineHeight,m=p&&p.textOutline,b=p&&"ellipsis"===p.textOverflow,k=p&&"nowrap"===p.whiteSpace,M=p&&p.fontSize,S=c.length;p=u&&!t.added&&this.box;var C=function(t){var e;return o.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:M||o.style.fontSize||12),f?x(f):o.fontMetrics(e,t.getAttribute("style")?t:s).h},A=function(t,e){return y(o.escapes,function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))}),t},T=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},O=/<br.*?>/g,E=[a,b,k,f,m,M,u].join();if(E!==t.textCache){for(t.textCache=E;S--;)s.removeChild(c[S]);l||m||b||u||-1!==a.indexOf(" ")&&(!k||O.test(a))?(p&&p.appendChild(s),l?a=(a=o.styledMode?a.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):a.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(O):a=[a],(a=a.filter(function(t){return""!==t})).forEach(function(a,l){var c=0,p=0,f=(a=a.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");f.forEach(function(a){if(""!==a||1===f.length){var g,m,y={},v=w.createElementNS(o.SVG_NS,"tspan");if((g=T(a,"class"))&&n(v,"class",g),(g=T(a,"style"))&&(g=g.replace(/(;| |^)color([ :])/,"$1fill$2"),n(v,"style",g)),(m=T(a,"href"))&&!r&&-1===m.split(":")[0].toLowerCase().indexOf("javascript")){var x=w.createElementNS(o.SVG_NS,"a");n(x,"href",m),n(v,"class","highcharts-anchor"),x.appendChild(v),o.styledMode||h(v,{cursor:"pointer"})}if(" "!==(a=A(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(v.appendChild(w.createTextNode(a)),c?y.dx=0:l&&null!==d&&(y.x=d),n(v,y),s.appendChild(x||v),!c&&i&&(!P&&r&&h(v,{display:"block"}),n(v,"dy",C(v))),u){var S=a.replace(/([^\^])-/g,"$1- ").split(" ");if(y=!k&&(1<f.length||l||1<S.length),x=0,m=C(v),b)e=o.truncate(t,v,a,void 0,0,Math.max(0,u-parseInt(M||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(y)for(;S.length;)S.length&&!k&&0<x&&(v=w.createElementNS(L,"tspan"),n(v,{dy:m,x:d}),g&&n(v,"style",g),v.appendChild(w.createTextNode(S.join(" ").replace(/- /g,"-"))),s.appendChild(v)),o.truncate(t,v,null,S,0===x?p:0,u,function(t,e){return S.slice(0,e).join(" ").replace(/- /g,"-")}),p=t.actualWidth,x++}c++}}}),i=i||s.childNodes.length}),b&&e&&t.attr("title",A(t.textStr||"",["<",">"])),p&&p.removeChild(s),g(m)&&t.applyTextOutline&&t.applyTextOutline(m)):s.appendChild(w.createTextNode(A(a)))}},e.prototype.getContrast=function(e){return(e=t.parse(e).rgba)[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?"#000000":"#FFFFFF"},e.prototype.button=function(t,e,i,s,o,n,a,h,l,c){var p=this.label(t,e,i,l,void 0,void 0,c,void 0,"button"),u=0,f=this.styledMode;if(t=(o=o?m(o):o)&&o.style||{},o&&o.style&&delete o.style,p.attr(m({padding:8,r:2},o)),!f){var g=(o=m({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:t},o)).style;delete o.style;var y=(n=m(o,{fill:"#e6e6e6"},n)).style;delete n.style;var v=(a=m(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a)).style;delete a.style;var x=(h=m(o,{style:{color:"#cccccc"}},h)).style;delete h.style}return r(p.element,A?"mouseover":"mouseenter",function(){3!==u&&p.setState(1)}),r(p.element,A?"mouseout":"mouseleave",function(){3!==u&&p.setState(u)}),p.setState=function(t){1!==t&&(p.state=u=t),p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),f||p.attr([o,n,a,h][t||0]).css([g,y,v,x][t||0])},f||p.attr(o).css(d({cursor:"default"},g)),p.on("click",function(t){3!==u&&s.call(p,t)})},e.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var s=t[0],o=t[1];return s[1]===o[1]&&(s[1]=o[1]=Math[i](s[1])-e%2/2),s[2]===o[2]&&(s[2]=o[2]=Math[i](s[2])+e%2/2),t},e.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return p(t)?e.d=t:f(t)&&d(e,t),this.createElement("path").attr(e)},e.prototype.circle=function(t,e,i){return t=f(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},e.prototype.arc=function(t,e,i,s,o,r){return f(t)?(e=(s=t).y,i=s.r,t=s.x):s={innerR:s,start:o,end:r},(t=this.symbol("arc",t,e,i,i,s)).r=i,t},e.prototype.rect=function(t,e,i,s,o,r){o=f(t)?t.r:o;var a=this.createElement("rect");return t=f(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(s,0)},this.styledMode||(void 0!==r&&(t.strokeWidth=r,t=a.crisp(t)),t.fill="none"),o&&(t.r=o),a.rSetter=function(t,e,i){a.r=t,n(i,{rx:t,ry:t})},a.rGetter=function(){return a.r},a.attr(t)},e.prototype.setSize=function(t,e,i){var s=this.alignedObjects,o=s.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:v(i,!0)?void 0:0});o--;)s[o].align()},e.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},e.prototype.image=function(t,e,i,s,o,n){var a={preserveAspectRatio:"none"},h=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},l=function(e){h(c.element,t),n.call(c,e)};1<arguments.length&&d(a,{x:e,y:i,width:s,height:o});var c=this.createElement("image").attr(a);return n?(h(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new E.Image,r(a,"load",l),a.src=t,a.complete&&l({})):h(c.element,t),c},e.prototype.symbol=function(t,e,i,s,o,r){var n,c=this,p=/^url\((.*?)\)$/,u=p.test(t),f=!u&&(this.symbols[t]?t:"circle"),g=f&&this.symbols[f];if(g){"number"==typeof e&&(n=g.call(this.symbols,Math.round(e||0),Math.round(i||0),s||0,o||0,r));var m=this.path(n);c.styledMode||m.attr("fill","none"),d(m,{symbolName:f,x:e,y:i,width:s,height:o}),r&&d(m,r)}else if(u){var y=t.match(p)[1];(m=this.image(y)).imgwidth=v(O[y]&&O[y].width,r&&r.width),m.imgheight=v(O[y]&&O[y].height,r&&r.height);var x=function(){m.attr({width:m.width,height:m.height})};["width","height"].forEach(function(t){m[t+"Setter"]=function(t,e){var i={},s=this["img"+e],o="width"===e?"translateX":"translateY";this[e]=t,l(s)&&(r&&"within"===r.backgroundSize&&this.width&&this.height&&(s=Math.round(s*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,s),this.alignByTranslate||(i[o]=((this[e]||0)-s)/2,this.attr(i)))}}),l(e)&&m.attr({x:e,y:i}),m.isImg=!0,l(m.imgwidth)&&l(m.imgheight)?x():(m.attr({width:0,height:0}),a("img",{onload:function(){var t=M[c.chartIndex];0===this.width&&(h(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this)),O[y]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&x(),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:y}),this.imgCount++)}return m},e.prototype.clipRect=function(t,e,i,s){var o=k()+"-",r=this.createElement("clipPath").attr({id:o}).add(this.defs);return(t=this.rect(t,e,i,s,0).add(r)).id=o,t.clipPath=r,t.count=0,t},e.prototype.text=function(t,e,i,s){var o={};return!s||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),l(t)&&(o.text=t),t=this.createElement("text").attr(o),s||(t.xSetter=function(t,e,i){var s,o=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(s=0;s<o.length;s++){var n=o[s];n.getAttribute(e)===r&&n.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},e.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!E.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&i.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?x(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},e.prototype.rotCorr=function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*S),4)),{x:-t/3*Math.sin(e*S),y:s}},e.prototype.pathToSegments=function(t){for(var e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},o=0;o<t.length;o++)g(i[0])&&u(t[o])&&i.length===s[i[0].toUpperCase()]&&t.splice(o,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[o]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[o]);return e.push(i.slice(0)),e},e.prototype.label=function(t,e,i,o,r,n,a,h,l){return new s(this,t,e,i,o,r,n,a,h,l)},e}();return D.prototype.Element=i,D.prototype.SVG_NS=L,D.prototype.draw=o,D.prototype.escapes={"&":"&","<":"<",">":">","'":"'",'"':"""},D.prototype.symbols={circle:function(t,e,i,s){return this.arc(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},arc:function(t,e,i,s,o){var r=[];if(o){var n=o.start||0,a=o.end||0,h=o.r||i;i=o.r||s||i;var c=.001>Math.abs(a-n-2*Math.PI);a-=.001,s=o.innerR,c=v(o.open,c);var d=Math.cos(n),p=Math.sin(n),u=Math.cos(a),f=Math.sin(a);n=v(o.longArc,.001>a-n-Math.PI?0:1),r.push(["M",t+h*d,e+i*p],["A",h,i,0,n,v(o.clockwise,1),t+h*u,e+i*f]),l(s)&&r.push(c?["M",t+s*u,e+s*f]:["L",t+s*u,e+s*f],["A",s,s,0,n,l(o.clockwise)?1-o.clockwise:0,t+s*d,e+s*p]),c||r.push(["Z"])}return r},callout:function(t,e,i,s,o){var r=Math.min(o&&o.r||0,i,s),n=r+6,a=o&&o.anchorX||0;o=o&&o.anchorY||0;var h=[["M",t+r,e],["L",t+i-r,e],["C",t+i,e,t+i,e,t+i,e+r],["L",t+i,e+s-r],["C",t+i,e+s,t+i,e+s,t+i-r,e+s],["L",t+r,e+s],["C",t,e+s,t,e+s,t,e+s-r],["L",t,e+r],["C",t,e,t,e,t+r,e]];return a&&a>i?o>e+n&&o<e+s-n?h.splice(3,1,["L",t+i,o-6],["L",t+i+6,o],["L",t+i,o+6],["L",t+i,e+s-r]):h.splice(3,1,["L",t+i,s/2],["L",a,o],["L",t+i,s/2],["L",t+i,e+s-r]):a&&0>a?o>e+n&&o<e+s-n?h.splice(7,1,["L",t,o+6],["L",t-6,o],["L",t,o-6],["L",t,e+r]):h.splice(7,1,["L",t,s/2],["L",a,o],["L",t,s/2],["L",t,e+r]):o&&o>s&&a>t+n&&a<t+i-n?h.splice(5,1,["L",a+6,e+s],["L",a,e+s+6],["L",a-6,e+s],["L",t+r,e+s]):o&&0>o&&a>t+n&&a<t+i-n&&h.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-r,e]),h}},e.SVGRenderer=D,e.Renderer=e.SVGRenderer,e.Renderer}),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i){var s=i.css,o=i.defined,r=i.extend,n=i.pick,a=i.pInt,h=t.isFirefox;return r(e.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=n(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var o=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=r(this.styles,t),s(this.element,t),o&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,r=this.translateY||0,n=this.x||0,h=this.y||0,l=this.textAlign||"left",c={left:0,center:.5,right:1}[l],d=this.styles,p=d&&d.whiteSpace;if(s(e,{marginLeft:i,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){s(t,{marginLeft:i+1,marginTop:r+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){d=this.rotation;var u,f=this.textWidth&&a(this.textWidth),g=[d,l,e.innerHTML,this.textWidth,this.textAlign].join();(u=f!==this.oldTextWidth)&&!(u=f>this.oldTextWidth)&&((u=this.textPxLength)||(s(e,{width:"",whiteSpace:p||"nowrap"}),u=e.offsetWidth),u=u>f),u&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(s(e,{width:f+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(p=t.fontMetrics(e.style.fontSize,e).b,!o(d)||d===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(d,c,p),this.getSpanCorrection(!o(d)&&this.textPxLength||e.offsetWidth,p,c,d,l)),s(e,{left:n+(this.xCorr||0)+"px",top:h+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=d,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var o={},r=this.renderer.getTransformKey();o[r]=o.transform="rotate("+t+"deg)",o[r+(h?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",s(this.element,o)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),e}),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,s){var o=t.isFirefox,r=t.isMS,n=t.isWebKit,a=t.win,h=s.attr,l=s.createElement,c=s.extend,d=s.pick;return c(i.prototype,{getTransformKey:function(){return r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":o?"MozTransform":a.opera?"-o-transform":""},html:function(t,i,s){var o=this.createElement("span"),r=o.element,n=o.renderer,a=n.isSVG,p=function(t,i){["opacity","visibility"].forEach(function(s){t[s+"Setter"]=function(o,r,n){var a=t.div?t.div.style:i;e.prototype[s+"Setter"].call(this,o,r,n),a&&(a[r]=o)}}),t.addedSetters=!0};return o.textSetter=function(t){t!==r.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,r.innerHTML=d(t,""),o.doTransform=!0},a&&p(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e?o.alignValue=o.textAlign=t:o[e]=t,o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(i),y:Math.round(s)}).css({position:"absolute"}),n.styledMode||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),r.style.whiteSpace="nowrap",o.css=o.htmlCss,a&&(o.add=function(t){var e=n.box.parentNode,i=[];if(this.parentGroup=t){var s=t.div;if(!s){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach(function(t){function r(e,i){t[i]=e,"translateX"===i?a.left=e+"px":a.top=e+"px",t.doTransform=!0}var n=h(t.element,"class"),a=(s=t.div=t.div||l("div",n?{className:n}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},s||e)).style;c(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(s),on:function(){return i[0].div&&o.on.apply({element:i[0].div},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||p(t)})}}else s=e;return s.appendChild(r),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}}),i}),e(i,"Core/Axis/Tick.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.clamp,s=e.correctFloat,o=e.defined,r=e.destroyObjectProperties,n=e.extend,a=e.fireEvent,h=e.isNumber,l=e.merge,c=e.objectEach,d=e.pick,p=t.deg2rad;return e=function(){function t(t,e,i,s,o){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,a(this,"init"),i||s||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,i=e.options,r=e.chart,a=e.categories,h=e.logarithmic,l=e.names,c=t.pos,p=d(t.options&&t.options.labels,i.labels),u=e.tickPositions,f=c===u[0],g=c===u[u.length-1];l=this.parameters.category||(a?d(a[c],l[c],c):c);var m,y,v=t.label;if(a=(!p.step||1===p.step)&&1===e.tickInterval,u=u.info,e.dateTime&&u)var x=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&u.higherRanks[c]||u.unitName]),b=x.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:r,isFirst:f,isLast:g,dateTimeLabelFormat:b,tickPositionInfo:u,value:h?s(h.lin2log(l)):l,pos:c},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(y=x&&x.list)&&(t.shortenLabel=function(){for(m=0;m<y.length;m++)if(v.attr({text:e.labelFormatter.call(n(t.formatCtx,{dateTimeLabelFormat:y[m]}))}),v.getBBox().width<e.getSlotWidth(t)-2*d(p.padding,5))return;v.attr({text:""})}),a&&e._addedPlotLB&&t.moveLabel(i,p),o(v)||t.movedLabel?v&&v.textStr!==i&&!a&&(!v.textWidth||p.style&&p.style.width||v.styles.width||v.css({width:null}),v.attr({text:i}),v.textPxLength=v.getBBox().width):(t.label=v=t.createLabel({x:0,y:0},i,p),t.rotation=0)},t.prototype.createLabel=function(t,e,i){var s=this.axis,r=s.chart;return(t=o(e)&&i.enabled?r.renderer.text(e,t.x,t.y,i.useHTML).add(s.labelGroup):null)&&(r.styledMode||t.css(l(i.style)),t.textPxLength=t.getBBox().width),t},t.prototype.destroy=function(){r(this,this.axis)},t.prototype.getPosition=function(t,e,o,r){var n=this.axis,h=n.chart,l=r&&h.oldChartHeight||h.chartHeight;return(t={x:t?s(n.translate(e+o,null,null,r)+n.transB):n.left+n.offset+(n.opposite?(r&&h.oldChartWidth||h.chartWidth)-n.right-n.left:0),y:t?l-n.bottom+n.offset-(n.opposite?n.height:0):s(l-n.translate(e+o,null,null,r)-n.transB)}).y=i(t.y,-1e5,1e5),a(this,"afterGetPosition",{pos:t}),t},t.prototype.getLabelPosition=function(t,e,i,s,r,n,h,l){var c=this.axis,d=c.transA,u=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,f=c.staggerLines,g=c.tickRotCorr||{x:0,y:0},m=r.y,y=s||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),v={};return o(m)||(m=0===c.side?i.rotation?-8:-i.getBBox().height:2===c.side?g.y+8:Math.cos(i.rotation*p)*(g.y-i.getBBox(!1,0).height/2)),t=t+r.x+y+g.x-(n&&s?n*d*(u?-1:1):0),e=e+m-(n&&!s?n*d*(u?1:-1):0),f&&(i=h/(l||1)%f,c.opposite&&(i=f-i-1),e+=c.labelOffset/f*i),v.x=t,v.y=Math.round(e),a(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:n,index:h}),v},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},t.prototype.getMarkPath=function(t,e,i,s,o,r){return r.crispLine([["M",t,e],["L",t+(o?0:-i),e+(o?i:0)]],s)},t.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,s=t.x,o=e.chart.chartWidth,r=e.chart.spacing,n=d(e.labelLeft,Math.min(e.pos,r[3]));r=d(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-r[1]));var a,h=this.label,l=this.rotation,c={left:0,center:.5,right:1}[e.labelAlign||h.attr("align")],u=h.getBBox().width,f=e.getSlotWidth(this),g=f,m=1,y={};l||"justify"!==d(i.overflow,"justify")?0>l&&s-c*u<n?a=Math.round(s/Math.cos(l*p)-n):0<l&&s+c*u>r&&(a=Math.round((o-s)/Math.cos(l*p))):(o=s+(1-c)*u,s-c*u<n?g=t.x+g*(1-c)-n:o>r&&(g=r-t.x+g*c,m=-1),(g=Math.min(f,g))<f&&"center"===e.labelAlign&&(t.x+=m*(f-g-c*(f-Math.min(u,g)))),(u>g||e.autoRotation&&(h.styles||{}).width)&&(a=g)),a&&(this.shortenLabel?this.shortenLabel():(y.width=Math.floor(a)+"px",(i.style||{}).textOverflow||(y.textOverflow="ellipsis"),h.css(y)))},t.prototype.moveLabel=function(t,e){var i=this,s=i.label,o=!1,r=i.axis,n=r.reversed;if(s&&s.textStr===t?(i.movedLabel=s,o=!0,delete i.label):c(r.ticks,function(e){o||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,o=!0,e.labelPos=i.movedLabel.xy,delete e.label)}),!o&&(i.labelPos||s)){var a=i.labelPos||s.xy;s=r.horiz?n?0:r.width+r.left:a.x,r=r.horiz?a.y:n?r.width+r.left:0,i.movedLabel=i.createLabel({x:s,y:r},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,i){var s=this.axis,o=s.horiz,r=this.pos,n=d(this.tickmarkOffset,s.tickmarkOffset);n=(r=this.getPosition(o,r,n,e)).x;var h=r.y;s=o&&n===s.pos+s.len||!o&&h===s.pos?-1:1,i=d(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(r,i,s),this.renderLabel(r,e,i,t),this.isNew=!1,a(this,"afterRender")},t.prototype.renderGridLine=function(t,e,i){var s=this.axis,o=s.options,r=this.gridLine,n={},a=this.pos,h=this.type,l=d(this.tickmarkOffset,s.tickmarkOffset),c=s.chart.renderer,p=h?h+"Grid":"grid",u=o[p+"LineWidth"],f=o[p+"LineColor"];o=o[p+"LineDashStyle"],r||(s.chart.styledMode||(n.stroke=f,n["stroke-width"]=u,o&&(n.dashstyle=o)),h||(n.zIndex=1),t&&(e=0),this.gridLine=r=c.path().attr(n).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(s.gridGroup)),r&&(i=s.getPlotLinePath({value:a+l,lineWidth:r.strokeWidth()*i,force:"pass",old:t}))&&r[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e,i){var s=this.axis,o=s.options,r=s.chart.renderer,n=this.type,a=n?n+"Tick":"tick",h=s.tickSize(a),l=this.mark,c=!l,p=t.x;t=t.y;var u=d(o[a+"Width"],!n&&s.isXAxis?1:0);o=o[a+"Color"],h&&(s.opposite&&(h[0]=-h[0]),c&&(this.mark=l=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||l.attr({stroke:o,"stroke-width":u})),l[c?"attr":"animate"]({d:this.getMarkPath(p,t,h[0],l.strokeWidth()*i,s.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,s){var o=this.axis,r=o.horiz,n=o.options,a=this.label,l=n.labels,c=l.step;o=d(this.tickmarkOffset,o.tickmarkOffset);var p=!0,u=t.x;t=t.y,a&&h(u)&&(a.xy=t=this.getLabelPosition(u,t,a,r,l,o,s,c),this.isFirst&&!this.isLast&&!d(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!d(n.showLastLabel,1)?p=!1:!r||l.step||l.rotation||e||0===i||this.handleOverflow(t),c&&s%c&&(p=!1),p&&h(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var s=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:s,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick}),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.defined,s=e.error,o=e.extend,r=e.isObject,n=e.merge,a=e.objectEach,h=e.pad,l=e.pick,c=e.splat,d=e.timeUnits,p=t.win;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=p.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),s=i-this.getTimezoneOffset(e);return e.setTime(s),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return e["setUTC"+t](i);var s=this.getTimezoneOffset(e);return s=e.getTime()-s,e.setTime(s),e["setUTC"+t](i),t=this.getTimezoneOffset(e),s=e.getTime()+t,e.setTime(s)}return this.useUTC?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=l(t&&t.useUTC,!0);this.options=t=n(!0,this.options||{},t),this.Date=t.Date||p.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,s,o,r,n){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(a);a+=h;var c=this.getTimezoneOffset(a);h!==c?a+=c-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,l(s,1),l(o,0),l(r,0),l(n,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.moment||p.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,s,r){var n;if(!i(s)||isNaN(s))return(null===(n=t.defaultOptions.lang)||void 0===n?void 0:n.invalidDate)||"";e=l(e,"%Y-%m-%d %H:%M:%S");var c=this;n=new this.Date(s);var d=this.get("Hours",n),p=this.get("Day",n),u=this.get("Date",n),f=this.get("Month",n),g=this.get("FullYear",n),m=t.defaultOptions.lang,y=null==m?void 0:m.weekdays,v=null==m?void 0:m.shortWeekdays;return n=o({a:v?v[p]:y[p].substr(0,3),A:y[p],d:h(u),e:h(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:h(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:h(d),k:d,I:h(d%12||12),l:d%12||12,M:h(this.get("Minutes",n)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:h(n.getSeconds()),L:h(Math.floor(s%1e3),3)},t.dateFormats),a(n,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(c,s):t)}),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return r(t,!0)?t:{main:(t=c(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,s,r){var n,a=this,h=[],c={},p=new a.Date(e),u=t.unitRange,f=t.count||1;if(r=l(r,1),i(e)){if(a.set("Milliseconds",p,u>=d.second?0:f*Math.floor(a.get("Milliseconds",p)/f)),u>=d.second&&a.set("Seconds",p,u>=d.minute?0:f*Math.floor(a.get("Seconds",p)/f)),u>=d.minute&&a.set("Minutes",p,u>=d.hour?0:f*Math.floor(a.get("Minutes",p)/f)),u>=d.hour&&a.set("Hours",p,u>=d.day?0:f*Math.floor(a.get("Hours",p)/f)),u>=d.day&&a.set("Date",p,u>=d.month?1:Math.max(1,f*Math.floor(a.get("Date",p)/f))),u>=d.month){a.set("Month",p,u>=d.year?0:f*Math.floor(a.get("Month",p)/f));var g=a.get("FullYear",p)}u>=d.year&&a.set("FullYear",p,g-g%f),u===d.week&&(g=a.get("Day",p),a.set("Date",p,a.get("Date",p)-g+r+(g<r?-7:0))),g=a.get("FullYear",p),r=a.get("Month",p);var m=a.get("Date",p),y=a.get("Hours",p);for(e=p.getTime(),a.variableTimezone&&(n=s-e>4*d.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(s)),e=p.getTime(),p=1;e<s;)h.push(e),e=u===d.year?a.makeTime(g+p*f,0):u===d.month?a.makeTime(g,r+p*f):!n||u!==d.day&&u!==d.week?n&&u===d.hour&&1<f?a.makeTime(g,r,m,y+p*f):e+u*f:a.makeTime(g,r,m+p*f*(u===d.day?1:7)),p++;h.push(e),u<=d.hour&&1e4>h.length&&h.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(c[t]="day")})}return h.info=o(t,{higherRanks:c,totalRange:u*f}),h},e}(),t.Time=e,t.Time}),e(i,"Core/Options.js",[i["Core/Globals.js"],i["Core/Color/Color.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(t,e,i,s){var o=t.isTouchDevice,r=t.svg;return e=e.parse,s=s.merge,t.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(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",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:r,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:"",padding:8,snap:o?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.time=new i(s(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)},{dateFormat:t.dateFormat,defaultOptions:t.defaultOptions,time:t.time}}),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"],i["Core/Options.js"]],function(t,e,i,s,o,r){var n=t.animObject,a=o.addEvent,h=o.arrayMax,l=o.arrayMin,c=o.clamp,d=o.correctFloat,p=o.defined,u=o.destroyObjectProperties,f=o.error,g=o.extend,m=o.fireEvent,y=o.format,v=o.getMagnitude,x=o.isArray,b=o.isFunction,k=o.isNumber,M=o.isString,S=o.merge,w=o.normalizeTickInterval,C=o.objectEach,A=o.pick,T=o.relativeLength,P=o.removeEvent,L=o.splat,O=o.syncTimeout,E=r.defaultOptions,D=i.deg2rad;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.oldMin=this.oldMax=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX,s=this;s.chart=t,s.horiz=t.inverted&&!s.isZAxis?!i:i,s.isXAxis=i,s.coll=s.coll||(i?"xAxis":"yAxis"),m(this,"init",{userOptions:e}),s.opposite=e.opposite,s.side=e.side||(s.horiz?s.opposite?0:2:s.opposite?1:3),s.setOptions(e);var o=this.options,r=o.type;s.labelFormatter=o.labels.formatter||s.defaultLabelFormatter,s.userOptions=e,s.minPixelPadding=0,s.reversed=o.reversed,s.visible=!1!==o.visible,s.zoomEnabled=!1!==o.zoomEnabled,s.hasNames="category"===r||!0===o.categories,s.categories=o.categories||s.hasNames,s.names||(s.names=[],s.names.keys={}),s.plotLinesAndBandsGroups={},s.positiveValuesOnly=!!s.logarithmic,s.isLinked=p(o.linkedTo),s.ticks={},s.labelEdge=[],s.minorTicks={},s.plotLinesAndBands=[],s.alternateBands={},s.len=0,s.minRange=s.userMinRange=o.minRange||o.maxZoom,s.range=o.range,s.offset=o.offset||0,s.max=null,s.min=null,s.crosshair=A(o.crosshair,L(t.options.tooltip.crosshairs)[i?0:1],!1),e=s.options.events,-1===t.axes.indexOf(s)&&(i?t.axes.splice(t.xAxis.length,0,s):t.axes.push(s),t[s.coll].push(s)),s.series=s.series||[],t.inverted&&!s.isZAxis&&i&&void 0===s.reversed&&(s.reversed=!0),s.labelRotation=s.options.labels.rotation,C(e,function(t,e){b(t)&&a(s,e,t)}),m(this,"afterInit")},t.prototype.setOptions=function(e){this.options=S(t.defaultOptions,"yAxis"===this.coll&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],S(E[this.coll],e)),m(this,"afterSetOptions",{userOptions:e})},t.prototype.defaultLabelFormatter=function(){var t=this.axis,e=k(this.value)?this.value:NaN,i=t.chart.time,s=t.categories,o=this.dateTimeLabelFormat,r=E.lang,n=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var a=n&&n.length,h=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var l=this.chart,c=l.numberFormatter;if(h)var d=y(h,this,l);else if(s)d=""+this.value;else if(o)d=i.dateFormat(o,e);else if(a&&1e3<=t)for(;a--&&void 0===d;)t>=(i=Math.pow(r,a+1))&&0==10*e%i&&null!==n[a]&&0!==e&&(d=c(e/i,-1)+n[a]);return void 0===d&&(d=1e4<=Math.abs(e)?c(e,-1):c(e,-1,void 0,"")),d},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;m(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach(function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var o=s.options,r=o.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((o=s.xData).length){o=e.logarithmic?o.filter(e.validatePositiveValue):o;var n=(t=s.getXExtremes(o)).min,a=t.max;k(n)||n instanceof Date||(o=o.filter(k),n=(t=s.getXExtremes(o)).min,a=t.max),o.length&&(e.dataMin=Math.min(A(e.dataMin,n),n),e.dataMax=Math.max(A(e.dataMax,a),a))}}else s=s.applyExtremes(),k(s.dataMin)&&(n=s.dataMin,e.dataMin=Math.min(A(e.dataMin,n),n)),k(s.dataMax)&&(a=s.dataMax,e.dataMax=Math.max(A(e.dataMax,a),a)),p(r)&&(e.threshold=r),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),m(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,s,o,r){var n=this.linkedParent||this,a=1,h=0,l=s?n.oldTransA:n.transA;s=s?n.oldMin:n.min;var c=n.minPixelPadding;return o=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&o)&&n.lin2val,l||(l=n.transA),i&&(a*=-1,h=n.len),n.reversed&&(h-=(a*=-1)*(n.sector||n.len)),e?(t=(t*a+h-c)/l+s,o&&(t=n.lin2val(t))):(o&&(t=n.val2lin(t)),t=k(s)?a*(t-s)*l+h+a*c+(k(r)?l*r:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==y&&t<e||t>i)&&(y?t=c(t,e,i):n=!0),t}var i,s,o,r,n,a=this,h=a.chart,l=a.left,d=a.top,p=t.old,u=t.value,f=t.translatedValue,g=t.lineWidth,y=t.force,v=p&&h.oldChartHeight||h.chartHeight,x=p&&h.oldChartWidth||h.chartWidth,b=a.transB;return t={value:u,lineWidth:g,old:p,force:y,acrossPanes:t.acrossPanes,translatedValue:f},m(this,"getPlotLinePath",t,function(t){f=A(f,a.translate(u,null,null,p)),f=c(f,-1e5,1e5),i=o=Math.round(f+b),s=r=Math.round(v-f-b),k(f)?a.horiz?(s=d,r=v-a.bottom,i=o=e(i,l,l+a.width)):(i=l,o=x-a.right,s=r=e(s,d,d+a.height)):(n=!0,y=!1),t.path=n&&!y?null:h.renderer.crispLine([["M",i,s],["L",o,r]],g||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var s=d(Math.floor(e/t)*t);i=d(Math.ceil(i/t)*t);var o,r=[];if(d(s+t)===s&&(o=20),this.single)return[e];for(e=s;e<=i&&(r.push(e),(e=d(e+t,o))!==n);)var n=e;return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?A(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=[],o=this.pointRangePadding||0,r=this.min-o,n=(o=this.max+o)-r;if(n&&n/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,o){e&&s.push.apply(s,a.getLogTickPositions(i,o[e-1],o[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())s=s.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),r,o,t.startOfWeek));else for(t=r+(e[0]-r)%i;t<=o&&t!==s[0];t+=i)s.push(t)}return 0!==s.length&&this.trimTicks(s),s},t.prototype.adjustForMinRange=function(){var t,e,i,s,o=this.options,r=this.min,n=this.max,a=this.logarithmic;if(this.isXAxis&&void 0===this.minRange&&!a&&(p(o.min)||p(o.max)?this.minRange=null:(this.series.forEach(function(o){for(s=o.xData,e=o.xIncrement?1:s.length-1;0<e;e--)i=s[e]-s[e-1],(void 0===t||i<t)&&(t=i)}),this.minRange=Math.min(5*t,this.dataMax-this.dataMin))),n-r<this.minRange){var c=this.dataMax-this.dataMin>=this.minRange,d=this.minRange,u=(d-n+r)/2;u=[r-u,A(o.min,r-u)],c&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),n=[(r=h(u))+d,A(o.max,r+d)],c&&(n[2]=a?a.log2lin(this.dataMax):this.dataMax),(n=l(n))-r<d&&(u[0]=n-d,u[1]=A(o.min,n-d),r=h(u))}this.min=r,this.max=n},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,s=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&p(i)&&s&&(t=p(t)?Math.min(t,i):i)}),t},t.prototype.nameToX=function(t){var e=x(this.categories),i=e?this.categories:this.names,s=t.options.x;if(t.series.requireSorting=!1,p(s)||(s=!1===this.options.uniqueNames?t.series.autoIncrement():e?i.indexOf(t.name):A(i.keys[t.name],-1)),-1===s){if(!e)var o=i.length}else o=s;return void 0!==o&&(this.names[o]=t.name,this.names.keys[t.name]=o),o},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(i,s){if(i&&i.options&&void 0!==i.name){var o=t.nameToX(i);void 0!==o&&o!==i.x&&(i.x=o,e.xData[s]=o)}})}))},t.prototype.setAxisTranslation=function(t){var e=this,i=e.max-e.min,s=e.axisPointRange||0,o=0,r=0,n=e.linkedParent,a=!!e.categories,h=e.transA,l=e.isXAxis;if(l||a||s){var c=e.getClosest();n?(o=n.minPointOffset,r=n.pointRangePadding):e.series.forEach(function(t){var i=a?1:l?A(t.options.pointRange,c,0):e.axisPointRange||0,n=t.options.pointPlacement;s=Math.max(s,i),e.single&&!a||(t=t.is("xrange")?!l:l,o=Math.max(o,t&&M(n)?0:i/2),r=Math.max(r,t&&"on"===n?0:i))}),n=e.ordinal&&e.ordinal.slope&&c?e.ordinal.slope/c:1,e.minPointOffset=o*=n,e.pointRangePadding=r*=n,e.pointRange=Math.min(s,e.single&&a?1:i),l&&(e.closestPointRange=c)}t&&(e.oldTransA=h),e.translationSlope=e.transA=h=e.staticScale||e.len/(i+r||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=h*o,m(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this,i=e.chart,s=e.logarithmic,o=e.options,r=e.isXAxis,n=e.isLinked,a=o.maxPadding,h=o.minPadding,l=o.tickInterval,c=o.tickPixelInterval,u=e.categories,g=k(e.threshold)?e.threshold:null,y=e.softThreshold;e.dateTime||u||n||this.getTickAmount();var x=A(e.userMin,o.min),b=A(e.userMax,o.max);if(n){e.linkedParent=i[e.coll][o.linkedTo];var M=e.linkedParent.getExtremes();e.min=A(M.min,M.dataMin),e.max=A(M.max,M.dataMax),o.type!==e.linkedParent.options.type&&f(11,1,i)}else{if(y&&p(g))if(e.dataMin>=g)M=g,h=0;else if(e.dataMax<=g){var S=g;a=0}e.min=A(x,M,e.dataMin),e.max=A(b,S,e.dataMax)}s&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,A(e.dataMin,e.min))&&f(10,1,i),e.min=d(s.log2lin(e.min),16),e.max=d(s.log2lin(e.max),16)),e.range&&p(e.max)&&(e.userMin=e.min=x=Math.max(e.dataMin,e.minFromRange()),e.userMax=b=e.max,e.range=null),m(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(u||e.axisPointRange||e.stacking&&e.stacking.usePercentage||n)&&p(e.min)&&p(e.max)&&(i=e.max-e.min)&&(!p(x)&&h&&(e.min-=i*h),!p(b)&&a&&(e.max+=i*a)),k(e.userMin)||(k(o.softMin)&&o.softMin<e.min&&(e.min=x=o.softMin),k(o.floor)&&(e.min=Math.max(e.min,o.floor))),k(e.userMax)||(k(o.softMax)&&o.softMax>e.max&&(e.max=b=o.softMax),k(o.ceiling)&&(e.max=Math.min(e.max,o.ceiling))),y&&p(e.dataMin)&&(g=g||0,!p(x)&&e.min<g&&e.dataMin>=g?e.min=e.options.minRange?Math.min(g,e.max-e.minRange):g:!p(b)&&e.max>g&&e.dataMax<=g&&(e.max=e.options.minRange?Math.max(g,e.min+e.minRange):g)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:n&&!l&&c===e.linkedParent.options.tickPixelInterval?l=e.linkedParent.tickInterval:A(l,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(e.max-e.min)*c/Math.max(e.len,c)),r&&!t&&e.series.forEach(function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)}),e.setAxisTranslation(!0),m(this,"initialAxisTranslation"),e.pointRange&&!l&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=A(o.minTickInterval,e.dateTime&&!e.series.some(function(t){return t.noSharedTooltip})?e.closestPointRange:0),!l&&e.tickInterval<t&&(e.tickInterval=t),e.dateTime||e.logarithmic||l||(e.tickInterval=w(e.tickInterval,void 0,v(e.tickInterval),A(o.allowDecimals,.5>e.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),s=t.tickPositioner,o=this.hasVerticalPanning(),r="colorAxis"===this.coll,n=(r||!o)&&t.startOnTick;o=(r||!o)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&p(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],f(19,!1,this.chart)),i.length>this.len&&((i=[i[0],i.pop()])[0]===i[1]&&(i.length=1)),this.tickPositions=i,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=i=s),this.paddedTicks=i.slice(0),this.trimTicks(i,n,o),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||s||this.adjustTickAmount()),m(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var s=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(m(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=o;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&p(s)&&!this.options.tickPositions&&t.push((o+s)/2)}},t.prototype.alignToOthers=function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.logarithmic||this.chart[this.coll].forEach(function(i){var s=i.options;s=[i.horiz?s.left:s.top,s.width,s.height,s.pane].join(),i.series.length&&(e[s]?t=!0:e[s]=1)}),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!p(t.tickInterval)&&!e&&this.len<i&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},t.prototype.adjustTickAmount=function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,o=this.tickAmount,r=this.finalTickAmt,n=s&&s.length,a=A(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(n<o){for(t=this.min;s.length<o;)s.length%2||t===a?s.push(d(s[s.length-1]+i)):s.unshift(d(s[0]-i));this.transA*=(n-1)/(o-1),this.min=e.startOnTick?s[0]:Math.min(this.min,s[0]),this.max=e.endOnTick?s[s.length-1]:Math.max(this.max,s[s.length-1])}else n>o&&(this.tickInterval*=2,this.setTickPositions());if(p(r)){for(i=e=s.length;i--;)(3===r&&1==i%2||2>=r&&0<i&&i<e-1)&&s.splice(i,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e=!1,i=!1;this.series.forEach(function(t){var s;e=e||t.isDirtyData||t.isDirty,i=i||(null===(s=t.xAxis)||void 0===s?void 0:s.isDirty)||!1}),this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||i||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),m(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,s,o){var r=this,n=r.chart;i=A(i,!0),r.series.forEach(function(t){delete t.kdTree}),o=g(o,{min:t,max:e}),m(r,"setExtremes",o,function(){r.userMin=t,r.userMax=e,r.eventArgs=o,i&&n.redraw(s)})},t.prototype.zoom=function(t,e){var i=this,s=this.dataMin,o=this.dataMax,r=this.options,n=Math.min(s,A(r.min,s)),a=Math.max(o,A(r.max,o));return m(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,r=t.newMax;e===i.min&&r===i.max||(i.allowZoomOutside||(p(s)&&(e<n&&(e=n),e>a&&(e=a)),p(o)&&(r<n&&(r=n),r>a&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,o=this.width=Math.round(T(A(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(T(A(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(T(A(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(T(A(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-o-e,this.len=Math.max(s?o:r,0),this.pos=s?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?d(t.lin2log(this.min)):this.min,max:t?d(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(A(t,0)-90*this.side+720)%360;return m(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")}),t.align},t.prototype.tickSize=function(t){var e=this.options,i=e["tick"===t?"tickLength":"minorTickLength"],s=A(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var o=[i,s]}return m(this,"afterTickSize",t={tickSize:o}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,i,s=this.options.labels,o=this.horiz,r=this.tickInterval,n=r,a=this.len/(((this.categories?1:0)+this.max-this.min)/r),h=s.rotation,l=this.labelMetrics(),c=Number.MAX_VALUE,u=this.max-this.min,f=function(t){var e=t/(a||1);return(e=1<e?Math.ceil(e):1)*r>u&&1/0!==t&&1/0!==a&&u&&(e=Math.ceil(u/r)),d(e*r)};return o?(i=!s.staggerLines&&!s.step&&(p(h)?[h]:a<A(s.autoRotationLimit,80)&&s.autoRotation))&&i.forEach(function(i){if(i===h||i&&-90<=i&&90>=i){var s=(e=f(Math.abs(l.h/Math.sin(D*i))))+Math.abs(i/360);s<c&&(c=s,t=i,n=e)}}):s.step||(n=f(l.h)),this.autoRotation=i,this.labelRotation=A(t,h),n},t.prototype.getSlotWidth=function(t){var e,i=this.chart,s=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=i.margin[3];if(t&&k(t.slotWidth))return t.slotWidth;if(s&&o&&2>(o.step||0))return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!s){if(void 0!==(t=null===(e=null==o?void 0:o.style)||void 0===e?void 0:e.width))return parseInt(t,10);if(n)return n-i.spacing[3]}return.33*i.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,o=this.options.labels,r=o&&o.style||{},n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*(o.padding||5))),l={},c=this.labelMetrics(),d=o.style&&o.style.textOverflow,p=0;if(M(o.rotation)||(l.rotation=o.rotation||0),i.forEach(function(t){(t=s[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)}),this.maxLabelLength=p,this.autoRotation)p>h&&p>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!d){var f="clip";for(h=i.length;!n&&h--;){var g=i[h];(g=s[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach(function(t){var e=(t=s[t])&&t.label,i=r.width,o={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(o.width=u+"px",d||(o.textOverflow=e.specificTextOverflow||f),e.css(o)):e.styles&&e.styles.width&&!o.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&p(this.min)&&p(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,s=this.horiz,o=this.opposite,r=this.options.title,n=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[r.align]),this.axisTitle=i.text(r.text,0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:e}).addClass("highcharts-axis-title"),n||this.axisTitle.css(S(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new s(this,t)},t.prototype.getOffset=function(){var t,e=this,i=e.chart,s=i.renderer,o=e.options,r=e.tickPositions,n=e.ticks,a=e.horiz,h=e.side,l=i.inverted&&!e.isZAxis?[1,0,3,2][h]:h,c=0,d=0,u=o.title,f=o.labels,g=0,y=i.axisOffset;i=i.clipOffset;var v=[-1,1,1,-1][h],x=o.className,b=e.axisParent,k=e.hasData();if(e.showAxis=t=k||A(o.showEmpty,!0),e.staggerLines=e.horiz&&f.staggerLines,e.axisGroup||(e.gridGroup=s.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(x||"")).add(b),e.axisGroup=s.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(x||"")).add(b),e.labelGroup=s.g("axis-labels").attr({zIndex:f.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels "+(x||"")).add(b)),k||e.isLinked?(r.forEach(function(t,i){e.generateTick(t,i)}),e.renderUnsquish(),e.reserveSpaceDefault=0===h||2===h||{1:"left",3:"right"}[h]===e.labelAlign,A(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&r.forEach(function(t){g=Math.max(n[t].getLabelSize(),g)}),e.staggerLines&&(g*=e.staggerLines),e.labelOffset=g*(e.opposite?-1:1)):C(n,function(t,e){t.destroy(),delete n[e]}),u&&u.text&&!1!==u.enabled&&(e.addTitle(t),t&&!1!==u.reserveSpace)){e.titleOffset=c=e.axisTitle.getBBox()[a?"height":"width"];var M=u.offset;d=p(M)?0:A(u.margin,a?5:10)}e.renderLine(),e.offset=v*A(o.offset,y[h]?y[h]+(o.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},s=0===h?-e.labelMetrics().h:2===h?e.tickRotCorr.y:0,d=Math.abs(g)+d,g&&(d=d-s+v*(a?A(f.y,e.tickRotCorr.y+8*v):f.x)),e.axisTitleMargin=A(M,d),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(n,r)),a=this.tickSize("tick"),y[h]=Math.max(y[h],e.axisTitleMargin+c+v*e.offset,d,r&&r.length&&a?a[0]+v*e.offset:0),o=o.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[l]=Math.max(i[l],o),m(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,s=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+s;return s=e.chartHeight-this.bottom-(i?this.height:0)+s,i&&(t*=-1),e.renderer.crispLine([["M",o?this.left:r,o?s:this.top],["L",o?e.chartWidth-this.right:r,o?s:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,i=this.top,s=this.len,o=this.options.title,r=t?e:i,n=this.opposite,a=this.offset,h=o.x||0,l=o.y||0,c=this.axisTitle,d=this.chart.renderer.fontMetrics(o.style&&o.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-d.h-1,0),s={low:r+(t?0:s),middle:r+s/2,high:r+(t?s:0)}[o.align],e=(t?i+this.height:e)+(t?1:-1)*(n?-1:1)*this.axisTitleMargin+[-c,c,d.f,-c][this.side],t={x:t?s+h:e+(n?this.width:0)+a+h,y:t?e+l-(n?this.height:0)+a:s+l},m(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t){var e=this.chart.hasRendered&&k(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new s(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e){var i,o=this.isLinked,r=this.ticks,n=this.chart.hasRendered&&k(this.oldMin);(!o||t>=this.min&&t<=this.max||null!==(i=this.grid)&&void 0!==i&&i.isColumn)&&(r[t]||(r[t]=new s(this,t)),n&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,o=this,r=o.chart,a=o.logarithmic,h=o.options,l=o.isLinked,c=o.tickPositions,d=o.axisTitle,p=o.ticks,u=o.minorTicks,f=o.alternateBands,g=h.stackLabels,y=h.alternateGridColor,v=o.tickmarkOffset,x=o.axisLine,b=o.showAxis,M=n(r.renderer.globalAnimation);o.labelEdge.length=0,o.overlap=!1,[p,u,f].forEach(function(t){C(t,function(t){t.isActive=!1})}),(o.hasData()||l)&&(o.minorTickInterval&&!o.categories&&o.getMinorTickPositions().forEach(function(t){o.renderMinorTick(t)}),c.length&&(c.forEach(function(t,e){o.renderTick(t,e)}),v&&(0===o.min||o.single)&&(p[-1]||(p[-1]=new s(o,-1,null,!0)),p[-1].render(-1))),y&&c.forEach(function(s,n){e=void 0!==c[n+1]?c[n+1]+v:o.max-v,0==n%2&&s<o.max&&e<=o.max+(r.polar?-v:v)&&(f[s]||(f[s]=new i.PlotLineOrBand(o)),t=s+v,f[s].options={from:a?a.lin2log(t):t,to:a?a.lin2log(e):e,color:y,className:"highcharts-alternate-grid"},f[s].render(),f[s].isActive=!0)}),o._addedPlotLB||((h.plotLines||[]).concat(h.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)}),o._addedPlotLB=!0)),[p,u,f].forEach(function(t){var e,i=[],s=M.duration;C(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),O(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==f&&r.hasRendered&&s?s:0)}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[b?"show":"hide"](b)),d&&b&&(h=o.getTitlePosition(),k(h.y)?(d[d.isNew?"attr":"animate"](h),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),g&&g.enabled&&o.stacking&&o.stacking.renderStackTotals(),o.isDirty=!1,m(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e,i=this,s=i.plotLinesAndBands;if(m(this,"destroy",{keepEvents:t}),t||P(i),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(t){u(t)}),s)for(t=s.length;t--;)s[t].destroy();for(e in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){i[t]&&(i[t]=i[t].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();C(i,function(t,e){-1===i.getKeepProps().indexOf(e)&&delete i[e]})},t.prototype.drawCrosshair=function(t,i){var s,o=this.crosshair,r=A(o.snap,!0),n=this.cross,a=this.chart;if(m(this,"drawCrosshair",{e:t,point:i}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(p(i)||!r)){if(r?p(i)&&(s=A("colorAxis"!==this.coll?i.crosshairPos:null,this.isXAxis?i.plotX:this.len-i.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),p(s)){var h={value:i&&(this.isXAxis?i.x:A(i.stackY,i.y)),translatedValue:s};a.polar&&g(h,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:i}),h=this.getPlotLinePath(h)||null}if(!p(h))return void this.hideCrosshair();r=this.categories&&!this.isRadial,n||(this.cross=n=a.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+o.className).attr({zIndex:A(o.zIndex,2)}).add(),a.styledMode||(n.attr({stroke:o.color||(r?e.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":A(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&n.attr({dashstyle:o.dashStyle}))),n.show().attr({d:h}),r&&!o.width&&n.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();m(this,"afterDrawCrosshair",{e:t,point:i})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),m(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t,e;return/y/.test((null===(e=null===(t=this.chart.options.chart)||void 0===t?void 0:t.panning)||void 0===e?void 0:e.type)||"")},t.prototype.validatePositiveValue=function(t){return k(t)&&0<t},t.defaultOptions={dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},t.defaultYAxisOptions={endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),i.Axis=t,i.Axis}),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],function(t,e){var i=e.addEvent,s=e.getMagnitude,o=e.normalizeTickInterval,r=e.timeUnits,n=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i=e||[["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]];e=i[i.length-1];var n,a=r[e[0]],h=e[1];for(n=0;n<i.length&&(e=i[n],a=r[e[0]],h=e[1],!(i[n+1]&&t<=(a*h[h.length-1]+r[i[n+1][0]])/2));n++);return a===r.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=o(t/a,h,"year"===e[0]?Math.max(s(t/a),1):1),unitName:e[0]}},t}();return(e=function(){function t(){}return t.compose=function(t){t.keepProps.push("dateTime"),t.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},i(t,"init",function(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new n(this))})},t.AdditionsClass=n,t}()).compose(t),e}),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],function(t,e){var i=e.addEvent,s=e.getMagnitude,o=e.normalizeTickInterval,r=e.pick,n=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,n){var a=this.axis,h=a.len,l=a.options,c=[];if(n||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),c=a.getLinearTickPositions(t,e,i);else if(.08<=t){var d,p;for(l=Math.floor(e),h=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];l<i+1&&!p;l++){var u=h.length;for(d=0;d<u&&!p;d++){var f=this.log2lin(this.lin2log(l)*h[d]);f>e&&(!n||g<=i)&&void 0!==g&&c.push(g),g>i&&(p=!0);var g=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=n?a.getMinorTickInterval():l.tickInterval,t=r("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(n?5:1)*(i-e)/((n?h/a.tickPositions.length:h)||1)),t=o(t,void 0,s(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),n||(this.minorAutoInterval=t/5);return n||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return(e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic");var e=t.prototype,s=n.prototype;e.log2lin=s.log2lin,e.lin2log=s.lin2log,i(t,"init",function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:(e||(e=this.logarithmic=new n(this)),this.log2lin!==e.log2lin&&(e.log2lin=this.log2lin.bind(this)),this.lin2log!==e.lin2log&&(e.lin2log=this.lin2log.bind(this)))}),i(t,"afterInit",function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})})},t}()).compose(t),e}),e(i,"Core/Axis/PlotLineOrBand.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var s=i.arrayMax,o=i.arrayMin,r=i.defined,n=i.destroyObjectProperties,a=i.erase,h=i.extend,l=i.merge,c=i.objectEach,d=i.pick;return i=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){e.fireEvent(this,"render");var t=this,i=t.axis,s=i.horiz,o=i.logarithmic,n=t.options,a=n.label,h=t.label,p=n.to,u=n.from,f=n.value,g=r(u)&&r(p),m=r(f),y=t.svgElem,v=!y,x=[],b=n.color,k=d(n.zIndex,0),M=n.events;x={class:"highcharts-plot-"+(g?"band ":"line ")+(n.className||"")};var S={},w=i.chart.renderer,C=g?"bands":"lines";if(o&&(u=o.log2lin(u),p=o.log2lin(p),f=o.log2lin(f)),i.chart.styledMode||(m?(x.stroke=b||"#999999",x["stroke-width"]=d(n.width,1),n.dashStyle&&(x.dashstyle=n.dashStyle)):g&&(x.fill=b||"#e6ebf5",n.borderWidth&&(x.stroke=n.borderColor,x["stroke-width"]=n.borderWidth))),S.zIndex=k,C+="-"+k,(o=i.plotLinesAndBandsGroups[C])||(i.plotLinesAndBandsGroups[C]=o=w.g("plot-"+C).attr(S).add()),v&&(t.svgElem=y=w.path().attr(x).add(o)),m)x=i.getPlotLinePath({value:f,lineWidth:y.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!g)return;x=i.getPlotBandPath(u,p,n)}return!t.eventsAdded&&M&&(c(M,function(e,i){y.on(i,function(e){M[i].apply(t,[e])})}),t.eventsAdded=!0),(v||!y.d)&&x&&x.length?y.attr({d:x}):y&&(x?(y.show(!0),y.animate({d:x})):y.d&&(y.hide(),h&&(t.label=h=h.destroy()))),a&&(r(a.text)||r(a.formatter))&&x&&x.length&&0<i.width&&0<i.height&&!x.isFlat?(a=l({align:s&&g&&"center",x:s?!g&&4:10,verticalAlign:!s&&g&&"middle",y:s?g?16:10:g?6:-4,rotation:s&&!g&&90},a),this.renderLabel(a,x,g,k)):h&&h.hide(),t},t.prototype.renderLabel=function(t,e,i,r){var n=this.label,a=this.axis.chart.renderer;n||((n={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=r,r=this.getLabelText(t),this.label=n=a.text(r,0,0,t.useHTML).attr(n).add(),this.axis.chart.styledMode||n.css(t.style)),a=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],i=o(a),r=o(e),n.align(t,!1,{x:i,y:r,width:s(a)-i,height:s(e)-r}),n.show(!0)},t.prototype.getLabelText=function(t){return r(t.formatter)?t.formatter.call(this):t.text},t.prototype.destroy=function(){a(this.axis.plotLinesAndBands,this),delete this.axis,n(this)},t}(),h(t.prototype,{getPlotBandPath:function(t,e,i){void 0===i&&(i=this.options);var s=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes});i=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes});var o=[],r=this.horiz,n=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,i&&s){if(t){var a=i.toString()===s.toString();n=0}for(t=0;t<i.length;t+=2){e=i[t];var h=i[t+1],l=s[t],c=s[t+1];"M"!==e[0]&&"L"!==e[0]||"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||(r&&l[1]===e[1]?(l[1]+=n,c[1]+=n):r||l[2]!==e[2]||(l[2]+=n,c[2]+=n),o.push(["M",e[1],e[2]],["L",h[1],h[2]],["L",c[1],c[2]],["L",l[1],l[2]],["Z"])),o.isFlat=a}}return o},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,i){var s=new e.PlotLineOrBand(this,t),o=this.userOptions;if(this.visible&&(s=s.render()),s){if(i){var r=o[i]||[];r.push(t),o[i]=r}this.plotLinesAndBands.push(s),this._addedPlotLB=!0}return s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,s=this.userOptions,o=e.length;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]].forEach(function(e){for(o=e.length;o--;)(e[o]||{}).id===t&&a(e,e[o])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}}),e.PlotLineOrBand=i,e.PlotLineOrBand}),e(i,"Core/Tooltip.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.doc,s=e.clamp,o=e.css,r=e.defined,n=e.discardElement,a=e.extend,h=e.fireEvent,l=e.format,c=e.isNumber,d=e.isString,p=e.merge,u=e.pick,f=e.splat,g=e.syncTimeout,m=e.timeUnits,y=function(){function y(t,e){this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return y.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},y.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},y.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},y.prototype.defaultFormatter=function(t){var e=this.points||f(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},y.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),n(this.container)),e.clearTimeout(this.hideTimer),e.clearTimeout(this.tooltipTimeout)},y.prototype.getAnchor=function(t,e){var i,s,o=this.chart,r=o.pointer,n=o.inverted,a=o.plotTop,h=o.plotLeft,l=0,c=0;return t=f(t),this.followPointer&&e?(void 0===e.chartX&&(e=r.normalize(e)),t=[e.chartX-h,e.chartY-a]):t[0].tooltipPos?t=t[0].tooltipPos:(t.forEach(function(t){i=t.series.yAxis,s=t.series.xAxis,l+=t.plotX+(!n&&s?s.left-h:0),c+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!n&&i?i.top-a:0)}),l/=t.length,c/=t.length,t=[n?o.plotWidth-c:l,this.shared&&!n&&1<t.length&&e?e.chartY-a:n?o.plotHeight-l:c]),t.map(Math.round)},y.prototype.getDateFormat=function(t,e,i,s){var o=this.chart.time,r=o.dateFormat("%m-%d %H:%M:%S.%L",e),n={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(h in m){if(t===m.week&&+o.dateFormat("%w",e)===i&&"00:00:00.000"===r.substr(6)){var h="week";break}if(m[h]>t){h=a;break}if(n[h]&&r.substr(n[h])!=="01-01 00:00:00.000".substr(n[h]))break;"week"!==h&&(a=h)}if(h)var l=o.resolveDTLFormat(s[h]).main;return l},y.prototype.getLabel=function(){var e,i,s,n=this,a=this.chart.renderer,h=this.chart.styledMode,l=this.options,c="tooltip"+(r(l.className)?" "+l.className:""),d=(null===(e=l.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&l.stickOnContact?"auto":"none");e=function(){n.inContact=!0};if(!this.label){if(this.outside&&(this.container=s=t.doc.createElement("div"),s.className="highcharts-tooltip-container",o(s,{position:"absolute",top:"1px",pointerEvents:d,zIndex:3}),t.doc.body.appendChild(s),this.renderer=a=new t.Renderer(s,0,0,null===(i=this.chart.options.chart)||void 0===i?void 0:i.style,void 0,void 0,a.styledMode)),this.split?this.label=a.g(c):(this.label=a.label("",0,0,l.shape||"callout",null,null,l.useHTML,null,c).attr({padding:l.padding,r:l.borderRadius}),h||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:d}).shadow(l.shadow)),h&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),n.outside&&!n.split){var p=this.label,u=p.xSetter,f=p.ySetter;p.xSetter=function(t){u.call(p,n.distance),s.style.left=t+"px"},p.ySetter=function(t){f.call(p,n.distance),s.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",function(){var t=n.chart.hoverSeries;n.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()}).attr({zIndex:8}).add()}return this.label},y.prototype.getPosition=function(t,e,s){var o,r=this.chart,n=this.distance,a={},h=r.inverted&&s.h||0,l=this.outside,c=l?i.documentElement.clientWidth-2*n:r.chartWidth,d=l?Math.max(i.body.scrollHeight,i.documentElement.scrollHeight,i.body.offsetHeight,i.documentElement.offsetHeight,i.documentElement.clientHeight):r.chartHeight,p=r.pointer.getChartPosition(),f=r.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},y=function(i){var o="x"===i;return[i,o?c:d,o?t:e].concat(l?[o?g(t):m(e),o?p.left-n+g(s.plotX+r.plotLeft):p.top-n+m(s.plotY+r.plotTop),0,o?c:d]:[o?t:e,o?s.plotX+r.plotLeft:s.plotY+r.plotTop,o?r.plotLeft:r.plotTop,o?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},v=y("y"),x=y("x"),b=!this.followPointer&&u(s.ttBelow,!r.inverted==!!s.negative),k=function(t){var e=v;v=x,x=e,o=t},M=function(){!1!==function(t,e,i,s,o,r,l){var c="y"===t?m(n):g(n),d=(i-s)/2,p=s<o-n,u=o+n+s<e,f=o-c-i+d;if(o=o+c-d,b&&u)a[t]=o;else if(!b&&p)a[t]=f;else if(p)a[t]=Math.min(l-s,0>f-h?f:f-h);else{if(!u)return!1;a[t]=Math.max(r,o+h+i>e?o:o+h)}}.apply(0,v)?!1!==function(t,e,i,s,o){var r;return o<n||o>e-n?r=!1:a[t]=o<i/2?1:o>e-s/2?e-s-2:o-i/2,r}.apply(0,x)||o||(k(!0),M()):o?a.x=a.y=0:(k(!0),M())};return(r.inverted||1<this.len)&&k(),M(),a},y.prototype.getXDateFormat=function(t,e,i){e=e.dateTimeLabelFormats;var s=i&&i.closestPointRange;return(s?this.getDateFormat(s,t.x,i.options.startOfWeek,e):e.day)||e.year},y.prototype.hide=function(t){var i=this;e.clearTimeout(this.hideTimer),t=u(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=g(function(){i.getLabel().fadeOut(t?void 0:t),i.isHidden=!0},t))},y.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=u(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},y.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)},y.prototype.move=function(t,i,s,o){var r=this,n=r.now,h=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-n.x)||1<Math.abs(i-n.y)),l=r.followPointer||1<r.len;a(n,{x:h?(2*n.x+t)/3:t,y:h?(n.y+i)/2:i,anchorX:l?void 0:h?(2*n.anchorX+s)/3:s,anchorY:l?void 0:h?(n.anchorY+o)/2:o}),r.getLabel().attr(n),r.drawTracker(),h&&(e.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(t,i,s,o)},32))},y.prototype.refresh=function(t,i){var s=this.chart,o=this.options,r=t,n={},a=[],l=o.formatter||this.defaultFormatter;n=this.shared;var c=s.styledMode;if(o.enabled){e.clearTimeout(this.hideTimer),this.followPointer=f(r)[0].series.tooltipOptions.followPointer;var d=this.getAnchor(r,i);i=d[0];var p=d[1];!n||r.series&&r.series.noSharedTooltip?n=r.getLabelConfig():(s.pointer.applyInactiveState(r),r.forEach(function(t){t.setState("hover"),a.push(t.getLabelConfig())}),(n={x:r[0].category,y:r[0].y}).points=a,r=r[0]),this.len=a.length,s=l.call(n,this),l=r.series,this.distance=u(l.tooltipOptions.distance,16),!1===s?this.hide():(this.split?this.renderSplit(s,f(t)):(t=this.getLabel(),o.style.width&&!c||t.css({width:this.chart.spacingBox.width+"px"}),t.attr({text:s&&s.join?s.join(""):s}),t.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+u(r.colorIndex,l.colorIndex)),c||t.attr({stroke:o.borderColor||r.color||l.color||"#666666"}),this.updatePosition({plotX:i,plotY:p,negative:r.negative,ttBelow:r.ttBelow,h:d[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),h(this,"refresh")}},y.prototype.renderSplit=function(e,i){function o(t,e,i,o,r){return void 0===r&&(r=!0),i?(e=A?0:L,t=s(t-o/2,w.left,w.right-o)):(e-=T,t=s(t=r?t-o-k:t+k,r?t:w.left,w.right)),{x:t,y:e}}var r=this,n=r.chart,h=r.chart,l=h.plotHeight,c=h.plotLeft,p=h.plotTop,f=h.pointer,g=h.renderer,m=h.scrollablePixelsY,y=void 0===m?0:m,v=(m=void 0===(m=h.scrollingContainer)?{scrollLeft:0,scrollTop:0}:m).scrollLeft,x=m.scrollTop,b=h.styledMode,k=r.distance,M=r.options,S=r.options.positioner,w={left:v,right:v+h.chartWidth,top:x,bottom:x+h.chartHeight},C=r.getLabel(),A=!(!n.xAxis[0]||!n.xAxis[0].opposite),T=p+x,P=0,L=l-y;d(e)&&(e=[!1,e]),e=e.slice(0,i.length+1).reduce(function(t,e,n){if(!1!==e&&""!==e){var a=(n=i[n-1]||{isHeader:!0,plotX:i[0].plotX,plotY:l,series:{}}).isHeader,h=a?r:n.series,d=h.tt,f=n.isHeader,m=n.series,v="highcharts-color-"+u(n.colorIndex,m.colorIndex,"none");d||(d={padding:M.padding,r:M.borderRadius},b||(d.fill=M.backgroundColor,d["stroke-width"]=M.borderWidth),d=g.label("",0,0,M[f?"headerShape":"shape"]||"callout",void 0,void 0,M.useHTML).addClass((f?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+v).attr(d).add(C)),d.isActive=!0,d.attr({text:e}),b||d.css(M.style).shadow(M.shadow).attr({stroke:M.borderColor||n.color||m.color||"#333333"}),e=h.tt=d,h=(f=e.getBBox()).width+e.strokeWidth(),a&&(P=f.height,L+=P,A&&(T-=P)),m=void 0===(m=n.plotX)?0:m,v=void 0===(v=n.plotY)?0:v;var O=n.series;if(n.isHeader){m=c+m;var E=p+l/2}else d=O.xAxis,O=O.yAxis,m=d.pos+s(m,-k,d.len+k),O.pos+v>=x+p&&O.pos+v<=x+p+l-y&&(E=O.pos+v);m=s(m,w.left-k,w.right+k),"number"==typeof E?(f=f.height+1,v=S?S.call(r,h,f,n):o(m,E,a,h),t.push({align:S?0:void 0,anchorX:m,anchorY:E,boxWidth:h,point:n,rank:u(v.rank,a?1:0),size:f,target:v.y,tt:e,x:v.x})):e.isActive=!1}return t},[]),!S&&e.some(function(t){return t.x<w.left})&&(e=e.map(function(t){var e=o(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return a(t,{target:e.y,x:e.x})})),r.cleanSplit(),t.distribute(e,L),e.forEach(function(t){var e=t.pos;t.tt.attr({visibility:void 0===e?"hidden":"inherit",x:t.x,y:e+T,anchorX:t.anchorX,anchorY:t.anchorY})}),e=r.container,n=r.renderer,r.outside&&e&&n&&(h=C.getBBox(),n.setSize(h.width+h.x,h.height+h.y,!1),f=f.getChartPosition(),e.style.left=f.left+"px",e.style.top=f.top+"px")},y.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,i=t.hoverPoint;if(e&&i){var s={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var o=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,s.x=Math.min(0,i[0]),s.y=Math.min(0,i[1]),s.width=0>i[0]?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),s.height=0>i[1]?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},y.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},y.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",s=t.series,o=s.tooltipOptions,r=o.xDateFormat,n=s.xAxis,a=n&&"datetime"===n.options.type&&c(t.key),d=o[i+"Format"];return h(this,"headerFormatter",e={isFooter:e,labelConfig:t},function(e){a&&!r&&(r=this.getXDateFormat(t,o,n)),a&&r&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(t){d=d.replace("{point."+t+"}","{point."+t+":"+r+"}")}),s.chart.styledMode&&(d=this.styledModeFormat(d)),e.text=l(d,{point:t,series:s},this.chart)}),e.text},y.prototype.update=function(t){this.destroy(),p(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,p(!0,this.options,t))},y.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,s=this.getLabel(),r=t.plotX+e.plotLeft,n=t.plotY+e.plotTop;if(i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,s.width,s.height,t),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(s.width+a,s.height+a,!1),(e=e.containerScaling)&&(o(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),r*=e.scaleX,n*=e.scaleY),r+=i.left-t.x,n+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),r,n)},y}();return t.Tooltip=y,t.Tooltip}),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],function(t,e,i,s){var o=t.parse,r=e.charts,n=e.noop,a=s.addEvent,h=s.attr,l=s.css,c=s.defined,d=s.extend,p=s.find,u=s.fireEvent,f=s.isNumber,g=s.isObject,m=s.objectEach,y=s.offset,v=s.pick,x=s.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var t=this;void 0!==t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),m(t,function(e,i){t[i]=void 0})},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,s=t.chartX,r=t.chartY,n=this.zoomHor,a=this.zoomVert,h=e.plotLeft,l=e.plotTop,c=e.plotWidth,d=e.plotHeight,p=this.selectionMarker,u=this.mouseDownX||0,f=this.mouseDownY||0,m=g(i.panning)?i.panning&&i.panning.enabled:i.panning,y=i.panKey&&t[i.panKey+"Key"];if((!p||!p.touch)&&(s<h?s=h:s>h+c&&(s=h+c),r<l?r=l:r>l+d&&(r=l+d),this.hasDragged=Math.sqrt(Math.pow(u-s,2)+Math.pow(f-r,2)),10<this.hasDragged)){var v=e.isInsidePlot(u-h,f-l);e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&v&&!y&&!p&&(this.selectionMarker=p=e.renderer.rect(h,l,n?1:c,a?1:d,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||p.attr({fill:i.selectionMarkerFill||o("#335cad").setOpacity(.25).get()})),p&&n&&(s-=u,p.attr({width:Math.abs(s),x:(0<s?0:s)+u})),p&&a&&(s=r-f,p.attr({height:Math.abs(s),y:(0<s?0:s)+f})),v&&!p&&m&&e.pan(t,i.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,i=this.chart,s=this.hasPinched;if(this.selectionMarker){var o,r={originalEvent:t,xAxis:[],yAxis:[]},n=this.selectionMarker,a=n.attr?n.attr("x"):n.x,h=n.attr?n.attr("y"):n.y,p=n.attr?n.attr("width"):n.width,g=n.attr?n.attr("height"):n.height;(this.hasDragged||s)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&c(i.min)&&(s||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&f(a)&&f(h)){var n=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,d=i.toValue((n?a:h)+l);n=i.toValue((n?a+p:h+g)-l),r[i.coll].push({axis:i,min:Math.min(d,n),max:Math.max(d,n)}),o=!0}}),o&&u(i,"selection",r,function(t){i.zoom(d(t,s?{animation:!1}:null))})),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),s&&this.scaleGroups()}i&&f(i.index)&&(l(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,i){var s,o=this.chart,r=o.hoverPoint;return o=o.tooltip,r&&o&&o.isStickyOnContact()?r:(t.forEach(function(t){var o=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,o),(o=g(t,!0))&&!(o=!g(s,!0))){o=s.distX-t.distX;var r=s.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex);o=0<(0!==o&&e?o:0!==r?r:0!==n?n:s.series.index>t.series.index?-1:1)}o&&(s=t)}),s)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var o=v(t.clientX,t.plotX),r=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-o,chartY:i.len+i.pos-t.plotY}:{chartX:o+s.pos,chartY:t.plotY+i.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},t.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=y(this.chart.container))},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,i,s,o,r){var n,a=[];s=!(!s||!t);var h=e&&!e.stickyTracking,l={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};return u(this,"beforeGetHoverData",l),h=h?[e]:i.filter(function(t){return l.filter?l.filter(t):t.visible&&!(!o&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking}),e=(n=s||!r?t:this.findNearestKDPoint(h,o,r))&&n.series,n&&(o&&!e.noSharedTooltip?(h=i.filter(function(t){return l.filter?l.filter(t):t.visible&&!(!o&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=p(t.points,function(t){return t.x===n.x&&!t.isNull});g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))}):a.push(n)),u(this,"afterGetHoverData",l={hoverPoint:n}),{hoverPoint:l.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=h(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,s=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=s.pageX-e.left,e=s.pageY-e.top,(s=this.chart.containerScaling)&&(i/=s.scaleX,e/=s.scaleY),d(t,{chartX:Math.round(i),chartY:Math.round(e)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var s=e.plotLeft,o=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(u(i.series,"click",d(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-o)&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(t){var i=r[v(e.hoverChartIndex,-1)],s=this.chart.tooltip;t=this.normalize(t),i&&(t.relatedTarget||t.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),s&&!s.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){r[e.hoverChartIndex]&&r[e.hoverChartIndex].pointer.drop(t)},t.prototype.onContainerTouchMove=function(t){this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var s=e.tooltip;!i||s&&s.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var i=r[v(e.hoverChartIndex,-1)];i&&i.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,i=e.chart,s=e.pinchDown,o=t.touches||[],r=o.length,a=e.lastValidTouch,h=e.hasZoom,l=e.selectionMarker,c={},p=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),u={};1<r&&(e.initiated=!0),h&&e.initiated&&!p&&!1!==t.cancelable&&t.preventDefault(),[].map.call(o,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(o,function(t,e){s[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[s[0].chartX,s[1]&&s[1].chartX],a.y=[s[0].chartY,s[1]&&s[1].chartY],i.axes.forEach(function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],s=t.minPixelPadding,o=t.toPixels(Math.min(v(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(v(t.options.max,t.dataMax),t.dataMax)),n=Math.max(o,r);e.min=Math.min(t.pos,Math.min(o,r)-s),e.max=Math.max(t.pos+t.len,n+s)}}),e.res=!0):e.followTouchMove&&1===r?this.runPointActions(e.normalize(t)):s.length&&(l||(e.selectionMarker=l=d({destroy:n,touch:!0},i.plotBox)),e.pinchTranslate(s,o,c,l,u,a),e.hasPinched=h,e.scaleGroups(c,u),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,s,o,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,s,o,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,s,o,r)},t.prototype.pinchTranslateDirection=function(t,e,i,s,o,r,n,a){var h,l,c=this.chart,d=t?"x":"y",p=t?"X":"Y",u="chart"+p,f=t?"width":"height",g=c["plot"+(t?"Left":"Top")],m=a||1,y=c.inverted,v=c.bounds[t?"h":"v"],x=1===e.length,b=e[0][u],k=i[0][u],M=!x&&e[1][u],S=!x&&i[1][u];if((i=function(){"number"==typeof S&&20<Math.abs(b-M)&&(m=a||Math.abs(k-S)/Math.abs(b-M)),l=(g-k)/m+b,h=c["plot"+(t?"Width":"Height")]/m})(),(e=l)<v.min){e=v.min;var w=!0}else e+h>v.max&&(e=v.max-h,w=!0);w?(k-=.8*(k-n[d][0]),"number"==typeof S&&(S-=.8*(S-n[d][1])),i()):n[d]=[k,S],y||(r[d]=l-g,r[f]=h),r=y?1/m:m,o[f]=h,o[d]=e,s[y?t?"scaleY":"scaleX":"scale"+p]=m,s["translate"+p]=r*g+(k-r*b)},t.prototype.reset=function(t,e){var i=this.chart,s=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:o;t&&a&&x(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?n&&a&&x(a).length&&(n.refresh(a),n.shared&&r?r.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(t){t.setState()}),s&&s.onMouseOut(),n&&n.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(t,i){var s=this.chart,o=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,n=!!o&&o.shared,h=i||s.hoverPoint,l=h&&h.series||s.hoverSeries;h=(l=this.getHoverData(h,l,s.series,(!t||"touchmove"!==t.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),n,t)).hoverPoint;var c=l.hoverPoints;if(i=(l=l.hoverSeries)&&l.tooltipOptions.followPointer,n=n&&l&&!l.noSharedTooltip,h&&(h!==s.hoverPoint||o&&o.isHidden)){if((s.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),s.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!h.series)return;s.hoverPoints=c,s.hoverPoint=h,h.firePointEvent("mouseOver"),o&&o.refresh(n?c:h,t)}else i&&o&&!o.isHidden&&(h=o.getAnchor([{}],t),o.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",function(t){var i=r[e.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(t)})),s.axes.forEach(function(e){var i,o=v((e.crosshair||{}).snap,!0);o&&((i=s.hoverPoint)&&i.series[e.coll]===e||(i=p(c,function(t){return t.series[e.coll]===e}))),i||!o?e.drawCrosshair(t,i):e.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var i,s=this.chart;s.series.forEach(function(o){i=t||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&o.group&&(o.group.attr(i),o.markerGroup&&(o.markerGroup.attr(i),o.markerGroup.clip(e?s.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(i))}),s.clipRect.attr(e||s.clipBox)},t.prototype.setDOMEvents=function(){var t=this.chart.container,i=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=a(t,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=a(t,"mouseleave",this.onContainerMouseLeave.bind(this)),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this))),e.hasTouch&&(a(t,"touchstart",this.onContainerTouchStart.bind(this)),a(t,"touchmove",this.onContainerTouchMove.bind(this)),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=a(i,"touchend",this.onDocumentTouchEnd.bind(this))))},t.prototype.setHoverChartIndex=function(){var t=this.chart,i=e.charts[v(e.hoverChartIndex,-1)];i&&i!==t&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(e.hoverChartIndex=t.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var s=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(s,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=v(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},t}(),e.Pointer=t}),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],function(t,e,i){function s(){var t=[];return t.item=function(t){return this[t]},d(u,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function o(e,i,o,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!n[t.hoverChartIndex]||(r(e),(r=n[t.hoverChartIndex].pointer)[i]({type:o,target:e.currentTarget,preventDefault:h,touches:s()}))}var r=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),n=t.charts,a=t.doc,h=t.noop,l=i.addEvent,c=i.css,d=i.objectEach,p=i.removeEvent,u={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(p),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&c(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){o(t,"onContainerTouchStart","touchstart",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},e.prototype.onContainerPointerMove=function(t){o(t,"onContainerTouchMove","touchmove",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)})},e.prototype.onDocumentPointerUp=function(t){o(t,"onDocumentTouchEnd","touchend",function(t){delete u[t.pointerId]})},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(l)},e}(e)}),e(i,"Core/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var s=t.animObject,o=t.setAnimation,r=i.addEvent,n=i.css,a=i.defined,h=i.discardElement,l=i.find,c=i.fireEvent,d=i.format,p=i.isNumber,u=i.merge,f=i.pick,g=i.relativeLength,m=i.stableSort,y=i.syncTimeout;t=i.wrap,i=e.isFirefox;var v=e.marginNames,x=e.win,b=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),r(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=r(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=f(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=u(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=f(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(u(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,f(e,!0)&&i.redraw(),c(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,o=t.legendLine,r=t.legendSymbol,n=this.itemHiddenStyle.color;i=e?i.itemStyle.color:n;var a=e&&t.color||n,h=t.options&&t.options.marker,l={fill:a};s&&s.css({fill:i,color:i}),o&&o.attr({stroke:a}),r&&(h&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=n)),r.attr(l))}c(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=this.options,s=i.symbolPadding,o=!i.rtl,r=t._legendItemPos;i=r[0],r=r[1];var n=t.checkbox,h=t.legendGroup;h&&h.element&&(s={translateX:o?i:this.legendWidth-i-2*s-4,translateY:r},o=function(){c(e,"afterPositionItem",{item:t})},a(h.translateY)?h.animate(s,void 0,o):(h.attr(s),o())),n&&(n.x=i,n.y=r)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&h(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach(function(o){var r=o.checkbox;if(r){var a=s+i+r.y+(this.scrollOffset||0)+3;n(r,{left:t.translateX+o.checkboxOffset+r.x-20+"px",top:a+"px",display:this.proximate||a>s-6&&a<s+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,s=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?d(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,i=e.renderer,s=this.options,o=this.symbolWidth,r=s.symbolPadding,n=this.itemStyle,a=this.itemHiddenStyle,h="horizontal"===s.layout?f(s.itemDistance,20):0,l=!s.rtl,c=t.legendItem,d=!t.series,p=!d&&t.series.drawLegendSymbol?t.series:t,g=p.options;h=o+r+h+((g=this.createCheckboxForItem&&g&&g.showCheckbox)?20:0);var m=s.useHTML,y=t.options.className;c||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=c=i.text("",l?o+r:-r,this.baseline||0,m),e.styledMode||c.css(u(t.visible?n:a)),c.attr({align:l?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:n.fontSize,c),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,c.attr("y",this.baseline)),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,c,m)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&n.width||c.css({width:(s.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"}),this.setText(t),e=c.getBBox(),t.itemWidth=t.checkboxOffset=s.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,s="horizontal"===e.layout,o=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=s?f(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=n+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i=e&&e.options;e&&f(i.showInLegend,!a(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),c(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,n){r.test(o)&&!a(t[n])&&(i[v[n]]=Math.max(i[v[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*s[n%2?"x":"y"]+f(s.margin,12)+e[n]+(i.titleOffset[n]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach(function(e){var o,r=s;if(e.yAxis){e.xAxis.options.reversed&&(r=!r),e.points&&(o=l(r?e.points:e.points.slice(0).reverse(),function(t){return p(t.plotY)})),r=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var n=e.yAxis.top-t.plotTop;e.visible?(o=o?o.plotY:e.yAxis.height,o+=n-.3*r):o=n+e.yAxis.height,i.push({target:o,size:r,item:e})}},this),e.distribute(i,t.plotHeight),i.forEach(function(e){e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos})},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,s=this.box,o=this.options,r=this.padding;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=g(o.width,t.spacingBox.width-r);var n=t.spacingBox.width-2*r-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2),this.maxLegendWidth=this.widthOption||n,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();m(a,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),o.reversed&&a.reverse(),this.allItems=a,this.display=n=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+r;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=r,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(i),s.isNew=!0),t.styledMode||s.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<a&&0<h&&(s[s.isNew?"attr":"animate"](s.crisp.call({},{x:0,y:0,width:a,height:h},s.strokeWidth())),s.isNew=!1),s[n?"show":"hide"](),t.styledMode&&"none"===i.getStyle("display")&&(a=h=0),this.legendWidth=a,this.legendHeight=h,n&&this.align(),this.proximate||this.positionItems(),c(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(s-=e.titleOffset[2]),s!==t.y&&(t=u(t,{y:s})),this.group.align(u(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e=this,i=this.chart,s=i.renderer,o=this.options,r=o.y,n=this.padding;r=i.spacingBox.height+("top"===o.verticalAlign?-r:r)-n;var a,h,l=o.maxHeight,c=this.clipRect,d=o.navigation,p=f(d.animation,!0),u=d.arrowSize||12,g=this.nav,m=this.pages,y=this.allItems,v=function(t){"number"==typeof t?c.attr({height:t}):c&&(e.clipRect=c.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+n+"px,9999px,"+(n+t)+"px,0)":"auto")},x=function(t){return e[t]=s.circle(0,0,1.3*u).translate(u/2,u/2).add(g),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(r/=2),l&&(r=Math.min(r,l)),m.length=0,t>r&&!1!==d.enabled?(this.clipHeight=a=Math.max(r-20-this.titleHeight-n,0),this.currentPage=f(this.currentPage,1),this.fullHeight=t,y.forEach(function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),o=m.length;(!o||i-m[o-1]>a&&(h||i)!==m[o-1])&&(m.push(h||i),o++),t.pageIx=o-1,h&&(y[e-1].pageIx=o-1),e===y.length-1&&i+s-m[o-1]>a&&i!==h&&(m.push(i),t.pageIx=o),i!==h&&(h=i)}),c||(c=e.clipRect=s.clipRect(0,n,9999,0),e.contentGroup.clip(c)),v(a),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,u,u).add(g),x("upTracker").on("click",function(){e.scroll(-1,p)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,u,u).add(g),x("downTracker").on("click",function(){e.scroll(1,p)})),e.scroll(0),t=r):g&&(v(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,r=this.chart,n=this.pages,a=n.length,h=this.currentPage+t;t=this.clipHeight;var l=this.options.navigation,d=this.pager,p=this.padding;h>a&&(h=a),0<h&&(void 0!==e&&o(e,r),this.nav.attr({translateX:p,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),d.attr({text:h+"/"+a}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:h===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),r.styledMode||(this.up.attr({fill:1===h?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===a?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:h===a?"default":"pointer"})),this.scrollOffset=-n[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),e=s(f(e,r.renderer.globalAnimation,!0)),y(function(){c(i,"afterScroll",{currentPage:h})},e.duration))},t}();return(/Trident\/7\.0/.test(x.navigator&&x.navigator.userAgent)||i)&&t(b.prototype,"positionItem",function(t,e){var i=this,s=function(){e._legendItemPos&&t.call(i,e)};s(),i.bubbleLegend||setTimeout(s)}),e.Legend=b,e.Legend}),e(i,"Core/Series/Point.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var s=t.animObject,o=i.defined,r=i.erase,n=i.extend,a=i.fireEvent,h=i.format,l=i.getNestedProperty,c=i.isArray,d=i.isNumber,p=i.isObject,u=i.syncTimeout,f=i.pick,g=i.removeEvent,m=i.uniqueKey;return t=function(){function t(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return t.prototype.animateBeforeDestroy=function(){var t,e=this,i={x:e.startXPos,opacity:0},s=e.getGraphicalProps();s.singular.forEach(function(s){t="dataLabel"===s,e[s]=e[s].animate(t?{x:e[s].startXPos,y:e[s].startYPos,opacity:0}:i)}),s.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(n({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},t.prototype.applyOptions=function(e,i){var s=this.series,o=s.options.pointValKey||s.pointValKey;return e=t.prototype.optionsToObject.call(this,e),n(this,e),this.options=this.options?n(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,o&&(this.y=t.prototype.getNestedProperty.call(this,o)),this.formatPrefix=(this.isNull=f(this.isValid&&!this.isValid(),null===this.x||!d(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&s.xAxis&&s.xAxis.hasNames&&(this.x=s.xAxis.nameToX(this)),void 0===this.x&&s&&(this.x=void 0===i?s.autoIncrement(this):i),this},t.prototype.destroy=function(){function t(){for(n in(e.graphic||e.dataLabel||e.dataLabels)&&(g(e),e.destroyElements()),e)e[n]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var n,a=o.hoverPoints,h=s(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),a&&(e.setState(),r(a,e),a.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),u(t,h.duration)):t(),o.pointCount--},t.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.destroy()}),delete e[t]})},t.prototype.firePointEvent=function(t,e,i){var s=this,o=this.series.options;(o.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&s.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),a(s,t,e,i)},t.prototype.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&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},t.prototype.getGraphicalProps=function(t){var e,i=this,s=[],o={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelUpper","connector"),e=s.length;e--;){var r=s[e];i[r]&&o.singular.push(r)}return["dataLabel","connector"].forEach(function(e){var s=e+"s";t[e]&&i[s]&&o.plural.push(s)}),o},t.prototype.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}},t.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?l(t,this.options):this[t]},t.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,s=0;for(i=e[s];this[t]>=i.value;)i=e[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=o(this.id)?this.id:m(),this.resolveColor(),t.chart.pointCount++,a(this,"afterInit"),this},t.prototype.optionsToObject=function(e){var i={},s=this.series,o=s.options.keys,r=o||s.pointArrayMap||["y"],n=r.length,a=0,h=0;if(d(e)||null===e)i[r[0]]=e;else if(c(e))for(!o&&e.length>n&&("string"===(s=typeof e[0])?i.name=e[0]:"number"===s&&(i.x=e[0]),a++);h<n;)o&&void 0===e[a]||(0<r[h].indexOf(".")?t.prototype.setNestedProperty(i,e[a],r[h]):i[r[h]]=e[a]),a++,h++;else"object"==typeof e&&(i=e,e.dataLabels&&(s._hasPointLabels=!0),e.marker&&(s._hasPointMarkers=!0));return i},t.prototype.resolveColor=function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;delete this.nonZonedColor,i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=f(this.colorIndex,i)},t.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,s,o){return t[i]=o.length-1===s?e:p(t[i],!0)?t[i]:{},t[i]},t),t},t.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,s=f(i.valueDecimals,""),o=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(o||r)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+s+"f}")}),h(t,{point:this,series:this.series},e.chart)},t}(),e.Point=t}),e(i,"Core/Series/Series.js",[i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i){var s=i.error,o=i.extendClass,r=i.fireEvent,n=i.getOptions,a=i.isObject,h=i.merge,l=i.objectEach;return(i=function(){function t(e,i){var s=h(t.defaultOptions,i);this.chart=e,this._i=e.series.length,e.series.push(this),this.options=s,this.userOptions=h(i)}return t.addSeries=function(e,i){t.seriesTypes[e]=i},t.cleanRecursively=function(e,i){var s={};return l(e,function(o,r){a(e[r],!0)&&!e.nodeType&&i[r]?(o=t.cleanRecursively(e[r],i[r]),Object.keys(o).length&&(s[r]=o)):(a(e[r])||e[r]!==i[r])&&(s[r]=e[r])}),s},t.getSeries=function(e,i){void 0===i&&(i={});var o=e.options.chart;o=i.type||o.type||o.defaultSeriesType||"";var r=t.seriesTypes[o];return r||s(17,!0,e,{missingModuleFor:o}),new r(e,i)},t.seriesType=function(i,s,r,a,l){var c=n().plotOptions||{},d=t.seriesTypes;return s=s||"",c[i]=h(c[s],r),t.addSeries(i,o(d[s]||function(){},a)),d[i].prototype.type=i,l&&(d[i].prototype.pointClass=o(e,l)),d[i]},t.prototype.update=function(e,i){void 0===i&&(i=!0);var s=this,o=(e=t.cleanRecursively(e,this.userOptions)).type;return void 0!==o&&o!==s.type&&(s=t.getSeries(s.chart,e)),r(s,"update",{newOptions:e}),s.userOptions=h(e),r(s,"afterUpdate",{newOptions:e}),i&&s.chart.redraw(),s},t.defaultOptions={type:"base"},t.seriesTypes={},t}()).prototype.pointClass=e,t.seriesType=i.seriesType,t.seriesTypes=i.seriesTypes,i}),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Series/Series.js"],i["Core/Globals.js"],i["Core/Legend.js"],i["Core/MSPointer.js"],i["Core/Options.js"],i["Core/Pointer.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(t,e,i,s,o,r,n,a,h,l){var c=t.animate,d=t.animObject,p=t.setAnimation,u=s.charts,f=s.doc,g=s.win,m=n.defaultOptions,y=l.addEvent,v=l.attr,x=l.createElement,b=l.css,k=l.defined,M=l.discardElement,S=l.erase,w=l.error,C=l.extend,A=l.find,T=l.fireEvent,P=l.getStyle,L=l.isArray,O=l.isFunction,E=l.isNumber,D=l.isObject,I=l.isString,B=l.merge,j=l.numberFormat,z=l.objectEach,R=l.pick,N=l.pInt,W=l.relativeLength,G=l.removeEvent,X=l.splat,H=l.syncTimeout,Y=l.uniqueKey,F=s.marginNames,U=function(){function t(t,e,i){this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.getArgs(t,e,i)}return t.prototype.getArgs=function(t,e,i){I(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i,o=t.series,r=t.plotOptions||{};T(this,"init",{args:arguments},function(){t.series=null;var n=(i=B(m,t)).chart||{};z(i.plotOptions,function(t,e){D(t)&&(t.tooltip=r[e]&&B(r[e].tooltip)||void 0)}),i.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,i.series=t.series=o,this.userOptions=t;var a=n.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):s.time,this.numberFormatter=n.numberFormatter||j,this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes;var l=this;l.index=u.length,u.push(l),s.chartCount++,a&&z(a,function(t,e){O(t)&&y(l,e,t)}),l.xAxis=[],l.yAxis=[],l.pointCount=l.colorCounter=l.symbolCounter=0,T(l,"afterInit"),l.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var s=i.seriesTypes[e];return s||w(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new s(this,t)).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderSeries=function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){var s=i?e:t;return s={x:s,y:t=i?t:e,isInsidePlot:0<=s&&s<=this.plotWidth&&0<=t&&t<=this.plotHeight},T(this,"afterIsInsidePlot",s),s.isInsidePlot},t.prototype.redraw=function(t){T(this,"beforeRedraw");var e=this,i=e.axes,s=e.series,o=e.pointer,r=e.legend,n=e.userOptions.legend,a=e.isDirtyLegend,h=e.hasCartesianSeries,l=e.isDirtyBox,c=e.renderer,d=c.isHidden(),u=[];for(e.setResponsive&&e.setResponsive(!1),p(!!e.hasRendered&&t,e),d&&e.temporaryDisplay(),e.layOutTitles(),t=s.length;t--;){var f=s[t];if(f.options.stacking){var g=!0;if(f.isDirty){var m=!0;break}}}if(m)for(t=s.length;t--;)(f=s[t]).options.stacking&&(f.isDirty=!0);s.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),a=!0):n&&(n.labelFormatter||n.labelFormat)&&(a=!0)),t.isDirtyData&&T(t,"updatedData")}),a&&r&&r.options.enabled&&(r.render(),e.isDirtyLegend=!1),g&&e.getStacks(),h&&i.forEach(function(t){e.isResizing&&E(t.min)||(t.updateNames(),t.setScale())}),e.getMargins(),h&&(i.forEach(function(t){t.isDirty&&(l=!0)}),i.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,u.push(function(){T(t,"afterSetExtremes",C(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||g)&&t.redraw()})),l&&e.drawChartBox(),T(e,"predraw"),s.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),o&&o.reset(!0),c.draw(),T(e,"redraw"),T(e,"render"),d&&e.temporaryDisplay(!0),u.forEach(function(t){t.call()})},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,s=this.series,o=A(this.axes,e)||A(this.series,e);for(i=0;!o&&i<s.length;i++)o=A(s[i].points||[],e);return o},t.prototype.getAxes=function(){var t=this,i=this.options,s=i.xAxis=X(i.xAxis||{});i=i.yAxis=X(i.yAxis||{}),T(this,"getAxes"),s.forEach(function(t,e){t.index=e,t.isX=!0}),i.forEach(function(t,e){t.index=e}),s.concat(i).forEach(function(i){new e(t,i)}),T(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){var t=[];return this.series.forEach(function(e){t=t.concat(e.getPointsCollection().filter(function(t){return R(t.selectedStaging,t.selected)}))}),t},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i=this,s="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};s=this.options[t]=B(!this.styledMode&&{style:s},this.options[t],e);var o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||o.css(s.style),this[t]=o)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,s=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var o=this[t],r=this.options[t],n=r.verticalAlign||"top";if(t="title"===t?-3:"top"===n?e[0]+2:0,o){if(!this.styledMode)var a=r.style.fontSize;a=i.fontMetrics(a,o).b,o.css({width:(r.width||s.width+(r.widthAdjust||0))+"px"});var h=Math.round(o.getBBox(r.useHTML).height);o.align(C({y:"bottom"===n?a:t+a,height:h},r),!1,"spacingBox"),r.floating||("top"===n?e[0]=Math.ceil(e[0]+h):"bottom"===n&&(e[2]=Math.ceil(e[2]+h)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,T(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,this.hasRendered&&R(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var i=this.renderTo;k(e)||(this.containerWidth=P(i,"width")),k(t)||(this.containerHeight=P(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,W(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(b(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(f.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(f.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,f.body.appendChild(e)),("none"===P(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),b(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==f.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i=this.options,o=i.chart,r=this.renderTo,n=Y();r||(this.renderTo=r=o.renderTo),I(r)&&(this.renderTo=r=f.getElementById(r)),r||w(13,!0,this);var a=N(v(r,"data-highcharts-chart"));E(a)&&u[a]&&u[a].hasRendered&&u[a].destroy(),v(r,"data-highcharts-chart",this.index),r.innerHTML="",o.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth;var h=this.chartHeight;if(b(r,{overflow:"hidden"}),this.styledMode||(t=C({position:"relative",overflow:"hidden",width:a+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none"},o.style)),this.container=r=x("div",{id:n},t,r),this._cursor=r.style.cursor,this.renderer=new(s[o.renderer]||s.Renderer)(r,a,h,null,o.forExport,i.exporting&&i.exporting.allowHTML,this.styledMode),p(void 0,this),this.setClassName(o.className),this.styledMode)for(e in i.defs)this.renderer.definition(i.defs[e]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,T(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,s=this.titleOffset;this.resetMargins(),s[0]&&!k(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!k(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),T(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,o=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),F.forEach(function(i,o){k(s[o])||(t[i]+=e[o])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,s=e.renderTo,o=k(i.width)&&k(i.height),r=i.width||P(s,"width");i=i.height||P(s,"height"),s=t?t.target:g,o||e.isPrinting||!r||!i||s!==g&&s!==f||(r===e.containerWidth&&i===e.containerHeight||(l.clearTimeout(e.reflowTimeout),e.reflowTimeout=H(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=r,e.containerHeight=i)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=y(g,"resize",function(t){e.options&&e.reflow(t)}),y(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var s=this,o=s.renderer;s.isResizing+=1,p(i,s),i=o.globalAnimation,s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize(),s.styledMode||(i?c:b)(s.container,{width:s.chartWidth+"px",height:s.chartHeight+"px"},i),s.setChartSize(!0),o.setSize(s.chartWidth,s.chartHeight,i),s.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(i),s.oldChartHeight=null,T(s,"resize"),H(function(){s&&T(s,"endResize",null,function(){--s.isResizing})},d(i).duration)},t.prototype.setChartSize=function(t){var e,i,s,o,r=this.inverted,n=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?o:s,this.plotSizeY=r?s:o,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=n.plotBox={x:e,y:i,width:s,height:o},a=2*Math.floor(this.plotBorderWidth/2),r=Math.ceil(Math.max(a,d[3])/2),n=Math.ceil(Math.max(a,d[0])/2),this.clipBox={x:r,y:n,width:Math.floor(this.plotSizeX-Math.max(a,d[1])/2-r),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,d[2])/2-n))},t||this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),T(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){T(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var s=e[i],o=D(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach(function(s,r){t[i][r]=R(e[i+s],o[r])})}),F.forEach(function(e,i){t[e]=R(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,i=this.renderer,s=this.chartWidth,o=this.chartHeight,r=this.chartBackground,n=this.plotBackground,a=this.plotBorder,h=this.styledMode,l=this.plotBGImage,c=e.backgroundColor,d=e.plotBackgroundColor,p=e.plotBackgroundImage,u=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,y=this.plotBox,v=this.clipRect,x=this.clipBox,b="animate";if(r||(this.chartBackground=r=i.rect().addClass("highcharts-background").add(),b="attr"),h)var k=t=r.strokeWidth();else t=(k=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(k||r["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=k),r.attr(c).shadow(e.shadow);r[b]({x:t/2,y:t/2,width:s-t-k%2,height:o-t-k%2,r:e.borderRadius}),b="animate",n||(b="attr",this.plotBackground=n=i.rect().addClass("highcharts-plot-background").add()),n[b](y),h||(n.attr({fill:d||"none"}).shadow(e.plotShadow),p&&(l?(p!==l.attr("href")&&l.attr("href",p),l.animate(y)):this.plotBGImage=i.image(p,u,f,g,m).add())),v?v.animate({width:x.width,height:x.height}):this.clipRect=i.clipRect(x),b="animate",a||(b="attr",this.plotBorder=a=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),h||a.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),a[b](a.crisp({x:u,y:f,width:g,height:m},-a.strokeWidth())),this.isDirtyBox=!1,T(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,s,o=this,r=o.options.chart,n=o.options.series;["inverted","angular","polar"].forEach(function(a){for(t=i.seriesTypes[r.type||r.defaultSeriesType],s=r[a]||t&&t.prototype[a],e=n&&n.length;!s&&e--;)(t=i.seriesTypes[n[e].type])&&t.prototype[a]&&(s=!0);o[a]=s})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var i=e.options.linkedTo;I(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=R(e.options.visible,i.options.visible,e.visible))}),T(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(i){var s=C(e.style,i.style),o=N(s.left)+t.plotLeft,r=N(s.top)+t.plotTop+12;delete s.left,delete s.top,t.renderer.text(i.html,o,r).attr({zIndex:2}).css(s).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options,r=0,n=function(t){t.forEach(function(t){t.visible&&t.render()})};this.setTitle(),this.legend=new o(this,s.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),s=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return r=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-r,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var h=1.1<s/this.plotWidth,l=1.05<a/this.plotHeight;(h||l)&&(t.forEach(function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?n(t):e&&e.length&&n(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=B(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(g.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.updateContainerScaling=function(){var t=this.container;if(2<t.offsetWidth&&2<t.offsetHeight&&t.getBoundingClientRect){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth;t=e.height/t.offsetHeight,1!==i||1!==t?this.containerScaling={scaleX:i,scaleY:t}:delete this.containerScaling}},t.prototype.destroy=function(){var t,e=this,i=e.axes,o=e.series,r=e.container,n=r&&r.parentNode;for(T(e,"destroy"),e.renderer.forExport?S(u,e):u[e.index]=void 0,s.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),G(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML="",G(r),n&&M(r)),z(e,function(t,i){delete e[i]})},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(L(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),T(t,"beforeRender"),a&&(t.pointer=s.hasTouch||!g.PointerEvent&&!g.MSPointerEvent?new a(t,e):new r(t,e)),t.render(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),T(this,"load"),T(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t}();return U.prototype.callbacks=[],s.chart=function(t,e,i){return new U(t,e,i)},s.Chart=U}),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Chart/Chart.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i,s){var o=t.stop,r=s.addEvent,n=s.createElement,a=s.pick;r(e,"afterSetChartSize",function(t){var e=this.options.chart.scrollablePlotArea,s=e&&e.minWidth;if(e=e&&e.minHeight,!this.renderer.forExport){if(s){if(this.scrollablePixelsX=s=Math.max(0,s-this.chartWidth)){this.plotWidth+=s,this.inverted?(this.clipBox.height+=s,this.plotBox.height+=s):(this.clipBox.width+=s,this.plotBox.width+=s);var o={1:{name:"right",value:s}}}}else e&&(this.scrollablePixelsY=s=Math.max(0,e-this.chartHeight))&&(this.plotHeight+=s,this.inverted?(this.clipBox.width+=s,this.plotBox.width+=s):(this.clipBox.height+=s,this.plotBox.height+=s),o={2:{name:"bottom",value:s}});o&&!t.skipAxes&&this.axes.forEach(function(t){o[t.side]?t.getPlotLinePath=function(){var e=o[t.side].name,s=this[e];this[e]=s-o[t.side].value;var r=i.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[e]=s,r}:(t.setAxisSize(),t.setAxisTranslation())})}}),r(e,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),e.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=n("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=n("div",{className:"highcharts-scrolling"},e,this.scrollingParent),r(this.scrollingContainer,"scroll",function(){t.pointer&&delete t.pointer.chartPosition}),this.innerContainer=n("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,s=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),s.push(t,t+"-labels"),s.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},e.prototype.applyFixed=function(){var t,e,s=!this.fixedDiv,h=this.options.chart.scrollablePlotArea;s?(this.fixedDiv=n("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2,top:0},null,!0),null===(t=this.scrollingContainer)||void 0===t||t.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=t=new i.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight,null===(e=this.options.chart)||void 0===e?void 0:e.style),this.scrollableMask=t.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":a(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),r(this,"afterShowResetZoom",this.moveFixedElements),r(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),e=this.chartWidth+(this.scrollablePixelsX||0),t=this.chartHeight+(this.scrollablePixelsY||0),o(this.container),this.container.style.width=e+"px",this.container.style.height=t+"px",this.renderer.boxWrapper.attr({width:e,height:t,viewBox:[0,0,e,t].join(" ")}),this.chartBackground.attr({width:e,height:t}),this.scrollingContainer.style.height=this.chartHeight+"px",s&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*h.scrollPositionY)),t=this.axisOffset,s=this.plotTop-t[0]-1,h=this.plotLeft-t[3]-1,e=this.plotTop+this.plotHeight+t[2]+1,t=this.plotLeft+this.plotWidth+t[1]+1;var l=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),c=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);s=this.scrollablePixelsX?[["M",0,s],["L",this.plotLeft-1,s],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",l,s],["L",this.chartWidth,s],["L",this.chartWidth,e],["L",l,e],["Z"]]:this.scrollablePixelsY?[["M",h,0],["L",h,this.plotTop-1],["L",t,this.plotTop-1],["L",t,0],["Z"],["M",h,c],["L",h,this.chartHeight],["L",t,this.chartHeight],["L",t,c],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:s})}}),e(i,"Core/Axis/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Utilities.js"]],function(t,e){var i=t.getDeferredAnimation,s=e.addEvent,o=e.destroyObjectProperties,r=e.fireEvent,n=e.objectEach,a=e.pick,h=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,s=a(e.options.reversedStacks,!0),o=i.length;if(!e.isXAxis){for(this.usePercentage=!1,t=o;t--;){var n=i[s?t:o-t-1];n.setStackedPoints(),n.setGroupedPoints()}for(t=0;t<o;t++)i[t].modifyStacks();r(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;n(t,function(t){n(t,function(t){t.cumulative=t.total})})}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||n(e,function(e){n(e,function(i,s){i.touched<t.stacksTouched?(i.destroy(),delete e[s]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,s=e.renderer,o=this.stacks;t=i(e,t.options.stackLabels.animation);var r=this.stackTotalGroup=this.stackTotalGroup||s.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),n(o,function(t){n(t,function(t){t.render(r)})}),r.animate({opacity:1},t)},t}();return function(){function t(){}return t.compose=function(e){s(e,"init",t.onInit),s(e,"destroy",t.onDestroy)},t.onDestroy=function(){var t=this.stacking;if(t){var e=t.stacks;n(e,function(t,i){o(t),e[i]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}},t.onInit=function(){this.stacking||(this.stacking=new h(this))},t}()}),e(i,"Mixins/LegendSymbol.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.merge,s=e.pick;return t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,o=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(o?(t.symbolWidth-i)/2:0,t.baseline-i+1,o?i:t.symbolWidth,i,s(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,o=e.marker,r=t.symbolWidth,n=t.symbolHeight,a=n/2,h=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={};this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=h.path([["M",0,t],["L",r,t]]).addClass("highcharts-graph").attr(c).add(l),o&&!1!==o.enabled&&r&&(e=Math.min(s(o.radius,a),a),0===this.symbol.indexOf("url")&&(o=i(o,{width:n,height:n}),e=0),this.legendSymbol=o=h.symbol(this.symbol,r/2-e,t-e,2*e,2*e,o).addClass("highcharts-point").add(l),o.isMarker=!0)}}}),e(i,"Core/Series/CartesianSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Series.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Options.js"],i["Core/Series/Point.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i,s,o,r,n,a){var h=t.animObject,l=o.defaultOptions,c=a.addEvent,d=a.arrayMax,p=a.arrayMin,u=a.clamp,f=a.correctFloat,g=a.defined,m=a.erase,y=a.error,v=a.extend,x=a.find,b=a.fireEvent,k=a.getNestedProperty,M=a.isArray,S=a.isFunction,w=a.isNumber,C=a.isString,A=a.merge,T=a.objectEach,P=a.pick,L=a.removeEvent,O=a.splat,E=a.syncTimeout,D=e.seriesTypes,I=i.win;return t=e.seriesType("line",void 0,{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0,init:function(t,e){b(this,"init",{options:e});var i,s=this,o=t.series;this.eventOptions=this.eventOptions||{},this.eventsToUnbind=[],s.chart=t,s.options=e=s.setOptions(e),s.linkedSeries=[],s.bindAxes(),v(s,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected});var r=e.events;T(r,function(t,e){S(t)&&s.eventOptions[e]!==t&&(S(s.eventOptions[e])&&L(s,e,s.eventOptions[e]),s.eventOptions[e]=t,c(s,e,t))}),(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),s.getColor(),s.getSymbol(),s.parallelArrays.forEach(function(t){s[t+"Data"]||(s[t+"Data"]=[])}),s.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(i=o[o.length-1]),s._i=P(i&&i._i,-1)+1,s.opacity=s.options.opacity,t.orderSeries(this.insert(o)),e.dataSorting&&e.dataSorting.enabled?s.setDataSortingOptions():s.points||s.data||s.setData(e.data,!1),b(this,"afterInit")},is:function(t){return D[t]&&this instanceof D[t]},insert:function(t){var e,i=this.options.index;if(w(i)){for(e=t.length;e--;)if(i>=P(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return P(e,t.length-1)},bindAxes:function(){var t,e=this,i=e.options,s=e.chart;b(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){s[o].forEach(function(s){t=s.options,(i[o]===t.index||void 0!==i[o]&&i[o]===t.id||void 0===i[o]&&0===t.index)&&(e.insert(s.series),e[o]=s,s.isDirty=!0)}),e[o]||e.optionalAxis===o||y(18,!0,s)})}),b(this,"afterBindAxes")},updateParallelArrays:function(t,e){var i=t.series,s=arguments,o=w(e)?function(s){var o="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=o}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(o)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,s=e.pointIntervalUnit,o=this.chart.time;return i=P(i,e.pointStart,0),this.pointInterval=t=P(this.pointInterval,e.pointInterval,1),s&&(e=new o.Date(i),"day"===s?o.set("Date",e,o.get("Date",e)+t):"month"===s?o.set("Month",e,o.get("Month",e)+t):"year"===s&&o.set("FullYear",e,o.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setDataSortingOptions:function(){var t=this.options;v(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),g(t.pointRange)||(t.pointRange=1)},setOptions:function(t){var e=this.chart,i=e.options,s=i.plotOptions,o=e.userOptions||{};t=A(t),e=e.styledMode;var r={plotOptions:s,userOptions:t};b(this,"setOptions",r);var n=r.plotOptions[this.type],a=o.plotOptions||{};return this.userOptions=r.userOptions,o=A(n,s.series,o.plotOptions&&o.plotOptions[this.type],t),this.tooltipOptions=A(l.tooltip,l.plotOptions.series&&l.plotOptions.series.tooltip,l.plotOptions[this.type].tooltip,i.tooltip.userOptions,s.series&&s.series.tooltip,s[this.type].tooltip,t.tooltip),this.stickyTracking=P(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||o.stickyTracking),null===n.marker&&delete o.marker,this.zoneAxis=o.zoneAxis,i=this.zones=(o.zones||[]).slice(),!o.negativeColor&&!o.negativeFillColor||o.zones||(s={value:o[this.zoneAxis+"Threshold"]||o.threshold||0,className:"highcharts-negative"},e||(s.color=o.negativeColor,s.fillColor=o.negativeFillColor),i.push(s)),i.length&&g(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),b(this,"afterSetOptions",{options:o}),o},getName:function(){return P(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var s=this.chart,o=this.userOptions,r=t+"Index",n=t+"Counter",a=i?i.length:P(s.options.chart[t+"Count"],s[t+"Count"]);if(!e){var h=P(o[r],o["_"+r]);g(h)||(s.series.length||(s[n]=0),o["_"+r]=h=s[n]%a,s[n]+=1),i&&(e=i[h])}void 0!==h&&(this[r]=h),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||l.plotOptions[this.type].color,this.chart.options.colors)},getPointsCollection:function(){return(this.hasGroupedData?this.points:this.data)||[]},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(t,e){var i,s=t.id,o=t.x,r=this.points,n=this.options.dataSorting;if(s)var a=this.chart.get(s);else if(this.linkedParent||this.enabledDataSorting){var h=n&&n.matchByName?"name":"index";if(!(a=x(r,function(e){return!e.touched&&e[h]===t[h]})))return}if(a){var l=a&&a.index;void 0!==l&&(i=!0)}return void 0===l&&w(o)&&(l=this.xData.indexOf(o,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!i&&r[l]&&r[l].touched&&(l=void 0),l},drawLegendSymbol:s.drawLineMarker,updateData:function(t,e){var i,s,o,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,p=!0;if(this.xIncrement=null,t.forEach(function(t,e){var s=g(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=s.x;s.id||w(d)?(-1===(d=this.findPointIndex(s,o))||void 0===d?h.push(t):a[d]&&t!==r.data[d]?(a[d].update(t,!1,null,!1),a[d].touched=!0,l&&(o=d+1)):a[d]&&(a[d].touched=!0),(!c||e!==d||n&&n.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)},this),i)for(t=a.length;t--;)(s=a[t])&&!s.touched&&s.remove&&s.remove(!1,e);else!c||n&&n.enabled?p=!1:(t.forEach(function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)}),h.length=0);return a.forEach(function(t){t&&(t.touched=!1)}),!!p&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=d(this.xData),this.autoIncrement()),!0)},setData:function(t,e,i,s){var o,r=this,n=r.points,a=n&&n.length||0,h=r.options,l=r.chart,c=h.dataSorting,d=null,p=r.xAxis;d=h.turboThreshold;var u,f=this.xData,g=this.yData,m=(o=r.pointArrayMap)&&o.length,v=h.keys,x=0,b=1;if(o=(t=t||[]).length,e=P(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==s&&o&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(u=this.updateData(t,i)),!u){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach(function(t){r[t+"Data"].length=0}),d&&o>d)if(d=r.getFirstValidPoint(t),w(d))for(i=0;i<o;i++)f[i]=this.autoIncrement(),g[i]=t[i];else if(M(d))if(m)for(i=0;i<o;i++)s=t[i],f[i]=s[0],g[i]=s.slice(1,m+1);else for(v&&(x=0<=(x=v.indexOf("x"))?x:0,b=0<=(b=v.indexOf("y"))?b:1),i=0;i<o;i++)s=t[i],f[i]=s[x],g[i]=s[b];else y(12,!1,l);else for(i=0;i<o;i++)void 0!==t[i]&&(s={series:r},r.pointClass.prototype.applyOptions.apply(s,[t[i]]),r.updateParallelArrays(s,i));for(g&&C(g[0])&&y(14,!0,l),r.data=[],r.options.data=r.userOptions.data=t,i=a;i--;)n[i]&&n[i].destroy&&n[i].destroy();p&&(p.minRange=p.userMinRange),r.isDirty=l.isDirtyBox=!0,r.isDirtyData=!!n,i=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(i)},sortData:function(t){var e=this,i=e.options.dataSorting.sortKey||"y",s=function(t,e){return g(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,o){t[o]=s(e,i),t[o].index=o},this),t.concat().sort(function(t,e){return t=k(i,t),(e=k(i,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,o=i.data;i.dataSorting&&i.dataSorting.enabled||!o||(o.forEach(function(i,r){o[r]=s(e,i),t[r]&&(o[r].x=t[r].x,o[r].index=r)}),e.setData(o,!1))}),t},getProcessedData:function(t){var e=this.xData,i=this.yData,s=e.length,o=0,r=this.xAxis,n=this.options,a=n.cropThreshold,h=t||this.getExtremesFromAll||n.getExtremesFromAll,l=this.isCartesian;t=r&&r.val2lin,n=!(!r||!r.logarithmic);var c=this.requireSorting;if(r)var d=(r=r.getExtremes()).min,p=r.max;if(l&&this.sorted&&!h&&(!a||s>a||this.forceCrop))if(e[s-1]<d||e[0]>p)e=[],i=[];else if(this.yData&&(e[0]<d||e[s-1]>p)){e=(o=this.cropData(this.xData,this.yData,d,p)).xData,i=o.yData,o=o.start;var u=!0}for(a=e.length||1;--a;)if(0<(s=n?t(e[a])-t(e[a-1]):e[a]-e[a-1])&&(void 0===f||s<f))var f=s;else 0>s&&c&&(y(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:u,cropStart:o,closestPointRange:f}},processData:function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},cropData:function(t,e,i,s,o){var r,n=t.length,a=0,h=n;for(o=P(o,this.cropShoulder),r=0;r<n;r++)if(t[r]>=i){a=Math.max(0,r-o);break}for(i=r;i<n;i++)if(t[i]>s){h=i+o;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},generatePoints:function(){var t,e=this.options,i=e.data,s=this.data,o=this.processedXData,r=this.processedYData,n=this.pointClass,a=o.length,h=this.cropStart||0,l=this.hasGroupedData;e=e.keys;var c,d=[];for(s||l||((s=[]).length=i.length,s=this.data=s),e&&l&&(this.options.keys=!1),c=0;c<a;c++){var p=h+c;if(l){var u=(new n).init(this,[o[c]].concat(O(r[c])));u.dataGroup=this.groupMap[c],u.dataGroup.options&&(u.options=u.dataGroup.options,v(u,u.dataGroup.options),delete u.dataLabels)}else(u=s[p])||void 0===i[p]||(s[p]=u=(new n).init(this,i[p],o[c]));u&&(u.index=p,d[c]=u)}if(this.options.keys=e,s&&(a!==(t=s.length)||l))for(c=0;c<t;c++)c!==h||l||(c+=a),s[c]&&(s[c].destroyElements(),s[c].plotX=void 0);this.data=s,this.points=d,b(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:p(t),max:d(t)}},getExtremes:function(t,e){var i,s=this.xAxis,o=this.yAxis,r=this.processedXData||this.xData,n=[],a=0,h=0,l=0,c=this.requireSorting?this.cropShoulder:0,u=!!o&&o.positiveValuesOnly;for(o=(t=t||this.stackedYData||this.processedYData||[]).length,s&&(h=(l=s.getExtremes()).min,l=l.max),i=0;i<o;i++){var f=r[i],g=t[i],m=(w(g)||M(g))&&(g.length||0<g||!u);if(f=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!s||(r[i+c]||f)>=h&&(r[i-c]||f)<=l,m&&f)if(m=g.length)for(;m--;)w(g[m])&&(n[a++]=g[m]);else n[a++]=g}return t={dataMin:p(n),dataMax:d(n)},b(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s<i;)e=t[s],s++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,s=i.stacking,o=this.xAxis,r=o.categories,n=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=!!this.modifyValue,d=this.pointPlacementToXValue(),p=!!d,m=i.threshold,y=i.startFromThreshold?m:0,v=this.zoneAxis||"y",x=Number.MAX_VALUE;for(t=0;t<l;t++){var k=h[t],S=k.x,C=k.y,A=k.low,T=s&&a.stacking&&a.stacking.stacks[(this.negStacks&&C<(y?0:m)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(C)||o.positiveValuesOnly&&!o.validatePositiveValue(S))&&(k.isNull=!0),k.plotX=e=f(u(o.translate(S,0,0,0,1,d,"flags"===this.type),-1e5,1e5)),s&&this.visible&&T&&T[S]){var L=this.getStackIndicator(L,S,this.index);if(!k.isNull)var O=T[S],E=O.points[L.key]}if(M(E)&&(A=E[0],C=E[1],A===y&&L.key===T[S].base&&(A=P(w(m)&&m,a.min)),a.positiveValuesOnly&&0>=A&&(A=null),k.total=k.stackTotal=O.total,k.percentage=O.total&&k.y/O.total*100,k.stackY=C,this.irregularWidths||O.setOffset(this.pointXOffset||0,this.barW||0)),k.yBottom=g(A)?u(a.translate(A,0,1,0,1),-1e5,1e5):null,c&&(C=this.modifyValue(C,k)),k.plotY="number"==typeof C&&1/0!==C?u(a.translate(C,0,1,0,1),-1e5,1e5):void 0,k.isInside=this.isPointInside(k),k.clientX=p?f(o.translate(S,0,0,0,1,d)):e,k.negative=k[v]<(i[v+"Threshold"]||m||0),k.category=r&&void 0!==r[k.x]?r[k.x]:k.x,!k.isNull&&!1!==k.visible){void 0!==D&&(x=Math.min(x,Math.abs(e-D)));var D=e}k.zone=this.zones.length&&k.getZone(),!k.graphic&&this.group&&n&&(k.isNew=!0)}this.closestPointRangePx=x,b(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&(!1!==t.visible&&(i||!t.isNull))})},getClipBox:function(t,e){var i=this.options,s=this.chart,o=s.inverted,r=this.xAxis,n=r&&this.yAxis,a=s.options.chart.scrollablePlotArea||{};return t&&!1===i.clip&&n?t=o?{y:-s.chartWidth+n.len+n.pos,height:s.chartWidth,width:s.chartHeight,x:-s.chartHeight+r.len+r.pos}:{y:-n.pos,height:s.chartHeight,width:s.chartWidth,x:-r.pos}:(t=this.clipBox||s.clipBox,e&&(t.width=s.plotSizeX,t.x=(s.scrollablePixelsX||0)*(a.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,o=e.inverted,r=this.clipBox,n=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,n.height,i.xAxis,i.yAxis].join(),h=e[a],l=e[a+"m"];t&&(n.width=0,o&&(n.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),h?e.hasLoaded||h.attr(n):(t&&(e[a+"m"]=l=s.clipRect(o?e.plotSizeX+99:-99,o?-e.plotLeft:-e.plotTop,99,o?e.chartWidth:e.chartHeight)),e[a]=h=s.clipRect(n),h.count={length:0}),t&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||r?h:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&a&&e[a]&&(r||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=h(this.options.animation);if(!e.hasRendered)if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var o=this.getClipBox(i,!0);t&&t.animate(o,i),e[s+"m"]&&e[s+"m"].animate({width:o.width+99,x:o.x-(e.inverted?0:99)},i)}},afterAnimate:function(){this.setClip(),b(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i=this.points,s=this.chart,o=this.options.marker,r=this[this.specialGroup]||this.markerGroup,n=this.xAxis,a=P(o.enabled,!(n&&!n.isRadial)||null,this.closestPointRangePx>=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(t=0;t<i.length;t++){var h=i[t],l=(e=h.graphic)?"animate":"attr",c=h.marker||{},d=!!h.marker;if((a&&void 0===c.enabled||c.enabled)&&!h.isNull&&!1!==h.visible){var p=P(c.symbol,this.symbol),u=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=n.reversed?-u.width:n.width);var f=!1!==h.isInside;e?e[f?"show":"hide"](f).animate(u):f&&(0<u.width||h.hasImage)&&(h.graphic=e=s.renderer.symbol(p,u.x,u.y,u.width,u.height,d?c:o).add(r),this.enabledDataSorting&&s.hasRendered&&(e.attr({x:h.startXPos}),l="animate")),e&&"animate"===l&&e[f?"show":"hide"](f).animate(u),e&&!s.styledMode&&e[l](this.pointAttribs(h,h.selected&&"select")),e&&e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}},markerAttribs:function(t,e){var i=this.options,s=i.marker,o=t.marker||{},r=o.symbol||s.symbol,n=P(o.radius,s.radius);return e&&(s=s.states[e],e=o.states&&o.states[e],n=P(e&&e.radius,s&&s.radius,n+(s&&s.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(n=0),t={x:i.crisp?Math.floor(t.plotX)-n:t.plotX-n,y:t.plotY-n},n&&(t.width=t.height=2*n),t},pointAttribs:function(t,e){var i=this.options.marker,s=t&&t.options,o=s&&s.marker||{},r=this.color,n=s&&s.color,a=t&&t.color;s=P(o.lineWidth,i.lineWidth);var h=t&&t.zone&&t.zone.color;return t=1,r=n||h||a||r,n=o.fillColor||i.fillColor||r,r=o.lineColor||i.lineColor||r,e=e||"normal",i=i.states[e],e=o.states&&o.states[e]||{},s=P(e.lineWidth,i.lineWidth,s+P(e.lineWidthPlus,i.lineWidthPlus,0)),n=e.fillColor||i.fillColor||n,{stroke:r=e.lineColor||i.lineColor||r,"stroke-width":s,fill:n,opacity:t=P(e.opacity,i.opacity,t)}},destroy:function(t){var e,i,s,o=this,r=o.chart,h=/AppleWebKit\/533/.test(I.navigator.userAgent),l=o.data||[];for(b(o,"destroy"),this.removeEvents(t),(o.axisTypes||[]).forEach(function(t){(s=o[t])&&s.series&&(m(s.series,o),s.isDirty=s.forceRedraw=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),e=l.length;e--;)(i=l[e])&&i.destroy&&i.destroy();o.points=null,a.clearTimeout(o.animationTimeout),T(o,function(t,e){t instanceof n&&!t.survive&&t[h&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===o&&(r.hoverSeries=null),m(r.series,o),r.orderSeries(),T(o,function(e,i){t&&"hcEvents"===i||delete o[i]})},getGraphPath:function(t,e,i){var s,o,r=this,n=r.options,a=n.step,h=[],l=[];return(s=(t=t||r.points).reversed)&&t.reverse(),(a={right:1,center:2}[a]||a&&3)&&s&&(a=4-a),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach(function(s,c){var d=s.plotX,p=s.plotY,u=t[c-1];(s.leftCliff||u&&u.rightCliff)&&!i&&(o=!0),s.isNull&&!g(e)&&0<c?o=!n.connectNulls:s.isNull&&!e?o=!0:(0===c||o?c=[["M",s.plotX,s.plotY]]:r.getPointSpline?c=[r.getPointSpline(t,s,c)]:a?(c=1===a?[["L",u.plotX,p]]:2===a?[["L",(u.plotX+d)/2,u.plotY],["L",(u.plotX+d)/2,p]]:[["L",d,u.plotY]]).push(["L",d,p]):c=[["L",d,p]],l.push(s.x),a&&(l.push(s.x),2===a&&l.push(s.x)),h.push.apply(h,c),o=!1)}),h.xMap=l,r.graphPath=h},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),s=this.chart.styledMode,o=[["graph","highcharts-graph"]];s||o[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(o=t.getZonesGraphs(o)).forEach(function(o,r){var n=o[0],a=t[n],h=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[n]=a=t.chart.renderer.path(i).addClass(o[1]).attr({zIndex:1}).add(t.group)),a&&!s&&(n={stroke:o[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},o[3]?n.dashstyle=o[3]:"square"!==e.linecap&&(n["stroke-linecap"]=n["stroke-linejoin"]="round"),a[h](n).shadow(2>r&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)})},getZonesGraphs:function(t){return this.zones.forEach(function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)},this),t},applyZones:function(){var t,e,i,s,o,r,n,a,h=this,l=this.chart,c=l.renderer,d=this.zones,p=this.clips||[],f=this.graph,g=this.area,m=Math.max(l.chartWidth,l.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],v=l.inverted,x=!1;if(d.length&&(f||g)&&y&&void 0!==y.min){var b=y.reversed,k=y.horiz;f&&!this.showLine&&f.hide(),g&&g.hide();var M=y.getExtremes();d.forEach(function(d,S){t=b?k?l.plotWidth:0:k?0:y.toPixels(M.min)||0,t=u(P(e,t),0,m),e=u(Math.round(y.toPixels(P(d.value,M.max),!0)||0),0,m),x&&(t=e=y.toPixels(M.max)),s=Math.abs(t-e),o=Math.min(t,e),r=Math.max(t,e),y.isXAxis?(i={x:v?r:o,y:0,width:s,height:m},k||(i.x=l.plotHeight-i.x)):(i={x:0,y:v?r:o,width:m,height:s},k&&(i.y=l.plotWidth-i.y)),v&&c.isVML&&(i=y.isXAxis?{x:0,y:b?o:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),p[S]?p[S].animate(i):p[S]=c.clipRect(i),n=h["zone-area-"+S],a=h["zone-graph-"+S],f&&a&&a.clip(p[S]),g&&n&&n.clip(p[S]),x=d.value>M.max,h.resetZones&&0===e&&(e=void 0)}),this.clips=p}else h.visible&&(f&&f.show(!0),g&&g.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(s.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))})}var i=this,s=i.chart;i.xAxis&&(i.eventsToUnbind.push(c(s,"resize",e)),e(),i.invertGroups=e)},plotGroup:function(t,e,i,s,o){var r=this[t],n=!r;return i={visibility:i,zIndex:s||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(g(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0):L(this)},render:function(){var t=this,e=t.chart,i=t.options,s=h(i.animation),o=!t.finishedAnimating&&e.renderer.isSVG&&s.duration,r=t.visible?"inherit":"hidden",n=i.zIndex,a=t.hasRendered,l=e.seriesGroup,c=e.inverted;b(this,"render");var d=t.plotGroup("group","series",r,n,l);t.markerGroup=t.plotGroup("markerGroup","markers",r,n,l),o&&t.animate&&t.animate(!0),d.inverted=!(!t.isCartesian&&!t.invertable)&&c,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(c),!1===i.clip||t.sharedClipKey||a||d.clip(e.clipRect),o&&t.animate&&t.animate(),a||(o&&s.defer&&(o+=s.defer),t.animationTimeout=E(function(){t.afterAnimate()},o||0)),t.isDirty=!1,t.hasRendered=!0,b(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:P(s&&s.left,t.plotLeft),translateY:P(o&&o.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var e=this,i=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,E(function(){e.kdTree=function t(i,s,o){var r;if(r=i&&i.length){var n=e.kdAxisArray[s%o];return i.sort(function(t,e){return t[n]-e[n]}),{point:i[r=Math.floor(r/2)],left:t(i.slice(0,r),s+1,o),right:t(i.slice(r+1),s+1,o)}}}(e.getValidPoints(null,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow||t&&"touchstart"===t.type?0:1)},searchKDTree:function(t,e,i){var s=this,o=this.kdAxisArray[0],r=this.kdAxisArray[1],n=e?"distX":"dist";if(e=-1<s.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h){var l=i.point,c=s.kdAxisArray[a%h],d=l,p=g(e[o])&&g(l[o])?Math.pow(e[o]-l[o],2):null,u=g(e[r])&&g(l[r])?Math.pow(e[r]-l[r],2):null;return u=(p||0)+(u||0),l.dist=g(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=g(p)?Math.sqrt(p):Number.MAX_VALUE,p=0>(c=e[c]-l[c])?"right":"left",i[u=0>c?"left":"right"]&&(d=(u=t(e,i[u],a+1,h))[n]<d[n]?u:l),i[p]&&Math.sqrt(c*c)<d[n]&&(d=(e=t(e,i[p],a+1,h))[n]<d[n]?e:d),d}(t,this.kdTree,e,e)},pointPlacementToXValue:function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),w(t)?t*P(e,i.pointRange):0},isPointInside:function(t){return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=this.yAxis.len&&0<=t.plotX&&t.plotX<=this.xAxis.len}})}),e(i,"Series/LineSeries.js",[i["Core/Series/CartesianSeries.js"],i["Core/Globals.js"]],function(t,e){return e.Series=t,e.Series}),e(i,"Extensions/Stacking.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Globals.js"],i["Core/Axis/StackingAxis.js"],i["Core/Utilities.js"]],function(t,e,i,s,o){var r=o.correctFloat,n=o.defined,a=o.destroyObjectProperties,h=o.format,l=o.isNumber,c=o.pick,d=i.Series,p=function(){function t(t,e,i,s,o){var r=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=s,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?i?"right":"left":"center")}return t.prototype.destroy=function(){a(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,s=i.format;s=s?h(s,this,e):i.formatter.call(this),this.label?this.label.attr({text:s,visibility:"hidden"}):(this.label=e.renderer.label(s,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),s={r:i.borderRadius||0,text:s,rotation:i.rotation,padding:c(i.padding,5),visibility:"hidden"},e.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style)),this.label.attr(s),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},t.prototype.setOffset=function(t,e,i,s,o){var r=this.axis,a=r.chart;s=r.translate(r.stacking.usePercentage?100:s||this.total,0,0,0,1),i=r.translate(i||0),i=n(s)&&Math.abs(s-i),t=c(o,a.xAxis[0].translate(this.x))+t,r=n(s)&&this.getStackBox(a,this,t,s,e,i,r),e=this.label,i=this.isNegative,t="justify"===c(this.options.overflow,"justify");var h=this.textAlign;e&&r&&(o=e.getBBox(),s=e.padding,h="left"===h?a.inverted?-s:s:"right"===h?o.width:a.inverted&&"center"===h?o.width/2:a.inverted?i?o.width+s:-s:o.width/2,i=a.inverted?o.height/2:i?-s:o.height,this.alignOptions.x=c(this.options.x,0),this.alignOptions.y=c(this.options.y,0),r.x-=h,r.y-=i,e.align(this.alignOptions,null,r),a.isInsidePlot(e.alignAttr.x+h-this.alignOptions.x,e.alignAttr.y+i-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&d.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,o,r),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),c(!t&&this.options.crop,!0)&&((a=l(e.x)&&l(e.y)&&a.isInsidePlot(e.x-s+e.width,e.y)&&a.isInsidePlot(e.x+s,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,i,s,o,r,n){var a=e.axis.reversed,h=t.inverted,l=n.height+n.pos-(h?t.plotLeft:t.plotTop);return e=e.isNegative&&!a||!e.isNegative&&a,{x:h?e?s-n.right:s-r+n.pos-t.plotLeft:i+t.xAxis[0].transB-t.plotLeft,y:h?n.height-i-o:e?l-s-r:l-s,width:h?r:o,height:h?o:r}},t}();return e.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),t.series.forEach(function(i){var s=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,c(i.options.stack,""),e?s.top:s.left,e?s.height:s.width].join())})},s.compose(t),d.prototype.setGroupedPoints=function(){this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length&&d.prototype.setStackedPoints.call(this,"group")},d.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var i=this.processedXData,s=this.processedYData,o=[],a=s.length,h=this.options,l=h.threshold,d=c(h.startFromThreshold&&l,0);h=h.stack;var u,f,g="-"+(t=t?this.type+","+e:this.stackKey),m=this.negStacks,y=this.yAxis,v=y.stacking.stacks,x=y.stacking.oldStacks;for(y.stacking.stacksTouched+=1,f=0;f<a;f++){var b=i[f],k=s[f],M=this.getStackIndicator(M,b,this.index),S=M.key,w=(u=m&&k<(d?0:l))?g:t;v[w]||(v[w]={}),v[w][b]||(x[w]&&x[w][b]?(v[w][b]=x[w][b],v[w][b].total=null):v[w][b]=new p(y,y.options.stackLabels,u,b,h)),w=v[w][b],null!==k?(w.points[S]=w.points[this.index]=[c(w.cumulative,d)],n(w.cumulative)||(w.base=S),w.touched=y.stacking.stacksTouched,0<M.index&&!1===this.singleStacks&&(w.points[S][0]=w.points[this.index+","+b+",0"][0])):w.points[S]=w.points[this.index]=null,"percent"===e?(u=u?t:g,m&&v[u]&&v[u][b]?(u=v[u][b],w.total=u.total=Math.max(u.total,w.total)+Math.abs(k)||0):w.total=r(w.total+(Math.abs(k)||0))):"group"===e?null!==k&&(w.total=(w.total||0)+1):w.total=r(w.total+(k||0)),w.cumulative="group"===e?(w.total||1)-1:c(w.cumulative,d)+(k||0),null!==k&&(w.points[S].push(w.cumulative),o[f]=w.cumulative,w.hasValidPoints=!0)}"percent"===e&&(y.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=o),y.stacking.oldStacks={}}},d.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,s=e.yAxis.stacking.stacks,o=e.processedXData,r=e.options.stacking;e[r+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var n,a,h=o.length;h--;)n=o[h],t=e.getStackIndicator(t,n,e.index,i),(a=(n=s[i]&&s[i][n])&&n.points[t.key])&&e[r+"Stacker"](a,n,h)})},d.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=r(t[0]*e),t[1]=r(t[1]*e),this.stackedYData[i]=t[1]},d.prototype.getStackIndicator=function(t,e,i,s){return!n(t)||t.x!==e||s&&t.key!==s?t={x:e,index:0,key:s}:t.index++,t.key=[i,e,t.index].join(),t},i.StackItem=p,i.StackItem}),e(i,"Core/Dynamics.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Series/Series.js"],i["Core/Chart/Chart.js"],i["Core/Globals.js"],i["Series/LineSeries.js"],i["Core/Options.js"],i["Core/Series/Point.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(t,e,i,s,o,r,n,a,h,l){var c=t.animate,d=t.setAnimation,p=i.seriesTypes,u=n.time,f=l.addEvent,g=l.createElement,m=l.css,y=l.defined,v=l.erase,x=l.error,b=l.extend,k=l.fireEvent,M=l.isArray,S=l.isNumber,w=l.isObject,C=l.isString,A=l.merge,T=l.objectEach,P=l.pick,L=l.relativeLength,O=l.splat;o.cleanRecursively=function(t,e){var i={};return T(t,function(s,r){w(t[r],!0)&&!t.nodeType&&e[r]?(s=o.cleanRecursively(t[r],e[r]),Object.keys(s).length&&(i[r]=s)):(w(t[r])||t[r]!==e[r])&&(i[r]=t[r])}),i},b(s.prototype,{addSeries:function(t,e,i){var s,o=this;return t&&(e=P(e,!0),k(o,"addSeries",{options:t},function(){s=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),k(o,"afterAddSeries",{series:s}),e&&o.redraw(i)})),s},addAxis:function(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(t,i){var s=this.options,r="colorAxis"===t,n=i.redraw,a=i.animation;i=A(i.axis,{index:this[t].length,isX:"xAxis"===t});var h=r?new o.ColorAxis(this,i):new e(this,i);return s[t]=O(s[t]||{}),s[t].push(i),r&&(this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0})),P(n,!0)&&this.redraw(a),h},showLoading:function(t){var e=this,i=e.options,s=e.loadingDiv,o=i.loading,r=function(){s&&m(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};s||(e.loadingDiv=s=g("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container),e.loadingSpan=g("span",{className:"highcharts-loading-inner"},null,s),f(e,"redraw",r)),s.className="highcharts-loading",e.loadingSpan.innerHTML=P(t,i.lang.loading,""),e.styledMode||(m(s,b(o.style,{zIndex:10})),m(e.loadingSpan,o.labelStyle),e.loadingShown||(m(s,{opacity:0,display:""}),c(s,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,r()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||c(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){m(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],update:function(t,e,i,s){var r,n,a,l=this,c={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},d=t.isResponsiveOptions,p=[];if(k(l,"update",{options:t}),d||l.setResponsive(!1,!0),t=o.cleanRecursively(t,l.options),A(!0,l.userOptions,t),r=t.chart){if(A(!0,l.options.chart,r),"className"in r&&l.setClassName(r.className),"reflow"in r&&l.setReflow(r.reflow),"inverted"in r||"polar"in r||"type"in r){l.propFromSeries();var f=!0}"alignTicks"in r&&(f=!0),T(r,function(t,e){-1!==l.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==l.propsRequireDirtyBox.indexOf(e)&&(l.isDirtyBox=!0),-1!==l.propsRequireReflow.indexOf(e)&&(d?l.isDirtyBox=!0:a=!0)}),!l.styledMode&&"style"in r&&l.renderer.setStyle(r.style)}!l.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===u&&(this.time=new h(t.time)),A(!0,l.options.time,t.time)),T(t,function(e,i){l[i]&&"function"==typeof l[i].update?l[i].update(e,!1):"function"==typeof l[c[i]]?l[c[i]](e):"color"!==i&&-1===l.collectionsWithUpdate.indexOf(i)&&A(!0,l.options[i],t[i]),"chart"!==i&&-1!==l.propsRequireUpdateSeries.indexOf(i)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){if("series"===e){var s=[];l[e].forEach(function(t,e){t.options.isInternal||s.push(P(t.options.index,e))})}O(t[e]).forEach(function(t,o){var r,n=y(t.id);n&&(r=l.get(t.id)),r||(r=l[e][s?s[o]:o])&&n&&y(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&l.collectionsWithInit[e]&&(l.collectionsWithInit[e][0].apply(l,[t].concat(l.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&l[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:p.push(t)})}}),p.forEach(function(t){t.remove&&t.remove(!1)}),f&&l.axes.forEach(function(t){t.update({},!1)}),n&&l.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),f=r&&r.width,r=r&&r.height,C(r)&&(r=L(r,f||l.chartWidth)),a||S(f)&&f!==l.chartWidth||S(r)&&r!==l.chartHeight?l.setSize(f,r,s):P(e,!0)&&l.redraw(s),k(l,"afterUpdate",{options:t,redraw:e,animation:s})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),s.prototype.collectionsWithInit={xAxis:[s.prototype.addAxis,[!0]],yAxis:[s.prototype.addAxis,[!1]],series:[s.prototype.addSeries]},b(a.prototype,{update:function(t,e,i,s){function o(){n.applyOptions(t);var s=h&&n.hasDummyGraphic;s=null===n.y?!s:s,h&&s&&(n.graphic=h.destroy(),delete n.hasDummyGraphic),w(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(n.graphic=h.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),r=n.index,a.updateParallelArrays(n,r),c.data[r]=w(c.data[r],!0)||w(t,!0)?n.options:P(t,c.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var r,n=this,a=n.series,h=n.graphic,l=a.chart,c=a.options;e=P(e,!0),!1===s?o():n.firePointEvent("update",{options:t},o)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),b(r.prototype,{addPoint:function(t,e,i,s,o){var r=this.options,n=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,c=r.data,d=this.xData;e=P(e,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[t]);var u=p.x,f=d.length;if(this.requireSorting&&u<d[f-1])for(l=!0;f&&d[f-1]>u;)f--;this.updateParallelArrays(p,"splice",f,0,0),this.updateParallelArrays(p,f),h&&p.name&&(h[u]=p.name),c.splice(f,0,t),l&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(n[0]&&n[0].remove?n[0].remove(!1):(n.shift(),this.updateParallelArrays(p,"shift"),c.shift())),!1!==o&&k(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(s)},removePoint:function(t,e,i){var s=this,o=s.data,r=o[t],n=s.points,a=s.chart,h=function(){n&&n.length===o.length&&n.splice(t,1),o.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(r||{series:s},"splice",t,1),r&&r.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};d(i,a),e=P(e,!0),r?r.firePointEvent("remove",null,h):h()},remove:function(t,e,i,s){function o(){r.destroy(s),r.remove=null,n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),P(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?k(r,"remove",null,o):o()},update:function(t,e){t=o.cleanRecursively(t,this.userOptions),k(this,"update",{options:t});var i,s=this,r=s.chart,n=s.userOptions,a=s.initialType||s.type,h=r.options.plotOptions,l=t.type||n.type||r.options.chart.type,c=!(this.hasDerivedData||l&&l!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||s.hasOptionChanged("dataGrouping")||s.hasOptionChanged("pointStart")||s.hasOptionChanged("pointInterval")||s.hasOptionChanged("pointIntervalUnit")||s.hasOptionChanged("keys")),d=p[a].prototype,u=["eventOptions","navigatorSeries","baseSeries"],f=s.finishedAnimating&&{animation:!1},g={};for(i in c&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),s.parallelArrays.forEach(function(t){u.push(t+"Data")}),t.data&&(t.dataSorting&&b(s.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=A(n,f,{index:void 0===n.index?s.index:n.index,pointStart:P(h&&h.series&&h.series.pointStart,n.pointStart,s.xData[0])},!c&&{data:s.options.data},t),c&&t.data&&(t.data=s.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach(function(t){u[t]=s[t],delete s[t]}),s.remove(!1,null,!1,!0),d)s[i]=void 0;if(p[l||a]?b(s,p[l||a].prototype):x(17,!0,r,{missingModuleFor:l||a}),u.forEach(function(t){s[t]=u[t]}),s.init(r,t),c&&this.points){var m=s.options;!1===m.visible?(g.graphic=1,g.dataLabel=1):s._hasPointLabels||(t=m.marker,n=m.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(g.graphic=1),n&&!1===n.enabled&&(g.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(g).length&&t.destroyElements(g),!1===m.showInLegend&&t.legendItem&&r.legend.destroyItem(t))},this)}s.initialType=a,r.linkSeries(),k(this,"afterUpdate"),P(e,!0)&&r.redraw(!!c&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},hasOptionChanged:function(t){var e=this.options[t],i=this.chart.options.plotOptions,s=this.userOptions[t];return s?e!==s:e!==P(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)}}),b(e.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=A(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),T(i.options[this.coll].events,function(t,e){void 0===s[e]&&(s[e]=void 0)}),this.destroy(!0),this.init(i,b(t,{events:s})),i.isDirtyBox=!0,P(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,s=this.series,o=s.length;o--;)s[o]&&s[o].remove(!1);v(e.axes,this),v(e[i],this),M(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,P(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}),e(i,"Series/AreaSeries.js",[i["Core/Series/Series.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Utilities.js"]],function(t,e,i,s,o){var r=e.parse,n=o.objectEach,a=o.pick,h=i.Series;t.seriesType("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,i=[],s=[],o=this.xAxis,r=this.yAxis,h=r.stacking.stacks[this.stackKey],l={},c=this.index,d=r.series,p=d.length,u=a(r.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,l[t[e].x]=t[e];n(h,function(t,e){null!==t.total&&s.push(e)}),s.sort(function(t,e){return t-e});var f=d.map(function(t){return t.visible});s.forEach(function(t,n){var a,d,g=0;if(l[t]&&!l[t].isNull)i.push(l[t]),[-1,1].forEach(function(i){var o=1===i?"rightNull":"leftNull",r=0,g=h[s[n+i]];if(g)for(e=c;0<=e&&e<p;)(a=g.points[e])||(e===c?l[t][o]=!0:f[e]&&(d=h[t].points[e])&&(r-=d[1]-d[0])),e+=u;l[t][1===i?"rightCliff":"leftCliff"]=r});else{for(e=c;0<=e&&e<p;){if(a=h[t].points[e]){g=a[1];break}e+=u}g=r.translate(g,0,1,0,1),i.push({isNull:!0,plotX:o.translate(t,0,0,0,1),x:t,plotY:g,yBottom:g})}})}return i},getGraphPath:function(t){var e,i=h.prototype.getGraphPath,s=this.options,o=s.stacking,r=this.yAxis,n=[],l=[],c=this.index,d=r.stacking.stacks[this.stackKey],p=s.threshold,u=Math.round(r.getThreshold(s.threshold));s=a(s.connectNulls,"percent"===o);var f=function(e,i,s){var a=t[e];e=o&&d[a.x].points[c];var h=a[s+"Null"]||0;if(s=a[s+"Cliff"]||0,a=!0,s||h){var f=(h?e[0]:e[1])+s,g=e[0]+s;a=!!h}else!o&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(l.push({plotX:m,plotY:null===f?u:r.getThreshold(f),isNull:a,isCliff:!0}),n.push({plotX:m,plotY:null===g?u:r.getThreshold(g),doCurve:!1}))};for(t=t||this.points,o&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){o||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=a(t[e].rectPlotX,t[e].plotX),y=o?t[e].yBottom:u;g&&!s||(s||f(e,e-1,"left"),g&&!o&&s||(l.push(t[e]),n.push({x:e,plotX:m,plotY:y})),s||f(e,e+1,"right"))}return e=i.call(this,l,!0,!0),n.reversed=!0,(y=(g=i.call(this,n,!0,!0))[0])&&"M"===y[0]&&(g[0]=["L",y[1],y[2]]),g=e.concat(g),i=i.call(this,l,!1,s),g.xMap=e.xMap,this.areaPath=g,i},drawGraph:function(){this.areaPath=[],h.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,s=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach(function(e,o){s.push(["zone-area-"+o,"highcharts-area highcharts-zone-area-"+o+" "+e.className,e.color||t.color,e.fillColor||i.fillColor])}),s.forEach(function(s){var o=s[0],n=t[o],h=n?"animate":"attr",l={};n?(n.endX=t.preventGraphAnimation?null:e.xMap,n.animate({d:e})):(l.zIndex=0,(n=t[o]=t.chart.renderer.path(e).addClass(s[1]).add(t.group)).isArea=!0),t.chart.styledMode||(l.fill=a(s[3],r(s[2]).setOpacity(a(i.fillOpacity,.75)).get())),n[h](l),n.startX=e.xMap,n.shiftUnit=i.step?2:1})},drawLegendSymbol:s.drawRectangle})}),e(i,"Series/SplineSeries.js",[i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e){var i=e.pick;t.seriesType("spline","line",{},{getPointSpline:function(t,e,s){var o=e.plotX||0,r=e.plotY||0,n=t[s-1];if(s=t[s+1],n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff&&s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff){t=n.plotY||0;var a=s.plotX||0;s=s.plotY||0;var h=0,l=(1.5*o+(n.plotX||0))/2.5,c=(1.5*r+t)/2.5,d=(1.5*r+s)/2.5;(a=(1.5*o+a)/2.5)!==l&&(h=(d-c)*(a-o)/(a-l)+r-d),d+=h,(c+=h)>t&&c>r?d=2*r-(c=Math.max(t,r)):c<t&&c<r&&(d=2*r-(c=Math.min(t,r))),d>s&&d>r?c=2*r-(d=Math.max(s,r)):d<s&&d<r&&(c=2*r-(d=Math.min(s,r))),e.rightContX=a,e.rightContY=d}return e=["C",i(n.rightContX,n.plotX,0),i(n.rightContY,n.plotY,0),i(l,o,0),i(c,r,0),o,r],n.rightContX=n.rightContY=void 0,e}})}),e(i,"Series/AreaSplineSeries.js",[i["Core/Series/Series.js"],i["Mixins/LegendSymbol.js"],i["Core/Options.js"]],function(t,e,i){var s=t.seriesTypes.area.prototype;t.seriesType("areaspline","spline",i.defaultOptions.plotOptions.area,{getStackPoints:s.getStackPoints,getGraphPath:s.getGraphPath,drawGraph:s.drawGraph,drawLegendSymbol:e.drawRectangle})}),e(i,"Series/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Series.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Series/LineSeries.js"],i["Core/Utilities.js"]],function(t,e,i,s,o,r,n){var a=t.animObject,h=i.parse;t=s.noop;var l=n.clamp,c=n.defined,d=n.extend,p=n.isArray,u=n.isNumber,f=n.merge,g=n.pick,m=n.objectEach;return e=e.seriesType("column","line",{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){r.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t=this,e=t.options,i=t.xAxis,s=t.yAxis,o=i.options.reversedStacks;o=i.reversed&&!o||!i.reversed&&o;var r,n={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var i=e.yAxis,o=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&s.len===i.len&&s.pos===i.pos){if(o.stacking&&"group"!==o.stacking){r=e.stackKey,void 0===n[r]&&(n[r]=a++);var h=n[r]}else!1!==o.grouping&&(h=a++);e.columnIndex=h}});var h=Math.min(Math.abs(i.transA)*(i.ordinal&&i.ordinal.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),l=h*e.groupPadding,c=(h-2*l)/(a||1);return e=Math.min(e.maxPointWidth||i.len,g(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(o?1:0))*c-h/2)*(o?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},crispCol:function(t,e,i,s){var o=this.chart,r=this.borderWidth,n=-(r%2?.5:0);return r=r%2?.5:1,o.inverted&&o.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+n,i-=t=Math.round(t)+n),s=Math.round(e+s)+r,n=.5>=Math.abs(e)&&.5<s,s-=e=Math.round(e)+r,n&&s&&(--e,s+=1),{x:t,y:e,width:i,height:s}},adjustForMissingColumns:function(t,e,i,s){var o=this,r=this.options.stacking;if(!i.isNull&&1<s.columnCount){var n=0,a=0;m(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof i.x&&(t=t[i.x.toString()])){var e=t.points[o.index],s=t.total;r?(e&&(n=a),t.hasValidPoints&&a++):p(e)&&(n=e[1],a=s||0)}}),t=(i.plotX||0)+((a-1)*s.paddedWidth+e)/2-e-n*s.paddedWidth}return t},translate:function(){var t=this,e=t.chart,i=t.options,s=t.dense=2>t.closestPointRange*t.xAxis.transA;s=t.borderWidth=g(i.borderWidth,s?0:1);var o=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),d=g(i.minPointLength,5),p=t.getColumnMetrics(),f=p.width,m=t.barW=Math.max(f,1+2*s),y=t.pointXOffset=p.offset,v=t.dataMin,x=t.dataMax;e.inverted&&(h-=.5),i.pointPadding&&(m=Math.ceil(m)),r.prototype.translate.apply(t),t.points.forEach(function(s){var r=g(s.yBottom,h),b=999+Math.abs(r),k=f,M=s.plotX||0;b=l(s.plotY,-b,n.len+b);var S=M+y,w=m,C=Math.min(b,r),A=Math.max(b,r)-C;if(d&&Math.abs(A)<d){A=d;var T=!n.reversed&&!s.negative||n.reversed&&s.negative;u(a)&&u(x)&&s.y===a&&x<=a&&(n.min||0)<a&&v!==x&&(T=!T),C=Math.abs(C-h)>d?r-d:h-(T?d:0)}c(s.options.pointWidth)&&(k=w=Math.ceil(s.options.pointWidth),S-=Math.round((k-f)/2)),i.centerInCategory&&(S=t.adjustForMissingColumns(S,k,s,p)),s.barX=S,s.pointWidth=k,s.tooltipPos=e.inverted?[n.len+n.pos-e.plotLeft-b,o.len+o.pos-e.plotTop-(M||0)-y-w/2,A]:[S+w/2,b+n.pos-e.plotTop,A],s.shapeType=t.pointClass.prototype.shapeType||"rect",s.shapeArgs=t.crispCol.apply(t,s.isNull?[S,h,w,0]:[S,C,w,A])})},getSymbol:t,drawLegendSymbol:o.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[o]||i[o]||this.color||n,l=t&&t[r]||i[r]||this[r]||0;s=t&&t.options.dashStyle||i.dashStyle;var c=g(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var d=t.getZone();n=t.options.color||d&&(d.color||t.nonZonedColor)||this.color,d&&(a=d.borderColor||a,s=d.dashStyle||s,l=d.borderWidth||l)}return e&&t&&(e=(t=f(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=t.color||void 0!==e&&h(n).brighten(t.brightness).get()||n,a=t[o]||a,l=t[r]||l,s=t.dashStyle||s,c=g(t.opacity,c)),o={fill:n,stroke:a,"stroke-width":l,opacity:c},s&&(o.dashstyle=s),o},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,o=i.renderer,r=s.animationLimit||250;e.points.forEach(function(n){var a=n.graphic,h=!!a,l=a&&i.pointCount<r?"animate":"attr";u(n.plotY)&&null!==n.y?(t=n.shapeArgs,a&&n.hasNewShapeType()&&(a=a.destroy()),e.enabledDataSorting&&(n.startXPos=e.xAxis.reversed?-(t?t.width:0):e.xAxis.width),a||(n.graphic=a=o[n.shapeType](t).add(n.group||e.group))&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<r&&(a.attr({x:n.startXPos}),h=!0,l="animate"),a&&h&&a[l](f(t)),s.borderRadius&&a[l]({r:s.borderRadius}),i.styledMode||a[l](e.pointAttribs(n,n.selected&&"select")).shadow(!1!==n.allowShadow&&s.shadow,null,s.stacking&&!s.borderRadius),a.addClass(n.getClassName(),!0)):a&&(n.graphic=a.destroy())})},animate:function(t){var e=this,i=this.yAxis,s=e.options,o=this.chart.inverted,r={},n=o?"translateX":"translateY";if(t)r.scaleY=.001,t=l(i.toPixels(s.threshold),i.pos,i.pos+i.len),o?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var h=e.group.attr(n);e.group.animate({scaleY:1},d(a(e.options.animation),{step:function(t,s){e.group&&(r[n]=h+s.pos*(i.pos-h),e.group.attr(r))}}))}},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),r.prototype.remove.apply(t,arguments)}})}),e(i,"Series/BarSeries.js",[i["Core/Series/Series.js"]],function(t){t.seriesType("bar","column",null,{inverted:!0})}),e(i,"Series/ScatterSeries.js",[i["Core/Series/Series.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){i=i.addEvent;var s=e.Series;t.seriesType("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&s.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,o){["x","y"].forEach(function(r,n){var a="plot"+r.toUpperCase();if(e[r]&&!s.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,s[a]-l);h=Math.min(h.len,s[a]+l),n=1e4*Math.sin(o+n*i),s[a]=c+(h-c)*(n-Math.floor(n)),"x"===r&&(s.clientX=s.plotX)}}})})}}),i(s,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.isNumber,s=e.pick,o=e.relativeLength,r=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var e=this.options,i=this.chart,r=2*(e.slicedOffset||0),n=i.plotWidth-2*r,a=i.plotHeight-2*r,h=e.center,l=Math.min(n,a),c=e.size,d=e.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof d&&(d=parseFloat(d)),e=[s(h[0],"50%"),s(h[1],"50%"),s(c&&0>c?void 0:e.size,"100%"),s(d&&0>d?void 0:e.innerSize||0,"0%")],!i.angular||this instanceof t.Series||(e[3]=0),h=0;4>h;++h)c=e[h],i=2>h||2===h&&/%$/.test(c),e[h]=o(c,[n,a,l,e[2]][h])+(i?r:0);return e[3]>e[2]&&(e[3]=e[2]),e},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}}),e(i,"Series/PieSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Series.js"],i["Mixins/CenteredSeries.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Series/LineSeries.js"],i["Core/Series/Point.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,s,o,r,n,a,h){var l=t.setAnimation,c=i.getStartAndEndRadians;t=s.noop;var d=h.addEvent,p=h.clamp,u=h.defined,f=h.fireEvent,g=h.isNumber,m=h.merge,y=h.pick,v=h.relativeLength;e.seriesType("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:e.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,o=t.shapeArgs;i&&o&&(i.attr({r:y(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))})},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,o=this.options.ignoreHiddenPoint;for(t=0;t<s;t++){var r=i[t];e+=o&&!r.visible?0:r.isNull?0:r.y}for(this.total=e,t=0;t<s;t++)(r=i[t]).percentage=0<e&&(r.visible||!o)?r.y/e*100:0,r.total=e},generatePoints:function(){r.prototype.generatePoints.call(this),this.updateTotals()},getX:function(t,e,i){var s=this.center,o=this.radii?this.radii[i.index]:s[2]/2;return t=Math.asin(p((t-s[1])/(o+i.labelDistance),-1,1)),s[0]+(e?-1:1)*Math.cos(t)*(o+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(t){this.generatePoints();var e=0,i=this.options,s=i.slicedOffset,o=s+(i.borderWidth||0),r=c(i.startAngle,i.endAngle),n=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-n;var a=this.points,h=i.dataLabels.distance;i=i.ignoreHiddenPoint;var l,d=a.length;for(t||(this.center=t=this.getCenter()),l=0;l<d;l++){var p=a[l],u=n+e*r;i&&!p.visible||(e+=p.percentage/100);var g=n+e*r;p.shapeType="arc",p.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*u)/1e3,end:Math.round(1e3*g)/1e3},p.labelDistance=y(p.options.dataLabels&&p.options.dataLabels.distance,h),p.labelDistance=v(p.labelDistance,p.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,p.labelDistance),(g=(g+u)/2)>1.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),p.slicedTranslation={translateX:Math.round(Math.cos(g)*s),translateY:Math.round(Math.sin(g)*s)};var m=Math.cos(g)*t[2]/2,x=Math.sin(g)*t[2]/2;p.tooltipPos=[t[0]+.7*m,t[1]+.7*x],p.half=g<-Math.PI/2||g>Math.PI/2?1:0,p.angle=g,u=Math.min(o,p.labelDistance/5),p.labelPosition={natural:{x:t[0]+m+Math.cos(g)*p.labelDistance,y:t[1]+x+Math.sin(g)*p.labelDistance},final:{},alignment:0>p.labelDistance?"center":p.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+m+Math.cos(g)*u,y:t[1]+x+Math.sin(g)*u},touchingSliceAt:{x:t[0]+m,y:t[1]+x}}}}f(this,"afterTranslate")},drawEmpty:function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var s=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(s,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.prototype.symbols.arc(s,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,o=this,r=o.chart,n=r.renderer,a=o.options.shadow;this.drawEmpty(),!a||o.shadowGroup||r.styledMode||(o.shadowGroup=n.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(h){var l={};if(e=h.graphic,!h.isNull&&e){if(s=h.shapeArgs,t=h.getTranslate(),!r.styledMode){var c=h.shadowGroup;a&&!c&&(c=h.shadowGroup=n.g("shadow").add(o.shadowGroup)),c&&c.attr(t),i=o.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||m(!0,l,i),m(!0,l,s,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName())}else e&&(h.graphic=e.destroy())})},drawPoints:function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},searchPoint:t,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:o.drawRectangle,getCenter:i.getCenter,getSymbol:t,drawGraph:null},{init:function(){n.prototype.init.apply(this,arguments);var t=this;t.name=y(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return d(t,"select",e),d(t,"unselect",e),t},isValid:function(){return g(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,o=s.chart,r=s.options.ignoreHiddenPoint;e=y(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&o.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(s.isDirty=!0),e&&o.redraw())},slice:function(t,e,i){var s=this.series;l(i,s.chart),y(e,!0),this.sliced=this.options.sliced=u(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-e.x,2*s.y-e.y,s.x,s.y]:["L",s.x,s.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var s=this.series,o=s.center[0],r=s.chart.plotWidth,n=s.chart.plotLeft;s=t.alignment;var a=this.shapeArgs.r;return i=v(i.crookDistance,1),i=["L",r="left"===s?o+a+(r+n-o-a)*(1-i):n+(o-a)*i,t.y],o=!0,("left"===s?r>t.x||r<e.x:r<t.x||r>e.x)&&(o=!1),t=[["M",t.x,t.y]],o&&t.push(i),t.push(["L",e.x,e.y]),t}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})}),e(i,"Core/Series/DataLabels.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Series/CartesianSeries.js"],i["Core/Utilities.js"]],function(t,e,i,s){var o=t.getDeferredAnimation;t=e.noop;var r=e.seriesTypes,n=s.arrayMax,a=s.clamp,h=s.defined,l=s.extend,c=s.fireEvent,d=s.format,p=s.isArray,u=s.merge,f=s.objectEach,g=s.pick,m=s.relativeLength,y=s.splat,v=s.stableSort;e.distribute=function(t,i,s){function o(t,e){return t.target-e.target}var r,n=!0,h=t,l=[],c=0,d=h.reducedLen||i;for(r=t.length;r--;)c+=t[r].size;if(c>d){for(v(t,function(t,e){return(e.rank||0)-(t.rank||0)}),c=r=0;c<=d;)c+=t[r].size,r++;l=t.splice(r-1,t.length)}for(v(t,o),t=t.map(function(t){return{size:t.size,targets:[t.target],align:g(t.align,.5)}});n;){for(r=t.length;r--;)n=t[r],c=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=a(c-n.size*n.align,0,i-n.size);for(r=t.length,n=!1;r--;)0<r&&t[r-1].pos+t[r-1].size>t[r].pos&&(t[r-1].size+=t[r].size,t[r-1].targets=t[r-1].targets.concat(t[r].targets),t[r-1].align=.5,t[r-1].pos+t[r-1].size>i&&(t[r-1].pos=i-t[r-1].size),t.splice(r,1),n=!0)}h.push.apply(h,l),r=0,t.some(function(t){var o=0;if(t.targets.some(function(){if(h[r].pos=t.pos+o,void 0!==s&&Math.abs(h[r].pos-h[r].target)>s)return h.slice(0,r+1).forEach(function(t){delete t.pos}),h.reducedLen=(h.reducedLen||i)-.1*i,h.reducedLen>.1*i&&e.distribute(h,i,s),!0;o+=h[r].size,r++}))return!0}),v(h,o)},i.prototype.drawDataLabels=function(){function t(t,e){var i,s=[];if(p(t)&&!p(e))s=t.map(function(t){return u(t,e)});else if(p(e)&&!p(t))s=e.map(function(e){return u(t,e)});else if(p(t)||p(e))for(i=Math.max(t.length,e.length);i--;)s[i]=u(t[i],e[i]);else s=u(t,e);return s}var e=this,i=e.chart,s=e.options,r=s.dataLabels,n=e.points,a=e.hasRendered||0,l=r.animation;l=r.defer?o(i,l,e):{defer:0,duration:0};var m=i.renderer;if(r=t(t(i.options.plotOptions&&i.options.plotOptions.series&&i.options.plotOptions.series.dataLabels,i.options.plotOptions&&i.options.plotOptions[e.type]&&i.options.plotOptions[e.type].dataLabels),r),c(this,"drawDataLabels"),p(r)||r.enabled||e._hasPointLabels){var v=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",r.zIndex||6);v.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&v.show(!0),a[s.animation?"animate":"attr"]({opacity:1},l)),n.forEach(function(o){y(t(r,o.dlOptions||o.options&&o.options.dataLabels)).forEach(function(t,r){var n=t.enabled&&(!o.isNull||o.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(o,t),a=o.dataLabels?o.dataLabels[r]:o.dataLabel,l=o.connectors?o.connectors[r]:o.connector,c=g(t.distance,o.labelDistance),p=!a;if(n){var u=o.getLabelConfig(),y=g(t[o.formatPrefix+"Format"],t.format);u=h(y)?d(y,u,i):(t[o.formatPrefix+"Formatter"]||t.formatter).call(u,t),y=t.style;var x=t.rotation;i.styledMode||(y.color=g(t.color,y.color,e.color,"#000000"),"contrast"===y.color?(o.contrastColor=m.getContrast(o.color||e.color),y.color=!h(c)&&t.inside||0>c||s.stacking?o.contrastColor:"#000000"):delete o.contrastColor,s.cursor&&(y.cursor=s.cursor));var b={r:t.borderRadius||0,rotation:x,padding:t.padding,zIndex:1};i.styledMode||(b.fill=t.backgroundColor,b.stroke=t.borderColor,b["stroke-width"]=t.borderWidth),f(b,function(t,e){void 0===t&&delete b[e]})}!a||n&&h(u)?n&&h(u)&&(a?b.text=u:(o.dataLabels=o.dataLabels||[],a=o.dataLabels[r]=x?m.text(u,0,-9999,t.useHTML).addClass("highcharts-data-label"):m.label(u,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),r||(o.dataLabel=a),a.addClass(" highcharts-data-label-color-"+o.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),a.options=t,a.attr(b),i.styledMode||a.css(y).shadow(t.shadow),a.added||a.add(v),t.textPath&&!t.useHTML&&(a.setTextPath(o.getDataLabelPath&&o.getDataLabelPath(a)||o.graphic,t.textPath),o.dataLabelPath&&!t.textPath.enabled&&(o.dataLabelPath=o.dataLabelPath.destroy())),e.alignDataLabel(o,a,t,null,p)):(o.dataLabel=o.dataLabel&&o.dataLabel.destroy(),o.dataLabels&&(1===o.dataLabels.length?delete o.dataLabels:delete o.dataLabels[r]),r||delete o.dataLabel,l&&(o.connector=o.connector.destroy(),o.connectors&&(1===o.connectors.length?delete o.connectors:delete o.connectors[r])))})})}c(this,"afterDrawDataLabels")},i.prototype.alignDataLabel=function(t,e,i,s,o){var r=this,n=this.chart,a=this.isCartesian&&n.inverted,h=this.enabledDataSorting,c=g(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=g(t.plotY,-9999),p=e.getBBox(),u=i.rotation,f=i.align,m=n.isInsidePlot(c,Math.round(d),a),y="justify"===g(i.overflow,h?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||h&&!y||m||i.inside&&s&&n.isInsidePlot(c,a?s.x+1:s.y+s.height-1,a)),x=function(i){h&&r.xAxis&&!y&&r.setDataLabelStartPos(t,e,o,m,i)};if(v){var b=n.renderer.fontMetrics(n.styledMode?void 0:i.style.fontSize,e).b;s=l({x:a?this.yAxis.len-d:c,y:Math.round(a?this.xAxis.len-c:d),width:0,height:0},s),l(i,{width:p.width,height:p.height}),u?(y=!1,c=n.renderer.rotCorr(b,u),x(c={x:s.x+(i.x||0)+s.width/2+c.x,y:s.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height}),e[o?"attr":"animate"](c).attr({align:f}),x=180<(x=(u+720)%360)&&360>x,"left"===f?c.y-=x?p.height:0:"center"===f?(c.x-=p.width/2,c.y-=p.height/2):"right"===f&&(c.x-=p.width,c.y-=x?0:p.height),e.placed=!0,e.alignAttr=c):(x(s),e.align(i,null,s),c=e.alignAttr),y&&0<=s.height?this.justifyDataLabel(e,i,c,p,s,o):g(i.crop,!0)&&(v=n.isInsidePlot(c.x,c.y)&&n.isInsidePlot(c.x+p.width,c.y+p.height)),i.shape&&!u&&e[o?"attr":"animate"]({anchorX:a?n.plotWidth-t.plotY:t.plotX,anchorY:a?n.plotHeight-t.plotX:t.plotY})}o&&h&&(e.placed=!1),v||h&&!y||(e.hide(!0),e.placed=!1)},i.prototype.setDataLabelStartPos=function(t,e,i,s,o){var r=this.chart,n=r.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=n?o.x:h?-l-t:a.width-l+t,o=n?h?this.yAxis.height-l+t:-l-t:o.y,e.startXPos=a,e.startYPos=o,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},i.prototype.justifyDataLabel=function(t,e,i,s,o,r){var n=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var d=e.y,p=void 0===d?0:d;if(0>(d=i.x+l)){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=d;var u=!0}return(d=i.x+s.width-l)>n.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=n.plotWidth-d,u=!0),0>(d=i.y+l)&&("bottom"===h&&0<=p?(e.verticalAlign="top",e.inside=!0):p-=d,u=!0),(d=i.y+s.height-l)>n.plotHeight&&("top"===h&&0>=p?(e.verticalAlign="bottom",e.inside=!0):p+=n.plotHeight-d,u=!0),u&&(e.x=c,e.y=p,t.placed=!r,t.align(e,void 0,o)),u},r.pie&&(r.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(i<e.top+2||i>e.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){return t=t.getBBox().width,e?t+s:i-t-s},alignToConnectors:function(t,e,i,s){var o,r=0;return t.forEach(function(t){(o=t.dataLabel.getBBox().width)>r&&(r=o)}),e?r+s:i-r-s}},r.pie.prototype.drawDataLabels=function(){var t,s,o,r,a,l,c,d,p,f,m,y,v=this,x=v.data,b=v.chart,k=v.options.dataLabels||{},M=k.connectorPadding,S=b.plotWidth,w=b.plotHeight,C=b.plotLeft,A=Math.round(b.chartWidth/3),T=v.center,P=T[2]/2,L=T[1],O=[[],[]],E=[0,0,0,0],D=v.dataLabelPositioners;v.visible&&(k.enabled||v._hasPointLabels)&&(x.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),i.prototype.drawDataLabels.apply(v),x.forEach(function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,!h(k.style.width)&&!h(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>A&&(t.dataLabel.css({width:Math.round(.7*A)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),O.forEach(function(i,s){var o,n=i.length,u=[];if(n){if(v.sortByAngle(i,s-.5),0<v.maxLabelDistance){var x=Math.max(0,L-P-v.maxLabelDistance),A=Math.min(L+P+v.maxLabelDistance,b.plotHeight);i.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,L-P-t.labelDistance),t.bottom=Math.min(L+P+t.labelDistance,b.plotHeight),o=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+o/2,size:o,rank:t.y},u.push(t.distributeBox))}),x=A+o-x,e.distribute(u,x,x/5)}for(m=0;m<n;m++){if(t=i[m],l=t.labelPosition,r=t.dataLabel,f=!1===t.visible?"hidden":"inherit",p=x=l.natural.y,u&&h(t.distributeBox)&&(void 0===t.distributeBox.pos?f="hidden":(c=t.distributeBox.size,p=D.radialDistributionY(t))),delete t.positionIndex,k.justify)d=D.justify(t,P,T);else switch(k.alignTo){case"connectors":d=D.alignToConnectors(i,s,S,C);break;case"plotEdges":d=D.alignToPlotEdges(r,s,S,C);break;default:d=D.radialDistributionX(v,t,p,x)}r._attr={visibility:f,align:l.alignment},y=t.options.dataLabels||{},r._pos={x:d+g(y.x,k.x)+({left:M,right:-M}[l.alignment]||0),y:p+g(y.y,k.y)-10},l.final.x=d,l.final.y=p,g(k.crop,!0)&&(a=r.getBBox().width,x=null,d-a<M&&1===s?(x=Math.round(a-d+M),E[3]=Math.max(x,E[3])):d+a>S-M&&0===s&&(x=Math.round(d+a-S+M),E[1]=Math.max(x,E[1])),0>p-c/2?E[0]=Math.max(Math.round(c/2-p),E[0]):p+c/2>w&&(E[2]=Math.max(Math.round(p+c/2-w),E[2])),r.sideOverflow=x)}}}),0===n(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach(function(t){var e;(y=u(k,t.options.dataLabels),s=g(y.connectorWidth,1))&&(o=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0<t.labelDistance?(f=r._attr.visibility,(e=!o)&&(t.connector=o=b.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),b.styledMode||o.attr({"stroke-width":s,stroke:y.connectorColor||t.color||"#666666"})),o[e?"attr":"animate"]({d:t.getConnectorPath()}),o.attr("visibility",f)):o&&(t.connector=o.destroy()))}))},r.pie.prototype.placeDataLabels=function(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)},r.pie.prototype.alignDataLabel=t,r.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,s=i.center,o=i.minSize||80,r=null!==i.size;if(!r){if(null!==s[0])var n=Math.max(e[2]-Math.max(t[1],t[3]),o);else n=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2;null!==s[1]?n=a(n,o,e[2]-Math.max(t[0],t[2])):(n=a(n,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(m(i.innerSize||0,n),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}),r.column&&(r.column.prototype.alignDataLabel=function(t,e,s,o,r){var n=this.chart.inverted,a=t.series,h=t.dlBox||t.shapeArgs,l=g(t.below,t.plotY>g(this.translatedThreshold,a.yAxis.len)),c=g(s.inside,!!this.options.stacking);h&&(0>(o=u(h)).y&&(o.height+=o.y,o.y=0),0<(h=o.y+o.height-a.yAxis.len)&&h<o.height&&(o.height-=h),n&&(o={x:a.yAxis.len-o.y-o.height,y:a.xAxis.len-o.x-o.width,width:o.height,height:o.width}),c||(n?(o.x+=l?0:o.width,o.width=0):(o.y+=l?o.height:0,o.height=0))),s.align=g(s.align,!n||c?"center":l?"right":"left"),s.verticalAlign=g(s.verticalAlign,n||c?"middle":l?"top":"bottom"),i.prototype.alignDataLabel.call(this,t,e,s,o,r),s.inside&&t.contrastColor&&e.css({color:t.contrastColor})})}),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(t,e){var i=e.addEvent,s=e.fireEvent,o=e.isArray,r=e.isNumber,n=e.objectEach,a=e.pick;i(t,"render",function(){var t=[];(this.labelCollectors||[]).forEach(function(e){t=t.concat(e())}),(this.yAxis||[]).forEach(function(e){e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&n(e.stacking.stacks,function(e){n(e,function(e){t.push(e.label)})})}),(this.series||[]).forEach(function(e){var i=e.options.dataLabels;e.visible&&(!1!==i.enabled||e._hasPointLabels)&&(e.nodes||e.points).forEach(function(e){e.visible&&(o(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach(function(i){var s=i.options;i.labelrank=a(s.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),s.allowOverlap||t.push(i)})})}),this.hideOverlappingLabels(t)}),t.prototype.hideOverlappingLabels=function(t){var e,i,o,n=this,a=t.length,h=n.renderer,l=!1,c=function(t){var e,i,s=t.box?0:t.padding||0,o=e=0;if(t&&(!t.alignAttr||t.placed)){var n=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=h.fontMetrics(null,t.element).h);var l=t.width-2*s;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?o=+i*l:r(t.x)&&Math.round(t.x)!==t.translateX&&(o=t.x-t.translateX),{x:n.x+(a.translateX||0)+s-(o||0),y:n.y+(a.translateY||0)+s-e,width:t.width-2*s,height:t.height-2*s}}};for(i=0;i<a;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=c(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),i=0;i<a;i++){var d=(c=t[i])&&c.absoluteBox;for(e=i+1;e<a;++e){var p=(o=t[e])&&o.absoluteBox;!d||!p||c===o||0===c.newOpacity||0===o.newOpacity||p.x>=d.x+d.width||p.x+p.width<=d.x||p.y>=d.y+d.height||p.y+p.height<=d.y||((c.labelrank<o.labelrank?c:o).newOpacity=0)}}t.forEach(function(t){if(t){var e=t.newOpacity;t.oldOpacity!==e&&(t.alignAttr&&t.placed?(t[e?"removeClass":"addClass"]("highcharts-data-label-hidden"),l=!0,t.alignAttr.opacity=e,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){n.styledMode||t.css({pointerEvents:e?"auto":"none"}),t.visibility=e?"inherit":"hidden"}),s(n,"afterHideOverlappingLabel")):t.attr({opacity:e})),t.isOld=!0}}),l&&s(n,"afterHideAllOverlappingLabels")}}),e(i,"Core/Interaction.js",[i["Core/Series/Series.js"],i["Core/Chart/Chart.js"],i["Core/Globals.js"],i["Core/Legend.js"],i["Series/LineSeries.js"],i["Core/Options.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i,s,o,r,n,a){t=t.seriesTypes;var h=i.hasTouch,l=i.svg,c=r.defaultOptions,d=a.addEvent,p=a.createElement,u=a.css,f=a.defined,g=a.extend,m=a.fireEvent,y=a.isArray,v=a.isFunction,x=a.isNumber,b=a.isObject,k=a.merge,M=a.objectEach,S=a.pick;i=i.TrackerMixin={drawTrackerPoint:function(){var t,e=this,i=e.chart,s=i.pointer,o=function(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach(function(e){t=y(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||(e.trackerGroups.forEach(function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(t){s.onTrackerMouseOut(t)}),h&&e[t].on("touchstart",o),!i.styledMode&&e.options.cursor&&e[t].css(u).css({cursor:e.options.cursor}))}),e._hasTracking=!0),m(this,"afterDrawTracker")},drawTrackerGraph:function(){var t=this,e=t.options,i=e.trackByArea,s=[].concat(i?t.areaPath:t.graphPath),o=t.chart,r=o.pointer,n=o.renderer,a=o.options.tooltip.snap,c=t.tracker,d=function(e){o.hoverSeries!==t&&t.onMouseOver()},p="rgba(192,192,192,"+(l?1e-4:.002)+")";c?c.attr({d:s}):t.graph&&(t.tracker=n.path(s).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),o.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:p,fill:i?p:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup].forEach(function(t){t.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(t){r.onTrackerMouseOut(t)}),e.cursor&&!o.styledMode&&t.css({cursor:e.cursor}),h&&t.on("touchstart",d)})),m(this,"afterDrawTracker")}},t.column&&(t.column.prototype.drawTracker=i.drawTrackerPoint),t.pie&&(t.pie.prototype.drawTracker=i.drawTrackerPoint),t.scatter&&(t.scatter.prototype.drawTracker=i.drawTrackerPoint),g(s.prototype,{setItemEvents:function(t,e,i){var s=this,o=s.chart.renderer.boxWrapper,r=t instanceof n,a="highcharts-legend-"+(r?"point":"series")+"-active",h=s.chart.styledMode;(i?[e,t.legendSymbol]:[t.legendGroup]).forEach(function(i){i&&i.on("mouseover",function(){t.visible&&s.allItems.forEach(function(e){t!==e&&e.setState("inactive",!r)}),t.setState("hover"),t.visible&&o.addClass(a),h||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(k(t.visible?s.itemStyle:s.itemHiddenStyle)),s.allItems.forEach(function(e){t!==e&&e.setState("",!r)}),o.removeClass(a),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),s.allItems.forEach(function(e){t!==e&&e.setState(t.visible?"inactive":"",!r)})};o.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):m(t,"legendItemClick",e,i)})})},createCheckboxForItem:function(t){t.checkbox=p("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),d(t.checkbox,"click",function(e){m(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),g(e.prototype,{showResetZoom:function(){function t(){e.zoomOut()}var e=this,i=c.lang,s=e.options.chart.resetZoomButton,o=s.theme,r=o.states,n="chart"===s.relativeTo||"spaceBox"===s.relativeTo?null:"plotBox";m(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,o,r&&r.hover).attr({align:s.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(s.position,!1,n)}),m(this,"afterShowResetZoom")},zoomOut:function(){m(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(t){var e,i=this,s=i.pointer,o=!1,r=i.inverted?s.mouseDownX:s.mouseDownY;!t||t.resetSelection?(i.axes.forEach(function(t){e=t.zoom()}),s.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var n=t.axis,a=i.inverted?n.left:n.top,h=i.inverted?a+n.width:a+n.height,l=n.isXAxis,c=!1;(!l&&r>=a&&r<=h||l||!f(r))&&(c=!0),s[l?"zoomX":"zoomY"]&&c&&(e=n.zoom(t.min,t.max),n.displayBtn&&(o=!0))});var n=i.resetZoomButton;o&&!n?i.showResetZoom():!o&&b(n)&&(i.resetZoomButton=n.destroy()),e&&i.redraw(S(i.options.chart.animation,t&&t.animation,100>i.pointCount))},pan:function(t,e){var i,s=this,o=s.hoverPoints,r=s.options.chart,n=s.options.mapNavigation&&s.options.mapNavigation.enabled;e="object"==typeof e?e:{enabled:e,type:"x"},r&&r.panning&&(r.panning=e);var a=e.type;m(this,"pan",{originalEvent:t},function(){o&&o.forEach(function(t){t.setState()});var e=[1];"xy"===a?e=[1,0]:"y"===a&&(e=[0]),e.forEach(function(e){var o=s[e?"xAxis":"yAxis"][0],r=o.horiz,h=t[r?"chartX":"chartY"],l=s[r=r?"mouseDownX":"mouseDownY"],c=(o.pointRange||0)/2,d=o.reversed&&!s.inverted||!o.reversed&&s.inverted?-1:1,p=o.getExtremes(),u=o.toValue(l-h,!0)+c*d,f=(d=o.toValue(l+o.len-h,!0)-c*d)<u;l=f?d:u,u=f?u:d;var g=o.hasVerticalPanning(),m=o.panningState;o.series.forEach(function(t){if(g&&!e&&(!m||m.isDirty)){var i=t.getProcessedData(!0);t=t.getExtremes(i.yData,!0),m||(m={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),x(t.dataMin)&&x(t.dataMax)&&(m.startMin=Math.min(t.dataMin,m.startMin),m.startMax=Math.max(t.dataMax,m.startMax))}}),d=Math.min(S(null==m?void 0:m.startMin,p.dataMin),c?p.min:o.toValue(o.toPixels(p.min)-o.minPixelPadding)),c=Math.max(S(null==m?void 0:m.startMax,p.dataMax),c?p.max:o.toValue(o.toPixels(p.max)+o.minPixelPadding)),o.panningState=m,o.isOrdinal||(0<(f=d-l)&&(u+=f,l=d),0<(f=u-c)&&(u=c,l-=f),o.series.length&&l!==p.min&&u!==p.max&&l>=d&&u<=c&&(o.setExtremes(l,u,!1,!1,{trigger:"pan"}),s.resetZoomButton||n||l===d||u===c||!a.match("y")||(s.showResetZoom(),o.displayBtn=!1),i=!0),s[r]=h)}),i&&s.redraw(!1),u(s.container,{cursor:"move"})})}}),g(n.prototype,{select:function(t,e){var i=this,s=i.series,o=s.chart;this.selectedStaging=t=S(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||o.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(o.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var t=this,e=k(t.series.options.point,t.options).events;t.events=e,M(e,function(e,i){v(e)&&d(t,i,e)}),this.hasImportedEvents=!0}},setState:function(t,e){var i,s=this.series,o=this.state,r=s.options.states[t||"normal"]||{},n=c.plotOptions[s.type].marker&&s.options.marker,a=n&&!1===n.enabled,h=n&&n.states&&n.states[t||"normal"]||{},l=!1===h.enabled,d=s.stateMarkerGraphic,p=this.marker||{},u=s.chart,f=s.halo,y=n&&s.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===r.enabled||t&&(l||a&&!1===h.enabled)||t&&p.states&&p.states[t]&&!1===p.states[t].enabled)){if(this.state=t,y&&(i=s.markerAttribs(this,t)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!u.styledMode){var v=s.pointAttribs(this,t),x=S(u.options.chart.animation,r.animation);s.options.inactiveOtherPoints&&v.opacity&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:v.opacity},x)}),this.connector&&this.connector.animate({opacity:v.opacity},x)),this.graphic.animate(v,x)}i&&this.graphic.animate(i,S(u.options.chart.animation,h.animation,n.animation)),d&&d.hide()}else t&&h&&(o=p.symbol||s.symbol,d&&d.currentSymbol!==o&&(d=d.destroy()),i&&(d?d[e?"animate":"attr"]({x:i.x,y:i.y}):o&&(s.stateMarkerGraphic=d=u.renderer.symbol(o,i.x,i.y,i.width,i.height).add(s.markerGroup),d.currentSymbol=o)),!u.styledMode&&d&&d.attr(s.pointAttribs(this,t))),d&&(d[t&&this.isInside?"show":"hide"](),d.element.point=this);t=r.halo,r=(d=this.graphic||d)&&d.visibility||"inherit",t&&t.size&&d&&"hidden"!==r&&!this.isCluster?(f||(s.halo=f=u.renderer.path().add(d.parentGroup)),f.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),f.attr({class:"highcharts-halo highcharts-color-"+S(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),f.point=this,u.styledMode||f.attr(g({fill:this.color||s.color,"fill-opacity":t.opacity},t.attributes))):f&&f.point&&f.point.haloPath&&f.animate({d:f.point.haloPath(0)},null,f.hide),m(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),g(o.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&m(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&m(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState("",!0)})},setState:function(t,e){var i=this,s=i.options,o=i.graph,r=s.inactiveOtherPoints,n=s.states,a=s.lineWidth,h=s.opacity,l=S(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation);if(s=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(n[t]&&!1===n[t].enabled)return;if(t&&(a=n[t].lineWidth||a+(n[t].lineWidthPlus||0),h=S(n[t].opacity,h)),o&&!o.dashstyle)for(n={"stroke-width":a},o.animate(n,l);i["zone-graph-"+s];)i["zone-graph-"+s].attr(n),s+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:h},l)})}e&&r&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},setVisible:function(t,e){var i=this,s=i.chart,o=i.legendItem,r=s.options.chart.ignoreHiddenSeries,n=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!n:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][a]()}),s.hoverSeries!==i&&(s.hoverPoint&&s.hoverPoint.series)!==i||i.onMouseOut(),o&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),r&&(s.isDirtyBox=!0),m(i,a),!1!==e&&s.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),m(this,t?"select":"unselect")},drawTracker:i.drawTrackerGraph})}),e(i,"Core/Responsive.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(t,e){var i=e.find,s=e.isArray,o=e.isObject,r=e.merge,n=e.objectEach,a=e.pick,h=e.splat,l=e.uniqueKey;t.prototype.setResponsive=function(t,e){var s=this.options.responsive,o=[],n=this.currentResponsive;!e&&s&&s.rules&&s.rules.forEach(function(t){void 0===t._id&&(t._id=l()),this.matchResponsiveRule(t,o)},this),(e=r.apply(0,o.map(function(t){return i(s.rules,function(e){return e._id===t}).chartOptions}))).isResponsiveOptions=!0,(o=o.toString()||void 0)!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,t,!0),o?((n=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:o,mergedOptions:e,undoOptions:n},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,r,a,l){var c;n(i,function(i,n){if(!l&&-1<e.collectionsWithUpdate.indexOf(n))for(i=h(i),a[n]=[],c=0;c<Math.max(i.length,r[n].length);c++)r[n][c]&&(void 0===i[c]?a[n][c]=r[n][c]:(a[n][c]={},t(i[c],r[n][c],a[n][c],l+1)));else o(i)?(a[n]=s(i)?[]:{},t(i,r[n]||{},a[n],l+1)):a[n]=void 0===r[n]?null:r[n]})}(t,this.options,i,0),i}}),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"]],function(t){return t}),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]});
''';