/*! For license information please see main.869646d5.js.LICENSE.txt */ !function(){var e={9998:function(e,n){"use strict";n.Z=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return t.some((function(e){var n=e.trim().toLowerCase();return"."===n.charAt(0)?r.toLowerCase().endsWith(n):n.endsWith("/*")?a===n.replace(/\/.*$/,""):i===n}))}return!0}},1694:function(e,n){var t;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],n=0;ni.endVal;i.frameVal=t?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),n1?i.options.decimal+o[1]:"",i.options.useGrouping){a="";for(var l=3,c=0,d=0,u=t.length;dwindow.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>i||r>n)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var t=this.countDown?1:-1;this.endVal=e+t*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var n;if(this.el){var t=this.formattingFn(e);(null===(n=this.options.plugin)||void 0===n?void 0:n.render)?this.options.plugin.render(this.el,t):"INPUT"===this.el.tagName?this.el.value=t:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=t:this.el.innerHTML=t}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}()},9635:function(e,n){"use strict";var t=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;n.G=function(e){if(!e)return!1;if(e.length>254)return!1;if(!t.test(e))return!1;var n=e.split("@");return!(n[0].length>64)&&!n[1].split(".").some((function(e){return e.length>63}))}},2244:function(e,n,t){var r=t(7447),i=t(8051).each;function a(e,n){this.query=e,this.isUnconditional=n,this.handlers=[],this.mql=window.matchMedia(e);var t=this;this.listener=function(e){t.mql=e.currentTarget||e,t.assess()},this.mql.addListener(this.listener)}a.prototype={constuctor:a,addHandler:function(e){var n=new r(e);this.handlers.push(n),this.matches()&&n.on()},removeHandler:function(e){var n=this.handlers;i(n,(function(t,r){if(t.equals(e))return t.destroy(),!n.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,(function(n){n[e]()}))}},e.exports=a},4e3:function(e,n,t){var r=t(2244),i=t(8051),a=i.each,s=i.isFunction,o=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,n,t){var i=this.queries,l=t&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,l)),s(n)&&(n={match:n}),o(n)||(n=[n]),a(n,(function(n){s(n)&&(n={match:n}),i[e].addHandler(n)})),this},unregister:function(e,n){var t=this.queries[e];return t&&(n?t.removeHandler(n):(t.clear(),delete this.queries[e])),this}},e.exports=l},7447:function(e){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},8051:function(e){e.exports={isFunction:function(e){return"function"===typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,n){for(var t=0,r=e.length;te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t55&&(p.current.style.justifyContent="flex-start")}),[]),o().createElement("div",{ref:p,className:"".concat(l,"slide-number-container")},o().createElement("div",{ref:h,className:"fslightbox-flex-centered"},o().createElement("span",null,d),o().createElement("span",{className:"".concat(l,"slash")}),o().createElement("span",null,i.length)))},T=function(e){var n=e.fsLightbox;return o().createElement("div",{className:"".concat(l,"nav")},o().createElement(C,{fsLightbox:n}),n.props.sources.length>1&&o().createElement(_,{fsLightbox:n}))};function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0?c(o,"ne"):void 0!==l&&i.swipedX<0&&c(l,"p")}(e,n)}}function le(e){var n=e.core.slideIndexChanger,t=e.smwm,r=e.stageIndexes,i=e.sws;function a(e){var n=t[r.current];n.a(),n[e]()}function s(e,n){void 0!==e&&(t[e].s(),t[e][n]())}this.p=function(){var e=r.previous;if(void 0===e)a("z");else{a("p");var t=r.next;n.changeTo(e);var o=r.previous;i.d(o),i.b(t),a("z"),s(o,"ne")}},this.n=function(){var e=r.next;if(void 0===e)a("z");else{a("ne");var t=r.previous;n.changeTo(e);var o=r.next;i.d(o),i.b(t),a("z"),s(o,"p")}}}function ce(e){var n=e.componentsServices,t=e.core.lightboxCloser,r=e.dss,i=e.elements.container,a=e.p,s=e.props.disableBackgroundClose,o=(0,e.r)(le);this.n=function(){n.hideSlideSwipingHovererIfShown(),a.isSourceDownEventTarget||s||t.closeLightbox(),a.isSwiping=!1},this.s=function(){r||(a.swipedX>0?o.p():o.n()),n.hideSlideSwipingHovererIfShown(),i.current.classList.remove(d),a.isSwiping=!1}}function de(e,n,t,r){var i=e.data,a=e.elements.sources,s=t/r,o=0;this.adjustSize=function(){if((o=i.maxSourceWidth/s)i.maxSourceHeight?i.maxSourceHeight:r,l()};var l=function(){var e=a[n].current.style;e.width=o*s+"px",e.height=o+"px"}}function ue(e,n){var t=this,r=e.collections.sourceSizers,i=e.elements.sources,a=e.isl,s=e.resolve,o=e.saw,l=e.sawu;function c(e,t){r[n]=s(de,[n,e,t]),r[n].adjustSize()}this.runActions=function(e,r){a[n]=!0,l[n](),i[n].current.classList.add(b),o[n].current.classList.add(g),c(e,r),t.runActions=c}}function pe(e,n){var t,r=this,i=e.elements.sources,a=e.props,s=(0,e.resolve)(ue,[n]);this.handleImageLoad=function(e){var n=e.target,t=n.naturalWidth,r=n.naturalHeight;s.runActions(t,r)},this.handleVideoLoad=function(e){var n=e.target,r=n.videoWidth,i=n.videoHeight;t=!0,s.runActions(r,i)},this.handleNotMetaDatedVideoLoad=function(){t||r.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var e=1920,n=1080;a.maxYoutubeVideoDimensions&&(e=a.maxYoutubeVideoDimensions.width,n=a.maxYoutubeVideoDimensions.height),s.runActions(e,n)},this.handleCustomLoad=function(){var e=i[n].current;if(e){var t=e.offsetWidth,a=e.offsetHeight;t&&a?s.runActions(t,a):setTimeout(r.handleCustomLoad)}}}function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function me(e,n,t){return me=be()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&ge(i,t.prototype),i},me.apply(null,arguments)}function xe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);twindow.innerHeight&&(document.body.style.marginRight=n.scrollbarWidth+"px")};t.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(e),function(e){var n=e.core.slideIndexChanger,t=e.sl,r=e.st;t>1?(e.pr=function(){n.jumpTo(r.p())},e.n=function(){n.jumpTo(r.n())}):(e.pr=function(){},e.n=function(){})}(e),function(e){var n=e.componentsServices,t=e.core.slideIndexChanger,r=e.isl,i=e.saw,a=e.smwm,s=e.st,o=e.stageIndexes,l=e.sws;t.changeTo=function(t){o.current=t,s.u(),n.setSlideNumber(t+1),ae(e)},t.jumpTo=function(e){var n=o.previous,c=o.current,d=o.next,u=r[c],p=r[e];t.changeTo(e);for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:[];return t.unshift(this),me(e,function(e){if(Array.isArray(e))return xe(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return xe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xe(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},{key:"e",value:function(e){var n=this.props[e];n&&n(this)}},{key:"componentDidUpdate",value:function(e,n,t){this.core.lightboxUpdater.handleUpdate(e)}},{key:"componentDidMount",value:function(){var e,n,t;e=this.data,n=this.i,t=this.props.openOnMount,document.getElementsByClassName(c).length||I(),e.scrollbarWidth=function(){var e=document.createElement("div"),n=e.style,t=document.createElement("div");n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",n.overflow="scroll",t.style.width="100%",document.body.appendChild(e);var r=e.offsetWidth;e.appendChild(t);var i=t.offsetWidth;return document.body.removeChild(e),r-i}(),t&&n()}},{key:"componentWillUnmount",value:function(){!function(e){for(var n=e.collections.xhrs,t=e.componentsServices.isLightboxOpenManager,r=e.core.globalEventsController,i=0;i1?o().createElement(o().Fragment,null,o().createElement(L,{onClick:this.pr,name:"previous",d:"M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"}),o().createElement(L,{onClick:this.n,name:"next",d:"M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z"})):null,o().createElement(M,{o:this})):null}}],t&&function(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);tparseInt(n.userAgent.split("Firefox/")[1],10),n.hasTouch=!!n.win.TouchEvent,n.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],n.noop=function(){},n.supportsPassiveEvents=function(){var e=!1;if(!n.isMS){var t=Object.defineProperty({},"passive",{get:function(){e=!0}});n.win.addEventListener&&n.win.removeEventListener&&(n.win.addEventListener("testPassive",n.noop,t),n.win.removeEventListener("testPassive",n.noop,t))}return e}(),n.charts=[],n.dateFormats={},n.seriesTypes={},n.symbolSizes={},n.chartCount=0}(n||(n={})),n})),n(t,"Core/Utilities.js",[t["Core/Globals.js"]],(function(e){function n(t,r,i,a){var s=r?"Highcharts error":"Highcharts warning";32===t&&(t="".concat(s,": Deprecated member"));var o=l(t),c=o?"".concat(s," #").concat(t,": www.highcharts.com/errors/").concat(t,"/"):t.toString();if("undefined"!==typeof a){var d="";o&&(c+="?"),v(a,(function(e,n){d+="\n - ".concat(n,": ").concat(e),o&&(c+=encodeURI(n)+"="+encodeURI(e))})),c+=d}y(e,"displayError",{chart:i,code:t,message:c,params:a},(function(){if(r)throw Error(c);k.console&&-1===n.messages.indexOf(c)&&console.warn(c)})),n.messages.push(c)}function t(e,n){return parseInt(e,n||10)}function r(e){return"string"===typeof e}function i(e){return"[object Array]"===(e=Object.prototype.toString.call(e))||"[object Array Iterator]"===e}function a(e,n){return!!e&&"object"===typeof e&&(!n||!i(e))}function s(e){return a(e)&&"number"===typeof e.nodeType}function o(e){var n=e&&e.constructor;return!(!a(e,!0)||s(e)||!n||!n.name||"Object"===n.name)}function l(e){return"number"===typeof e&&!isNaN(e)&&1/0>e&&-1/03&&void 0!==arguments[3]?arguments[3]:{},a="function"===typeof n&&n.prototype||n;Object.hasOwnProperty.call(a,"hcEvents")||(a.hcEvents={}),a=a.hcEvents,e.Point&&n instanceof e.Point&&n.series&&n.series.chart&&(n.series.chart.runTrackerClick=!0);var s=n.addEventListener;return s&&s.call(n,t,r,!!e.supportsPassiveEvents&&{passive:void 0===i.passive?-1!==t.indexOf("touch"):i.passive,capture:!1}),a[t]||(a[t]=[]),a[t].push({fn:r,order:"number"===typeof i.order?i.order:1/0}),a[t].sort((function(e,n){return e.order-n.order})),function(){b(n,t,r)}},arrayMax:function(e){for(var n=e.length,t=e[0];n--;)e[n]>t&&(t=e[n]);return t},arrayMin:function(e){for(var n=e.length,t=e[0];n--;)e[n]n?e(r=e[i]-e[i-1])&&!a?(null===n||void 0===n||n(),n=void 0):r&&("undefined"===typeof t||r=r-1&&(r=Math.floor(i)),Math.max(0,r-(e(n,"padding-left",!0)||0)-(e(n,"padding-right",!0)||0))):"height"===r?Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(e(n,"padding-top",!0)||0)-(e(n,"padding-bottom",!0)||0)):((n=k.getComputedStyle(n,void 0))&&(a=n.getPropertyValue(r),h(i,"opacity"!==r)&&(a=t(a))),a)},inArray:function(e,t,r){return n(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),t.indexOf(e,r)},insertItem:function(e,n){var t,r=e.options.index,i=n.length;for(t=e.options.isInternal?i:0;t=t&&(n=[1/t]))),r=0;r=e||!i&&s<=(n[r]+(n[r+1]||n[r]))/2));r++);return g(a*t,-Math.round(Math.log(.001)/Math.LN10))},objectEach:v,offset:function(e){var n=j.documentElement;return{top:(e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(k.pageYOffset||n.scrollTop)-(n.clientTop||0),left:e.left+(k.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:e.width,height:e.height}},pad:function(e,n,t){return Array((n||2)+1-String(e).replace("-","").length).join(t||"0")+e},pick:h,pInt:t,pushUnique:function(e,n){return 0>e.indexOf(n)&&!!e.push(n)},relativeLength:function(e,n,t){return/%$/.test(e)?n*parseFloat(e)/100+(t||0):parseFloat(e)},removeEvent:b,splat:u,stableSort:function(e,n){var t,r,i=e.length;for(r=0;r>16,(65280&a)>>8,255&a,1]:4===i&&(t=[(3840&a)>>4|(3840&a)>>8,(240&a)>>4|240&a,(15&a)<<4|15&a,1])}if(!t)for(a=n.parsers.length;a--&&!t;)(i=(r=n.parsers[a]).regex.exec(e))&&(t=r.parse(i))}t&&(this.rgba=t)}},{key:"get",value:function(e){var n=this.input,i=this.rgba;if("object"===typeof n&&"undefined"!==typeof this.stops){var a=r(n);return a.stops=[].slice.call(a.stops),this.stops.forEach((function(n,t){a.stops[t]=[a.stops[t][0],n.get(e)]})),a}return i&&t(i[0])?"rgb"===e||!e&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?"".concat(i[3]):"rgba("+i.join(",")+")":n}},{key:"brighten",value:function(e){var n=this.rgba;if(this.stops)this.stops.forEach((function(n){n.brighten(e)}));else if(t(e)&&0!==e)for(var r=0;3>r;r++)n[r]+=i(255*e),0>n[r]&&(n[r]=0),2550&&void 0!==arguments[0]?arguments[0]:{},n=d(e.useUTC,!0);this.options=e=o(!0,this.options,e),this.Date=e.Date||t.Date||Date,this.timezoneOffset=(this.useUTC=n)&&e.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=n&&!(!e.getTimezoneOffset&&!e.timezone)}},{key:"makeTime",value:function(e,n,t,r,i,a){var s,o,l;return this.useUTC?(s=this.Date.UTC.apply(0,arguments),s+=o=this.getTimezoneOffset(s),o!==(l=this.getTimezoneOffset(s))?s+=l-o:o-36e5!==this.getTimezoneOffset(s-36e5)||x||(s-=36e5)):s=new this.Date(e,n,d(t,1),d(r,0),d(i,0),d(a,0)).getTime(),s}},{key:"timezoneOffsetFunction",value:function(){var e=this,n=this.options,r=n.getTimezoneOffset,a=n.moment||t.moment;if(!this.useUTC)return function(e){return 6e4*new Date(e.toString()).getTimezoneOffset()};if(n.timezone){if(a)return function(e){return 6e4*-a.tz(e,n.timezone).utcOffset()};i(25)}return this.useUTC&&r?function(e){return 6e4*r(e.valueOf())}:function(){return 6e4*(e.timezoneOffset||0)}}},{key:"dateFormat",value:function(n,t,i){if(!r(t)||isNaN(t))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";n=d(n,"%Y-%m-%d %H:%M:%S");var s=this,o=new this.Date(t),u=this.get("Hours",o),p=this.get("Day",o),h=this.get("Date",o),f=this.get("Month",o),m=this.get("FullYear",o),x=e.defaultOptions.lang,g=x&&x.weekdays,v=x&&x.shortWeekdays;return o=a({a:v?v[p]:g[p].substr(0,3),A:g[p],d:c(h),e:c(h,2," "),w:p,b:x.shortMonths[f],B:x.months[f],m:c(f+1),o:f+1,y:m.toString().substr(2,2),Y:m,H:c(u),k:u,I:c(u%12||12),l:u%12||12,M:c(this.get("Minutes",o)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:c(o.getSeconds()),L:c(Math.floor(t%1e3),3)},e.dateFormats),l(o,(function(e,r){for(;-1!==n.indexOf("%"+r);)n=n.replace("%"+r,"function"===typeof e?e.call(s,t):e)})),i?n.substr(0,1).toUpperCase()+n.substr(1):n}},{key:"resolveDTLFormat",value:function(e){return s(e,!0)?e:{main:(e=u(e))[0],from:e[1],to:e[2]}}},{key:"getTimeTicks",value:function(e,n,t,i){var s,o=this,l=[],c={},u=new o.Date(n),h=e.unitRange,f=e.count||1;if(i=d(i,1),r(n)){if(o.set("Milliseconds",u,h>=p.second?0:f*Math.floor(o.get("Milliseconds",u)/f)),h>=p.second&&o.set("Seconds",u,h>=p.minute?0:f*Math.floor(o.get("Seconds",u)/f)),h>=p.minute&&o.set("Minutes",u,h>=p.hour?0:f*Math.floor(o.get("Minutes",u)/f)),h>=p.hour&&o.set("Hours",u,h>=p.day?0:f*Math.floor(o.get("Hours",u)/f)),h>=p.day&&o.set("Date",u,h>=p.month?1:Math.max(1,f*Math.floor(o.get("Date",u)/f))),h>=p.month){o.set("Month",u,h>=p.year?0:f*Math.floor(o.get("Month",u)/f));var m=o.get("FullYear",u)}h>=p.year&&o.set("FullYear",u,m-m%f),h===p.week&&(m=o.get("Day",u),o.set("Date",u,o.get("Date",u)-m+i+(m4*p.month||o.getTimezoneOffset(n)!==o.getTimezoneOffset(t)),n=u.getTime(),u=1;nl.length&&l.forEach((function(e){0===e%18e5&&"000000000"===o.dateFormat("%H%M%S%L",e)&&(c[e]="day")}))}return l.info=a(e,{higherRanks:c,totalRange:h*f}),l}},{key:"getDateFormat",value:function(e,n,t,r){var i,a=this.dateFormat("%m-%d %H:%M:%S.%L",n),s={millisecond:15,second:12,minute:9,hour:6,day:3},o="millisecond";for(i in p){if(e===p.week&&+this.dateFormat("%w",n)===t&&"00:00:00.000"===a.substr(6)){i="week";break}if(p[i]>e){i=o;break}if(s[i]&&a.substr(s[i])!=="01-01 00:00:00.000".substr(s[i]))break;"week"!==i&&(o=i)}return this.resolveDTLFormat(r[i]).main}}]),n}();return g})),n(t,"Core/Defaults.js",[t["Core/Chart/ChartDefaults.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Color/Palettes.js"],t["Core/Time.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i,a){var s=t.isTouchDevice,o=t.svg,l=a.merge,c={colors:r.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:e,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:o,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:s?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},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:"0.6em"},text:"Highcharts.com"}};c.chart.styledMode=!1;var d=new i(c.time);return e={defaultOptions:c,defaultTime:d,getOptions:function(){return c},setOptions:function(e){return l(!0,c,e),(e.time||e.global)&&(t.time?t.time.update(l(c.global,c.time,e.global,e.time)):t.time=d),c}}})),n(t,"Core/Animation/Fx.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=e.parse,i=n.win,a=t.isNumber,s=t.objectEach,o=function(){function e(n,t,r){h(this,e),this.pos=NaN,this.options=t,this.elem=n,this.prop=r}return f(e,[{key:"dSetter",value:function(){var e=this.paths,n=e&&e[0];e=e&&e[1];var t=this.now||0,r=[];if(1!==t&&n&&e)if(n.length===e.length&&1>t)for(var i=0;i=o+this.startTime?(this.now=this.end,this.pos=1,this.update(),n=l[this.prop]=!0,s(l,(function(e){!0!==e&&(n=!1)})),n&&a&&a.call(i),e=!1):(this.pos=r.easing((t-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}},{key:"initPath",value:function(e,n,t){function r(e,n){for(;e.length0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1?arguments[1]:void 0,d=arguments.length>2?arguments[2]:void 0,p=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,f=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,m=[],x=/f$/,g=/\.([0-9])/,v=i.lang,b=d&&d.time||a,y=d&&d.numberFormatter||r,w=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===n||"false"!==n&&((e=Number(n)).toString()===n?e:o(n,c))},j=0;null!==(e=p.exec(l));){var k=f.exec(e[1]);k&&(e=k,s=!0),n&&n.isBlock||(n={ctx:c,expression:e[1],find:e[0],isBlock:"#"===e[1].charAt(0),start:e.index,startInner:e.index+e[0].length,length:e[0].length});var S=e[1].split(" ")[0].replace("#","");if(h[S]&&(n.isBlock&&S===n.fn&&j++,n.fn||(n.fn=S)),S="else"===e[1],n.isBlock&&n.fn&&(e[1]==="/".concat(n.fn)||S))if(j)S||j--;else{var C=n.startInner;C=l.substr(C,e.index-C),void 0===n.body?(n.body=C,n.startInner=e.index+e[0].length):n.elseBody=C,n.find+=C+e[0],S||(m.push(n),n=void 0)}else n.isBlock||m.push(n);if(k&&(null===n||void 0===n||!n.isBlock))break}return m.forEach((function(e){var n,r=e.body,i=e.elseBody,a=e.expression,s=e.fn;if(s){var o=[e],d=a.split(" ");for(n=h[s].length;n--;)o.unshift(w(d[n+1]));n=h[s].apply(c,o),e.isBlock&&"boolean"===typeof n&&(n=t(n?r:i,c))}else o=a.split(":"),n=w(o.shift()||""),o.length&&"number"===typeof n&&(o=o.join(":"),x.test(o)?(d=parseInt((o.match(g)||["","-1"])[1],10),null!==n&&(n=y(n,d,v.decimalPoint,-1o[1]){var d=n+ +o[1];0<=d?(o[0]=(+o[0]).toExponential(d).split("e")[0],n=d):(o[0]=o[0].split(".")[0]||0,e=20>n?(o[0]*Math.pow(10,o[1])).toFixed(n):0,o[1]=0)}}else n=2;d=(Math.abs(o[1]?o[0]:e)+Math.pow(10,-Math.max(n,s)-1)).toFixed(n);var h=3<(s=String(p(d))).length?s.length%3:0;return t=u(t,a.decimalPoint),r=u(r,a.thousandsSep),e=(0>e?"-":"")+(h?s.substr(0,h)+r:""),e=0>+o[1]&&!l?"0":e+s.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+r),n&&(e+=t+d.slice(-n)),o[1]&&0!==+e&&(e+="e"+o[1]),e}var i=e.defaultOptions,a=e.defaultTime,s=n.extend,o=n.getNestedProperty,l=n.isArray,c=n.isNumber,d=n.isObject,u=n.pick,p=n.pInt,h={add:function(e,n){return e+n},divide:function(e,n){return 0!==n?e/n:""},eq:function(e,n){return e==n},each:function(e){var n=arguments[arguments.length-1];return!!l(e)&&e.map((function(r,i){return t(n.body,s(d(r)?r:{"@this":r},{"@index":i,"@first":0===i,"@last":i===e.length-1}))})).join("")},ge:function(e,n){return e>=n},gt:function(e,n){return e>n},if:function(e){return!!e},le:function(e,n){return e<=n},lt:function(e,n){return ec){for(i(n,d),f=o=0;f<=c;)f+=n[o].size,o++;h=n.splice(o-1,n.length)}for(i(n,u),n=n.map((function(e){return{size:e.size,targets:[e.target],align:r(e.align,.5)}}));p;){for(o=n.length;o--;)c=n[o],d=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=t(d-c.size*c.align,0,a-c.size);for(o=n.length,p=!1;o--;)0n[o].pos&&(n[o-1].size+=n[o].size,n[o-1].targets=n[o-1].targets.concat(n[o].targets),n[o-1].align=.5,n[o-1].pos+n[o-1].size>a&&(n[o-1].pos=a-n[o-1].size),n.splice(o,1),p=!0)}return l.push.apply(l,h),o=0,n.some((function(n){var t=0;return(n.targets||[]).some((function(){return l[o].pos=n.pos+t,"undefined"!==typeof s&&Math.abs(l[o].pos-l[o].target)>s?(l.slice(0,o+1).forEach((function(e){return delete e.pos})),l.reducedLen=(l.reducedLen||a)-.1*a,l.reducedLen>.1*a&&e(l,a,s),!0):(t+=l[o].size,o++,!1)}))})),i(l,u),l}}(n||(n={})),n})),n(t,"Core/Renderer/SVG/SVGElement.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,n,t,r){var i=e.animate,a=e.animObject,s=e.stop,o=t.deg2rad,l=t.doc,c=t.svg,d=t.SVG_NS,u=t.win,p=r.addEvent,m=r.attr,x=r.createElement,g=r.css,v=r.defined,b=r.erase,y=r.extend,w=r.fireEvent,j=r.isArray,k=r.isFunction,S=r.isObject,C=r.isString,N=r.merge,_=r.objectEach,T=r.pick,E=r.pInt,A=r.syncTimeout,L=r.uniqueKey,D=function(){function e(){h(this,e),this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=d}return f(e,[{key:"_defaultGetter",value:function(e){return e=T(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0),/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e)),e}},{key:"_defaultSetter",value:function(e,n,t){t.setAttribute(n,e)}},{key:"add",value:function(e){var n,t=this.renderer,r=this.element;return e&&(this.parentGroup=e),"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&t.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(n=this.zIndexSetter()),n||(e?e.element:t.box).appendChild(r),this.onAdd&&this.onAdd(),this}},{key:"addClass",value:function(e,n){var t=n?"":this.attr("class")||"";return e=(e||"").split(/ /g).reduce((function(e,n){return-1===t.indexOf(n)&&e.push(n),e}),t?[t]:[]).join(" "),e!==t&&this.attr("class",e),this}},{key:"afterSetters",value:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}},{key:"align",value:function(e,n,t){var r,i,a,s={},o=this.renderer,l=o.alignedObjects;e?(this.alignOptions=e,this.alignByTranslate=n,(!t||C(t))&&(this.alignTo=r=t||"renderer",b(l,this),l.push(this),t=void 0)):(e=this.alignOptions,n=this.alignByTranslate,r=this.alignTo),t=T(t,o[r],"scrollablePlotBox"===r?o.plotBox:void 0,o),r=e.align;var c=e.verticalAlign;return o=(t.x||0)+(e.x||0),l=(t.y||0)+(e.y||0),"right"===r?i=1:"center"===r&&(i=2),i&&(o+=(t.width-(e.width||0))/i),s[n?"translateX":"x"]=Math.round(o),"bottom"===c?a=1:"middle"===c&&(a=2),a&&(l+=(t.height-(e.height||0))/a),s[n?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this}},{key:"alignSetter",value:function(e){var n={left:"start",center:"middle",right:"end"};n[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",n[e]))}},{key:"animate",value:function(e,n,t){var r=this,s=a(T(n,this.renderer.globalAnimation,!0));return n=s.defer,l.hidden&&(s.duration=0),0!==s.duration?(t&&(s.complete=t),A((function(){r.element&&i(r,e,s)}),n)):(this.attr(e,void 0,t||s.complete),_(e,(function(e,n){s.step&&s.step.call(this,e,{prop:n,pos:1,elem:this})}),this)),this}},{key:"applyTextOutline",value:function(e){var n=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(n.style.fill)));var r=e.split(" ");if(e=r[r.length-1],(r=r[0])&&"none"!==r&&t.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,(function(e,n,t){return 2*Number(n)+t})),this.removeTextOutline();var i=l.createElementNS(d,"tspan");m(i,{class:"highcharts-text-outline",fill:e,stroke:e,"stroke-width":r,"stroke-linejoin":"round"}),e=n.querySelector("textPath")||n,[].forEach.call(e.childNodes,(function(e){var n=e.cloneNode(!0);n.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(e){return n.removeAttribute(e)})),i.appendChild(n)}));var a=0;[].forEach.call(e.querySelectorAll("text tspan"),(function(e){a+=Number(e.getAttribute("dy"))})),(r=l.createElementNS(d,"tspan")).textContent="\u200b",m(r,{x:Number(n.getAttribute("x")),dy:-a}),i.appendChild(r),e.insertBefore(i,e.firstChild)}}},{key:"attr",value:function(n,t,r,i){var a,o,l,c=this.element,d=e.symbolCustomAttribs,u=this;return"string"===typeof n&&"undefined"!==typeof t&&(a=n,(n={})[a]=t),"string"===typeof n?u=(this[n+"Getter"]||this._defaultGetter).call(this,n,c):(_(n,(function(e,t){l=!1,i||s(this,t),this.symbolName&&-1!==d.indexOf(t)&&(o||(this.symbolAttr(n),o=!0),l=!0),!this.rotation||"x"!==t&&"y"!==t||(this.doTransform=!0),l||(this[t+"Setter"]||this._defaultSetter).call(this,e,t,c)}),this),this.afterSetters()),r&&r.call(this),u}},{key:"clip",value:function(e){return this.attr("clip-path",e?"url("+this.renderer.url+"#"+e.id+")":"none")}},{key:"crisp",value:function(e,n){n=n||e.strokeWidth||0;var t=Math.round(n)%2/2;return e.x=Math.floor(e.x||this.x||0)+t,e.y=Math.floor(e.y||this.y||0)+t,e.width=Math.floor((e.width||this.width||0)-2*t),e.height=Math.floor((e.height||this.height||0)-2*t),v(e.strokeWidth)&&(e.strokeWidth=n),e}},{key:"complexColor",value:function(e,t,r){var i,a,s,o,l,c,d,u,p,h,f,m=this.renderer,x=[];w(this.renderer,"complexColor",{args:arguments},(function(){if(e.radialGradient?a="radialGradient":e.linearGradient&&(a="linearGradient"),a){if(s=e[a],l=m.gradients,c=e.stops,p=r.radialReference,j(s)&&(e[a]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===a&&p&&!v(s.gradientUnits)&&(o=s,s=N(s,m.getRadialAttr(p,o),{gradientUnits:"userSpaceOnUse"})),_(s,(function(e,n){"id"!==n&&x.push(n,e)})),_(c,(function(e){x.push(e)})),x=x.join(","),l[x])h=l[x].attr("id");else{s.id=h=L();var g=l[x]=m.createElement(a).attr(s).add(m.defs);g.radAttr=o,g.stops=[],c.forEach((function(e){0===e[1].indexOf("rgba")?(i=n.parse(e[1]),d=i.get("rgb"),u=i.get("a")):(d=e[1],u=1),e=m.createElement("stop").attr({offset:e[0],"stop-color":d,"stop-opacity":u}).add(g),g.stops.push(e)}))}f="url("+m.url+"#"+h+")",r.setAttribute(t,f),r.gradient=x,e.toString=function(){return f}}}))}},{key:"css",value:function(e){var n,t=this.styles,r={},i=this.element,a=!t;if(t&&_(e,(function(e,n){t&&t[n]!==e&&(r[n]=e,a=!0)})),a){t&&(e=y(t,r)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===i.nodeName.toLowerCase()&&e.width&&(n=this.textWidth=E(e.width)),this.styles=e,n&&!c&&this.renderer.forExport&&delete e.width;var s=N(e);i.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach((function(e){return s&&delete s[e]})),s.color&&(s.fill=s.color)),g(i,s)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}},{key:"dashstyleSetter",value:function(e){var n=this["stroke-width"];if("inherit"===n&&(n=1),e=e&&e.toLowerCase()){var t=e.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(e=t.length;e--;)t[e]=""+E(t[e])*T(n,NaN);e=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}},{key:"destroy",value:function(){var e=this,n=e.element||{},t=e.renderer,r=n.ownerSVGElement,i="SPAN"===n.nodeName&&e.parentGroup||void 0;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,s(e),e.clipPath&&r){var a=e.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(e){-1p.width)&&(p={x:0,y:0,width:0,height:0})}else p=this.htmlGetBBox();if(m=p.width,n=p.height,u&&(p.height=n={"11px,17":14,"13px,20":16}["".concat(f||"",",").concat(Math.round(n))]||n),t){u=Number(i.getAttribute("y")||0)-p.y,f={right:1,center:.5}[r||0]||0;var x=t*o,b=(t-90)*o,w=m*Math.cos(x);t=m*Math.sin(x);var j=Math.cos(b);x=Math.sin(b),w=(j=(b=(m=p.x+f*(m-w)+u*j)+w)-n*j)-w,t=(n=(f=(u=p.y+u-f*t+u*x)+t)-n*x)-t,p.x=Math.min(m,b,j,w),p.y=Math.min(u,f,n,t),p.width=Math.max(m,b,j,w)-p.x,p.height=Math.max(u,f,n,t)-p.y}}if(h&&(""===l||00&&void 0!==arguments[0])||arguments[0];return this.attr({visibility:e?"inherit":"visible"})}},{key:"stroke-widthSetter",value:function(e,n,t){this[n]=e,t.setAttribute(n,e)}},{key:"strokeWidth",value:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var e,n=this.getStyle("stroke-width"),t=0;return n.indexOf("px")===n.length-2?t=E(n):""!==n&&(e=l.createElementNS(d,"rect"),m(e,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(e),t=e.getBBox().width,e.parentNode.removeChild(e)),t}},{key:"symbolAttr",value:function(n){var t=this;e.symbolCustomAttribs.forEach((function(e){t[e]=T(n[e],t[e])})),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}},{key:"textSetter",value:function(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this))}},{key:"titleSetter",value:function(e){var n=this.element,t=n.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");n.insertBefore?n.insertBefore(t,n.firstChild):n.appendChild(t),t.textContent=String(T(e,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"toFront",value:function(){var e=this.element;return e.parentNode.appendChild(e),this}},{key:"translate",value:function(e,n){return this.attr({translateX:e,translateY:n})}},{key:"updateTransform",value:function(){var e=this.element,n=this.matrix,t=this.rotation,r=void 0===t?0:t,i=this.scaleX,a=this.scaleY,s=this.translateX,o=void 0===s?0:s,l=this.translateY,c=["translate("+o+","+(void 0===l?0:l)+")"];v(n)&&c.push("matrix("+n.join(",")+")"),r&&c.push("rotate("+r+" "+T(this.rotationOriginX,e.getAttribute("x"),0)+" "+T(this.rotationOriginY,e.getAttribute("y")||0)+")"),(v(i)||v(a))&&c.push("scale("+T(i,1)+" "+T(a,1)+")"),c.length&&!(this.text||this).textPath&&e.setAttribute("transform",c.join(" "))}},{key:"visibilitySetter",value:function(e,n,t){"inherit"===e?t.removeAttribute(n):this[n]!==e&&t.setAttribute(n,e),this[n]=e}},{key:"xGetter",value:function(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}},{key:"zIndexSetter",value:function(e,n){var t=this.renderer,r=this.parentGroup,i=(r||t).element||t.box,a=this.element;t=i===t.box;var s,o,l=!1,c=this.added;if(v(e)?(a.setAttribute("data-z-index",e),e=+e,this[n]===e&&(c=!1)):v(this[n])&&a.removeAttribute("data-z-index"),this[n]=e,c){for((e=this.zIndex)&&r&&(r.handleZ=!0),o=(n=i.childNodes).length-1;0<=o&&!l;o--)c=(r=n[o]).getAttribute("data-z-index"),s=!v(c),r!==a&&(0>e&&s&&!t&&!o?(i.insertBefore(a,n[o]),l=!0):(E(c)<=e||s&&(!v(e)||0<=e))&&(i.insertBefore(a,n[o+1]),l=!0));l||(i.insertBefore(a,n[t?3:0]),l=!0)}return l}}]),e}();return D.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),D.prototype.strokeSetter=D.prototype.fillSetter,D.prototype.yGetter=D.prototype.xGetter,D.prototype.matrixSetter=D.prototype.rotationOriginXSetter=D.prototype.rotationOriginYSetter=D.prototype.rotationSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.verticalAlignSetter=function(e,n){this[n]=e,this.doTransform=!0},D})),n(t,"Core/Renderer/RendererRegistry.js",[t["Core/Globals.js"]],(function(e){var n;return function(n){var t;n.rendererTypes={},n.getRendererType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return n.rendererTypes[e]||n.rendererTypes[t]},n.registerRendererType=function(r,i,a){n.rendererTypes[r]=i,t&&!a||(t=r,e.Renderer=i)}}(n||(n={})),n})),n(t,"Core/Renderer/SVG/SVGLabel.js",[t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,n){var t=n.defined,r=n.extend,i=n.isNumber,a=n.merge,s=n.pick,o=n.removeEvent,l=function(n){u(c,n);var l=p(c);function c(e,n,t,r,i,a,s,o,d,u){var p,f;return h(this,c),(p=l.call(this)).paddingRightSetter=p.paddingLeftSetter=p.paddingSetter,p.init(e,"g"),p.textStr=n,p.x=t,p.y=r,p.anchorX=a,p.anchorY=s,p.baseline=d,p.className=u,p.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label"),u&&p.addClass("highcharts-"+u),p.text=e.text(void 0,0,0,o).attr({zIndex:1}),"string"===typeof i&&((f=/^url\((.*?)\)$/.test(i))||p.renderer.symbols[i])&&(p.symbolKey=i),p.bBox=c.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=e.styledMode||f,p.deferredAttr={},p.alignFactor=0,p}return f(c,[{key:"alignSetter",value:function(e){(e={left:0,center:.5,right:1}[e])!==this.alignFactor&&(this.alignFactor=e,this.bBox&&i(this.xSetting)&&this.attr({x:this.xSetting}))}},{key:"anchorXSetter",value:function(e,n){this.anchorX=e,this.boxAttr(n,Math.round(e)-this.getCrispAdjust()-this.xSetting)}},{key:"anchorYSetter",value:function(e,n){this.anchorY=e,this.boxAttr(n,e-this.ySetting)}},{key:"boxAttr",value:function(e,n){this.box?this.box.attr(e,n):this.deferredAttr[e]=n}},{key:"css",value:function(n){if(n){var t={};n=a(n),c.textProps.forEach((function(e){"undefined"!==typeof n[e]&&(t[e]=n[e],delete n[e])})),this.text.css(t),"fontSize"in t||"fontWeight"in t?this.updateTextPadding():("width"in t||"textOverflow"in t)&&this.updateBoxSize()}return e.prototype.css.call(this,n)}},{key:"destroy",value:function(){o(this.element,"mouseenter"),o(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),e.prototype.destroy.call(this)}},{key:"fillSetter",value:function(e,n){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(n,e)}},{key:"getBBox",value:function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var e=this.padding,n=s(this.paddingLeft,e);return{width:this.width,height:this.height,x:this.bBox.x-n,y:this.bBox.y-e}}},{key:"getCrispAdjust",value:function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}},{key:"heightSetter",value:function(e){this.heightSetting=e}},{key:"onAdd",value:function(){this.text.add(this),this.attr({text:s(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&t(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}},{key:"paddingSetter",value:function(e,n){i(e)?e!==this[n]&&(this[n]=e,this.updateTextPadding()):this[n]=void 0}},{key:"rSetter",value:function(e,n){this.boxAttr(n,e)}},{key:"strokeSetter",value:function(e,n){this.stroke=e,this.boxAttr(n,e)}},{key:"stroke-widthSetter",value:function(e,n){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(n,e)}},{key:"text-alignSetter",value:function(e){this.textAlign=e}},{key:"textSetter",value:function(e){"undefined"!==typeof e&&this.text.attr({text:e}),this.updateTextPadding()}},{key:"updateBoxSize",value:function(){var e=this.text,n={},a=this.padding,s=this.bBox=i(this.widthSetting)&&i(this.heightSetting)&&!this.textAlign||!t(e.textStr)?c.emptyBBox:e.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||s.height||0)+2*a;var o=this.renderer.fontMetrics(e);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||o).b,s.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-o.h)/2),this.needsBox&&!e.textPath&&(this.box||((e=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":"")),e.add(this)),e=this.getCrispAdjust(),n.x=e,n.y=(this.baseline?-this.baselineOffset:0)+e,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(r(n,this.deferredAttr)),this.deferredAttr={})}},{key:"updateTextPadding",value:function(){var e=this.text;if(!e.textPath){this.updateBoxSize();var n=this.baseline?0:this.baselineOffset,r=s(this.paddingLeft,this.padding);t(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(r+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),r===e.x&&n===e.y||(e.attr("x",r),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),"undefined"!==typeof n&&e.attr("y",n)),e.x=r,e.y=n}}},{key:"widthSetter",value:function(e){this.widthSetting=i(e)?e:void 0}},{key:"getPaddedWidth",value:function(){var e=this.padding,n=s(this.paddingLeft,e);return e=s(this.paddingRight,e),(this.widthSetting||this.bBox.width||0)+n+e}},{key:"xSetter",value:function(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}},{key:"ySetter",value:function(e){this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}]),c}(e);return l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),l})),n(t,"Core/Renderer/SVG/Symbols.js",[t["Core/Utilities.js"]],(function(e){function n(e,n,t,r,a){var o=[];if(a){var l=a.start||0,c=s(a.r,t);t=s(a.r,r||t),r=(a.end||0)-.001;var d=a.innerR,u=s(a.open,.001>Math.abs((a.end||0)-l-2*Math.PI)),p=Math.cos(l),h=Math.sin(l),f=Math.cos(r),m=Math.sin(r),x=s(a.longArc,.001>r-l-Math.PI?0:1),g=["A",c,t,0,x,s(a.clockwise,1),e+c*f,n+t*m];g.params={start:l,end:r,cx:e,cy:n},o.push(["M",e+c*p,n+t*h],g),i(d)&&((g=["A",d,d,0,x,i(a.clockwise)?1-a.clockwise:0,e+d*p,n+d*h]).params={start:r,end:l,cx:e,cy:n},o.push(u?["M",e+d*f,n+d*m]:["L",e+d*f,n+d*m],g)),u||o.push(["Z"])}return o}function t(e,n,t,i,a){return a&&a.r?r(e,n,t,i,a):[["M",e,n],["L",e+t,n],["L",e+t,n+i],["L",e,n+i],["Z"]]}function r(e,n,t,r,i){return[["M",e+(i=(null===i||void 0===i?void 0:i.r)||0),n],["L",e+t-i,n],["A",i,i,0,0,1,e+t,n+i],["L",e+t,n+r-i],["A",i,i,0,0,1,e+t-i,n+r],["L",e+i,n+r],["A",i,i,0,0,1,e,n+r-i],["L",e,n+i],["A",i,i,0,0,1,e+i,n],["Z"]]}var i=e.defined,a=e.isNumber,s=e.pick;return{arc:n,callout:function(e,n,t,i,s){var o=Math.min(s&&s.r||0,t,i),l=o+6,c=s&&s.anchorX;s=s&&s.anchorY||0;var d=r(e,n,t,i,{r:o});return a(c)?(e+c>=t?s>n+l&&s=e+c?s>n+l&&si&&c>e+l&&cs&&c>e+l&&c/g.test(a))?""!==a&&(i&&i.appendChild(t),a=new e(a),this.modifyTree(a.nodes),a.addToDOM(t),this.modifyDOM(),this.ellipsis&&-1!==(t.textContent||"").indexOf("\u2026")&&n.attr("title",this.unescapeEntities(n.textStr||"",["<",">"])),i&&i.removeChild(t)):t.appendChild(r.createTextNode(this.unescapeEntities(a))),c(this.textOutline)&&n.applyTextOutline&&n.applyTextOutline(this.textOutline)}}},{key:"modifyDOM",value:function(){var e,n=this,t=this.svgElement,o=s(t.element,"x");for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(function(e,r){e.nextSibling&&e.previousSibling&&(0===r&&1===e.previousSibling.nodeType&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),s(e,{dy:n.getLineHeight(e.nextSibling),x:o}))}));var l=this.width||0;if(l){var c=function(e,a){var c=e.textContent||"",d=c.replace(/([^\^])-/g,"$1- ").split(" "),u=!n.noWrap&&(1i){for(;u<=p;)h=Math.ceil((u+p)/2),t&&(s=a(t,h)),o=f(h,s&&s.length-1),u===p?u=p+1:o>i?p=h-1:u=h;0===p?e.textContent="":n&&p===n.length-1||(e.textContent=s||a(n||t,h))}t&&t.splice(0,h),l.actualWidth=o,l.rotation=c}},{key:"unescapeEntities",value:function(e,n){return d(this.renderer.escapes,(function(t,r){n&&-1!==n.indexOf(t)||(e=e.toString().replace(new RegExp(t,"g"),r))})),e}}]),n}();return p})),n(t,"Core/Renderer/SVG/SVGRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGLabel.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Renderer/SVG/TextBuilder.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i,a,s,o,l){var c,u=t.charts,p=t.deg2rad,m=t.doc,x=t.isFirefox,g=t.isMS,v=t.isWebKit,b=t.noop,y=t.SVG_NS,w=t.symbolSizes,j=t.win,k=l.addEvent,S=l.attr,C=l.createElement,N=l.css,_=l.defined,T=l.destroyObjectProperties,E=l.extend,A=l.isArray,L=l.isNumber,D=l.isObject,O=l.isString,R=l.merge,P=l.pick,M=l.pInt,I=l.uniqueKey,F=function(){function t(e,n,r,i,a,s,o){h(this,t),this.width=this.url=this.style=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(e,n,r,i,a,s,o)}return f(t,[{key:"init",value:function(e,n,t,r,i,a,s){var o,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),c=l.element;s||l.css(this.getStyle(r)),e.appendChild(c),S(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&S(c,"xmlns",this.SVG_NS),this.box=c,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(m.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=i,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=l.getStyle("font-size"),this.setSize(n,t,!1),x&&e.getBoundingClientRect&&((n=function(){N(e,{left:0,top:0}),o=e.getBoundingClientRect(),N(e,{left:Math.ceil(o.left)-o.left+"px",top:Math.ceil(o.top)-o.top+"px"})})(),this.unSubPixelFix=k(j,"resize",n))}},{key:"definition",value:function(n){return new e([n]).addToDOM(this.defs.element)}},{key:"getReferenceURL",value:function(){if((x||v)&&m.getElementsByTagName("base").length){if(!_(c)){var n=I();n=new e([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:n},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(n,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(m.body),N(n,{position:"fixed",top:0,left:0,zIndex:9e5});var t=m.elementFromPoint(6,6);c="hitme"===(t&&t.id),m.body.removeChild(n)}if(c)return j.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}},{key:"getStyle",value:function(e){return this.style=E({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},e)}},{key:"setStyle",value:function(e){this.boxWrapper.css(this.getStyle(e))}},{key:"isHidden",value:function(){return!this.boxWrapper.getBBox().width}},{key:"destroy",value:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),T(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}},{key:"createElement",value:function(e){var n=new this.Element;return n.init(this,e),n}},{key:"getRadialAttr",value:function(e,n){return{cx:e[0]-e[2]/2+(n.cx||0)*e[2],cy:e[1]-e[2]/2+(n.cy||0)*e[2],r:(n.r||0)*e[2]}}},{key:"shadowDefinition",value:function(e){var n=["highcharts-drop-shadow-".concat(this.chartIndex)].concat(d(Object.keys(e).map((function(n){return e[n]})))).join("-").replace(/[^a-z0-9\-]/g,""),t=R({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector("#".concat(n))||this.definition({tagName:"filter",attributes:{id:n},children:[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]}),n}},{key:"buildText",value:function(e){new o(e).buildSVG()}},{key:"getContrast",value:function(e){return 1.05/(.05+(e=.2126*(e=n.parse(e).rgba.map((function(e){return.03928>=(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4)})))[0]+.7152*e[1]+.0722*e[2]))>(e+.05)/.05?"#FFFFFF":"#000000"}},{key:"button",value:function(n,t,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,u=this.label(n,t,r,c,void 0,void 0,d,void 0,"button"),p=this.styledMode;n=a.states||{};var h=0;delete(a=R(a)).states;var f=R({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},a.style);delete a.style;var m,x,v,b=e.filterUserAttributes(a);return u.attr(R({padding:8,r:2},b)),p||(b=R({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},b),s=R(b,{fill:"#e6e6e6"},e.filterUserAttributes(s||n.hover||{})),m=s.style,delete s.style,o=R(b,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},e.filterUserAttributes(o||n.select||{})),x=o.style,delete o.style,l=R(b,{style:{color:"#cccccc"}},e.filterUserAttributes(l||n.disabled||{})),v=l.style,delete l.style),k(u.element,g?"mouseover":"mouseenter",(function(){3!==h&&u.setState(1)})),k(u.element,g?"mouseout":"mouseleave",(function(){3!==h&&u.setState(h)})),u.setState=function(e){1!==e&&(u.state=h=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e||0]),p||(u.attr([b,s,o,l][e||0]),D(e=[f,m,x,v][e||0])&&u.css(e))},p||(u.attr(b).css(E({cursor:"default"},f)),d&&u.text.css({pointerEvents:"none"})),u.on("touchstart",(function(e){return e.stopPropagation()})).on("click",(function(e){3!==h&&i.call(u,e)}))}},{key:"crispLine",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"round",r=e[0],i=e[1];return _(r[1])&&r[1]===i[1]&&(r[1]=i[1]=Math[t](r[1])-n%2/2),_(r[2])&&r[2]===i[2]&&(r[2]=i[2]=Math[t](r[2])+n%2/2),e}},{key:"path",value:function(e){var n=this.styledMode?{}:{fill:"none"};return A(e)?n.d=e:D(e)&&E(n,e),this.createElement("path").attr(n)}},{key:"circle",value:function(e,n,t){return e=D(e)?e:"undefined"===typeof e?{}:{x:e,y:n,r:t},(n=this.createElement("circle")).xSetter=n.ySetter=function(e,n,t){t.setAttribute("c"+n,e)},n.attr(e)}},{key:"arc",value:function(e,n,t,r,i,a){return D(e)?(n=(r=e).y,t=r.r,e=r.x):r={innerR:r,start:i,end:a},(e=this.symbol("arc",e,n,t,t,r)).r=t,e}},{key:"rect",value:function(e,n,t,r,i,a){e=D(e)?e:"undefined"===typeof e?{}:{x:e,y:n,r:i,width:Math.max(t||0,0),height:Math.max(r||0,0)};var s=this.createElement("rect");return this.styledMode||("undefined"!==typeof a&&(e["stroke-width"]=a,E(e,s.crisp(e))),e.fill="none"),s.rSetter=function(e,n,t){s.r=e,S(t,{rx:e,ry:e})},s.rGetter=function(){return s.r||0},s.attr(e)}},{key:"roundedRect",value:function(e){return this.symbol("roundedRect").attr(e)}},{key:"setSize",value:function(e,n,t){this.width=e,this.height=n,this.boxWrapper.animate({width:e,height:n},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:P(t,!0)?void 0:0}),this.alignElements()}},{key:"g",value:function(e){var n=this.createElement("g");return e?n.attr({class:"highcharts-"+e}):n}},{key:"image",value:function(e,n,t,r,i,a){var s={preserveAspectRatio:"none"};L(n)&&(s.x=n),L(t)&&(s.y=t),L(r)&&(s.width=r),L(i)&&(s.height=i);var o=this.createElement("image").attr(s);return n=function(n){o.attr({href:e}),a.call(o,n)},a?(o.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),t=new j.Image,k(t,"load",n),t.src=e,t.complete&&n({})):o.attr({href:e}),o}},{key:"symbol",value:function(e,n,t,r,i,a){var s,o,l,c,d=this,p=/^url\((.*?)\)$/,h=p.test(e),f=!h&&(this.symbols[e]?e:"circle"),x=f&&this.symbols[f];if(x)"number"===typeof n&&(o=x.call(this.symbols,Math.round(n||0),Math.round(t||0),r||0,i||0,a)),s=this.path(o),d.styledMode||s.attr("fill","none"),E(s,{symbolName:f||void 0,x:n,y:t,width:r,height:i}),a&&E(s,a);else if(h){l=e.match(p)[1];var g=s=this.image(l);g.imgwidth=P(a&&a.width,w[l]&&w[l].width),g.imgheight=P(a&&a.height,w[l]&&w[l].height),c=function(e){return e.attr({width:e.width,height:e.height})},["width","height"].forEach((function(e){g[e+"Setter"]=function(e,n){this[n]=e;var t=this.alignByTranslate,r=this.element,i=this.width,s=this.height,o=this.imgwidth,l=this.imgheight;if(e=this["img"+n],_(e)){var c=1;a&&"within"===a.backgroundSize&&i&&s?(c=Math.min(i/o,s/l),S(r,{width:Math.round(o*c),height:Math.round(l*c)})):r&&r.setAttribute(n,e),t||this.translate(((i||0)-o*c)/2,((s||0)-l*c)/2)}}})),_(n)&&g.attr({x:n,y:t}),g.isImg=!0,_(g.imgwidth)&&_(g.imgheight)?c(g):(g.attr({width:0,height:0}),C("img",{onload:function(){var e=u[d.chartIndex];0===this.width&&(N(this,{position:"absolute",top:"-999em"}),m.body.appendChild(this)),w[l]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&c(g),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!e||e.hasLoaded||e.onload()},src:l}),this.imgCount++)}return s}},{key:"clipRect",value:function(e,n,t,r){var i=I()+"-",a=this.createElement("clipPath").attr({id:i}).add(this.defs);return(e=this.rect(e,n,t,r,0).add(a)).id=i,e.clipPath=a,e.count=0,e}},{key:"text",value:function(e,n,t,r){var i={};return!r||!this.allowHTML&&this.forExport?(i.x=Math.round(n||0),t&&(i.y=Math.round(t)),_(e)&&(i.text=e),e=this.createElement("text").attr(i),(!r||this.forExport&&!this.allowHTML)&&(e.xSetter=function(e,n,t){for(var r,i=t.getElementsByTagName("tspan"),a=t.getAttribute(n),s=0;s(e=M(i.prototype.getStyle.call(e,"font-size")||0))?e+3:Math.round(1.2*e);return{h:n,b:Math.round(.8*n),f:e}}},{key:"rotCorr",value:function(e,n,t){var r=e;return n&&t&&(r=Math.max(r*Math.cos(n*p),4)),{x:-e/3*Math.sin(n*p),y:r}}},{key:"pathToSegments",value:function(e){for(var n=[],t=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i":">","'":"'",'"':"""},symbols:s,draw:b}),r.registerRendererType("svg",F,!0),F})),n(t,"Core/Renderer/HTML/HTMLElement.js",[t["Core/Globals.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=e.isFirefox,i=e.isMS,a=e.isWebKit,s=e.win,o=t.css,l=t.defined,c=t.extend,d=t.pick,m=t.pInt,x=[],g=function(e){u(g,e);var n=p(g);function g(){return h(this,g),n.apply(this,arguments)}return f(g,[{key:"getSpanCorrection",value:function(e,n,t){this.xCorr=-e*t,this.yCorr=-n}},{key:"htmlCss",value:function(e){var n,t="SPAN"===this.element.tagName&&e&&"width"in e,r=d(t&&e.width,void 0);return t&&(delete e.width,this.textWidth=r,n=!0),e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden"),this.styles=c(this.styles,e),o(this.element,e),n&&this.htmlUpdateTransform(),this}},{key:"htmlGetBBox",value:function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}},{key:"htmlUpdateTransform",value:function(){if(this.added){var e=this.renderer,n=this.element,t=this.x||0,r=this.y||0,i=this.textAlign||"left",a={left:0,center:.5,right:1}[i],s=this.styles,c=s&&s.whiteSpace;if(o(n,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),"SPAN"===n.tagName){s=this.rotation;var d=this.textWidth&&m(this.textWidth),u=[s,i,n.innerHTML,this.textWidth,this.textAlign].join(),p=!1;if(d!==this.oldTextWidth){if(this.textPxLength)var h=this.textPxLength;else o(n,{width:"",whiteSpace:c||"nowrap"}),h=n.offsetWidth;(d>this.oldTextWidth||h>d)&&(/[ \-]/.test(n.textContent||n.innerText)||"ellipsis"===n.style.textOverflow)&&(o(n,{width:h>d||s?d+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=d,p=!0)}this.hasBoxWidthChanged=p,u!==this.cTT&&(e=e.fontMetrics(n).b,!l(s)||s===(this.oldRotation||0)&&i===this.oldAlign||this.setSpanRotation(s,a,e),this.getSpanCorrection(!l(s)&&this.textPxLength||n.offsetWidth,e,a,s,i)),o(n,{left:t+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=u,this.oldRotation=s,this.oldAlign=i}}else this.alignOnAdd=!0}},{key:"setSpanRotation",value:function(e,n,t){var l={},c=i&&!/Edge/.test(s.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":s.opera?"-o-transform":void 0;c&&(l[c]=l.transform="rotate("+e+"deg)",l[c+(r?"Origin":"-origin")]=l.transformOrigin=100*n+"% "+t+"px",o(this.element,l))}}],[{key:"compose",value:function(e){if(t.pushUnique(x,e)){var n=g.prototype,r=e.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return e}}]),g}(n);return g})),n(t,"Core/Renderer/HTML/HTMLRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],(function(e,n,t,r){var i=r.attr,a=r.createElement,s=r.extend,o=r.pick,l=[],c=function(t){u(d,t);var c=p(d);function d(){return h(this,d),c.apply(this,arguments)}return f(d,[{key:"html",value:function(t,r,l){var c=this.createElement("span"),d=c.element,u=c.renderer,p=function(e,t){["opacity","visibility"].forEach((function(r){e[r+"Setter"]=function(i,a,s){var o=e.div?e.div.style:t;n.prototype[r+"Setter"].call(this,i,a,s),o&&(o[a]=i)}})),e.addedSetters=!0};return c.textSetter=function(n){n!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,o(n,"")),this.textStr=n,c.doTransform=!0)},p(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(e,n){"align"===n?c.alignValue=c.textAlign=e:c[n]=e,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:t,x:Math.round(r),y:Math.round(l)}).css({position:"absolute"}),u.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),d.style.whiteSpace="nowrap",c.css=c.htmlCss,c.add=function(e){var n,t=u.box.parentNode,r=[];if(this.parentGroup=e){if(!(n=e.div)){for(;e;)r.push(e),e=e.parentGroup;r.reverse().forEach((function(e){function o(n,t){e[t]=n,"translateX"===t?u.left=n+"px":u.top=n+"px",e.doTransform=!0}var l=i(e.element,"class"),d=e.styles||{},u=(n=e.div=e.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px",display:e.display,opacity:e.opacity,visibility:e.visibility},n||t)).style;s(e,{classSetter:function(e){return function(n){this.element.setAttribute("class",n),e.className=n}}(n),css:function(n){return c.css.call(e,n),["cursor","pointerEvents"].forEach((function(e){n[e]&&(u[e]=n[e])})),e},on:function(){return r[0].div&&c.on.apply({element:r[0].div,onEvents:e.onEvents},arguments),e},translateXSetter:o,translateYSetter:o}),e.addedSetters||p(e),e.css(d)}))}}else n=t;return n.appendChild(d),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}],[{key:"compose",value:function(e){return r.pushUnique(l,e)&&(e.prototype.html=d.prototype.html),e}}]),d}(t);return c})),n(t,"Core/Axis/AxisDefaults.js",[],(function(){var e;return function(e){e.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:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,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",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},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:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={title:{rotation:270}},e.defaultRightAxisOptions={title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(e||(e={})),e})),n(t,"Core/Foundation.js",[t["Core/Utilities.js"]],(function(e){var n,t=e.addEvent,r=e.isFunction,i=e.objectEach,a=e.removeEvent;return function(e){e.registerEventOptions=function(e,n){e.eventOptions=e.eventOptions||{},i(n.events,(function(n,i){e.eventOptions[i]!==n&&(e.eventOptions[i]&&(a(e,i,e.eventOptions[i]),delete e.eventOptions[i]),r(n)&&(e.eventOptions[i]=n,t(e,i,n,{order:0})))}))}}(n||(n={})),n})),n(t,"Core/Axis/Tick.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=n.deg2rad,i=t.clamp,a=t.correctFloat,s=t.defined,o=t.destroyObjectProperties,l=t.extend,c=t.fireEvent,d=t.isNumber,u=t.merge,p=t.objectEach,m=t.pick,x=function(){function n(e,t,r,i,a){h(this,n),this.isNewLabel=this.isNew=!0,this.axis=e,this.pos=t,this.type=r||"",this.parameters=a||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,c(this,"init"),r||i||this.addLabel()}return f(n,[{key:"addLabel",value:function(){var n=this,t=n.axis,r=t.options,i=t.chart,o=t.categories,u=t.logarithmic,p=t.names,h=n.pos,f=m(n.options&&n.options.labels,r.labels),x=t.tickPositions,g=h===x[0],v=h===x[x.length-1],b=(!f.step||1===f.step)&&1===t.tickInterval;x=x.info;var y,w,j,k=n.label;o=this.parameters.category||(o?m(o[h],p[h],h):h),u&&d(o)&&(o=a(u.lin2log(o))),t.dateTime&&(x?y=(w=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&x.higherRanks[h]||x.unitName])).main:d(o)&&(y=t.dateTime.getXDateFormat(o,r.dateTimeLabelFormats||{}))),n.isFirst=g,n.isLast=v;var S={axis:t,chart:i,dateTimeLabelFormat:y,isFirst:g,isLast:v,pos:h,tick:n,tickPositionInfo:x,value:o};c(this,"labelFormat",S);var C=function(n){return f.formatter?f.formatter.call(n,n):f.format?(n.text=t.defaultLabelFormatter.call(n,n),e.format(f.format,n,i)):t.defaultLabelFormatter.call(n,n)};r=C.call(S,S);var N=w&&w.list;n.shortenLabel=N?function(){for(j=0;jd&&i-u*ps&&(l=Math.round((a-i)/Math.cos(d*r))):(a=i+(1-u)*p,i-u*ps&&(x=s-e.x+x*u,g=-1),(x=Math.min(h,x))x||n.autoRotation&&(c.styles||{}).width)&&(l=x)),l&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(l)+"px",(t.style||{}).textOverflow||(f.textOverflow="ellipsis"),c.css(f)))}},{key:"moveLabel",value:function(e,n){var t=this,r=t.label,i=t.axis,a=!1;r&&r.textStr===e?(t.movedLabel=r,a=!0,delete t.label):p(i.ticks,(function(n){a||n.isNew||n===t||!n.label||n.label.textStr!==e||(t.movedLabel=n.label,a=!0,n.labelPos=t.movedLabel.xy,delete n.label)})),a||!t.labelPos&&!r||(r=t.labelPos||r.xy,t.movedLabel=t.createLabel(r,e,n),t.movedLabel&&t.movedLabel.attr({opacity:0}))}},{key:"render",value:function(e,n,t){var r=this.axis,i=r.horiz,a=this.pos,s=m(this.tickmarkOffset,r.tickmarkOffset);s=(a=this.getPosition(i,a,s,n)).x;var o=a.y;r=i&&s===r.pos+r.len||!i&&o===r.pos?-1:1,i=m(t,this.label&&this.label.newOpacity,1),t=m(t,1),this.isActive=!0,this.renderGridLine(n,t,r),this.renderMark(a,t,r),this.renderLabel(a,n,i,e),this.isNew=!1,c(this,"afterRender")}},{key:"renderGridLine",value:function(e,n,t){var r=this.axis,i=r.options,a={},s=this.pos,o=this.type,l=m(this.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,d=this.gridLine,u=i.gridLineWidth,p=i.gridLineColor,h=i.gridLineDashStyle;"minor"===this.type&&(u=i.minorGridLineWidth,p=i.minorGridLineColor,h=i.minorGridLineDashStyle),d||(r.chart.styledMode||(a.stroke=p,a["stroke-width"]=u||0,a.dashstyle=h),o||(a.zIndex=1),e&&(n=0),this.gridLine=d=c.path().attr(a).addClass("highcharts-"+(o?o+"-":"")+"grid-line").add(r.gridGroup)),d&&(t=r.getPlotLinePath({value:s+l,lineWidth:d.strokeWidth()*t,force:"pass",old:e,acrossPanes:!1}))&&d[e||this.isNew?"attr":"animate"]({d:t,opacity:n})}},{key:"renderMark",value:function(e,n,t){var r=this.axis,i=r.options,a=r.chart.renderer,s=this.type,o=r.tickSize(s?s+"Tick":"tick"),l=e.x;e=e.y;var c=m(i["minor"!==s?"tickWidth":"minorTickWidth"],!s&&r.isXAxis?1:0);i=i["minor"!==s?"tickColor":"minorTickColor"];var d=this.mark,u=!d;o&&(r.opposite&&(o[0]=-o[0]),d||(this.mark=d=a.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||d.attr({stroke:i,"stroke-width":c})),d[u?"attr":"animate"]({d:this.getMarkPath(l,e,o[0],d.strokeWidth()*t,r.horiz,a),opacity:n}))}},{key:"renderLabel",value:function(e,n,t,r){var i=this.axis,a=i.horiz,s=i.options,o=this.label,l=s.labels,c=l.step;i=m(this.tickmarkOffset,i.tickmarkOffset);var u=e.x;e=e.y;var p=!0;o&&d(u)&&(o.xy=e=this.getLabelPosition(u,e,o,a,l,i,r,c),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?p=!1:!a||l.step||l.rotation||n||0===t||this.handleOverflow(e),c&&r%c&&(p=!1),p&&d(e.y)?(e.opacity=t,o[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(o.hide(),this.isNewLabel=!0))}},{key:"replaceMovedLabel",value:function(){var e=this.label,n=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),n.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}]),n}();return x})),n(t,"Core/Axis/Axis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/AxisDefaults.js"],t["Core/Color/Color.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Axis/Tick.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i,a,s,o){var l=e.animObject,d=r.defaultOptions,u=i.registerEventOptions,p=a.deg2rad,m=o.arrayMax,x=o.arrayMin,g=o.clamp,v=o.correctFloat,b=o.defined,y=o.destroyObjectProperties,w=o.erase,j=o.error,k=o.extend,S=o.fireEvent,C=o.getClosestDistance,N=o.insertItem,_=o.isArray,T=o.isNumber,E=o.isString,A=o.merge,L=o.normalizeTickInterval,D=o.objectEach,O=o.pick,R=o.relativeLength,P=o.removeEvent,M=o.splat,I=o.syncTimeout,F=function(e,n){return L(n,void 0,void 0,O(e.options.allowDecimals,.5>n||void 0!==e.tickAmount),!!e.tickAmount)},z=function(){function e(n,t,r){h(this,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.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(n,t,r)}return f(e,[{key:"init",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.coll,r="xAxis"===t;this.chart=e,this.horiz=this.isZAxis||(e.inverted?!r:r),this.isXAxis=r,this.coll=t,S(this,"init",{userOptions:n}),this.opposite=O(n.opposite,this.opposite),this.side=O(n.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(n);var i=(t=this.options).labels,a=t.type;this.userOptions=n,this.minPixelPadding=0,this.reversed=O(t.reversed,this.reversed),this.visible=t.visible,this.zoomEnabled=t.zoomEnabled,this.hasNames="category"===a||!0===t.categories,this.categories=t.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=b(t.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=t.minRange||t.maxZoom,this.range=t.range,this.offset=t.offset||0,this.min=this.max=null,n=O(t.crosshair,M(e.options.tooltip.crosshairs)[r?0:1]),this.crosshair=!0===n?{}:n,-1===e.axes.indexOf(this)&&(r?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),N(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&r&&"undefined"===typeof this.reversed&&(this.reversed=!0),this.labelRotation=T(i.rotation)?i.rotation:void 0,u(this,t),S(this,"afterInit")}},{key:"setOptions",value:function(e){this.options=A(n.defaultXAxisOptions,"yAxis"===this.coll&&n.defaultYAxisOptions,[n.defaultTopAxisOptions,n.defaultRightAxisOptions,n.defaultBottomAxisOptions,n.defaultLeftAxisOptions][this.side],A(d[this.coll],e)),S(this,"afterSetOptions",{userOptions:e})}},{key:"defaultLabelFormatter",value:function(e){var n=this.axis;e=this.chart.numberFormatter;var t=T(this.value)?this.value:NaN,r=n.chart.time,i=this.dateTimeLabelFormat,a=d.lang,s=a.numericSymbols;a=a.numericSymbolMagnitude||1e3;var o,l=n.logarithmic?Math.abs(t):n.tickInterval,c=s&&s.length;if(n.categories)o="".concat(this.value);else if(i)o=r.dateFormat(i,t);else if(c&&1e3<=l)for(;c--&&"undefined"===typeof o;)l>=(n=Math.pow(a,c+1))&&0===10*t%n&&null!==s[c]&&0!==t&&(o=e(t/n,-1)+s[c]);return"undefined"===typeof o&&(o=1e4<=Math.abs(t)?e(t,-1):e(t,-1,void 0,"")),o}},{key:"getSeriesExtremes",value:function(){var e,n=this,t=n.chart;S(this,"getSeriesExtremes",null,(function(){n.hasVisibleSeries=!1,n.dataMin=n.dataMax=n.threshold=null,n.softThreshold=!n.isXAxis,n.series.forEach((function(r){if(r.visible||!t.options.chart.ignoreHiddenSeries){var i,a,s=r.options,o=s.threshold;n.hasVisibleSeries=!0,n.positiveValuesOnly&&0>=o&&(o=null),n.isXAxis?(s=r.xData)&&s.length&&(s=n.logarithmic?s.filter((function(e){return 0t)&&(b?e=g(e,n,t):s=!0),e}var t,r,i,a,s,o=this,l=o.chart,c=o.left,d=o.top,u=e.old,p=e.value,h=e.lineWidth,f=u&&l.oldChartHeight||l.chartHeight,m=u&&l.oldChartWidth||l.chartWidth,x=o.transB,v=e.translatedValue,b=e.force;return e={value:p,lineWidth:h,old:u,force:b,acrossPanes:e.acrossPanes,translatedValue:v},S(this,"getPlotLinePath",e,(function(e){v=O(v,o.translate(p,void 0,void 0,u)),v=g(v,-1e5,1e5),t=i=Math.round(v+x),r=a=Math.round(f-v-x),T(v)?o.horiz?(r=d,a=f-o.bottom,t=i=n(t,c,c+o.width)):(t=c,i=m-o.right,r=a=n(r,d,d+o.height)):(s=!0,b=!1),e.path=s&&!b?null:l.renderer.crispLine([["M",t,r],["L",i,a]],h||1)})),e.path}},{key:"getLinearTickPositions",value:function(e,n,t){var r=v(Math.floor(n/e)*e);t=v(Math.ceil(t/e)*e);var i,a,s=[];if(v(r+e)===r&&(a=20),this.single)return[n];for(n=r;n<=t&&(s.push(n),(n=v(n+e,a))!==i);)i=n;return s}},{key:"getMinorTickInterval",value:function(){var e=this.options;return!0===e.minorTicks?O(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval}},{key:"getMinorTickPositions",value:function(){var e=this.options,n=this.tickPositions,t=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r,a=(r=this.max+r)-i,s=[];if(a&&a/t=this.minRange,e=[i-(a=((n=this.minRange)-a+i)/2),O(t.min,i-a)],s&&(e[2]=r?r.log2lin(this.dataMin):this.dataMin),a=[(i=m(e))+n,O(t.max,i+n)],s&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=x(a))-i=m?(x=m,h=0):this.dataMax<=m&&(n=m,p=0)),this.min=O(t,x,this.dataMin),this.max=O(r,n,this.dataMax);if(a&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,O(this.dataMin,this.min))&&j(10,1,i),this.min=v(a.log2lin(this.min),16),this.max=v(a.log2lin(this.max),16)),this.range&&b(this.max)&&(this.userMin=this.min=t=Math.max(this.dataMin,this.minFromRange()),this.userMax=r=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!T(this.userMin)&&T(s.softMin)&&s.softMinthis.max&&(this.max=r=s.softMax),!(d||this.axisPointRange||this.stacking&&this.stacking.usePercentage||l)&&b(this.min)&&b(this.max)&&(i=this.max-this.min)&&(!b(t)&&h&&(this.min-=i*h),!b(r)&&p&&(this.max+=i*p)),!T(this.userMin)&&T(s.floor)&&(this.min=Math.max(this.min,s.floor)),!T(this.userMax)&&T(s.ceiling)&&(this.max=Math.min(this.max,s.ceiling)),u&&b(this.dataMin)&&(m=m||0,!b(t)&&this.min=m?this.min=this.options.minRange?Math.min(m,this.max-this.minRange):m:!b(r)&&this.max>m&&this.dataMax<=m&&(this.max=this.options.minRange?Math.max(m,this.min+this.minRange):m)),T(this.min)&&T(this.max)&&!this.chart.polar&&this.min>this.max&&(b(this.options.min)?this.max=this.min:b(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:l&&this.linkedParent&&!f&&c===this.linkedParent.options.tickPixelInterval?f=this.linkedParent.tickInterval:O(f,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,d?1:(this.max-this.min)*c/Math.max(this.len,c)),o&&!e){var g=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(e){e.forceCrop=e.forceCropping&&e.forceCropping(),e.processData(g)})),S(this,"postProcessData",{hasExtremesChanged:g})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!f&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=O(s.minTickInterval,this.dateTime&&!this.series.some((function(e){return e.noSharedTooltip}))?this.closestPointRange:0),!f&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)s=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,n.units),this.min,this.max,n.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)s=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(i=n=this.tickInterval;i<=2*n&&(s=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&s.length>this.tickAmount);)this.tickInterval=F(this,i*=1.1);else s=[this.min,this.max],j(19,!1,this.chart);s.length>this.len&&(s=[s[0],s[s.length-1]])[0]===s[1]&&(s.length=1),r&&(this.tickPositions=s,(e=r.apply(this,[this.min,this.max]))&&(s=e))}this.tickPositions=s,this.paddedTicks=s.slice(0),this.trimTicks(s,o,a),!this.isLinked&&T(this.min)&&T(this.max)&&(this.single&&2>s.length&&!this.categories&&!this.series.some((function(e){return e.is("heatmap")&&"between"===e.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),t||e||this.adjustTickAmount()),S(this,"afterSetTickPositions")}},{key:"trimTicks",value:function(e,n,t){var r=e[0],i=e[e.length-1],a=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(n&&-1/0!==r)this.min=r;else for(;this.min-a>e[0];)e.shift();if(t)this.max=i;else for(;this.max+at&&(this.finalTickAmt=t,t=5),this.tickAmount=t}},{key:"adjustTickAmount",value:function(){var e,n=this,t=n.finalTickAmt,r=n.max,i=n.min,a=n.options,s=n.tickPositions,o=n.tickAmount,l=n.thresholdAlignment,c=s&&s.length,d=O(n.threshold,n.softThreshold?0:null),u=n.tickInterval;if(T(l)&&(e=.5>l?Math.ceil(l*(o-1)):Math.floor(l*(o-1)),a.reversed&&(e=o-1-e)),n.hasData()&&T(i)&&T(r)){var p=function(){n.transA*=(c-1)/(o-1),n.min=a.startOnTick?s[0]:Math.min(i,s[0]),n.max=a.endOnTick?s[s.length-1]:Math.max(r,s[s.length-1])};if(T(e)&&T(n.threshold)){for(;s[e]!==d||s.length!==o||s[0]>i||s[s.length-1]n.threshold?s.unshift(v(s[0]-u)):s.push(v(s[s.length-1]+u));if(u>8*n.tickInterval)break;u*=2}p()}else if(c=t&&0o&&(n=o)),b(i)&&(ao&&(a=o))),t.displayBtn="undefined"!==typeof n||"undefined"!==typeof a,t.setExtremes(n,a,!1,void 0,{trigger:"zoom"})),e.zoomed=!0})),e.zoomed}},{key:"setAxisSize",value:function(){var e=this.chart,n=this.options,t=n.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(R(O(n.width,e.plotWidth-t[3]+t[1]),e.plotWidth)),a=this.height=Math.round(R(O(n.height,e.plotHeight-t[0]+t[2]),e.plotHeight)),s=this.top=Math.round(R(O(n.top,e.plotTop+t[0]),e.plotHeight,e.plotTop));n=this.left=Math.round(R(O(n.left,e.plotLeft+t[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-a-s,this.right=e.chartWidth-i-n,this.len=Math.max(r?i:a,0),this.pos=r?n:s}},{key:"getExtremes",value:function(){var e=this.logarithmic;return{min:e?v(e.lin2log(this.min)):this.min,max:e?v(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}},{key:"getThreshold",value:function(e){var n=this.logarithmic,t=n?n.lin2log(this.min):this.min;return n=n?n.lin2log(this.max):this.max,null===e||-1/0===e?e=t:1/0===e?e=n:t>e?e=t:nn?e.align="right":195n&&(e.align="left")})),e.align}},{key:"tickSize",value:function(e){var n,t=this.options,r=O(t["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),i=t["tick"===e?"tickLength":"minorTickLength"];return r&&i&&("inside"===t[e+"Position"]&&(i=-i),n=[i,r]),S(this,"afterTickSize",e={tickSize:n}),e.tickSize}},{key:"labelMetrics",value:function(){var e=this.chart.renderer,n=this.ticks;return n=n[Object.keys(n)[0]]||{},this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}},{key:"unsquish",value:function(){var e,n,t=this.options.labels,r=this.horiz,i=this.tickInterval,a=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=t.rotation,o=.75*this.labelMetrics().h,l=Math.max(this.max-this.min,0),d=function(e){var n=e/(a||1);return(n=1l&&1/0!==e&&1/0!==a&&l&&(n=Math.ceil(l/i)),v(n*i)},u=i,h=Number.MAX_VALUE;if(r){if(t.staggerLines||(T(s)?n=[s]:a=g)&&(f=(r=d(Math.abs(o/Math.sin(p*g))))+Math.abs(g/360))r.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!t){if(void 0!==(e=r.style.width))return parseInt(String(e),10);if(a)return a-n.spacing[3]}return.33*n.chartWidth}},{key:"renderUnsquish",value:function(){var e,n,t=this.chart,r=t.renderer,i=this.tickPositions,a=this.ticks,s=this.options.labels,o=s.style,l=this.horiz,c=this.getSlotWidth(),d=Math.max(1,Math.round(c-2*s.padding)),u={},p=this.labelMetrics(),h=o.textOverflow,f=0;if(E(s.rotation)||(u.rotation=s.rotation||0),i.forEach((function(e){(e=a[e]).movedLabel&&e.replaceMovedLabel(),e&&e.label&&e.label.textPxLength>f&&(f=e.label.textPxLength)})),this.maxLabelLength=f,this.autoRotation)f>d&&f>p.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(c&&(e=d,!h))for(n="clip",d=i.length;!l&&d--;){var m=i[d];(m=a[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>c&&m.css({width:c+"px"}),m.getBBox().height>this.len/i.length-(p.h-p.f)&&(m.specificTextOverflow="ellipsis"))}u.rotation&&(e=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(n="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(u.align=this.labelAlign),i.forEach((function(t){var r=(t=a[t])&&t.label,i=o.width,s={};r&&(r.attr(u),t.shortenLabel?t.shortenLabel():e&&!i&&"nowrap"!==o.whiteSpace&&(e=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(r[e]||(r[e]=new s(this,e)),t&&r[e].isNew&&r[e].render(n,!0,-1),r[e].render(n))}},{key:"render",value:function(){var e,n,t=this,r=t.chart,i=t.logarithmic,o=t.options,c=t.isLinked,d=t.tickPositions,u=t.axisTitle,p=t.ticks,h=t.minorTicks,f=t.alternateBands,m=o.stackLabels,x=o.alternateGridColor,g=o.crossing,v=t.tickmarkOffset,b=t.axisLine,y=t.showAxis,w=l(r.renderer.globalAnimation);if(t.labelEdge.length=0,t.overlap=!1,[p,h,f].forEach((function(e){D(e,(function(e){e.isActive=!1}))})),T(g)){var j=this.isXAxis?r.yAxis[0]:r.xAxis[0],k=[1,-1,-1,1][this.side];j&&(g=j.toPixels(g,!0),t.horiz&&(g=j.len-g),t.offset=k*g)}if(t.hasData()||c){var C=t.chart.hasRendered&&t.old&&T(t.old.min);t.minorTickInterval&&!t.categories&&t.getMinorTickPositions().forEach((function(e){t.renderMinorTick(e,C)})),d.length&&(d.forEach((function(e,n){t.renderTick(e,n,C)})),v&&(0===t.min||t.single)&&(p[-1]||(p[-1]=new s(t,-1,null,!0)),p[-1].render(-1))),x&&d.forEach((function(s,o){n="undefined"!==typeof d[o+1]?d[o+1]+v:t.max-v,0===o%2&&sn&&(!a||h<=t)&&"undefined"!==typeof h&&c.push(h),h>t&&(f=!0),h=p}else n=this.lin2log(n),t=this.lin2log(t),e=a?s.getMinorTickInterval():l.tickInterval,e=i("auto"===e?null:e,this.minorAutoInterval,l.tickPixelInterval/(a?5:1)*(t-n)/((a?o/s.tickPositions.length:o)||1)),e=r(e),c=s.getLinearTickPositions(e,n,t).map(this.log2lin),a||(this.minorAutoInterval=e/5);return a||(s.tickInterval=e),c}},{key:"lin2log",value:function(e){return Math.pow(10,e)}},{key:"log2lin",value:function(e){return Math.log(e)/Math.LN10}}]),e}();n.Additions=l}(n||(n={})),n})),n(t,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[t["Core/Utilities.js"]],(function(e){var n,t=e.erase,r=e.extend,i=e.isNumber;return function(n){function a(e){return this.addPlotBandOrLine(e,"plotBands")}function s(e,n){var t=this,r=this.userOptions,i=new p(this,e);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach((function(e){t.addPlotBandOrLine(e)}))),n){var a=r[n]||[];a.push(e),r[n]=a}this.plotLinesAndBands.push(i)}return i}function o(e){return this.addPlotBandOrLine(e,"plotLines")}function l(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options,a=this.getPlotLinePath({value:n,force:!0,acrossPanes:r.acrossPanes}),s=[],o=this.horiz;if(n=!i(this.min)||!i(this.max)||ethis.max&&n>this.max,e=this.getPlotLinePath({value:e,force:!0,acrossPanes:r.acrossPanes}),r=1,e&&a)for(n&&(t=e.toString()===a.toString(),r=0),n=0;ng-s?g:g-s);else{if(!x)return!1;a[e]=Math.max(c,l+s+t>n?l:l+s)}},g=function(e,n,t,r,s){var o;return sn-i?o=!1:a[e]=sn-r/2?n-r-2:s-t/2,o},v=function(e){var n=h;h=f,f=n,p=e};return(r.inverted||14&&void 0!==arguments[4])||arguments[4];return t?(n=O?0:z,e=d(e-i/2,A.left,A.right-i-(r.outside?P:0))):(n-=I,e=d(e=a?e-i-_:e+_,a?e:A.left,A.right)),{x:e,y:n}}var r=this,i=r.chart,a=r.chart,c=a.chartWidth,u=a.chartHeight,p=a.plotHeight,h=a.plotLeft,f=a.plotTop,x=a.pointer,g=a.scrollablePixelsY,v=void 0===g?0:g,y=a.scrollablePixelsX,j=a.scrollingContainer,k=void 0===j?{scrollLeft:0,scrollTop:0}:j,S=k.scrollLeft,C=k.scrollTop,N=a.styledMode,_=r.distance,T=r.options,E=r.options.positioner,A=r.outside&&"number"!==typeof y?s.documentElement.getBoundingClientRect():{left:S,right:S+c,top:C,bottom:C+u},L=r.getLabel(),D=this.renderer||i.renderer,O=!(!i.xAxis[0]||!i.xAxis[0].opposite),R=x.getChartPosition(),P=R.left,M=R.top,I=f+C,F=0,z=p-v;b(e)&&(e=[!1,e]),e=e.slice(0,n.length+1).reduce((function(e,i,a){if(!1!==i&&""!==i){var s,o=(a=n[a-1]||{isHeader:!0,plotX:n[0].plotX,plotY:p,series:{}}).isHeader,l=o?r:a.series,c=a;i=i.toString();var u=l.tt,m=c,x=m.isHeader,g=m.series;u||(u={padding:T.padding,r:T.borderRadius},N||(u.fill=T.backgroundColor,u["stroke-width"]=null!==(s=T.borderWidth)&&void 0!==s?s:1),u=D.label("",0,0,T[x?"headerShape":"shape"],void 0,void 0,T.useHTML).addClass(r.getClassName(c,!0,x)).attr(u).add(L)),u.isActive=!0,u.attr({text:i}),N||u.css(T.style).attr({stroke:T.borderColor||c.color||g.color||"#333333"}),s=u,s=l.tt=s,l=(c=s.getBBox()).width+s.strokeWidth(),o&&(F=c.height,z+=F,O&&(I-=F));var v=a,b=v.isHeader,y=v.plotX,j=void 0===y?0:y,k=v.plotY,S=void 0===k?0:k,C=v.series;if(b){i=h+j;var R=f+p/2}else{var P=C.xAxis,M=C.yAxis;i=P.pos+d(j,-_,P.len+_),C.shouldShowTooltip(0,M.pos-f+S,{ignoreX:!0})&&(R=M.pos+S)}var U=R={anchorX:i=d(i,A.left-_,A.right+_),anchorY:R},B=U.anchorX,W=U.anchorY;"number"===typeof W?(R=c.height+1,c=E?E.call(r,l,R,a):t(B,W,o,l),e.push({align:E?0:void 0,anchorX:B,anchorY:W,boxWidth:l,point:a,rank:w(c.rank,o?1:0),size:R,target:c.y,tt:s,x:c.x})):s.isActive=!1}return e}),[]),!E&&e.some((function(e){var n=r.outside;return(n=(n?P:0)+e.anchorX)n}))&&(e=e.map((function(e){var n=t(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1),r=n.x,i=n.y;return m(e,{target:i,x:r})}))),r.cleanSplit(),l(e,z);var U=P,B=P;e.forEach((function(e){var n=e.x,t=e.boxWidth,i=e.isHeader;i||(r.outside&&P+nB&&(B=P+n))})),e.forEach((function(e){var n=e.x,t=e.anchorX,i=e.anchorY,a=e.pos,s=e.point.isHeader,o={visibility:"undefined"===typeof a?"hidden":"inherit",x:n,y:(a||0)+I,anchorX:t,anchorY:i};if(r.outside&&nt[0]?Math.max(Math.abs(t[0]),i.width-t[0]):Math.max(Math.abs(t[0]),i.width),r.height=0>t[1]?Math.max(Math.abs(t[1]),i.height-Math.abs(t[1])):Math.max(Math.abs(t[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=n.renderer.rect(r).addClass("highcharts-tracker").add(n),e.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}},{key:"styledModeFormat",value:function(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}},{key:"tooltipFooterHeaderFormatter",value:function(e,n){var t=e.series,r=t.tooltipOptions,i=t.xAxis,s=i&&i.dateTime;i={isFooter:n,labelConfig:e};var o=r.xDateFormat,l=r[n?"footerFormat":"headerFormat"];return x(this,"headerFormatter",i,(function(n){s&&!o&&v(e.key)&&(o=s.getXDateFormat(e.key,r.dateTimeLabelFormats)),s&&o&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach((function(e){l=l.replace("{point."+e+"}","{point."+e+":"+o+"}")})),t.chart.styledMode&&(l=this.styledModeFormat(l)),n.text=a(l,{point:e,series:t},this.chart)})),i.text}},{key:"update",value:function(e){this.destroy(),this.init(this.chart,y(!0,this.options,e))}},{key:"updatePosition",value:function(e){var n=this.chart,t=this.distance,r=this.options,i=n.pointer,a=this.getLabel(),s=i.getChartPosition(),o=s.left,l=s.top,c=s.scaleX,d=s.scaleY;i=(r.positioner||this.getPosition).call(this,a.width,a.height,e);var p,h=(e.plotX||0)+n.plotLeft;e=(e.plotY||0)+n.plotTop,this.outside&&(r.positioner&&(i.x+=o-t,i.y+=l-t),p=(r.borderWidth||0)+2*t,this.renderer.setSize(a.width+p,a.height+p,!1),1===c&&1===d||(u(this.container,{transform:"scale(".concat(c,", ").concat(d,")")}),h*=c,e*=d),h+=o-i.x,e+=l-i.y),this.move(Math.round(i.x),Math.round(i.y||0),h,e)}}]),e}();return function(e){var n=[];e.compose=function(t){i.pushUnique(n,t)&&c(t,"afterInit",(function(){var n=this.chart;n.options.tooltip&&(n.tooltip=new e(n,n.options.tooltip))}))}}(S||(S={})),S})),n(t,"Core/Series/Point.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i){var a=n.animObject,s=t.defaultOptions,o=r.format,l=i.addEvent,c=i.defined,d=i.erase,u=i.extend,p=i.fireEvent,m=i.getNestedProperty,x=i.isArray,g=i.isFunction,v=i.isNumber,b=i.isObject,y=i.merge,w=i.objectEach,j=i.pick,k=i.syncTimeout,S=i.removeEvent,C=i.uniqueKey,N=function(){function n(){h(this,n),this.category=void 0,this.destroyed=!1,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 f(n,[{key:"animateBeforeDestroy",value:function(){var e=this,n={x:e.startXPos,opacity:0},t=e.getGraphicalProps();t.singular.forEach((function(t){e[t]=e[t].animate("dataLabel"===t?{x:e[t].startXPos,y:e[t].startYPos,opacity:0}:n)})),t.plural.forEach((function(n){e[n].forEach((function(n){n.element&&n.animate(u({x:e.startXPos},n.startYPos?{x:n.startXPos,y:n.startYPos}:{}))}))}))}},{key:"applyOptions",value:function(e,t){var r=this.series,i=r.options.pointValKey||r.pointValKey;return e=n.prototype.optionsToObject.call(this,e),u(this,e),this.options=this.options?u(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,i&&(this.y=n.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&"undefined"===typeof t&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),"undefined"===typeof this.x&&r?this.x="undefined"===typeof t?r.autoIncrement():t:v(e.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(e.x)),this}},{key:"destroy",value:function(){if(!this.destroyed){var e=this,n=e.series,t=n.chart;n=n.options.dataSorting;var r=t.hoverPoints,i=a(e.series.chart.renderer.globalAnimation),s=function(){for(var n in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(S(e),e.destroyElements()),e)delete e[n]};e.legendItem&&t.legend.destroyItem(e),r&&(e.setState(),d(r,e),r.length||(t.hoverPoints=null)),e===t.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),k(s,i.duration)):s(),t.pointCount--}this.destroyed=!0}},{key:"destroyElements",value:function(e){var n=this;(e=n.getGraphicalProps(e)).singular.forEach((function(e){n[e]=n[e].destroy()})),e.plural.forEach((function(e){n[e].forEach((function(e){e&&e.element&&e.destroy()})),delete n[e]}))}},{key:"firePointEvent",value:function(e,n,t){var r=this,i=this.series.options;(i.point.events[e]||r.options&&r.options.events&&r.options.events[e])&&r.importEvents(),"click"===e&&i.allowPointSelect&&(t=function(e){r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),p(r,e,n,t)}},{key:"getClassName",value:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}},{key:"getGraphicalProps",value:function(e){var n,t,r=this,i=[],a={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),t=i.length;t--;)n=i[t],r[n]&&a.singular.push(n);return["graphic","dataLabel","connector"].forEach((function(n){var t=n+"s";e[n]&&r[t]&&a.plural.push(t)})),a}},{key:"getLabelConfig",value: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}}},{key:"getNestedProperty",value:function(e){if(e)return 0===e.indexOf("custom.")?m(e,this.options):this[e]}},{key:"getZone",value:function(){var e=this.series,n=e.zones;e=e.zoneAxis||"y";var t,r=0;for(t=n[r];this[e]>=t.value;)t=n[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor,t}},{key:"hasNewShapeType",value:function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}},{key:"init",value:function(e,n,t){return this.series=e,this.applyOptions(n,t),this.id=c(this.id)?this.id:C(),this.resolveColor(),e.chart.pointCount++,p(this,"afterInit"),this}},{key:"isValid",value:function(){return null!==this.x&&v(this.y)}},{key:"optionsToObject",value:function(e){var t=this.series,r=t.options.keys,i=r||t.pointArrayMap||["y"],a=i.length,s={},o=0,l=0;if(v(e)||null===e)s[i[0]]=e;else if(x(e))for(!r&&e.length>a&&("string"===(t=typeof e[0])?s.name=e[0]:"number"===t&&(s.x=e[0]),o++);l1&&void 0!==arguments[1]?arguments[1]:this.plotY;if(!this.destroyed){var t=this.plotX,r=this.series,i=r.chart,a=r.xAxis,s=r.yAxis,o=0,l=0;if(v(t)&&v(n))return e&&(o=a?a.pos:i.plotLeft,l=s?s.pos:i.plotTop),i.inverted&&a&&s?[s.len-n+l,a.len-t+o]:[t+o,n+l]}}},{key:"resolveColor",value:function(){var e,n=this.series,t=n.chart.styledMode,r=n.chart.options.chart.colorCount;delete this.nonZonedColor,n.options.colorByPoint?(t||(e=(r=n.options.colors||n.chart.options.colors)[n.colorCounter],r=r.length),t=n.colorCounter,n.colorCounter++,n.colorCounter===r&&(n.colorCounter=0)):(t||(e=n.color),t=n.colorIndex),this.colorIndex=j(this.options.colorIndex,t),this.color=j(this.options.color,e)}},{key:"setNestedProperty",value:function(e,n,t){return t.split(".").reduce((function(e,t,r,i){return e[t]=i.length-1===r?n:b(e[t],!0)?e[t]:{},e[t]}),e),e}},{key:"shouldDraw",value:function(){return!this.isNull}},{key:"tooltipFormatter",value:function(e){var n=this.series,t=n.tooltipOptions,r=j(t.valueDecimals,""),i=t.valuePrefix||"",a=t.valueSuffix||"";return n.chart.styledMode&&(e=n.chart.tooltip.styledModeFormat(e)),(n.pointArrayMap||["y"]).forEach((function(n){n="{point."+n,(i||a)&&(e=e.replace(RegExp(n+"}","g"),i+n+"}"+a)),e=e.replace(RegExp(n+"}","g"),n+":,."+r+"f}")})),o(e,{point:this,series:this.series},n.chart)}},{key:"update",value:function(e,n,t,r){function i(){s.applyOptions(e);var r=l&&s.hasMockGraphic;r=null===s.y?!r:r,l&&r&&(s.graphic=l.destroy(),delete s.hasMockGraphic),b(e,!0)&&(l&&l.element&&e&&e.marker&&"undefined"!==typeof e.marker.symbol&&(s.graphic=l.destroy()),e&&e.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),a=s.index,o.updateParallelArrays(s,a),d.data[a]=b(d.data[a],!0)||b(e,!0)?s.options:j(e,d.data[a]),o.isDirty=o.isDirtyData=!0,!o.fixedBox&&o.hasCartesianSeries&&(c.isDirtyBox=!0),"point"===d.legendType&&(c.isDirtyLegend=!0),n&&c.redraw(t)}var a,s=this,o=s.series,l=s.graphic,c=o.chart,d=o.options;n=j(n,!0),!1===r?i():s.firePointEvent("update",{options:e},i)}},{key:"remove",value:function(e,n){this.series.removePoint(this.series.data.indexOf(this),e,n)}},{key:"select",value:function(e,n){var t=this,r=t.series,i=r.chart;this.selectedStaging=e=j(e,!t.selected),t.firePointEvent(e?"select":"unselect",{accumulate:n},(function(){t.selected=t.options.selected=e,r.options.data[r.data.indexOf(t)]=t.options,t.setState(e&&"select"),n||i.getSelectedPoints().forEach((function(e){var n=e.series;e.selected&&e!==t&&(e.selected=e.options.selected=!1,n.options.data[n.data.indexOf(e)]=e.options,e.setState(i.hoverPoints&&n.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))}))})),delete this.selectedStaging}},{key:"onMouseOver",value:function(e){var n=this.series.chart,t=n.pointer;e=e?t.normalize(e):t.getChartCoordinatesFromPoint(this,n.inverted),t.runPointActions(e,this)}},{key:"onMouseOut",value:function(){var e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach((function(e){e.setState()})),e.hoverPoints=e.hoverPoint=null}},{key:"importEvents",value:function(){if(!this.hasImportedEvents){var e=this,n=y(e.series.options.point,e.options).events;e.events=n,w(n,(function(n,t){g(n)&&l(e,t,n)})),this.hasImportedEvents=!0}}},{key:"setState",value:function(n,t){var r,i,a=this.series,o=this.state,l=a.options.states[n||"normal"]||{},c=s.plotOptions[a.type].marker&&a.options.marker,d=c&&!1===c.enabled,h=c&&c.states&&c.states[n||"normal"]||{},f=!1===h.enabled,m=this.marker||{},x=a.chart,g=c&&a.markerAttribs,b=a.halo,y=a.stateMarkerGraphic;if(!((n=n||"")===this.state&&!t||this.selected&&"select"!==n||!1===l.enabled||n&&(f||d&&!1===h.enabled)||n&&m.states&&m.states[n]&&!1===m.states[n].enabled)){if(this.state=n,g&&(r=a.markerAttribs(this,n)),this.graphic&&!this.hasMockGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),n&&this.graphic.addClass("highcharts-point-"+n),!x.styledMode){o=a.pointAttribs(this,n),i=j(x.options.chart.animation,l.animation);var w=o.opacity;a.options.inactiveOtherPoints&&v(w)&&((this.dataLabels||[]).forEach((function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&e.animate({opacity:w},i)})),this.connector&&this.connector.animate({opacity:w},i)),this.graphic.animate(o,i)}r&&this.graphic.animate(r,j(x.options.chart.animation,h.animation,c.animation)),y&&y.hide()}else n&&h&&(c=m.symbol||a.symbol,y&&y.currentSymbol!==c&&(y=y.destroy()),r&&(y?y[t?"animate":"attr"]({x:r.x,y:r.y}):c&&(a.stateMarkerGraphic=y=x.renderer.symbol(c,r.x,r.y,r.width,r.height).add(a.markerGroup),y.currentSymbol=c)),!x.styledMode&&y&&"inactive"!==this.state&&y.attr(a.pointAttribs(this,n))),y&&(y[n&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0));l=l.halo,r=(y=this.graphic||y)&&y.visibility||"inherit",l&&l.size&&y&&"hidden"!==r&&!this.isCluster?(b||(a.halo=b=x.renderer.path().add(y.parentGroup)),b.show()[t?"animate":"attr"]({d:this.haloPath(l.size)}),b.attr({class:"highcharts-halo highcharts-color-"+j(this.colorIndex,a.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),b.point=this,x.styledMode||b.attr(u({fill:this.color||a.color,"fill-opacity":l.opacity},e.filterUserAttributes(l.attributes||{})))):b&&b.point&&b.point.haloPath&&b.animate({d:b.point.haloPath(0)},null,b.hide),p(this,"afterSetState",{state:n})}}},{key:"haloPath",value:function(e){var n=this.pos();return n?this.series.chart.renderer.symbols.circle(Math.floor(n[0])-e,n[1]-e,2*e,2*e):[]}}]),n}();return N})),n(t,"Core/Pointer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=e.parse,i=n.charts,a=n.noop,s=t.addEvent,o=t.attr,l=t.css,c=t.defined,d=t.extend,u=t.find,p=t.fireEvent,m=t.isNumber,x=t.isObject,g=t.objectEach,v=t.offset,b=t.pick,y=t.splat,w=function(){function e(n,t){h(this,e),this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=n,this.hasDragged=!1,this.options=t,this.init(n,t)}return f(e,[{key:"applyInactiveState",value:function(e){var n,t=[];(e||[]).forEach((function(e){n=e.series,t.push(n),n.linkedParent&&t.push(n.linkedParent),n.linkedSeries&&(t=t.concat(n.linkedSeries)),n.navigatorSeries&&t.push(n.navigatorSeries)})),this.chart.series.forEach((function(e){-1===t.indexOf(e)?e.setState("inactive",!0):e.options.inactiveOtherPoints&&e.setAllPointsToState("inactive")}))}},{key:"destroy",value:function(){var t=this;this.eventsToUnbind.forEach((function(e){return e()})),this.eventsToUnbind=[],n.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),g(t,(function(e,n){t[n]=void 0}))}},{key:"getSelectionMarkerAttrs",value:function(e,n){var t=this,r={args:{chartX:e,chartY:n},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",r,(function(r){var i,a=t.chart,s=t.mouseDownX,o=void 0===s?0:s,l=t.mouseDownY,c=void 0===l?0:l,d=t.zoomHor,u=t.zoomVert;(r=r.attrs).x=a.plotLeft,r.y=a.plotTop,r.width=d?1:a.plotWidth,r.height=u?1:a.plotHeight,d&&(i=e-o,r.width=Math.abs(i),r.x=(0i+s&&(p=i+s),ha+o&&(h=a+o),this.hasDragged=Math.sqrt(Math.pow(l-p,2)+Math.pow(c-h,2)),10e.options.findNearestPointBy.indexOf("y");if(e=e.searchPoint(t,i),(i=x(e,!0)&&e.series)&&!(i=!x(r,!0))){i=r.distX-e.distX;var a=r.dist-e.dist,s=(e.series.group&&e.series.group.zIndex)-(r.series.group&&r.series.group.zIndex);i=0<(i=0!==i&&n?i:0!==a?a:0!==s?s:r.series.index>e.series.index?-1:1)}i&&(r=e)})),r}},{key:"getChartCoordinatesFromPoint",value:function(e,n){var t=e.series,r=t.xAxis;t=t.yAxis;var i=e.shapeArgs;if(r&&t){var a=b(e.clientX,e.plotX),s=e.plotY||0;return e.isNode&&i&&m(i.x)&&m(i.y)&&(a=i.x,s=i.y),n?{chartX:t.len+t.pos-s,chartY:r.len+r.pos-a}:{chartX:a+r.pos,chartY:s+t.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}}},{key:"getChartPosition",value:function(){if(this.chartPosition)return this.chartPosition;var e=this.chart.container,n=v(e);this.chartPosition={left:n.left,top:n.top,scaleX:1,scaleY:1};var t=e.offsetWidth;return e=e.offsetHeight,2m.max&&(t=m.max-b,w=!0),w?(k-=.8*(k-s[c][0]),"number"===typeof S&&(S-=.8*(S-s[c][1])),n()):s[c]=[k,S],f||(a[c]=y-h,a[p]=b),a=f?1/j:j,i[p]=b,i[c]=t,r[f?e?"scaleY":"scaleX":"scale"+d]=j,r["translate"+d]=a*h+(k-a*g)}},{key:"reset",value:function(e,n){var t=this.chart,r=t.hoverSeries,i=t.hoverPoint,a=t.hoverPoints,s=t.tooltip,o=s&&s.shared?a:i;e&&o&&y(o).forEach((function(n){n.series.isCartesian&&"undefined"===typeof n.plotX&&(e=!1)})),e?s&&o&&y(o).length&&(s.refresh(o),s.shared&&a?a.forEach((function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))})):i&&(i.setState(i.state,!0),t.axes.forEach((function(e){e.crosshair&&i.series[e.coll]===e&&e.drawCrosshair(null,i)})))):(i&&i.onMouseOut(),a&&a.forEach((function(e){e.setState()})),r&&r.onMouseOut(),s&&s.hide(n),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),t.axes.forEach((function(e){e.hideCrosshair()})),this.hoverX=t.hoverPoints=t.hoverPoint=null)}},{key:"runPointActions",value:function(n,t,r){var a=this.chart,o=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,l=!!o&&o.shared,c=t||a.hoverPoint,d=c&&c.series||a.hoverSeries;t=this.getHoverData(c,d,a.series,(!n||"touchmove"!==n.type)&&(!!t||d&&d.directTouch&&this.isDirectTouch),l,n),c=t.hoverPoint,d=t.hoverSeries;var p=t.hoverPoints;t=d&&d.tooltipOptions.followPointer&&!d.tooltipOptions.split;var h=l&&d&&!d.noSharedTooltip;if(c&&(r||c!==a.hoverPoint||o&&o.isHidden)){if((a.hoverPoints||[]).forEach((function(e){-1===p.indexOf(e)&&e.setState()})),a.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach((function(e){e.setState("hover")})),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!c.series)return;a.hoverPoints=p,a.hoverPoint=c,c.firePointEvent("mouseOver",void 0,(function(){o&&c&&o.refresh(h?p:c,n)}))}else t&&o&&!o.isHidden&&(r=o.getAnchor([{}],n),a.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=s(a.container.ownerDocument,"mousemove",(function(n){var t=i[e.hoverChartIndex];t&&t.pointer.onDocumentMouseMove(n)})),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach((function(e){var t,r=b((e.crosshair||{}).snap,!0);r&&((t=a.hoverPoint)&&t.series[e.coll]===e||(t=u(p,(function(n){return n.series&&n.series[e.coll]===e})))),t||!r?e.drawCrosshair(n,t):e.hideCrosshair()}))}},{key:"scaleGroups",value:function(e,n){var t=this.chart;t.series.forEach((function(r){var i=e||r.getPlotBox();r.group&&(r.xAxis&&r.xAxis.zoomEnabled||t.mapView)&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(n?t.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))})),t.clipRect.attr(n||t.clipBox)}},{key:"setDOMEvents",value:function(){var t=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(s(r,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(s(r,"mouseleave",this.onContainerMouseLeave.bind(this))),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=s(i,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&"BODY"!==a.tagName;)this.eventsToUnbind.push(s(a,"scroll",(function(){delete t.chartPosition}))),a=a.parentElement;n.hasTouch&&(this.eventsToUnbind.push(s(r,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(s(r,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=s(i,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}},{key:"setHoverChartIndex",value:function(){var t=this.chart,r=n.charts[b(e.hoverChartIndex,-1)];r&&r!==t&&r.pointer.onContainerMouseLeave({relatedTarget:t.container}),r&&r.mouseIsDown||(e.hoverChartIndex=t.index)}},{key:"touch",value:function(e,n){var t,r=this.chart;this.setHoverChartIndex(),1===e.touches.length?(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu?(n&&this.runPointActions(e),"touchmove"===e.type&&(t=!!(n=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(n[0].chartX-e.chartX,2)+Math.pow(n[0].chartY-e.chartY,2))),b(t,!0)&&this.pinch(e)):n&&this.reset()):2===e.touches.length&&this.pinch(e)}},{key:"touchSelect",value:function(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}},{key:"zoomOption",value:function(e){var n=this.chart,t=n.inverted,r=n.zooming.type||"";/touch/.test(e.type)&&(r=b(n.zooming.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=r=/y/.test(r),this.zoomHor=e&&!t||r&&t,this.zoomVert=r&&!t||e&&t,this.hasZoom=e||r}}]),e}();return function(e){var n=[],r=[];e.compose=function(n){t.pushUnique(r,n)&&s(n,"beforeRender",(function(){this.pointer=new e(this,this.options)}))},e.dissolve=function(){for(var e=0,t=n.length;ee-6&&a1.5*r?t.height:r))}},{key:"layoutItem",value:function(e){var n=this.options,t=this.padding,r="horizontal"===n.layout,i=e.itemHeight,a=this.itemMarginBottom,s=this.itemMarginTop,o=r?k(n.itemDistance,20):0,l=this.maxLegendWidth;n=n.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:e.itemWidth;var c=e.legendItem||{};r&&this.itemX-t+n>l&&(this.itemX=t,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=s+this.itemY+a,this.lastLineHeight=Math.max(i,this.lastLineHeight),c.x=this.itemX,c.y=this.itemY,r?this.itemX+=n:(this.itemY+=s+i+a,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-t-(e.checkbox?0:o):n)+t,this.offsetWidth)}},{key:"getAllItems",value:function(){var e=[];return this.chart.series.forEach((function(n){var t=n&&n.options;n&&k(t.showInLegend,!g(t.linkedTo)&&void 0,!0)&&(e=e.concat((n.legendItem||{}).labels||("point"===t.legendType?n.data:n)))})),y(this,"afterGetAllItems",{allItems:e}),e}},{key:"getAlignment",value:function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}},{key:"adjustMargins",value:function(e,n){var t=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(a,s){a.test(i)&&!g(e[s])&&(t[d[s]]=Math.max(t[d[s]],t.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*r[s%2?"x":"y"]+k(r.margin,12)+n[s]+(t.titleOffset[s]||0)))}))}},{key:"proximatePositions",value:function(){var e,n=this.chart,t=[],r="left"===this.options.align;this.allItems.forEach((function(e){var i,a,s=r;e.yAxis&&(e.xAxis.options.reversed&&(s=!s),e.points&&(i=b(s?e.points:e.points.slice(0).reverse(),(function(e){return w(e.plotY)}))),s=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,a=e.yAxis.top-n.plotTop,e.visible?(i=i?i.plotY:e.yAxis.height,i+=a-.3*s):i=a+e.yAxis.height,t.push({target:i,size:s,item:e}))}),this);var i,a=c(u(t,n.plotHeight));try{for(a.s();!(i=a.n()).done;){var s=i.value;e=s.item.legendItem||{},w(s.pos)&&(e.y=n.plotTop-n.spacing[0]+s.pos)}}catch(o){a.e(o)}finally{a.f()}}},{key:"render",value:function(){var e,n=this.chart,t=n.renderer,r=this.options,i=this.padding,a=this.getAllItems(),s=this.group,o=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=S(r.width,n.spacingBox.width-i);var l=n.spacingBox.width-2*i-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(l/=2),this.maxLegendWidth=this.widthOption||l,s||(this.group=s=t.g("legend").addClass(r.className||"").attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(s),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),C(a,(function(e,n){return(e.options&&e.options.legendIndex||0)-(n.options&&n.options.legendIndex||0)})),r.reversed&&a.reverse(),this.allItems=a,this.display=l=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+i,e=this.lastItemY+this.lastLineHeight+this.titleHeight,e=this.handleOverflow(e),e+=i,o||(this.box=o=t.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(s)),n.styledMode||o.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),00&&void 0!==arguments[0]?arguments[0]:this.chart.spacingBox,n=this.chart,t=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0l&&!1!==p.enabled?(this.clipHeight=n=Math.max(l-20-this.titleHeight-d,0),this.currentPage=k(this.currentPage,1),this.fullHeight=e,x.forEach((function(e,i){e=(r=e.legendItem||{}).y||0;var a=Math.round(r.label.getBBox().height),s=m.length;(!s||e-m[s-1]>n&&(t||e)!==m[s-1])&&(m.push(t||e),s++),r.pageIx=s-1,t&&((x[i-1].legendItem||{}).pageIx=s-1),i===x.length-1&&e+a-m[s-1]>n&&e>m[s-1]&&(m.push(e),r.pageIx=s),e!==t&&(t=e)})),y||(y=i.clipRect=s.clipRect(0,d-2,9999,0),i.contentGroup.clip(y)),g(n),b||(this.nav=b=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(b),v("upTracker").on("click",(function(){i.scroll(-1,h)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(b),this.down=s.symbol("triangle-down",0,0,f,f).add(b),v("downTracker").on("click",(function(){i.scroll(1,h)}))),i.scroll(0),e=l):b&&(g(),this.nav=b.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}},{key:"scroll",value:function(e,n){var t=this,r=this.chart,i=this.pages,a=i.length,l=this.clipHeight,c=this.options.navigation,d=this.pager,u=this.padding,p=this.currentPage+e;p>a&&(p=a),0=this.cropStart?i-this.cropStart:i),!r&&M(i)&&l[i]&&l[i].touched&&(i=void 0),i}},{key:"updateData",value:function(e,n){var t,r,i,a=this.options,s=a.dataSorting,o=this.points,l=[],c=this.requireSorting,d=e.length===o.length,u=!0;if(this.xIncrement=null,e.forEach((function(e,n){var r=C(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},u=r.x;r.id||M(u)?(-1===(r=this.findPointIndex(r,i))||"undefined"===typeof r?l.push(e):o[r]&&e!==a.data[r]?(o[r].update(e,!1,null,!1),o[r].touched=!0,c&&(i=r+1)):o[r]&&(o[r].touched=!0),(!d||n!==r||s&&s.enabled||this.hasDerivedData)&&(t=!0)):l.push(e)}),this),t)for(e=o.length;e--;)(r=o[e])&&!r.touched&&r.remove&&r.remove(!1,n);else!d||s&&s.enabled?u=!1:(e.forEach((function(e,n){e===o[n].y||o[n].destroyed||o[n].update(e,!1,null,!1)})),l.length=0);return o.forEach((function(e){e&&(e.touched=!1)})),!!u&&(l.forEach((function(e){this.addPoint(e,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)}},{key:"setData",value:function(e){var n,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=this,s=a.points,o=s&&s.length||0,l=a.options,c=a.chart,d=l.dataSorting,u=a.xAxis,p=l.turboThreshold,h=this.xData,f=this.yData,m=a.pointArrayMap;m=m&&m.length;var x,g=l.keys,v=0,b=1,y=null;if(!c.options.chart.allowMutatingData){l.data&&delete a.options.data,a.userOptions.data&&delete a.userOptions.data;var w=F(!0,e)}if(w=(e=w||e||[]).length,d&&d.enabled&&(e=this.sortData(e)),c.options.chart.allowMutatingData&&!1!==i&&w&&o&&!a.cropped&&!a.hasGroupedData&&a.visible&&!a.boosted&&(x=this.updateData(e,r)),!x){if(a.xIncrement=null,a.colorCounter=0,this.parallelArrays.forEach((function(e){a[e+"Data"].length=0})),p&&w>p)if(y=a.getFirstValidPoint(e),M(y))for(r=0;re?1:0})).forEach((function(e,n){e.x=n}),this),n.linkedSeries&&n.linkedSeries.forEach((function(n){var t=n.options,i=t.data;t.dataSorting&&t.dataSorting.enabled||!i||(i.forEach((function(t,a){i[a]=r(n,t),e[a]&&(i[a].x=e[a].x,i[a].index=a)})),n.setData(i,!1))})),e}},{key:"getProcessedData",value:function(e){var n,t=this,r=t.xAxis,i=t.options,a=i.cropThreshold,s=e||t.getExtremesFromAll||i.getExtremesFromAll,o=null===r||void 0===r?void 0:r.logarithmic,l=t.isCartesian,c=0;e=t.xData,i=t.yData;var d=!1,u=e.length;if(r){var p=r.getExtremes();n=p.min,p=p.max,d=!(!r.categories||r.names.length)}if(l&&t.sorted&&!s&&(!a||u>a||t.forceCrop))if(e[u-1]p)e=[],i=[];else if(t.yData&&(e[0]p)){var h=this.cropData(t.xData,t.yData,n,p);e=h.xData,i=h.yData,c=h.start,h=!0}return r=D([o?e.map(o.log2lin):e],(function(){return t.requireSorting&&!d&&T(15,!1,t.chart)})),{xData:e,yData:i,cropped:h,cropStart:c,closestPointRange:r}}},{key:"processData",value:function(e){var n=this.xAxis;if(this.isCartesian&&!this.isDirty&&!n.isDirty&&!this.yAxis.isDirty&&!e)return!1;e=this.getProcessedData(),this.cropped=e.cropped,this.cropStart=e.cropStart,this.processedXData=e.xData,this.processedYData=e.yData,this.closestPointRange=this.basePointRange=e.closestPointRange,L(this,"afterProcessData")}},{key:"cropData",value:function(e,n,t,r,i){var a,s=e.length,o=0,l=s;for(i=U(i,this.cropShoulder),a=0;a=t){o=Math.max(0,a-i);break}for(t=a;tr){l=t+i;break}return{xData:e.slice(o,l),yData:n.slice(o,l),start:o,end:l}}},{key:"generatePoints",value:function(){var e,n=this.options,t=this.processedData||n.data,r=this.processedXData,i=this.processedYData,a=this.pointClass,s=r.length,o=this.cropStart||0,l=this.hasGroupedData,c=n.keys,d=[];n=n.dataGrouping&&n.dataGrouping.groupAll?o:0;var u,p,h=this.data;if(!h&&!l){var f=[];f.length=t.length,h=this.data=f}for(c&&l&&(this.options.keys=!1),p=0;p=l&&(i[o-s]||h)<=c,f&&h)if(f=p.length)for(;f--;)M(p[f])&&(a[d++]=p[f]);else a[d++]=p}return e={activeYData:a,dataMin:j(a),dataMax:w(a)},L(this,"afterGetExtremes",{dataExtremes:e}),e}},{key:"applyExtremes",value:function(){var e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}},{key:"getFirstValidPoint",value:function(e){for(var n=e.length,t=0,r=null;null===r&&t=j&&(j=void 0),g.total=g.stackTotal=U(b.total),g.percentage=C(g.y)&&b.total?g.y/b.total*100:void 0,g.stackY=w,this.irregularWidths||b.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),g.yBottom=C(j)?k(s.translate(j,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,p));var _=void 0;M(w)&&void 0!==g.plotX&&(_=s.translate(w,!1,!0,!1,!0),_=M(_)?k(_,-1e5,1e5):void 0),g.plotY=_,g.isInside=this.isPointInside(g),g.clientX=d?S(r.translate(v,!1,!1,!1,!0,c)):h,g.negative=(g.y||0)<(u||0),g.category=U(i&&i[g.x],g.x),g.isNull||!1===g.visible||("undefined"!==typeof f&&(x=Math.min(x,Math.abs(h-f))),f=h),g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&a&&(g.isNew=!0)}this.closestPointRangePx=x,L(this,"afterTranslate")}},{key:"getValidPoints",value:function(e,n,t){var r=this.chart;return(e||this.points||[]).filter((function(e){var i=e.plotX,a=e.plotY;return!(!(t||!e.isNull&&M(a))||n&&!r.isInsidePlot(i,a,{inverted:r.inverted}))&&!1!==e.visible}))}},{key:"getClipBox",value:function(){var e=this.chart,n=this.xAxis,t=this.yAxis,r=F(e.clipBox);return n&&n.len!==e.plotSizeX&&(r.width=n.len),t&&t.len!==e.plotSizeY&&(r.height=t.len),r}},{key:"getSharedClipKey",value:function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}},{key:"setClip",value:function(){var e=this.chart,n=this.group,t=this.markerGroup,r=e.sharedClips,i=e.renderer,a=this.getClipBox(),s=this.getSharedClipKey(),o=r[s];o?o.animate(a):r[s]=o=i.clipRect(a),n&&n.clip(!1===this.options.clip?void 0:o),t&&t.clip()}},{key:"animate",value:function(e){var n=this.chart,t=this.group,r=this.markerGroup,i=n.inverted,a=u(this.options.animation),s=[this.getSharedClipKey(),a.duration,a.easing,a.defer].join(),o=n.sharedClips[s],l=n.sharedClips[s+"m"];if(e&&t)a=this.getClipBox(),o?o.attr("height",a.height):(a.width=0,i&&(a.x=n.plotHeight),o=n.renderer.clipRect(a),n.sharedClips[s]=o,l=n.renderer.clipRect({x:-99,y:-99,width:i?n.plotWidth+199:99,height:i?99:n.plotHeight+199}),n.sharedClips[s+"m"]=l),t.clip(o),r&&r.clip(l);else if(o&&!o.hasClass("highcharts-animating")){s=this.getClipBox();var c=a.step;r&&r.element.childNodes.length&&(a.step=function(e,n){c&&c.apply(n,arguments),"width"===n.prop&&l&&l.element&&l.attr(i?"height":"width",e+99)}),o.addClass("highcharts-animating").animate(s,a)}}},{key:"afterAnimate",value:function(){var e=this;this.setClip(),z(this.chart.sharedClips,(function(n,t,r){n&&!e.chart.container.querySelector('[clip-path="url(#'.concat(n.id,')"]'))&&(n.destroy(),delete r[t])})),this.finishedAnimating=!0,L(this,"afterAnimate")}},{key:"drawPoints",value:function(){var e,n,t,r,i,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,o=this.chart,l=o.styledMode,c=this.colorAxis,d=this.options.marker,u=this[this.specialGroup||"markerGroup"],p=this.xAxis,h=U(d.enabled,!(p&&!p.isRadial)||null,this.closestPointRangePx>=d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(e=0;er.max,u.resetZones&&0===n&&(n=void 0)})),this.clips=m):u.visible&&(x&&x.show(),g&&g.show())}},{key:"plotGroup",value:function(e,n,t,r,i){var a=this[e],s=!a;return t={visibility:t,zIndex:r||.1},"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(t.opacity=this.opacity),s&&(this[e]=a=this.chart.renderer.g().add(i)),a.addClass("highcharts-"+n+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(a.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),a.attr(t)[s?"attr":"animate"](this.getPlotBox(n)),a}},{key:"getPlotBox",value:function(e){var n=this.xAxis,t=this.yAxis,r=this.chart;return e=r.inverted&&!r.polar&&n&&!1!==this.invertible&&"series"===e,r.inverted&&(n=t,t=this.xAxis),{translateX:n?n.left:r.plotLeft,translateY:t?t.top:r.plotTop,rotation:e?90:0,rotationOriginX:e?(n.len-t.len)/2:0,rotationOriginY:e?(n.len+t.len)/2:0,scaleX:e?-1:1,scaleY:1}}},{key:"removeEvents",value:function(e){e||B(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(e){e()})),this.eventsToUnbind.length=0)}},{key:"render",value:function(){var e=this,n=e.chart,t=e.options,r=u(t.animation),i=e.visible?"inherit":"hidden",a=t.zIndex,s=e.hasRendered;n=n.seriesGroup;var o=e.finishedAnimating?0:r.duration;L(this,"render"),e.plotGroup("group","series",i,a,n),e.markerGroup=e.plotGroup("markerGroup","markers",i,a,n),!1!==t.clip&&e.setClip(),e.animate&&o&&e.animate(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&t.enableMouseTracking&&e.drawTracker(),e.animate&&o&&e.animate(),s||(o&&r.defer&&(o+=r.defer),e.animationTimeout=H((function(){e.afterAnimate()}),o||0)),e.isDirty=!1,e.hasRendered=!0,L(e,"afterRender")}},{key:"redraw",value:function(){var e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}},{key:"searchPoint",value:function(e,n){var t=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?t.len-e.chartY+t.pos:e.chartX-t.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},n,e)}},{key:"buildKDTree",value:function(e){function n(e,r,i){var a,s=e&&e.length;if(s)return a=t.kdAxisArray[r%i],e.sort((function(e,n){return e[a]-n[a]})),{point:e[s=Math.floor(s/2)],left:n(e.slice(0,s),r+1,i),right:n(e.slice(s+1),r+1,i)}}this.buildingKdTree=!0;var t=this,r=-1(d=n[d]-c[d])?"right":"left",t[h=0>d?"left":"right"]&&(u=(h=e(n,t[h],o+1,l))[s]f;)d--;this.updateParallelArrays(h,"splice",[d,0,0]),this.updateParallelArrays(h,d),l&&h.name&&(l[f]=h.name),u.splice(d,0,e),(c||this.processedData)&&(this.data.splice(d,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),t&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(h,"shift"),u.shift())),!1!==i&&L(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,n&&o.redraw(r)}},{key:"removePoint",value:function(e,n,t){var r=this,i=r.data,a=i[e],s=r.points,o=r.chart,l=function(){s&&s.length===i.length&&s.splice(e,1),i.splice(e,1),r.options.data.splice(e,1),r.updateParallelArrays(a||{series:r},"splice",[e,1]),a&&a.destroy(),r.isDirty=!0,r.isDirtyData=!0,n&&o.redraw()};p(t,o),n=U(n,!0),a?a.firePointEvent("remove",null,l):l()}},{key:"remove",value:function(e,n,t,r){function i(){a.destroy(r),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(r),U(e,!0)&&s.redraw(n)}var a=this,s=a.chart;!1!==t?L(a,"remove",null,i):i()}},{key:"update",value:function(e,n){e=N(e,this.userOptions),L(this,"update",{options:e});var t,r=this,i=r.chart,a=r.userOptions,s=r.initialType||r.type,o=i.options.plotOptions,l=y[s].prototype,d=r.finishedAnimating&&{animation:!1},u={},p=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],h=e.type||a.type||i.options.chart.type,f=!(this.hasDerivedData||h&&h!==this.type||"undefined"!==typeof e.pointStart||"undefined"!==typeof e.pointInterval||"undefined"!==typeof e.relativeXValue||e.joinBy||e.mapData||r.hasOptionChanged("dataGrouping")||r.hasOptionChanged("pointStart")||r.hasOptionChanged("pointInterval")||r.hasOptionChanged("pointIntervalUnit")||r.hasOptionChanged("keys"));if(h=h||s,f&&(p.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&p.push("area","graph"),r.parallelArrays.forEach((function(e){p.push(e+"Data")})),e.data&&(e.dataSorting&&E(r.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=F(a,d,{index:"undefined"===typeof a.index?r.index:a.index,pointStart:U(o&&o.series&&o.series.pointStart,a.pointStart,r.xData[0])},!f&&{data:r.options.data},e),f&&e.data&&(e.data=r.options.data),(p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p)).forEach((function(e){p[e]=r[e],delete r[e]})),o=!1,y[h]){if(o=h!==r.type,r.remove(!1,!1,!1,!0),o)if(Object.setPrototypeOf)Object.setPrototypeOf(r,y[h].prototype);else{for(t in d=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents,l)r[t]=void 0;E(r,y[h].prototype),d?r.hcEvents=d:delete r.hcEvents}}else T(17,!0,i,{missingModuleFor:h});if(p.forEach((function(e){r[e]=p[e]})),r.init(i,e),f&&this.points){if(!1===(e=r.options).visible)u.graphic=1,u.dataLabel=1;else if(!r._hasPointLabels){var m=e,x=m.marker,g=m.dataLabels;a=a.marker||{},!x||!1!==x.enabled&&a.symbol===x.symbol&&a.height===x.height&&a.width===x.width||(u.graphic=1),g&&!1===g.enabled&&(u.dataLabel=1)}var v,b=c(this.points);try{for(b.s();!(v=b.n()).done;){var w=v.value;w&&w.series&&(w.resolveColor(),Object.keys(u).length&&w.destroyElements(u),!1===e.showInLegend&&w.legendItem&&i.legend.destroyItem(w))}}catch(j){b.e(j)}finally{b.f()}}r.initialType=s,i.linkSeries(),o&&r.linkedSeries.length&&(r.isDirtyData=!0),L(this,"afterUpdate"),U(n,!0)&&i.redraw(!!f&&void 0)}},{key:"setName",value:function(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}},{key:"hasOptionChanged",value:function(e){var n=this.options[e],t=this.chart.options.plotOptions,r=this.userOptions[e];return r?n!==r:n!==U(t&&t[this.type]&&t[this.type][e],t&&t.series&&t.series[e],n)}},{key:"onMouseOver",value:function(){var e=this.chart,n=e.hoverSeries;e.pointer.setHoverChartIndex(),n&&n!==this&&n.onMouseOut(),this.options.events.mouseOver&&L(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}},{key:"onMouseOut",value:function(){var e=this.options,n=this.chart,t=n.tooltip,r=n.hoverPoint;n.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&L(this,"mouseOut"),!t||this.stickyTracking||t.shared&&!this.noSharedTooltip||t.hide(),n.series.forEach((function(e){e.setState("",!0)}))}},{key:"setState",value:function(e,n){var t=this,r=t.options,i=t.graph,a=r.inactiveOtherPoints,s=r.states,o=U(s[e||"normal"]&&s[e||"normal"].animation,t.chart.options.chart.animation),l=r.lineWidth,c=0,d=r.opacity;if(e=e||"",t.state!==e&&([t.group,t.markerGroup,t.dataLabelsGroup].forEach((function(n){n&&(t.state&&n.removeClass("highcharts-series-"+t.state),e&&n.addClass("highcharts-series-"+e))})),t.state=e,!t.chart.styledMode)){if(s[e]&&!1===s[e].enabled)return;if(e&&(l=s[e].lineWidth||l+(s[e].lineWidthPlus||0),d=U(s[e].opacity,d)),i&&!i.dashstyle&&M(l))for(r={"stroke-width":l},i.animate(r,o);t["zone-graph-"+c];)t["zone-graph-"+c].animate(r,o),c+=1;a||[t.group,t.markerGroup,t.dataLabelsGroup,t.labelBySeries].forEach((function(e){e&&e.animate({opacity:d},o)}))}n&&a&&t.points&&t.setAllPointsToState(e||void 0)}},{key:"setAllPointsToState",value:function(e){this.points.forEach((function(n){n.setState&&n.setState(e)}))}},{key:"setVisible",value:function(e,n){var t=this,r=t.chart,i=r.options.chart.ignoreHiddenSeries,a=t.visible,s=(t.visible=e=t.options.visible=t.userOptions.visible="undefined"===typeof e?!a:e)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(e){t[e]&&t[e][s]()})),r.hoverSeries!==t&&(r.hoverPoint&&r.hoverPoint.series)!==t||t.onMouseOut(),t.legendItem&&r.legend.colorizeItem(t,e),t.isDirty=!0,t.options.stacking&&r.series.forEach((function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)})),t.linkedSeries.forEach((function(n){n.setVisible(e,!1)})),i&&(r.isDirtyBox=!0),L(t,s),!1!==n&&r.redraw()}},{key:"show",value:function(){this.setVisible(!0)}},{key:"hide",value:function(){this.setVisible(!1)}},{key:"select",value:function(e){this.selected=e=this.options.selected="undefined"===typeof e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),L(this,e?"select":"unselect")}},{key:"shouldShowTooltip",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.series=this,t.visiblePlotOnly=!0,this.chart.isInsidePlot(e,n,t)}},{key:"drawLegendSymbol",value:function(e,n){var t;null===(t=i[this.options.legendSymbol||"rectangle"])||void 0===t||t.call(this,e,n)}}]),e}();return V.defaultOptions=s,V.types=o.seriesTypes,V.registerType=o.registerSeriesType,E(V.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:a,requireSorting:!0,sorted:!0}),o.series=V,V})),n(t,"Core/Chart/Chart.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Time.js"],t["Core/Utilities.js"],t["Core/Renderer/HTML/AST.js"]],(function(e,n,t,r,i,a,s,o,l,d,u,p,m){var x=e.animate,g=e.animObject,v=e.setAnimation,b=t.defaultOptions,y=t.defaultTime,w=r.numberFormat,j=i.registerEventOptions,k=a.charts,S=a.doc,C=a.marginNames,N=a.svg,_=a.win,T=l.seriesTypes,E=p.addEvent,A=p.attr,L=p.createElement,D=p.css,O=p.defined,R=p.diffObjects,P=p.discardElement,M=p.erase,I=p.error,F=p.extend,z=p.find,U=p.fireEvent,B=p.getStyle,W=p.isArray,H=p.isNumber,V=p.isObject,G=p.isString,X=p.merge,q=p.objectEach,K=p.pick,Y=p.pInt,J=p.relativeLength,Z=p.removeEvent,$=p.splat,Q=p.syncTimeout,ee=p.uniqueKey,ne=function(){function e(n,t,r){h(this,e),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.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.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(n,t,r)}return f(e,[{key:"getArgs",value:function(e,n,t){G(e)||e.nodeName?(this.renderTo=e,this.init(n,t)):this.init(e,n)}},{key:"setZoomOptions",value:function(){var e=this.options.chart,n=e.zooming;this.zooming=Object.assign(Object.assign({},n),{type:K(e.zoomType,n.type),key:K(e.zoomKey,n.key),pinchType:K(e.pinchType,n.pinchType),singleTouch:K(e.zoomBySingleTouch,n.singleTouch,!1),resetButton:X(n.resetButton,e.resetZoomButton)})}},{key:"init",value:function(e,n){U(this,"init",{args:arguments},(function(){var t=X(b,e),r=t.chart;this.userOptions=F({},e),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=n,this.isResizing=0,this.options=t,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new u(e.time):a.time,this.numberFormatter=r.numberFormatter||w,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=k.length,k.push(this),a.chartCount++,j(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),U(this,"afterInit"),this.firstRender()}))}},{key:"initSeries",value:function(e){var n=this.options.chart;n=e.type||n.type;var t=T[n];return t||I(17,!0,this,{missingModuleFor:n}),"function"===typeof(n=new t).init&&n.init(this,e),n}},{key:"setSeriesData",value:function(){this.getSeriesOrderByLinks().forEach((function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)}))}},{key:"getSeriesOrderByLinks",value:function(){return this.series.concat().sort((function(e,n){return e.linkedSeries.length||n.linkedSeries.length?n.linkedSeries.length-e.linkedSeries.length:0}))}},{key:"orderItems",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=this[e],r=this.options[e]=$(this.options[e]).slice();if(e=this.userOptions[e]=this.userOptions[e]?$(this.userOptions[e]).slice():[],this.hasRendered&&(r.splice(n),e.splice(n)),t)for(var i=n,a=t.length;i2&&void 0!==arguments[2]?arguments[2]:{},i=this.inverted,a=this.plotBox,s=this.plotLeft,o=this.plotTop,l=this.scrollablePlotBox,c=0,d=0;r.visiblePlotOnly&&this.scrollingContainer&&(c=(t=this.scrollingContainer).scrollLeft,d=t.scrollTop);var u=r.series,p=r.visiblePlotOnly&&l||a,h=r.inverted?n:e;if(e={x:h,y:n=r.inverted?e:n,isInsidePlot:!0,options:r},!r.ignoreX){var f=u&&(i&&!this.polar?u.yAxis:u.xAxis)||{pos:s,len:1/0};(h=r.paneCoordinates?f.pos+h:s+h)>=Math.max(c+s,f.pos)&&h<=Math.min(c+s+p.width,f.pos+f.len)||(e.isInsidePlot=!1)}return!r.ignoreY&&e.isInsidePlot&&(c=!i&&r.axis&&!r.axis.isXAxis&&r.axis||u&&(i?u.xAxis:u.yAxis)||{pos:o,len:1/0},(r=r.paneCoordinates?c.pos+n:o+n)>=Math.max(d+o,c.pos)&&r<=Math.min(d+o+p.height,c.pos+c.len)||(e.isInsidePlot=!1)),U(this,"afterIsInsidePlot",e),e.isInsidePlot}},{key:"redraw",value:function(e){U(this,"beforeRedraw");var n,t,r,i=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,s=this.pointer,o=this.legend,l=this.userOptions.legend,c=this.renderer,d=c.isHidden(),u=[],p=this.isDirtyBox,h=this.isDirtyLegend;for(c.rootFontSize=c.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),e=a.length;e--;)if(((r=a[e]).options.stacking||r.options.centerInCategory)&&(t=!0,r.isDirty)){n=!0;break}if(n)for(e=a.length;e--;)(r=a[e]).options.stacking&&(r.isDirty=!0);a.forEach((function(e){e.isDirty&&("point"===e.options.legendType?("function"===typeof e.updateTotals&&e.updateTotals(),h=!0):l&&(l.labelFormatter||l.labelFormat)&&(h=!0)),e.isDirtyData&&U(e,"updatedData")})),h&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),t&&this.getStacks(),i.forEach((function(e){e.updateNames(),e.setScale()})),this.getMargins(),i.forEach((function(e){e.isDirty&&(p=!0)})),i.forEach((function(e){var n=e.min+","+e.max;e.extKey!==n&&(e.extKey=n,u.push((function(){U(e,"afterSetExtremes",F(e.eventArgs,e.getExtremes())),delete e.eventArgs}))),(p||t)&&e.redraw()})),p&&this.drawChartBox(),U(this,"predraw"),a.forEach((function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1})),s&&s.reset(!0),c.draw(),U(this,"redraw"),U(this,"render"),d&&this.temporaryDisplay(!0),u.forEach((function(e){e.call()}))}},{key:"get",value:function(e){function n(n){return n.id===e||n.options&&n.options.id===e}for(var t=this.series,r=z(this.axes,n)||z(this.series,n),i=0;!r&&i0&&void 0!==arguments[0])||arguments[0],n=[0,0,0],t=this.renderer,r=this.spacingBox;["title","subtitle","caption"].forEach((function(e){var i=this[e],a=this.options[e],s=a.verticalAlign||"top";if(e="title"===e?"top"===s?-3:0:"top"===s?n[0]+2:0,i){i.css({width:(a.width||r.width+(a.widthAdjust||0))+"px"});var o=t.fontMetrics(i).b,l=Math.round(i.getBBox(a.useHTML).height);i.align(F({y:"bottom"===s?o:e+o,height:l},a),!1,"spacingBox"),a.floating||("top"===s?n[0]=Math.ceil(n[0]+l):"bottom"===s&&(n[2]=Math.ceil(n[2]+l)))}}),this),n[0]&&"top"===(this.options.title.verticalAlign||"top")&&(n[0]+=this.options.title.margin),n[2]&&"bottom"===this.options.caption.verticalAlign&&(n[2]+=this.options.caption.margin);var i=!this.titleOffset||this.titleOffset.join(",")!==n.join(",");this.titleOffset=n,U(this,"afterLayOutTitles"),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}},{key:"getContainerBox",value:function(){return{width:B(this.renderTo,"width",!0)||0,height:B(this.renderTo,"height",!0)||0}}},{key:"getChartSize",value:function(){var e=this.options.chart,n=e.width;e=e.height;var t=this.getContainerBox();this.chartWidth=Math.max(0,n||t.width||600),this.chartHeight=Math.max(0,J(e,this.chartWidth)||(1t.pointCount))}},{key:"pan",value:function(e,n){var t=this,r=t.hoverPoints;n="object"===typeof n?n:{enabled:n,type:"x"};var i=t.options.chart;i&&i.panning&&(i.panning=n);var a,s=n.type;U(this,"pan",{originalEvent:e},(function(){r&&r.forEach((function(e){e.setState()}));var n=t.xAxis;"xy"===s?n=n.concat(t.yAxis):"y"===s&&(n=t.yAxis);var i={};n.forEach((function(n){if(n.options.panningEnabled&&!n.options.isInternal){var r=n.horiz,o=e[r?"chartX":"chartY"],l=t[r=r?"mouseDownX":"mouseDownY"],c=n.minPointOffset||0,d=n.reversed&&!t.inverted||!n.reversed&&t.inverted?-1:1,u=n.getExtremes(),p=n.toValue(l-o,!0)+c*d,h=n.toValue(l+n.len-o,!0)-(c*d||n.isXAxis&&n.pointRangePadding||0),f=h=d&&p<=h&&(n.setExtremes(l,p,!1,!1,{trigger:"pan"}),!t.resetZoomButton&&l!==d&&p!==h&&s.match("y")&&(t.showResetZoom(),n.displayBtn=!1),a=!0),i[r]=o)}})),q(i,(function(e,n){t[n]=e})),a&&t.redraw(!1),D(t.container,{cursor:"move"})}))}}],[{key:"chart",value:function(n,t,r){return new e(n,t,r)}}]),e}();return F(ne.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ne.prototype.addAxis,[!0]],yAxis:[ne.prototype.addAxis,[!1]],series:[ne.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),ne})),n(t,"Extensions/ScrollablePlotArea.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/Series.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i,a){var s=e.stop,o=a.addEvent,l=a.createElement,c=a.defined,d=a.merge,u=a.pick;o(t,"afterSetChartSize",(function(e){var t,r=this.options.chart.scrollablePlotArea,i=r&&r.minWidth;r=r&&r.minHeight,this.renderer.forExport||(i?(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i,t={1:{name:"right",value:i}}):r&&(this.scrollablePixelsY=i=Math.max(0,r-this.chartHeight),c(i)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,t={2:{name:"bottom",value:i}})),t&&!e.skipAxes&&this.axes.forEach((function(e){t[e.side]?e.getPlotLinePath=function(){var r,i=t[e.side].name,a=this[i];return this[i]=a-t[e.side].value,r=n.prototype.getPlotLinePath.apply(this,arguments),this[i]=a,r}:(e.setAxisSize(),e.setAxisTranslation())})))})),o(t,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),t.prototype.setUpScrolling=function(){var e,n=this,t={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(t.overflowX="auto"),this.scrollablePixelsY&&(t.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},t,this.scrollingParent),o(this.scrollingContainer,"scroll",(function(){n.pointer&&(delete n.pointer.chartPosition,n.hoverPoint&&(e=n.hoverPoint),n.pointer.runPointActions(void 0,e,!0))})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},t.prototype.moveFixedElements=function(){var e,n=this.container,t=this.fixedRenderer,r=".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?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis"),e&&r.push("".concat(e,":not(.highcharts-radial-axis)"),"".concat(e,"-labels:not(.highcharts-radial-axis-labels)")),r.forEach((function(e){[].forEach.call(n.querySelectorAll(e),(function(e){(e.namespaceURI===t.SVG_NS?t.box:t.box.parentNode).appendChild(e),e.style.pointerEvents="auto"}))}))},t.prototype.applyFixed=function(){var e=!this.fixedDiv,n=this.options.chart,t=n.scrollablePlotArea,r=i.getRendererType();e?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(n.style&&n.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=n=new r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=n.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":u(t.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),o(this,"afterShowResetZoom",this.moveFixedElements),o(this,"afterApplyDrilldown",this.moveFixedElements),o(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||e)&&(this.scrollableDirty=!1,this.moveFixedElements()),n=this.chartWidth+(this.scrollablePixelsX||0),r=this.chartHeight+(this.scrollablePixelsY||0),s(this.container),this.container.style.width=n+"px",this.container.style.height=r+"px",this.renderer.boxWrapper.attr({width:n,height:r,viewBox:[0,0,n,r].join(" ")}),this.chartBackground.attr({width:n,height:r}),this.scrollingContainer.style.height=this.chartHeight+"px",e&&(t.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*t.scrollPositionX),t.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*t.scrollPositionY)),r=this.axisOffset,e=this.plotTop-r[0]-1,t=this.plotLeft-r[3]-1,n=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var a=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),c=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);e=this.scrollablePixelsX?[["M",0,e],["L",this.plotLeft-1,e],["L",this.plotLeft-1,n],["L",0,n],["Z"],["M",a,e],["L",this.chartWidth,e],["L",this.chartWidth,n],["L",a,n],["Z"]]:this.scrollablePixelsY?[["M",t,0],["L",t,this.plotTop-1],["L",r,this.plotTop-1],["L",r,0],["Z"],["M",t,c],["L",t,this.chartHeight],["L",r,this.chartHeight],["L",r,c],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:e})},o(n,"afterInit",(function(){this.chart.scrollableDirty=!0})),o(r,"show",(function(){this.chart.scrollableDirty=!0}))})),n(t,"Core/Axis/Stacking/StackItem.js",[t["Core/Templating.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=e.format,i=n.series,a=t.destroyObjectProperties,s=t.fireEvent,o=t.isNumber,l=t.pick,c=function(){function e(n,t,r,i,a){h(this,e);var s=n.chart.inverted,o=n.reversed;this.axis=n,n=this.isNegative=!!r!==!!o,this.options=t=t||{},this.x=i,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=a,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(s?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(s?"middle":n?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(s?n?"right":"left":"center")}return f(e,[{key:"destroy",value:function(){a(this,this.axis)}},{key:"render",value:function(e){var n=this.axis.chart,t=this.options,i=t.format;i=i?r(i,this,n):t.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=n.renderer.label(i,null,void 0,t.shape,void 0,void 0,t.useHTML,!1,"stack-labels"),i={r:t.borderRadius||0,text:i,padding:l(t.padding,5),visibility:"hidden"},n.styledMode||(i.fill=t.backgroundColor,i.stroke=t.borderColor,i["stroke-width"]=t.borderWidth,this.label.css(t.style||{})),this.label.attr(i),this.label.added||this.label.add(e)),this.label.labelrank=n.plotSizeY,s(this,"afterRender")}},{key:"setOffset",value:function(e,n,t,r,a,c){var d=this.alignOptions,u=this.axis,p=this.label,h=this.options,f=this.textAlign,m=u.chart;t=this.getStackBox({xOffset:e,width:n,boxBottom:t,boxTop:r,defaultX:a,xAxis:c});var x=d.verticalAlign;if(p&&t){r=p.getBBox(),a=p.padding,c="justify"===l(h.overflow,"justify"),d.x=h.x||0,d.y=h.y||0;var g=this.adjustStackPosition({labelBox:r,verticalAlign:x,textAlign:f}),v=g.x,b=g.y;t.x-=v,t.y-=b,p.align(d,!1,t),(x=m.isInsidePlot(p.alignAttr.x+d.x+v,p.alignAttr.y+d.y+b))||(c=!1),c&&i.prototype.justifyDataLabel.call(u,p,d,p.alignAttr,r,t),p.attr({x:p.alignAttr.x,y:p.alignAttr.y,rotation:h.rotation,rotationOriginX:r.width/2,rotationOriginY:r.height/2}),l(!c&&h.crop,!0)&&(x=o(p.x)&&o(p.y)&&m.isInsidePlot(p.x-a+p.width,p.y)&&m.isInsidePlot(p.x+a,p.y)),p[x?"show":"hide"]()}s(this,"afterSetOffset",{xOffset:e,width:n})}},{key:"adjustStackPosition",value:function(e){var n=e.labelBox,t=e.verticalAlign,r=e.textAlign,i={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:n.width/2+n.width/2*i[r],y:n.height/2*i[t]}}},{key:"getStackBox",value:function(e){var n=this.axis,t=n.chart,r=e,i=r.boxTop,a=r.defaultX,s=r.xOffset,c=r.width,d=r.boxBottom,u=n.stacking.usePercentage?100:l(i,this.total,0);u=n.toPixels(u),e=e.xAxis||t.xAxis[0];var p=l(a,e.translate(this.x))+s;n=n.toPixels(d||o(n.min)&&n.logarithmic&&n.logarithmic.lin2log(n.min)||0),n=Math.abs(u-n);var h=this.isNegative;return t.inverted?{x:(h?u:u-n)-t.plotLeft,y:e.height-p-c,width:n,height:c}:{x:p+e.transB-t.plotLeft,y:(h?u-n:u)-t.plotTop,width:c,height:n}}}]),e}();return c})),n(t,"Core/Axis/Stacking/StackingAxis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i){function a(){var e=this,n=e.inverted;e.yAxis.forEach((function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)})),e.series.forEach((function(t){var r=t.xAxis&&t.xAxis.options||{};!t.options.stacking||!0!==t.visible&&!1!==e.options.chart.ignoreHiddenSeries||(t.stackKey=[t.type,N(t.options.stack,""),n?r.top:r.left,n?r.height:r.width].join())}))}function s(){var e=this.stacking;if(e){var n=e.stacks;C(n,(function(e,t){w(e),n[t]=null})),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function o(){"yAxis"!==this.coll||this.stacking||(this.stacking=new _(this))}function l(e,n,t,r){return!y(e)||e.x!==n||r&&e.stackKey!==r?e={x:n,index:0,key:r,stackKey:r}:e.index++,e.key=[t,n,e.index].join(),e}function c(){var e,n=this,t=n.stackKey,r=n.yAxis.stacking.stacks,i=n.processedXData,a=n[n.options.stacking+"Stacker"];a&&[t,"-"+t].forEach((function(t){for(var s,o=i.length;o--;){var l=i[o];e=n.getStackIndicator(e,l,n.index,t),(s=(l=r[t]&&r[t][l])&&l.points[e.key])&&a.call(n,s,l,o)}}))}function d(e,n,t){n=n.total?100/n.total:0,e[0]=b(e[0]*n),e[1]=b(e[1]*n),this.stackedYData[t]=e[1]}function u(){var e=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1a&&n.shadow)),o&&(o.startX=t.xMap,o.isArea=t.isArea)}))}},{key:"getGraphPath",value:function(e,n,t){var i,a=this,s=a.options,o=[],l=[],c=s.step,d=(e=e||a.points).reversed;return d&&e.reverse(),(c={right:1,center:2}[c]||c&&3)&&d&&(c=4-c),(e=this.getValidPoints(e,!1,!(s.connectNulls&&!n&&!t))).forEach((function(d,u){var p=d.plotX,h=d.plotY,f=e[u-1],m=d.isNull||"number"!==typeof h;(d.leftCliff||f&&f.rightCliff)&&!t&&(i=!0),m&&!r(n)&&0e&&a>l?s=2*l-(a=Math.max(e,l)):at&&s>l?a=2*l-(s=Math.max(t,l)):s=Math.abs(n)&&.5e.closestPointRange*e.xAxis.transA;r=e.borderWidth=S(t.borderWidth,r?0:1);var a=e.xAxis,s=e.yAxis,o=t.threshold,l=S(t.minPointLength,5),c=e.getColumnMetrics(),d=c.width,u=e.pointXOffset=c.offset,p=e.dataMin,h=e.dataMax,f=e.barW=Math.max(d,1+2*r),m=e.translatedThreshold=s.getThreshold(o);n.inverted&&(m-=.5),t.pointPadding&&(f=Math.ceil(f)),i.prototype.translate.apply(e),e.points.forEach((function(r){var i=S(r.yBottom,m),x=999+Math.abs(i),b=r.plotX||0;x=g(r.plotY,-x,s.len+x);var y=Math.min(x,i),w=Math.max(x,i)-y,k=d,C=b+u,N=f;l&&Math.abs(w)l?i-l:m-(b?l:0)),v(r.options.pointWidth)&&(k=N=Math.ceil(r.options.pointWidth),C-=Math.round((k-d)/2)),t.centerInCategory&&(C=e.adjustForMissingColumns(C,k,r,c)),r.barX=C,r.pointWidth=k,r.tooltipPos=n.inverted?[g(s.len+s.pos-n.plotLeft-x,s.pos-n.plotLeft,s.len+s.pos-n.plotLeft),a.len+a.pos-n.plotTop-C-N/2,w]:[a.left-n.plotLeft+C+N/2,g(x+s.pos-n.plotTop,s.pos-n.plotTop,s.len+s.pos-n.plotTop),w],r.shapeType=e.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=e.crispCol(C,r.isNull?m:y,N,r.isNull?0:w)})),y(this,"afterColumnTranslate")}},{key:"drawGraph",value:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}},{key:"pointAttribs",value:function(e,n){var t,r=this.options,i=this.pointAttrToOptions||{},a=i.stroke||"borderColor",s=i["stroke-width"]||"borderWidth",o=e&&e.color||this.color,l=e&&e[a]||r[a]||o;i=e&&e.options.dashStyle||r.dashStyle;var c=e&&e[s]||r[s]||this[s]||0,u=S(e&&e.opacity,r.opacity,1);return e&&this.zones.length&&(t=e.getZone(),o=e.options.color||t&&(t.color||e.nonZonedColor)||this.color,t&&(l=t.borderColor||l,i=t.dashStyle||i,c=t.borderWidth||c)),n&&e&&(n=(e=k(r.states[n],e.options.states&&e.options.states[n]||{})).brightness,o=e.color||"undefined"!==typeof n&&d(o).brighten(e.brightness).get()||o,l=e[a]||l,c=e[s]||c,i=e.dashStyle||i,u=S(e.opacity,u)),a={fill:o,stroke:l,"stroke-width":c,opacity:u},i&&(a.dashstyle=i),a}},{key:"drawPoints",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,t=this,r=this.chart,i=t.options,a=r.renderer,s=i.animationLimit||250;n.forEach((function(n){var o=n.graphic,l=!!o,c=o&&r.pointCount0&&void 0!==arguments[0]?arguments[0]:this.points,t=this,r=t.chart,i=r.pointer,a=function(e){var n=i.getPointFromEvent(e);"undefined"!==typeof n&&t.options.enableMouseTracking&&(i.isDirectTouch=!0,n.onMouseOver(e))};n.forEach((function(n){e=w(n.dataLabels)?n.dataLabels:n.dataLabel?[n.dataLabel]:[],n.graphic&&(n.graphic.element.point=n),e.forEach((function(e){e.div?e.div.point=n:e.element.point=n}))})),t._hasTracking||(t.trackerGroups.forEach((function(e){t[e]&&(t[e].addClass("highcharts-tracker").on("mouseover",a).on("mouseout",(function(e){i.onTrackerMouseOut(e)})),m&&t[e].on("touchstart",a),!r.styledMode&&t.options.cursor&&t[e].css({cursor:t.options.cursor}))})),t._hasTracking=!0),y(this,"afterDrawTracker")}},{key:"remove",value:function(){var e=this,n=e.chart;n.hasRendered&&n.series.forEach((function(n){n.type===e.type&&(n.isDirty=!0)})),i.prototype.remove.apply(e,arguments)}}]),t}(i);return N.defaultOptions=k(i.defaultOptions,t),b(N.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("column",N),N})),n(t,"Core/Series/DataLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,n,t){var r,i=e.getDeferredAnimation,a=n.format,s=t.defined,o=t.extend,l=t.fireEvent,c=t.isArray,d=t.isString,u=t.merge,p=t.objectEach,h=t.pick,f=t.splat;return function(e){function n(e,n,t,r,i){var a=this.chart,l=this.isCartesian&&a.inverted,c=this.enabledDataSorting,d=e.plotX,u=e.plotY,p=t.rotation,f=t.align;u=s(d)&&s(u)&&a.isInsidePlot(d,Math.round(u),{inverted:l,paneCoordinates:!0,series:this});var m="justify"===h(t.overflow,c?"none":"justify");if(l=this.visible&&!1!==e.visible&&s(d)&&(e.series.forceDL||c&&!m||u||h(t.inside,!!this.options.stacking)&&r&&a.isInsidePlot(d,l?r.x+1:r.y+r.height-1,{inverted:l,paneCoordinates:!0,series:this})),d=e.pos(),l&&d){p&&n.attr({align:f}),f=n.getBBox(!0);var x=[0,0],g=a.renderer.fontMetrics(n).b;if(r=o({x:d[0],y:Math.round(d[1]),width:0,height:0},r),o(t,{width:f.width,height:f.height}),p?(m=!1,x=a.renderer.rotCorr(g,p),g={x:r.x+(t.x||0)+r.width/2+x.x,y:r.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*r.height},x=[f.x-Number(n.attr("x")),f.y-Number(n.attr("y"))],c&&this.xAxis&&!m&&this.setDataLabelStartPos(e,n,i,u,g),n[i?"attr":"animate"](g)):(c&&this.xAxis&&!m&&this.setDataLabelStartPos(e,n,i,u,r),n.align(t,void 0,r),g=n.alignAttr),m&&0<=r.height)this.justifyDataLabel(n,t,g,f,r,i);else if(h(t.crop,!0)){var v=g,b=v.x,y=v.y;b+=x[0],y+=x[1],l=a.isInsidePlot(b,y,{paneCoordinates:!0,series:this})&&a.isInsidePlot(b+f.width,y+f.height,{paneCoordinates:!0,series:this})}t.shape&&!p&&n[i?"attr":"animate"]({anchorX:d[0],anchorY:d[1]})}i&&c&&(n.placed=!1),l||c&&!m?n.show():(n.hide(),n.placed=!1)}function r(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function m(e){var n=this.hasRendered||0,t=this.initDataLabelsGroup().attr({opacity:+n});return!n&&t&&(this.visible&&t.show(),this.options.animation?t.animate({opacity:1},e):t.attr({opacity:1})),t}function x(){var e,n,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,o=this,u=o.chart,m=o.options,x=u.renderer,g=u.options.chart,b=g.backgroundColor,y=g.plotBackgroundColor,w=u.options.plotOptions,j=x.getContrast(d(y)&&y||d(b)&&b||"#000000"),k=m.dataLabels,S=f(k)[0],C=S.animation;S=S.defer?i(u,C,o):{defer:0,duration:0},k=v(v(null===(e=null===w||void 0===w?void 0:w.series)||void 0===e?void 0:e.dataLabels,null===(n=null===w||void 0===w?void 0:w[o.type])||void 0===n?void 0:n.dataLabels),k),l(this,"drawDataLabels"),(c(k)||k.enabled||o._hasPointLabels)&&(t=this.initDataLabels(S),r.forEach((function(e){var n,r=e.dataLabels||[];for(f(v(k,e.dlOptions||(null===(n=e.options)||void 0===n?void 0:n.dataLabels))).forEach((function(n,i){var l,c=n.enabled&&(!e.isNull||e.dataLabelOnNull)&&function(e,n){var t=n.filter;return!t||(n=t.operator,e=e[t.property],t=t.value,">"===n&&e>t||"<"===n&&e="===n&&e>=t||"<="===n&&e<=t||"=="===n&&e==t||"==="===n&&e===t)}(e,n),f=e.connectors?e.connectors[i]:e.connector,g=n.style||{},v={},b=r[i],y=!b,w=h(n.distance,e.labelDistance);if(c){var k=h(n[e.formatPrefix+"Format"],n.format),S=e.getLabelConfig();if(S=s(k)?a(k,S,u):(n[e.formatPrefix+"Formatter"]||n.formatter).call(S,n),k=n.rotation,u.styledMode||(g.color=h(n.color,g.color,d(o.color)?o.color:void 0,"#000000"),"contrast"===g.color?(e.contrastColor=x.getContrast(e.color||o.color),g.color=!s(w)&&n.inside||0>(w||0)||m.stacking?e.contrastColor:j):delete e.contrastColor,m.cursor&&(g.cursor=m.cursor)),v={r:n.borderRadius||0,rotation:k,padding:n.padding,zIndex:1},!u.styledMode){var C=n.backgroundColor,N=n.borderColor;v.fill="auto"===C?e.color:C,v.stroke="auto"===N?e.color:N,v["stroke-width"]=n.borderWidth}p(v,(function(e,n){"undefined"===typeof e&&delete v[n]}))}!b||c&&s(S)&&!!b.div===!!n.useHTML&&(b.rotation&&n.rotation||b.rotation===n.rotation)||(b=void 0,y=!0,f&&e.connector&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[i]))),c&&s(S)&&(b?v.text=S:(b=k?x.text(S,0,0,n.useHTML).addClass("highcharts-data-label"):x.label(S,0,0,n.shape,void 0,void 0,n.useHTML,void 0,"data-label"))&&b.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(n.className||"")+(n.useHTML?" highcharts-tracker":"")),b&&(b.options=n,b.attr(v),u.styledMode||b.css(g).shadow(n.shadow),(c=n[e.formatPrefix+"TextPath"]||n.textPath)&&!n.useHTML&&(b.setTextPath((null===(l=e.getDataLabelPath)||void 0===l?void 0:l.call(e,b))||e.graphic,c),e.dataLabelPath&&!c.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),b.added||b.add(t),o.alignDataLabel(e,b,n,void 0,y),b.isActive=!0,r[i]&&r[i]!==b&&r[i].destroy(),r[i]=b))})),n=r.length;n--;)r[n].isActive?r[n].isActive=!1:(r[n].destroy(),r.splice(n,1));e.dataLabel=r[0],e.dataLabels=r}))),l(this,"afterDrawDataLabels")}function g(e,n,t,r,i,a){var s,o,l=this.chart,c=n.align,d=n.verticalAlign,u=e.box?0:e.padding||0,p=n.x,h=void 0===p?0:p,f=n.y,m=void 0===f?0:f;return 0>(s=(t.x||0)+u)&&("right"===c&&0<=h?(n.align="left",n.inside=!0):h-=s,o=!0),(s=(t.x||0)+r.width-u)>l.plotWidth&&("left"===c&&0>=h?(n.align="right",n.inside=!0):h+=l.plotWidth-s,o=!0),0>(s=t.y+u)&&("bottom"===d&&0<=m?(n.verticalAlign="top",n.inside=!0):m-=s,o=!0),(s=(t.y||0)+r.height-u)>l.plotHeight&&("top"===d&&0>=m?(n.verticalAlign="bottom",n.inside=!0):m+=l.plotHeight-s,o=!0),o&&(n.x=h,n.y=m,e.placed=!a,e.align(n,void 0,i)),o}function v(e,n){var t,r=[];if(c(e)&&!c(n))r=e.map((function(e){return u(e,n)}));else if(c(n)&&!c(e))r=n.map((function(n){return u(e,n)}));else if(c(e)||c(n)){if(c(e)&&c(n))for(t=Math.max(e.length,n.length);t--;)r[t]=u(e[t],n[t])}else r=u(e,n);return r}function b(e,n,t,r,i){var a=this.chart,s=a.inverted,o=this.xAxis,l=o.reversed,c=s?n.height/2:n.width/2;e=(e=e.pointWidth)?e/2:0,n.startXPos=s?i.x:l?-c-e:o.width-c+e,n.startYPos=s?l?this.yAxis.height-c+e:-c-e:i.y,r?"hidden"===n.visibility&&(n.show(),n.attr({opacity:0}).animate({opacity:1})):n.attr({opacity:1}).animate({opacity:0},void 0,n.hide),a.hasRendered&&(t&&n.attr({x:n.startXPos,y:n.startYPos}),n.placed=!0)}var y=[];e.compose=function(e){t.pushUnique(y,e)&&((e=e.prototype).initDataLabelsGroup=r,e.initDataLabels=m,e.alignDataLabel=n,e.drawDataLabels=x,e.justifyDataLabel=g,e.setDataLabelStartPos=b)}}(r||(r={})),r})),n(t,"Series/Column/ColumnDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,n,t){var r,i=n.series,a=t.merge,s=t.pick;return function(n){function r(e,n,t,r,o){var l=this.chart.inverted,c=e.series,d=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0;c=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0;var u=e.dlBox||e.shapeArgs,p=s(e.below,e.plotY>s(this.translatedThreshold,c)),h=s(t.inside,!!this.options.stacking);u&&(0>(r=a(u)).y&&(r.height+=r.y,r.y=0),0<(u=r.y+r.height-c)&&u\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}})),n(t,"Series/Scatter/ScatterSeries.js",[t["Series/Scatter/ScatterSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=n.seriesTypes,i=r.column,a=r.line,s=t.addEvent,c=t.extend,d=t.merge,m=function(e){u(t,e);var n=p(t);function t(){var e;return h(this,t),(e=n.apply(this,arguments)).points=e.options=e.data=void 0,e}return f(t,[{key:"applyJitter",value:function(){var e=this,n=this.options.jitter,t=this.points.length;n&&this.points.forEach((function(r,i){["x","y"].forEach((function(a,s){var o,l,c="plot"+a.toUpperCase();if(n[a]&&!r.isNull){var d=e[a+"Axis"];l=n[a]*d.transA,d&&!d.isLog&&(o=Math.max(0,r[c]-l),d=Math.min(d.len,r[c]+l),s=1e4*Math.sin(i+s*t),s-=Math.floor(s),r[c]=o+(d-o)*s,"x"===a&&(r.clientX=r.plotX))}}))}))}},{key:"drawGraph",value:function(){this.options.lineWidth?o(l(t.prototype),"drawGraph",this).call(this):this.graph&&(this.graph=this.graph.destroy())}}]),t}(a);return m.defaultOptions=d(a.defaultOptions,e),c(m.prototype,{drawTracker:i.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),s(m,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",m),m})),n(t,"Series/CenteredUtilities.js",[t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(e,n,t){var r,i=e.deg2rad,a=t.fireEvent,s=t.isNumber,o=t.pick,l=t.relativeLength;return function(e){e.getCenter=function(){var e=this.options,t=this.chart,r=2*(e.slicedOffset||0),i=t.plotWidth-2*r,c=t.plotHeight-2*r,d=e.center,u=Math.min(i,c),p=e.thickness,h=e.size,f=e.innerSize||0;for("string"===typeof h&&(h=parseFloat(h)),"string"===typeof f&&(f=parseFloat(f)),e=[o(d[0],"50%"),o(d[1],"50%"),o(h&&0>h?void 0:e.size,"100%"),o(f&&0>f?void 0:e.innerSize||0,"0%")],!t.angular||this instanceof n||(e[3]=0),d=0;4>d;++d)h=e[d],t=2>d||2===d&&/%$/.test(h),e[d]=l(h,[i,c,u,e[2]][d])+(t?r:0);return e[3]>e[2]&&(e[3]=e[2]),s(p)&&2*pe&&360>n-e?n:e+360,{start:i*(e+-90),end:i*(n+-90)}}}(r||(r={})),r})),n(t,"Series/Pie/PiePoint.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(e,n,t){var r=e.setAnimation,i=t.addEvent,a=t.defined,c=t.extend,d=t.isNumber,m=t.pick,x=t.relativeLength,g=function(e){u(t,e);var n=p(t);function t(){var e;return h(this,t),(e=n.apply(this,arguments)).series=e.options=e.labelDistance=void 0,e}return f(t,[{key:"getConnectorPath",value:function(){var e=this.labelPosition,n=this.series.options.dataLabels,t=this.connectorShapes,r=n.connectorShape;return t[r]&&(r=t[r]),r.call(this,{x:e.computed.x,y:e.computed.y,alignment:e.alignment},e.connectorPosition,n)}},{key:"getTranslate",value:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}},{key:"haloPath",value:function(e){var n=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(n.x,n.y,n.r+e,n.r+e,{innerR:n.r-1,start:n.start,end:n.end,borderRadius:n.borderRadius})}},{key:"init",value:function(){var e=this;o(l(t.prototype),"init",this).apply(this,arguments),this.name=m(this.name,"Slice");var n=function(n){e.slice("select"===n.type)};return i(this,"select",n),i(this,"unselect",n),this}},{key:"isValid",value:function(){return d(this.y)&&0<=this.y}},{key:"setVisible",value:function(e,n){var t=this,r=this.series,i=r.chart,a=r.options.ignoreHiddenPoint;n=m(n,a),e!==this.visible&&(this.visible=this.options.visible=e="undefined"===typeof e?!this.visible:e,r.options.data[r.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach((function(n){t[n]&&t[n][e?"show":"hide"](e)})),this.legendItem&&i.legend.colorizeItem(this,e),e||"hover"!==this.state||this.setState(""),a&&(r.isDirty=!0),n&&i.redraw())}},{key:"slice",value:function(e,n,t){var i=this.series;r(t,i.chart),m(n,!0),this.sliced=this.options.sliced=a(e)?e:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}]),t}(n);return c(g.prototype,{connectorShapes:{fixedOffset:function(e,n,t){var r=n.breakAt;return n=n.touchingSliceAt,[["M",e.x,e.y],t.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*r.x-n.x,2*r.y-n.y,r.x,r.y]:["L",r.x,r.y],["L",n.x,n.y]]},straight:function(e,n){return n=n.touchingSliceAt,[["M",e.x,e.y],["L",n.x,n.y]]},crookedLine:function(e,n,t){var r=n,i=r.breakAt,a=r.touchingSliceAt;n=this.series;var o=s(n.center,3),l=o[0],c=o[1],d=o[2]/2,u=n.chart.plotWidth,p=n.chart.plotLeft;n="left"===e.alignment;var h=e,f=h.x,m=h.y;return t.crookDistance?(e=x(t.crookDistance,1),e=n?l+d+(u+p-l-d)*(1-e):p+(l-d)*e):e=l+(c-m)*Math.tan((this.angle||0)-Math.PI/2),t=[["M",f,m]],(n?e<=f&&e>=i.x:e>=f&&e<=i.x)&&t.push(["L",e,m]),t.push(["L",i.x,i.y],["L",a.x,a.y]),t}}}),g})),n(t,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}})),n(t,"Series/Pie/PieSeries.js",[t["Series/CenteredUtilities.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Series/Pie/PiePoint.js"],t["Series/Pie/PieSeriesDefaults.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],(function(e,n,t,r,i,a,s,c,d){var m=e.getStartAndEndRadians;t=t.noop;var x=d.clamp,g=d.extend,v=d.fireEvent,b=d.merge,y=d.pick,w=d.relativeLength,j=function(e){u(t,e);var n=p(t);function t(){var e;return h(this,t),(e=n.apply(this,arguments)).points=e.options=e.maxLabelDistance=e.data=e.center=void 0,e}return f(t,[{key:"animate",value:function(e){var n=this,t=n.points,r=n.startAngleRad;e||t.forEach((function(e){var t=e.graphic,i=e.shapeArgs;t&&i&&(t.attr({r:y(e.startR,n.center&&n.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},n.options.animation))}))}},{key:"drawEmpty",value:function(){var e,n,t=this.startAngleRad,r=this.endAngleRad,i=this.options;0===this.total&&this.center?(e=this.center[0],n=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,n,this.center[1]/2,0,t,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:c.arc(e,n,this.center[2]/2,0,{start:t,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}},{key:"drawPoints",value:function(){var e=this.chart.renderer;this.points.forEach((function(n){n.graphic&&n.hasNewShapeType()&&(n.graphic=n.graphic.destroy()),n.graphic||(n.graphic=e[n.shapeType](n.shapeArgs).add(n.series.group),n.delayedRendering=!0)}))}},{key:"generatePoints",value:function(){o(l(t.prototype),"generatePoints",this).call(this),this.updateTotals()}},{key:"getX",value:function(e,n,t){var r=this.center,i=this.radii?this.radii[t.index]||0:r[2]/2;return e=Math.asin(x((e-r[1])/(i+t.labelDistance),-1,1)),r[0]+(n?-1:1)*Math.cos(e)*(i+t.labelDistance)+(01.5*Math.PI?f-=2*Math.PI:f<-Math.PI/2&&(f+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(f)*t),translateY:Math.round(Math.sin(f)*t)},x=Math.cos(f)*e[2]/2,l=Math.sin(f)*e[2]/2,d.tooltipPos=[e[0]+.7*x,e[1]+.7*l],d.half=f<-Math.PI/2||f>Math.PI/2?1:0,d.angle=f,h=Math.min(r,d.labelDistance/5),d.labelPosition={natural:{x:e[0]+x+Math.cos(f)*d.labelDistance,y:e[1]+l+Math.sin(f)*d.labelDistance},computed:{},alignment:0>d.labelDistance?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+x+Math.cos(f)*h,y:e[1]+l+Math.sin(f)*h},touchingSliceAt:{x:e[0]+x,y:e[1]+l}}}}v(this,"afterTranslate")}},{key:"updateTotals",value:function(){var e,n,t=this.points,r=t.length,i=this.options.ignoreHiddenPoint,a=0;for(e=0;eN&&(e.dataLabel.css({width:Math.round(.7*N)+"px"}),e.dataLabel.shortened=!0)):(e.dataLabel=e.dataLabel.destroy(),e.dataLabels&&1===e.dataLabels.length&&delete e.dataLabels))})),A.forEach((function(n,t){var l,c=n.length,p=[],b=0;if(c){if(v.sortByAngle(n,t-.5),0k-j&&0===t&&(N=Math.round(d+i-k+j),L[1]=Math.max(N,L[1])),0>f-s/2?L[0]=Math.max(Math.round(s/2-f),L[0]):f+s/2>S&&(L[2]=Math.max(Math.round(f+s/2-S),L[2])),r.sideOverflow=N)}}})),0===c(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),this.points.forEach((function(e){var i;g=p(w,e.options.dataLabels),(n=h(g.connectorWidth,1))&&(t=e.connector,(r=e.dataLabel)&&r._pos&&e.visible&&0n.bottom-2?r:t,n.half,n)},justify:function(e,n,t){return t[0]+(e.half?-1:1)*(n+e.labelDistance)},alignToPlotEdges:function(e,n,t,r){return e=e.getBBox().width,n?e+r:t-e-r},alignToConnectors:function(e,n,t,r){var i,a=0;return e.forEach((function(e){(i=e.dataLabel.getBBox().width)>a&&(a=i)})),n?a+r:t-a-r}};n.compose=function(n){e.compose(l),i.pushUnique(m,n)&&((n=n.prototype).dataLabelPositioners=x,n.alignDataLabel=s,n.drawDataLabels=t,n.placeDataLabels=r,n.verifyDataLabelOverflow=a)}}(a||(a={})),a})),n(t,"Extensions/OverlappingDataLabels.js",[t["Core/Chart/Chart.js"],t["Core/Utilities.js"]],(function(e,n){function t(e,n){var t,r=!1;return e&&(t=e.newOpacity,e.oldOpacity!==t&&(e.alignAttr&&e.placed?(e[t?"removeClass":"addClass"]("highcharts-data-label-hidden"),r=!0,e.alignAttr.opacity=t,e[e.isOld?"animate":"attr"](e.alignAttr,null,(function(){n.styledMode||e.css({pointerEvents:t?"auto":"none"})})),i(n,"afterHideOverlappingLabel")):e.attr({opacity:t})),e.isOld=!0),r}var r=n.addEvent,i=n.fireEvent,a=n.isArray,s=n.isNumber,o=n.objectEach,l=n.pick;r(e,"render",(function(){var e=this,n=[];(this.labelCollectors||[]).forEach((function(e){n=n.concat(e())})),(this.yAxis||[]).forEach((function(e){e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&o(e.stacking.stacks,(function(e){o(e,(function(e){e.label&&n.push(e.label)}))}))})),(this.series||[]).forEach((function(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&((i=function(r){return r.forEach((function(r){r.visible&&(a(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach((function(i){var a=i.options;i.labelrank=l(a.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),a.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,t(i,e)):n.push(i)}))}))})(r.nodes||[]),i(r.points))})),this.hideOverlappingLabels(n)})),e.prototype.hideOverlappingLabels=function(e){var n,r,a,o,l,c=this,d=e.length,u=c.renderer,p=!1,h=function(e){var n,t,r,i,a,o=e.box?0:e.padding||0,l=r=0;if(e&&(!e.alignAttr||e.placed))return n=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},t=e.parentGroup,e.width||(r=e.getBBox(),e.width=r.width,e.height=r.height,r=u.fontMetrics(e.element).h),i=e.width-2*o,(a={left:"0",center:"0.5",right:"1"}[e.alignValue])?l=+a*i:s(e.x)&&Math.round(e.x)!==e.translateX&&(l=e.x-e.translateX),{x:n.x+(t.translateX||0)+o-(l||0),y:n.y+(t.translateY||0)+o-r,width:e.width-2*o,height:e.height-2*o}};for(r=0;r=o.x+o.width||l.x+l.width<=o.x||l.y>=o.y+o.height||l.y+l.height<=o.y||((h.labelrank4&&void 0!==arguments[4]?arguments[4]:{};e=x(e,n,t,r,i);var a=i,s=a.innerR,o=void 0===s?0:s,l=a.r,c=void 0===l?t:l,d=a.start,u=void 0===d?0:d,p=a.end,f=void 0===p?0:p;if(i.open||!i.borderRadius)return e;for(t=f-u,n=Math.sin(t/2),i=Math.max(Math.min(h(i.borderRadius||0,c-o),(c-o)/2,c*n/(1+n)),0),t=Math.min(i,t/Math.PI*2*o),n=e.length-1;n--;){var m=void 0,g=void 0,v=void 0,b=n,y=14&&void 0!==arguments[4]?arguments[4]:{},a=g(e,n,t,r,i),s=i,o=s.r,l=void 0===o?0:o,c=s.brBoxHeight,u=void 0===c?r:c,p=s.brBoxY,h=void 0===p?n:p,f=n-h,m=h+u-(n+r);i=-.1this.borderWidth&&(S="all"),S||(S="end");var C=Math.min(h(e.radius,g),g/2,"all"===S?b/2:1/0)||0;"end"===S&&(k&&(w-=C),j+=C),l(a,{brBoxHeight:j,brBoxY:w,r:C})}}}catch(N){d.e(N)}finally{d.f()}}}),{order:9})}return n={optionsToObject:m}})),n(t,"Core/Responsive.js",[t["Core/Utilities.js"]],(function(e){var n,t=e.diffObjects,r=e.extend,i=e.find,a=e.merge,s=e.pick,o=e.uniqueKey;return function(n){function l(e,n){var t=e.condition;(t.callback||function(){return this.chartWidth<=s(t.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=s(t.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=s(t.minWidth,0)&&this.chartHeight>=s(t.minHeight,0)}).call(this)&&n.push(e._id)}function c(e,n){var r=this,s=this.options.responsive,l=this.currentResponsive,c=[];!n&&s&&s.rules&&s.rules.forEach((function(e){"undefined"===typeof e._id&&(e._id=o()),r.matchResponsiveRule(e,c)}),this),n=a.apply(void 0,d(c.map((function(e){return i((s||{}).rules||[],(function(n){return n._id===e}))})).map((function(e){return e&&e.chartOptions})))),n.isResponsiveOptions=!0,(c=c.toString()||void 0)!==(l&&l.ruleIds)&&(l&&this.update(l.undoOptions,e,!0),c?((l=t(n,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:n,undoOptions:l},this.update(n,e,!0)):this.currentResponsive=void 0)}var u=[];n.compose=function(n){return e.pushUnique(u,n)&&r(n.prototype,{matchResponsiveRule:l,setResponsive:c}),n}}(n||(n={})),n})),n(t,"masters/highcharts.src.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Core/Defaults.js"],t["Core/Animation/Fx.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Renderer/HTML/AST.js"],t["Core/Templating.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Renderer/HTML/HTMLElement.js"],t["Core/Renderer/HTML/HTMLRenderer.js"],t["Core/Axis/Axis.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Axis/LogarithmicAxis.js"],t["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],t["Core/Axis/Tick.js"],t["Core/Tooltip.js"],t["Core/Series/Point.js"],t["Core/Pointer.js"],t["Core/Legend/Legend.js"],t["Core/Chart/Chart.js"],t["Core/Axis/Stacking/StackingAxis.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Column/ColumnSeries.js"],t["Series/Column/ColumnDataLabel.js"],t["Series/Pie/PieSeries.js"],t["Series/Pie/PieDataLabel.js"],t["Core/Series/DataLabel.js"],t["Core/Responsive.js"],t["Core/Color/Color.js"],t["Core/Time.js"]],(function(e,n,t,r,i,a,s,o,l,c,d,u,p,h,f,m,x,g,v,b,y,w,j,k,S,C,N,_,T,E,A,L,D,O){return e.animate=i.animate,e.animObject=i.animObject,e.getDeferredAnimation=i.getDeferredAnimation,e.setAnimation=i.setAnimation,e.stop=i.stop,e.timers=r.timers,e.AST=a,e.Axis=p,e.Chart=w,e.chart=w.chart,e.Fx=r,e.Legend=y,e.PlotLineOrBand=m,e.Point=v,e.Pointer=b,e.Series=S,e.StackItem=k,e.SVGElement=l,e.SVGRenderer=c,e.Templating=s,e.Tick=x,e.Time=O,e.Tooltip=g,e.Color=D,e.color=D.parse,u.compose(c),d.compose(l),b.compose(w),y.compose(w),e.defaultOptions=t.defaultOptions,e.getOptions=t.getOptions,e.time=t.defaultTime,e.setOptions=t.setOptions,e.dateFormat=s.dateFormat,e.format=s.format,e.numberFormat=s.numberFormat,e.addEvent=n.addEvent,e.arrayMax=n.arrayMax,e.arrayMin=n.arrayMin,e.attr=n.attr,e.clearTimeout=n.clearTimeout,e.correctFloat=n.correctFloat,e.createElement=n.createElement,e.css=n.css,e.defined=n.defined,e.destroyObjectProperties=n.destroyObjectProperties,e.discardElement=n.discardElement,e.distribute=o.distribute,e.erase=n.erase,e.error=n.error,e.extend=n.extend,e.extendClass=n.extendClass,e.find=n.find,e.fireEvent=n.fireEvent,e.getMagnitude=n.getMagnitude,e.getStyle=n.getStyle,e.inArray=n.inArray,e.isArray=n.isArray,e.isClass=n.isClass,e.isDOMElement=n.isDOMElement,e.isFunction=n.isFunction,e.isNumber=n.isNumber,e.isObject=n.isObject,e.isString=n.isString,e.keys=n.keys,e.merge=n.merge,e.normalizeTickInterval=n.normalizeTickInterval,e.objectEach=n.objectEach,e.offset=n.offset,e.pad=n.pad,e.pick=n.pick,e.pInt=n.pInt,e.relativeLength=n.relativeLength,e.removeEvent=n.removeEvent,e.seriesType=C.seriesType,e.splat=n.splat,e.stableSort=n.stableSort,e.syncTimeout=n.syncTimeout,e.timeUnits=n.timeUnits,e.uniqueKey=n.uniqueKey,e.useSerialIds=n.useSerialIds,e.wrap=n.wrap,_.compose(N),A.compose(S),h.compose(p),f.compose(p),E.compose(T),m.compose(p),L.compose(w),j.compose(p,w,S),g.compose(b),e})),t["masters/highcharts.src.js"]._modules=t,t["masters/highcharts.src.js"]},e.exports?(a.default=a,e.exports=i.document?a(i):a):void 0===(r=function(){return a(i)}.call(n,t,n,e))||(e.exports=r)},2110:function(e,n,t){"use strict";var r=t(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(n,t,r){if("string"!==typeof t){if(f){var i=h(t);i&&i!==f&&e(n,i,r)}var s=d(t);u&&(s=s.concat(u(t)));for(var o=l(n),m=l(t),x=0;x=n||t<0||u&&e-c>=a}function y(){var e=x();if(b(e))return w(e);o=setTimeout(y,function(e){var t=n-(e-l);return u?m(t,a-(e-c)):t}(e))}function w(e){return o=void 0,p&&r?h(e):(r=i=void 0,s)}function j(){var e=x(),t=b(e);if(r=arguments,i=this,l=e,t){if(void 0===o)return function(e){return c=e,o=setTimeout(y,n),d?h(e):s}(l);if(u)return o=setTimeout(y,n),h(l)}return void 0===o&&(o=setTimeout(y,n)),s}return n=v(n)||0,g(t)&&(d=!!t.leading,a=(u="maxWait"in t)?f(v(t.maxWait)||0,n):a,p="trailing"in t?!!t.trailing:p),j.cancel=function(){void 0!==o&&clearTimeout(o),c=0,r=l=i=o=void 0},j.flush=function(){return void 0===o?s:w(x())},j}},3881:function(e,n,t){var r="Expected a function",i=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,u="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=u||p||Function("return this")(),f=Object.prototype.toString,m=Math.max,x=Math.min,g=function(){return h.Date.now()};function v(e,n,t){var i,a,s,o,l,c,d=0,u=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(r);function f(n){var t=i,r=a;return i=a=void 0,d=n,o=e.apply(r,t)}function v(e){var t=e-c;return void 0===c||t>=n||t<0||p&&e-d>=s}function w(){var e=g();if(v(e))return j(e);l=setTimeout(w,function(e){var t=n-(e-c);return p?x(t,s-(e-d)):t}(e))}function j(e){return l=void 0,h&&i?f(e):(i=a=void 0,o)}function k(){var e=g(),t=v(e);if(i=arguments,a=this,c=e,t){if(void 0===l)return function(e){return d=e,l=setTimeout(w,n),u?f(e):o}(c);if(p)return l=setTimeout(w,n),f(c)}return void 0===l&&(l=setTimeout(w,n)),o}return n=y(n)||0,b(t)&&(u=!!t.leading,s=(p="maxWait"in t)?m(y(t.maxWait)||0,n):s,h="trailing"in t?!!t.trailing:h),k.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=c=a=l=void 0},k.flush=function(){return void 0===l?o:j(g())},k}function b(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==a}(e))return i;if(b(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=b(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var t=l.test(e);return t||c.test(e)?d(e.slice(2),t?2:8):o.test(e)?i:+e}e.exports=function(e,n,t){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(r);return b(t)&&(i="leading"in t?!!t.leading:i,a="trailing"in t?!!t.trailing:a),v(e,n,{leading:i,maxWait:n,trailing:a})}},888:function(e,n,t){"use strict";var r=t(9047);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,a,s){if(s!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:i};return t.PropTypes=t,t}},2007:function(e,n,t){e.exports=t(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},835:function(e,n,t){"use strict";var r=t(2791),i=t(7340);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=a.call(t)).done)&&(o.push(r.value),o.length!==n);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0?j.current=setTimeout(e,1e3*u):e(),null===x||void 0===x||x({pauseResume:_,reset:T,update:E})})),_=h((function(){C().pauseResume(),null===g||void 0===g||g({reset:T,start:A,update:E})})),T=h((function(){C().el&&(j.current&&clearTimeout(j.current),C().reset(),null===v||void 0===v||v({pauseResume:_,start:A,update:E}))})),E=h((function(e){C().update(e),null===b||void 0===b||b({pauseResume:_,reset:T,start:A})})),A=h((function(){T(),N()})),L=h((function(e){o&&(e&&T(),N())}));return r.useEffect((function(){k.current?l&&L(!0):(k.current=!0,L())}),[l,k,L,u,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),r.useEffect((function(){return function(){T()}}),[T]),{start:A,pauseResume:_,reset:T,update:E,getCountUp:C}},g=["className","redraw","containerProps","children","style"];n.ZP=function(e){var n=e.className,t=e.redraw,i=e.containerProps,a=e.children,o=e.style,d=c(e,g),u=r.useRef(null),p=r.useRef(!1),f=x(s(s({},d),{},{ref:u,startOnMount:"function"!==typeof a||0===e.delay,enableReinitialize:!1})),m=f.start,v=f.reset,b=f.update,y=f.pauseResume,w=f.getCountUp,j=h((function(){m()})),k=h((function(n){e.preserveValue||v(),b(n)})),S=h((function(){"function"!==typeof e.children||u.current instanceof Element?w():console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. .')}));r.useEffect((function(){S()}),[S]),r.useEffect((function(){p.current&&k(e.end)}),[e.end,k]);var C=t&&e;return r.useEffect((function(){t&&p.current&&j()}),[j,t,C]),r.useEffect((function(){!t&&p.current&&j()}),[j,t,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.className,e.formattingFn]),r.useEffect((function(){p.current=!0}),[]),"function"===typeof a?a({countUpRef:u,start:m,reset:v,update:b,pauseResume:y,getCountUp:w}):r.createElement("span",l({className:n,ref:u,style:o},i),"undefined"!==typeof e.start?w().formattingFn(e.start):"")}},4463:function(e,n,t){"use strict";var r=t(2791),i=t(5296);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t