PageSourceSearch

http://app.onomondo.com/highcharts-f1183c0a.435b59b63f695b9542ca.js

js onomondo.com collected 2026-09-24 17:19:50 UTC 407,596 bytes, 2 lines download raw bytes

1(self.webpackChunkonomondo_app=self.webpackChunkonomondo_app||[]).push([[70],{65006(t,e,i){var o,s,r;s="undefined"!=typeof window?window:this,r=function(t){function e(e,i,o,s){e.hasOwnProperty(i)||(e[i]=s.apply(null,o),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}var i={};return e(i,"Core/Globals.js",[],function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.3.3",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e}),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],function(t){function e(i,o,s,r){var n=o?"Highcharts error":"Highcharts warning";32===i&&(i=n+": Deprecated member");var a=h(i),l=a?n+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(void 0!==r){var c="";a&&(l+="?"),m(r,function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))}),l+=c}x(t,"displayError",{chart:s,code:i,message:l,params:r},function(){if(o)throw Error(l);S.console&&-1===e.messages.indexOf(l)&&console.warn(l)}),e.messages.push(l)}function i(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&s(t))}function n(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||n(t)||!e||!e.name||"Object"===e.name)}function h(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function c(t,e,i){var s,r=o(e)&&!l(i),n=function(e,i){l(e)?t.setAttribute(i,e):r?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return o(e)?n(i,e):m(e,n),s}function d(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function p(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function u(e,i){t.isMS&&!t.svg&&i&&l(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),d(e.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function g(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function m(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function v(e,i,o){function s(i,o){var s=e.removeEventListener||t.removeEventListenerPolyfill;s&&s.call(e,i,o,!1)}function r(t){var o;if(e.nodeName){if(i){var r={};r[i]=!0}else r=t;m(r,function(e,i){if(t[i])for(o=t[i].length;o--;)s(i,t[i][o].fn)})}}var n="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(n,"hcEvents")){var a=n.hcEvents;i?(n=a[i]||[],o?(a[i]=n.filter(function(t){return o!==t.fn}),s(i,o)):(r(a),a[i]=[])):(r(a),delete n.hcEvents)}}function x(e,i,o,s){if(o=o||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var r=b.createEvent("Events");r.initEvent(i,!0,!0),o=d(r,o),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(i,o)}else if(e.hcEvents){o.target||d(o,{preventDefault:function(){o.defaultPrevented=!0},target:e,type:i}),r=[];for(var n=e,a=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(r.length&&(a=!0),r.unshift.apply(r,n.hcEvents[i])),n=Object.getPrototypeOf(n);a&&r.sort(function(t,e){return t.order-e.order}),r.forEach(function(t){!1===t.fn.call(e,o)&&o.preventDefault()})}s&&!o.defaultPrevented&&s.call(e,o)}var y=t.charts,b=t.doc,S=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var M=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};
1m({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,o){t[o]=function(t){var s;return e(32,!1,void 0,((s={})["Highcharts.".concat(o)]="use Array.".concat(i),s)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}});var k,C=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(k?"":t)+e++}}();return S.jQuery&&(S.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[o(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):y[c(this[0],"data-highcharts-chart")]}),M={addEvent:function(e,i,o,s){void 0===s&&(s={});var r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={}),r=r.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var n=e.addEventListener||t.addEventListenerPolyfill;return n&&n.call(e,i,o,!!t.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==i.indexOf("touch"):s.passive,capture:!1}),r[i]||(r[i]=[]),r[i].push({fn:o,order:"number"==typeof s.order?s.order:1/0}),r[i].sort(function(t,e){return t.order-e.order}),function(){v(e,i,o)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:c,clamp:function(t,e,i){return t>e?t<i?t:i:e},cleanRecursively:function t(e,i){var o={};return m(e,function(s,n){r(e[n],!0)&&!e.nodeType&&i[n]?(s=t(e[n],i[n]),Object.keys(s).length&&(o[n]=s)):(r(e[n])||e[n]!==i[n]||n in e&&!(n in i))&&(o[n]=e[n])}),o},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:g,createElement:function(t,e,i,o,s){return t=b.createElement(t),e&&d(t,e),s&&u(t,{padding:"0",border:"none",margin:"0"}),i&&u(t,i),o&&o.appendChild(t),t},css:u,defined:l,destroyObjectProperties:function(t,e){m(t,function(i,o){i&&i!==e&&i.destroy&&i.destroy(),delete t[o]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:d,extendClass:function(t,e){var i=function(){};return d(i.prototype=new t,e),i},find:M,fireEvent:x,getMagnitude:f,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var i=t.shift();if(void 0===i||"__proto__"===i)return;if(!l(e=e[i])||"function"==typeof e||"number"==typeof e.nodeType||e===S)return}return e},getStyle:function o(s,r,n){var a=t.getStyle||o;if("width"===r)return r=Math.min(s.offsetWidth,s.scrollWidth),(n=s.getBoundingClientRect&&s.getBoundingClientRect().width)<r&&n>=r-1&&(r=Math.floor(n)),Math.max(0,r-(a(s,"padding-left",!0)||0)-(a(s,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(a(s,"padding-top",!0)||0)-(a(s,"padding-bottom",!0)||0));if(S.getComputedStyle||e(27,!0),s=S.getComputedStyle(s,void 0)){var h=s.getPropertyValue(r);p(n,"opacity"!==r)&&(h=i(h))}return h},inArray:function(t,i,o){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:s,isClass:a,isDOMElement:n,isFunction:function(t){return"function"==typeof t},isNumber:h,isObject:r,isString:o,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,i={},o=function(t,e){return"object"!=typeof t&&(t={}),m(e,function(i,s){"__proto__"!==s&&"constructor"!==s&&(!r(i,!0)||a(i)||n(i)?t[s]=e[s]:t[s]=o(t[s]||{},i))}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t<s;t++)i=o(i,e[t]);return i},normalizeTickInterval:function(t,e,i,o,s){var r=t,n=t/(i=p(i,f(t)));for(e||(e=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter(function(t){return 0==t%1}):.1>=i&&(e=[1/i]))),o=0;o<e.length&&(r=e[o],!(s&&r*i>=t||!s&&n<=(e[o]+(e[o+1]||e[o]))/2));o++);return g(r*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:m,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}
1).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:p,pInt:i,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:v,splat:function(t){return s(t)?t:[t]},stableSort:function(t,e){var i,o,s=t.length;for(o=0;o<s;o++)t[o].safeI=o;for(t.sort(function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i}),o=0;o<s;o++)delete t[o].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:C,useSerialIds:function(t){return k=p(t,k)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},M}),e(i,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.isNumber,o=e.merge,s=e.pInt;return e=function(){function e(i){this.rgba=[NaN,NaN,NaN,NaN],this.input=i;var o=t.Color;return o&&o!==e?new o(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var i;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var o=t.length,s=parseInt(t.substr(1),16);7===o?i=[(16711680&s)>>16,(65280&s)>>8,255&s,1]:4===o&&(i=[(3840&s)>>4|(3840&s)>>8,(240&s)>>4|240&s,(15&s)<<4|15&s,1])}if(!i)for(s=e.parsers.length;s--&&!i;){var r=e.parsers[s];(o=r.regex.exec(t))&&(i=r.parse(o))}}i&&(this.rgba=i)},e.prototype.get=function(t){var e=this.input,s=this.rgba;if("object"==typeof e&&void 0!==this.stops){var r=o(e);return r.stops=[].slice.call(r.stops),this.stops.forEach(function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}),r}return s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?"".concat(s[3]):"rgba("+s.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(var o=0;3>o;o++)e[o]+=s(255*t),0>e[o]&&(e[o]=0),255<e[o]&&(e[o]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var o=this.rgba,s=t.rgba;return i(o[0])&&i(s[0])?((t=1!==s[3]||1!==o[3])?"rgba(":"rgb(")+Math.round(s[0]+(o[0]-s[0])*(1-e))+","+Math.round(s[1]+(o[1]-s[1])*(1-e))+","+Math.round(s[2]+(o[2]-s[2])*(1-e))+(t?","+(s[3]+(o[3]-s[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.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[s(t[1]),s(t[2]),s(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[s(t[1]),s(t[2]),s(t[3]),1]}}],e.None=new e(""),e}(),e}),e(i,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.win,o=e.defined,s=e.error,r=e.extend,n=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,c=e.pick,d=e.splat,p=e.timeUnits,u=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),o=i-this.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()}
1,e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](i);var o=this.getTimezoneOffset(e);return o=e.getTime()-o,e.setTime(o),e["setUTC"+t](i),t=this.getTimezoneOffset(e),o=e.getTime()+t,e.setTime(o)}return this.useUTC||u&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){void 0===t&&(t={});var e=c(t.useUTC,!0);this.options=t=a(!0,this.options,t),this.Date=t.Date||i.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,i,o,s,r){if(this.useUTC){var n=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(n);n+=a;var h=this.getTimezoneOffset(n);a!==h?n+=h-a:a-36e5!==this.getTimezoneOffset(n-36e5)||f||(n-=36e5)}else n=new this.Date(t,e,c(i,1),c(o,0),c(s,0),c(r,0)).getTime();return n},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,o=e.getTimezoneOffset,r=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(r)return function(t){return 6e4*-r.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&o?function(t){return 6e4*o(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,s){if(!o(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var n=this,a=new this.Date(i),d=this.get("Hours",a),p=this.get("Day",a),u=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,v=m&&m.weekdays,x=m&&m.shortWeekdays;return a=r({a:x?x[p]:v[p].substr(0,3),A:v[p],d:l(u),e:l(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(a,function(t,o){for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof t?t.call(n,i):t)}),s?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return n(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,s){var n,a=this,h=[],l={},d=new a.Date(e),u=t.unitRange,f=t.count||1;if(s=c(s,1),o(e)){if(a.set("Milliseconds",d,u>=p.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),u>=p.second&&a.set("Seconds",d,u>=p.minute?0:f*Math.floor(a.get("Seconds",d)/f)),u>=p.minute&&a.set("Minutes",d,u>=p.hour?0:f*Math.floor(a.get("Minutes",d)/f)),u>=p.hour&&a.set("Hours",d,u>=p.day?0:f*Math.floor(a.get("Hours",d)/f)),u>=p.day&&a.set("Date",d,u>=p.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),u>=p.month){a.set("Month",d,u>=p.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}u>=p.year&&a.set("FullYear",d,g-g%f),u===p.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+s+(g<s?-7:0))),g=a.get("FullYear",d),s=a.get("Month",d);var m=a.get("Date",d),v=a.get("Hours",d);for(e=d.getTime(),!a.variableTimezone&&a.useUTC||!o(i)||(n=i-e>4*p.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=d.getTime(),d=1;e<i;)h.push(e),e=u===p.year?a.makeTime(g+d*f,0):u===p.month?a.makeTime(g,s+d*f):!n||u!==p.day&&u!==p.week?n&&u===p.hour&&1<f?a.makeTime(g,s,m,v+d*f):e+u*f:a.makeTime(g,s,m+d*f*(u===p.day?1:7)),d++;h.push(e),u<=p.hour&&1e4>h.length&&h.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")})}return h.info=r(t,{higherRanks:l,totalRange:u*f}),h},e.prototype.getDateFormat=function(t,e,i,o){var s=this.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond";for(a in p){if(t===p.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===s.substr(6)){var a="week";break}if(p[a]>t){a=n;break}if(r[a]&&s.substr(r[a])!=="01-01 00:00:00.000".substr(r[a]))break;"week"!==a&&(n=a)}return this.resolveDTLFormat(o[a]).main},e}(),e}),e(i,"Core/Defaults.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(t,e,
1i,o,s,r){e=e.parse;var n=r.merge,a={colors:o.colors,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:t,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,className:"highcharts-no-tooltip",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:i.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:i.isTouchDevice?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,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},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"}};a.chart.styledMode=!1;var h=new s(n(a.global,a.time));return{defaultOptions:a,defaultTime:h,getOptions:function(){return a},setOptions:function(t){return n(!0,a,t),(t.time||t.global)&&(i.time?i.time.update(n(a.global,a.time,t.global,t.time)):i.time=h),a}}}),e(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var o=t.parse,s=e.win,r=i.isNumber,n=i.objectEach;return function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,o=[];if(1!==i&&e&&t)if(e.length===t.length&&1>i)for(var s=0;s<t.length;s++){for(var n=e[s],a=t[s],h=[],l=0;l<a.length;l++){var c=n[l],d=a[l];r(c)&&r(d)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+i*(d-c):h[l]=d}o.push(h)}else o=t;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=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,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,a=function(t){return!a.stopped&&r.step(t)},h=s.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!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,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))},t.prototype.step=function(t){var e=+new Date,i=this.options,o=this.elem,s=i.complete,r=i.duration,a=i.curAnim;if(o.attr&&!o.element)t=!1;else if(t||e>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;n(a,function(t){!0!==t&&(h=!1)}),h&&s&&s.call(o),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t}
1,t.prototype.initPath=function(t,e,i){function o(t,e){for(;t.length<p;){var i=t[0],o=e[p-t.length];o&&"M"===i[0]&&(t[0]="C"===o[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),h&&(i=t.pop(),t.push(t[t.length-1],i))}}function s(t,e){for(;t.length<p;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),h){var i=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}var n=t.startX,a=t.endX;i=i.slice();var h=t.isArea,l=h?2:1;if(!(e=e&&e.slice()))return[i,i];if(n&&a&&a.length){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&&r(c)){var p=i.length+c*l;d?(o(e,i),s(i,e)):(o(i,e),s(e,i))}return[e,i]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)},t.timers=[],t}()}),e(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Utilities.js"]],function(t,e){function i(t){return h(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function o(e,i){for(var o=t.timers.length;o--;)t.timers[o].elem!==e||i&&i!==t.timers[o].prop||(t.timers[o].stopped=!0)}var s=e.defined,r=e.getStyle,n=e.isArray,a=e.isNumber,h=e.isObject,l=e.merge,c=e.objectEach,d=e.pick;return{animate:function(e,i,s){var d,p,u,f="";if(!h(s)){var g=arguments;s={duration:g[2],easing:g[3],complete:g[4]}}a(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=l(i),c(i,function(a,h){o(e,h),u=new t(e,s,h),p=void 0,"d"===h&&n(i.d)?(u.paths=u.initPath(e,e.pathArray,i.d),u.toD=i.d,d=0,p=1):e.attr?d=e.attr(h):(d=parseFloat(r(e,h))||0,"opacity"!==h&&(f="px")),p||(p=a),"string"==typeof p&&p.match("px")&&(p=p.replace(/px/g,"")),u.run(d,p,f)})},animObject:i,getDeferredAnimation:function(t,e,o){var r=i(e),n=0,a=0;return(o?[o]:t.series).forEach(function(t){t=i(t.options.animation),n=e&&s(e.defer)?r.defer:Math.max(n,t.duration+t.defer),a=Math.min(r.duration,t.duration)}),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-a),duration:Math.min(n,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=d(t,e.options.chart.animation,!0)},stop:o}}),e(i,"Core/Renderer/HTML/AST.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.SVG_NS,o=e.attr,s=e.createElement,r=e.css,n=e.error,a=e.isFunction,h=e.isString,l=e.objectEach,c=e.splat,d=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),p=d?d.createHTML(""):"";try{var u=!!(new DOMParser).parseFromString(p,"text/html")}catch(t){u=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,function(i,o){var s=!0;-1===e.allowedAttributes.indexOf(o)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(s=h(i)&&e.allowedReferences.some(function(t){return 0===i.indexOf(t)})),s||(n(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete t[o]),h(i)&&t[o]&&(t[o]=i.replace(/</g,"&lt;"))}),t},e.parseStyle=function(t){return t.split(";").reduce(function(t,e){e=e.split(":").map(function(t){return t.trim()});var i=e.shift();return i&&e.length&&(t[i.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=e.join(":")),t},{})},e.setElementHTML=function(t,i){t.innerHTML=e.emptyHTML,i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(s){return function s(a,h){var d;return c(a).forEach(function(a){var c=a.tagName,p=a.textContent?t.doc.createTextNode(a.textContent):void 0,u=e.bypassHTMLFiltering;if(c)if("#text"===c)var f=p;else if(-1!==e.allowedTags.indexOf(c)||u){c=t.doc.createElementNS("svg"===c?i:h.namespaceURI||i,c);var g=a.attributes||{};l(a,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(g[e]=t)}),o(c,u?g:e.filterUserAttributes(g)),a.style&&r(c,a.style),p&&c.appendChild(p),s(a.children||[],c),f=c}else n(33,!1,void 0,{"Invalid tagName in config":c});f&&h.appendChild(f),d=f}),d}(this.nodes,s)},e.prototype.parseMarkup=function(t){var i=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),u)t=(new DOMParser).parseFromString(d?d.createHTML(t):t,"text/html");else{var o=s("div");o.innerHTML=t,t={body:o}}
1var r=function(t,i){var o=t.nodeName.toLowerCase(),s={tagName:o};if("#text"===o&&(s.textContent=t.textContent||""),o=t.attributes){var n={};[].forEach.call(o,function(t){"data-style"===t.name?s.style=e.parseStyle(t.value):n[t.name]=t.value}),s.attributes=n}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,function(t){r(t,a)}),a.length&&(s.children=a)}i.push(s)};return[].forEach.call(t.body.childNodes,function(t){return r(t,i)}),i},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=p,e.bypass
1HTMLFiltering=!1,e}(),a}),e(i,"Core/FormatUtilities.js",[i["Core/Defaults.js"],i["Core/Utilities.js"]],function(t,e){function i(t,e,i,s){t=+t||0,e=+e;var r=o.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),d=e;if(-1===e)e=Math.min(l,20);else if(n(e)){if(e&&c[1]&&0>c[1]){var p=e+ +c[1];0<=p?(c[0]=(+c[0]).toExponential(p).split("e")[0],e=p):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;p=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var u=3<(l=String(h(p))).length?l.length%3:0;return i=a(i,r.decimalPoint),s=a(s,r.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+s:""),t=0>+c[1]&&!d?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s),e&&(t+=i+p.slice(-e)),c[1]&&0!==+t&&(t+="e"+c[1]),t}var o=t.defaultOptions,s=t.defaultTime,r=e.getNestedProperty,n=e.isNumber,a=e.pick,h=e.pInt;return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:function(t,e,n){var a="{",h=!1,l=/f$/,c=/\.([0-9])/,d=o.lang,p=n&&n.time||s;n=n&&n.numberFormatter||i;for(var u=[];t;){var f=t.indexOf(a);if(-1===f)break;var g=t.slice(0,f);if(h){if(g=g.split(":"),a=r(g.shift()||"",e),g.length&&"number"==typeof a)if(g=g.join(":"),l.test(g)){var m=parseInt((g.match(c)||["","-1"])[1],10);null!==a&&(a=n(a,m,d.decimalPoint,-1<g.indexOf(",")?d.thousandsSep:""))}else a=p.dateFormat(g,a);u.push(a)}else u.push(g);t=t.slice(f+1),a=(h=!h)?"}":"{"}return u.push(t),u.join("")},numberFormat:i}}),e(i,"Core/Renderer/RendererUtilities.js",[i["Core/Utilities.js"]],function(t){var e,i=t.clamp,o=t.pick,s=t.stableSort;return function(t){t.distribute=function t(e,r,n){var a,h=e,l=h.reducedLen||r,c=function(t,e){return(e.rank||0)-(t.rank||0)},d=function(t,e){return t.target-e.target},p=!0,u=[],f=0;for(a=e.length;a--;)f+=e[a].size;if(f>l){for(s(e,c),f=a=0;f<=l;)f+=e[a].size,a++;u=e.splice(a-1,e.length)}for(s(e,d),e=e.map(function(t){return{size:t.size,targets:[t.target],align:o(t.align,.5)}});p;){for(a=e.length;a--;)l=e[a],c=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=i(c-l.size*l.align,0,r-l.size);for(a=e.length,p=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>r&&(e[a-1].pos=r-e[a-1].size),e.splice(a,1),p=!0)}return h.push.apply(h,u),a=0,e.some(function(e){var i=0;return(e.targets||[]).some(function(){return h[a].pos=e.pos+i,void 0!==n&&Math.abs(h[a].pos-h[a].target)>n?(h.slice(0,a+1).forEach(function(t){return delete t.pos}),h.reducedLen=(h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,n),!0):(i+=h[a].size,a++,!1)})}),s(h,d),h}}(e||(e={})),e}),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,o){var s=t.animate,r=t.animObject,n=t.stop,a=i.deg2rad,h=i.doc,l=i.svg,c=i.SVG_NS,d=i.win,p=o.addEvent,u=o.attr,f=o.createElement,g=o.css,m=o.defined,v=o.erase,x=o.extend,y=o.fireEvent,b=o.isArray,S=o.isFunction,M=o.isString,k=o.merge,C=o.objectEach,w=o.pick,A=o.pInt,T=o.syncTimeout,P=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=c,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY roun
1ded".split(" ")}return t.prototype._defaultGetter=function(t){return t=w(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),void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var o=this.zIndexSetter();return o||(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(" "),t!==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 o,s,r,n={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||M(i))&&(this.alignTo=o=i||"renderer",v(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=w(i,a[o],"scrollablePlotBox"===o?a.plotBox:void 0,a),o=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===o?s=1:"center"===o&&(s=2),s&&(a+=(i.width-(t.width||0))/s),n[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),n[e?"translateY":"y"]=Math.round(h),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 o=this,n=r(w(e,this.renderer.globalAnimation,!0));return e=n.defer,w(h.hidden,h.msHidden,h.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),T(function(){o.element&&s(o,t,n)},e)):(this.attr(t,void 0,i||n.complete),C(t,function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var o=t.split(" ");if(t=o[o.length-1],(o=o[0])&&"none"!==o&&i.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var s=h.createElementNS(c,"tspan");u(s,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":o,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),s.appendChild(e)});var r=0;[].forEach.call(t.querySelectorAll("text tspan"),function(t){r+=Number(t.getAttribute("dy"))}),(o=h.createElementNS(c,"tspan")).textContent="​",u(o,{x:Number(e.getAttribute("x")),dy:-r}),s.appendChild(o),t.insertBefore(s,t.firstChild)}},t.prototype.attr=function(t,e,i,o){var s,r,a,h=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(C(t,function(e,i){r=!1,o||n(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(t),s=!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),c},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),m(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,i,o){var s,r,n,a,h,l,c,d,p,u,f,g=this.renderer,v=[];y(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=o.radialReference,b(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!m(n.gradientUnits)&&(a=n,n=k(n,g.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),C(n,function(t,e){"id"!==e&&v.push(e,t)}),C(l,function(t){v.push(t)}),v=v.join(","),h[v])u=h[v].attr("id");else{n.id=u=P();var x=h[v]=g.createElement(r).attr(n).add(g.defs);x.radAttr=a,x.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(s=e.parse(t[1]),c=s.get("rgb"),d=s.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(x),x.stops.push(t)})}f="url("+g.url+"#"+u+")",o.setAttribute(i,f),o.gradient=v,t.toString=function(){return f}}})},t.prototype.css=function(t){var e=this.styles,i={},o=this.element,s=!e;if(t.color&&(t.fill=t.color),e&&C(t,function(t,o){e&&e[o]!==t&&(i[o]=t,s=!0)}),s){if(e&&(t=x(e,i)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var r=this.textWidth=A(t.width);this.styles=t,r&&!l&&this.renderer.forExport&&delete t.width;var n=k(t);o.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(t){return n&&delete n[t]}),g(o,n),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),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]=""+A(i[t])*w(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,o=e.ownerSVGElement,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;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.i
1d)&&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&&v(i.alignedObjects,t),C(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.dSetter=function(t,e,i){b(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:w(t,150),complete:function(){e.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 o=this.alignValue,s=this.element,r=this.renderer,n=this.styles,h=this.textStr,l=r.cache,c=r.cacheKeys,d=s.namespaceURI===this.SVG_NS;i=w(i,this.rotation,0);var p,u=r.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):n&&n.fontSize;if(m(h)){var f=h.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0")),f+=["",i,u,this.textWidth,o,n&&n.textOverflow,n&&n.fontWeight].join()}if(f&&!e&&(p=l[f]),!p){if(d||r.forExport){try{var v=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&g(e,{display:t})};S(v)&&v("none"),p=s.getBBox?x({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},S(v)&&v("")}catch(t){}(!p||0>p.width)&&(p={x:0,y:0,width:0,height:0})}else p=this.htmlGetBBox();if(r.isSVG&&(r=p.width,e=p.height,d&&(p.height=e={"11px,17":14,"13px,20":16}[""+(u||"")+",".concat(Math.round(e))]||e),i)){d=Number(s.getAttribute("y")||0)-p.y,o={right:1,center:.5}[o||0]||0,n=i*a,u=(i-90)*a;var y=r*Math.cos(n);i=r*Math.sin(n),v=Math.cos(u),n=Math.sin(u),y=(v=(u=(r=p.x+o*(r-y)+d*v)+y)-e*v)-y,i=(e=(o=(d=p.y+d-o*i+d*n)+i)-e*n)-i,p.x=Math.min(r,u,v,y),p.y=Math.min(d,o,e,i),p.width=Math.max(r,u,v,y)-p.x,p.height=Math.max(d,o,e,i)-p.y}if(f&&(""===h||0<p.height)){for(;250<c.length;)delete l[c.shift()];l[f]||c.push(f),l[f]=p}}return p},t.prototype.getStyle=function(t){return d.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?f(e):h.createElementNS(this.SVG_NS,e),this.renderer=t,y(this,"afterInit")},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=p(this.element,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(M(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},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;e=k(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var o=this.renderer.url,s=this.text||this,r=s.textPath,n=e.attributes,a=e.enabled;return t=t||r&&r.path,r&&r.undo(),t&&a?(e=p(s,"afterModifyTree",function(e){if(t&&a){var r=t.attr("id");r||t.attr("id",r=P());var h={x:0,y:0};m(n.dx)&&(h.dx=n.dx,delete n.dx),m(n.dy)&&(h.dy=n.dy,delete n.dy),s.attr(h),i.attr({transform:""}),i.box&&(i.box=i.box.destroy()),h=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:x(n,{"text-anchor":n.textAnchor,href:""+o+"#".concat(r)}),children:h}}}),s.textPath={path:t,undo:e}):(s.attr({dx:0,dy:0}),delete s.textPath),this.added&&(s.textCache="",this.renderer.buildText(s)),this}
1,t.prototype.shadow=function(t,e,i){var o=[],s=this.element,r=this.oldShadowOptions,n=this.parentGroup,a=n&&90===n.rotation;n={color:"#000000",offsetX:a?-1:1,offsetY:a?-1:1,opacity:.15,width:3};var h,l=!1;if(!0===t?h=n:"object"==typeof t&&(h=x(n,t)),h&&(h&&r&&C(h,function(t,e){t!==r[e]&&(l=!0)}),l&&this.destroyShadows(),this.oldShadowOptions=h),h){if(!this.shadows){n=h.opacity/h.width;var c=a?"translate(".concat(h.offsetY,", ").concat(h.offsetX,")"):"translate(".concat(h.offsetX,", ").concat(h.offsetY,")");for(a=1;a<=h.width;a++){var d=s.cloneNode(!1),p=2*h.width+1-2*a;u(d,{stroke:t.color||"#000000","stroke-opacity":n*a,"stroke-width":p,transform:c,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),i&&(u(d,"height",Math.max(u(d,"height")-p,0)),d.cutHeight=p),e?e.element.appendChild(d):s.parentNode&&s.parentNode.insertBefore(d,s),o.push(d)}this.shadows=o}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},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=A(t);else if(""!==t){var i=h.createElementNS(c,"rect");u(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]=w(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,i=e.getElementsByTagName("title")[0]||h.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(w(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/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 o=this.shadows;if(o)for(var s=o.length;s--;)i.call(o[s],"height"===t?Math.max(e-(o[s].cutHeight||0),0):"d"===t?this.d:e,t,o[s])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,i=this.rotation;i=void 0===i?0:i;var o=this.scaleX,s=this.scaleY,r=this.translateX,n=this.translateY;r=["translate("+(void 0===r?0:r)+","+(void 0===n?0:n)+")"],m(e)&&r.push("matrix("+e.join(",")+")"),i&&r.push("rotate("+i+" "+w(this.rotationOriginX,t.getAttribute("x"),0)+" "+w(this.rotationOriginY,t.getAttribute("y")||0)+")"),(m(o)||m(s))&&r.push("scale("+w(o,1)+" "+w(s,1)+")"),r.length&&!(this.text||this).textPath&&t.setAttribute("transform",r.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,o=this.parentGroup,s=(o||i).element||i.box,r=this.element;i=s===i.box;var n,a=!1,h=this.added;if(m(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):m(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&o&&(o.handleZ=!0),n=(e=s.childNodes).length-1;0<=n&&!a;n--){h=(o=e[n]).getAttribute("data-z-index");var l=!m(h);o!==r&&(0>t&&l&&!i&&!n?(s.insertBefore(r,e[n]),a=!0):(A(h)<=t||l&&(!m(t)||0<=t))&&(s.insertBefore(r,e[n+1]||null),a=!0))}a||(s.insertBefore(r,e[i?3:0]||null),a=!0)}return a},t}(),t.prototype.strokeSetter=t.prototype.fillSetter,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},t}),e(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],function(t){var e;return function(e){var i;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=i),e.rendererTypes[t]||e.rendererTypes[i]},e.registerRendererType=function(o,s,r){e.rendererTypes[o]=s,i&&!r||(i=o,t.Renderer=s)}}(e||(e={})),e}
1),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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=e.defined,s=e.extend,r=e.isNumber,n=e.merge,a=e.pick,h=e.removeEvent;return function(e){function l(t,i,o,s,r,n,a,h,c,d){var p,u=e.call(this)||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.init(t,"g"),u.textStr=i,u.x=o,u.y=s,u.anchorX=n,u.anchorY=a,u.baseline=c,u.className=d,u.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&u.addClass("highcharts-"+d),u.text=t.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof r&&((p=/^url\((.*?)\)$/.test(r))||u.renderer.symbols[r])&&(u.symbolKey=r),u.bBox=l.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return i(l,e),l.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}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=n(e),l.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),this.text.css(i),"fontSize"in i||"fontWeight"in i?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.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},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,i={},n=this.padding,a=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!o(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(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(),i.x=t,i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(s(i,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=a(this.paddingLeft,this.padding);o(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||
1(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e}},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)}),e(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],function(t){function e(t,e,i,o,r){var a=[];if(r){var h=r.start||0,l=n(r.r,i);i=n(r.r,o||i);var c=(r.end||0)-.001;o=r.innerR;var d=n(r.open,.001>Math.abs((r.end||0)-h-2*Math.PI)),p=Math.cos(h),u=Math.sin(h),f=Math.cos(c),g=Math.sin(c);h=n(r.longArc,.001>c-h-Math.PI?0:1),a.push(["M",t+l*p,e+i*u],["A",l,i,0,h,n(r.clockwise,1),t+l*f,e+i*g]),s(o)&&a.push(d?["M",t+o*f,e+o*g]:["L",t+o*f,e+o*g],["A",o,o,0,h,s(r.clockwise)?1-r.clockwise:0,t+o*p,e+o*u]),d||a.push(["Z"])}return a}function i(t,e,i,s,r){return r&&r.r?o(t,e,i,s,r):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function o(t,e,i,o,s){return[["M",t+(s=s&&s.r||0),e],["L",t+i-s,e],["C",t+i,e,t+i,e,t+i,e+s],["L",t+i,e+o-s],["C",t+i,e+o,t+i,e+o,t+i-s,e+o],["L",t+s,e+o],["C",t,e+o,t,e+o,t,e+o-s],["L",t,e+s],["C",t,e,t,e,t+s,e]]}var s=t.defined,r=t.isNumber,n=t.pick;return{arc:e,callout:function(t,e,i,s,n){var a=Math.min(n&&n.r||0,i,s),h=a+6,l=n&&n.anchorX;n=n&&n.anchorY||0;var c=o(t,e,i,s,{r:a});return r(l)?(t+l>=i?n>e+h&&n<e+s-h?c.splice(3,1,["L",t+i,n-6],["L",t+i+6,n],["L",t+i,n+6],["L",t+i,e+s-a]):c.splice(3,1,["L",t+i,s/2],["L",l,n],["L",t+i,s/2],["L",t+i,e+s-a]):0>=t+l?n>e+h&&n<e+s-h?c.splice(7,1,["L",t,n+6],["L",t-6,n],["L",t,n-6],["L",t,e+a]):c.splice(7,1,["L",t,s/2],["L",l,n],["L",t,s/2],["L",t,e+a]):n&&n>s&&l>t+h&&l<t+i-h?c.splice(5,1,["L",l+6,e+s],["L",l,e+s+6],["L",l-6,e+s],["L",t+a,e+s]):n&&0>n&&l>t+h&&l<t+i-h&&c.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",i-a,e]),c):c},circle:function(t,i,o,s){return e(t+o/2,i+s/2,o/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:i,roundedRect:o,square:i,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}}}),e(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var o=e.doc,s=e.SVG_NS,r=e.win,n=i.attr,a=i.extend,h=i.fireEvent,l=i.isString,c=i.objectEach,d=i.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,i=e.element,s=e.renderer,r=d(e.textStr,"").toString(),n=-1!==r.indexOf("<"),a=i.childNodes;s=this.width&&!e.added&&s.box;var h=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(h!==e.textCache){for(e.textCache=h,delete e.actualWidth,h=a.length;h--;)i.removeChild(a[h]);n||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))?""!==r&&(s&&s.appendChild(i),r=new t(r),this.modifyTree(r.nodes),r.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(i)):i.appendChild(o.createTextNode(this.unescapeEntities(r))),l(this.textOutline)&&e.a
1pplyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,a=n(i.element,"x");for(i.firstLineMetrics=void 0;(t=i.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)i.element.removeChild(t);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),function(t,o){t.nextSibling&&t.previousSibling&&(0===o&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(void 0,t.previousSibling)),n(t,{dy:e.getLineHeight(t.nextSibling),x:a}))});var h=this.width||0;if(h){var l=function(t,r){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1<c.length||1<i.element.childNodes.length),p=e.getLineHeight(r),u=0,f=i.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,h-parseInt(e.fontSize||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(d){for(l=[],d=[];r.firstChild&&r.firstChild!==t;)d.push(r.firstChild),r.removeChild(r.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<u&&(l.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===u&&f||0,h,function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")}),f=i.actualWidth,u++;d.forEach(function(e){r.insertBefore(e,t)}),l.forEach(function(e){r.insertBefore(o.createTextNode(e),t),(e=o.createElementNS(s,"tspan")).textContent="​",n(e,{dy:p,x:a}),r.insertBefore(e,t)})}},c=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===r.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),c(e))})};c(i.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,i=function(o,s){var r=o.attributes;r=void 0===r?{}:r;var n=o.children,h=o.style;h=void 0===h?{}:h;var l=o.tagName,c=e.renderer.styledMode;"b"===l||"strong"===l?c?r.class="highcharts-strong":h.fontWeight="bold":"i"!==l&&"em"!==l||(c?r.class="highcharts-emphasized":h.fontStyle="italic"),h&&h.color&&(h.fill=h.color),"br"===l?(r.class="highcharts-br",o.textContent="​",(s=t[s+1])&&s.textContent&&(s.textContent=s.textContent.replace(/^ +/gm,""))):"a"===l&&n&&n.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:n,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(o.tagName="tspan"),a(o,{attributes:r,style:h}),n&&n.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),h(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,i,o,s,r){var n,a=this.svgElement,h=a.renderer,l=a.rotation,c=[],d=i?1:0,p=(e||i||"").length,u=p,f=function(s,n){n=n||s;var l=t.parentNode;if(l&&void 0===c[n])if(l.getSubStringLength)try{c[n]=o+l.getSubStringLength(0,i?n+1:n)}catch(t){}else h.getSpanWidth&&(t.textContent=r(e||i,s),c[n]=o+h.getSpanWidth(a,t));return c[n]};a.rotation=0;var g=f(t.textContent.length);if(o+g>s){for(;d<=p;)u=Math.ceil((d+p)/2),i&&(n=r(i,u)),g=f(u,n&&n.length-1),d===p?d=p+1:g>s?p=u-1:d=u;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=n||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=g,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return c(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),o))}),t},e}()}),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h){var l,c=i.charts,d=i.deg2rad,p=i.doc,u=i.isFirefox,f=i.isMS,g=i.isWebKit,m=i.noop,v=i.SVG_NS,x=i.symbolSizes,y=i.win,b=h.addEvent,S=h.attr,M=h.createElement,k=h.css,C=h.defined,w=h.destroyObjectProperties,A=h.extend,T=h.isArray,P=h.isNumber,O=h.isObject,L=h.isString,E=h.merge,D=h.pick,j=h.pInt,B=h.uniqueKey;return i=function(){function i(t,e,i,o,s,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,o,s,r,n)}
1return i.prototype.init=function(t,e,i,o,s,r,n){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;n||h.css(this.getStyle(o)),t.appendChild(l),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=s,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((e=function(){k(t,{left:0,top:0}),a=t.getBoundingClientRect(),k(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(y,"resize",e))},i.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},i.prototype.getReferenceURL=function(){if((u||g)&&p.getElementsByTagName("base").length){if(!C(l)){var e=B();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(p.body),k(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=p.elementFromPoint(6,6);l="hitme"===(i&&i.id),p.body.removeChild(e)}if(l)return y.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},i.prototype.getStyle=function(t){return this.style=A({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},i.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},i.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},i.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),w(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},i.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},i.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},i.prototype.buildText=function(t){new a(t).buildSVG()},i.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map(function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)}))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},i.prototype.button=function(e,i,o,s,r,n,a,h,l,c){void 0===r&&(r={});var d=this.label(e,i,o,l,void 0,void 0,c,void 0,"button"),p=this.styledMode;e=r.states||{};var u=0;delete(r=E(r)).states;var g=E({color:"#333333",cursor:"pointer",fontWeight:"normal"},r.style);delete r.style;var m=t.filterUserAttributes(r);if(d.attr(E({padding:8,r:2},m)),!p){m=E({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},m);var v=(n=E(m,{fill:"#e6e6e6"},t.filterUserAttributes(n||e.hover||{}))).style;delete n.style;var x=(a=E(m,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var y=(h=E(m,{style:{color:"#cccccc"}},t.filterUserAttributes(h||e.disabled||{}))).style;delete h.style}return b(d.element,f?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),b(d.element,f?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p||(d.attr([m,n,a,h][t||0]),O(t=[g,v,x,y][t||0])&&d.css(t))},p||(d.attr(m).css(A({cursor:"default"},g)),c&&d.text.css({pointerEvents:"none"})),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&s.call(d,t)})},i.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var o=t[0],s=t[1];return C(o[1])&&o[1]===s[1]&&(o[1]=s[1]=Math[i](o[1])-e%2/2),C(o[2])&&o[2]===s[2]&&(o[2]=s[2]=Math[i](o[2])+e%2/2),t},i.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return T(t)?e.d=t:O(t)&&A(e,t),this.createElement("path").attr(e)}
1,i.prototype.circle=function(t,e,i){return t=O(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)},i.prototype.arc=function(t,e,i,o,s,r){return O(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:s,end:r},(t=this.symbol("arc",t,e,i,i,o)).r=i,t},i.prototype.rect=function(t,e,i,o,s,r){s=O(t)?t.r:s;var n=this.createElement("rect");return t=O(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)},this.styledMode||(void 0!==r&&(t["stroke-width"]=r,t=n.crisp(t)),t.fill="none"),s&&(t.r=s),n.rSetter=function(t,e,i){n.r=t,S(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},i.prototype.setSize=function(t,e,i){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:D(i,!0)?void 0:0}),this.alignElements()},i.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},i.prototype.image=function(t,e,i,o,s,r){var n={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};P(e)&&(n.x=e),P(i)&&(n.y=i),P(o)&&(n.width=o),P(s)&&(n.height=s);var h=this.createElement("image").attr(n);return e=function(e){a(h.element,t),r.call(h,e)},r?(a(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i=new y.Image,b(i,"load",e),i.src=t,i.complete&&e({})):a(h.element,t),h},i.prototype.symbol=function(t,e,i,o,s,r){var n,a=this,h=/^url\((.*?)\)$/,l=h.test(t),d=!l&&(this.symbols[t]?t:"circle"),u=d&&this.symbols[d];if(u){"number"==typeof e&&(n=u.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,s||0,r));var f=this.path(n);a.styledMode||f.attr("fill","none"),A(f,{symbolName:d||void 0,x:e,y:i,width:o,height:s}),r&&A(f,r)}else if(l){var g=t.match(h)[1],m=f=this.image(g);m.imgwidth=D(x[g]&&x[g].width,r&&r.width),m.imgheight=D(x[g]&&x[g].height,r&&r.height);var v=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach(function(t){m[t+"Setter"]=function(t,e){this[e]=t,t=this.alignByTranslate;var i=this.element,o=this.width,s=this.height,n=this.imgwidth,a=this.imgheight,h=this["img"+e];if(C(h)){var l=1;r&&"within"===r.backgroundSize&&o&&s?(l=Math.min(o/n,s/a),h=Math.round(h*l),S(i,{width:Math.round(n*l),height:Math.round(a*l)})):i&&i.setAttribute(e,h),t||this.translate(((o||0)-h*l)/2,((s||0)-h*l)/2)}}}),C(e)&&m.attr({x:e,y:i}),m.isImg=!0,C(m.imgwidth)&&C(m.imgheight)?v(m):(m.attr({width:0,height:0}),M("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(k(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),x[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&v(m),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},i.prototype.clipRect=function(t,e,i,o){var s=B()+"-",r=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,o,0).add(r)).id=s,t.clipPath=r,t.count=0,t},i.prototype.text=function(t,e,i,o){var s={};return!o||!this.allowHTML&&this.forExport?(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),C(t)&&(s.text=t),t=this.createElement("text").attr(s),(!o||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,i){for(var o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0;n<s.length;n++)(o=s[n]).getAttribute(e)===r&&o.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},i.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!y.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&s.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?j(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},i.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:o}},i.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},s=0;s<t.length;s++)L(i[0])&&P(t[s])&&i.length===o[i[0].toUpperCase()]&&t.splice(s,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[s]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[s]);return e.push(i.slice(0)),e}
1,i.prototype.label=function(t,e,i,o,s,n,a,h,l){return new r(this,t,e,i,o,s,n,a,h,l)},i.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},i}(),A(i.prototype,{Element:s,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:n,draw:m}),o.registerRendererType("svg",i,!0),i}),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 o=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.isFirefox,r=t.isMS,n=t.isWebKit,a=t.win,h=i.css,l=i.defined,c=i.extend,d=i.pick,p=i.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var i=e.prototype,o=t.prototype;o.getSpanCorrection=i.getSpanCorrection,o.htmlCss=i.htmlCss,o.htmlGetBBox=i.htmlGetBBox,o.htmlUpdateTransform=i.htmlUpdateTransform,o.setSpanRotation=i.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=d(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=c(this.styles,t),h(this.element,t),o&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,n=this.textAlign||"left",a={left:0,center:.5,right:1}[n],c=this.styles;if(c=c&&c.whiteSpace,h(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){h(t,{marginLeft:i+1,marginTop:o+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var d=this.rotation,u=this.textWidth&&p(this.textWidth),f=[d,n,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,u!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else h(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth;(u>this.oldTextWidth||m>u)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(h(e,{width:m>u||d?u+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=u,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!l(d)||d===(this.oldRotation||0)&&n===this.oldAlign||this.setSpanRotation(d,a,g),this.getSpanCorrection(!l(d)&&this.textPxLength||e.offsetWidth,g,a,d,n)),h(e,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=d,this.oldAlign=n}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,i){var o={},l=r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":s?"MozTransform":a.opera?"-o-transform":void 0;l&&(o[l]=o.transform="rotate("+t+"deg)",o[l+(s?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",h(this.element,o))},e.composedClasses=[],e}(e)}),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=o.attr,n=o.createElement,a=o.extend,h=o.pick;return function(i){function o(){return null!==i&&i.apply(this,arguments)||this}
1return s(o,i),o.compose=function(t){return-1===o.composedClasses.indexOf(t)&&(o.composedClasses.push(t),t.prototype.html=o.prototype.html),t},o.prototype.html=function(i,o,s){var l=this.createElement("span"),c=l.element,d=l.renderer,p=d.isSVG,u=function(t,i){["opacity","visibility"].forEach(function(o){t[o+"Setter"]=function(s,r,n){var a=t.div?t.div.style:i;e.prototype[o+"Setter"].call(this,s,r,n),a&&(a[r]=s)}}),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,h(e,"")),this.textStr=e,l.doTransform=!0)},p&&u(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:i,x:Math.round(o),y:Math.round(s)}).css({position:"absolute"}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,p&&(l.add=function(t){var e=d.box.parentNode,i=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach(function(t){function s(e,i){t[i]=e,"translateX"===i?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var h=r(t.element,"class"),c=t.styles||{},d=(o=t.div=t.div||n("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},o||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return i[0].div&&l.on.apply({element:i[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:s,translateYSetter:s}),t.addedSetters||u(t)})}}else o=e;return o.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},o.composedClasses=[],o}(i)}),e(i,"Core/Axis/AxisDefaults.js",[],function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,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,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,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||0,-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||(t={})),t}),e(i,"Core/Foundation.js",[i["Core/Utilities.js"]],function(t){var e,i=t.addEvent,o=t.isFunction,s=t.objectEach,r=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},s(e.events,function(e,s){t.eventOptions[s]!==e&&(t.eventOptions[s]&&(r(t,s,t.eventOptions[s]),delete t.eventOptions[s]),o(e)&&(t.eventOptions[s]=e,i(t,s,e)))})}}(e||(e={})),e}),e(i,"Core/Axis/Tick.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,
1i){var o=e.deg2rad,s=i.clamp,r=i.correctFloat,n=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,d=i.merge,p=i.objectEach,u=i.pick;return e=function(){function e(t,e,i,o,s){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||o||this.addLabel()}return e.prototype.addLabel=function(){var e=this,i=e.axis,o=i.options,s=i.chart,a=i.categories,d=i.logarithmic,p=i.names,f=e.pos,g=u(e.options&&e.options.labels,o.labels),m=i.tickPositions,v=f===m[0],x=f===m[m.length-1],y=(!g.step||1===g.step)&&1===i.tickInterval;m=m.info;var b,S=e.label;if(a=this.parameters.category||(a?u(a[f],p[f],f):f),d&&c(a)&&(a=r(d.lin2log(a))),i.dateTime)if(m)var M=s.time.resolveDTLFormat(o.dateTimeLabelFormats[!o.grid&&m.higherRanks[f]||m.unitName]),k=M.main;else c(a)&&(k=i.dateTime.getXDateFormat(a,o.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=x;var C={axis:i,chart:s,dateTimeLabelFormat:k,isFirst:v,isLast:x,pos:f,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",C);var w=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=i.defaultLabelFormatter.call(e,e),t.format(g.format,e,s)):i.defaultLabelFormatter.call(e,e)};o=w.call(C,C);var A=M&&M.list;e.shortenLabel=A?function(){for(b=0;b<A.length;b++)if(h(C,{dateTimeLabelFormat:A[b]}),S.attr({text:w.call(C,C)}),S.getBBox().width<i.getSlotWidth(e)-2*g.padding)return;S.attr({text:""})}:void 0,y&&i._addedPlotLB&&e.moveLabel(o,g),n(S)||e.movedLabel?S&&S.textStr!==o&&!y&&(!S.textWidth||g.style.width||S.styles.width||S.css({width:null}),S.attr({text:o}),S.textPxLength=S.getBBox().width):(e.label=S=e.createLabel({x:0,y:0},o,g),e.rotation=0)},e.prototype.createLabel=function(t,e,i){var o=this.axis,s=o.chart;return(t=n(e)&&i.enabled?s.renderer.text(e,t.x,t.y,i.useHTML).add(o.labelGroup):null)&&(s.styledMode||t.css(d(i.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,i,o){var n=this.axis,a=n.chart,h=o&&a.oldChartHeight||a.chartHeight;return(t={x:t?r(n.translate(e+i,void 0,void 0,o)+n.transB):n.left+n.offset+(n.opposite?(o&&a.oldChartWidth||a.chartWidth)-n.right-n.left:0),y:t?h-n.bottom+n.offset-(n.opposite?n.height:0):r(h-n.translate(e+i,void 0,void 0,o)-n.transB)}).y=s(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,i,s,r,a,h,c){var d=this.axis,p=d.transA,u=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=s||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),v={};return i=0===d.side?i.rotation?-8:-i.getBBox().height:2===d.side?g.y+8:Math.cos(i.rotation*o)*(g.y-i.getBBox(!1,0).height/2),n(r.y)&&(i=0===d.side&&d.horiz?r.y+i:r.y),t=t+r.x+m+g.x-(a&&s?a*p*(u?-1:1):0),e=e+i-(a&&!s?a*p*(u?1:-1):0),f&&(s=h/(c||1)%f,d.opposite&&(s=f-s-1),e+=d.labelOffset/f*s),v.x=t,v.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:a,index:h}),v},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,i,o,s,r){return r.crispLine([["M",t,e],["L",t+(s?0:-i),e+(s?i:0)]],o)},e.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,s=t.x,r=e.chart.chartWidth,n=e.chart.spacing,a=u(e.labelLeft,Math.min(e.pos,n[3]));n=u(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-n[1]));var h,l=this.label,c=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],p=l.getBBox().width,f=e.getSlotWidth(this),g={},m=f,v=1;c||"justify"!==i.overflow?0>c&&s-d*p<a?h=Math.round(s/Math.cos(c*o)-a):0<c&&s+d*p>n&&(h=Math.round((r-s)/Math.cos(c*o))):(r=s+(1-d)*p,s-d*p<a?m=t.x+m*(1-d)-a:r>n&&(m=n-t.x+m*d,v=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=v*(f-m-d*(f-Math.min(p,m)))),(p>m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),l.css(g)))},e.prototype.moveLabel=function(t,e){var i=this,o=i.label,s=i.axis,r=s.reversed,n=!1;if(o&&o.textStr===t?(i.movedLabel=o,n=!0,delete i.label):p(s.ticks,function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)}),!n&&(i.labelPos||o)){var a=i.labelPos||o.xy;o=s.horiz?r?0:s.width+s.left:a.x,s=s.horiz?a.y:r?s.width+s.left:0,i.movedLabel=i.createLabel({x:o,y:s},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0}
1)}},e.prototype.render=function(t,e,i){var o=this.axis,s=o.horiz,r=this.pos,n=u(this.tickmarkOffset,o.tickmarkOffset);n=(r=this.getPosition(s,r,n,e)).x;var a=r.y;o=s&&n===o.pos+o.len||!s&&a===o.pos?-1:1,s=u(i,this.label&&this.label.newOpacity,1),i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,o),this.renderMark(r,i,o),this.renderLabel(r,e,s,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var o=this.axis,s=o.options,r={},n=this.pos,a=this.type,h=u(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,c=this.gridLine,d=s.gridLineWidth,p=s.gridLineColor,f=s.gridLineDashStyle;"minor"===this.type&&(d=s.minorGridLineWidth,p=s.minorGridLineColor,f=s.minorGridLineDashStyle),c||(o.chart.styledMode||(r.stroke=p,r["stroke-width"]=d||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),c&&(i=o.getPlotLinePath({value:n+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},e.prototype.renderMark=function(t,e,i){var o=this.axis,s=o.options,r=o.chart.renderer,n=this.type,a=o.tickSize(n?n+"Tick":"tick"),h=t.x;t=t.y;var l=u(s["minor"!==n?"tickWidth":"minorTickWidth"],!n&&o.isXAxis?1:0);s=s["minor"!==n?"tickColor":"minorTickColor"];var c=this.mark,d=!c;a&&(o.opposite&&(a[0]=-a[0]),c||(this.mark=c=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||c.attr({stroke:s,"stroke-width":l})),c[d?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],c.strokeWidth()*i,o.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,r=s.horiz,n=s.options,a=this.label,h=n.labels,l=h.step;s=u(this.tickmarkOffset,s.tickmarkOffset);var d=t.x;t=t.y;var p=!0;a&&c(d)&&(a.xy=t=this.getLabelPosition(d,t,a,r,h,s,o,l),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.showLastLabel?p=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),l&&o%l&&(p=!1),p&&c(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var o=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:o,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e}),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a){var h=t.animObject,l=o.defaultOptions,c=s.registerEventOptions,d=r.deg2rad,p=a.arrayMax,u=a.arrayMin,f=a.clamp,g=a.correctFloat,m=a.defined,v=a.destroyObjectProperties,x=a.erase,y=a.error,b=a.extend,S=a.fireEvent,M=a.isArray,k=a.isNumber,C=a.isString,w=a.merge,A=a.normalizeTickInterval,T=a.objectEach,P=a.pick,O=a.relativeLength,L=a.removeEvent,E=a.splat,D=a.syncTimeout,j=function(t,e){return A(e,void 0,void 0,P(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};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.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.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=P(e.opposite,this.opposite),this.side=P(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var o=this.options,s=o.labels,r=o.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=P(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames="category"===r||!0===o.categories,this.categories=o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.min=this.max=null,e=P(o.crosshair,E(t.options.tooltip.crosshairs)[i?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(i?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&i&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=k(s.rotation)?s.rotation:void 0,c(this,o),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=w(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],w(l[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var i=k(this.value)?this.value:NaN,o=e.chart.time,s=this.dateTimeLabelFormat,r=l.lang,n=r.numericSymbol
1s;r=r.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(i):e.tickInterval,h=n&&n.length;if(e.categories)var c="".concat(this.value);else if(s)c=o.dateFormat(s,i);else if(h&&1e3<=a)for(;h--&&void 0===c;)a>=(e=Math.pow(r,h+1))&&0==10*i%e&&null!==n[h]&&0!==i&&(c=t(i/e,-1)+n[h]);return void 0===c&&(c=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;S(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(o){if(o.visible||!i.options.chart.ignoreHiddenSeries){var s=o.options,r=s.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((s=o.xData).length){s=e.logarithmic?s.filter(e.validatePositiveValue):s;var n=(t=o.getXExtremes(s)).min,a=t.max;k(n)||n instanceof Date||(s=s.filter(k),n=(t=o.getXExtremes(s)).min,a=t.max),s.length&&(e.dataMin=Math.min(P(e.dataMin,n),n),e.dataMax=Math.max(P(e.dataMax,a),a))}}else o=o.applyExtremes(),k(o.dataMin)&&(n=o.dataMin,e.dataMin=Math.min(P(e.dataMin,n),n)),k(o.dataMax)&&(a=o.dataMax,e.dataMax=Math.max(P(e.dataMax,a),a)),m(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,s,r){var n=this.linkedParent||this,a=o&&n.old?n.old.min:n.min;if(!k(a))return NaN;var h=n.minPixelPadding;s=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&s)&&n.lin2val;var l=1,c=0;return(o=o&&n.old?n.old.transA:n.transA)||(o=n.transA),i&&(l*=-1,c=n.len),n.reversed&&(c-=(l*=-1)*(n.sector||n.len)),e?(r=(t*l+c-h)/o+a,s&&(r=n.lin2val(r))):(s&&(t=n.val2lin(t)),t=l*(t-a)*o,r=(n.isRadial?t:g(t))+c+l*h+(k(r)?o*r:0)),r},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return"pass"!==y&&(t<e||t>i)&&(y?t=f(t,e,i):n=!0),t}var i,o,s,r,n,a=this,h=a.chart,l=a.left,c=a.top,d=t.old,p=t.value,u=t.lineWidth,g=d&&h.oldChartHeight||h.chartHeight,m=d&&h.oldChartWidth||h.chartWidth,v=a.transB,x=t.translatedValue,y=t.force;return t={value:p,lineWidth:u,old:d,force:y,acrossPanes:t.acrossPanes,translatedValue:x},S(this,"getPlotLinePath",t,function(t){x=P(x,a.translate(p,void 0,void 0,d)),x=f(x,-1e5,1e5),i=s=Math.round(x+v),o=r=Math.round(g-x-v),k(x)?a.horiz?(o=c,r=g-a.bottom,i=s=e(i,l,l+a.width)):(i=l,s=m-a.right,o=r=e(o,c,c+a.height)):(n=!0,y=!1),t.path=n&&!y?null:h.renderer.crispLine([["M",i,o],["L",s,r]],u||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var o=g(Math.floor(e/t)*t);i=g(Math.ceil(i/t)*t);var s,r=[];if(g(o+t)===o&&(s=20),this.single)return[e];for(e=o;e<=i&&(r.push(e),(e=g(e+t,s))!==n);)var n=e;return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?P(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,o=this.pointRangePadding||0,s=this.min-o,r=(o=this.max+o)-s,n=[];if(r&&r/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,o){e&&n.push.apply(n,a.getLogTickPositions(i,o[e-1],o[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),s,o,t.startOfWeek));else for(t=s+(e[0]-s)%i;t<=o&&t!==n[0];t+=i)n.push(t)}return 0!==n.length&&this.trimTicks(n),n},t.prototype.adjustForMinRange=function(){var t,e,i,o,s=this.options,r=this.logarithmic,n=this.min,a=this.max,h=0;if(this.isXAxis&&void 0===this.minRange&&!r&&(m(s.min)||m(s.max)||m(s.floor)||m(s.ceiling)?this.minRange=null:(this.series.forEach(function(s){if(i=s.xData,o=s.xIncrement?1:i.length-1,1<i.length)for(t=o;0<t;t--)e=i[t]-i[t-1],(!h||e<h)&&(h=e)}),this.minRange=Math.min(5*h,this.dataMax-this.dataMin))),a-n<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,d=(c-a+n)/2;d=[n-d,P(s.min,n-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(n=p(d))+c,P(s.max,n+c)],l&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=u(a))-n<c&&(d[0]=a-c,d[1]=P(s.min,a-c),n=p(d))}this.min=n,this.max=a},t.prototype.getClosest=function(){var t;
1return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,o=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(i)&&o&&(t=m(t)?Math.min(t,i):i)}),t},t.prototype.nameToX=function(t){var e=M(this.options.categories),i=e?this.categories:this.names,o=t.options.x;if(t.series.requireSorting=!1,m(o)||(o=this.options.uniqueNames&&i?e?i.indexOf(t.name):P(i.keys[t.name],-1):t.series.autoIncrement()),-1===o){if(!e&&i)var s=i.length}else s=o;return void 0!==s?(this.names[s]=t.name,this.names.keys[t.name]=s):t.x&&(s=t.x),s},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,o){if(i&&i.options&&void 0!==i.name){var s=t.nameToX(i);void 0!==s&&s!==i.x&&(i.x=s,e.xData[o]=s)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.linkedParent,o=!!t.categories,s=t.isXAxis,r=t.axisPointRange||0,n=0,a=0,h=t.transA;if(s||o||r){var l=t.getClosest();i?(n=i.minPointOffset,a=i.pointRangePadding):t.series.forEach(function(e){var i=o?1:s?P(e.options.pointRange,l,0):t.axisPointRange||0,h=e.options.pointPlacement;r=Math.max(r,i),t.single&&!o||(e=e.is("xrange")?!s:s,n=Math.max(n,e&&C(h)?0:i/2),a=Math.max(a,e&&"on"===h?0:i))}),i=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=n*=i,t.pointRangePadding=a*=i,t.pointRange=Math.min(r,t.single&&o?1:e),s&&(t.closestPointRange=l)}t.translationSlope=t.transA=h=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=h*n,S(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,i=this.logarithmic,o=this.options,s=this.isXAxis,r=this.isLinked,n=o.tickPixelInterval,a=this.categories,h=this.softThreshold,l=o.maxPadding,c=o.minPadding,d=k(o.tickInterval)&&0<=o.tickInterval?o.tickInterval:void 0,p=k(this.threshold)?this.threshold:null;this.dateTime||a||r||this.getTickAmount();var u=P(this.userMin,o.min),f=P(this.userMax,o.max);if(r){this.linkedParent=e[this.coll][o.linkedTo];var v=this.linkedParent.getExtremes();this.min=P(v.min,v.dataMin),this.max=P(v.max,v.dataMax),o.type!==this.linkedParent.options.type&&y(11,1,e)}else{if(h&&m(p))if(this.dataMin>=p)v=p,c=0;else if(this.dataMax<=p){var x=p;l=0}this.min=P(u,v,this.dataMin),this.max=P(f,x,this.dataMax)}if(i&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,P(this.dataMin,this.min))&&y(10,1,e),this.min=g(i.log2lin(this.min),16),this.max=g(i.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||r)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(u)&&c&&(this.min-=e*c),!m(f)&&l&&(this.max+=e*l)),k(this.userMin)||(k(o.softMin)&&o.softMin<this.min&&(this.min=u=o.softMin),k(o.floor)&&(this.min=Math.max(this.min,o.floor))),k(this.userMax)||(k(o.softMax)&&o.softMax>this.max&&(this.max=f=o.softMax),k(o.ceiling)&&(this.max=Math.min(this.max,o.ceiling))),h&&m(this.dataMin)&&(p=p||0,!m(u)&&this.min<p&&this.dataMin>=p?this.min=this.options.minRange?Math.min(p,this.max-this.minRange):p:!m(f)&&this.max>p&&this.dataMax<=p&&(this.max=this.options.minRange?Math.max(p,this.min+this.minRange):p)),k(this.min)&&k(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:r&&this.linkedParent&&!d&&n===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:P(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*n/Math.max(this.len,n)),s&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);
1this.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)}),S(this,"postProcessData",{hasExtremesChanged:b})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=P(o.minTickInterval,this.dateTime&&!this.series.some(function(t){return t.noSharedTooltip})?this.closestPointRange:0),!d&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||d||(this.tickInterval=j(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e=this.options,i=e.tickPositions,o=e.tickPositioner,s=this.getMinorTickInterval(),r=this.hasVerticalPanning(),n="colorAxis"===this.coll,a=(n||!r)&&e.startOnTick;if(r=(n||!r)&&e.endOnTick,n=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/5:s,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),i)n=i.slice();else if(k(this.min)&&k(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(s=e=this.tickInterval;s<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=j(this,s*=1.1);else n=[this.min,this.max],y(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),o&&(this.tickPositions=n,(t=o.apply(this,[this.min,this.max]))&&(n=t))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,a,r),!this.isLinked&&k(this.min)&&k(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],s=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-r>t[0];)t.shift();if(i)this.max=s;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&m(o)&&!this.options.tickPositions&&t.push((s+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=[this],o=e.options,s="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,r=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&o.alignTicks||s)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!e.logarithmic){var n=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=n(this);this.chart[this.coll].forEach(function(o){var s=o.series;s.length&&s.some(function(t){return t.visible})&&o!==e&&n(o)===a&&(t=!0,i.push(o))})}if(t&&s){i.forEach(function(t){t=t.getThresholdAlignment(e),k(t)&&r.push(t)});var h=1<r.length?r.reduce(function(t,e){return t+e},0)/r.length:void 0;i.forEach(function(t){t.thresholdAlignment=h})}return t},t.prototype.getThresholdAlignment=function(t){if((!k(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),k(this.threshold))return t=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;!m(t.tickInterval)&&!i&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),4>i&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,i=t.max,o=t.min,s=t.options,r=t.tickPositions,n=t.t
1ickAmount,a=t.thresholdAlignment,h=r&&r.length,l=P(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(k(a)){var d=.5>a?Math.ceil(a*(n-1)):Math.floor(a*(n-1));s.reversed&&(d=n-1-d)}if(t.hasData()&&k(o)&&k(i)){if(a=function(){t.transA*=(h-1)/(n-1),t.min=s.startOnTick?r[0]:Math.min(o,r[0]),t.max=s.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])},k(d)&&k(t.threshold)){for(;r[d]!==l||r.length!==n||r[0]>o||r[r.length-1]<i;){for(r.length=0,r.push(t.threshold);r.length<n;)void 0===r[d]||r[d]>t.threshold?r.unshift(g(r[0]-c)):r.push(g(r[r.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(h<n){for(;r.length<n;)r.length%2||o===l?r.push(g(r[r.length-1]+c)):r.unshift(g(r[0]-c));a()}if(m(e)){for(c=l=r.length;c--;)(3===e&&1==c%2||2>=e&&0<c&&c<l-1)&&r.splice(c,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach(function(i){t=t||i.isDirtyData||i.isDirty,e=e||i.xAxis&&i.xAxis.isDirty||!1}),this.setAxisSize();var i=this.len!==(this.old&&this.old.len);i||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=i||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),S(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,s){var r=this,n=r.chart;i=P(i,!0),r.series.forEach(function(t){delete t.kdTree}),s=b(s,{min:t,max:e}),S(r,"setExtremes",s,function(){r.userMin=t,r.userMax=e,r.eventArgs=s,i&&n.redraw(o)})},t.prototype.zoom=function(t,e){var i=this,o=this.dataMin,s=this.dataMax,r=this.options,n=Math.min(o,P(r.min,o)),a=Math.max(s,P(r.max,s));return S(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,r=t.newMax;e===i.min&&r===i.max||(i.allowZoomOutside||(m(o)&&(e<n&&(e=n),e>a&&(e=a)),m(s)&&(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],o=this.horiz,s=this.width=Math.round(O(P(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(O(P(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(O(P(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(O(P(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-s-e,this.len=Math.max(o?s:r,0),this.pos=o?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(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=(P(t,0)-90*this.side+720)%360;return S(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=P(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=e["tick"===t?"tickLength":"minorTickLength"];if(i&&o){"inside"===e[t+"Position"]&&(o=-o);var s=[o,i]}return S(this,"afterTickSize",t={tickSize:s}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t=this.options.labels,e=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=t.rotation,r=this.labelMetrics(),n=Math.max(this.max-this.min,0),a=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*i>n&&1/0!==t&&1/0!==o&&n&&(e=Math.ceil(n/i)),g(e*i)},h=i,l=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(k(s))var c=[s];else o<t.autoRotationLimit&&(c=t.autoRotation);if(c)for(var p=e=void 0,u=0,f=c;u<f.length;u++){var m=f[u];if((m===s||m&&-90<=m&&90>=m)&&(p=(e=a(Math.abs(r.h/Math.sin(d*m))))+Math.abs(m/360))<l){l=p;var v=m;h=e}}}else h=a(r.h);return this.autoRotation=c,this.labelRotation=P(v,k(s)?s:0),t.step?i:h},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,s=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&k(t.slotWidth))return t.slotWidth;if(i&&2>o.step)return o.rotation?0:(this.staggerLines||1)*this.len/s;if(!i){if(void 0!==(t=o.style.width))return parseInt(String(t),10);if(r)return r-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,o=this.ticks,s=this.options.labels,r=s.style,n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*s.padding)),l={},c=this.labelMetrics(),d=r.textOverflow,p=0;
1if(C(s.rotation)||(l.rotation=s.rotation||0),i.forEach(function(t){(t=o[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=o[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=s.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach(function(t){var e=(t=o[t])&&t.label,i=r.width,s={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(s.width=u+"px",d||(s.textOverflow=e.specificTextOverflow||f),e.css(s)):e.styles&&e.styles.width&&!s.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&&m(this.min)&&m(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,s=this.opposite,r=this.options.title,n=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation,align:e}).addClass("highcharts-axis-title"),n||this.axisTitle.css(w(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 n(this,t)},t.prototype.getOffset=function(){var t=this,e=this,i=e.chart,o=e.horiz,s=e.options,r=e.side,n=e.ticks,a=e.tickPositions,h=e.coll,l=e.axisParent,c=i.renderer,d=i.inverted&&!e.isZAxis?[1,0,3,2][r]:r,p=e.hasData(),u=s.title,f=s.labels,g=i.axisOffset;i=i.clipOffset;var v,x=[-1,1,1,-1][r],y=s.className,b=0,M=0,k=0;if(e.showAxis=v=p||s.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var C=function(e,i,o){return c.g(e).attr({zIndex:o}).addClass("highcharts-".concat(h.toLowerCase()).concat(i," ")+(t.isRadial?"highcharts-radial-axis".concat(i," "):"")+(y||"")).add(l)};e.gridGroup=C("grid","-grid",s.gridZIndex),e.axisGroup=C("axis","",s.zIndex),e.labelGroup=C("axis-labels","-labels",f.zIndex)}if(p||e.isLinked?(a.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=0===r||2===r||{1:"left",3:"right"}[r]===e.labelAlign,P(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach(function(t){k=Math.max(n[t].getLabelSize(),k)}),e.staggerLines&&(k*=e.staggerLines),e.labelOffset=k*(e.opposite?-1:1)):T(n,function(t,e){t.destroy(),delete n[e]}),u&&u.text&&!1!==u.enabled&&(e.addTitle(v),v&&!1!==u.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[o?"height":"width"];var w=u.offset;M=m(w)?0:P(u.margin,o?5:10)}e.renderLine(),e.offset=x*P(s.offset,g[r]?g[r]+(s.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},u=0===r?-e.labelMetrics().h:2===r?e.tickRotCorr.y:0,p=Math.abs(k)+M,k&&(p=p-u+x*(o?P(f.y,e.tickRotCorr.y+8*x):f.x)),e.axisTitleMargin=P(w,p),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(n,a)),"colorAxis"!==h&&(o=this.tickSize("tick"),g[r]=Math.max(g[r],(e.axisTitleMargin||0)+b+x*e.offset,p,a&&a.length&&o?o[0]+x*e.offset:0),s=!e.axisLine||s.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[d]=Math.max(i[d],s)),S(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,s=this.horiz,r=this.left+(i?this.width:0)+o;return o=e.chartHeight-this.bottom-(i?this.height:0)+o,i&&(t*=-1),e.renderer.crispLine([["M",s?this.left:r,s?o:this.top],["L",s?e.chartWidth-this.right:r,s?o: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,o=this.len,s=this.options.title,r=t?e:i,n=this.opposite,a=this.offset,h=s.x,l=s.y,c=this.axisTitle,d=this.chart.renderer.fontMetrics(s.style.fontSize,c);return c=c?Math.max(c.getBBox(!1,0).height-d.h-1,0):0,o={low:r+(t?0:o),middle:r
1+o/2,high:r+(t?o:0)}[s.align],e=(t?i+this.height:e)+(t?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-c,c,d.f,-c][this.side],t={x:t?o+h:e+(n?this.width:0)+a+h,y:t?e+l-(n?this.height:0)+a:o+l},S(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new n(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(o[t]||(o[t]=new n(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,s=i.logarithmic,a=i.options,l=i.isLinked,c=i.tickPositions,d=i.axisTitle,p=i.ticks,u=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,v=i.tickmarkOffset,x=i.axisLine,y=i.showAxis,b=h(o.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[p,u,f].forEach(function(t){T(t,function(t){t.isActive=!1})}),i.hasData()||l){var M=i.chart.hasRendered&&i.old&&k(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,M)}),c.length&&(c.forEach(function(t,e){i.renderTick(t,e,M)}),v&&(0===i.min||i.single)&&(p[-1]||(p[-1]=new n(i,-1,null,!0)),p[-1].render(-1))),m&&c.forEach(function(n,a){e=void 0!==c[a+1]?c[a+1]+v:i.max-v,0==a%2&&n<i.max&&e<=i.max+(o.polar?-v:v)&&(f[n]||(f[n]=new r.PlotLineOrBand(i)),t=n+v,f[n].options={from:s?s.lin2log(t):t,to:s?s.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[n].render(),f[n].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[p,u,f].forEach(function(t){var e=[],i=b.duration;T(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),D(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==f&&o.hasRendered&&i?i:0)}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[y?"show":"hide"](y)),d&&y&&(a=i.getTitlePosition(),d[d.isNew?"attr":"animate"](a),d.isNew=!1),g&&g.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,S(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=this,i=e.plotLinesAndBands,o=this.eventOptions;if(S(this,"destroy",{keepEvents:t}),t||L(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){v(t)}),i)for(t=i.length;t--;)i[t].destroy();for(var s in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[s]=e.plotLinesAndBandsGroups[s].destroy();T(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var o,s=this.crosshair,r=P(s&&s.snap,!0),n=this.chart,a=this.cross;if(S(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),s&&!1!==(m(e)||!r)){if(r?m(e)&&(o=P("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(o)){var h={value:e&&(this.isXAxis?e.x:P(e.stackY,e.y)),translatedValue:o};n.polar&&b(h,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),h=this.getPlotLinePath(h)||null}if(!m(h))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=n.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(s.className||"")).attr({zIndex:P(s.zIndex,2)}).add(),n.styledMode||(a.attr({stroke:s.color||(r?i.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":P(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&a.attr({dashstyle:s.dashStyle}))),a.show().attr({d:h}),r&&!s.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();S(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),S(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return k(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart;t=w(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,P(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,s=o.length;s--;)o[s]&&o[s].remove(!1);
1x(e.axes,this),x(e[i],this),e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,P(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),t}),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Utilities.js"]],function(t){var e,i=t.addEvent,o=t.getMagnitude,s=t.normalizeTickInterval,r=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,i(t,"init",n)),t};var h=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=s(t/a,h,"year"===e[0]?Math.max(o(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=h}(e||(e={})),e}),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Utilities.js"]],function(t){var e,i=t.addEvent,o=t.normalizeTickInterval,s=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new a(this))}function r(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var n=[];t.compose=function(t){return-1===n.indexOf(t)&&(n.push(t),t.keepProps.push("logarithmic"),i(t,"init",e),i(t,"afterInit",r)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,r){var n=this.axis,a=n.len,h=n.options,l=[];if(r||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),l=n.getLinearTickPositions(t,e,i);else if(.08<=t){var c,d=Math.floor(e),p=h=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<i+1&&!p;d++){var u=a.length;for(c=0;c<u&&!p;c++){var f=this.log2lin(this.lin2log(d)*a[c]);f>e&&(!r||h<=i)&&void 0!==h&&l.push(h),h>i&&(p=!0),h=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?n.getMinorTickInterval():h.tickInterval,t=s("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(r?5:1)*(i-e)/((r?a/n.tickPositions.length:a)||1)),t=o(t),l=n.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(n.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e}),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],function(t){var e,i=t.erase,o=t.extend,s=t.isNumber;return function(t){var e,r=[];t.compose=function(t,i){return e||(e=t),-1===r.indexOf(i)&&(r.push(i),o(i.prototype,n.prototype)),i};var n=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),r=[],n=this.horiz;if(e=!s(this.min)||!s(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),i=1,t&&o){if(e){var a=t.toString()===o.toString();i=0}for(e=0;e<t.length;e+=2){var h=t[e],l=t[e+1],c=o[e],d=o[e+1];"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==d[0]&&"L"!==d[0]||(n&&c[1]===h[1]?(c[1]+=i,d[1]+=i):n||c[2]!==h[2]||(c[2]+=i,d[2]+=i),r.push(["M",h[1],h[2]],["L",l[1],l[2]],["L",d[1],d[2]],["L",c[1],c[2]],["Z"])),r.isFlat=a}}return r},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,i){var o=this,s=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEac
1h(function(t){o.addPlotBandOrLine(t)})),i){var n=s[i]||[];n.push(t),s[i]=n}this.plotLinesAndBands.push(r)}return r},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,o=this.options,s=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[o.plotLines||[],s.plotLines||[],o.plotBands||[],s.plotBands||[]].forEach(function(e){for(r=e.length;r--;)(e[r]||{}).id===t&&i(e,e[r])})}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e}),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[i["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],i["Core/Utilities.js"]],function(t,e){var i=e.arrayMax,o=e.arrayMin,s=e.defined,r=e.destroyObjectProperties,n=e.erase,a=e.fireEvent,h=e.merge,l=e.objectEach,c=e.pick;return function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(i){return t.compose(e,i)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,i=e.horiz,o=e.logarithmic,r=t.options,n=r.color,d=c(r.zIndex,0),p=r.events,u={},f=e.chart.renderer,g=r.label,m=t.label,v=r.to,x=r.from,y=r.value,b=t.svgElem,S=[],M=s(x)&&s(v);S=s(y);var k=!b,C={class:"highcharts-plot-"+(M?"band ":"line ")+(r.className||"")},w=M?"bands":"lines";if(o&&(x=o.log2lin(x),v=o.log2lin(v),y=o.log2lin(y)),e.chart.styledMode||(S?(C.stroke=n||"#999999",C["stroke-width"]=c(r.width,1),r.dashStyle&&(C.dashstyle=r.dashStyle)):M&&(C.fill=n||"#e6ebf5",r.borderWidth&&(C.stroke=r.borderColor,C["stroke-width"]=r.borderWidth))),u.zIndex=d,w+="-"+d,(o=e.plotLinesAndBandsGroups[w])||(e.plotLinesAndBandsGroups[w]=o=f.g("plot-"+w).attr(u).add()),k&&(t.svgElem=b=f.path().attr(C).add(o)),S)S=e.getPlotLinePath({value:y,lineWidth:b.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!M)return;S=e.getPlotBandPath(x,v,r)}return!t.eventsAdded&&p&&(l(p,function(e,i){b.on(i,function(e){p[i].apply(t,[e])})}),t.eventsAdded=!0),(k||!b.d)&&S&&S.length?b.attr({d:S}):b&&(S?(b.show(),b.animate({d:S})):b.d&&(b.hide(),m&&(t.label=m=m.destroy()))),g&&(s(g.text)||s(g.formatter))&&S&&S.length&&0<e.width&&0<e.height&&!S.isFlat?(g=h({align:i&&M&&"center",x:i?!M&&4:10,verticalAlign:!i&&M&&"middle",y:i?M?16:10:M?6:-4,rotation:i&&!M&&90},g),this.renderLabel(g,S,M,d)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,s,r){var n=this.axis,a=n.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(s?"band":"line")+"-label "+(t.className||""),zIndex:r}).add(),n.chart.styledMode||l.css(h({textOverflow:"ellipsis"},t.style))),r=e.xBounds||[e[0][1],e[1][1],s?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],s?e[2][2]:e[0][2]],s=o(r),a=o(e),l.align(t,!1,{x:s,y:a,width:i(r)-s,height:i(e)-a}),l.alignValue&&"left"!==l.alignValue||(t=t.clip?n.width:n.chart.chartWidth,l.css({width:(90===l.rotation?n.height-(l.alignAttr.y-n.top):t-(l.alignAttr.x-n.left))+"px"})),l.show(!0)},e.prototype.getLabelText=function(t){return s(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){n(this.axis.plotLinesAndBands,this),delete this.axis,r(this)},e}()}),e(i,"Core/Tooltip.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r=t.format,n=e.doc,a=i.distribute,h=s.clamp,l=s.css,c=s.discardElement,d=s.extend,p=s.fireEvent,u=s.isArray,f=s.isNumber,g=s.isString,m=s.merge,v=s.pick,x=s.splat,y=s.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,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 t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.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"]||"")})}
1,t.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)})},t.prototype.defaultFormatter=function(t){var e=this.points||x(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),c(this.container)),s.clearTimeout(this.hideTimer),s.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var i=this.chart,o=i.pointer,s=i.inverted,r=i.plotTop;if(i=i.plotLeft,(t=x(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=o.normalize(e)),t=[e.chartX-i,e.chartY-r];else if(t[0].tooltipPos)t=t[0].tooltipPos;else{var n=0,a=0;t.forEach(function(t){(t=t.pos(!0))&&(n+=t[0],a+=t[1])}),n/=t.length,a/=t.length,this.shared&&1<t.length&&e&&(s?n=e.chartX:a=e.chartY),t=[n-i,a-r]}return t.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=t.series,s=o.options;return[this.options.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+v(t.colorIndex,o.colorIndex),s&&s.className].filter(g).join(" ")},t.prototype.getLabel=function(){var t,i=this,s=this.chart.styledMode,r=this.options,n=this.split&&this.allowShared,a=r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),h=this.chart.renderer;if(i.label){var c=!i.label.hasClass("highcharts-label");(n&&!c||!n&&c)&&i.destroy()}if(!this.label){if(this.outside){c=this.chart.options.chart.style;var d=o.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",l(t,{position:"absolute",top:"1px",pointerEvents:a,zIndex:Math.max(this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),e.doc.body.appendChild(t),this.renderer=h=new d(t,0,0,c,void 0,void 0,h.styledMode)}if(n?this.label=h.g("tooltip"):(this.label=h.label("",0,0,r.shape,void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),s||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:a}).shadow(r.shadow)),s&&r.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),i.outside&&!i.split){var p=this.label,u=p.xSetter,f=p.ySetter;p.xSetter=function(e){u.call(p,i.distance),t.style.left=e+"px"},p.ySetter=function(e){f.call(p,i.distance),t.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,i){var o,s=this.chart,r=this.distance,a={},h=s.inverted&&i.h||0,l=this.outside,c=l?n.documentElement.clientWidth-2*r:s.chartWidth,d=l?Math.max(n.body.scrollHeight,n.documentElement.scrollHeight,n.body.offsetHeight,n.documentElement.offsetHeight,n.documentElement.clientHeight):s.chartHeight,p=s.pointer.getChartPosition(),u=function(o){var n="x"===o;return[o,n?c:d,n?t:e].concat(l?[n?t*p.scaleX:e*p.scaleY,n?p.left-r+(i.plotX+s.plotLeft)*p.scaleX:p.top-r+(i.plotY+s.plotTop)*p.scaleY,0,n?c:d]:[n?t:e,n?i.plotX+s.plotLeft:i.plotY+s.plotTop,n?s.plotLeft:s.plotTop,n?s.plotLeft+s.plotWidth:s.plotTop+s.plotHeight])},f=u("y"),g=u("x");u=!!i.negative,!s.polar&&s.hoverSeries&&s.hoverSeries.yAxis&&s.hoverSeries.yAxis.reversed&&(u=!u);var m=!this.followPointer&&v(i.ttBelow,!s.inverted===u),x=function(t,e,i,o,s,n,c){var d=l?"y"===t?r*p.scaleY:r*p.scaleX:r,u=(i-o)/2,f=o<s-r,g=s+r+o<e,v=s-d-i+u;if(s=s+d-u,m&&g)a[t]=s;else if(!m&&f)a[t]=v;else if(f)a[t]=Math.min(c-o,0>v-h?v:v-h);else{if(!g)return!1;a[t]=Math.max(n,s+h+i>e?s:s+h)}},y=function(t,e,i,o,s){var n;return s<r||s>e-r?n=!1:a[t]=s<i/2?1:s>e-o/2?e-o-2:s-i/2,n},b=function(t){var e=f;f=g,g=e,o=t},S=function(){!1!==x.apply(0,f)?!1!==y.apply(0,g)||o||(b(!0),S()):o?a.x=a.y=0:(b(!0),S())};return(s.inverted||1<this.len)&&b(),S(),a},t.prototype.hide=function(t){var e=this;s.clearTimeout(this.hideTimer),t=v(t,this.options.hideDelay),this.isHidden||(this.hideTimer=y(function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0},t))},t.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=v(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,"highcharts-tooltip"))}
1,t.prototype.move=function(t,e,i,o){var r=this,n=r.now,a=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-n.x)||1<Math.abs(e-n.y)),h=r.followPointer||1<r.len;d(n,{x:a?(2*n.x+t)/3:t,y:a?(n.y+e)/2:e,anchorX:h?void 0:a?(2*n.anchorX+i)/3:i,anchorY:h?void 0:a?(n.anchorY+o)/2:o}),r.getLabel().attr(n),r.drawTracker(),a&&(s.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(t,e,i,o)},32))},t.prototype.refresh=function(t,e){var i=this.chart,o=this.options,r=i.pointer,n=x(t),a=n[0],h=[],l=o.formatter||this.defaultFormatter,c=this.shared,d=i.styledMode,f={};if(o.enabled&&a.series){s.clearTimeout(this.hideTimer),this.allowShared=!(!u(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var g=(t=this.getAnchor(t,e))[0],m=t[1];if(c&&this.allowShared?(r.applyInactiveState(n),n.forEach(function(t){t.setState("hover"),h.push(t.getLabelConfig())}),(f={x:a.category,y:a.y}).points=h):f=a.getLabelConfig(),this.len=h.length,l=l.call(f,this),c=a.series,this.distance=v(c.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,n);else{var y=g,b=m;if(e&&r.isDirectTouch&&(y=e.chartX-i.plotLeft,b=e.chartY-i.plotTop),!i.polar&&!1!==c.options.clip&&!n.some(function(t){return r.isDirectTouch||t.series.shouldShowTooltip(y,b)}))return void this.hide();e=this.getLabel(),o.style.width&&!d||e.css({width:i.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.addClass(this.getClassName(a),!0),d||e.attr({stroke:o.borderColor||a.color||c.color||"#666666"}),this.updatePosition({plotX:g,plotY:m,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}p(this,"refresh")}},t.prototype.renderSplit=function(t,e){function i(t,e,i,s,r){return void 0===r&&(r=!0),i?(e=O?0:j,t=h(t-s/2,A.left,A.right-s-(o.outside?L:0))):(e-=E,t=h(t=r?t-s-k:t+k,r?t:A.left,A.right)),{x:t,y:e}}var o=this,s=o.chart,r=o.chart,l=r.chartWidth,c=r.chartHeight,p=r.plotHeight,u=r.plotLeft,f=r.plotTop,m=r.pointer,x=r.scrollablePixelsY;x=void 0===x?0:x;var y=r.scrollablePixelsX,b=r.scrollingContainer,S=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var M=r.styledMode,k=o.distance,C=o.options,w=o.options.positioner,A=o.outside&&"number"!=typeof y?n.documentElement.getBoundingClientRect():{left:S,right:S+l,top:b,bottom:b+c},T=o.getLabel(),P=this.renderer||s.renderer,O=!(!s.xAxis[0]||!s.xAxis[0].opposite),L=(s=m.getChartPosition()).left;s=s.top;var E=f+b,D=0,j=p-x;g(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce(function(t,s,r){if(!1!==s&&""!==s){var n=(r=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:p,series:{}}).isHeader,a=n?o:r.series;s=s.toString();var l=a.tt,c=r.isHeader,d=r.series;l||(l={padding:C.padding,r:C.borderRadius},M||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=P.label("",0,0,C[c?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass(o.getClassName(r,!0,c)).attr(l).add(T)),l.isActive=!0,l.attr({text:s}),M||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||r.color||d.color||"#333333"}),s=(c=(a=a.tt=l).getBBox()).width+a.strokeWidth(),n&&(D=c.height,j+=D,O&&(E-=D)),d=void 0===(d=r.plotX)?0:d,l=void 0===(l=r.plotY)?0:l;var g=r.series;if(r.isHeader){d=u+d;var m=f+p/2}else{var x=g.xAxis,y=g.yAxis;d=x.pos+h(d,-k,x.len+k),g.shouldShowTooltip(0,y.pos-f+l,{ignoreX:!0})&&(m=y.pos+l)}d=h(d,A.left-k,A.right+k),"number"==typeof m?(c=c.height+1,l=w?w.call(o,s,c,r):i(d,m,n,s),t.push({align:w?0:void 0,anchorX:d,anchorY:m,boxWidth:s,point:r,rank:v(l.rank,n?1:0),size:c,target:l.y,tt:a,x:l.x})):a.isActive=!1}return t},[]),!w&&t.some(function(t){var e=(o.outside?L:0)+t.anchorX;return e<A.left&&e+t.boxWidth<A.right||e<L-A.left+t.boxWidth&&A.right-e>e})&&(t=t.map(function(t){var e=i(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return d(t,{target:e.y,x:e.x})})),o.cleanSplit(),a(t,j);var B=L,I=L;t.forEach(function(t){var e=t.x,i=t.boxWidth;(t=t.isHeader)||(o.outside&&L+e<B&&(B=L+e),!t&&o.outside&&B+i>I&&(I=L+e))}),t.forEach(function(t){var e=t.x,i=t.anchorX,s=t.pos,r=t.point.isHeader;if(s={visibility:void 0===s?"hidden":"inherit",x:e,y:(s||0)+E,anch
1orX:i,anchorY:t.anchorY},o.outside&&e<i){var n=L-B;0<n&&(r||(s.x=e+n,s.anchorX=i+n),r&&(s.x=(I-B)/2,s.anchorX=i+n))}t.tt.attr(s)}),t=o.container,x=o.renderer,o.outside&&t&&x&&(r=T.getBBox(),x.setSize(r.width+r.x,r.height+r.y,!1),t.style.left=B+"px",t.style.top=s+"px")},t.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var s=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=0>i[0]?Math.max(Math.abs(i[0]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),o.height=0>i[1]?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},t.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} {series.options.className} {point.options.className}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,s=i.xAxis,n=s&&s.dateTime;s={isFooter:e,labelConfig:t};var a=o.xDateFormat,h=o[e?"footerFormat":"headerFormat"];return p(this,"headerFormatter",s,function(e){n&&!a&&f(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
1h(function(t){h=h.replace("{point."+t+"}","{point."+t+":"+a+"}")}),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=r(h,{point:t,series:i},this.chart)}),s.text},t.prototype.update=function(t){this.destroy(),m(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,m(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=this.distance,o=this.options,s=e.pointer,r=this.getLabel(),n=s.getChartPosition();s=n.left;var a=n.top,h=n.scaleX;n=n.scaleY;var c=(o.positioner||this.getPosition).call(this,r.width,r.height,t),d=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(o.positioner&&(c.x+=s-i,c.y+=a-i),i=o.borderWidth+2*i,this.renderer.setSize(r.width+i,r.height+i,!1),1===h&&1===n||(l(this.container,{transform:"scale(".concat(h,", ").concat(n,")")}),d*=h,t*=n),d+=s-c.x,t+=a-c.y),this.move(Math.round(c.x),Math.round(c.y||0),d,t)},t}(),t}),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r=e.animObject,n=i.defaultOptions,a=o.format,h=s.addEvent,l=s.defined,c=s.erase,d=s.extend,p=s.fireEvent,u=s.getNestedProperty,f=s.isArray,g=s.isFunction,m=s.isNumber,v=s.isObject,x=s.merge,y=s.objectEach,b=s.pick,S=s.syncTimeout,M=s.removeEvent,k=s.uniqueKey;return e=function(){function e(){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.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},e.prototype.applyOptions=function(t,i){var o=this.series,s=o.options.pointValKey||o.pointValKey;return t=e.prototype.optionsToObject.call(this,t),d(this,t),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=e.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=void 0===i?o.autoIncrement():i:m(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(s in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(M(e),e.destroyElements()),e)e[s]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var s,n=o.hoverPoints,a=r(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),n&&(e.setState(),c(n,e),n.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),S(t,a.duration)):t(),o.pointCount--},e.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&&t.element&&t.destroy()}),delete e[t]})},e.prototype.firePointEvent=function(t,e,i){var o=this,s=this.series.options;(s.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),p(o,t,e,i)},e.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",""):"")},e.prototype.getGraphicalProps=function(t){var e,i=this,o=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}
1).graphic&&o.push("graphic","shadowGroup"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=o.length;e--;){var r=o[e];i[r]&&s.singular.push(r)}return["graphic","dataLabel","connector"].forEach(function(e){var o=e+"s";t[e]&&i[o]&&s.plural.push(o)}),s},e.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}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?u(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,o=0;for(i=e[o];this[t]>=i.value;)i=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=l(this.id)?this.id:k(),this.resolveColor(),t.chart.pointCount++,p(this,"afterInit"),this},e.prototype.isValid=function(){return null!==this.x&&m(this.y)},e.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,s=o||i.pointArrayMap||["y"],r=s.length,n={},a=0,h=0;if(m(t)||null===t)n[s[0]]=t;else if(f(t))for(!o&&t.length>r&&("string"==(i=typeof t[0])?n.name=t[0]:"number"===i&&(n.x=t[0]),a++);h<r;)o&&void 0===t[a]||(0<s[h].indexOf(".")?e.prototype.setNestedProperty(n,t[a],s[h]):n[s[h]]=t[a]),a++,h++;else"object"==typeof t&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},e.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var i=this.plotX,o=this.series,s=o.chart,r=o.xAxis;o=o.yAxis;var n=0,a=0;if(m(i)&&m(e))return t&&(n=r?r.pos:s.plotLeft,a=o?o.pos:s.plotTop),s.inverted&&r&&o?[o.len-e+a,r.len-i+n]:[i+n,e+a]},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var o=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else e||(o=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,o)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,s){return t[i]=s.length-1===o?e:v(t[i],!0)?t[i]:{},t[i]},t),t},e.prototype.shouldDraw=function(){return!this.isNull},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,o=b(i.valueDecimals,""),s=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
1h(function(e){e="{point."+e,(s||r)&&(t=t.replace(RegExp(e+"}","g"),s+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")}),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,i,o){function s(){n.applyOptions(t);var o=h&&n.hasMockGraphic;o=null===n.y?!o:o,h&&o&&(n.graphic=h.destroy(),delete n.hasMockGraphic),v(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]=v(c.data[r],!0)||v(t,!0)?n.options:b(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=b(e,!0),!1===o?s():n.firePointEvent("update",{options:t},s)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var i=this,o=i.series,s=o.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||s.getSelectedPoints().forEac
1h(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(s.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},e.prototype.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)},e.prototype.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},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=x(t.series.options.point,t.options).events;t.events=e,y(e,function(e,i){g(e)&&h(t,i,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var o,s=this.series,r=this.state,a=s.options.states[e||"normal"]||{},h=n.plotOptions[s.type].marker&&s.options.marker,l=h&&!1===h.enabled,c=h&&h.states&&h.states[e||"normal"]||{},u=!1===c.enabled,f=this.marker||{},g=s.chart,v=h&&s.markerAttribs,x=s.halo,y=s.stateMarkerGraphic;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===a.enabled||e&&(u||l&&!1===c.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,v&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){r=s.pointAttribs(this,e);var S=b(g.options.chart.animation,a.animation),M=r.opacity;s.options.inactiveOtherPoints&&m(M)&&((this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&t.animate({opacity:M},S)}),this.connector&&this.connector.animate({opacity:M},S)),this.graphic.animate(r,S)}o&&this.graphic.animate(o,b(g.options.chart.animation,c.animation,h.animation)),y&&y.hide()}else e&&c&&(h=f.symbol||s.symbol,y&&y.currentSymbol!==h&&(y=y.destroy()),o&&(y?y[i?"animate":"attr"]({x:o.x,y:o.y}):h&&(s.stateMarkerGraphic=y=g.renderer.symbol(h,o.x,o.y,o.width,o.height).add(s.markerGroup),y.currentSymbol=h)),!g.styledMode&&y&&"inactive"!==this.state&&y.attr(s.pointAttribs(this,e))),y&&(y[e&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0));a=a.halo,o=(y=this.graphic||y)&&y.visibility||"inherit",a&&a.size&&y&&"hidden"!==o&&!this.isCluster?(x||(s.halo=x=g.renderer.path().add(y.parentGroup)),x.show()[i?"animate":"attr"]({d:this.haloPath(a.size)}),x.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),x.point=this,g.styledMode||x.attr(d({fill:this.color||s.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)},null,x.hide),p(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]},e}(),e}),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,o){var s=t.parse,r=e.charts,n=e.noop,a=o.addEvent,h=o.attr,l=o.css,c=o.defined,d=o.extend,p=o.find,u=o.fireEvent,f=o.isNumber,g=o.isObject,m=o.objectEach,v=o.offset,x=o.pick,y=o.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,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 i=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),m(i,function(t,e){i[e]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return u(this,"getSelectionMarkerAttrs",o,function(o){var s=i.chart,r=i.mouseDownX;r=void 0===r?0:r;var n=i.mouseDownY;n=void 0===n?0:n;var a=i.zoomHor,h=i.zoomVert;(o=o.attrs).x=s.plotLeft,o.y=s.plotTop,o.width=a?1:s.plotWidth,o.height=h?1:s.plotHeight,a&&(s=t-r,o.width=Math.abs(s),o.x=(0<s?0:s)+r),h&&(s=e-n,o.height=Math.abs(s),o.y=(0<s?0:s)+n)}),o},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,o=e.plotLeft,r=e.plotTop,n=e.plotWidth,a=e.plotHeight,h=this.mouseDownX||0,l=this.mouseDownY||0,c=g(i.panning)?i.panning&&i.panning.enabled:i.panning,d=i.panKey&&t[i.panKey+"Key"],p=t.chartX,u=t.chartY,f=this.selectionMarker;f&&f.touch||(p<o?p=o:p>o+n&&(p=o+n),u<r?u=r:u>r+a&&(u=r+a),this.hasDragged=Math.sqrt(Math.pow(h-p,2)+Math.pow(l-u,2)),10<this.hasDragged&&(o=e.isInsidePlot(h-o,l-r,{visiblePlotOnly:!0}),p=(u=this.getSelectionMarkerAttrs(p,u)).shapeType,u=u.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&
1!this.zoomY||!o||d||f||(this.selectionMarker=f=e.renderer[p](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:i.selectionMarkerFill||s("#335cad").setOpacity(.25).get()})),f&&f.attr(u),o&&!f&&c&&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.getSelectionBox=function(t){var e={args:{marker:t},result:{}};return u(this,"getSelectionBox",e,function(e){e.result={x:t.attr?+t.attr("x"):t.x,y:t.attr?+t.attr("y"):t.y,width:t.attr?t.attr("width"):t.width,height:t.attr?t.attr("height"):t.height}}),e.result},t.prototype.drop=function(t){var e=this,i=this.chart,o=this.hasPinched;if(this.selectionMarker){var s=this.getSelectionBox(this.selectionMarker),r=s.x,n=s.y,a=s.width,h=s.height,p={originalEvent:t,xAxis:[],yAxis:[],x:r,y:n,width:a,height:h},g=!!i.mapView;(this.hasDragged||o)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&c(i.min)&&(o||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&f(r)&&f(n)&&f(a)&&f(h)){var s=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,d=i.toValue((s?r:n)+l);s=i.toValue((s?r+a:n+h)-l),p[i.coll].push({axis:i,min:Math.min(d,s),max:Math.max(d,s)}),g=!0}}),g&&u(i,"selection",p,function(t){i.zoom(d(t,o?{animation:!1}:null))})),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),o&&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 o;return t.forEach(function(t){var s=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,s),(s=g(t,!0)&&t.series)&&!(s=!g(o,!0))){s=o.distX-t.distX;var r=o.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);s=0<(0!==s&&e?s:0!==r?r:0!==n?n:o.series.index>t.series.index?-1:1)}s&&(o=t)}),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,o=i.xAxis;i=i.yAxis;var s=t.shapeArgs;if(o&&i){var r=x(t.clientX,t.plotX),n=t.plotY||0;return t.isNode&&s&&f(s.x)&&f(s.y)&&(r=s.x,n=s.y),e?{chartX:i.len+i.pos-n,chartY:o.len+o.pos-r}:{chartX:r+o.pos,chartY:n+i.pos}}if(s&&s.x&&s.y)return{chartX:s.x,chartY:s.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=v(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2<i&&2<t&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/t),this.chartPosition},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,o,s,r){var n=[];o=!(!o||!t);var a=function(t){return t.visible&&!(!s&&t.directTouch)&&x(t.options.enableMouseTracking,!0)},h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:s};u(this,"beforeGetHoverData",h);var l=e&&!e.stickyTracking?[e]:i.filter(function(t){return t.stickyTracking&&(h.filter||a)(t)}),c=o||!r?t:this.findNearestKDPoint(l,s,r);return e=c&&c.series,c&&(s&&!e.noSharedTooltip?(l=i.filter(function(t){return h.filter?h.filter(t):a(t)&&!t.noSharedTooltip}),l.forEach(function(t){var e=p(t.points,function(t){return t.x===c.x&&!t.isNull});g(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),n.push(e))})):n.push(c)),u(this,"afterGetHoverData",h={hoverPoint:c}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:n}},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;
1if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentElement}},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.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):x(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=o.pageX-e.left,o=o.pageY-e.top,i/=e.scaleX,o/=e.scaleY,d(t,{chartX:Math.round(i),chartY:Math.round(o)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var o=e.plotLeft,s=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-o,t.chartY-s,{visiblePlotOnly:!0})&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=!(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(e){var i=r[x(t.hoverChartIndex,-1)],o=this.chart.tooltip;e=this.normalize(e),i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,i=e.tooltip;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var i=r[x(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition;t=this.normalize(t,o),!o||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i=r[x(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,i=e.chart,o=e.pinchDown,s=t.touches||[],r=s.length,a=e.lastValidTouch,h=e.hasZoom,l={},c=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={},f=e.chart.tooltip;f=1===r&&x(f&&f.options.followTouchMove,!0);var g=e.selectionMarker;1<r?e.initiated=!0:f&&(e.initiated=!1),h&&e.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),[].map.call(s,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(s,function(t,e){o[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[o[0].chartX,o[1]&&o[1].chartX],a.y=[o[0].chartY,o[1]&&o[1].chartY],i.axes.forEach(function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],o=t.minPixelPadding,s=t.toPixels(Math.min(x(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(x(t.options.max,t.dataMax),t.dataMax)),n=Math.max(s,r);e.min=Math.min(t.pos,Math.min(s,r)-o),e.max=Math.max(t.pos+t.len,n+o)}}),e.res=!0):f?this.runPointActions(e.normalize(t)):o.length&&(u(i,"touchpan",{originalEvent:t},function(){g||(e.selectionMarker=g=d({destroy:n,touch:!0},i.plotBox)),e.pinchTranslate(o,s,l,g,p,a),e.hasPinched=h,e.scaleGroups(l,p)}),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,o,s,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,o,s,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,o,s,r)}
1,t.prototype.pinchTranslateDirection=function(t,e,i,o,s,r,n,a){var h=this.chart,l=t?"x":"y",c=t?"X":"Y",d="chart"+c,p=t?"width":"height",u=h["plot"+(t?"Left":"Top")],f=h.inverted,g=h.bounds[t?"h":"v"],m=1===e.length,v=e[0][d],x=!m&&e[1][d];e=function(){"number"==typeof k&&20<Math.abs(v-x)&&(S=a||Math.abs(M-k)/Math.abs(v-x)),b=(u-M)/S+v,y=h["plot"+(t?"Width":"Height")]/S};var y,b,S=a||1,M=i[0][d],k=!m&&i[1][d];if(e(),(i=b)<g.min){i=g.min;var C=!0}else i+y>g.max&&(i=g.max-y,C=!0);C?(M-=.8*(M-n[l][0]),"number"==typeof k&&(k-=.8*(k-n[l][1])),e()):n[l]=[M,k],f||(r[l]=b-u,r[p]=y),r=f?1/S:S,s[p]=y,s[l]=i,o[f?t?"scaleY":"scaleX":"scale"+c]=S,o["translate"+c]=r*u+(M-r*v)},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,s=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:s;t&&a&&y(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?n&&a&&y(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))}):s&&(s.setState(s.state,!0),i.axes.forEach(function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),r&&r.forEach(function(t){t.setState()}),o&&o.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(e,i,o){var s=this.chart,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,h=!!n&&n.shared,l=i||s.hoverPoint,c=l&&l.series||s.hoverSeries;i=this.getHoverData(l,c,s.series,(!e||"touchmove"!==e.type)&&(!!i||c&&c.directTouch&&this.isDirectTouch),h,e),l=i.hoverPoint,c=i.hoverSeries;var d=i.hoverPoints;i=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var u=h&&c&&!c.noSharedTooltip;if(l&&(o||l!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach(function(t){-1===d.indexOf(t)&&t.setState()}),s.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach(function(t){t.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!l.series)return;s.hoverPoints=d,s.hoverPoint=l,l.firePointEvent("mouseOver",void 0,function(){n&&l&&n.refresh(u?d:l,e)})}else i&&n&&!n.isHidden&&(o=n.getAnchor([{}],e),s.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",function(e){var i=r[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(t){var i,o=x((t.crosshair||{}).snap,!0);o&&((i=s.hoverPoint)&&i.series[t.coll]===t||(i=p(d,function(e){return e.series&&e.series[t.coll]===t}))),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var i=this.chart;i.series.forEach(function(o){var s=t||o.getPlotBox();o.group&&(o.xAxis&&o.xAxis.zoomEnabled||i.mapView)&&(o.group.attr(s),o.markerGroup&&(o.markerGroup.attr(s),o.markerGroup.clip(e?i.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(s))}),i.clipRect.attr(e||i.clipBox)},t.prototype.setDOMEvents=function(){var i=this,o=this.chart.container,s=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(o,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(s,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",function(){delete i.chartPosition})),r=r.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(s,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var i=this.chart,o=e.charts[x(t.hoverChartIndex,-1)];o&&o!==i&&o.pointer.onContainerMouseLeave({relatedTarget:i.container}),o&&o.mouseIsDown||(t.hoverChartIndex=i.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,{visiblePlotOnly:!0})&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var o=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));x(o,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart;e=e.inverted;var o=i.zooming.type||"";/touch/.test(t.type)&&(o=x(i.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},t}(),t}),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],function(t,e,
1i){function o(){var t=[];return t.item=function(t){return this[t]},p(g,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function s(t,i,s,r){var a=n[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,r(t),a[i]({type:s,target:t.currentTarget,preventDefault:h,touches:o()}))}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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=t.charts,a=t.doc,h=t.noop,l=t.win,c=i.addEvent,d=i.css,p=i.objectEach,u=i.pick,f=i.removeEvent,g={},m=!!l.PointerEvent;return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return r(i,e),i.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},i.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},i.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},i.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this.hasZoom&&d(t.container,{"-ms-touch-action":"none","touch-action":"none"})},i.prototype.onContainerPointerDown=function(t){s(t,"onContainerTouchStart","touchstart",function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},i.prototype.onContainerPointerMove=function(t){s(t,"onContainerTouchMove","touchmove",function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY},g[t.pointerId].target||(g[t.pointerId].target=t.currentTarget)})},i.prototype.onDocumentPointerUp=function(t){s(t,"onDocumentTouchEnd","touchend",function(t){delete g[t.pointerId]})},i.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||u(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},i}(e)}),e(i,"Core/Legend/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r){var n=t.animObject,a=t.setAnimation,h=e.format,l=i.marginNames,c=s.distribute,d=r.addEvent,p=r.createElement,u=r.css,f=r.defined,g=r.discardElement,m=r.find,v=r.fireEvent,x=r.isNumber,y=r.merge,b=r.pick,S=r.relativeLength,M=r.stableSort,k=r.syncTimeout;return t=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=void 0,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(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=y(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(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(y(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(e,!0)&&i.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var i=t.legendItem||{},o=i.group,s=i.label,r=i.line;if(i=i.symbol,o&&o[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options;o=this.itemHiddenStyle.color,n=e?n.itemStyle.color:o;var a=e&&t.color||o,h=t.options&&t.options.marker,l={fill:a};s&&s.css({fill:n,color:n}),r&&r.attr({stroke:a}),i&&(h&&i.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=o)),i.attr(l))}v(this,"afterColorizeItem",{item:t,visible:e})}
1,t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,s=i.x;s=void 0===s?0:s,i=void 0===(i=i.y)?0:i;var r=this.options,n=r.symbolPadding,a=!r.rtl;r=t.checkbox,o&&o.element&&(n={translateX:a?s:this.legendWidth-s-2*n-4,translateY:i},o[f(o.translateY)?"animate":"attr"](n,void 0,function(){v(e,"afterPositionItem",{item:t})})),r&&(r.x=s,r.y=i)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,s=["group","label","line","symbol"];o<s.length;o++){var r=s[o];i[r]&&(i[r]=i[r].destroy())}e&&g(e),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++)this.destroyItem(e[t]);for(t=0,e="clipRect up down pager nav box title group".split(" ");t<e.length;t++){var i=e[t];this[i]&&(this[i]=this[i].destroy())}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 o=t.translateY;this.allItems.forEach(function(s){var r=s.checkbox;if(r){var n=o+i+r.y+(this.scrollOffset||0)+3;u(r,{left:t.translateX+s.checkboxOffset+r.x-20+"px",top:n+"px",display:this.proximate||n>o-6&&n<o+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"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"}),o=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?h(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},i=this.chart,o=i.renderer,s=this.options,r=this.symbolWidth,n=s.symbolPadding||0,a=this.itemStyle,h=this.itemHiddenStyle,l="horizontal"===s.layout?b(s.itemDistance,20):0,c=!s.rtl,d=!t.series,p=!d&&t.series.drawLegendSymbol?t.series:t,u=p.options,f=this.createCheckboxForItem&&u&&u.showCheckbox,g=s.useHTML,m=t.options.className,v=e.label;u=r+n+l+(f?20:0),v||(e.group=o.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}
1).add(this.scrollGroup),e.label=v=o.text("",c?r+n:-n,this.baseline||0,g),i.styledMode||v.css(y(t.visible?a:h)),v.attr({align:c?"left":"right",zIndex:2}).add(e.group),this.baseline||(this.fontMetrics=o.fontMetrics(i.styledMode?12:a.fontSize,v),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,v.attr("y",this.baseline),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=b(s.symbolWidth,Math.max(this.symbolHeight,16)),u=this.symbolWidth+n+l+(f?20:0),c&&v.attr("x",this.symbolWidth+n))),p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,v,g)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&a.width||v.css({width:(s.itemWidth||this.widthOption||i.spacingBox.width)-u+"px"}),this.setText(t),i=v.getBBox(),o=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=s.itemWidth||e.labelWidth||i.width+u,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(i.height>1.5*o?i.height:o))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,s=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=o?b(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth;var l=t.legendItem||{};o&&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(s,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,o?this.itemX+=e:(this.itemY+=n+s+r,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((o?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&&b(i.showInLegend,!f(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))}),v(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,o=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
1h(function(r,n){r.test(s)&&!f(t[n])&&(i[l[n]]=Math.max(i[l[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*o[n%2?"x":"y"]+b(o.margin,12)+e[n]+(i.titleOffset[n]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach(function(o){var s,r=i;if(o.yAxis){o.xAxis.options.reversed&&(r=!r),o.points&&(s=m(r?o.points:o.points.slice(0).reverse(),function(t){return x(t.plotY)})),r=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom;var n=o.yAxis.top-t.plotTop;o.visible?(s=s?s.plotY:o.yAxis.height,s+=n-.3*r):s=n+o.yAxis.height,e.push({target:s,size:r,item:o})}},this);for(var o,s=0,r=c(e,t.plotHeight);s<r.length;s++){var n=r[s];o=n.item.legendItem||{},x(n.pos)&&(o.y=t.plotTop-t.spacing[0]+n.pos)}},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.options,o=this.padding,s=this.getAllItems(),r=this.group,n=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=S(i.width,t.spacingBox.width-o);var a=t.spacingBox.width-2*o-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,r||(this.group=r=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(r),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),M(s,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&s.reverse(),this.allItems=s,this.display=a=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEac
1h(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+o;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=o,n||(this.box=n=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),t.styledMode||n.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<s&&0<h&&n[n.placed?"animate":"attr"](n.crisp.call({},{x:0,y:0,width:s,height:h},n.strokeWidth())),r[a?"show":"hide"](),t.styledMode&&"none"===r.getStyle("display")&&(s=h=0),this.legendWidth=s,this.legendHeight=h,a&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(o-=e.titleOffset[2]),o!==t.y&&(t=y(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(y(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,s=this,r=this.chart,n=r.renderer,a=this.options,h=a.y,l="top"===a.verticalAlign,c=this.padding,d=a.maxHeight,p=a.navigation,u=b(p.animation,!0),f=p.arrowSize||12,g=this.pages,m=this.allItems,v=function(t){"number"==typeof t?S.attr({height:t}):S&&(s.clipRect=S.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},x=function(t){return s[t]=n.circle(0,0,1.3*f).translate(f/2,f/2).add(y),r.styledMode||s[t].attr("fill","rgba(0,0,0,0.0001)"),s[t]};h=r.spacingBox.height+(l?-h:h)-c;var y=this.nav,S=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(h/=2),d&&(h=Math.min(h,d)),g.length=0,t&&0<h&&t>h&&!1!==p.enabled?(this.clipHeight=e=Math.max(h-20-this.titleHeight-c,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,m.forEach(function(t,s){t=(o=t.legendItem||{}).y||0;var r=Math.round(o.label.getBBox().height),n=g.length;(!n||t-g[n-1]>e&&(i||t)!==g[n-1])&&(g.push(i||t),n++),o.pageIx=n-1,i&&((m[s-1].legendItem||{}).pageIx=n-1),s===m.length-1&&t+r-g[n-1]>e&&r<=e&&(g.push(t),o.pageIx=n),t!==i&&(i=t)}),S||(S=s.clipRect=n.clipRect(0,c,9999,0),s.contentGroup.clip(S)),v(e),y||(this.nav=y=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,f,f).add(y),x("upTracker").on("click",function(){s.scroll(-1,u)}),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),!r.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(y),this.down=n.symbol("triangle-down",0,0,f,f).add(y),x("downTracker").on("click",function(){s.scroll(1,u)})),s.scroll(0),t=h):y&&(v(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,s=this.pages,r=s.length,h=this.clipHeight,l=this.options.navigation,c=this.pager,d=this.padding,p=this.currentPage+t;p>r&&(p=r),0<p&&(void 0!==e&&a(e,o),this.nav.attr({translateX:d,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),c.attr({text:p+"/"+r}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:p===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===p?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===p?"default":"pointer"}),this.down.attr({fill:p===r?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:p===r?"default":"pointer"})),this.scrollOffset=-s[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),t=n(b(e,o.renderer.globalAnimation,!0)),k(function(){v(i,"afterScroll",{currentPage:p})},t.duration))},t.prototype.setItemEvents=function(t,e,i){var s=this,r=t.legendItem||{},n=s.chart.renderer.boxWrapper,a=t instanceof o,h="highcharts-legend-"+(a?"point":"series")+"-active",l=s.chart.styledMode,c=function(e){s.allItems.forEac
1h(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!a)})})},d=0;for(i=i?[e,r.symbol]:[r.group];d<i.length;d++)(r=i[d])&&r.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&n.addClass(h),l||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(y(t.visible?s.itemStyle:s.itemHiddenStyle)),c(""),n.removeClass(h),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};n.removeClass(h),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):v(t,"legendItemClick",e,i)})},t.prototype.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){v(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})},t}(),t}),e(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/Defaults.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=e.defaultOptions,n=o.extendClass,a=o.merge;return function(e){function o(t,o){var s=r.plotOptions||{},n=o.defaultOptions,a=o.prototype;a.type=t,a.pointClass||(a.pointClass=i),n&&(s[t]=n),e.seriesTypes[t]=o}e.seriesTypes=t.seriesTypes,e.registerSeriesType=o,e.seriesType=function(t,s,h,l,c){var d=r.plotOptions||{};return s=s||"",d[t]=a(d[s],h),o(t,n(e.seriesTypes[s]||function(){},l)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=n(i,c)),e.seriesTypes[t]}}(s||(s={})),s}),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/Legend.js"],i["Core/MSPointer.js"],i["Core/Pointer.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],function(t,e,i,o,s,r,n,a,h,l,c,d,p,u,f){var g=t.animate,m=t.animObject,v=t.setAnimation,x=i.defaultOptions,y=i.defaultTime,b=o.numberFormat,S=s.registerEventOptions,M=r.charts,k=r.doc,C=r.marginNames,w=r.svg,A=r.win,T=c.seriesTypes,P=u.addEvent,O=u.attr,L=u.cleanRecursively,E=u.createElement,D=u.css,j=u.defined,B=u.discardElement,I=u.erase,R=u.error,z=u.extend,G=u.find,N=u.fireEvent,W=u.getStyle,X=u.isArray,H=u.isNumber,_=u.isObject,F=u.isString,Y=u.merge,U=u.objectEach,V=u.pick,K=u.pInt,Z=u.relativeLength,q=u.removeEvent,$=u.splat,J=u.syncTimeout,Q=u.uniqueKey;return t=function(){function t(t,e,i){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.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,i)}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.getArgs=function(t,e,i){F(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i=t.plotOptions||{};N(this,"init",{args:arguments},function(){var o=Y(x,t),s=o.chart;U(o.plotOptions,function(t,e){_(t)&&(t.tooltip=i[e]&&Y(i[e].tooltip)||void 0)}),o.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0;var n=s.zooming=s.zooming||{};t.chart&&!t.chart.zooming&&(n.resetButton=s.resetZoomButton),n.key=V(n.key,s.zoomKey),n.pinchType=V(n.pinchType,s.pinchType),n.singleTouch=V(n.singleTouch,s.zoomBySingleTouch),n.type=V(n.type,s.zoomType),this.options=o,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new p(t.time):r.time,this.numberFormatter=s.numberFormatter||b,this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=M.length,M.push(this),r.chartCount++,S(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,N(this,"afterInit"),this.firstRen
1der()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var i=T[e];return i||R(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new i).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;t=t||0;for(var i=e.length;t<i;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o=this.inverted,s=this.plotBox,r=this.plotLeft,n=this.plotTop,a=this.scrollablePlotBox,h=0,l=0;i.visiblePlotOnly&&this.scrollingContainer&&(h=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var c=i.series;if(s=i.visiblePlotOnly&&a||s,t={x:a=i.inverted?e:t,y:e=i.inverted?t:e,isInsidePlot:!0,options:i},!i.ignoreX){var d=c&&(o&&!this.polar?c.yAxis:c.xAxis)||{pos:r,len:1/0};(a=i.paneCoordinates?d.pos+a:r+a)>=Math.max(h+r,d.pos)&&a<=Math.min(h+r+s.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(o=i.axis&&!i.axis.isXAxis&&i.axis||c&&(o?c.xAxis:c.yAxis)||{pos:n,len:1/0},(i=i.paneCoordinates?o.pos+e:n+e)>=Math.max(l+n,o.pos)&&i<=Math.min(l+n+s.height,o.pos+o.len)||(t.isInsidePlot=!1)),N(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){N(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,o=this.pointer,s=this.legend,r=this.userOptions.legend,n=this.renderer,a=n.isHidden(),h=[],l=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var d=i[t];if(d.options.stacking||d.options.centerInCategory){var p=!0;if(d.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(d=i[t]).options.stacking&&(d.isDirty=!0);i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):r&&(r.labelFormatter||r.labelFormat)&&(c=!0)),t.isDirtyData&&N(t,"updatedData")}),c&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),p&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(l=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push(function(){N(t,"afterSetExtremes",z(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||p)&&t.redraw()}),l&&this.drawChartBox(),N(this,"predraw"),i.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),o&&o.reset(!0),n.draw(),N(this,"redraw"),N(this,"render"),a&&this.temporaryDisplay(!0),h.forEach(function(t){t.call()})},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var i=this.series,o=G(this.axes,e)||G(this.series,e),s=0;!o&&s<i.length;s++)o=G(i[s].points||[],e);return o},t.prototype.getAxes=function(){var t=this,i=this.options,o=i.xAxis=$(i.xAxis||{});i=i.yAxis=$(i.yAxis||{}),N(this,"getAxes"),o.forEach(function(t,e){t.index=e,t.isX=!0}),i.forEach(function(t,e){t.index=e}),o.concat(i).forEach(function(i){new e(t,i)}),N(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){V(e.selectedStaging,e.selected)&&t.push(e)}),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,o="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};o=this.options[t]=Y(!this.styledMode&&{style:o},this.options[t],e);var s=this[t];s&&e&&(this[t]=s=s.destroy()),o&&!s&&((s=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+t,zIndex:o.zIndex||4}
1).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||s.css(o.style),this[t]=s)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,o=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var s,r=this[t],n=this.options[t],a=n.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,r){this.styledMode||(s=n.style&&n.style.fontSize),s=i.fontMetrics(s,r).b,r.css({width:(n.width||o.width+(n.widthAdjust||0))+"px"});var h=Math.round(r.getBBox(n.useHTML).height);r.align(z({y:"bottom"===a?s:t+s,height:h},n),!1,"spacingBox"),n.floating||("top"===a?e[0]=Math.ceil(e[0]+h):"bottom"===a&&(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 s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,N(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&V(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;j(e)||(this.containerWidth=W(i,"width")),j(t)||(this.containerHeight=W(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,Z(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&&(D(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(k.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(k.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,k.body.appendChild(e)),("none"===W(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),D(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==k.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,i=e.chart,o=Q(),s=this.renderTo;s||(this.renderTo=s=i.renderTo),F(s)&&(this.renderTo=s=k.getElementById(s)),s||R(13,!0,this);var r=K(O(s,"data-highcharts-chart"));H(r)&&M[r]&&M[r].hasRendered&&M[r].destroy(),O(s,"data-highcharts-chart",this.index),s.innerHTML=f.emptyHTML,i.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize(),r=this.chartWidth;var n=this.chartHeight;if(D(s,{overflow:"hidden"}),this.styledMode||(t=z({position:"relative",overflow:"hidden",width:r+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{})),this.container=o=E("div",{id:o},t,s),this._cursor=o.style.cursor,this.renderer=new(i.renderer||!w?l.getRendererType(i.renderer):d)(o,r,n,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(i.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,N(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!j(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!j(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),N(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,s=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?s(t.axes):i&&i.length&&s(i),C.forEach(function(i,s){j(o[s])||(t[i]+=e[s])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,o=e.renderTo,s=j(i.width)&&j(i.height),r=i.width||W(o,"width");
1i=i.height||W(o,"height"),o=t?t.target:A,delete e.pointer.chartPosition,s||e.isPrinting||!r||!i||o!==A&&o!==k||(r===e.containerWidth&&i===e.containerHeight||(u.clearTimeout(e.reflowTimeout),e.reflowTimeout=J(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=P(A,"resize",function(t){e.options&&e.reflow(t)}),P(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var o=this,s=o.renderer;o.isResizing+=1,v(i,o),i=s.globalAnimation,o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize(),o.styledMode||(i?g:D)(o.container,{width:o.chartWidth+"px",height:o.chartHeight+"px"},i),o.setChartSize(!0),s.setSize(o.chartWidth,o.chartHeight,i),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,N(o,"resize"),J(function(){o&&N(o,"endResize",null,function(){--o.isResizing})},m(i).duration)},t.prototype.setChartSize=function(t){var e,i,o,s,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=o=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=s=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?s:o,this.plotSizeY=r?o:s,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:o,height:s},r=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(r,d[3])/2),h=Math.ceil(Math.max(r,d[0])/2),this.clipBox={x:a,y:h,width:Math.floor(this.plotSizeX-Math.max(r,d[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,d[2])/2-h))},t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),n.alignElements()),N(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){N(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var o=e[i],s=_(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,r){t[i][r]=V(e[i+o],s[r])})}),C.forEach(function(e,i){t[e]=V(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,o=this.chartWidth,s=this.chartHeight,r=this.styledMode,n=this.plotBGImage,a=e.backgroundColor,h=e.plotBackgroun
1dColor,l=e.plotBackgroundImage,c=this.plotLeft,d=this.plotTop,p=this.plotWidth,u=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,v=this.chartBackground,x=this.plotBackground,y=this.plotBorder,b="animate";if(v||(this.chartBackground=v=i.rect().addClass("highcharts-background").add(),b="attr"),r)var S=t=v.strokeWidth();else t=(S=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(S||v["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=S),v.attr(a).shadow(e.shadow);v[b]({x:t/2,y:t/2,width:o-t-S%2,height:s-t-S%2,r:e.borderRadius}),b="animate",x||(b="attr",this.plotBackground=x=i.rect().addClass("highcharts-plot-background").add()),x[b](f),r||(x.attr({fill:h||"none"}).shadow(e.plotShadow),l&&(n?(l!==n.attr("href")&&n.attr("href",l),n.animate(f)):this.plotBGImage=i.image(l,c,d,p,u).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=i.clipRect(m),b="animate",y||(b="attr",this.plotBorder=y=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||y.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),y[b](y.crisp({x:c,y:d,width:p,height:u},-y.strokeWidth())),this.isDirtyBox=!1,N(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,s=o.options.chart,r=o.options.series;["inverted","angular","polar"].forEach(function(n){for(e=T[s.type||s.defaultSeriesType],i=s[n]||e&&e.prototype[n],t=r&&r.length;!i&&t--;)(e=T[r[t].type])&&e.prototype[n]&&(i=!0);o[n]=i})},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;F(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=V(e.options.visible,i.options.visible,e.visible))}),N(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 o=z(e.style,i.style),s=K(o.left)+t.plotLeft,r=K(o.top)+t.plotTop+12;delete o.left,delete o.top,t.renderer.text(i.html,s,r).attr({zIndex:2}).css(o).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,o=this.options,s=function(t){t.forEach(function(t){t.visible&&t.render()})},r=0;this.setTitle(),this.legend=new n(this,o.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),o=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<o/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?s(t):e&&e.length&&s(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=Y(!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&&(A.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.destroy=function(){var t,e=this,i=e.axes,o=e.series,s=e.container,n=s&&s.parentNode;for(N(e,"destroy"),e.renderer.forExport?I(M,e):M[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),q(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();
1"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())}),s&&(s.innerHTML=f.emptyHTML,q(s),n&&B(s)),U(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(),(X(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),N(t,"beforeRender"),h&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new h(t,e)),t.render(),t.pointer.getChartPosition(),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),N(this,"load"),N(this,"render"),j(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||R('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,i){var o,s=this;return t&&(e=V(e,!0),N(s,"addSeries",{options:t},function(){o=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),N(s,"afterAddSeries",{series:o}),e&&s.redraw(i)})),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,i){return t=new e(this,Y(i.axis,{index:this[t].length,isX:"xAxis"===t})),V(i.redraw,!0)&&this.redraw(i.animation),t},t.prototype.showLoading=function(t){var e=this,i=e.options,o=i.loading,s=function(){r&&D(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,n=e.loadingSpan;r||(e.loadingDiv=r=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=E("span",{className:"highcharts-loading-inner"},null,r),P(e,"redraw",s)),r.className="highcharts-loading",f.setElementHTML(n,V(t,i.lang.loading,"")),e.styledMode||(D(r,z(o.style,{zIndex:10})),D(n,o.labelStyle),e.loadingShown||(D(r,{opacity:0,display:""}),g(r,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,s()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){D(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var s,r,n=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,l=[];N(n,"update",{options:t}),h||n.setResponsive(!1,!0),t=L(t,n.options),n.userOptions=Y(n.userOptions,t);var c=t.chart;if(c){if(Y(!0,n.options.chart,c),"className"in c&&n.setClassName(c.className),"reflow"in c&&n.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){n.propFromSeries();var d=!0}"alignTicks"in c&&(d=!0),"events"in c&&S(this,c),U(c,function(t,e){-1!==n.propsRequireUpdateSeries.indexOf("chart."+e)&&(s=!0),-1!==n.propsRequireDirtyBox.indexOf(e)&&(n.isDirtyBox=!0),-1!==n.propsRequireReflow.indexOf(e)&&(h?n.isDirtyBox=!0:r=!0)}),!n.styledMode&&c.style&&n.renderer.setStyle(n.options.chart.style||{})}!n.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===y&&(this.time=new p(t.time)),Y(!0,n.options.time,t.time)),U(t,function(e,i){n[i]&&"function"==typeof n[i].update?n[i].update(e,!1):"function"==typeof n[a[i]]?n[a[i]](e):"colors"!==i&&-1===n.collectionsWithUpdate.indexOf(i)&&Y(!0,n.options[i],t[i]),"chart"!==i&&-1!==n.propsRequireUpdateSeries.indexOf(i)&&(s=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){var o=[];n[e].forEach(function(t,e){t.options.isInternal||o.push(V(t.options.index,e))}
1),$(t[e]).forEach(function(t,s){var r,a=j(t.id);a&&(r=n.get(t.id)),!r&&n[e]&&(r=n[e][o?o[s]:s])&&a&&j(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&n.collectionsWithInit[e]&&(n.collectionsWithInit[e][0].apply(n,[t].concat(n.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&n[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)})}}),l.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),d&&n.axes.forEach(function(t){t.update({},!1)}),s&&n.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),d=c&&c.width,c=c&&(F(c.height)?Z(c.height,d||n.chartWidth):c.height),r||H(d)&&d!==n.chartWidth||H(c)&&c!==n.chartHeight?n.setSize(d,c,o):V(e,!0)&&n.redraw(o),N(n,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,i=x.lang,o=e.options.chart.zooming.resetButton,s=o.theme,r="chart"===o.relativeTo||"spacingBox"===o.relativeTo?null:"scrollablePlotBox";N(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,s).attr({align:o.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(o.position,!1,r)}),N(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){N(this,"selection",{resetSelection:!0}
1,this.zoom)},t.prototype.zoom=function(t){var e,i=this,o=i.pointer,s=!1;!t||t.resetSelection?(i.axes.forEach(function(t){e=t.zoom()}),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var r=t.axis;(o[r.isXAxis?"zoomX":"zoomY"]&&j(o.mouseDownX)&&j(o.mouseDownY)&&i.isInsidePlot(o.mouseDownX-i.plotLeft,o.mouseDownY-i.plotTop,{axis:r})||!j(i.inverted?o.mouseDownX:o.mouseDownY))&&(e=r.zoom(t.min,t.max),r.displayBtn&&(s=!0))});var r=i.resetZoomButton;s&&!r?i.showResetZoom():!s&&_(r)&&(i.resetZoomButton=r.destroy()),e&&i.redraw(V(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i=this,o=i.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var s=i.options.chart;s&&s.panning&&(s.panning=e);var r,n=e.type;N(this,"pan",{originalEvent:t},function(){o&&o.forEach(function(t){t.setState()});var e=i.xAxis;"xy"===n?e=e.concat(i.yAxis):"y"===n&&(e=i.yAxis);var s={};e.forEach(function(e){if(e.options.panningEnabled&&!e.options.isInternal){var o=e.horiz,a=t[o?"chartX":"chartY"],h=i[o=o?"mouseDownX":"mouseDownY"],l=e.minPointOffset||0,c=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,d=e.getExtremes(),p=e.toValue(h-a,!0)+l*c,u=e.toValue(h+e.len-a,!0)-(l*c||e.isXAxis&&e.pointRangePadding||0),f=u<p;c=e.hasVerticalPanning(),h=f?u:p,p=f?p:u;var g=e.panningState;!c||e.isXAxis||g&&!g.isDirty||e.series.forEach(function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),g||(g={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),H(e.dataMin)&&H(e.dataMax)&&(g.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,g.startMin),g.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,g.startMax))}),c=Math.min(V(g&&g.startMin,d.dataMin),l?d.min:e.toValue(e.toPixels(d.min)-e.minPixelPadding)),u=Math.max(V(g&&g.startMax,d.dataMax),l?d.max:e.toValue(e.toPixels(d.max)+e.minPixelPadding)),e.panningState=g,e.isOrdinal||(0<(l=c-h)&&(p+=l,h=c),0<(l=p-u)&&(p=u,h-=l),e.series.length&&h!==d.min&&p!==d.max&&h>=c&&p<=u&&(e.setExtremes(h,p,!1,!1,{trigger:"pan"}),!i.resetZoomButton&&h!==c&&p!==u&&n.match("y")&&(i.showResetZoom(),e.displayBtn=!1),r=!0),s[o]=a)}}),U(s,function(t,e){i[e]=t}),r&&i.redraw(!1),D(i.container,{cursor:"move"})})},t}(),z(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroun
1dColor 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(" ")}),t}),e(i,"Core/Legend/LegendSymbol.js",[i["Core/Utilities.js"]],function(t){var e,i=t.extend,o=t.merge,s=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},r=this.options,n=t.symbolWidth,a=t.symbolHeight,h=a/2,l=this.chart.renderer,c=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var d={},p=r.marker,u=0;this.chart.styledMode||(d={"stroke-width":Math.min(r.lineWidth||0,24)},r.dashStyle?d.dashstyle=r.dashStyle:"square"!==r.linecap&&(d["stroke-linecap"]="round")),e.line=l.path().addClass("highcharts-graph").attr(d).add(c),d["stroke-linecap"]&&(u=Math.min(e.line.strokeWidth(),n)/2),e.line.attr({d:[["M",u,t],["L",n-u,t]]}),p&&!1!==p.enabled&&n&&(r=Math.min(s(p.radius,h),h),0===this.symbol.indexOf("url")&&(p=o(p,{width:a,height:a}),r=0),e.symbol=e=l.symbol(this.symbol,n/2-r,t-r,2*r,2*r,i({context:"legend"},p)).addClass("highcharts-point").add(c),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var i=t.symbolHeight,o=t.options.squareSymbol;e.symbol=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.group)}}(e||(e={})),e}),e(i,"Core/Series/SeriesDefaults.js",[],function(){return{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",borderWidth:0,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"}}),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h,l){var c=t.animObject,d=t.setAnimation,p=e.defaultOptions,u=i.registerEventOptions,f=o.hasTouch,g=o.svg,m=o.win,v=a.seriesTypes,x=l.arrayMax,y=l.arrayMin,b=l.clamp,S=l.cleanRecursively,M=l.correctFloat,k=l.defined,C=l.erase,w=l.error,A=l.extend,T=l.find,P=l.fireEvent,O=l.getNestedProperty,L=l.isArray,E=l.isNumber,D=l.isString,j=l.merge,B=l.objectEach,I=l.pick,R=l.removeEvent,z=l.splat,G=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){P(this,"init",{options:e});var i=this,o=t.series;this.eventsToUnbind=[],i.chart=t,i.options=i.setOptions(e),e=i.options,i.linkedSeries=[],i.bindAxes(),A(i,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),u(this,e);var s,r=e.events;(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),i.getColor(),i.getSymbol(),i.parallelArrays.forEach(function(t){i[t+"Data"]||(i[t+"Data"]=[])}),i.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(s=o[o.length-1]),i._i=I(s&&s._i,-1)+1,i.opacity=i.options.opacity,t.orderSeries(this.insert(o)),e.dataSorting&&e.dataSorting.enabled?i.setDataSortingOptions():i.points||i.data||i.setData(e.data,!1),P(this,"afterInit")},t.prototype.is=function(t){return v[t]&&this instanceof v[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(E(i)){for(e=t.length;e--;)if(i>=I(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 I(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;
1P(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(s){var r=0;o[s].forEach(function(o){t=o.options,(i[s]===r&&!t.isInternal||void 0!==i[s]&&i[s]===t.id||void 0===i[s]&&0===t.index)&&(e.insert(o.series),e[s]=o,o.isDirty=!0),t.isInternal||r++}),e[s]||e.optionalAxis===s||w(18,!0,o)})}),P(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,o=arguments,s=E(e)?function(o){var s="y"===o&&i.toYData?i.toYData(t):t[o];i[o+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(o,2))};i.parallelArrays.forEach(s)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,i=this.options,o=i.pointIntervalUnit,s=i.relativeXValue,r=this.chart.time,n=this.xIncrement;return n=I(n,i.pointStart,0),this.pointInterval=e=I(this.pointInterval,i.pointInterval,1),s&&E(t)&&(e*=t),o&&(i=new r.Date(n),"day"===o?r.set("Date",i,r.get("Date",i)+e):"month"===o?r.set("Month",i,r.get("Month",i)+e):"year"===o&&r.set("FullYear",i,r.get("FullYear",i)+e),e=i.getTime()-n),s&&E(t)?n+e:(this.xIncrement=n+e,n)},t.prototype.setDataSortingOptions=function(){var t=this.options;A(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),k(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,o=i.plotOptions,s=e.userOptions||{};t=j(t),e=e.styledMode;var r={plotOptions:o,userOptions:t};P(this,"setOptions",r);var n=r.plotOptions[this.type],a=s.plotOptions||{};return this.userOptions=r.userOptions,s=j(n,o.series,s.plotOptions&&s.plotOptions[this.type],t),this.tooltipOptions=j(p.tooltip,p.plotOptions.series&&p.plotOptions.series.tooltip,p.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=I(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||s.stickyTracking),null===n.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,o=this.zones=(s.zones||[]).slice(),!s.negativeColor&&!s.negativeFillColor||s.zones||(i={value:s[this.zoneAxis+"Threshold"]||s.threshold||0,className:"highcharts-negative"},e||(i.color=s.negativeColor,i.fillColor=s.negativeFillColor),o.push(i)),o.length&&k(o[o.length-1].value)&&o.push(e?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:s}),s},t.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var o=this.chart,s=this.userOptions,r=t+"Index",n=t+"Counter",a=i?i.length:I(o.options.chart[t+"Count"],o[t+"Count"]);if(!e){var h=I(s[r],s["_"+r]);k(h)||(o.series.length||(o[n]=0),s["_"+r]=h=o[n]%a,o[n]+=1),i&&(e=i[h])}void 0!==h&&(this[r]=h),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||p.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var i,o,s=t.id,n=t.x,a=this.points,h=this.options.dataSorting;if(s)(h=this.chart.get(s))instanceof r&&(i=h);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(i=function(e){return!e.touched&&e.index===t.index},h&&h.matchByName?i=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(i=function(e){return!e.touched&&e.options.x===t.x}),!(i=T(a,i))))return;if(i){var l=i&&i.index;void 0!==l&&(o=!0)}return void 0===l&&E(n)&&(l=this.xData.indexOf(n,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!o&&E(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,o,s,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach(function(t,e){var o=k(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=o.x;o.id||E(d)?(-1===(o=this.findPointIndex(o,s))||void 0===o?h.push(t):a[o]&&t!==r.data[o]?(a[o].update(t,!1,null,!1),a[o].touched=!0,l&&(s=o+1)):a[o]&&(a[o].touched=!0),(!c||e!==o||n&&n.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)},this),i)for(t=a.length;t--;)(o=a[t])&&!o.touched&&o.remove&&o.remove(!1,e);else!c||n&&n.enabled?d=!1:(t.forEach(function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)}),h.length=0);return a.forEach(function(t){t&&(t.touched=!1)}
1),!!d&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var s=this,r=s.points,n=r&&r.length||0,a=s.options,h=s.chart,l=a.dataSorting,c=s.xAxis,d=a.turboThreshold,p=this.xData,u=this.yData,f=s.pointArrayMap;f=f&&f.length;var g,m=a.keys,v=0,x=1,y=null;if(!h.options.chart.allowMutatingData){a.data&&delete s.options.data,s.userOptions.data&&delete s.userOptions.data;var b=j(!0,t)}if(b=(t=b||t||[]).length,l&&l.enabled&&(t=this.sortData(t)),h.options.chart.allowMutatingData&&!1!==o&&b&&n&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.boosted&&(g=this.updateData(t,i)),!g){if(s.xIncrement=null,s.colorCounter=0,this.parallelArrays.forEach(function(t){s[t+"Data"].length=0}),d&&b>d)if(y=s.getFirstValidPoint(t),E(y))for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i];else if(L(y))if(f)if(y.length===f)for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i];else for(i=0;i<b;i++)o=t[i],p[i]=o[0],u[i]=o.slice(1,f+1);else if(m&&(v=0<=(v=m.indexOf("x"))?v:0,x=0<=(x=m.indexOf("y"))?x:1),1===y.length&&(x=0),v===x)for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i][x];else for(i=0;i<b;i++)o=t[i],p[i]=o[v],u[i]=o[x];else w(12,!1,h);else for(i=0;i<b;i++)void 0!==t[i]&&(o={series:s},s.pointClass.prototype.applyOptions.apply(o,[t[i]]),s.updateParallelArrays(o,i));for(u&&D(u[0])&&w(14,!0,h),s.data=[],s.options.data=s.userOptions.data=t,i=n;i--;)r[i]&&r[i].destroy&&r[i].destroy();c&&(c.minRange=c.userMinRange),s.isDirty=h.isDirtyBox=!0,s.isDirtyData=!!r,i=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&h.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return k(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,s){t[s]=o(e,i),t[s].index=s},this),t.concat().sort(function(t,e){return t=O(i,t),(e=O(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,s=i.data;i.dataSorting&&i.dataSorting.enabled||!s||(s.forEach(function(i,r){s[r]=o(e,i),t[r]&&(s[r].x=t[r].x,s[r].index=r)}),e.setData(s,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,i=this.options,o=i.cropThreshold,s=t||this.getExtremesFromAll||i.getExtremesFromAll,r=this.isCartesian;t=e&&e.val2lin,i=!(!e||!e.logarithmic);var n=0,a=this.xData,h=this.yData,l=this.requireSorting,c=!1,d=a.length;if(e){var p=(c=e.getExtremes()).min,u=c.max;c=!(!e.categories||e.names.length)}if(r&&this.sorted&&!s&&(!o||d>o||this.forceCrop))if(a[d-1]<p||a[0]>u)a=[],h=[];else if(this.yData&&(a[0]<p||a[d-1]>u)){var f=this.cropData(this.xData,this.yData,p,u);a=f.xData,h=f.yData,n=f.start,f=!0}for(o=a.length||1;--o;)if(0<(e=i?t(a[o])-t(a[o-1]):a[o]-a[o-1])&&(void 0===g||e<g))var g=e;else 0>e&&l&&!c&&(w(15,!1,this.chart),l=!1);return{xData:a,yData:h,cropped:f,cropStart:n,closestPointRange:g}},t.prototype.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,P(this,"afterProcessData")},t.prototype.cropData=function(t,e,i,o,s){var r,n=t.length,a=0,h=n;for(s=I(s,this.cropShoulder),r=0;r<n;r++)if(t[r]>=i){a=Math.max(0,r-s);break}for(i=r;i<n;i++)if(t[i]>o){h=i+s;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,i=this.processedXData,o=this.processedYData,s=this.pointClass,r=i.length,n=this.cropStart||0,a=this.hasGroupedData,h=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?n:0;var c,d,p=this.data;if(!p&&!a){var u=[];u.length=e.length,p=this.data=u}for(h&&a&&(this.options.keys=!1),d=0;d<r;d++){if(u=n+d,a){var f=(new s).init(this,[i[d]].concat(z(o[d])));f.dataGroup=this.groupMap[t+d],f.dataGroup.options&&(f.options=f.dataGroup.options,A(f,f.dataGroup.options),delete f.dataLabels)}else(f=p[u])||void 0===e[u]||(p[u]=f=(new s).init(this,e[u],i[d]));f&&(f.index=a?t+d:u,l[d]=f)}if(this.options.keys=h,p&&(r!==(c=p.length)||a))for(d=0;d<c;d++)d!==n||a||(d+=r),p[d]&&(p[d].destroyElements(),p[d].plotX=void 0);this.data=p,this.points=l,P(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:y(t),max:x(t)}},t.prototype.getExtremes=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.processedXData||this.xData,r=[],n=this.requireSorting?this.cropShoulder:0;o=!!o&&o.positiveValuesOnly;var a,h=0,l=0,c=0,d=(t=t||this.stackedYData||this.processedYData||[]).length;if(i){var p=i.getExtremes();h=p.min,l=p.max}for(a=0;a<d;a++){var u=s[a];p=t[a];var f=(E(p)||L(p))&&(p.length||0<p||!o);if(u=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(s[a+n]||u)>=h&&(s[a-n]||u)<=l,f&&u)if(f=p.length)for(;f--;)E(p[f])&&(r[c++]=p[f]);else r[c++]=p}return t={activeYData:r,dataMin:y(r),dataMax:x(r)},P(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i<e;)o=t[i],i++;return o},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,o=i.stacking,s=this.xAxis,r=s.categories,n=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=this.pointPlacementToXValue(),d=!!c,p=i.threshold,u=i.startFromThreshold?p:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<l;t++){var m=h[t],v=m.x,x=void 0,y=void 0,S=m.y,C=m.low,w=o&&a.stacking&&a.stacking.stacks[(this.negStacks&&S<(u?0:p)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(S)||s.positiveValuesOnly&&!s.validatePositiveValue(v))&&(m.isNull=!0),m.plotX=e=M(b(s.translate(v,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),o&&this.visible&&w&&w[v]){var A=this.getStackIndicator(A,v,this.index);!m.isNull&&A.key&&(y=(x=w[v]).points[A.key]),x&&L(y)&&(C=y[0],S=y[1],C===u&&A.key===w[v].base&&(C=I(E(p)?p:a.min)),a.positiveValuesOnly&&k(C)&&0>=C&&(C=void 0),m.total=m.stackTotal=I(x.total),m.percentage=k(m.y)&&x.total?m.y/x.total*100:void 0,m.stackY=S,this.irregularWidths||x.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(m.yBottom=k(C)?b(a.translate(C,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(S=this.dataModify.modifyValue(S,t)),m.plotY=void 0,E(S)&&void 0!==(x=a.translate(S,!1,!0,!1,!0))&&(m.plotY=b(x,-1e5,1e5)),m.isInside=this.isPointInside(m),m.clientX=d?M(s.translate(v,0,0,0,1,c)):e,m.negative=m[f]<(i[f+"Threshold"]||p||0),m.category=I(r&&r[m.x],m.x),!m.isNull&&!1!==m.visible){void 0!==T&&(g=Math.min(g,Math.abs(e-T)));var T=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&n&&(m.isNew=!0)}this.closestPointRangePx=g,P(this,"afterTranslate")}
1,t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!o.isInsidePlot(t.plotX,t.plotY,{inverted:o.inverted}))&&!1!==t.visible&&(i||!t.isNull)})},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,o=j(t.clipBox);return e&&e.len!==t.plotSizeX&&(o.width=e.len),i&&i.len!==t.plotSizeY&&(o.height=i.len),o},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips;t=t.renderer;var s=this.getClipBox(),r=this.getSharedClipKey(),n=o[r];n?n.animate(s):o[r]=n=t.clipRect(s),e&&e.clip(!1===this.options.clip?void 0:n),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,s=e.inverted,r=c(this.options.animation),n=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(),a=e.sharedClips[n],h=e.sharedClips[n+"m"];if(t&&i)r=this.getClipBox(),a?a.attr("height",r.height):(r.width=0,s&&(r.x=e.plotHeight),a=e.renderer.clipRect(r),e.sharedClips[n]=a,h=e.renderer.clipRect({x:-99,y:-99,width:s?e.plotWidth+199:99,height:s?99:e.plotHeight+199}),e.sharedClips[n+"m"]=h),i.clip(a),o&&o.clip(h);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=r.step;o&&o.element.childNodes.length&&(r.step=function(t,e){l&&l.apply(e,arguments),"width"===e.prop&&h&&h.element&&h.attr(s?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),B(this.chart.sharedClips,function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])}),this.finishedAnimating=!0,P(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o=this.chart,s=o.styledMode,r=this.colorAxis,n=this.options.marker,a=this[this.specialGroup||"markerGroup"],h=this.xAxis,l=I(n.enabled,!(h&&!h.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){var c=t[e],d=(i=c.graphic)?"animate":"attr",p=c.marker||{},u=!!c.marker;if((l&&void 0===p.enabled||p.enabled)&&!c.isNull&&!1!==c.visible){var f=I(p.symbol,this.symbol,"rect"),g=this.markerAttribs(c,c.selected&&"select");this.enabledDataSorting&&(c.startXPos=h.reversed?-(g.width||0):h.width);var m=!1!==c.isInside;!i&&m&&(0<(g.width||0)||c.hasImage)&&(c.graphic=i=o.renderer.symbol(f,g.x,g.y,g.width,g.height,u?p:n).add(a),this.enabledDataSorting&&o.hasRendered&&(i.attr({x:c.startXPos}),d="animate")),i&&"animate"===d&&i[m?"show":"hide"](m).animate(g),i&&(p=this.pointAttribs(c,s||!c.selected?void 0:"select"),s?r&&i.css({fill:p.fill}):i[d](p)),i&&i.addClass(c.getClassName(),!0)}else i&&(c.graphic=i.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,o=i.marker,s=t.marker||{},r=s.symbol||o.symbol,n={},a=I(s.radius,o&&o.radius);return e&&(o=o.states[e],e=s.states&&s.states[e],a=I(e&&e.radius,o&&o.radius,a&&a+(o&&o.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(a=0),t=t.pos(),E(a)&&t&&(n.x=t[0]-a,n.y=t[1]-a,i.crisp&&(n.x=Math.floor(n.x))),a&&(n.width=n.height=2*a),n},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,o=t&&t.options,s=o&&o.marker||{},r=o&&o.color,n=t&&t.color,a=t&&t.zone&&t.zone.color,h=this.color;return t=I(s.lineWidth,i.lineWidth),o=1,h=r||a||n||h,r=s.fillColor||i.fillColor||h,n=s.lineColor||i.lineColor||h,e=e||"normal",i=i.states[e]||{},e=s.states&&s.states[e]||{},t=I(e.lineWidth,i.lineWidth,t+I(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,{stroke:n=e.lineColor||i.lineColor||n,"stroke-width":t,fill:r,opacity:o=I(e.opacity,i.opacity,o)}},t.prototype.destroy=function(t){var e,i,o,s=this,r=s.chart,n=/AppleWebKit\/533/.test(m.navigator.userAgent),a=s.data||[];for(P(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(t){(o=s[t])&&o.series&&(C(o.series,s),o.isDirty=o.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();s.clips&&s.clips.forEach(function(t){return t.destroy()}),l.clearTimeout(s.animationTimeout),B(s,function(t,e){t instanceof h&&!t.survive&&t[n&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===s&&(r.hoverSeries=void 0),C(r.series,s),r.orderSeries(),B(s,function(e,i){t&&"hcEvents"===i||delete s[i]})},t.prototype.applyZones=function(){var t,e,i,o,s,r,n,a,h=this,l=this.chart,c=l.renderer,d=this.zones,p=this.clips||[],u=this.graph,f=this.area,g=Math.max(l.plotWidth,l.plotHeight),m=this[(this.zoneAxis||"y")+"Axis"],v=l.inverted,x=!1;if(d.length&&(u||f)&&m&&void 0!==m.min){var y=m.reversed,S=m.horiz;u&&!this.showLine&&u.hide(),f&&f.hide();var M=m.getExtremes();d.forEach(function(d,k){t=y?S?l.plotWidth:0:S?0:m.toPixels(M.min)||0,t=b(I(e,t),0,g),e=b(Math.round(m.toPixels(I(d.value,M.max),!0)||0),0,g),x&&(t=e=m.toPi
1xels(M.max)),o=Math.abs(t-e),s=Math.min(t,e),r=Math.max(t,e),m.isXAxis?(i={x:v?r:s,y:0,width:o,height:g},S||(i.x=l.plotHeight-i.x)):(i={x:0,y:v?r:s,width:g,height:o},S&&(i.y=l.plotWidth-i.y)),v&&c.isVML&&(i=m.isXAxis?{x:0,y:y?s:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),p[k]?p[k].animate(i):p[k]=c.clipRect(i),n=h["zone-area-"+k],a=h["zone-graph-"+k],u&&a&&a.clip(p[k]),f&&n&&n.clip(p[k]),x=d.value>M.max,h.resetZones&&0===e&&(e=void 0)}),this.clips=p}else h.visible&&(u&&u.show(),f&&f.show())},t.prototype.plotGroup=function(t,e,i,o,s){var r=this[t],n=!r;return i={visibility:i,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(s)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(k(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"attr":"animate"](this.getPlotBox(e)),r},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart;return t=o.inverted&&!o.polar&&e&&!1!==this.invertible&&"series"===t,o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-i.len)/2:0,rotationOriginY:t?(e.len+i.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||R(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=c(i.animation),s=t.visible?"inherit":"hidden",r=i.zIndex,n=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?o.duration:0,P(this,"render"),t.plotGroup("group","series",s,r,a),t.markerGroup=t.plotGroup("markerGroup","markers",s,r,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),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.animate&&e&&t.animate(),n||(e&&o.defer&&(e+=o.defer),t.animationTimeout=G(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,P(t,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,o,s){var r=t&&t.length;if(r){var n=i.kdAxisArray[o%s];return t.sort(function(t,e){return t[n]-e[n]}),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),o+1,s),right:e(t.slice(r+1),o+1,s)}}}this.buildingKdTree=!0;var i=this,o=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,G(function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),o,o),i.buildingKdTree=!1},i.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,i){var o=this,s=this.kdAxisArray[0],r=this.kdAxisArray[1],n=e?"distX":"dist";if(e=-1<o.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=o.kdAxisArray[a%h],d=l,p=k(e[s])&&k(l[s])?Math.pow(e[s]-l[s],2):null,u=k(e[r])&&k(l[r])?Math.pow(e[r]-l[r],2):null;return u=(p||0)+(u||0),l.dist=k(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=k(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)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),E(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(o?o.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,o=[].concat(i?t.areaPath:t.graphPath),s=t.chart,r=s.pointer,n=s.renderer,a=s.options.tooltip.snap,h=t.tracker,l=function(e){s.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(g?1e-4:.002)+")";h?h.attr({d:o}):t.graph&&(t.tracker=n.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),s.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}
1),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){r.onTrackerMouseOut(t)}),e.cursor&&!s.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",l)})),P(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,s){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=I(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.processedData)&&(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!==s&&P(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,s=o.data,r=s[t],n=o.points,a=o.chart,h=function(){n&&n.length===s.length&&n.splice(t,1),s.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(r||{series:o},"splice",t,1),r&&r.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&a.redraw()};d(i,a),e=I(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),I(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?P(r,"remove",null,s):s()},t.prototype.update=function(t,e){t=S(t,this.userOptions),P(this,"update",{options:t});var i=this,o=i.chart,s=i.userOptions,r=i.initialType||i.type,n=o.options.plotOptions,a=v[r].prototype,h=i.finishedAnimating&&{animation:!1},l={},c=["eventOptions","navigatorSeries","baseSeries"],d=t.type||s.type||o.options.chart.type,p=!(this.hasDerivedData||d&&d!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(d=d||r,p&&(c.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&c.push("area","graph"),i.parallelArrays.forEach(function(t){c.push(t+"Data")}),t.data&&(t.dataSorting&&A(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=j(s,h,{index:void 0===s.index?i.index:s.index,pointStart:I(n&&n.series&&n.series.pointStart,s.pointStart,i.xData[0])},!p&&{data:i.options.data},t),p&&t.data&&(t.data=i.options.data),(c=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(c)).forEach(function(t){c[t]=i[t],delete i[t]}),n=!1,v[d]){if(n=d!==i.type,i.remove(!1,!1,!1,!0),n)if(Object.setPrototypeOf)Object.setPrototypeOf(i,v[d].prototype);else{for(u in h=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,a)i[u]=void 0;A(i,v[d].prototype),h?i.hcEvents=h:delete i.hcEvents}}else w(17,!0,o,{missingModuleFor:d});if(c.forEach(function(t){i[t]=c[t]}),i.init(o,t),p&&this.points){if(!1===(t=i.options).visible)l.graphic=1,l.dataLabel=1;else if(!i._hasPointLabels){a=t.marker;var u=t.dataLabels;s=s.marker||{},!a||!1!==a.enabled&&s.symbol===a.symbol&&s.height===a.height&&s.width===a.width||(l.graphic=1),u&&!1===u.enabled&&(l.dataLabel=1)}for(s=0,a=this.points;s<a.length;s++)(u=a[s])&&u.series&&(u.resolveColor(),Object.keys(l).length&&u.destroyElements(l),!1===t.showInLegend&&u.legendItem&&o.legend.destroyItem(u))}i.initialType=r,o.linkSeries(),n&&i.linkedSeries.length&&(i.isDirtyData=!0),P(this,"afterUpdate"),I(e,!0)&&o.redraw(!!p&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],i=this.chart.options.plotOptions,o=this.userOptions[t];return o?e!==o:e!==I(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&P(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEac
1h(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i=this,o=i.options,s=i.graph,r=o.inactiveOtherPoints,n=o.states,a=I(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation),h=o.lineWidth,l=0,c=o.opacity;if(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&&(h=n[t].lineWidth||h+(n[t].lineWidthPlus||0),c=I(n[t].opacity,c)),s&&!s.dashstyle&&E(h))for(o={"stroke-width":h},s.animate(o,a);i["zone-graph-"+l];)i["zone-graph-"+l].animate(o,a),l+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},a)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var i=this,o=i.chart,s=o.options.chart.ignoreHiddenSeries,r=i.visible,n=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][n]()}),o.hoverSeries!==i&&(o.hoverPoint&&o.hoverPoint.series)!==i||i.onMouseOut(),i.legendItem&&o.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&o.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),s&&(o.isDirtyBox=!0),P(i,n),!1!==e&&o.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),P(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.defaultOptions=n,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),A(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:s.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=t,t}),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r){var n=t.stop,a=r.addEvent,h=r.createElement,l=r.defined,c=r.merge,d=r.pick;a(i,"afterSetChartSize",function(t){var i=this.options.chart.scrollablePlotArea,o=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(o){if(this.scrollablePixelsX=o=Math.max(0,o-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=o,this.inverted?this.clipBox.height+=o:this.clipBox.width+=o;var s={1:{name:"right",value:o}}}}else i&&(this.scrollablePixelsY=o=Math.max(0,i-this.chartHeight),l(o)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=o,this.inverted?this.clipBox.width+=o:this.clipBox.height+=o,s={2:{name:"bottom",value:o}}));s&&!t.skipAxes&&this.axes.forEach(function(t){s[t.side]?t.getPlotLinePath=function(){var i=s[t.side].name,o=this[i];this[i]=o-s[t.side].value;var r=e.prototype.getPlotLinePath.apply(this,arguments);return this[i]=o,r}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(i,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),i.prototype.setUpScrolling=function(){var t,e=this,i={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(i.overflowX="auto"),this.scrollablePixelsY&&(i.overflowY="auto"),this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},i,this.scrollingParent),a(this.scrollingContainer,"scroll",function(){e.pointer&&(delete e.pointer.chartPosition,e.hoverPoint&&(t=e.hoverPoint),e.pointer.runPointActions(void 0,t,!0))}),this.innerContainer=h("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,o=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&o.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),o.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"})})},i.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea,o=s.getRendererType();t?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||
10)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new o(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),o=this.chartHeight+(this.scrollablePixelsY||0),n(this.container),this.container.style.width=e+"px",this.container.style.height=o+"px",this.renderer.boxWrapper.attr({width:e,height:o,viewBox:[0,0,e,o].join(" ")}),this.chartBackground.attr({width:e,height:o}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),o=this.axisOffset,t=this.plotTop-o[0]-1,i=this.plotLeft-o[3]-1,e=this.plotTop+this.plotHeight+o[2]+1,o=this.plotLeft+this.plotWidth+o[1]+1;var r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",r,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",r,e],["Z"]]:this.scrollablePixelsY?[["M",i,0],["L",i,this.plotTop-1],["L",o,this.plotTop-1],["L",o,0],["Z"],["M",i,l],["L",i,this.chartHeight],["L",o,this.chartHeight],["L",o,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",function(){this.chart.scrollableDirty=!0}),a(o,"show",function(){this.chart.scrollableDirty=!0})}),e(i,"Core/Axis/Stacking/StackItem.js",[i["Core/FormatUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o=t.format,s=e.series,r=i.destroyObjectProperties,n=i.pick,a=i.isNumber;return t=function(){function t(t,e,i,o,s){var r=t.chart.inverted,n=t.reversed;this.axis=t,t=this.isNegative=!!i!=!!n,this.options=e=e||{},this.x=o,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":t?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?t?"right":"left":"center")}return t.prototype.destroy=function(){r(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,s=i.format;s=s?o(s,this,e):i.formatter.call(this),this.label?this.label.attr({text:s,visibility:"hidden"}):(this.label=e.renderer.label(s,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels"),s={r:i.borderRadius||0,text:s,padding:n(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.plotSizeY},t.prototype.setOffset=function(t,e,i,o,r,h){var l=this.alignOptions,c=this.axis,d=this.label,p=this.options,u=this.textAlign,f=c.chart;t=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:h}),r=l.verticalAlign,d&&t&&(e=d.getBBox(),i=d.padding,o="justify"===n(p.overflow,"justify"),l.x=p.x||0,l.y=p.y||0,u=(r=this.adjustStackPosition({labelBox:e,verticalAlign:r,textAlign:u})).x,r=r.y,t.x-=u,t.y-=r,d.align(l,!1,t),(u=f.isInsidePlot(d.alignAttr.x+l.x+u,d.alignAttr.y+l.y+r))||(o=!1),o&&s.prototype.justifyDataLabel.call(c,d,l,d.alignAttr,e,t),d.attr({x:d.alignAttr.x,y:d.alignAttr.y,rotation:p.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),n(!o&&p.crop,!0)&&(u=a(d.x)&&a(d.y)&&f.isInsidePlot(d.x-i+d.width,d.y)&&f.isInsidePlot(d.x+i,d.y)),d[u?"show":"hide"]())},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i={bottom:0,middle:1,top:2,right:1,center:0,left:-1}
1;return{x:e.width/2+e.width/2*i[t.textAlign],y:e.height/2*i[t.verticalAlign]}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,s=t.defaultX,r=t.xOffset,a=t.width,h=t.boxBottom;return o=e.stacking.usePercentage?100:n(o,this.total,0),o=e.toPixels(o),t=n(s,(t.xAxis||i.xAxis[0]).toPixels(this.x))+r,e=e.toPixels(h||0),e=Math.abs(o-e),h=this.isNegative,i.inverted?{x:(h?o:o-e)-i.plotLeft,y:t-i.plotTop,width:e,height:a}:{x:t-i.plotLeft,y:(h?o-e:o)-i.plotTop,width:a,height:e}},t}(),t}),e(i,"Core/Axis/Stacking/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){function r(){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 o=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?o.top:o.left,e?o.height:o.width].join())})}function n(){var t=this.stacking;if(t){var e=t.stacks;k(e,function(t,i){y(t),e[i]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){"yAxis"!==this.coll||this.stacking||(this.stacking=new w(this))}function h(t,e,i,o){return!x(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(),t}function l(){var t,e=this,i=e.stackKey,o=e.yAxis.stacking.stacks,s=e.processedXData,r=e[e.options.stacking+"Stacker"];r&&[i,"-"+i].forEach(function(i){for(var n,a,h=s.length;h--;)n=s[h],t=e.getStackIndicator(t,n,e.index,i),(a=(n=o[i]&&o[i][n])&&n.points[t.key])&&r.call(e,a,n,h)})}function c(t,e,i){e=e.total?100/e.total:0,t[0]=v(t[0]*e),t[1]=v(t[1]*e),this.stackedYData[i]=t[1]}function d(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?g.setStackedPoints.call(this,"group"):t&&k(t.stacks,function(e,i){"group"===i.slice(-5)&&(k(e,function(t){return t.destroy()}),delete t.stacks[i])})}function p(t){var e=this.chart,i=t||this.options.stacking;if(i&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var s=this.processedXData,r=this.processedYData,n=[],a=r.length,h=this.options,l=h.threshold,c=C(h.startFromThreshold&&l,0);h=h.stack;var d,p,u="-"+(t=t?""+this.type+",".concat(i):this.stackKey),f=this.negStacks,g=(e="group"===i?e.yAxis[0]:this.yAxis).stacking.stacks,m=e.stacking.oldStacks;for(e.stacking.stacksTouched+=1,p=0;p<a;p++){var y=s[p],b=r[p],M=this.getStackIndicator(M,y,this.index),k=M.key,w=(d=f&&b<(c?0:l))?u:t;g[w]||(g[w]={}),g[w][y]||(m[w]&&m[w][y]?(g[w][y]=m[w][y],g[w][y].total=null):g[w][y]=new o(e,e.options.stackLabels,!!d,y,h)),w=g[w][y],null!==b?(w.points[k]=w.points[this.index]=[C(w.cumulative,c)],x(w.cumulative)||(w.base=k),w.touched=e.stacking.stacksTouched,0<M.index&&!1===this.singleStacks&&(w.points[k][0]=w.points[this.index+","+y+",0"][0])):w.points[k]=w.points[this.index]=null,"percent"===i?(d=d?t:u,f&&g[d]&&g[d][y]?(d=g[d][y],w.total=d.total=Math.max(d.total,w.total)+Math.abs(b)||0):w.total=v(w.total+(Math.abs(b)||0))):"group"===i?(S(b)&&(b=b[0]),null!==b&&(w.total=(w.total||0)+1)):w.total=v(w.total+(b||0)),w.cumulative="group"===i?(w.total||1)-1:C(w.cumulative,c)+(b||0),null!==b&&(w.points[k].push(w.cumulative),n[p]=w.cumulative,w.hasValidPoints=!0)}"percent"===i&&(e.stacking.usePercentage=!0),"group"!==i&&(this.stackedYData=n),e.stacking.oldStacks={}}}var u,f=t.getDeferredAnimation,g=i.series.prototype,m=s.addEvent,v=s.correctFloat,x=s.defined,y=s.destroyObjectProperties,b=s.fireEvent,S=s.isArray,M=s.isNumber,k=s.objectEach,C=s.pick,w=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,o=e.options.reversedStacks,s=i.length;for(this.usePercentage=!1,t=s;t--;){var r=i[o?t:s-t-1];r.setStackedPoints(),r.setGroupedPoints()}for(t=0;t<s;t++)i[t].modifyStacks();b(e,"afterBuildStacks")},t.prototype.cleanStacks=function(){if(this.oldStacks)var t=this.stacks=this.oldStacks;k(t,function(t){k(t,function(t){t.cumulative=t.total})})},t.prototype.resetStacks=function(){var t=this;k(this.stacks,function(e){k(e,function(i,o){M(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,i=e.renderer,o=this.stacks;t=f(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var s=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}
1).add();s.translate(e.plotLeft,e.plotTop),k(o,function(t){k(t,function(t){t.render(s)})}),s.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,i,o){-1===e.indexOf(t)&&(e.push(t),m(t,"init",a),m(t,"destroy",n)),-1===e.indexOf(i)&&(e.push(i),i.prototype.getStacks=r),-1===e.indexOf(o)&&(e.push(o),(t=o.prototype).getStackIndicator=h,t.modifyStacks=l,t.percentStacker=c,t.setGroupedPoints=d,t.setStackedPoints=p)}}(u||(u={})),u}),e(i,"Series/Line/LineSeries.js",[i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=i.defined,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode,s=[["graph","highcharts-graph"]];o||s[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(s=t.getZonesGraphs(s)).forEach(function(s,r){var n=s[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(s[1]).attr({zIndex:1}).add(t.group)),a&&!o&&(n={stroke:s[2],"stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},s[3]?n.dashstyle=s[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)})},i.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,a=[],h=[],l=n.step,c=(t=t||r.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach(function(c,d){var p=c.plotX,u=c.plotY,f=t[d-1];(c.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),c.isNull&&!s(e)&&0<d?o=!n.connectNulls:c.isNull&&!e?o=!0:(0===d||o?d=[["M",c.plotX,c.plotY]]:r.getPointSpline?d=[r.getPointSpline(t,c,d)]:l?(d=1===l?[["L",f.plotX,u]]:2===l?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):d=[["L",p,u]],h.push(c.x),l&&(h.push(c.x),2===l&&h.push(c.x)),a.push.apply(a,d),o=!1)}),a.xMap=h,r.graphPath=a},i.prototype.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},i.defaultOptions=r(t.defaultOptions,{}),i}(t),e.registerSeriesType("line",i),i}),e(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=t.parse,n=i.seriesTypes.line;t=o.extend;var a=o.merge,h=o.objectEach,l=o.pick;return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,o=this.options,s=[["area","highcharts-area",this.color,o.fillColor]];this.zones.forEach(function(t,i){s.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||o.fillColor])}),s.forEach(function(t){var s=t[0],n={},a=e[s],h=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:i.xMap,a.animate({d:i})):(n.zIndex=0,(a=e[s]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(n.fill=l(t[3],r(t[2]).setOpacity(l(o.fillOpacity,.75)).get())),a[h](n),a.startX=i.xMap,a.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e=n.prototype.getGraphPath,i=this.options,o=i.stacking,s=this.yAxis,r=[],a=[],h=this.index,c=s.stacking.stacks[this.stackKey],d=i.threshold,p=Math.round(s.getThreshold(i.threshold));i=l(i.connectNulls,"percent"===o);var u=function(e,i,n){var l=t[e];e=o&&c[l.x].points[h];var u=l[n+"Null"]||0;if(n=l[n+"Cliff"]||0,l=!0,n||u){var f=(u?e[0]:e[1])+n,g=e[0]+n;l=!!u}else!o&&t[i]&&t[i].isNull&&(f=g=d);void 0!==f&&(a.push({plotX:v,plotY:null===f?p:s.getThreshold(f),isNull:l,isCliff:!0}),r.push({plotX:v,plotY:null===g?p:s.getThreshold(g),doCurve:!1}))};t=t||this.points,o&&(t=this.getStackPoints(t));for(var f=0,g=t.length;f<g;
1++f){o||(t[f].leftCliff=t[f].rightCliff=t[f].leftNull=t[f].rightNull=void 0);var m=t[f].isNull,v=l(t[f].rectPlotX,t[f].plotX),x=o?l(t[f].yBottom,p):p;m&&!i||(i||u(f,f-1,"left"),m&&!o&&i||(a.push(t[f]),r.push({x:f,plotX:v,plotY:x})),i||u(f,f+1,"right"))}return u=e.call(this,a,!0,!0),r.reversed=!0,(x=(m=e.call(this,r,!0,!0))[0])&&"M"===x[0]&&(m[0]=["L",x[1],x[2]]),(m=u.concat(m)).length&&m.push(["Z"]),e=e.call(this,a,!1,i),m.xMap=u.xMap,this.areaPath=m,e},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],s=this.xAxis,r=this.yAxis,n=r.stacking.stacks[this.stackKey],a={},c=r.series,d=c.length,p=r.options.reversedStacks?1:-1,u=c.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,a[t[f].x]=t[f];h(n,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var g=c.map(function(t){return t.visible});o.forEach(function(t,h){var f,m,v=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var s=1===i?"rightNull":"leftNull",r=n[o[h+i]],l=0;if(r)for(var v=u;0<=v&&v<d;){var x=c[v].index;(f=r.points[x])||(x===e.index?a[t][s]=!0:g[v]&&(m=n[t].points[x])&&(l-=m[1]-m[0])),v+=p}a[t][1===i?"rightCliff":"leftCliff"]=l});else{for(var x=u;0<=x&&x<d;){if(f=n[t].points[c[x].index]){v=f[1];break}x+=p}v=l(v,0),v=r.translate(v,0,1,0,1),i.push({isNull:!0,plotX:s.translate(t,0,0,0,1),x:t,plotY:v,yBottom:v})}})}return i},e.defaultOptions=a(n.defaultOptions,{threshold:0}),e}(n),t(o.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("area",o),o}),e(i,"Series/Spline/SplineSeries.js",[i["Core/Series/SeriesRegistry.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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=t.seriesTypes.line,s=e.merge,r=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.getPointSpline=function(t,e,i){var o=e.plotX||0,s=e.plotY||0,n=t[i-1];if(i=t[i+1],n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=n.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*o+(n.plotX||0))/2.5,c=(1.5*s+t)/2.5,d=(1.5*s+i)/2.5;(a=(1.5*o+a)/2.5)!==l&&(h=(d-c)*(a-o)/(a-l)+s-d),d+=h,(c+=h)>t&&c>s?d=2*s-(c=Math.max(t,s)):c<t&&c<s&&(d=2*s-(c=Math.min(t,s))),d>i&&d>s?c=2*s-(d=Math.max(i,s)):d<i&&d<s&&(c=2*s-(d=Math.min(i,s))),e.rightContX=a,e.rightContY=d}return e=["C",r(n.rightContX,n.plotX,0),r(n.rightContY,n.plotY,0),r(l,o,0),r(c,s,0),o,s],n.rightContX=n.rightContY=void 0,e},e.defaultOptions=s(o.defaultOptions),e}(o),t.registerSeriesType("spline",e),e}),e(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Spline/SplineSeries.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=i.seriesTypes,n=r.area;r=r.area.prototype;var a=o.extend,h=o.merge;return o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return s(i,e),i.defaultOptions=h(t.defaultOptions,n.defaultOptions),i}(t),a(o.prototype,{getGraphPath:r.getGraphPath,getStackPoints:r.getStackPoints,drawGraph:r.drawGraph,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("areaspline",o),o}),e(i,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{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"}}),e(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Series/Column/ColumnSeriesDefaults.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,
1i,o,s,r,n,a){var h=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),l=t.animObject,c=e.parse,d=o.hasTouch;t=o.noop;var p=a.clamp,u=a.defined,f=a.extend,g=a.fireEvent,m=a.isArray,v=a.isNumber,x=a.merge,y=a.pick,b=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return h(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,o=e.options,s=this.chart.inverted,r={},n=s?"translateX":"translateY";if(t)r.scaleY=.001,t=p(i.toPixels(o.threshold),i.pos,i.pos+i.len),s?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var a=Number(e.group.attr(n));e.group.animate({scaleY:1},f(l(e.options.animation),{step:function(t,o){e.group&&(r[n]=a+o.pos*(i.pos-a),e.group.attr(r))}}))}},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,i=t.xAxis,o=t.yAxis,s=i.options.reversedStacks;s=i.reversed&&!s||!i.reversed&&s;var r,n={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var i=e.yAxis,s=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&o.len===i.len&&o.pos===i.pos){if(s.stacking&&"group"!==s.stacking){r=e.stackKey,void 0===n[r]&&(n[r]=a++);var h=n[r]}else!1!==s.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,y(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(s?1:0))*c-h/2)*(s?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var s=this.chart,r=this.borderWidth,n=-(r%2?.5:0);return r=r%2?.5:1,s.inverted&&s.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+n,i-=t=Math.round(t)+n),o=Math.round(e+o)+r,n=.5>=Math.abs(e)&&.5<o,o-=e=Math.round(e)+r,n&&o&&(--e,o+=1),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var s=this,r=this.options.stacking;if(!i.isNull&&1<o.columnCount){var n=this.yAxis.options.reversedStacks,a=0,h=n?0:-o.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof i.x){var e=t[i.x.toString()];e&&(t=e.points[s.index],r?(t&&(a=h),e.hasValidPoints&&(n?h++:h--)):m(t)&&(t=Object.keys(e.points).filter(function(t){return!t.match(",")&&e.points[t]&&1<e.points[t].length}).map(parseFloat).sort(function(t,e){return e-t}),a=t.indexOf(s.index),h=t.length))}}),t=(i.plotX||0)+((h-1)*o.paddedWidth+e)/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=y(i.borderWidth,o?0:1);var s=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),l=y(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,f=t.pointXOffset=c.offset,g=t.dataMin,m=t.dataMax,x=t.barW=Math.max(d,1+2*o);e.inverted&&(h-=.5),i.pointPadding&&(x=Math.ceil(x)),r.prototype.translate.apply(t),t.points.forEach(function(o){var r=y(o.yBottom,h),b=999+Math.abs(r),S=o.plotX||0;b=p(o.plotY,-b,n.len+b);var M=Math.min(b,r),k=Math.max(b,r)-M,C=d,w=S+f,A=x;l&&Math.abs(k)<l&&(k=l,S=!n.reversed&&!o.negative||n.reversed&&o.negative,v(a)&&v(m)&&o.y===a&&m<=a&&(n.min||0)<a&&(g!==m||(n.max||0)<=a)&&(S=!S),M=Math.abs(M-h)>l?r-l:h-(S?l:0)),u(o.options.pointWidth)&&(C=A=Math.ceil(o.options.pointWidth),w-=Math.round((C-d)/2)),i.centerInCategory&&(w=t.adjustForMissingColumns(w,C,o,c)),o.barX=w,o.pointWidth=C,o.tooltipPos=e.inverted?[p(n.len+n.pos-e.plotLeft-b,n.pos-e.plotLeft,n.len+n.pos-e.plotLeft),s.len+s.pos-e.plotTop-w-A/2,k]:[s.left-e.plotLeft+w+A/2,p(b+n.pos-e.plotTop,n.pos-e.plotTop,n.len+n.pos-e.plotTop),k],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[w,h,A,0]:[w,M,A,k])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,o=this.pointAttrToOptions||{},s=o.stroke||"borderColor",r=o["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[s]||i[s]||n;o=t&&t.options.dashStyle||i.dashStyle;var h=t&&t[r]||i[r]||this[r]||0,l=y(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,o=d.dashStyle||o,h=d.borderWidth||h)}return e&&t&&(e=(t=x(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=t.color||void 0!==e&&c(n).brighten(t.brightness).get()||n,a=t[s]||a,h=t[r]||h,o=t.dashStyle||o,l=y(t.opacity,l)),s={fill:n,stroke:a,"stroke-width":h,opacity:l},o&&(s.dashstyle=o),s},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,s=i.options,r=o.renderer,n=s.animationLimit||250;t.forEach(function(t){var a=t.graphic,h=!!a,l=a&&o.pointCount<n?"animate":"attr";v(t.plotY)&&null!==t.y?(e=t.shapeArgs,a&&t.hasNewShapeType()&&(a=a.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),a||(t.graphic=a=r[t.shapeType](e).add(t.group||i.group))&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<n&&(a.attr({x:t.startXPos}),h=!0,l="animate"),a&&h&&a[l](x(e)),s.borderRadius&&a[l]({r:s.borderRadius}),o.styledMode||a[l](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&s.shadow,null,s.stacking&&!s.borderRadius),a&&(a.addClass(t.getClassName(),!0),a.attr({visibility:t.visible?"inherit":"hidden"}))):a&&(t.graphic=a.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i=this,o=i.chart,s=o.pointer,r=function(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=m(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){e.div?e.div.point=t:e.element.point=t})}),i._hasTracking||(i.trackerGroups.forEach(function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(t){s.onTrackerMouseOut(t)}),d&&i[t].on("touchstart",r),!o.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))}),i._hasTracking=!0),g(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;
1e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),r.prototype.remove.apply(t,arguments)},e.defaultOptions=x(r.defaultOptions,i),e}(r),f(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:s.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("column",a),a}),e(i,"Core/Series/DataLabel.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=t.getDeferredAnimation,r=e.format,n=i.defined,a=i.extend,h=i.fireEvent,l=i.isArray,c=i.isString,d=i.merge,p=i.objectEach,u=i.pick,f=i.splat;return function(t){function e(t,e,i,o,s){var r=this,h=this.chart,l=this.isCartesian&&h.inverted,c=this.enabledDataSorting,d=t.plotX,p=t.plotY,f=i.rotation,g=i.align,m=n(d)&&n(p)&&h.isInsidePlot(d,Math.round(p),{inverted:l,paneCoordinates:!0,series:r});p=function(i){c&&r.xAxis&&!v&&r.setDataLabelStartPos(t,e,s,m,i)};var v="justify"===u(i.overflow,c?"none":"justify");if(d=this.visible&&!1!==t.visible&&n(d)&&(t.series.forceDL||c&&!v||m||u(i.inside,!!this.options.stacking)&&o&&h.isInsidePlot(d,l?o.x+1:o.y+o.height-1,{inverted:l,paneCoordinates:!0,series:r})),l=t.pos(),d&&l){f&&e.attr({align:g}),g=e.getBBox(!0);var x=[0,0],y=h.renderer.fontMetrics(h.styledMode?void 0:i.style.fontSize,e).b;o=a({x:l[0],y:Math.round(l[1]),width:0,height:0},o),a(i,{width:g.width,height:g.height}),f?(v=!1,x=h.renderer.rotCorr(y,f),y={x:o.x+(i.x||0)+o.width/2+x.x,y:o.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*o.height},x=[g.x-Number(e.attr("x")),g.y-Number(e.attr("y"))],p(y),e[s?"attr":"animate"](y)):(p(o),e.align(i,void 0,o),y=e.alignAttr),v&&0<=o.height?this.justifyDataLabel(e,i,y,g,o,s):u(i.crop,!0)&&(o=y.x,p=y.y,o+=x[0],p+=x[1],d=h.isInsidePlot(o,p,{paneCoordinates:!0,series:r})&&h.isInsidePlot(o+g.width,p+g.height,{paneCoordinates:!0,series:r})),i.shape&&!f&&e[s?"attr":"animate"]({anchorX:l[0],anchorY:l[1]})}s&&c&&(e.placed=!1),d||c&&!v?e.show():(e.hide(),e.placed=!1)}function i(t){void 0===t&&(t=this.points);var e=this,i=e.chart,o=e.options,a=e.hasRendered||0,d=i.renderer,m=i.options.chart,v=m.backgroundColor;
1m=m.plotBackgroundColor;var x=d.getContrast(c(m)&&m||c(v)&&v||"#000000"),y=o.dataLabels;if(v=y.animation,v=y.defer?s(i,v,e):{defer:0,duration:0},y=g(g(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),y),h(this,"drawDataLabels"),l(y)||y.enabled||e._hasPointLabels){var b=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",y.zIndex||6);b.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&b.show(),a[o.animation?"animate":"attr"]({opacity:1},v)),t.forEach(function(t){f(g(y,t.dlOptions||t.options&&t.options.dataLabels)).forEach(function(s,a){var h=s.enabled&&(!t.isNull||t.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)}(t,s),l=t.connectors?t.connectors[a]:t.connector,c=t.dataLabels?t.dataLabels[a]:t.dataLabel,f=!c,g=u(s.distance,t.labelDistance);if(h){var m=t.getLabelConfig(),v=u(s[t.formatPrefix+"Format"],s.format);m=n(v)?r(v,m,i):(s[t.formatPrefix+"Formatter"]||s.formatter).call(m,s),v=s.style;var y=s.rotation;i.styledMode||(v.color=u(s.color,v.color,e.color,"#000000"),"contrast"===v.color?(t.contrastColor=d.getContrast(t.color||e.color),v.color=!n(g)&&s.inside||0>g||o.stacking?t.contrastColor:x):delete t.contrastColor,o.cursor&&(v.cursor=o.cursor));var S={r:s.borderRadius||0,rotation:y,padding:s.padding,zIndex:1};if(!i.styledMode){g=s.backgroundColor;var M=s.borderColor;S.fill="auto"===g?t.color:g,S.stroke="auto"===M?t.color:M,S["stroke-width"]=s.borderWidth}p(S,function(t,e){void 0===t&&delete S[e]})}!c||h&&n(m)&&!!c.div==!!s.useHTML&&(c.rotation&&s.rotation||c.rotation===s.rotation)||(f=!0,t.dataLabel=c=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,l&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),h&&n(m)?(c?S.text=m:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[a]=y?d.text(m,0,0,s.useHTML).addClass("highcharts-data-label"):d.label(m,0,0,s.shape,null,null,s.useHTML,null,"data-label"),a||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(s.className||"")+(s.useHTML?" highcharts-tracker":""))),c.options=s,c.attr(S),i.styledMode||c.css(v).shadow(s.shadow),(a=s[t.formatPrefix+"TextPath"]||s.textPath)&&!s.useHTML&&(c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,a),t.dataLabelPath&&!a.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),c.added||c.add(b),e.alignDataLabel(t,c,s,null,f)):c&&c.hide()})})}h(this,"afterDrawDataLabels")}function o(t,e,i,o,s,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;d=void 0===d?0:d;var p=(i.x||0)+l;if(0>p){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=p;var u=!0}return(p=(i.x||0)+o.width-l)>n.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=n.plotWidth-p,u=!0),0>(p=i.y+l)&&("bottom"===h&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=p,u=!0),(p=(i.y||0)+o.height-l)>n.plotHeight&&("top"===h&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=n.plotHeight-p,u=!0),u&&(e.x=c,e.y=d,t.placed=!r,t.align(e,void 0,s)),u}function g(t,e){var i,o=[];if(l(t)&&!l(e))o=t.map(function(t){return d(t,e)});else if(l(e)&&!l(t))o=e.map(function(e){return d(t,e)});else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)o[i]=d(t[i],e[i]);else o=d(t,e);return o}function m(t,e,i,o,s){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,e.startXPos=n?s.x:h?-l-t:a.width-l+t,e.startYPos=n?h?this.yAxis.height-l+t:-l-t:s.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0}
1,void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var v=[];t.compose=function(t){if(-1===v.indexOf(t)){var s=t.prototype;v.push(t),s.alignDataLabel=e,s.drawDataLabels=i,s.justifyDataLabel=o,s.setDataLabelStartPos=m}}}(o||(o={})),o}),e(i,"Series/Column/ColumnDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=e.series,r=i.merge,n=i.pick;return function(e){function i(t,e,i,o,a){var h=this.chart.inverted,l=t.series,c=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=t.dlBox||t.shapeArgs,p=n(t.below,t.plotY>n(this.translatedThreshold,l)),u=n(i.inside,!!this.options.stacking);d&&(0>(o=r(d)).y&&(o.height+=o.y,o.y=0),0<(d=o.y+o.height-l)&&d<o.height&&(o.height-=d),h&&(o={x:l-o.y-o.height,y:c-o.x-o.width,width:o.height,height:o.width}),u||(h?(o.x+=p?0:o.width,o.width=0):(o.y+=p?o.height:0,o.height=0))),i.align=n(i.align,!h||u?"center":p?"right":"left"),i.verticalAlign=n(i.verticalAlign,h||u?"middle":p?"top":"bottom"),s.prototype.alignDataLabel.call(this,t,e,i,o,a),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var o=[];e.compose=function(e){t.compose(s),-1===o.indexOf(e)&&(o.push(e),e.prototype.alignDataLabel=i)}}(o||(o={})),o}),e(i,"Series/Bar/BarSeries.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=i.extend,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.defaultOptions=r(t.defaultOptions,{}),i}(t),s(i.prototype,{inverted:!0}),e.registerSeriesType("bar",i),i}),e(i,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{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/>"}}}),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Scatter/ScatterSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.seriesTypes,r=s.column,n=s.line;s=i.addEvent;var a=i.extend,h=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,s){["x","y"].forEach(function(r,n){var a="plot"+r.toUpperCase();if(e[r]&&!o.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,o[a]-l);h=Math.min(h.len,o[a]+l),n=1e4*Math.sin(s+n*i),o[a]=c+(h-c)*(n-Math.floor(n)),"x"===r&&(o.clientX=o.plotX)}}})})},i.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},i.defaultOptions=h(n.defaultOptions,t),i}(n),a(i.prototype,{drawTracker:r.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),s(i,"afterTranslate",function(){this.applyJitter()}),e.registerSeriesType("scatter",i),i}),e(i,"Series/CenteredUtilities.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e,
1i){var o,s=t.deg2rad,r=i.fireEvent,n=i.isNumber,a=i.pick,h=i.relativeLength;return function(t){t.getCenter=function(){var t=this.options,i=this.chart,o=2*(t.slicedOffset||0),s=i.plotWidth-2*o,l=i.plotHeight-2*o,c=t.center,d=Math.min(s,l),p=t.thickness,u=t.size,f=t.innerSize||0;for("string"==typeof u&&(u=parseFloat(u)),"string"==typeof f&&(f=parseFloat(f)),t=[a(c[0],"50%"),a(c[1],"50%"),a(u&&0>u?void 0:t.size,"100%"),a(f&&0>f?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),c=0;4>c;++c)u=t[c],i=2>c||2===c&&/%$/.test(u),t[c]=h(u,[s,l,d,t[2]][c])+(i?o:0);return t[3]>t[2]&&(t[3]=t[2]),n(p)&&2*p<t[2]&&0<p&&(t[3]=t[2]-2*p),r(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:s*(t+-90),end:s*(e+-90)}}}(o||(o={})),o}),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i){var o=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.setAnimation,r=i.addEvent,n=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return o(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,o=e.connectorShape;return i[o]&&(o=i[o]),o.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.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})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=h(this.name,"Slice");var i=function(t){e.slice("select"===t.type)};return r(this,"select",i),r(this,"unselect",i),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var i=this,o=this.series,s=o.chart,r=o.options.ignoreHiddenPoint;e=h(e,r),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,o.options.data[o.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](t)}),this.legendItem&&s.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),r&&(o.isDirty=!0),e&&s.redraw())},e.prototype.slice=function(t,e,i){var o=this.series;s(i,o.chart),h(e,!0),this.sliced=this.options.sliced=n(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:["L",o.x,o.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 o=this.series,s=o.center[0],r=o.chart.plotWidth,n=o.chart.plotLeft;o=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",r="left"===o?s+a+(r+n-s-a)*(1-i):n+(s-a)*i,t.y],s=!0,("left"===o?r>t.x||r<e.x:r<t.x||r>e.x)&&(s=!1),t=[["M",t.x,t.y]],s&&t.push(i),t.push(["L",e.x,e.y]),t}}}),e}),e(i,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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,legendT
1ype:"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}}}}),e(i,"Series/Pie/PieSeries.js",[i["Series/CenteredUtilities.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Series/Pie/PiePoint.js"],i["Series/Pie/PieSeriesDefaults.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h,l){var c=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),d=t.getStartAndEndRadians;i=i.noop;var p=l.clamp,u=l.extend,f=l.fireEvent,g=l.merge,m=l.pick,v=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,s=t.shapeArgs;i&&s&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var o=this.center[0],s=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,s,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.arc(o,s,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())},e.prototype.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)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var o=this.center,s=this.radii?this.radii[i.index]||0:o[2]/2;return t=Math.asin(p((t-o[1])/(s+i.labelDistance),-1,1)),o[0]+(e?-1:1)*Math.cos(t)*(s+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,i,o,s=this,r=s.chart,n=r.renderer,a=s.options.shadow;this.drawEmpty(),!a||s.shadowGroup||r.styledMode||(s.shadowGroup=n.g("shadow").attr({zIndex:-1}).add(s.group)),s.points.forEach(function(h){var l={};if(e=h.graphic,!h.isNull&&e){var c=void 0;o=h.shapeArgs,t=h.getTranslate(),r.styledMode||(c=h.shadowGroup,a&&!c&&(c=h.shadowGroup=n.g("shadow").add(s.shadowGroup)),c&&c.attr(t),i=s.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(e.setRadialReference(s.center).attr(o).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(s.center),r.styledMode||g(!0,l,i),g(!0,l,o,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){f(this,"translate"),this.generatePoints();var e=this.options,i=e.slicedOffset,o=i+(e.borderWidth||0),s=d(e.startAngle,e.endAngle),r=this.startAngleRad=s.start;s=(this.endAngleRad=s.end)-r;var n=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var h,l=n.length,c=0;for(t||(this.center=t=this.getCenter()),h=0;h<l;h++){var p=n[h],u=r+c*s;!p.isValid()||e&&!p.visible||(c+=p.percentage/100);var g=r+c*s,x={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.shapeType="arc",p.shapeArgs=x,p.labelDistance=m(p.options.dataLabels&&p.options.dataLabels.distance,a),p.labelDistance=v(p.labelDistance,x.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)*i),translateY:Math.round(Math.sin(g)*i)},x=Math.cos(g)*t[2]/2;var y=Math.sin(g)*t[2]/2;p.tooltipPos=[t[0]+.7*x,t[1]+.7*y],p.half=g<-Math.PI/2||g>
1Math.PI/2?1:0,p.angle=g,u=Math.min(o,p.labelDistance/5),p.labelPosition={natural:{x:t[0]+x+Math.cos(g)*p.labelDistance,y:t[1]+y+Math.sin(g)*p.labelDistance},final:{},alignment:0>p.labelDistance?"center":p.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+x+Math.cos(g)*u,y:t[1]+y+Math.sin(g)*u},touchingSliceAt:{x:t[0]+x,y:t[1]+y}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,s=0;for(t=0;t<i;t++){var r=e[t];!r.isValid()||o&&!r.visible||(s+=r.y)}for(this.total=s,t=0;t<i;t++)(r=e[t]).percentage=0<s&&(r.visible||!o)?r.y/s*100:0,r.total=s},e.defaultOptions=g(n.defaultOptions,r),e}(n),u(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:o.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:s,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l}),e(i,"Series/Pie/PieDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r,n=e.noop,a=i.distribute,h=o.series,l=s.arrayMax,c=s.clamp,d=s.defined,p=s.merge,u=s.pick,f=s.relativeLength;return function(e){function i(){var t,e,i,o,s,r,n,c,f,g,m,v,x=this,y=x.data,b=x.chart,S=x.options.dataLabels||{},M=S.connectorPadding,k=b.plotWidth,C=b.plotHeight,w=b.plotLeft,A=Math.round(b.chartWidth/3),T=x.center,P=T[2]/2,O=T[1],L=[[],[]],E=[0,0,0,0],D=x.dataLabelPositioners;x.visible&&(S.enabled||x._hasPointLabels)&&(y.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),h.prototype.drawDataLabels.apply(x),y.forEach(function(t){t.dataLabel&&(t.visible?(L[t.half].push(t),t.dataLabel._pos=null,!d(S.style.width)&&!d(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))}),L.forEach(function(e,i){var h,l=e.length,p=[];if(l){if(x.sortByAngle(e,i-.5),0<x.maxLabelDistance){var y=Math.max(0,O-P-x.maxLabelDistance),A=Math.min(O+P+x.maxLabelDistance,b.plotHeight);e.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,O-P-t.labelDistance),t.bottom=Math.min(O+P+t.labelDistance,b.plotHeight),h=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+h/2,size:h,rank:t.y},p.push(t.distributeBox))}),a(p,y=A+h-y,y/5)}for(m=0;m<l;m++){if(t=e[m],r=t.labelPosition,o=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=y=r.natural.y,p&&d(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(n=t.distributeBox.size,f=D.radialDistributionY(t))),delete t.positionIndex,S.justify)c=D.justify(t,P,T);else switch(S.alignTo){case"connectors":c=D.alignToConnectors(e,i,k,w);break;case"plotEdges":c=D.alignToPlotEdges(o,i,k,w);break;default:c=D.radialDistributionX(x,t,f,y)}o._attr={visibility:g,align:r.alignment},v=t.options.dataLabels||{},o._pos={x:c+u(v.x,S.x)+({left:M,right:-M}[r.alignment]||0),y:f+u(v.y,S.y)-10},r.final.x=c,r.final.y=f,u(S.crop,!0)&&(s=o.getBBox().width,y=null,c-s<M&&1===i?(y=Math.round(s-c+M),E[3]=Math.max(y,E[3])):c+s>k-M&&0===i&&(y=Math.round(c+s-k+M),E[1]=Math.max(y,E[1])),0>f-n/2?E[0]=Math.max(Math.round(n/2-f),E[0]):f+n/2>C&&(E[2]=Math.max(Math.round(f+n/2-C),E[2])),o.sideOverflow=y)}}}),0===l(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach(function(t){var s;v=p(S,t.options.dataLabels),(e=u(v.connectorWidth,1))&&(i=t.connector,(o=t.dataLabel)&&o._pos&&t.visible&&0<t.labelDistance?(g=o._attr.visibility,(s=!i)&&(t.connector=i=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(x.dataLabelsGroup),b.styledMode||i.attr({"stroke-width":e,stroke:v.connectorColor||t.color||"#666666"})),i[s?"attr":"animate"]({d:t.getConnectorPath()}),i.attr("visibility",g)):i&&(t.connector=i.destroy()))}))}
1function o(){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)}function s(t){var e=this.center,i=this.options,o=i.center,s=i.minSize||80,r=null!==i.size;if(!r){if(null!==o[0])var n=Math.max(e[2]-Math.max(t[1],t[3]),s);else n=Math.max(e[2]-t[1]-t[3],s),e[0]+=(t[3]-t[1])/2;null!==o[1]?n=c(n,s,e[2]-Math.max(t[0],t[2])):(n=c(n,s,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(i.thickness?Math.max(0,n-2*i.thickness):Math.max(0,f(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var r=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,o){return t.getX(i<e.top+2||i>e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){return t=t.getBBox().width,e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var s,r=0;return t.forEach(function(t){(s=t.dataLabel.getBBox().width)>r&&(r=s)}),e?r+o:i-r-o}};e.compose=function(e){t.compose(h),-1===r.indexOf(e)&&(r.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=n,e.drawDataLabels=i,e.placeDataLabels=o,e.verifyDataLabelOverflow=s)}}(r||(r={})),r}),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(t,e){function i(t,e){var i=!1;if(t){var o=t.newOpacity;t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})}),s(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var o=e.addEvent,s=e.fireEvent,r=e.isArray,n=e.isNumber,a=e.objectEach,h=e.pick;o(t,"render",function(){var t=this,e=[];(this.labelCollectors||[]).forEach(function(t){e=e.concat(t())}),(this.yAxis||[]).forEach(function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,function(t){a(t,function(t){t.label&&e.push(t.label)})})}),(this.series||[]).forEach(function(o){var s=o.options.dataLabels;o.visible&&(!1!==s.enabled||o._hasPointLabels)&&(s=function(o){return o.forEach(function(o){o.visible&&(r(o.dataLabels)?o.dataLabels:o.dataLabel?[o.dataLabel]:[]).forEach(function(s){var r=s.options;s.labelrank=h(r.labelrank,o.labelrank,o.shapeArgs&&o.shapeArgs.height),r.allowOverlap?(s.oldOpacity=s.opacity,s.newOpacity=1,i(s,t)):e.push(s)})})},s(o.nodes||[]),s(o.points))}),this.hideOverlappingLabels(e)}),t.prototype.hideOverlappingLabels=function(t){var e,o,r,a=this,h=t.length,l=a.renderer,c=!1,d=function(t){var e,i,o=t.box?0:t.padding||0,s=e=0;if(t&&(!t.alignAttr||t.placed)){var r=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=l.fontMetrics(null,t.element).h);var h=t.width-2*o;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?s=+i*h:n(t.x)&&Math.round(t.x)!==t.translateX&&(s=t.x-t.translateX),{x:r.x+(a.translateX||0)+o-(s||0),y:r.y+(a.translateY||0)+o-e,width:t.width-2*o,height:t.height-2*o}}};for(o=0;o<h;o++)(e=t[o])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=d(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),o=0;o<h;o++){var p=(d=t[o])&&d.absoluteBox;for(e=o+1;e<h;++e){var u=(r=t[e])&&r.absoluteBox;!p||!u||d===r||0===d.newOpacity||0===r.newOpacity||"hidden"===d.visibility||"hidden"===r.visibility||u.x>=p.x+p.width||u.x+u.width<=p.x||u.y>=p.y+p.height||u.y+u.height<=p.y||((d.labelrank<r.labelrank?d:r).newOpacity=0)}}t.forEach(function(t){i(t,a)&&(c=!0)}),c&&s(a,"afterHideAllOverlappingLabels")}}),e(i,"Core/Responsive.js",[i["Core/Utilities.js"]],function(t){var e,i=t.extend,o=t.find,s=t.isArray,r=t.isObject,n=t.merge,a=t.objectEach,h=t.pick,l=t.splat,c=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),i(t.prototype,d.prototype)),t};var d=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,o,n,h){var c;a(i,function(i,a){if(!h&&-1<e.collectionsWithUpdate.indexOf(a)&&o[a])for(i=l(i),n[a]=[],c=0;c<Math.max(i.length,o[a].length);c++)o[a][c]&&(void 0===i[c]?n[a][c]=o[a][c]:(n[a][c]={},t(i[c],o[a][c],n[a][c],h+1)));else r(i)?(n[a]=s(i)?[]:{},t(i,o[a]||{},n[a],h+1)):n[a]=void 0===o[a]?null:o[a]})}(t,this.options,i,0),i},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=h(i.maxWidth,Number.MAX_VALUE)&&this.chartHe
1ight<=h(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=h(i.minWidth,0)&&this.chartHeight>=h(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var i=this,s=this.options.responsive,r=this.currentResponsive,a=[];!e&&s&&s.rules&&s.rules.forEach(function(t){void 0===t._id&&(t._id=c()),i.matchResponsiveRule(t,a)},this),e=n.apply(void 0,a.map(function(t){return o((s||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions})),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),a?((r=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e}),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Defaults.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/FormatUtilities.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Renderer/HTML/HTMLElement.js"],i["Core/Renderer/HTML/HTMLRenderer.js"],i["Core/Axis/Axis.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Axis/LogarithmicAxis.js"],i["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],i["Core/Axis/Tick.js"],i["Core/Tooltip.js"],i["Core/Series/Point.js"],i["Core/Pointer.js"],i["Core/MSPointer.js"],i["Core/Legend/Legend.js"],i["Core/Chart/Chart.js"],i["Core/Axis/Stacking/StackingAxis.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Series/Column/ColumnSeries.js"],i["Series/Column/ColumnDataLabel.js"],i["Series/Pie/PieSeries.js"],i["Series/Pie/PieDataLabel.js"],i["Core/Series/DataLabel.js"],i["Core/Responsive.js"],i["Core/Color/Color.js"],i["Core/Time.js"]],function(t,e,i,o,s,r,n,a,h,l,c,d,p,u,f,g,m,v,x,y,b,S,M,k,C,w,A,T,P,O,L,E,D,j,B){return t.animate=s.animate,t.animObject=s.animObject,t.getDeferredAnimation=s.getDeferredAnimation,t.setAnimation=s.setAnimation,t.stop=s.stop,t.timers=o.timers,t.AST=r,t.Axis=p,t.Chart=M,t.chart=M.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=x,t.Pointer=b.isRequired()?b:y,t.Series=w,t.StackItem=C,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=B,t.Tooltip=v,t.Color=j,t.color=j.parse,d.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=A.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,P.compose(T),E.compose(w),u.compose(p),f.compose(p),L.compose(O),g.compose(p),D.compose(M),k.compose(p,M,w),t}),e(i,"Core/Axis/BrokenAxis.js",[i["Core/Axis/Stacking/StackItem.js"],i["Core/Utilities.js"]],function(t,e){var i,o=e.addEvent,s=e.find,r=e.fireEvent,n=e.isArray,a=e.isNumber,h=e.pick;return function(e){function i(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function l(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function c(){var t=this.brokenAxis;if(t&&t.hasBreaks){for(var e=this.tickPositions,i=this.tickPositions.info,o=[],s=0;s<e.length;
1s++)t.isInAnyBreak(e[s])||o.push(e[s]);this.tickPositions=o,this.tickPositions.info=i}}function d(){this.brokenAxis||(this.brokenAxis=new v(this))}function p(){var t=this.options.connectNulls,e=this.points,i=this.xAxis,o=this.yAxis;if(this.isDirty)for(var s=e.length;s--;){var r=e[s],n=!(null===r.y&&!1===t)&&(i&&i.brokenAxis&&i.brokenAxis.isInAnyBreak(r.x,!0)||o&&o.brokenAxis&&o.brokenAxis.isInAnyBreak(r.y,!0));r.visible=!n&&!1!==r.options.visible}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,h(this.pointArrayMap,["y"]))}function f(t,e){var i,o,s,n,l=this,c=l.points;if(t&&t.brokenAxis&&t.brokenAxis.hasBreaks){var d=t.brokenAxis;e.forEach(function(e){i=d&&d.breakArray||[],o=t.isXAxis?t.min:h(l.options.threshold,t.min),c.forEach(function(l){n=h(l["stack"+e.toUpperCase()],l[e]),i.forEach(function(e){a(o)&&a(n)&&(s=!1,o<e.from&&n>e.to||o>e.from&&n<e.from?s="pointBreak":(o<e.from&&n>e.from&&n<e.to||o>e.from&&n>e.to&&n<e.from)&&(s="pointInBreak"),s&&r(t,s,{point:l,brk:e}))})})})}}function g(){var e=this.currentDataGrouping,i=e&&e.gapSize;e=this.points.slice();var o,s=this.yAxis,r=this.options.gapSize,n=e.length-1;if(r&&0<n)for("value"!==this.options.gapUnit&&(r*=this.basePointRange),i&&i>r&&i>=this.basePointRange&&(r=i),o=void 0;n--;)o&&!1!==o.visible||(o=e[n+1]),i=e[n],!1!==o.visible&&!1!==i.visible&&(o.x-i.x>r&&(o=(i.x+o.x)/2,e.splice(n+1,0,{isNull:!0,x:o}),s.stacking&&this.options.stacking&&((o=s.stacking.stacks[this.stackKey][o]=new t(s,s.options.stackLabels,!1,o,this.stack)).total=0)),o=i);return this.getGraphPath(e)}var m=[];e.compose=function(t,e){if(-1===m.indexOf(t)&&(m.push(t),t.keepProps.push("brokenAxis"),o(t,"init",d),o(t,"afterInit",i),o(t,"afterSetTickPositions",c),o(t,"afterSetOptions",l)),-1===m.indexOf(e)){m.push(e);var s=e.prototype;s.drawBreaks=f,s.gappedPath=g,o(e,"afterGeneratePoints",p),o(e,"afterRender",u)}return t};var v=function(){function t(t){this.hasBreaks=!1,this.axis=t}return t.isInBreak=function(t,e){var i=t.repeat||1/0,o=t.from,s=t.to-t.from;return e=e>=o?(e-o)%i:i-(o-e)%i,t.inclusive?e<=s:e<s&&0!==e},t.lin2Val=function(e){var i,o=this.brokenAxis;if(!(o=o&&o.breakArray)||!a(e))return e;for(i=0;i<o.length;i++){var s=o[i];if(s.from>=e)break;(s.to<e||t.isInBreak(s,e))&&(e+=s.len)}return e},t.val2Lin=function(e){var i=this.brokenAxis;if(!(i=i&&i.breakArray)||!a(e))return e;var o,s=e;for(o=0;o<i.length;o++){var r=i[o];if(r.to<=e)s-=r.len;else{if(r.from>=e)break;if(t.isInBreak(r,e)){s-=e-r.from;break}}}return s},t.prototype.findBreakAt=function(t,e){return s(e,function(e){return e.from<t&&t<e.to})},t.prototype.isInAnyBreak=function(e,i){var o,s=this.axis,r=s.options.breaks||[],n=r.length;if(n&&a(e)){for(;n--;)if(t.isInBreak(r[n],e)){var l=!0;o||(o=h(r[n].showPoints,!s.isXAxis))}var c=l&&i?l&&!o:l}return c},t.prototype.setBreaks=function(e,i){var o=this,s=o.axis,l=n(e)&&!!e.length;s.isDirty=o.hasBreaks!==l,o.hasBreaks=l,s.options.breaks=s.userOptions.breaks=e,s.forceRedraw=!0,s.series.forEach(function(t){t.isDirty=!0}),l||s.val2lin!==t.val2Lin||(delete s.val2lin,delete s.lin2val),l&&(s.userOptions.ordinal=!1,s.lin2val=t.lin2Val,s.val2lin=t.val2Lin,s.setExtremes=function(t,e,i,r,n){if(o.hasBreaks){for(var a,h=this.options.breaks||[];a=o.findBreakAt(t,h);)t=a.to;for(;a=o.findBreakAt(e,h);)e=a.from;e<t&&(e=t)}s.constructor.prototype.setExtremes.call(this,t,e,i,r,n)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),o.unitLength=void 0,o.hasBreaks){var e,i,n=s.options.breaks||[],l=[],c=[],d=h(s.pointRangePadding,0),p=0,u=s.userMin||s.min,f=s.userMax||s.max;n.forEach(function(i){e=i.repeat||1/0,a(u)&&a(f)&&(t.isInBreak(i,u)&&(u+=i.to%e-u%e),t.isInBreak(i,f)&&(f-=f%e-i.from%e))}),n.forEach(function(t){if(m=t.from,e=t.repeat||1/0,a(u)&&a(f)){for(;m-e>u;)m-=e;for(;m<u;)m+=e;for(i=m;i<f;i+=e)l.push({value:i,move:"in"}),l.push({value:i+t.to-t.from,move:"out",size:t.breakSize})}}),l.sort(function(t,e){return t.value===e.value?("in"===t.move?0:1)-("in"===e.move?0:1):t.value-e.value});var g=0,m=u;l.forEach(function(t){1===(g+="in"===t.move?1:-1)&&"in"===t.move&&(m=t.value),0===g&&a(m)&&(c.push({from:m,to:t.value,len:t.value-m-(t.size||0)}),p+=t.value-m-(t.size||0))}),o.breakArray=c,a(u)&&a(f)&&a(s.min)&&(o.unitLength=f-u-p+d,r(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:o.unitLength&&(s.transA*=(f-s.min+d)/o.unitLength),d&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=u,s.max=f)}}),h(i,!0)&&s.chart.redraw()},t}();e.Additions=v}(i||(i={})),i}),e(i,"masters/modules/broken-axis.src.js",[i["Core/Globals.js"],i["Core/Axis/BrokenAxis.js"]],function(t,e){e.compose(t.Axis,t.Series)}),e(i,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),e(i,"Extensions/DataGrouping/ApproximationDefaults.js",[i["Extensions/DataGrouping/ApproximationRegistry.js"],i["Core/Utilities.js"]],function(t,e){function i(t){var e=t.length;return t=o(t),h(t)&&e&&(t=n(t/e)),t}function o(t){var e=t.length;if(!e&&t.hasNulls)var i=null;else if(e)for(i=0;e--;)i+=t[e];return i}var s=e.arrayMax,r=e.arrayMin,n=e.correctFloat,a=e.extend,h=e.isNumber;return e={average:i,averages:function(){var t=[];return[].forEach.call(arguments,function(e){t.push(i(e))}),void 0===t[0]?void 0:t},close:function(t){return t.length?t[t.length-1]:t.hasNulls?null:void 0},high:function(t){return t.length?s(t):t.hasNulls?null:void 0},hlc:function(e,i,o){if(e=t.high(e),i=t.low(i),o=t.close(o),h(e)||h(i)||h(o))return[e,i,o]},low:function(t){return t.length?r(t):t.hasNulls?null:void 0}
1,ohlc:function(e,i,o,s){if(e=t.open(e),i=t.high(i),o=t.low(o),s=t.close(s),h(e)||h(i)||h(o)||h(s))return[e,i,o,s]},open:function(t){return t.length?t[0]:t.hasNulls?null:void 0},range:function(e,i){return e=t.low(e),i=t.high(i),h(e)||h(i)?[e,i]:null===e&&null===i?null:void 0},sum:o},a(t,e),e}),e(i,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),e(i,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[i["Extensions/DataGrouping/DataGroupingDefaults.js"],i["Core/Utilities.js"]],function(t,e){function i(t){var e=this,i=e.series;i.forEach(function(t){t.groupPixelWidth=void 0}
1),i.forEach(function(i){i.groupPixelWidth=e.getGroupPixelWidth&&e.getGroupPixelWidth(),i.groupPixelWidth&&(i.hasProcessed=!0),i.applyGrouping(!!t.hasExtremesChanged)})}function o(){for(var e,i,o=this.series,s=o.length,r=0,n=!1;s--;)(i=o[s].options.dataGrouping)&&(r=Math.max(r,c(i.groupPixelWidth,t.common.groupPixelWidth)),e=(o[s].processedXData||o[s].data).length,(o[s].groupPixelWidth||e>this.chart.plotSizeX/r||e&&i.forced)&&(n=!0));return n?r:0}function s(){this.series.forEach(function(t){t.hasProcessed=!1})}function r(t,e){var i;if(e=c(e,!0),t||(t={forced:!1,units:null}),this instanceof n)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:t},!1);else this.chart.options.series.forEach(function(e){e.dataGrouping="boolean"==typeof t?t:l(t,e.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),e&&this.chart.redraw()}var n,a=e.addEvent,h=e.extend,l=e.merge,c=e.pick,d=[];return{compose:function(t){n=t,-1===d.indexOf(t)&&(d.push(t),a(t,"afterSetScale",s),a(t,"postProcessData",i),h(t.prototype,{applyGrouping:i,getGroupPixelWidth:o,setDataGrouping:r}))}}}),e(i,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[i["Extensions/DataGrouping/ApproximationRegistry.js"],i["Extensions/DataGrouping/DataGroupingDefaults.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Defaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r){function n(t){var o=this.chart,s=this.options.dataGrouping,r=!1!==this.allowDG&&s&&y(s.enabled,o.options.isStock),n=this.visible||!o.options.chart.ignoreHiddenSeries,a=this.currentDataGrouping,h=!1;if(r&&!this.requireSorting&&(this.requireSorting=h=!0),t=0==!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!t)||!r,h&&(this.requireSorting=!1),!t){this.destroyGroupedData();var l=s.groupAll?this.xData:this.processedXData,c=s.groupAll?this.yData:this.processedYData;r=o.plotSizeX;var d=(t=this.xAxis).options.ordinal,u=this.groupPixelWidth;if(h=void 0,u&&l&&l.length&&r){this.isDirty=h=!0,this.points=null;var m=t.getExtremes(),x=m.min;m=m.max,d=d&&t.ordinal&&t.ordinal.getGroupIntervalFactor(x,m,this)||1,r=t.getTimeTicks(i.Additions.prototype.normalizeTimeTickInterval(u*(m-x)/r*d,s.units||e.units),Math.min(x,l[0]),Math.max(m,l[l.length-1]),t.options.startOfWeek,l,this.closestPointRange),l=(u=p.groupData.apply(this,[l,c,r,s.approximation])).groupedXData,c=u.groupedYData,d=0,s&&s.smoothed&&l.length&&(s.firstAnchor="firstPoint",s.anchor="middle",s.lastAnchor="lastPoint",g(32,!1,o,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),o=l;var b=this.options.dataGrouping;if(x=this.currentDataGrouping&&this.currentDataGrouping.gapSize,b&&this.xData&&x&&this.groupMap){var S=o.length-1,M=b.anchor,k=y(b.firstAnchor,M);if(b=y(b.lastAnchor,M),M&&"start"!==M){var C=x*{middle:.5,end:1}[M];for(M=o.length-1;M--&&0<M;)o[M]+=C}if(k&&"start"!==k&&this.xData[0]>=o[0]){M=this.groupMap[0].start,C=this.groupMap[0].length;var w=void 0;v(M)&&v(C)&&(w=M+(C-1)),o[0]={middle:o[0]+.5*x,end:o[0]+x,firstPoint:this.xData[0],lastPoint:w&&this.xData[w]}[k]}b&&"start"!==b&&x&&o[S]>=m-x&&(m=this.groupMap[this.groupMap.length-1].start,o[S]={middle:o[S]+.5*x,end:o[S]+x,firstPoint:m&&this.xData[m],lastPoint:this.xData[this.xData.length-1]}[b])}for(m=1;m<r.length;m++)r.info.segmentStarts&&-1!==r.info.segmentStarts.indexOf(m)||(d=Math.max(r[m]-r[m-1],d));(m=r.info).gapSize=d,this.closestPointRange=r.info.totalRange,this.groupMap=u.groupMap,n&&(f((n=l)[0])&&v(t.min)&&v(t.dataMin)&&n[0]<t.min&&((!f(t.options.min)&&t.min<=t.dataMin||t.min===t.dataMin)&&(t.min=Math.min(n[0],t.min)),t.dataMin=Math.min(n[0],t.dataMin)),f(n[n.length-1])&&v(t.max)&&v(t.dataMax)&&n[n.length-1]>t.max&&((!f(t.options.max)&&v(t.dataMax)&&t.max>=t.dataMax||t.max===t.dataMax)&&(t.max=Math.max(n[n.length-1],t.max)),t.dataMax=Math.max(n[n.length-1],t.dataMax))),s.groupAll&&(this.allGroupedData=c,l=(s=this.cropData(l,c,t.min,t.max,1)).xData,c=s.yData,this.cropStart=s.start),this.processedXData=l,this.processedYData=c}else this.groupMap=null;this.hasGroupedData=h,this.currentDataGrouping=m,this.preventGraphAnimation=(a&&a.totalRange)!==(m&&m.totalRange)}}function a(){this.groupedData&&(this.groupedData.forEach(function(t,e){t&&(this.groupedData[e]=t.destroy?t.destroy():null)},this),this.groupedData.length=0)}function h(){b.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function l(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function c(e,i,o,s){var r=this,n=r.data,a=r.options&&r.options.data,h=[],l=[],c=[],d=e.length,p=!!i,u=[],g=r.pointArrayMap,m=g&&g.length,y=["x"].concat(g||["y"]),b=this.options.dataGrouping&&this.options.dataGrouping.groupAll,S=0,M=0;if(s="function"==typeof s?s:s&&t[s]?t[s]:t[r.getDGApproximation&&r.getDGApproximation()||"average"],m)for(var k=g.length;k--;)u.push([]);else u.push([]);k=m||1;for(var C=0;C<=d;C++)if(!(e[C]<o[0])){for(;void 0!==o[S+1]&&e[C]>=o[S+1]||C===d;){var w=o[S];r.dataGroupInfo={start:b?M:r.cropStart+M,length:u[0].length};var A=s.apply(r,u);for(r.pointClass&&!f(r.dataGroupInfo.options)&&(r.dataGroupInfo.options=x(r.pointClass.prototype.optionsToObject.call({series:r}
1,r.options.data[r.cropStart+M])),y.forEach(function(t){delete r.dataGroupInfo.options[t]})),void 0!==A&&(h.push(w),l.push(A),c.push(r.dataGroupInfo)),M=C,w=0;w<k;w++)u[w].length=0,u[w].hasNulls=!1;if(S+=1,C===d)break}if(C===d)break;if(g){w=r.options.dataGrouping&&r.options.dataGrouping.groupAll?C:r.cropStart+C,A=n&&n[w]||r.pointClass.prototype.applyOptions.apply({series:r},[a[w]]);var T=void 0;for(w=0;w<m;w++)T=A[g[w]],v(T)?u[w].push(T):null===T&&(u[w].hasNulls=!0)}else w=p?i[C]:null,v(w)?u[0].push(w):null===w&&(u[0].hasNulls=!0)}return{groupedXData:h,groupedYData:l,groupMap:c}}function d(t){t=t.options;var i=this.type,s=this.chart.options.plotOptions,r=this.useCommonDataGrouping&&e.common,n=e.seriesSpecific,a=o.defaultOptions.plotOptions[i].dataGrouping;if(s&&(n[i]||r)){var h=this.chart.rangeSelector;a||(a=x(e.common,n[i])),t.dataGrouping=x(r,a,s.series&&s.series.dataGrouping,s[i].dataGrouping,this.userOptions.dataGrouping,!t.isInternal&&h&&v(h.selected)&&h.buttonOptions[h.selected].dataGrouping)}}var p=s.series.prototype,u=r.addEvent,f=r.defined,g=r.error,m=r.extend,v=r.isNumber,x=r.merge,y=r.pick,b=p.generatePoints,S=[];return{compose:function(t){var e=t.prototype.pointClass;-1===S.indexOf(e)&&(S.push(e),u(e,"update",function(){if(this.dataGroup)return g(24,!1,this.series.chart),!1})),-1===S.indexOf(t)&&(S.push(t),u(t,"afterSetOptions",d),u(t,"destroy",a),m(t.prototype,{applyGrouping:n,destroyGroupedData:a,generatePoints:h,getDGApproximation:l,groupData:c}))},groupData:c}}),e(i,"Extensions/DataGrouping/DataGrouping.js",[i["Extensions/DataGrouping/DataGroupingAxisComposition.js"],i["Extensions/DataGrouping/DataGroupingDefaults.js"],i["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){function r(t){var i=this.chart,o=i.time,s=t.labelConfig,r=s.series,a=r.tooltipOptions,c=r.options.dataGrouping,d=r.xAxis,p=a.xDateFormat,u=a[t.isFooter?"footerFormat":"headerFormat"];if(d&&"datetime"===d.options.type&&c&&l(s.key)){var f=r.currentDataGrouping;if(c=c.dateTimeLabelFormats||e.common.dateTimeLabelFormats,f)if(a=c[f.unitName],1===f.count)p=a[0];else{p=a[1];var g=a[2]}else!p&&c&&d.dateTime&&(p=d.dateTime.getXDateFormat(s.x,a.dateTimeLabelFormats));p=o.dateFormat(p,s.key),g&&(p+=o.dateFormat(g,s.key+f.totalRange-1)),r.chart.styledMode&&(u=this.styledModeFormat(u)),t.text=n(u,{point:h(s.point,{key:p}),series:r},i),t.preventDefault()}}var n=o.format,a=s.addEvent,h=s.extend,l=s.isNumber,c=[];return{compose:function(e,o,s){t.compose(e),i.compose(o),-1===c.indexOf(s)&&(c.push(s),a(s,"headerFormatter",r))},groupData:i.groupData}}),e(i,"masters/modules/datagrouping.src.js",[i["Core/Globals.js"],i["Extensions/DataGrouping/ApproximationDefaults.js"],i["Extensions/DataGrouping/ApproximationRegistry.js"],i["Extensions/DataGrouping/DataGrouping.js"]],function(t,e,i,o){t.dataGrouping={approximationDefaults:e,approximations:i},o.compose(t.Axis,t.Series,t.Tooltip)}),e(i,"Series/DataModifyComposition.js",[i["Core/Axis/Axis.js"],i["Core/Series/Point.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=e.prototype.tooltipFormatter,n=o.addEvent,a=o.arrayMax,h=o.arrayMin,l=o.correctFloat,c=o.defined,d=o.isArray,p=o.isNumber,u=o.isString,f=o.pick;return function(t){function e(t,e,i){this.isXAxis||(this.series.forEach(function(i){"compare"===t&&"boolean"!=typeof e?i.setCompare(e,!1):"cumulative"!==t||u(e)||i.setCumulative(e,!1)}),f(i,!0)&&this.chart.redraw())}function i(t){var e=this,i=e.series.chart.numberFormatter,o=function(o){t=t.replace("{point."+o+"}",(0<e[o]&&"change"===o?"+":"")+i(e[o],f(e.series.tooltipOptions.changeDecimals,2)))};return c(e.change)&&o("change"),c(e.cumulativeSum)&&o("cumulativeSum"),r.apply(this,[t])}function o(){var t=this.options.compare;if("percent"===t||"value"===t||this.options.cumulative){var e=new S(this);"percent"===t||"value"===t?e.initCompare(t):e.initCumulative()}this.dataModify=e}function s(t){var e=(t=t.dataExtremes).activeYData;if(this.dataModify&&t){var i=void 0;this.options.compare?i=[this.dataModify.modifyValue(t.dataMin),this.dataModify.modifyValue(t.dataMax)]:this.options.cumulative&&d(e)&&2<=e.length&&(i=S.getCumulativeExtremes(e)),i&&(t.dataMin=h(i),t.dataMax=a(i))}}function g(t,e){this.options.compare=this.userOptions.compare=t,this.update({},f(e,!0)),!this.dataModify||"value"!==t&&"percent"!==t?this.points.forEac
1h(function(t){delete t.change}):this.dataModify.initCompare(t)}function m(){if(this.xAxis&&this.processedYData&&this.dataModify){var t,e=this.processedXData,i=this.processedYData,o=i.length,s=!0===this.options.compareStart?0:1,r=-1;for(this.pointArrayMap&&(r=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),t=0;t<o-s;t++){var n=i[t]&&-1<r?i[t][r]:i[t];if(p(n)&&0!==n&&e[t+s]>=(this.xAxis.min||0)){this.dataModify.compareValue=n;break}}}}function v(t,e){this.setModifier("compare",t,e)}function x(t,e){t=f(t,!1),this.options.cumulative=this.userOptions.cumulative=t,this.update({},f(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(t){delete t.cumulativeSum})}function y(t,e){this.setModifier("cumulative",t,e)}var b=[];t.compose=function(t,r,a){if(-1===b.indexOf(t)){b.push(t);var h=t.prototype;h.setCompare=g,h.setCumulative=x,n(t,"afterInit",o),n(t,"afterGetExtremes",s),n(t,"afterProcessData",m)}return-1===b.indexOf(r)&&(b.push(r),(r=r.prototype).setCompare=v,r.setModifier=e,r.setCumulative=y),-1===b.indexOf(a)&&(b.push(a),a.prototype.tooltipFormatter=i),t};var S=function(){function t(t){this.series=t}return t.prototype.modifyValue=function(){return 0},t.getCumulativeExtremes=function(t){var e=1/0,i=-1/0;return t.reduce(function(t,o){return o=t+o,e=Math.min(e,o,t),i=Math.max(i,o,t),o}),[e,i]},t.prototype.initCompare=function(t){this.modifyValue=function(e,i){null===e&&(e=0);var o=this.compareValue;return void 0!==e&&void 0!==o?(e="value"===t?e-o:e/o*100-(100===this.series.options.compareBase?0:100),void 0!==i&&(i=this.series.points[i])&&(i.change=e),e):0}},t.prototype.initCumulative=function(){this.modifyValue=function(t,e){if(null===t&&(t=0),void 0!==t&&void 0!==e){var i=0<e?this.series.points[e-1]:null;return i&&i.cumulativeSum&&(t=l(i.cumulativeSum+t)),(e=this.series.points[e])&&(e.cumulativeSum=t),t}return 0}},t}();t.Additions=S}(s||(s={})),s}),e(i,"Core/Axis/NavigatorAxisComposition.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){function i(){this.navigatorAxis||(this.navigatorAxis=new d(this))}function o(t){var e=this.chart.options,i=e.navigator,o=this.navigatorAxis,r=e.chart.zooming.pinchType,n=e.rangeSelector;e=e.chart.zooming.type,this.isXAxis&&(i&&i.enabled||n&&n.enabled)&&("y"===e?t.zoomed=!1:(!s&&"xy"===e||s&&"xy"===r)&&this.options.range&&(i=o.previousZoom,a(t.newMin)?o.previousZoom=[this.min,this.max]:i&&(t.newMin=i[0],t.newMax=i[1],o.previousZoom=void 0))),void 0!==t.zoomed&&t.preventDefault()}var s=t.isTouchDevice,r=e.addEvent,n=e.correctFloat,a=e.defined,h=e.isNumber,l=e.pick,c=[],d=function(){function t(t){this.axis=t}return t.compose=function(t){-1===c.indexOf(t)&&(c.push(t),t.keepProps.push("navigatorAxis"),r(t,"init",i),r(t,"zoom",o))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,o){var s=this.axis,r=s.chart;t=l(i,s.translate(t,!0,!s.horiz)),e=l(o,s.translate(e,!0,!s.horiz)),r=r&&r.fixedRange,s=(s.pointRange||0)/2;var c=r&&(e-t)/r;return a(i)||(t=n(t+s)),a(o)||(e=n(e-s)),.7<c&&1.3>c&&(o?t=e-r:e=t+r),h(t)&&h(e)||(t=e=void 0),{min:t,max:e}},t}();return d}),e(i,"Stock/Navigator/NavigatorDefaults.js",[i["Core/Color/Color.js"],i["Core/Series/SeriesRegistry.js"]],function(t,e){return t=t.parse,e=e.seriesTypes,{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:t("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:void 0===e.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),e(i,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(t,e,
1i,o,s){return void 0===s&&(s={}),t=s.width?s.width/2:i,e=Math.round(t/3)+.5,[["M",-t-1,.5],["L",t,.5],["L",t,(o=s.height||o)+.5],["L",-t-1,o+.5],["L",-t-1,.5],["M",-e,4],["L",-e,o-3],["M",e-1,4],["L",e-1,o-3]]}}}),e(i,"Stock/Navigator/NavigatorComposition.js",[i["Core/Defaults.js"],i["Core/Globals.js"],i["Core/Axis/NavigatorAxisComposition.js"],i["Stock/Navigator/NavigatorDefaults.js"],i["Stock/Navigator/NavigatorSymbols.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n){function a(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function h(){var t=this.legend,e=this.navigator;if(e){var i=t&&t.options,o=e.xAxis,s=e.yAxis,r=e.scrollbarHeight;this.inverted?(e.left=e.opposite?this.chartWidth-r-e.height:this.spacing[3]+r,e.top=this.plotTop+r):(e.left=k(o.left,this.plotLeft+r),e.top=e.navigatorOptions.top||this.chartHeight-e.height-r-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?t.legendHeight+k(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&s&&(this.inverted?o.options.left=s.options.left=e.left:o.options.top=s.options.top=e.top,o.setAxisSize(),s.setAxisSize())}}function l(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new g(this),k(t.redraw,!0)&&this.redraw(t.animation))}function c(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new g(this))}function d(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!x&&"x"===t.chart.zooming.type||x&&"x"===t.chart.zooming.pinchType))return!1}function p(t){var e=t.navigator;e&&t.xAxis[0]&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))}function u(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};this.navigator||this.scroller||!e.enabled&&!i.enabled||(M(!0,this.options.navigator,e),M(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}function f(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var g,m=t.defaultOptions,v=t.setOptions,x=e.isTouchDevice,y=r.getRendererType,b=n.addEvent,S=n.extend,M=n.merge,k=n.pick,C=[];return{compose:function(t,e,r,n){i.compose(t),g=r,-1===C.indexOf(e)&&(C.push(e),e.prototype.callbacks.push(p),b(e,"afterAddSeries",a),b(e,"afterSetChartSize",h),b(e,"afterUpdate",l),b(e,"beforeRender",c),b(e,"beforeShowResetZoom",d),b(e,"update",u)),-1===C.indexOf(n)&&(C.push(n),b(n,"afterUpdate",f)),-1===C.indexOf(y)&&(C.push(y),S(y().prototype.symbols,s)),-1===C.indexOf(v)&&(C.push(v),S(m,{navigator:o}))}}}),e(i,"Core/Axis/ScrollbarAxis.js",[i["Core/Utilities.js"]],function(t){var e=t.addEvent,i=t.defined,o=t.pick;return function(){function t(){}return t.compose=function(s,r){if(-1!==t.composed.indexOf(s))return s;t.composed.push(s);var n=function(t){var e=o(t.options&&t.options.min,t.min),s=o(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:s,scrollMin:i(t.dataMin)?Math.min(e,t.min,t.dataMin,o(t.threshold,1/0)):e,scrollMax:i(t.dataMax)?Math.max(s,t.max,t.dataMax,o(t.threshold,-1/0)):s}};return e(s,"afterInit",function(){var t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new r(t.chart.renderer,t.options.scrollbar,t.chart),e(t.scrollbar,"changed",function(e){var o=n(t),s=o.axisMax,r=o.scrollMin,a=o.scrollMax-r;i(o.axisMin)&&i(s)&&(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(o=r+a*this.to,r+=a*this.from):(o=r+a*(1-this.from),r+=a*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)?t.setExtremes(r,o,!0,"mousemove"!==e.DOMType&&"touchmove"!==e.DOMType,e):this.setRange(this.from,this.to))}))}
1),e(s,"afterRender",function(){var t=n(this),e=t.scrollMin,o=t.scrollMax;t=this.scrollbar;var s=this.axisTitleMargin+(this.titleOffset||0),r=this.chart.scrollbarsOffsets,a=this.options.margin||0;t&&(this.horiz?(this.opposite||(r[1]+=s),t.position(this.left,this.top+this.height+2+r[1]-(this.opposite?a:0),this.width,this.height),this.opposite||(r[1]+=a),s=1):(this.opposite&&(r[0]+=s),t.position(t.options.opposite?this.left+this.width+2+r[0]-(this.opposite?0:a):this.opposite?0:a,this.top,this.width,this.height),this.opposite&&(r[0]+=a),s=0),r[s]+=t.size+t.options.margin,isNaN(e)||isNaN(o)||!i(this.min)||!i(this.max)||this.min===this.max?t.setRange(0,1):(r=(this.min-e)/(o-e),e=(this.max-e)/(o-e),this.horiz&&!this.reversed||!this.horiz&&this.reversed?t.setRange(r,e):t.setRange(1-e,1-r)))}),e(s,"afterGetOffset",function(){var t=this.scrollbar&&!this.scrollbar.options.opposite;t=this.horiz?2:t?3:1;var e=this.scrollbar;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[t]+=e.size+e.options.margin)}),s},t.composed=[],t}()}),e(i,"Stock/Scrollbar/ScrollbarDefaults.js",[i["Core/Globals.js"]],function(t){return{height:t.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),e(i,"Stock/Scrollbar/Scrollbar.js",[i["Core/Defaults.js"],i["Core/Globals.js"],i["Core/Axis/ScrollbarAxis.js"],i["Stock/Scrollbar/ScrollbarDefaults.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r=t.defaultOptions,n=s.addEvent,a=s.correctFloat,h=s.defined,l=s.destroyObjectProperties,c=s.fireEvent,d=s.merge,p=s.pick,u=s.removeEvent;return t=function(){function t(t,e,i){this._events=[],this.chart=void 0,this.from=this.chartY=this.chartX=0,this.scrollbar=this.renderer=this.options=this.group=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.to=this.size=this.scrollbarTop=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.y=this.x=0,this.init(t,e,i)}return t.compose=function(e){i.compose(e,t)},t.swapXY=function(t,e){return e&&t.forEach(function(t){for(var e,i=t.length,o=0;o<i;o+=2)"number"==typeof(e=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=e)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],i=this.scrollbarButtons,o=this.scrollbarGroup.element,s=this.track.element,r=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),h=this.mouseUpHandler.bind(this);t=[[i[t[0]].element,"click",this.buttonToMinClick.bind(this)],[i[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[o,"mousedown",r],[o.ownerDocument,"mousemove",a],[o.ownerDocument,"mouseup",h]],e.hasTouch&&t.push([o,"touchstart",r],[o.ownerDocument,"touchmove",a],[o.ownerDocument,"touchend",h]),t.forEach(function(t){n.apply(null,t)}),this._events=t},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*p(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=a(this.to-this.from)*p(this.options.step,.2);this.updatePosition(a(this.from-e),a(this.to-e)),c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var e=this.options;return e=e.minWidth>this.calculatedWidth?e.minWidth:0,{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,l(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,s=this.options,r=this.size,n=i.g().add(this.group);o.push(n),n=i.rect().addClass("highcharts-scrollbar-button").add(n),this.chart.styledMode||n.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroun
1dColor}),n.attr(n.crisp({x:-.5,y:-.5,width:r+1,height:r+1,r:s.buttonBorderRadius},n.strokeWidth())),n=i.path(t.swapXY([["M",r/2+(e?-1:1),r/2-3],["L",r/2+(e?-1:1),r/2+3],["L",r/2+(e?2:-2),r/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]),this.chart.styledMode||n.attr({fill:s.buttonArrowColor})},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=d(o,r.scrollbar,e),this.chart=i,this.size=p(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){t=this.chart.pointer.normalize(t),t=this.cursorToScrollbarPosition(t),this.chartX=t.chartX,this.chartY=t.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e=this.chart.pointer.normalize(t),i=this.options.vertical?"chartY":"chartX",o=this.initPositions||[];!this.grabbedCenter||t.touches&&0===t.touches[0][i]||(i=(e=this.cursorToScrollbarPosition(e)[i])-(i=this[i]),this.hasDragged=!0,this.updatePosition(o[0]+i,o[1]+i),this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,o){var s=this.options.vertical,r=this.rendered?"animate":"attr",n=o,a=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=n,this.yOffset=a,s?(this.width=this.yOffset=i=a=this.size,this.xOffset=n=0,this.barWidth=o-2*i,this.x=t+=this.options.margin):(this.height=this.xOffset=o=n=this.size,this.barWidth=i-2*o,this.y+=this.options.margin),this.group[r]({translateX:t,translateY:this.y}),this.track[r]({width:i,height:o}),this.scrollbarButtons[1][r]({translateX:s?0:i-n,translateY:s?o-a:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){u.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,s=this.chart.styledMode,r=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=r,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:i.trackBorderRadius||0,height:o,width:o}).add(r),s||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=e.g().add(r),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:o,width:o,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),s||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i=this.options,o=i.vertical,s=i.minWidth,r=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(h(r)){var l=r*Math.min(e,1);t=Math.max(t,0);var c=Math.ceil(r*t);this.calculatedWidth=l=a(l-c),l<s&&(c=(r-s+l)*t,l=s),s=Math.floor(c+this.xOffset+this.yOffset),r=l/2-.5,this.from=t,this.to=e,o?(this.scrollbarGroup[n]({translateY:s}),this.scrollbar[n]({height:l}),this.scrollbarRifles[n]({translateY:r}),this.scrollbarTop=s,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:s}),this.scrollbar[n]({width:l}),this.scrollbarRifles[n]({translateX:r}),this.scrollbarLeft=s,this.scrollbarTop=0),12>=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===i.showFull&&(0>=t&&1<=e?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return p(this.options.liveRedraw,e.svg&&!e.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!h(t)},t.prototype.trackClick=function(t){var e=this.chart.pointer.normalize(t),i=this.to-this.from,o=this.y+this.scrollbarTop,s=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>o||!this.options.vertical&&e.chartX>s?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,d(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){1<e&&(t=a(1-a(e-t)),e=1),0>
1t&&(e=a(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=o,t}(),r.scrollbar=d(!0,t.defaultOptions,r.scrollbar),t}),e(i,"Stock/Navigator/Navigator.js",[i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/Globals.js"],i["Core/Axis/NavigatorAxisComposition.js"],i["Stock/Navigator/NavigatorComposition.js"],i["Stock/Scrollbar/Scrollbar.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n){function a(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if((e=[].filter.call(e,b)).length)return Math[t].apply(0,e)}var h=e.defaultOptions,l=i.hasTouch,c=i.isTouchDevice,d=n.addEvent,p=n.clamp,u=n.correctFloat,f=n.defined,g=n.destroyObjectProperties,m=n.erase,v=n.extend,x=n.find,y=n.isArray,b=n.isNumber,S=n.merge,M=n.pick,k=n.removeEvent,C=n.splat;return function(){function e(t){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0,this.init(t)}return e.compose=function(t,i,o){s.compose(t,i,e,o)},e.prototype.drawHandle=function(t,e,i,o){var s=this.navigatorOptions.handles.height;this.handles[e][o](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-s)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-s/2-1)})},e.prototype.drawOutline=function(t,e,i,o){var s=this.navigatorOptions.maskInside,r=this.outline.strokeWidth(),n=r/2,a=r%2/2;r=this.outlineHeight;var h=this.scrollbarHeight||0,l=this.size,c=this.left-h,d=this.top;i?(a=[["M",(c-=n)+r,d-h-a],["L",c+r,i=d+e+a],["L",c,i],["L",c,e=d+t+a],["L",c+r,e],["L",c+r,d+l+h]],s&&a.push(["M",c+r,i-n],["L",c+r,e+n])):(a=[["M",c,d+=n],["L",t+=c+h-a,d],["L",t,d+r],["L",e+=c+h-a,d+r],["L",e,d],["L",c+l+2*h,d]],s&&a.push(["M",t-n,d],["L",e+n,d])),this.outline[o]({d:a})},e.prototype.drawMasks=function(t,e,i,o){var s=this.left,r=this.top,n=this.height;if(i)var a=[s,s,s],h=[r,r+t,r+e],l=[n,n,n],c=[t,e-t,this.size-e];else a=[s,s+t,s+e],h=[r,r,r],l=[t,e-t,this.size-e],c=[n,n,n];this.shades.forEach(function(t,e){t[o]({x:a[e],y:h[e],width:l[e],height:c[e]})})},e.prototype.renderElements=function(){var t=this,e=t.navigatorOptions,i=e.maskInside,o=t.chart,s=o.renderer,r={cursor:o.inverted?"ns-resize":"ew-resize"},n=t.navigatorGroup=s.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!i,i,!i].forEach(function(i,a){var h=s.rect().addClass("highcharts-navigator-mask"+(1===a?"-inside":"-outside")).add(n);o.styledMode||(h.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===a&&h.css(r)),t.shades[a]=h}),t.outline=s.path().addClass("highcharts-navigator-outline").add(n),o.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles&&e.handles.enabled){var a=e.handles,h=a.height,l=a.width;[0,1].forEach(function(e){t.handles[e]=s.symbol(a.symbols[e],-l/2-1,0,l,h,a),o.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(h+l)/2}),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(n),o.styledMode||t.handles[e].attr({fill:a.backgroundColor,stroke:a.borderColor,"stroke-width":a.lineWidth}).css(r)})}},e.prototype.update=function(t){(this.series||[]).forEach(function(t){t.baseSeries&&delete t.baseSeries.navigatorSeries}),this.destroy(),S(!0,this.chart.options.navigator,t),this.init(this.chart)},e.prototype.render=function(t,e,i,o){var s,r=this.chart,n=this.xAxis,a=n.pointRange||0,h=n.navigatorAxis.fake?r.xAxis[0]:n,l=this.navigatorEnabled,c=this.rendered,d=r.inverted,g=r.xAxis[0].minRange,m=r.xAxis[0].options.maxRange,v=this.scrollbarHeight;if(!this.hasDragged||f(i)){if(t=u(t-a/2),e=u(e+a/2),!b(t)||!b(e)){if(!c)return;i=0,o=M(n.width,h.width)}this.left=M(n.left,r.plotLeft+v+(d?r.plotWidth:0));var x=this.size=s=M(n.len,(d?r.plotHeight:r.plotWidth)-2*v);r=d?v:s+2*v,i=M(i,n.toPixels(t,!0)),o=M(o,n.toPixels(e,!0)),b(i)&&1/0!==Math.abs(i)||(i=0,o=r),t=n.toValue(i,!0),e=n.toValue(o,!0);var y=Math.abs(u(e-t));y<g?this.grabbedLeft?i=n.toPixels(e-g-a,!0):this.grabbedRight&&(o=n.toPixels(t+g+a,!0)):f(m)&&u(y-a)>m&&(this.grabbedLeft?i=n.toPixels(e-m-a,!0):this.grabbedRight&&(o=n.toPixels(t+m+a,!0))),this.zoomedMax=p(Math.max(i,o),0,x),this.zoomedMin=p(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,x),this.range=this.zoomedMax-this.zoomedMin,x=Math.round(this.zoomedMax),i=Math.round(this.zoomedMin),l&&(this.navigatorGroup.attr({visibility:"inherit"}),c=c&&!this.hasDragged?"animate":"attr",this.drawMasks(i,x,d,c),this.drawOutline(i,x,d,c),this.navigatorOptions.handles.enabled&&(this.drawHandle(i,0,d,c),this.drawHandle(x,1,d,c))),this.scrollbar&&(d?(d=this.top-v,h=this.left-v+(l||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),v=s+2*v):(d=this.top+(l?this.height:-v),h=this.left-v),this.scrollbar.position(h,d,r,v),this.scrollbar.setRange(this.zoomedMin/(s||1),this.zoomedMax/(s||1))),this.rendered=!0}},e.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,s=o.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(r=i.getPartsEvents("mousedown")).push(d(o.renderTo,"mousemove",t),d(s.ownerDocument,"mouseup",e)),l&&(r.push(d(o.renderTo,"touchmove",t),d(s.ownerDocument,"touchend",e)),r.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(d(i.series[0].xAxis,"foundExtremes",function(){o.navigator.modifyNavigatorAxisExtremes()}))},e.prototype.getPartsEvents=function(t){var e=this,i=[];
1return["shades","handles"].forEach(function(o){e[o].forEach(function(s,r){i.push(d(s.element,t,function(t){e[o+"Mousedown"](t,r)}))})}),i},e.prototype.shadesMousedown=function(t,e){t=this.chart.pointer.normalize(t);var i=this.chart,o=this.xAxis,s=this.zoomedMin,r=this.size,n=this.range,a=this.left,h=t.chartX;if(i.inverted&&(h=t.chartY,a=this.top),1===e)this.grabbedCenter=h,this.fixedWidth=n,this.dragOffset=h-s;else{if(t=h-a-n/2,0===e)t=Math.max(0,t);else if(2===e&&t+n>=r)if(t=r-n,this.reversedExtremes){t-=n;var l=this.getUnionExtremes().dataMin}else var c=this.getUnionExtremes().dataMax;t!==s&&(this.fixedWidth=n,e=o.navigatorAxis.toFixedRange(t,t+n,l,c),f(e.min)&&i.xAxis[0].setExtremes(Math.min(e.min,e.max),Math.max(e.min,e.max),!0,null,{trigger:"navigator"}))}},e.prototype.handlesMousedown=function(t,e){this.chart.pointer.normalize(t);var i=(t=this.chart).xAxis[0],o=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?i.min:i.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?i.max:i.min),t.fixedRange=null},e.prototype.onMouseMove=function(t){var e=this,o=e.chart,s=e.navigatorSize,r=e.range,n=e.dragOffset,a=o.inverted,h=e.left;t.touches&&0===t.touches[0].pageX||(t=o.pointer.normalize(t),o=t.chartX,a&&(h=e.top,o=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-h,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-h)):e.grabbedCenter&&(e.hasDragged=!0,o<n?o=n:o>s+n-r&&(o=s+n-r),e.render(0,0,o-n,o-n+r)),e.hasDragged&&e.scrollbar&&M(e.scrollbar.options.liveRedraw,i.svg&&!c&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))},e.prototype.onMouseUp=function(t){var e=this.chart,i=this.xAxis,o=this.scrollbar,s=t.DOMEvent||t,r=e.inverted,n=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!o||!o.hasDragged)||"scrollbar"===t.trigger){if(o=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var a=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var h=this.fixedExtreme;this.zoomedMax===this.size&&(h=this.reversedExtremes?o.dataMin:o.dataMax),0===this.zoomedMin&&(a=this.reversedExtremes?o.dataMax:o.dataMin),i=i.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,a,h),f(i.min)&&e.xAxis[0].setExtremes(Math.min(i.min,i.max),Math.max(i.min,i.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:s})}"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&b(this.zoomedMin)&&b(this.zoomedMax)&&(e=Math.round(this.zoomedMin),t=Math.round(this.zoomedMax),this.shades&&this.drawMasks(e,t,r,n),this.outline&&this.drawOutline(e,t,r,n),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(e,0,r,n),this.drawHandle(t,1,r,n)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){k(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&k(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(e){var i=e.options,s=i.navigator||{},n=s.enabled,h=i.scrollbar||{},l=h.enabled;i=n&&s.height||0;var c=l&&h.height||0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=i,this.scrollbarHeight=c,this.scrollbarEnabled=l,this.navigatorEnabled=n,this.navigatorOptions=s,this.scrollbarOptions=h,this.outlineHeight=i+c,this.opposite=M(s.opposite,!(n||!e.inverted));var p=this;n=p.baseSeries,h=e.xAxis.length,l=e.yAxis.length;var u=n&&n[0]&&n[0].xAxis||e.xAxis[0]||{options:{}};e.isDirtyBox=!0,p.navigatorEnabled?(p.xAxis=new t(e,S({breaks:u.options.breaks,ordinal:u.options.ordinal},s.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},e.inverted?{offsets:[c,0,-c,0],width:i}:{offsets:[0,-c,0,c],height:i})),p.yAxis=new t(e,S(s.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,reversed:M(s.yAxis&&s.yAxis.reversed,e.yAxis[0]&&e.yAxis[0].reversed,!1),zoomEnabled:!1},e.inverted?{width:i}:{height:i})),n||s.series.data?p.updateNavigatorSeries(!1):0===e.series.length&&(p.unbindRedraw=d(e,"beforeRedraw",function(){0<e.series.length&&!p.series&&(p.setBaseSeries(),p.unbindRedraw())})),p.reversedExtremes=e.inverted&&!p.xAxis.reversed||!e.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()):(p.xAxis={chart:e,navigatorAxis:{fake:!0},translate:function(t,i){var o=e.xAxis[0],s=o.getExtremes(),r=o.len-2*c,n=a("min",o.options.min,s.dataMin);return o=a("max",o.options.max,s.dataMax)-n,i?t*o/r+n:r*(t-n)/o},toPixels:function(t){return this.translate(t)}
1,toValue:function(t){return this.translate(t,!0)}},p.xAxis.navigatorAxis.axis=p.xAxis,p.xAxis.navigatorAxis.toFixedRange=o.prototype.toFixedRange.bind(p.xAxis.navigatorAxis)),e.options.scrollbar.enabled&&(e.scrollbar=p.scrollbar=new r(e.renderer,S(e.options.scrollbar,{margin:p.navigatorEnabled?0:10,vertical:e.inverted}),e),d(p.scrollbar,"changed",function(t){var e=p.size,i=e*this.to;e*=this.from,p.hasDragged=p.scrollbar.hasDragged,p.render(0,0,e,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){p.onMouseUp(t)})})),p.addBaseSeriesEvents(),p.addChartEvents()},e.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.xAxis,s=o.options,r=i.options;return t&&null===i.dataMin||(e={dataMin:M(s&&s.min,a("min",r.min,i.dataMin,o.dataMin,o.min)),dataMax:M(s&&s.max,a("max",r.max,i.dataMax,o.dataMax,o.max))}),e},e.prototype.setBaseSeries=function(t,e){var i=this.chart,o=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?x(i.series,function(t){return!t.options.isInternal}).index:0),(i.series||[]).forEach(function(e,i){e.options.isInternal||!e.options.showInNavigator&&(i!==t&&e.options.id!==t||!1===e.options.showInNavigator)||o.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},e.prototype.updateNavigatorSeries=function(t,e){var i,o,s,r=this,n=r.chart,a=r.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=r.series=(r.series||[]).filter(function(t){var e=t.baseSeries;return!(0>a.indexOf(e)&&(e&&(k(e,"updatedData",r.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}),d=r.navigatorOptions.series;a&&a.length&&a.forEach(function(t){var p=t.navigatorSeries,u=v({color:t.color,visible:t.visible},y(d)?h.navigator.series:d);p&&!1===r.navigatorOptions.adaptToUpdatedData||(l.name="Navigator "+a.length,i=t.options||{},s=i.navigatorOptions||{},u.dataLabels=C(u.dataLabels),(o=S(i,l,u,s)).pointRange=M(u.pointRange,s.pointRange,h.plotOptions[o.type||"line"].pointRange),u=s.data||u.data,r.hasNavigatorData=r.hasNavigatorData||!!u,o.data=u||i.data&&i.data.slice(0),p&&p.options?p.update(o,e):(t.navigatorSeries=n.initSeries(o),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries)))}),(!d.data||a&&a.length)&&!y(d)||(r.hasNavigatorData=!1,(d=C(d)).forEach(function(t,e){l.name="Navigator "+(c.length+1),(o=S(h.navigator.series,{color:n.series[e]&&!n.series[e].options.isInternal&&n.series[e].color||n.options.colors[e]||n.options.colors[0]},l,t)).data=t.data,o.data&&(r.hasNavigatorData=!0,c.push(n.initSeries(o)))})),t&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(d(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(i){i.eventsToUnbind.push(d(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(d(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(d(i,"updatedData",t.updatedDataHandler)),i.eventsToUnbind.push(d(i,"remove",function(){this.navigatorSeries&&(m(e.series,this.navigatorSeries),f(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},e.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.xData&&e.xData.length?e.xData[0]:t)},t)},e.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);!e||e.dataMin===t.min&&e.dataMax===t.max||(t.min=e.dataMin,t.max=e.dataMax)}},e.prototype.modifyBaseAxisExtremes=function(){var t=this.chart.navigator,e=this.getExtremes(),i=e.dataMin,o=e.dataMax;e=e.max-e.min;var s=t.stickToMin,r=t.stickToMax,n=M(this.options.overscroll,0),a=t.series&&t.series[0],h=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(s)var l=i,c=i+e;r&&(c=o+n,s||(l=Math.max(i,c-e,t.getBaseSeriesMin(a&&a.xData?a.xData[0]:-Number.MAX_VALUE)))),h&&(s||r)&&b(l)&&(this.min=this.userMin=l,this.max=this.userMax=c)}t.stickToMin=t.stickToMax=null},e.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries;t.stickToMax=M(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size)),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},e.prototype.shouldStickToMin=function(t,e){e=e.getBaseSeriesMin(t.xData[0]);var i=t.xAxis;t=i.max;var o=i.min;return i=i.options.range,!(!b(t)||!b(o))&&(i&&0<t-e?t-e<i:o<=e)},e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(d(this.chart,"redraw",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),d(this.chart,"getMargins",function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.outlineHeight:0)+t.navigatorOptions.margin}))},e.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEac
1h(function(t){t.destroy&&t.destroy()}),"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(e){t[e]&&t[e].destroy&&t[e].destroy(),t[e]=null}),[this.handles].forEach(function(t){g(t)})},e}()}),e(i,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),e(i,"Stock/RangeSelector/RangeSelectorComposition.js",[i["Core/Defaults.js"],i["Stock/RangeSelector/RangeSelectorDefaults.js"],i["Core/Utilities.js"]],function(t,e,i){function o(){var t=this.range,e=t.type,i=this.max,o=this.chart.time,s=function(t,i){var s="year"===e?"FullYear":"Month",r=new o.Date(t),n=o.get(s,r);return o.set(s,r,n+i),n===o.get(s,r)&&o.set("Date",r,0),r.getTime()-t};
1if(x(t))var r=i-t,n=t;else t&&(r=i+s(i,-(t.count||1)),this.chart&&(this.chart.fixedRange=i-r));var a=b(this.dataMin,Number.MIN_VALUE);return x(r)||(r=a),r<=a&&(r=a,void 0===n&&(n=s(r,t.count)),this.newMax=Math.min(r+n,b(this.dataMax,Number.MAX_VALUE))),x(i)?!x(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function s(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new d(this))}function r(){var t=this.axes,e=this.rangeSelector;e&&(x(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),t.forEach(function(t){t.updateNames(),t.setScale()}),this.getAxisMargins(),e.render(),t=e.options.verticalAlign,e.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)))}function n(t){var e,i,o,s,r=t.rangeSelector,n=function(){r&&(e=t.xAxis[0].getExtremes(),i=t.legend,s=r&&r.options.verticalAlign,x(e.min)&&r.render(e.min,e.max),i.display&&"top"===s&&s===i.options.verticalAlign&&((o=y(t.spacingBox)).y="vertical"===i.options.layout?t.plotTop:o.y+r.getHeight(),i.group.placed=!1,i.align(o)))};r&&(v(S,function(e){return e[0]===t})||S.push([t,[f(t.xAxis[0],"afterSetExtremes",function(t){r&&r.render(t.min,t.max)}),f(t,"redraw",n)]]),n())}function a(){for(var t=0,e=S.length;t<e;++t){var i=S[t];if(i[0]===this){i[1].forEach(function(t){return t()}),S.splice(t,1);break}}}function h(){var t=this.rangeSelector;t&&(t=t.getHeight(),this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t))}function l(){var t=this.rangeSelector;t&&!t.options.floating&&(t.render(),"bottom"===(t=t.options.verticalAlign)?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0))}function c(t){var e=t.options.rangeSelector;t=this.extraBottomMargin;var i=this.extraTopMargin,o=this.rangeSelector;e&&e.enabled&&!g(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new d(this)),this.extraTopMargin=this.extraBottomMargin=!1,o&&(n(this),e=e&&e.verticalAlign||o.options&&o.options.verticalAlign,o.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)),this.extraBottomMargin!==t||this.extraTopMargin!==i)&&(this.isDirtyBox=!0)}var d,p=t.defaultOptions,u=t.setOptions,f=i.addEvent,g=i.defined,m=i.extend,v=i.find,x=i.isNumber,y=i.merge,b=i.pick,S=[],M=[];return{compose:function(t,i,g){d=g,-1===M.indexOf(t)&&(M.push(t),t.prototype.minFromRange=o),-1===M.indexOf(i)&&(M.push(i),f(i,"afterGetContainer",s),f(i,"beforeRender",r),f(i,"destroy",a),f(i,"getMargins",h),f(i,"render",l),f(i,"update",c),i.prototype.callbacks.push(n)),-1===M.indexOf(u)&&(m(p,{rangeSelector:e.rangeSelector}),m(p.lang,e.lang))}}}),e(i,"Stock/RangeSelector/RangeSelector.js",[i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/Globals.js"],i["Stock/RangeSelector/RangeSelectorComposition.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(e,i,o,s,r,n){var a=i.defaultOptions,h=n.addEvent,l=n.createElement,c=n.css,d=n.defined,p=n.destroyObjectProperties,u=n.discardElement,f=n.extend,g=n.fireEvent,m=n.isNumber,v=n.merge,x=n.objectEach,y=n.pad,b=n.pick,S=n.pInt,M=n.splat;return i=function(){function i(t){this.buttons=void 0,this.buttonOptions=i.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=t,this.init(t)}return i.compose=function(t,e){s.compose(t,e,i)},i.prototype.clickButton=function(t,i){var o=this.chart,s=this.buttonOptions[t],r=o.xAxis[0],n=o.scroller&&o.scroller.getUnionExtremes()||r||{},a=s.type,l=s.dataGrouping,c=n.dataMin,p=n.dataMax,u=r&&Math.round(Math.min(r.max,b(p,r.max)));n=s._range;var f,v=!0;if(null!==c&&null!==p){if(o.fixedRange=n,this.setSelected(t),l&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(r||{chart:this.chart},l,!1),this.frozenStates=s.preserveDataGrouping),"month"===a||"year"===a)if(r){a={range:s,max:u,chart:o,dataMin:c,dataMax:p};var x=r.minFromRange.call(a);m(a.newMax)&&(u=a.newMax),v=!1}else n=s;else if(n)x=Math.max(u-n,c),u=Math.min(x+n,p),v=!1;else if("ytd"===a){if(!r)return void(this.deferredYTDClick=t);void 0!==p&&void 0!==c||(c=Number.MAX_VALUE,p=Number.MIN_VALUE,o.series.forEac
1h(function(t){(t=t.xData)&&(c=Math.min(t[0],c),p=Math.max(t[t.length-1],p))}),i=!1),x=f=(a=this.getYTDExtremes(p,c,o.time.useUTC)).min,u=a.max}else"all"===a&&r&&(o.navigator&&o.navigator.baseSeries[0]&&(o.navigator.baseSeries[0].xAxis.options.range=void 0),x=c,u=p);if(v&&s._offsetMin&&d(x)&&(x+=s._offsetMin),s._offsetMax&&d(u)&&(u+=s._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),r)r.setExtremes(x,u,b(i,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:s});else{var y=M(o.options.xAxis)[0],S=y.range;y.range=n;var k=y.min;y.min=f,h(o,"load",function(){y.range=S,y.min=k})}g(this,"afterBtnClick")}},i.prototype.setSelected=function(t){this.selected=this.options.selected=t},i.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=i.buttons||e.defaultButtons.slice(),s=i.selected,r=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&g(t,"blur"),i&&i.blur&&g(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(h(t.container,"mousedown",r)),this.eventsToUnbind.push(h(t,"resize",r)),o.forEach(e.computeButtonRange),void 0!==s&&o[s]&&this.clickButton(s,!1),this.eventsToUnbind.push(h(t,"load",function(){t.xAxis&&t.xAxis[0]&&h(t.xAxis[0],"setExtremes",function(i){this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})}))},i.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=e.xAxis[0],s=Math.round(o.max-o.min),r=!o.hasVisibleSeries,n=e.scroller&&e.scroller.getUnionExtremes()||o,a=n.dataMin,h=n.dataMax,l=(e=t.getYTDExtremes(h,a,e.time.useUTC)).min,c=e.max,d=t.selected,p=t.options.allButtonsEnabled,u=t.buttons,f=m(d);t.buttonOptions.forEach(function(e,n){var g=e._range,m=e.type,v=e.count||1,x=u[n],y=e._offsetMax-e._offsetMin,b=n===d,S=g>h-a,M=g<o.minRange;e=0;var k=!1,C=!1;g=g===s,("month"===m||"year"===m)&&s+36e5>=864e5*{month:28,year:365}[m]*v-y&&s-36e5<=864e5*{month:31,year:366}[m]*v+y?g=!0:"ytd"===m?(g=c-l+y===s,k=!b):"all"===m&&(g=o.max-o.min>=h-a,C=!b&&f&&g),m=!p&&(S||M||C||r),v=b&&g||g&&!f&&!k||b&&t.frozenStates,m?e=3:v&&(f=!0,e=2),x.state!==e&&(x.setState(e),i&&(i.options[n+1].disabled=m,2===e&&(i.selectedIndex=n+1)),0===e&&d===n&&t.setSelected())})},i.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*i),t._offsetMin=b(t.offsetMin,0),t._offsetMax=b(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},i.prototype.getInputValue=function(t){t="min"===t?this.minInput:this.maxInput;var e=this.chart.options.rangeSelector,i=this.chart.time;return t?("text"===t.type&&e.inputDateParser||this.defaultInputDateParser)(t.value,i.useUTC,i):0},i.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,s="min"===t?this.minInput:this.maxInput;if(t="min"===t?this.minDateBox:this.maxDateBox,s){var r=s.getAttribute("data-hc-time");r=d(r)?Number(r):void 0,d(e)&&(d(r)&&s.setAttribute("data-hc-time-previous",r),s.setAttribute("data-hc-time",e),r=e),s.value=o.dateFormat(this.inputTypeFormats[s.type]||i.inputEditDateFormat,r),t&&t.attr({text:o.dateFormat(i.inputDateFormat,r)})}},i.prototype.setInputExtremes=function(t,e,i){if(t="min"===t?this.minInput:this.maxInput){var o=this.inputTypeFormats[t.type],s=this.chart.time;o&&(e=s.dateFormat(o,e),t.min!==e&&(t.min=e),i=s.dateFormat(o,i),t.max!==i&&(t.max=i))}},i.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox;if((t="min"===t?this.minInput:this.maxInput)&&e&&this.inputGroup){var i="text"===t.type,o=this.inputGroup,s=o.translateX;o=o.translateY;var r=this.options.inputBoxWidth;c(t,{width:i?e.width+(r?-2:20)+"px":"auto",height:i?e.height-2+"px":"auto",border:"2px solid silver"}),c(t,i&&r?{left:s+e.x+"px",top:o+"px"}:{left:Math.min(Math.round(e.x+s-(t.offsetWidth-e.width)/2),this.chart.chartWidth-t.offsetWidth)+"px",top:o-(t.offsetHeight-e.height)/2+"px"})}}
1,i.prototype.hideInput=function(t){(t="min"===t?this.minInput:this.maxInput)&&c(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},i.prototype.defaultInputDateParser=function(t,e,i){var s,r=t.split("/").join("-").split(" ").join("T");return-1===r.indexOf("T")&&(r+="T00:00"),e?r+="Z":((s=o.isSafari)&&(s=!(6<(s=r).length&&(s.lastIndexOf("-")===s.length-6||s.lastIndexOf("+")===s.length-6))),s&&(r+=0>=(s=new Date(r).getTimezoneOffset()/60)?"+".concat(y(-s),":00"):"-".concat(y(s),":00"))),r=Date.parse(r),m(r)||(t=t.split("-"),r=Date.UTC(S(t[0]),S(t[1])-1,S(t[2]))),i&&e&&m(r)&&(r+=i.getTimezoneOffset(r)),r},i.prototype.drawInput=function(t){function e(){var e=n.maxInput,o=n.minInput,s=i.xAxis[0],r=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:s,a=r.dataMin;r=r.dataMax;var h=n.getInputValue(t);h!==Number(x.getAttribute("data-hc-time-previous"))&&m(h)&&(x.setAttribute("data-hc-time-previous",h),u&&e&&m(a)?h>Number(e.getAttribute("data-hc-time"))?h=void 0:h<a&&(h=a):o&&m(r)&&(h<Number(o.getAttribute("data-hc-time"))?h=void 0:h>r&&(h=r)),void 0!==h&&s.setExtremes(u?h:s.min,u?s.max:h,void 0,void 0,{trigger:"rangeSelectorInput"}))}var i=this.chart,s=this.div,r=this.inputGroup,n=this,h=i.renderer.style||{},d=i.renderer,p=i.options.rangeSelector,u="min"===t,g=a.lang[u?"rangeSelectorFrom":"rangeSelectorTo"]||"";g=d.label(g,0).addClass("highcharts-range-label").attr({padding:g?2:0,height:g?p.inputBoxHeight:0}).add(r),d=d.label("",0).addClass("highcharts-range-input").attr({padding:2,width:p.inputBoxWidth,height:p.inputBoxHeight,"text-align":"center"}).on("click",function(){n.showInput(t),n[t+"Input"].focus()}),i.styledMode||d.attr({stroke:p.inputBoxBorderColor,"stroke-width":1}),d.add(r);var x=l("input",{name:t,className:"highcharts-range-selector"},void 0,s);x.setAttribute("type",function(t){if(-1!==t.indexOf("%L"))return"text";var e="aAdewbBmoyY".split("").some(function(e){return-1!==t.indexOf("%"+e)}),i="HkIlMS".split("").some(function(e){return-1!==t.indexOf("%"+e)});return e&&i?"datetime-local":e?"date":i?"time":"text"}(p.inputDateFormat||"%b %e, %Y")),i.styledMode||(g.css(v(h,p.labelStyle)),d.css(v({color:"#333333"},h,p.inputStyle)),c(x,f({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},p.inputStyle))),x.onfocus=function(){n.showInput(t)},x.onblur=function(){x===o.doc.activeElement&&e(),n.hideInput(t),n.setInputValue(t),x.blur()};var y=!1;return x.onchange=function(){y||(e(),n.hideInput(t),x.blur())},x.onkeypress=function(t){13===t.keyCode&&e()},x.onkeydown=function(t){y=!0,38!==t.keyCode&&40!==t.keyCode||e()},x.onkeyup=function(){y=!1},{dateBox:d,input:x,label:g}},i.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},i.prototype.getYTDExtremes=function(t,e,i){var o=this.chart.time,s=new o.Date(t),r=o.get("FullYear",s);return i=i?o.Date.UTC(r,0,1):+new o.Date(r,0,1),e=Math.max(e,i),s=s.getTime(),{max:Math.min(t||s,s),min:e}},i.prototype.render=function(t,e){var i=this.chart,o=i.renderer,s=i.container,r=i.options,n=r.rangeSelector,a=b(r.chart.style&&r.chart.style.zIndex,0)+1;if(r=n.inputEnabled,!1!==n.enabled){if(this.rendered||(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=l("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),s.parentNode&&s.parentNode.insertBefore(this.div,s),r&&(this.inputGroup=o.g("input-group").add(this.group),o=this.drawInput("min"),this.minDateBox=o.dateBox,this.minLabel=o.label,this.minInput=o.input,o=this.drawInput("max"),this.maxDateBox=o.dateBox,this.maxLabel=o.label,this.maxInput=o.input)),r&&(this.setInputValue("min",t),this.setInputValue("max",e),t=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{},d(t.dataMin)&&d(t.dataMax)&&(i=i.xAxis[0].minRange||0,this.setInputExtremes("min",t.dataMin,Math.min(t.dataMax,this.getInputValue("max"))-i),this.setInputExtremes("max",Math.max(t.dataMin,this.getInputValue("min"))+i,t.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEac
1h(function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:h}),h+=e+n.inputSpacing)}})}this.alignElements(),this.rendered=!0}},i.prototype.renderButtons=function(){var t=this,e=this.buttons,i=this.options,s=a.lang,r=this.chart.renderer,n=v(i.buttonTheme),c=n&&n.states,d=n.width||28;delete n.width,delete n.states,this.buttonGroup=r.g("range-selector-buttons").add(this.group);var p=this.dropdown=l("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);h(p,"touchstart",function(){p.style.fontSize="16px"}),[[o.isMS?"mouseover":"mouseenter"],[o.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(i){var o=i[0],s=i[1];h(p,o,function(){var i=e[t.currentButtonIndex()];i&&g(i.element,s||o)})}),this.zoomText=r.label(s&&s.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),n["stroke-width"]=b(n["stroke-width"],0)),l("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,p),this.buttonOptions.forEach(function(i,o){l("option",{textContent:i.title||i.text},void 0,p),e[o]=r.button(i.text,0,0,function(e){var s,r=i.events&&i.events.click;r&&(s=r.call(i,e)),!1!==s&&t.clickButton(o),t.isActive=!0},n,c&&c.hover,c&&c.select,c&&c.disabled).attr({"text-align":"center",width:d}).add(t.buttonGroup),i.title&&e[o].attr("title",i.title)})},i.prototype.alignElements=function(){var t=this,e=this.buttonGroup,i=this.buttons,o=this.chart,s=this.group,r=this.inputGroup,n=this.options,a=this.zoomText,h=o.options,l=h.exporting&&!1!==h.exporting.enabled&&h.navigation&&h.navigation.buttonOptions;h=n.buttonPosition;var c=n.inputPosition,d=n.verticalAlign,p=function(e,i){return l&&t.titleCollision(o)&&"top"===d&&"right"===i.align&&i.y-e.getBBox().height-12<(l.y||0)+(l.height||0)+o.spacing[0]?-40:0},u=o.plotLeft;if(s&&h&&c){var f=h.x-o.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var g=0;a&&(g+=a.getBBox().width+5),i.forEach(function(t,e){g+=t.width,e!==i.length-1&&(g+=n.buttonSpacing)}),this.initialButtonGroupWidth=g}u-=o.spacing[3],this.updateButtonStates(),a=p(e,h),this.alignButtonGroup(a),s.placed=e.placed=o.hasLoaded}e=0,r&&(e=p(r,c),"left"===c.align?f=u:"right"===c.align&&(f=-Math.max(o.axisOffset[1],-e)),r.align({y:c.y,width:r.getBBox().width,align:c.align,x:c.x+f-2},!0,o.spacingBox),r.placed=o.hasLoaded),this.handleCollision(e),s.align({verticalAlign:d},!0,o.spacingBox),r=s.alignAttr.translateY,e=s.getBBox().height+20,p=0,"bottom"===d&&(p=r-(e=e+(p=(p=o.legend&&o.legend.options)&&"bottom"===p.verticalAlign&&p.enabled&&!p.floating?o.legend.legendHeight+b(p.margin,10):0)-20)-(n.floating?0:n.y)-(o.titleOffset?o.titleOffset[2]:0)-10),"top"===d?(n.floating&&(p=0),o.titleOffset&&o.titleOffset[0]&&(p=o.titleOffset[0]),p+=o.margin[0]-o.spacing[0]||0):"middle"===d&&(c.y===h.y?p=r:(c.y||h.y)&&(p=0>c.y||0>h.y?p-Math.min(c.y,h.y):r-e)),s.translate(n.x,n.y+Math.floor(p)),h=this.minInput,c=this.maxInput,r=this.dropdown,n.inputEnabled&&h&&c&&(h.style.marginTop=s.translateY+"px",c.style.marginTop=s.translateY+"px"),r&&(r.style.marginTop=s.translateY+"px")}},i.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.buttonGroup,s=this.options.buttonPosition,r=i.plotLeft-i.spacing[3],n=s.x-i.spacing[3];"right"===s.align?n+=t-r:"center"===s.align&&(n-=r/2),o&&o.align({y:s.y,width:b(e,this.initialButtonGroupWidth),align:s.align,x:n},!0,i.spacingBox)},i.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,s=e.hasLoaded?"animate":"attr",r=i.buttonPosition,n=e=e.plotLeft;for(o&&"hidden"!==o.visibility&&(o[s]({x:b(e+r.x,e)}),n+=r.x+o.getBBox().width+5),o=0,r=this.buttonOptions.length;o<r;++o)"hidden"!==t[o].visibility?(t[o][s]({x:n}),n+=t[o].width+i.buttonSpacing):t[o][s]({x:e})},i.prototype.handleCollision=function(t){var e=this,i=this.chart,o=this.buttonGroup,s=this.inputGroup,r=this.options,n=r.buttonPosition,a=r.dropdown,h=r.inputPosition;r=function(){var t=0;return e.buttons.forEach(function(e){(e=e.getBBox()).width>t&&(t=e.width)}),t};var l=function(e){if(s&&o){var i=s.alignAttr.translateX+s.alignOptions.x-t+s.getBBox().x+2,r=s.alignOptions.width,a=o.alignAttr.translateX+o.getBBox().x;return a+e>i&&i+r>a&&n.y<h.y+s.getBBox().height}return!1},c=function(){s&&o&&s.attr({translateX:s.alignAttr.translateX+(i.axisOffset[1]>=-t?0:-t),translateY:s.alignAttr.translateY+o.getBBox().height+10})};if(o){if("always"===a)return this.collapseButtons(t),void(l(r())&&c());"never"===a&&this.expandButtons()}s&&o?h.align===n.align||l(this.initialButtonGroupWidth+20)?"responsive"===a?(this.collapseButtons(t),l(r())&&c()):c():"responsive"===a&&this.expandButtons():o&&"responsive"===a&&(this.initialButtonGroupWidth>i.plotWidth?this.collapseButtons(t):this.expandButtons())},i.prototype.collapseButtons=function(t){var e=this.buttons,i=this.buttonOptions,o=this.chart,s=this.dropdown,r=this.options,n=this.zoomText,a=o.userOptions.rangeSelector&&o.userOptions.rangeSelector.buttonTheme||{}
1,h=function(t){return{text:t?t+" ▾":"▾",width:"auto",paddingLeft:b(r.buttonTheme.paddingLeft,a.padding,8),paddingRight:b(r.buttonTheme.paddingRight,a.padding,8)}};n&&n.hide();var l=!1;i.forEach(function(t,i){2!==(i=e[i]).state?i.hide():(i.show(),i.attr(h(t.text)),l=!0)}),l||(s&&(s.selectedIndex=0),e[0].show(),e[0].attr(h(this.zoomText&&this.zoomText.textStr))),i=r.buttonPosition.align,this.positionButtons(),"right"!==i&&"center"!==i||this.alignButtonGroup(t,e[this.currentButtonIndex()].getBBox().width),this.showDropdown()},i.prototype.expandButtons=function(){var t=this.buttons,e=this.buttonOptions,i=this.options,o=this.zoomText;this.hideDropdown(),o&&o.show(),e.forEach(function(e,o){(o=t[o]).show(),o.attr({text:e.text,width:i.buttonTheme.width||28,paddingLeft:b(i.buttonTheme.paddingLeft,"unset"),paddingRight:b(i.buttonTheme.paddingRight,"unset")}),2>o.state&&o.setState(0)}),this.positionButtons()},i.prototype.currentButtonIndex=function(){var t=this.dropdown;return t&&0<t.selectedIndex?t.selectedIndex-1:0},i.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.buttons,i=this.chart,o=this.dropdown;if(t&&o){var s=t.translateX;t=t.translateY,e=e[this.currentButtonIndex()].getBBox(),c(o,{left:i.plotLeft+s+"px",top:t+.5+"px",width:e.width+"px",height:e.height+"px"}),this.hasVisibleDropdown=!0}},i.prototype.hideDropdown=function(){var t=this.dropdown;t&&(c(t,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},i.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.y,o=t.buttonPosition.y,s=t.inputPosition.y;return t.height?t.height:(this.alignElements(),t=e?e.getBBox(!0).height+13+i:0,e=Math.min(s,o),(0>s&&0>o||0<s&&0<o)&&(t+=Math.abs(e)),t)},i.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},i.prototype.update=function(t){var e=this.chart;v(!0,e.options.rangeSelector,t),this.destroy(),this.init(e),this.render()},i.prototype.destroy=function(){var e=this,o=e.minInput,s=e.maxInput;e.eventsToUnbind&&(e.eventsToUnbind.forEach(function(t){return t()}),e.eventsToUnbind=void 0),p(e.buttons),o&&(o.onfocus=o.onblur=o.onchange=null),s&&(s.onfocus=s.onblur=s.onchange=null),x(e,function(o,s){o&&"chart"!==s&&(o instanceof r?o.destroy():o instanceof t.HTMLElement&&u(o)),o!==i.prototype[s]&&(e[s]=null)},this)},i}(),f(i.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),i}),e(i,"Core/Axis/OrdinalAxis.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=o.addEvent,n=o.c
1orrectFloat,a=o.css,h=o.defined,l=o.error,c=o.pick,d=o.timeUnits,p=[];return function(t){function o(t,e,i,o,s,r,n){void 0===s&&(s=[]),void 0===r&&(r=0);var a,c,p={},u=this.options.tickPixelInterval,f=this.chart.time,g=[],m=0,v=[],x=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!s||3>s.length||void 0===e)return f.getTimeTicks.apply(f,arguments);var y=s.length;for(a=0;a<y;a++){var b=a&&s[a-1]>i;if(s[a]<e&&(m=a),a===y-1||s[a+1]-s[a]>5*r||b){if(s[a]>x){for(c=f.getTimeTicks(t,s[m],s[a],o);c.length&&c[0]<=x;)c.shift();c.length&&(x=c[c.length-1]),g.push(v.length),v=v.concat(c)}m=a+1}if(b)break}if(c){if(c=c.info,n&&c.unitRange<=d.hour){for(a=v.length-1,m=1;m<a;m++)if(f.dateFormat("%d",v[m])!==f.dateFormat("%d",v[m-1])){p[v[m]]="day";var S=!0}S&&(p[v[0]]="day"),c.higherRanks=p}c.segmentStarts=g,v.info=c}else l(12,!1,this.chart);if(n&&h(u)){for(f=[],m=[],a=void 0,S=c=v.length;S--;)g=this.translate(v[S]),a&&(m[S]=a-g),f[S]=a=g;for(m.sort(),(m=m[Math.floor(m.length/2)])<.6*u&&(m=null),S=v[c-1]>i?c-1:c,a=void 0;S--;)g=f[S],c=Math.abs(a-g),a&&c<.8*u&&(null===m||c<.8*m)?(p[v[S]]&&!p[v[S+1]]?(c=S+1,a=g):c=S,v.splice(c,1)):a=g}return v}function s(t){var e=this.ordinal.positions;if(!e)return t;var i=e.length-1;if(0>t)t=e[0];else if(t>i)t=e[i];else var o=t-(i=Math.floor(t));return void 0!==o&&void 0!==e[i]?e[i]+(o?o*(e[i+1]-e[i]):0):t}function u(t){var e=this.ordinal,i=e.positions;if(!i)return t;var o=(t-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;if(0<o&&o<this.left+this.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),i=e.extendedOrdinalPositions),i&&i.length){if(t=e.getIndexOfPoint(o,i),e=n(t%1),0<=t&&t<i.length-1)return i[Math.floor(t)]+e*(i[Math.ceil(t)]-i[Math.floor(t)]);e=i.length,o=i[0];var s=((i=i[e-1])-o)/(e-1);return 0>t?o+s*t:i+s*(t-e)}return t}function f(e,i){var o=t.Additions.findIndexOf(e,i,!0);return e[o]===i?o:o+(i-e[o])/(e[o+1]-e[o])}function g(){this.ordinal||(this.ordinal=new t.Additions(this))}function m(){this.isXAxis&&h(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&h(this.userMin)&&(this.min+=this.options.overscroll))}function v(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function x(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function y(t){var e=this.xAxis[0],i=e.options.overscroll,o=t.originalEvent.chartX,s=this.options.chart.panning,r=!1;if(s&&"y"!==s.type&&e.options.ordinal&&e.series.length){var n=this.mouseDownX,h=e.getExtremes(),l=h.dataMax,c=h.min,d=h.max,p=this.hoverPoints,u=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange;n=(n-o)/(e.translationSlope*(e.ordinal.slope||u)),u={ordinal:{positions:u=e.ordinal.getExtendedPositions(),extendedOrdinalPositions:u}};var f=e.index2val,g=e.val2lin,m=void 0,v=m=void 0,x=void 0;u.ordinal.positions?1<Math.abs(n)&&(p&&p.forEach(function(t){t.setState()}),0>n?(v=u,x=e.ordinal.positions?e:u):(v=e.ordinal.positions?e:u,x=u),l>(m=x.ordinal.positions)[m.length-1]&&m.push(l),this.fixedRange=d-c,(m=e.navigatorAxis.toFixedRange(void 0,void 0,f.apply(v,[g.apply(v,[c,!0])+n]),f.apply(x,[g.apply(x,[d,!0])+n]))).min>=Math.min(h.dataMin,c)&&m.max<=Math.max(l,d)+i&&e.setExtremes(m.min,m.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,a(this.container,{cursor:"move"})):r=!0}else r=!0;r||s&&/y/.test(s.type)?i&&(e.max=e.dataMax+i):t.preventDefault()}function b(){var t=this.xAxis;t&&t.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.extendedOrdinalPositions)}function S(t,e){var i=this.ordinal,o=i.positions,s=i.slope,r=i.extendedOrdinalPositions;if(!o)return t;var n=o.length;if(o[0]<=t&&o[n-1]>=t)t=f(o,t);else{if(r||(r=i.getExtendedPositions&&i.getExtendedPositions(),i.extendedOrdinalPositions=r),!r||!r.length)return t;n=r.length,s||(s=(r[n-1]-r[0])/n),o=f(r,o[0]),t=t>=r[0]&&t<=r[n-1]?f(r,t)-o:t<r[0]?-o-(t=r[0]-t)/s:(t-=r[n-1])/s+n-o}return e?t:s*(t||0)+i.offset}
1t.compose=function(t,e,i){if(-1===p.indexOf(t)){p.push(t);var n=t.prototype;n.getTimeTicks=o,n.index2val=s,n.lin2val=u,n.val2lin=S,n.ordinal2lin=n.val2lin,r(t,"afterInit",g),r(t,"foundExtremes",m),r(t,"afterSetScale",v),r(t,"initialAxisTranslation",x)}return-1===p.indexOf(i)&&(p.push(i),r(i,"pan",y)),-1===p.indexOf(e)&&(p.push(e),r(e,"updatedData",b)),t};var M=function(){function t(t){this.index={},this.axis=t}return t.prototype.beforeSetTickPositions=function(){var t=this.axis,e=t.ordinal,i=t.getExtremes(),o=i.min,s=i.max,r=t.isXAxis&&!!t.options.breaks;i=t.options.ordinal;var n,a,h=t.chart.options.chart.ignoreHiddenSeries,l=[],d=Number.MAX_VALUE,p=!1,u=!1,f=!1;if(i||r){var g=0;t.series.forEach(function(t,e){if(n=[],0<e&&"highcharts-navigator-series"!==t.options.id&&1<t.processedXData.length&&(u=g!==t.processedXData[1]-t.processedXData[0]),g=t.processedXData[1]-t.processedXData[0],t.boosted&&(f=t.boosted),!(h&&!1===t.visible||!1===t.takeOrdinalPosition&&!r)&&(l=l.concat(t.processedXData),m=l.length,l.sort(function(t,e){return t-e}),d=Math.min(d,c(t.closestPointRange,d)),m)){for(e=0;e<m-1;)l[e]!==l[e+1]&&n.push(l[e+1]),e++;n[0]!==l[0]&&n.unshift(l[0]),l=n}}),u&&f&&(l.pop(),l.shift());var m=l.length;if(2<m){var v=l[1]-l[0];for(a=m-1;a--&&!p;)l[a+1]-l[a]!==v&&(p=!0);!t.options.keepOrdinalPadding&&(l[0]-o>v||s-l[l.length-1]>v)&&(p=!0)}else t.options.overscroll&&(2===m?d=l[1]-l[0]:1===m?(d=t.options.overscroll,l=[l[0],l[0]+d]):d=e.overscrollPointsRange);p||t.forceOrdinal?(t.options.overscroll&&(e.overscrollPointsRange=d,l=l.concat(e.getOverscrollPositions())),e.positions=l,v=t.ordinal2lin(Math.max(o,l[0]),!0),a=Math.max(t.ordinal2lin(Math.min(s,l[l.length-1]),!0),1),e.slope=s=(s-o)/(a-v),e.offset=o-v*s):(e.overscrollPointsRange=c(t.closestPointRange,e.overscrollPointsRange),e.positions=t.ordinal.slope=e.offset=void 0)}t.isOrdinal=i&&p,e.groupIntervalFactor=null},t.findIndexOf=function(t,e,i){for(var o,s=0,r=t.length-1;s<r;)t[o=Math.ceil((s+r)/2)]<=e?s=o:r=o-1;return t[s]===e||i?s:-1},t.prototype.getExtendedPositions=function(){var t=this,o=t.axis,s=o.constructor.prototype,r=o.chart,n=o.series[0].currentDataGrouping,a=n?n.count+n.unitName:"raw",h=o.options.overscroll,l=o.getExtremes(),c=void 0,d=t.index;if(d||(d=t.index={}),!d[a]){var p={series:[],chart:r,forceOrdinal:!1,getExtremes:function(){return{min:l.dataMin,max:l.dataMax+h}},getGroupPixelWidth:s.getGroupPixelWidth,getTimeTicks:s.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:s.ordinal2lin,getIndexOfPoint:s.getIndexOfPoint,val2lin:s.val2lin};p.ordinal.axis=p,o.series.forEach(function(o){(c={xAxis:p,xData:o.xData.slice(),chart:r,destroyGroupedData:e.noop,getProcessedData:i.prototype.getProcessedData,applyGrouping:i.prototype.applyGrouping}).xData=c.xData.concat(t.getOverscrollPositions()),c.options={dataGrouping:n?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[n.unitName,[n.count]]]}:{enabled:!1}},p.series.push(c),o.processData.apply(c)}),c.closestPointRange!==c.basePointRange&&c.currentDataGrouping&&(p.forceOrdinal=!0),o.ordinal.beforeSetTickPositions.apply({axis:p}),d[a]=p.ordinal.positions}return d[a]},t.prototype.getGroupIntervalFactor=function(t,e,i){var o=(i=i.processedXData).length,s=[],r=this.groupIntervalFactor;if(!r){for(r=0;r<o-1;r++)s[r]=i[r+1]-i[r];s.sort(function(t,e){return t-e}),s=s[Math.floor(o/2)],t=Math.max(t,i[0]),e=Math.min(e,i[o-1]),this.groupIntervalFactor=r=o*s/(e-t)}return r},t.prototype.getIndexOfPoint=function(e,i){var o=this.axis,s=this.positions?this.positions[0]:0,r=o.series[0].points&&o.series[0].points[0]&&o.series[0].points[0].plotX||o.minPixelPadding;return 1<o.series.length&&o.series.forEach(function(t){t.points&&h(t.points[0])&&h(t.points[0].plotX)&&t.points[0].plotX<r&&t.points[0].plotX>=c(o.min,-1/0)&&(r=t.points[0].plotX)}),e=(e-r)/(o.translationSlope*(this.slope||o.closestPointRange||this.overscrollPointsRange)),t.findIndexOf(i,s)+e},t.prototype.getOverscrollPositions=function(){var t=this.axis,e=t.options.overscroll,i=this.overscrollPointsRange,o=[],s=t.dataMax;if(h(i))for(;s<=t.dataMax+e;)s+=i,o.push(s);return o},t.prototype.postProcessTickInterval=function(t){var e=this.axis,i=this.slope;return i?e.options.breaks?e.closestPointRange||t:t/(i/e.closestPointRange):t},t}();t.Additions=M}(s||(s={})),s}
1),e(i,"Series/HLC/HLCPoint.js",[i["Core/Series/SeriesRegistry.js"]],function(t){var e=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.close=void 0,e.high=void 0,e.low=void 0,e.options=void 0,e.plotClose=void 0,e.series=void 0,e}return e(i,t),i}(t.seriesTypes.column.prototype.pointClass)}),e(i,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),e(i,"Series/HLC/HLCSeries.js",[i["Series/HLC/HLCPoint.js"],i["Series/HLC/HLCSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=i.seriesTypes.column,n=o.extend,a=o.merge;return o=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.yData=void 0,e}return s(i,t),i.prototype.extendStem=function(t,e,i){var o=t[0];t=t[1],"number"==typeof o[2]&&(o[2]=Math.max(i+e,o[2])),"number"==typeof t[2]&&(t[2]=Math.min(i-e,t[2]))},i.prototype.getPointPath=function(t,e){e=e.strokeWidth();var i=t.series,o=e%2/2,s=Math.round(t.plotX)-o,r=Math.round(t.shapeArgs.width/2),n=[["M",s,Math.round(t.yBottom)],["L",s,Math.round(t.plotHigh)]];return null!==t.close&&(t=Math.round(t.plotClose)+o,n.push(["M",s,t],["L",s+r,t]),i.extendStem(n,e/2,t)),n},i.prototype.drawSinglePoint=function(t){var e=t.series,i=e.chart,o=t.graphic;void 0!==t.plotY&&(o||(t.graphic=o=i.renderer.path().add(e.group)),i.styledMode||o.attr(e.pointAttribs(t,t.selected&&"select")),e=e.getPointPath(t,o),o[o?"animate":"attr"]({d:e}).addClass(t.getClassName(),!0))},i.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},i.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},i.prototype.pointAttribs=function(e,i){return delete(e=t.prototype.pointAttribs.call(this,e,i)).fill,e},i.prototype.toYData=function(t){return[t.high,t.low,t.close]},i.prototype.translate=function(){var e=this,i=e.yAxis,o=this.pointArrayMap&&this.pointArrayMap.slice()||[],s=o.map(function(t){return"plot".concat(t.charAt(0).toUpperCase()+t.slice(1))});s.push("yBottom"),o.push("low"),t.prototype.translate.apply(e),e.points.forEach(function(t){o.forEach(function(o,r){null!==(o=t[o])&&(e.dataModify&&(o=e.dataModify.modifyValue(o)),t[s[r]]=i.toPixels(o,!0))}),t.tooltipPos[1]=t.plotHigh+i.pos-e.chart.plotTop})},i.defaultOptions=a(r.defaultOptions,e),i}(r),n(o.prototype,{pointClass:t,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),i.registerSeriesType("hlc",o),o}),e(i,"Series/OHLC/OHLCPoint.js",[i["Core/Series/SeriesRegistry.js"]],function(t){var e=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.open=void 0,e.options=void 0,e.plotOpen=void 0,e.series=void 0,e}return e(i,t),i.prototype.getClassName=function(){return t.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},i.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)}
1,i.prototype.resolveColor=function(){t.prototype.resolveColor.call(this),this.resolveUpColor()},i.prototype.getZone=function(){var e=t.prototype.getZone.call(this);return this.resolveUpColor(),e},i.prototype.applyOptions=function(){return t.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},i}(t.seriesTypes.hlc.prototype.pointClass)}),e(i,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),e(i,"Series/OHLC/OHLCSeries.js",[i["Series/OHLC/OHLCPoint.js"],i["Series/OHLC/OHLCSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){function s(t){var e=(t=t.options).dataGrouping;e&&t.useOhlcData&&"highcharts-navigator-series"!==t.id&&(e.approximation="ohlc")}function r(t){(t=t.options).useOhlcData&&"highcharts-navigator-series"!==t.id&&l(this,{pointValKey:p.prototype.pointValKey,pointArrayMap:p.prototype.pointArrayMap,toYData:p.prototype.toYData})}var n=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=i.seriesTypes.hlc,h=o.addEvent,l=o.extend,c=o.merge,d=[],p=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(i,t),i.compose=function(t){for(var e=1;e<arguments.length;e++);-1===d.indexOf(t)&&(d.push(t),h(t,"afterSetOptions",s),h(t,"init",r))},i.prototype.getPointPath=function(e,i){var o=t.prototype.getPointPath.call(this,e,i),s=(i=i.strokeWidth())%2/2,r=Math.round(e.plotX)-s,n=Math.round(e.shapeArgs.width/2);return null!==e.open&&(e=Math.round(e.plotOpen)+s,o.push(["M",r,e],["L",r-n,e]),t.prototype.extendStem.call(this,o,i/2,e)),o},i.prototype.pointAttribs=function(e,i){i=t.prototype.pointAttribs.call(this,e,i);var o=this.options;return delete i.fill,!e.options.color&&o.upColor&&e.open<e.close&&(i.stroke=o.upColor),i},i.prototype.toYData=function(t){return[t.open,t.high,t.low,t.close]},i.defaultOptions=c(a.defaultOptions,e),i}(a);return l(p.prototype,{pointClass:t,pointArrayMap:["open","high","low","close"]}),i.registerSeriesType("ohlc",p),p}),e(i,"Series/Candlestick/CandlestickSeriesDefaults.js",[i["Core/Defaults.js"],i["Core/Utilities.js"]],function(t,e){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),e(i,"Series/Candlestick/CandlestickSeries.js",[i["Series/Candlestick/CandlestickSeriesDefaults.js"],i["Core/Defaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=e.defaultOptions,n=(e=i.seriesTypes).column,a=e.ohlc,h=o.merge;return o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(i,e),i.prototype.pointAttribs=function(t,e){var i=n.prototype.pointAttribs.call(this,t,e),o=this.options,s=t.open<t.close,r=o.lineColor||this.color,a=t.color||this.color;return i["stroke-width"]=o.lineWidth,i.fill=t.options.color||s&&o.upColor||a,i.stroke=t.options.lineColor||s&&o.upLineColor||r,e&&(t=o.states[e],i.fill=t.color||i.fill,i.stroke=t.lineColor||i.stroke,i["stroke-width"]=t.lineWidth||i["stroke-width"]),i},i.prototype.drawPoints=function(){for(var t=this.chart,e=this.yAxis.reversed,i=0,o=this.points;i<o.length;i++){var s=o[i],r=s.graphic,n=!r;if(void 0!==s.plotY){r||(s.graphic=r=t.renderer.path().add(this.group)),this.chart.styledMode||r.attr(this.pointAttribs(s,s.selected&&"select")).shadow(this.options.shadow);var a=r.strokeWidth()%2/2,h=Math.round(s.plotX)-a,l=s.plotOpen,c=s.plotClose,d=Math.min(l,c);l=Math.max(l,c);var p=Math.round(s.shapeArgs.width/2);c=e?l!==s.yBottom:Math.round(d)!==Math.round(s.plotHigh);var u=e?Math.round(d)!==Math.round(s.plotHigh):l!==s.yBottom;d=Math.round(d)+a,l=Math.round(l)+a,(a=[]).push(["M",h-p,l],["L",h-p,d],["L",h+p,d],["L",h+p,l],["Z"],["M",h,d],["L",h,c?Math.round(e?s.yBottom:s.plotHigh):d],["M",h,l],["L",h,u?Math.round(e?s.plotHigh:s.yBottom):l]),r[n?"attr":"animate"]({d:a}).addClass(s.getClassName(),!0)}}},i.defaultOptions=h(a.defaultOptions,r.plotOptions,{tooltip:a.defaultOptions.tooltip},t),i}(a),i.registerSeriesType("candlestick",o),o}
1),e(i,"Series/Flags/FlagsPoint.js",[i["Core/Series/SeriesRegistry.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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=e.isNumber;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.ttBelow=!1,e}return i(e,t),e.prototype.isValid=function(){return o(this.y)||void 0===this.y},e.prototype.hasNewShapeType=function(){var t=this.options.shape||this.series.options.shape;return this.graphic&&t&&t!==this.graphic.symbolKey},e}(t.seriesTypes.column.prototype.pointClass)}),e(i,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),e(i,"Series/Flags/FlagsSymbols.js",[i["Core/Renderer/RendererRegistry.js"]],function(t){var e;return function(e){function i(t,e,i,o,s){var r=s&&s.anchorX||t;s=s&&s.anchorY||e;var n=this.circle(r-1,s-1,2,2);return n.push(["M",r,s],["L",t,e+o],["L",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]),n}function o(t,e){t[e+"pin"]=function(i,o,s,r,n){var a=n&&n.anchorX;n=n&&n.anchorY,"circle"===e&&r>s&&(i-=Math.round((r-s)/2),s=r);var h=t[e](i,o,s,r);if(a&&n){var l=a;"circle"===e?l=i+s/2:(i=h[0],s=h[1],"M"===i[0]&&"L"===s[0]&&(l=(i[1]+s[1])/2)),h.push(["M",l,o>n?o:o+r],["L",a,n]),h=h.concat(t.circle(a-1,n-1,2,2))}return h}}var s=[];e.compose=function(e){if(-1===s.indexOf(e)){s.push(e);var r=e.prototype.symbols;r.flag=i,o(r,"circle"),o(r,"square")}var n=t.getRendererType();s.indexOf(n)&&(s.push(n),r=e.prototype.symbols,(e=n.prototype.symbols).circlepin=r.circlepin,e.flag=r.flag.bind(r),e.squarepin=r.squarepin)}}(e||(e={})),e}),e(i,"Series/OnSeriesComposition.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=t.prototype,r=e.prototype,n=i.defined,a=i.stableSort;return function(t){function e(t){return r.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,t)}function i(){s.translate.apply(this);var t,e=this,i=e.options,o=e.chart,r=e.points,h=i.onSeries,l=(h=h&&o.get(h))&&h.options.step,c=h&&h.points,d=o.inverted,p=e.xAxis,u=e.yAxis;o=r.length-1,i=i.onKey||"y";var f,g=c&&c.length,m=0;if(h&&h.visible&&g){m=(h.pointXOffset||0)+(h.barW||0)/2;var v=h.currentDataGrouping,x=c[g-1].x+(v?v.totalRange:0);for(a(r,function(t,e){return t.x-e.x}),i="plot"+i[0].toUpperCase()+i.substr(1);g--&&r[o];){var y=c[g];if((v=r[o]).y=y.y,y.x<=v.x&&void 0!==y[i]){if(v.x<=x&&(v.plotY=y[i],y.x<v.x&&!l&&(f=c[g+1])&&void 0!==f[i])){var b=(v.x-y.x)/(f.x-y.x);v.plotY+=b*(f[i]-y[i]),v.y+=b*(f.y-y.y)}if(g++,0>--o)break}}}r.forEach(function(i,o){if(i.plotX+=m,(void 0===i.plotY||d)&&(0<=i.plotX&&i.plotX<=p.len?d?(i.plotY=p.translate(i.x,0,1,0,1),i.plotX=n(i.y)?u.translate(i.y,0,0,0,1):0):i.plotY=(p.opposite?0:e.yAxis.len)+p.offset:i.shapeArgs={}),(t=r[o-1])&&t.plotX===i.plotX){void 0===t.stackIndex&&(t.stackIndex=0);var s=t.stackIndex+1}i.stackIndex=s}),this.onSeries=h}var o=[];t.compose=function(t){if(-1===o.indexOf(t)){o.push(t);var s=t.prototype;s.getPlotBox=e,s.translate=i}return t},t.getPlotBox=e,t.translate=i}(o||(o={})),o}),e(i,"Series/Flags/FlagsSeries.js",[i["Series/Flags/FlagsPoint.js"],i["Series/Flags/FlagsSeriesDefaults.js"],i["Series/Flags/FlagsSymbols.js"],i["Core/Globals.js"],i["Series/OnSeriesComposition.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h){var l=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();o=o.noop;var c=r.distribute,d=n.series,p=n.seriesTypes.column,u=h.addEvent,f=h.defined;r=h.extend;var g=h.merge,m=h.objectEach,v=h.wrap;return h=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;
1return e.data=void 0,e.options=void 0,e.points=void 0,e}return l(o,t),o.prototype.animate=function(t){t&&this.setClip()},o.prototype.drawPoints=function(){var t,e=this.points,i=this.chart,o=i.renderer,s=i.inverted,r=this.options,n=r.y,h=this.yAxis,l={},d=[];for(t=e.length;t--;){var p=e[t],u=(s?p.plotY:p.plotX)>this.xAxis.len,x=p.plotX,y=p.stackIndex,b=p.options.shape||r.shape,S=p.plotY;void 0!==S&&(S=p.plotY+n-(void 0!==y&&y*r.stackDistance)),p.anchorX=y?void 0:p.plotX;var M=y?void 0:p.plotY,k="flag"!==b;y=p.graphic,void 0!==S&&0<=x&&!u?(y&&p.hasNewShapeType()&&(y=y.destroy()),y||(y=p.graphic=o.label("",null,null,b,null,null,r.useHTML).addClass("highcharts-point").add(this.markerGroup),p.graphic.div&&(p.graphic.div.point=p),y.isNew=!0),y.attr({align:k?"center":"left",width:r.width,height:r.height,"text-align":r.textAlign}),i.styledMode||y.attr(this.pointAttribs(p)).css(g(r.style,p.style)).shadow(r.shadow),0<x&&(x-=y.strokeWidth()%2),b={y:S,anchorY:M},r.allowOverlapX&&(b.x=x,b.anchorX=p.anchorX),y.attr({text:p.options.title||r.title||"A"})[y.isNew?"attr":"animate"](b),r.allowOverlapX||(l[p.plotX]?l[p.plotX].size=Math.max(l[p.plotX].size,y.width):l[p.plotX]={align:k?.5:0,size:y.width,target:x,anchorX:x}),p.tooltipPos=[x,S+h.pos-i.plotTop]):y&&(p.graphic=y.destroy())}if(!r.allowOverlapX){var C=100;for(m(l,function(t){t.plotX=t.anchorX,d.push(t),C=Math.max(t.size,C)}),c(d,s?h.len:this.xAxis.len,C),i=0;i<e.length;i++)n=(o=e[i]).plotX,(n=(s=o.graphic)&&l[n])&&s&&(f(n.pos)?s[s.isNew?"attr":"animate"]({x:n.pos+(n.align||0)*n.size,anchorX:o.anchorX}).show().isNew=!1:s.hide().isNew=!0)}r.useHTML&&this.markerGroup&&v(this.markerGroup,"on",function(t){return a.prototype.on.apply(t.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},o.prototype.drawTracker=function(){var e=this.points;t.prototype.drawTracker.call(this);for(var i=function(t){var i=t.graphic;i&&(t.unbindMouseOver&&t.unbindMouseOver(),t.unbindMouseOver=u(i.element,"mouseover",function(){0<t.stackIndex&&!t.raised&&(t._y=i.y,i.attr({y:t._y-8}),t.raised=!0);for(var o=0;o<e.length;o++){var s=e[o];s!==t&&s.raised&&s.graphic&&(s.graphic.attr({y:s._y}),s.raised=!1)}}))},o=0;o<e.length;o++)i(e[o])},o.prototype.pointAttribs=function(t,e){var i=this.options,o=t&&t.color||this.color,s=i.lineColor,r=t&&t.lineWidth;return t=t&&t.fillColor||i.fillColor,e&&(t=i.states[e].fillColor,s=i.states[e].lineColor,r=i.states[e].lineWidth),{fill:t||o,stroke:s||o,"stroke-width":r||i.lineWidth||0}},o.prototype.setClip=function(){d.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},o.compose=i.compose,o.defaultOptions=g(p.defaultOptions,e),o}(p),s.compose(h),r(h.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:t,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:o,init:d.prototype.init}),n.registerSeriesType("flags",h),h}),e(i,"Core/Chart/StockChart.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/FormatUtilities.js"],i["Core/Defaults.js"],i["Stock/Navigator/NavigatorDefaults.js"],i["Stock/RangeSelector/RangeSelectorDefaults.js"],i["Stock/Scrollbar/ScrollbarDefaults.js"],i["Core/Series/Series.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h,l){function c(t,e){return"xAxis"===t?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===t?{labels:{y:-2},opposite:M(e.opposite,!0),showLastLabel:!(!e.categories&&"category"!==e.type),title:{text:null}}:{}}function d(t,e){return"xAxis"===t?(t={type:"datetime",categories:void 0},M(e.navigator&&e.navigator.enabled,s.enabled,!0)&&(t.startOnTick=!1,t.endOnTick=!1),t):{}}var p=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])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),u=i.format,f=o.getOptions;i=l.addEvent;var g=l.clamp,m=l.defined,v=l.extend,x=l.find,y=l.isNumber,b=l.isString,S=l.merge,M=l.pick,k=l.splat;return l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(e,i){var o=f(),a=e.xAxis,h=e.yAxis,l=M(e.navigator&&e.navigator.enabled,s.enabled,!0);e.xAxis=e.yAxis=void 0,l=S({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:l},scrollbar:{enabled:M(n.enabled,!0)},rangeSelector:{enabled:M(r.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:M(o.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},e,{isStock:!0}),e.xAxis=a,e.yAxis=h,l.xAxis=k(e.xAxis||{}).map(function(t,i){return S(c("xAxis",t),o.xAxis,o.xAxis&&o.xAxis[i],t,d("xAxis",e))}),l.yAxis=k(e.yAxis||{}).map(function(t,e){return S(c("yAxis",t),o.yAxis,o.yAxis&&o.yAxis[e],t)}),t.prototype.init.call(this,l,i)},e.prototype.createAxis=function(e,i){return i.axis=S(c(e,i.axis),i.axis,d(e,this.userOptions)),t.prototype.createAxis.call(this,e,i)},e}(e),function(t){t.stockChart=function(e,i,o){return new t(e,i,o)}}(l||(l={})),i(a,"setOptions",function(t){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(t.plotOptions[this.type]=S(t.plotOptions[this.type],e)))}),i(t,"autoLabelAlign",function(t){var e=this.chart,i=this.options;e=e._labelPanes=e._labelPanes||{};var o=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&!e[i=i.top+","+i.height]&&o.enabled&&(15===o.x&&(o.x=0),void 0===o.align&&(o.align="right"),e[i]=this,t.align="right",t.preventDefault())}),i(t,"destroy",function(){var t=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&t._labelPanes&&t._labelPanes[e]===this&&delete t._labelPanes[e]}),i(t,"getPlotLinePath",function(t){var e,i,o,s,r=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,a=r.chart,h=a.renderer,l=r.left,c=r.top,d=[],p=[],u=t.translatedValue,f=t.value,v=t.force;if(a.options.isStock&&!1!==t.acrossPanes&&"xAxis"===r.coll||"yAxis"===r.coll){t.preventDefault(),p=function(t){var e="xAxis"===t?"yAxis":"xAxis";return t=r.options[e],y(t)?[a[e][t]]:b(t)?[a.get(t)]:n.map(function(t){return t[e]})}
1(r.coll),(r.isXAxis?a.yAxis:a.xAxis).forEach(function(t){if(!m(t.options.id)||-1===t.options.id.indexOf("navigator")){var e=t.isXAxis?"yAxis":"xAxis";e=m(t.options[e])?a[e][t.options[e]]:a[e][0],r===e&&p.push(t)}});var S=p.length?[]:[r.isXAxis?a.yAxis[0]:a.xAxis[0]];p.forEach(function(t){-1!==S.indexOf(t)||x(S,function(e){return e.pos===t.pos&&e.len===t.len})||S.push(t)});var k=M(u,r.translate(f,void 0,void 0,t.old));y(k)&&(r.horiz?S.forEach(function(t){var n;i=t.pos,s=i+t.len,e=o=Math.round(k+r.transB),"pass"!==v&&(e<l||e>l+r.width)&&(v?e=o=g(e,l,l+r.width):n=!0),n||d.push(["M",e,i],["L",o,s])}):S.forEach(function(t){var n;e=t.pos,o=e+t.len,i=s=Math.round(c+r.height-k),"pass"!==v&&(i<c||i>c+r.height)&&(v?i=s=g(i,c,c+r.height):n=!0),n||d.push(["M",e,i],["L",o,s])})),t.path=0<d.length?h.crispPolyLine(d,t.lineWidth||1):null}}),h.prototype.crispPolyLine=function(t,e){for(var i=0;i<t.length;i+=2){var o=t[i],s=t[i+1];o[1]===s[1]&&(o[1]=s[1]=Math.round(o[1])-e%2/2),o[2]===s[2]&&(o[2]=s[2]=Math.round(o[2])+e%2/2)}return t},i(t,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),i(t,"afterDrawCrosshair",function(t){var e,i;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&y(this.min)&&y(this.max)){var o=this.chart,s=this.logarithmic,r=this.crosshair.label,n=this.horiz,a=this.opposite,h=this.left,l=this.top,c=this.crossLabel,d=r.format,p="",f="inside"===this.options.tickPosition,g=!1!==this.crosshair.snap,m=0,x=t.e||this.cross&&this.cross.e;t=t.point;var b=this.min,S=this.max;s&&(b=s.lin2log(b),S=s.lin2log(S)),s=n?"center":a?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center",c||(c=this.crossLabel=o.renderer.label("",0,void 0,r.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(t&&t.series?t.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:r.align||s,padding:M(r.padding,8),r:M(r.borderRadius,3),zIndex:2}).add(this.labelGroup),o.styledMode||c.attr({fill:r.backgroundColor||t&&t.series&&t.series.color||"#666666",stroke:r.borderColor||"","stroke-width":r.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},r.style||{}))),n?(s=g?(t.plotX||0)+h:x.chartX,l+=a?0:this.height):(s=a?this.width+h:0,l=g?(t.plotY||0)+l:x.chartY),d||r.formatter||(this.dateTime&&(p="%b %d, %Y"),d="{value"+(p?":"+p:"")+"}"),p=g?this.isXAxis?t.x:t.y:this.toValue(n?x.chartX:x.chartY),g=t&&t.series?t.series.isPointInside(t):y(p)&&p>b&&p<S,x="",d?x=u(d,{value:p},o):r.formatter&&y(p)&&(x=r.formatter.call(this,p)),c.attr({text:x,x:s,y:l,visibility:g?"inherit":"hidden"}),r=c.getBBox(),y(c.y)&&(n?(f&&!a||!f&&a)&&(l=c.y-r.height):l=c.y-r.height/2),n?(e=h-r.x,i=h+this.width-r.x):(e="left"===this.labelAlign?h:0,i="right"===this.labelAlign?h+this.width:o.chartWidth),c.translateX<e&&(m=e-c.translateX),c.translateX+r.width>=i&&(m=-(c.translateX+r.width-i)),c.attr({x:s+m,y:l,anchorX:n?s:this.opposite?0:o.chartWidth,anchorY:n?this.opposite?o.chartHeight:0:l+r.height/2})}}),a.prototype.forceCropping=function(){var t=this.chart,e=this.options.dataGrouping;return!1!==this.allowDG&&e&&M(e.enabled,t.options.isStock)},i(e,"update",function(t){"scrollbar"in(t=t.options)&&this.navigator&&(S(!0,this.options.scrollbar,t.scrollbar),this.navigator.update({}),delete t.scrollbar)}),l}),e(i,"masters/modules/stock.src.js",[i["Core/Globals.js"],i["Series/DataModifyComposition.js"],i["Stock/Navigator/Navigator.js"],i["Stock/RangeSelector/RangeSelector.js"],i["Stock/Scrollbar/Scrollbar.js"],i["Core/Axis/OrdinalAxis.js"],i["Series/OHLC/OHLCSeries.js"],i["Series/Flags/FlagsSeries.js"],i["Core/Chart/StockChart.js"]],function(t,e,i,o,s,r,n,a,h){t.Navigator=i,t.RangeSelector=o,t.Scrollbar=s,t.StockChart=t.stockChart=h.stockChart,e.compose(t.Series,t.Axis,t.Point),a.compose(t.Renderer),i.compose(t.Axis,t.Chart,t.Series),n.compose(t.Series),r.compose(t.Axis,t.Series,t.Chart),o.compose(t.Axis,t.Chart),s.compose(t.Axis)}),e(i,"masters/highstock.src.js",[i["masters/highcharts.src.js"]],function(t){return t.product="Highstock",t}),i["masters/highstock.src.js"]._modules=i,i["masters/highstock.src.js"]},t.exports?(r.default=r,t.exports=s.document?r(s):r):void 0===(o=function(){return r(s)}.call(e,i,e,t))||(t.exports=o)}}]);
2//# sourceMappingURL=highcharts-f1183c0a.435b59b63f695b9542ca.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.