!/**
 * Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/highcharts-gantt
 *
 * (c) 2017-2026 Highsoft AS
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 *
 * Authors:
 * - Lars Cabrera
 * - Torstein Hønsi
 * - Jon Arild Nygård
 * - Øystein Moseng
 */function(t,e){"object"==typeof exports&&"object"==typeof module?(t._Highcharts=e(),module.exports=t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/highcharts",[],function(){return e()}):"object"==typeof exports?(t._Highcharts=e(),exports.highcharts=t._Highcharts):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}("u"<typeof window?this:window,function(){return function(){"use strict";var t,e,i,o,r,n,s,a,l,h,d,c,p,u,f,g,v,m,y,x,b,M,k,w,A,S,T,C,P,O,L,E,B,I,D,z,R,N,W,G,H,X,F,Y,j,_,U,V,Z,K,q,$,J,Q,tt,te,ti,to,tr,tn,ts,ta,tl,th={};th.d=function(t,e){for(var i in e)th.o(e,i)&&!th.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},th.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var td={};th.d(td,{default:function(){return sQ}}),(t=W||(W={})).SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="13.0.0",t.win="u">typeof window?window:{},t.doc=t.win.document,t.svg=!!(null==(i=null==(e=null===t.doc||void 0===t.doc?void 0:t.doc.createElementNS)?void 0:e.call(t.doc,t.SVG_NS,"svg"))?void 0:i.createSVGRect),t.pageLang=null==(r=null==(o=null===t.doc||void 0===t.doc?void 0:t.doc.documentElement)?void 0:o.closest("[lang]"))?void 0:r.lang,t.userAgent=(null==(n=t.win.navigator)?void 0:n.userAgent)||"",t.isChrome=t.win.chrome,t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,i),t.win.removeEventListener("testPassive",t.noop,i))}return e}(),t.charts=[],t.composed=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0;var tc=W,tp={dark:{backgroundColor:"#141414",neutralColor:"#ffffff",highlightColor:"#2caffe"},light:{backgroundColor:"#ffffff",neutralColor:"#000000",highlightColor:"#0022ff",positiveColor:"#06b535",negativeColor:"#f21313"}},tu=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},tf=tc.doc,tg=tc.win;function tv(t,e,i,o){void 0===o&&(o={});var r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});var n=r.hcEvents;tc.Point&&t instanceof tc.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,i,!!tc.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==e.indexOf("touch"):o.passive,capture:!1}),n[e]||(n[e]=[]);var a={fn:i,order:"number"==typeof o.order?o.order:1/0};return n[e].push(a),n[e].sort(function(t,e){return t.order-e.order}),function(){t5(t,e,i)}}function tm(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function ty(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function tx(t,e,i){var o,r=tY(e)&&!tS(i),n=function(e,i){tS(e)?t.setAttribute(i,e):r?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return tY(e)?n(i,e):tK(e,n),o}function tb(t,e,i){return t>e?t<i?t:i:e}function tM(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function tk(t,e,i,o,r){var n=tf.createElement(t);return e&&tL(n,e),r&&tA(n,{padding:"0",border:"none",margin:"0"}),i&&tA(n,i),o&&o.appendChild(n),n}function tw(t,e,i){void 0===e&&(e=0);var o=e%2/2,r=i?-1:1;return(Math.round(t*r-o)+o)*r}function tA(t,e){tL(t.style,e)}function tS(t){return null!=t}function tT(t,e,i){tK(t,function(o,r){o!==e&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!i)&&delete t[r]})}function tC(t){var e;null==(e=null==t?void 0:t.parentElement)||e.removeChild(t)}function tP(t,e,i,o){var r={};return!function t(e,r,n,s){var a=i?r:e;tK(e,function(i,l){if(!s&&o&&o.indexOf(l)>-1&&r[l]){i=t3(i),n[l]=[];for(var h=0;h<Math.max(i.length,r[l].length);h++)r[l][h]&&(void 0===i[h]?n[l][h]=r[l][h]:(n[l][h]={},t(i[h],r[l][h],n[l][h],s+1)))}else tU(i,!0)&&!i.nodeType?(n[l]=tj(i)?[]:{},t(i,r[l]||{},n[l],s+1),0===Object.keys(n[l]).length&&("colorAxis"!==l||0!==s)&&delete n[l]):(e[l]!==r[l]||l in e&&!(l in r))&&"__proto__"!==l&&"constructor"!==l&&(n[l]=a[l])})}(t,e,r,0),r}function tO(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function tL(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function tE(t,e){var i=function(){};return i.prototype=new t,tL(i.prototype,e),i}function tB(t,e,i,o){if(i=i||{},(null==tf?void 0:tf.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==tc)){var r=tf.createEvent("Events");r.initEvent(e,!0,!0),i=tL(r,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||tL(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});for(var n=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[e]&&(n.length&&(a=!0),n.unshift.apply(n,s.hcEvents[e])),s=Object.getPrototypeOf(s);a&&n.sort(function(t,e){return t.order-e.order}),n.forEach(function(e){!1===e.fn.call(t,i,t)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}var tI=function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0};function tD(t,e){var i,o,r,n,s=!e;return t.forEach(function(t){if(t.length>1)for(n=o=t.length-1;n>0;n--)(r=t[n]-t[n-1])<0&&!s?(null==e||e(),e=void 0):r&&(void 0===i||r<i)&&(i=r)}),i}function tz(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function tR(t,e){for(var i=t.split(".");i.length&&tS(e);){var o=i.shift();if(void 0===o||"__proto__"===o)return;if("this"===o){var r=void 0;return tU(e)&&(r=e["@this"]),null!=r?r:e}var n=e[o.replace(/[\\'"]/g,"")];if(!tS(n)||"function"==typeof n||"number"==typeof n.nodeType||n===tg)return;e=n}return e}function tN(t,e,i){if("width"===e){var o,r,n=Math.min(t.offsetWidth,t.scrollWidth),s=null==(o=t.getBoundingClientRect)?void 0:o.call(t).width;return s<n&&s>=n-1&&(n=Math.floor(s)),Math.max(0,n-(tN(t,"padding-left",!0)||0)-(tN(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(tN(t,"padding-top",!0)||0)-(tN(t,"padding-bottom",!0)||0));var a=tg.getComputedStyle(t,void 0);return a&&(r=a.getPropertyValue(e),tJ(i,"opacity"!==e)&&(r=tQ(r))),r}var tW=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};function tG(t){tS(t)&&clearTimeout(t)}function tH(t){return tU(t)&&"number"==typeof t.nodeType}function tX(t){var e=null==t?void 0:t.constructor;return!!(tU(t,!0)&&!tH(t)&&(null==e?void 0:e.name)&&"Object"!==e.name)}function tF(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tY(t){return"string"==typeof t}function tj(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function t_(t){return"function"==typeof t}function tU(t,e){return!!t&&"object"==typeof t&&(!e||!tj(t))}function tV(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,r=tu([t],e,!0),n={},s=function(t,e){return"object"!=typeof t&&(t={}),tK(e,function(i,o){"__proto__"!==o&&"constructor"!==o&&(!tU(i,!0)||tX(i)||tH(i)?t[o]=e[o]:t[o]=s(t[o]||{},i))}),t};!0===t&&(n=r[1],r=Array.prototype.slice.call(r,2));var a=r.length;for(o=0;o<a;o++)n=s(n,r[o]);return n}function tZ(t,e,i,o,r){var n,s=t;i=tJ(i,tz(t));var a=t/i;for(!e&&(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),n=0;n<e.length&&(s=e[n],(!r||!(s*i>=t))&&(r||!(a<=(e[n]+(e[n+1]||e[n]))/2)));n++);return tM(s*i,-Math.round(Math.log(.001)/Math.LN10))}function tK(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function tq(t){var e=tf.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(tg.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(tg.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function t$(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function tJ(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function tQ(t,e){return parseInt(t,e||10)}function t0(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function t1(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function t2(t){for(var e,i,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];do{e=t;for(var n=0;n<o.length;n++)i=o[n],t=t.replace(i[0],i[1])}while(t!==e);return t}function t5(t,e,i){function o(e,i){var o=t.removeEventListener;o&&o.call(t,e,i,!1)}function r(i){var r,n;t.nodeName&&(e?(r={})[e]=!0:r=i,tK(r,function(t,e){if(i[e])for(n=i[e].length;n--;)o(e,i[e][n].fn)}))}var n="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var s=n.hcEvents;if(e){var a=s[e]||[];i?(s[e]=a.filter(function(t){return i!==t.fn}),o(e,i)):(r(s),s[e]=[])}else r(s),delete n.hcEvents}}function t3(t){return tj(t)?t:[t]}function t6(t,e){var i,o,r=t.length;for(o=0;o<r;o++)t[o].safeI=o;for(t.sort(function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i}),o=0;o<r;o++)delete t[o].safeI}function t9(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function t4(t){return tY(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}function t8(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}var t7=tc.charts,et=tc.win;function ee(t,e,i,o){var r=e?"Highcharts error":"Highcharts warning";32===t&&(t=""+r+": Deprecated member");var n=tF(t),s=n?""+r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==o){var a="";n&&(s+="?"),tK(o,function(t,e){a+="\n - ".concat(e,": ").concat(t),n&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=a}tB(tc,"displayError",{chart:i,code:t,message:s,params:o},function(){if(e)throw Error(s);et.console&&-1===ee.messages.indexOf(s)&&console.warn(s)}),ee.messages.push(s)}function ei(t,e){var i,o=t.options.index,r=e.length;for(i=t.options.isInternal?r:0;i<r+1;i++)if(!e[i]||tF(o)&&o<tJ(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(ee||(ee={})).messages=[];var eo={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};var er=(s=Math.random().toString(36).substring(2,9)+"-",a=0,function(){return"highcharts-"+(G?"":s)+a++});et.jQuery&&(et.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new tc[tY(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):t7[tx(this[0],"data-highcharts-chart")]});var en=tc.pageLang,es=tc.win,ea=tc.isSafari&&es.Intl&&!es.Intl.DateTimeFormat.prototype.formatRange,el=function(){function t(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=es.Date,this.update(t),this.lang=e}return t.prototype.update=function(t){var e=this;void 0===t&&(t={}),this.dTLCache={},this.options=t=tV(!0,this.options,t);var i=t.timezoneOffset,o=t.useUTC,r=t.locale;this.Date=t.Date||es.Date||Date;var n=t.timezone;tS(o)&&(n=o?"UTC":void 0),i&&i%60==0&&(n="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone="UTC"!==n&&(null==n?void 0:n.indexOf("Etc/GMT"))!==0,this.timezone=n,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(function(t){var i=/months/i.test(t),o=/short/.test(t),r={timeZone:"UTC"};r[i?"month":"weekday"]=o?"short":"long",e[t]=(i?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(function(t){return e.dateFormat(r,(i?31:1)*24*36e5*t)})})},t.prototype.toParts=function(t){var e=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g),i=e[0],o=e[1],r=e[2];return[+e[3],r-1,+o,+e[4],+e[5],+e[6],Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(i)]},t.prototype.dateTimeFormat=function(t,e,i){void 0===i&&(i=this.options.locale||en);var o=JSON.stringify(t)+i;tY(t)&&(t=this.str2dtf(t));var r=this.dTLCache[o];if(!r){null!=t.timeZone||(t.timeZone=this.timezone);try{r=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(ee(34),t.timeZone="UTC",r=new Intl.DateTimeFormat(i,t)):ee(e.message,!1)}}return this.dTLCache[o]=r,(null==r?void 0:r.format(e))||""},t.prototype.str2dtf=function(t,e){void 0===e&&(e={});var i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(function(o){-1!==t.indexOf(o)&&tL(e,i[o])}),e},t.prototype.makeTime=function(t,e,i,o,r,n,s){void 0===i&&(i=1),void 0===o&&(o=0);var a=this.Date.UTC(t,e,i,o,r||0,n||0,s||0);if("UTC"!==this.timezone){var l=this.getTimezoneOffset(a);if(a+=l,-1!==[2,3,8,9,10,11].indexOf(e)&&(o<5||o>20)){var h=this.getTimezoneOffset(a);l!==h?a+=h-l:l-36e5!==this.getTimezoneOffset(a-36e5)||ea||(a-=36e5)}}return a},t.prototype.parse=function(t){if(!tY(t))return null!=t?t:void 0;var e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(t);e||i||(t+="Z");var o=Date.parse(t);if(tF(o))return o+(!e||i?this.getTimezoneOffset(o):0)},t.prototype.getTimezoneOffset=function(t){if("UTC"!==this.timezone){var e=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),i=(e[0],e[1],e[2]),o=(e[3],e[4]),r=-(6e4*(60*(i+(void 0===o?0:o)/60)));if(tF(r))return r}return 0},t.prototype.dateFormat=function(t,e,i){var o,r=this.lang;if(!tS(e)||isNaN(e))return(null==r?void 0:r.invalidDate)||"";if(tY(t=null!=t?t:"%Y-%m-%d %H:%M:%S"))for(var n=/%\[([a-zA-Z]+)\]/g,s=void 0;s=n.exec(t);)t=t.replace(s[0],this.dateTimeFormat(s[1],e,null==r?void 0:r.locale));if(tY(t)&&-1!==t.indexOf("%")){var a=this,l=this.toParts(e),h=l[0],d=l[1],c=l[2],p=l[3],u=l[4],f=l[5],g=l[6],v=l[7],m=(null==r?void 0:r.weekdays)||this.weekdays,y=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,x=(null==r?void 0:r.months)||this.months,b=(null==r?void 0:r.shortMonths)||this.shortMonths;tK(tL({a:y?y[v]:m[v].substr(0,3),A:m[v],d:t$(c),e:t$(c,2," "),w:v,v:null!=(o=null==r?void 0:r.weekFrom)?o:"",b:b[d],B:x[d],m:t$(d+1),o:d+1,y:h.toString().substr(2,2),Y:h,H:t$(p),k:p,I:t$(p%12||12),l:p%12||12,M:t$(u),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:t$(f),L:t$(g,3)},tc.dateFormats),function(i,o){if(tY(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof i?i.call(a,e,a):i)})}else if(tU(t)){var M=(this.getTimezoneOffset(e)||0)/36e5,k=this.timezone||"Etc/GMT"+(M>=0?"+":"")+M,w=t.prefix,A=t.suffix;t=(void 0===w?"":w)+this.dateTimeFormat(tL({timeZone:k},t),e)+(void 0===A?"":A)}return i?t4(t):t},t.prototype.resolveDTLFormat=function(t){return tU(t,!0)?tU(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=t3(t))[0],from:t[1],to:t[2]}},t.prototype.getDateFormat=function(t,e,i,o){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),n="01-01 00:00:00.000",s={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",l=a;for(a in eo){if(t&&t===eo.week&&+this.dateFormat("%w",e)===i&&r.substr(6)===n.substr(6)){a="week";break}if(t&&eo[a]>t){a=l;break}if(s[a]&&r.substr(s[a])!==n.substr(s[a]))break;"week"!==a&&(l=a)}return this.resolveDTLFormat(o[a]).main},t}(),eh=(l=function(t,e){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ed=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eh(e,t),e.prototype.getBoundaryTicks=function(t,e,i,o){var r={};if(e===eo.year)return r;var n=tS(i)&&tS(o),s=e<eo.hour,a=e<eo.day,l=e<eo.month,h=e>=eo.hour?9e5:e>=eo.minute?6e4:e>=eo.second&&1e3;if(t.length<1e4)for(var d=!0,c=0;c<t.length;c++){var p=t[c];if(n){if(p<i)continue;if(p>o)break}if(d){if(e===eo.month){r[p]="year",d=!1;continue}if(e===eo.hour){r[p]="day",d=!1;continue}}if(h&&p%h!=0){d=!1;continue}var u=this.toParts(p),f=u[1],g=u[2],v=u[3],m=u[4],y=u[5],x=u[6],b=!v&&!m&&!y&&!x;s&&0===m&&(r[p]="hour"),a&&b&&(r[p]="day"),l&&1===g&&b&&(r[p]="month"),0===f&&1===g&&b&&(r[p]="year"),d=!1}return r},e.prototype.getTimeTicks=function(t,e,i,o){var r,n=[],s=t.count,a=void 0===s?1:s,l=t.unitRange,h=e,d=this.toParts(e),c=d[0],p=d[1],u=d[2],f=d[3],g=d[4],v=d[5],m=(e||0)%1e3;if(null!=o||(o=1),tS(e)){if(m=l>=eo.second?0:a*Math.floor(m/a),l>=eo.second&&(v=l>=eo.minute?0:a*Math.floor(v/a)),l>=eo.minute&&(g=l>=eo.hour?0:a*Math.floor(g/a)),l>=eo.hour&&(f=l>=eo.day?0:a*Math.floor(f/a)),l>=eo.day&&(u=l>=eo.month?1:Math.max(1,a*Math.floor(u/a))),l>=eo.month&&(p=l>=eo.year?0:a*Math.floor(p/a)),l>=eo.year&&(c-=c%a),l===eo.week){a&&(e=this.makeTime(c,p,u,f,g,v,m));var y=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),x="DLMXJVS".indexOf(y);u+=-x+o+(x<o?-7:0)}e=this.makeTime(c,p,u,f,g,v,m),this.variableTimezone&&tS(i)&&(r=i-e>4*eo.month||this.getTimezoneOffset(e)!==this.getTimezoneOffset(i));for(var b=e,M=1;b<i;)n.push(b),l===eo.year?b=this.makeTime(c+M*a,0):l===eo.month?b=this.makeTime(c,p+M*a):r&&(l===eo.day||l===eo.week)?b=this.makeTime(c,p,u+M*a*(l===eo.day?1:7)):r&&l===eo.hour&&a>1?b=this.makeTime(c,p,u,f+M*a):b+=l*a,M++;n.push(b)}return n.info=tL(t,{boundaryTicks:this.getBoundaryTicks(n,l,h,i),totalRange:l*a}),n},e}(el),ec=function(){return(ec=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},ep=tc.isTouchDevice,eu={palette:tp,colors:Array(10).fill(1).map(function(t,e){return"var(--highcharts-color-".concat(e,")")}),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"var(--highcharts-neutral-color-3)",padding:8,r:2,stroke:"var(--highcharts-neutral-color-20)","stroke-width":1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"var(--highcharts-neutral-color-10)"},select:{fill:"var(--highcharts-highlight-color-10)",style:{color:"var(--highcharts-neutral-color-100)",fontWeight:"bold"}},disabled:{style:{color:"var(--highcharts-neutral-color-20)"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,selectionMarkerFill:"color-mix(var(--highcharts-highlight-color-80) 25%, transparent)",type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"var(--highcharts-highlight-color-80)",backgroundColor:"var(--highcharts-background-color)",plotBorderColor:"var(--highcharts-neutral-color-20)"},title:{style:{color:"var(--highcharts-neutral-color-80)",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"var(--highcharts-neutral-color-40)",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"var(--highcharts-highlight-color-100)",inactiveColor:"var(--highcharts-neutral-color-20)"},itemStyle:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"var(--highcharts-neutral-color-100)"},itemHiddenStyle:{color:"var(--highcharts-neutral-color-60)",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"var(--highcharts-neutral-color-80)",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"var(--highcharts-background-color)",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:function(t){return Math.sqrt(1-Math.pow(t-1,2))}},borderColor:"light-dark(var(--highcharts-neutral-color-5), var(--highcharts-neutral-color-20))",borderRadius:5,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%[Y]"},footerFormat:"",header:{distance:5,shape:"callout",style:{fontSize:"1em"}},hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:ep?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"var(--highcharts-background-color)",borderWidth:void 0,stickOnContact:!1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",verticalAlign:"bottom",x:-10,y:-5},style:{cursor:"pointer",color:"var(--highcharts-neutral-color-40)",fontSize:"0.6em"},text:"Highcharts.com"}},ef=new ed(eu.time,eu.lang),eg=function(t){var e;return tB(tc,"setOptions",{options:t}),tV(!0,eu,t),t.time&&ef.update(eu.time),t.lang&&"locale"in t.lang&&ef.update({locale:t.lang.locale}),(null==(e=t.lang)?void 0:e.chartTitle)&&(eu.title=ec(ec({},eu.title),{text:t.lang.chartTitle})),eu},ev=tc.win,em=function(t,e,i){return 0===i?t:1===i?e:"color-mix(in srgb,".concat(t,",").concat(e," ").concat(100*i,"%)")},ey=function(t){return tY(t)&&!!t&&"none"!==t},ex=function(){var t;function e(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;var i,o,r,n,s=tc.Color;if(s&&s!==e)return new s(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else if("string"==typeof t)for(this.input=t=e.names[t.toLowerCase()]||t,r=e.parsers.length;r--&&!o;)(i=(n=e.parsers[r]).regex.exec(t))&&(o=n.parse(i));o&&(this.rgba=o)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.get=function(t){var e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){var o=tV(e);return o.stops=[].slice.call(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]}),o}return i&&tF(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e},e.prototype.brighten=function(t){var i=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(tF(t)&&0!==t)if(tF(i[0]))for(var o=0;o<3;o++)i[o]+=tQ(255*t),i[o]<0&&(i[o]=0),i[o]>255&&(i[o]=255);else e.useColorMix&&ey(this.input)&&(this.output=em(this.input,t>0?"white":"black",Math.abs(t)));return this},e.prototype.setOpacity=function(t){return tF(this.rgba[0])?this.rgba[3]=t:e.useColorMix&&ey(this.input)&&(this.output=em(this.input,"#0000",1-t)),this},e.prototype.tweenTo=function(t,i){var o=this.rgba,r=t.rgba;if(!tF(o[0])||!tF(r[0]))return e.useColorMix&&ey(this.input)&&ey(t.input)&&i<.99?em(this.input,t.input,i):t.input||"none";var n=1!==r[3]||1!==o[3],s=function(t,e){return t+(o[e]-t)*(1-i)},a=r.slice(0,3).map(s).map(Math.round);return n&&a.push(s(r[3],3)),(n?"rgba(":"rgb(")+a.join(",")+")"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[tQ(t[1]),tQ(t[2]),tQ(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[tQ(t[1]),tQ(t[2]),tQ(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[tQ(t[1]+t[1],16),tQ(t[2]+t[2],16),tQ(t[3]+t[3],16),tS(t[4])?tQ(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[tQ(t[1],16),tQ(t[2],16),tQ(t[3],16),tS(t[4])?tQ(t[4],16)/255:1]}}],e.useColorMix=null==(t=ev.CSS)?void 0:t.supports("color","color-mix(in srgb,red,blue 9%)"),e.None=new e(""),e}(),eb=ex.parse,eM=tc.win,ek=function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=null==t?void 0:t[0],i=null==t?void 0:t[1],o=this.now||0,r=[];if(1!==o&&e&&i)if(e.length===i.length&&o<1)for(var n=0;n<i.length;n++){for(var s=e[n],a=i[n],l=[],h=0;h<a.length;h++){var d=s[h],c=a[h];tF(d)&&tF(c)&&("A"!==a[0]||4!==h&&5!==h)?l[h]=d+o*(c-d):l[h]=c}r.push(l)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,s=function(t){return!s.stopped&&r.step(t)},a=eM.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&a(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=o,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&a(l)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e,i,o=+new Date,r=this.options,n=this.elem,s=r.complete,a=r.duration,l=r.curAnim;return n.attr&&!n.element?e=!1:t||o>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,tK(l,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(n),e=!1):(this.pos=r.easing((o-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},t.prototype.initPath=function(t,e,i){var o,r,n,s,a=t.startX,l=t.endX,h=i.slice(),d=t.isArea,c=d?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,u=null==e?void 0:e.slice();if(!u||p)return[h,h];function f(t,e){for(;t.length<r;){var i=t[0],o=e[r-t.length];if(o&&"M"===i[0]&&("C"===o[0]?t[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=["L",i[1],i[2]]),t.unshift(i),d){var n=t.pop();t.push(t[t.length-1],n)}}}function g(t){for(;t.length<r;){var e=t[Math.floor(t.length/c)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),d){var i=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(a&&l&&l.length){for(n=0;n<a.length;n++)if(a[n]===l[0]){o=n;break}else if(a[0]===l[l.length-a.length+n]){o=n,s=!0;break}else if(a[a.length-1]===l[l.length-a.length+n]){o=a.length-n;break}void 0===o&&(u=[])}return u.length&&tF(o)&&(r=h.length+o*c,s?(f(u,h),g(h)):(f(h,u),g(u))),[u,h]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,eb(this.start).tweenTo(eb(this.end),this.pos),void 0,!0)},t.timers=[],t}();function ew(t){return tU(t)?tV({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function eA(t,e){for(var i=ek.timers.length;i--;)ek.timers[i].elem!==t||e&&e!==ek.timers[i].prop||(ek.timers[i].stopped=!0)}var eS=function(t,e,i){var o,r,n,s,a="";tU(i)||(s=arguments,i={duration:s[2],easing:s[3],complete:s[4]}),tF(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=tV(e),tK(e,function(s,l){eA(t,l),n=new ek(t,i,l),r=void 0,"d"===l&&tj(e.d)?(n.paths=n.initPath(t,t.pathArray,e.d),n.toD=e.d,o=0,r=1):t.attr?o=t.attr(l):(o=parseFloat(tN(t,l))||0,"opacity"!==l&&(a="px")),r||(r=s),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),n.run(o,r,a)})},eT=function(t,e,i){var o=ew(e),r=i?[i]:t.series,n=0,s=0;return r.forEach(function(t){var i=ew(t.options.animation);n=tU(e)&&tS(e.defer)?o.defer:Math.max(n,i.duration+i.defer),s=Math.min(o.duration,i.duration)}),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-s),duration:Math.min(n,s)}},eC=function(t,e){e.renderer.globalAnimation=tJ(t,e.options.chart.animation,!0)},eP=tc.SVG_NS,eO=tc.win.trustedTypes,eL=eO&&t_(eO.createPolicy)&&eO.createPolicy("highcharts",{createHTML:function(t){return t}}),eE=eL?eL.createHTML(""):"",eB=function(){function t(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return t.filterUserAttributes=function(e){return tK(e,function(i,o){var r=!0;-1===t.allowedAttributes.indexOf(o)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(r=tY(i)&&t.allowedReferences.some(function(t){return 0===i.indexOf(t)})),r||(ee(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete e[o]),tY(i)&&e[o]&&(e[o]=i.replace(/</g,"&lt;"))}),e},t.parseStyle=function(t){return t.split(";").reduce(function(t,e){var i=e.split(":").map(function(t){return t.trim()}),o=i.shift();return o&&i.length&&(t[o.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=i.join(":")),t},{})},t.setElementHTML=function(e,i){e.innerHTML=t.emptyHTML,i&&new t(i).addToDOM(e)},t.prototype.addToDOM=function(e){return function e(i,o){var r;return t3(i).forEach(function(i){var n,s=i.tagName,a=i.textContent?tc.doc.createTextNode(i.textContent):void 0,l=t.bypassHTMLFiltering;if(s)if("#text"===s)n=a;else if(-1!==t.allowedTags.indexOf(s)||l){var h="svg"===s?eP:o.namespaceURI||eP,d=tc.doc.createElementNS(h,s),c=i.attributes||{};tK(i,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(c[e]=t)}),tx(d,l?c:t.filterUserAttributes(c)),i.style&&tA(d,i.style),a&&d.appendChild(a),e(i.children||[],d),n=d}else ee(33,!1,void 0,{"Invalid tagName in config":s});n&&o.appendChild(n),r=n}),r}(this.nodes,e)},t.prototype.parseMarkup=function(e){var i,o=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{i=new DOMParser().parseFromString(eL?eL.createHTML(e):e,"text/html")}catch(t){}if(!i){var r=tk("div");r.innerHTML=e,i={body:r}}var n=function(e,i){var o=e.nodeName.toLowerCase(),r={tagName:o};"#text"===o&&(r.textContent=e.textContent||"");var s=e.attributes;if(s){var a={};[].forEach.call(s,function(e){"data-style"===e.name?r.style=t.parseStyle(e.value):a[e.name]=e.value}),r.attributes=a}if(e.childNodes.length){var l=[];[].forEach.call(e.childNodes,function(t){n(t,l)}),l.length&&(r.children=l)}i.push(r)};return[].forEach.call(i.body.childNodes,function(t){return n(t,o)}),o},t.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","aria-sort","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],t.allowedReferences=["https://","http://","mailto:","/","../","./","#"],t.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],t.emptyHTML=eE,t.bypassHTMLFiltering=!1,t}(),eI=tc.pageLang,eD={add:function(t,e){return t+e},divide:function(t,e){return 0!==e?tM(t/e):""},eq:function(t,e){return t==e},each:function(t){var e=arguments[arguments.length-1];return!!tj(t)&&t.map(function(i,o){return eN(e.body,tL(tU(i)?i:{"@this":i},{"@index":o,"@first":0===o,"@last":o===t.length-1}))}).join("")},ge:function(t,e){return t>=e},gt:function(t,e){return t>e},if:function(t){return!!t},le:function(t,e){return t<=e},lt:function(t,e){return t<e},multiply:function(t,e){return tM(t*e,15)},ne:function(t,e){return t!=e},subtract:function(t,e){return t-e},ucfirst:t4,unless:function(t){return!t}},ez={},eR=function(t){return/^["'].+["']$/.test(t)};function eN(t,e,i){void 0===t&&(t="");for(var o,r,n,s,a=/\{([^{}]+)\}/g,l=/\(([^()]+)\)/g,h=[],d=/f$/,c=/\.(\d)/,p=(null==(o=null==i?void 0:i.options)?void 0:o.lang)||eu.lang,u=(null==i?void 0:i.time)||ef,f=(null==i?void 0:i.numberFormatter)||eW.bind(i),g=function(t){var i;return void 0===t&&(t=""),"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:eR(t)?t.slice(1,-1):tR(t,e))},v=0;null!==(r=a.exec(t));){var m=r,y=l.exec(r[1]);y&&(r=y,s=!0),(null==n?void 0:n.isBlock)||(n={ctx:e,expression:r[1],find:r[0],isBlock:"#"===r[1].charAt(0),start:r.index,startInner:r.index+r[0].length,length:r[0].length});var x=(n.isBlock?m:r)[1].split(" ")[0].replace("#","");eD[x]&&(n.isBlock&&x===n.fn&&v++,n.fn||(n.fn=x));var b="else"===r[1];if(n.isBlock&&n.fn&&(r[1]==="/".concat(n.fn)||b))if(v)!b&&v--;else{var M=n.startInner,k=t.substr(M,r.index-M);void 0===n.body?(n.body=k,n.startInner=r.index+r[0].length):n.elseBody=k,n.find+=k+r[0],b||(h.push(n),n=void 0)}else n.isBlock||h.push(n);if(y&&!(null==n?void 0:n.isBlock))break}return h.forEach(function(o){var r,n,s=o.body,a=o.elseBody,h=o.expression,v=o.fn;if(v){var m=[o],y=[],x=h.length,b=0,M=void 0;for(n=0;n<=x;n++){var k=h.charAt(n);M||'"'!==k&&"'"!==k?M===k&&(M=""):M=k,M||" "!==k&&n!==x||(y.push(h.substr(b,n-b)),b=n+1)}for(n=eD[v].length;n--;)m.unshift(g(y[n+1]));r=eD[v].apply(e,m),o.isBlock&&"boolean"==typeof r&&(r=eN(r?s:a,e,i))}else{var w=eR(h)?[h]:h.split(":");if(r=g(w.shift()||""),w.length&&"number"==typeof r){var A=w.join(":");if(d.test(A)){var S=parseInt((A.match(c)||["","-1"])[1],10);null!==r&&(r=f(r,S,p.decimalPoint,A.indexOf(",")>-1?p.thousandsSep:""))}else r=u.dateFormat(A,r)}l.lastIndex=0,l.test(o.find)&&tY(r)&&(r='"'.concat(r,'"'))}t=t.replace(o.find,tJ(r,""))}),s?eN(t,e,i):t}function eW(t,e,i,o){e*=1;var r,n,s,a,l=(t=+t||0).toString().split("e").map(Number),h=l[0],d=l[1],c=(null==(r=this===null||void 0===this?void 0:this.options)?void 0:r.lang)||eu.lang,p=(t.toString().split(".")[1]||"").split("e")[0].length,u=e,f={};null!=i||(i=c.decimalPoint),null!=o||(o=c.thousandsSep),-1===e?e=Math.min(p,20):tF(e)?e&&d<0&&((a=e+d)>=0?(h=+h.toExponential(a).split("e")[0],e=a):(h=Math.floor(h),t=e<20?+(h*Math.pow(10,d)).toFixed(e):0,d=0)):e=2,d&&(null!=e||(e=2),t=h),tF(e)&&e>=0&&(f.minimumFractionDigits=e,f.maximumFractionDigits=e),""===o&&(f.useGrouping=!1);var g=o||i,v=g?"en":(this===null||void 0===this?void 0:this.locale)||c.locale||eI,m=JSON.stringify(f)+v;return s=(null!=(n=ez[m])?n:ez[m]=new Intl.NumberFormat(v,f)).format(t),g&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,null!=o?o:",").replace("_.",null!=i?i:".")),(e||0!=+s)&&(!(d<0)||u)||(s="0"),d&&0!=+s&&(s+="e"+(d<0?"":"+")+d),s}var eG={dateFormat:function(t,e,i){return ef.dateFormat(t,e,i)},format:eN,helpers:eD,numberFormat:eW};(H||(H={})).distribute=function t(e,i,o){var r,n,s,a=e,l=a.reducedLen||i,h=function(t,e){return t.target-e.target},d=[],c=e.length,p=[],u=d.push,f=!0,g=0;for(r=c;r--;)g+=e[r].size;if(g>l){if(t6(e,function(t,e){return(e.rank||0)-(t.rank||0)}),e[0].rank===e[e.length-1].rank)for(var v=[[0,c-1]];v.length&&g>l;){var m=v.shift();if(!m)break;n=e[r=Math.floor((m[0]+m[1])/2)],t0(p,r)&&(g-=n.size),m[0]<r&&v.push([m[0],r-1]),r<m[1]&&v.push([r+1,m[1]])}else for(r=c-1;g>l&&r>=0;)n=e[r],t0(p,r)&&(g-=n.size),r--;p.sort(function(t,e){return e-t}).forEach(function(t){return u.apply(d,e.splice(t,1))})}for(t6(e,h),e=e.map(function(t){return{size:t.size,targets:[t.target],align:tJ(t.align,.5)}});f;){for(r=e.length;r--;)n=e[r],s=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=tb(s-n.size*n.align,0,i-n.size);for(r=e.length,f=!1;r--;)r>0&&e[r-1].pos+e[r-1].size>e[r].pos&&(e[r-1].size+=e[r].size,e[r-1].targets=e[r-1].targets.concat(e[r].targets),e[r-1].align=.5,e[r-1].pos+e[r-1].size>i&&(e[r-1].pos=i-e[r-1].size),e.splice(r,1),f=!0)}return u.apply(a,d),r=0,e.some(function(e){var n=0;return(e.targets||[]).some(function(){return(a[r].pos=e.pos+n,void 0!==o&&Math.abs(a[r].pos-a[r].target)>o)?(a.slice(0,r+1).forEach(function(t){return delete t.pos}),a.reducedLen=(a.reducedLen||i)-.1*i,a.reducedLen>.1*i&&t(a,i,o),!0):(n+=a[r].size,r++,!1)})}),t6(a,h),a};var eH=H,eX=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},eF=tc.deg2rad,eY=tc.doc,ej=tc.svg,e_=tc.SVG_NS,eU=tc.win,eV=tc.isFirefox,eZ=function(){function t(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=e_,this.element="div"===e||"body"===e?tk(e):eY.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},tB(this,"afterInit")}return t.prototype._defaultGetter=function(t){var e=tJ(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e,i=this.renderer,o=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(o),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return -1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i,o){void 0===o&&(o=!0);var r=this.renderer,n=r.alignedObjects,s=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);var a=!i||tY(i)?i||"renderer":void 0;a&&(s&&t0(n,this),i=void 0);var l=tJ(i,r[a],r),h=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*tI(t.align),d=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*tI(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(h),c[e?"translateY":"y"]=Math.round(d),o&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,r=ew(tJ(e,this.renderer.globalAnimation,!0)),n=r.defer;return eY.hidden&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),t9(function(){o.element&&eS(o,t,r)},n)):(this.attr(t,void 0,i||r.complete),tK(t,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var i=t.indexOf(" "),o=t.substring(i+1),r=t.substring(0,i);if(r&&"none"!==r&&tc.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var n=eY.createElementNS(e_,"tspan");tx(n,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":r,"stroke-linejoin":"round"});var s=e.querySelector("textPath")||e;[].forEach.call(s.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),n.appendChild(e)});var a=0;[].forEach.call(s.querySelectorAll("text tspan"),function(t){a+=Number(t.getAttribute("dy"))});var l=eY.createElementNS(e_,"tspan");l.textContent="​",tx(l,{x:Number(e.getAttribute("x")),dy:-a}),n.appendChild(l),s.insertBefore(n,s.firstChild)}},t.prototype.attr=function(e,i,o,r){var n,s,a,l=this.element,h=t.symbolCustomAttribs,d=this;return"string"==typeof e&&void 0!==i&&(n=e,(e={})[n]=i),"string"==typeof e?d=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(tK(e,function(t,i){a=!1,r||eA(this,i),this.symbolName&&-1!==h.indexOf(i)&&(s||(this.symbolAttr(e),s=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,t,i,l)},this),this.afterSetters()),o&&o.call(this),d},t.prototype.clip=function(t){if(t&&!t.clipPath){var e=er()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);tL(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?"url(".concat(this.renderer.url,"#").concat(t.id,")"):"none")},t.prototype.crisp=function(t,e){e=Math.round(e||t.strokeWidth||0);var i=t.x||this.x||0,o=t.y||this.y||0,r=(t.width||this.width||0)+i,n=(t.height||this.height||0)+o,s=tw(i,e),a=tw(o,e);return tL(t,{x:s,y:a,width:tw(r,e)-s,height:tw(n,e)-a}),tS(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var o,r,n,s,a,l,h,d,c,p,u=this.renderer,f=[];tB(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],a=u.gradients,l=t.stops,d=i.radialReference,tj(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&d&&!tS(n.gradientUnits)&&(s=n,n=tV(n,u.getRadialAttr(d,s),{gradientUnits:"userSpaceOnUse"})),tK(n,function(t,e){"id"!==e&&f.push(e,t)}),tK(l,function(t){f.push(t)}),a[f=f.join(",")])c=a[f].attr("id");else{n.id=c=er();var g=a[f]=u.createElement(r).attr(n).add(u.defs);g.radAttr=s,g.stops=[],l.forEach(function(t){var e=t[0],i=t[1];0===i.indexOf("rgba")?(i=(o=ex.parse(i)).get("rgb"),h=o.get("a")):h=1;var r=u.createElement("stop").attr({offset:e,"stop-color":i,"stop-opacity":h}).add(g);g.stops.push(r)})}p="url("+u.url+"#"+c+")",i.setAttribute(e,p),i.gradient=f,t.toString=function(){return p}}})},t.prototype.css=function(t){var e,i=this.styles,o={},r=this.element,n=this.renderer,s=!i;if(i&&tK(t,function(t,e){i&&i[e]!==t&&(o[e]=t,s=!0)}),s){i&&(t=tL(i,o)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=tQ(t.width)),tL(this.styles,t),e&&!ej&&n.forExport&&delete t.width;var a=eV&&t.fontSize||null;a&&(tF(a)||/^\d+$/.test(a))&&(t.fontSize+="px");var l=tV(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(function(t){return l&&delete l[t]}),l.color&&(l.fill=l.color,delete l.color)),tA(r,l)}return this.added&&("text"===this.element.nodeName&&n.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this},t.prototype.dashstyleSetter=function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){var o=(t=t.toLowerCase()).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=o.length;e--;)o[e]=""+tQ(o[e])*tJ(i,NaN);t=o.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element,i=void 0===e?{}:e,o=t.renderer,r=t.stops,n=i.ownerSVGElement;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,eA(t),t.clipPath&&n){var s=t.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(s.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=s.destroy()}if(r){for(var a=0;a<r.length;a++)r[a].destroy();r.length=0}t.safeRemoveChild(i),t.alignOptions&&tO(o.alignedObjects,t),tK(t,function(e,i){var o,r,n;((null==(o=t[i])?void 0:o.parentGroup)===t||-1!==["connector","foreignObject"].indexOf(i))&&(null==(n=null==(r=t[i])?void 0:r.destroy)||n.call(r)),delete t[i]})},t.prototype.dSetter=function(t,e,i){tj(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return(null==e?void 0:e.join)?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.hrefSetter=function(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)},t.prototype.getBBox=function(e,i){var o,r,n,s=this.element,a=this.renderer,l=this.styles,h=this.textStr,d=a.cache,c=a.cacheKeys,p=s.namespaceURI===this.SVG_NS,u=tJ(i,this.rotation,0),f=a.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):l.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,l.fontWeight,l.lineClamp,l.textOverflow,f,u]);if(g&&!e&&(o=d[g]),!o||o.polygon){if(p||a.forExport){try{n=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&tA(e,{display:t})},t_(n)&&n("none"),o=s.getBBox?tL({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},t_(n)&&n("")}catch(t){}(!o||o.width<0)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();r=o.height,p&&(o.height=r=({"11px,17":14,"13px,20":16})[""+(f||"")+",".concat(Math.round(r))]||r),u&&(o=this.getRotatedBox(o,u));var v={bBox:o};tB(this,"afterGetBBox",v),o=v.bBox}if(g&&(""===h||o.height>0)){for(;c.length>250;)delete d[c.shift()];d[g]||c.push(g),d[g]=o}return o},t.prototype.getBBoxCacheKey=function(t){if(tS(this.textStr)){var e=""+this.textStr;return -1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),eX([e],t,!0).join(",")}},t.prototype.getRotatedBox=function(t,e){var i=t.x,o=t.y,r=t.width,n=t.height,s=this.alignValue,a=this.translateY,l=this.rotationOriginX,h=this.rotationOriginY,d=tI(s),c=Number(this.element.getAttribute("y")||0)-(a?0:o),p=e*eF,u=(e-90)*eF,f=Math.cos(p),g=Math.sin(p),v=r*f,m=r*g,y=Math.cos(u),x=Math.sin(u),b=[void 0===l?0:l,void 0===h?0:h].map(function(t){return[t-t*f,t*g]}),M=b[0],k=M[0],w=M[1],A=b[1],S=A[0],T=i+d*(r-v)+k+A[1]+c*y,C=T+v,P=C-n*y,O=P-v,L=o+c-d*m-w+S+c*x,E=L+m,B=E-n*x,I=B-m,D=Math.min(T,C,P,O),z=Math.min(L,E,B,I),R=Math.max(T,C,P,O)-D,N=Math.max(L,E,B,I)-z;return{x:D,y:z,width:R,height:N,polygon:[[T,L],[C,E],[P,B],[O,I]]}},t.prototype.getStyle=function(t){return eU.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=tv(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){var o=Number(Number(t).toFixed(3));this.opacity=o,i.setAttribute(e,o)},t.prototype.reAlign=function(){var t;(null==(t=this.alignOptions)?void 0:t.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(tY(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,(null==e?void 0:e.radAttr)&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.shadow=function(t){var e,i=this.renderer,o=tV((null==(e=this.parentGroup)?void 0:e.rotation)===90?{offsetX:-1,offsetY:-1}:{},tU(t)?t:{}),r=i.shadowDefinition(o);return this.attr({filter:t?"url(".concat(i.url,"#").concat(r,")"):"none"})},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=tQ(e):""!==e&&(tx(t=eY.createElementNS(e_,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i},t.prototype.symbolAttr=function(e){var i=this;t.symbolCustomAttribs.forEach(function(t){i[t]=tJ(e[t],i[t])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||eY.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=t2(tJ(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateTransform=function(t){void 0===t&&(t="transform");var e,i,o,r,n=this.element,s=this.foreignObject,a=this.matrix,l=this.rotation,h=void 0===l?0:l,d=this.rotationOriginX,c=this.rotationOriginY,p=this.scaleX,u=this.scaleY,f=this.text,g=this.translateX,v=this.translateY,m=["translate(".concat(void 0===g?0:g,",").concat(void 0===v?0:v,")")];tS(a)&&m.push("matrix("+a.join(",")+")"),h&&m.push("rotate("+h+" "+(null!=(i=null!=(e=null!=d?d:n.getAttribute("x"))?e:this.x)?i:0)+" "+(null!=(r=null!=(o=null!=c?c:n.getAttribute("y"))?o:this.y)?r:0)+")"),(tS(p)||tS(u))&&m.push("scale(".concat(null!=p?p:1," ").concat(null!=u?u:1,")")),m.length&&!(f||this).textPath&&((null==s?void 0:s.element)||n).setAttribute(t,m.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i,o,r,n,s,a=this.element,l=this.parentGroup,h=this.renderer,d=(null==l?void 0:l.element)||h.box,c=d===h.box,p=!1,u=this.added;if(tS(t)?(a.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):tS(this[e])&&a.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&l&&(l.handleZ=!0),s=(i=d.childNodes).length-1;s>=0&&!p;s--)n=!tS(r=(o=i[s]).getAttribute("data-z-index")),o!==a&&(tS(t)&&t<0&&n&&!c&&!s?(d.insertBefore(a,i[s]),p=!0):(tS(t)&&parseFloat(r||"")<=t||n&&(!tS(t)||t>=0))&&(d.insertBefore(a,i[s+1]),p=!0));p||(d.insertBefore(a,i[3*!!c]),p=!0)}return p},t.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t}();eZ.prototype.strokeSetter=eZ.prototype.fillSetter,eZ.prototype.yGetter=eZ.prototype.xGetter,eZ.prototype.matrixSetter=eZ.prototype.rotationOriginXSetter=eZ.prototype.rotationOriginYSetter=eZ.prototype.rotationSetter=eZ.prototype.scaleXSetter=eZ.prototype.scaleYSetter=eZ.prototype.translateXSetter=eZ.prototype.translateYSetter=eZ.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};var eK=tc.charts,eq=["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],e$=[null,"#00e272","#efdf00"],eJ=function(t,e){var i=function(t){var i="";return tK(e.light,function(o,r){i+=t&&o!==e.dark[r]?"  ".concat(r,": light-dark(").concat(o,", ").concat(e.dark[r],");\n"):"  ".concat(r,": ").concat(o,";\n")}),i};return""+(t||":root")+" {\n"+i()+"\n}\n@supports (color: light-dark(#fff, #000)) {\n  "+(t||":root")+" {\n"+i(!0)+"\n  }\n}\n.highcharts-container {\n  color-scheme: light dark;\n}\n.highcharts-light .highcharts-container {\n  color-scheme: light;\n}\n.highcharts-dark .highcharts-container {\n  color-scheme: dark;\n}"},eQ=function(){function t(t,e){this.defaultOptions=tp,this.options=tV(tp),this.cssVars={light:{},dark:{}},this.renderer=t,this.update(e)}return t.prototype.injectCSS=function(t){for(var e,i,o,r,n=this.cssVars,s=this.renderer,a=Object.keys(tP(t,this.defaultOptions)).length>0,l=Math.max((null==(e=t.colors)?void 0:e.length)||0,eq.length),h="light",d=function(t,e){tY(t)&&(e=e.replace(/([0-9]+)/g,"-$1").replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())}),n[h]["--highcharts-".concat(e)]=t)},c=0,p=["light","dark"];c<p.length;c++)!function(e){var s=t[e]||{},a={},c=new ex((null==s?void 0:s.neutralColor)||""),p=new ex((null==s?void 0:s.backgroundColor)||""),u=new ex((null==s?void 0:s.highlightColor)||"");h=e,[3,5,10,20,40,60,80,100].forEach(function(t){a["neutralColor".concat(t)]=p.tweenTo(c,t/100),a["highlightColor".concat(t)]=p.tweenTo(u,t/100)});for(var f=0;f<l;f++)d((null==(i=null==s?void 0:s.colors)?void 0:i[f])||(null==(o=t.colors)?void 0:o[f])||(null==(r="dark"===e?e$:[])?void 0:r[f])||eq[f]||"#888a","color".concat(f));tK(s,d),tK(a,d),"light"===e&&tL(n.dark,n.light)}(p[c]);var u=s.defs.element,f=a?'*[data-highcharts-chart="'.concat(s.chartIndex,'"]'):"",g=u.querySelector("style.highcharts-palette")||s.box.ownerDocument.createElement("style");g.parentNode||(g.nonce="highcharts",g.className="highcharts-palette",u.appendChild(g)),g.textContent=eJ(f,n)},t.prototype.update=function(t){var e=this.renderer.box.parentElement,i=null==eK?void 0:eK[this.renderer.chartIndex];t=tV(!0,this.options,t),i&&(i.options.palette=t),!1!==t.injectCSS&&this.injectCSS(t),e&&(tY(t.colorScheme)&&["light","dark","inherit"].includes(t.colorScheme)?e.style.colorScheme=t.colorScheme:e.style.removeProperty("color-scheme"))},t}(),e0=(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),e1=function(t){function e(i,o,r,n,s,a,l,h,d,c){var p,u=t.call(this,i,"g")||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.doUpdate=!1,u.textStr=o,u.x=r,u.y=n,u.anchorX=a,u.anchorY=l,u.baseline=d,u.className=c,u.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&u.addClass("highcharts-"+c),u.text=i.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof s&&((p=/^url\((.*?)\)$/.test(s))||u.renderer.symbols[s])&&(u.symbolKey=s),u.bBox=e.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=i.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return e0(e,t),e.prototype.alignSetter=function(t){var e=tI(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&tF(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())},e.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},e.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},e.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},e.prototype.css=function(t){if(t){var i={};t=tV(t),e.textProps.forEach(function(e){void 0!==t[e]&&(i[e]=t[e],delete t[e])}),this.text.css(i),"fontSize"in i||"fontWeight"in i||"width"in i?this.updateTextPadding():"textOverflow"in i&&this.updateBoxSize(),"color"in i&&this.updateBackground()}return eZ.prototype.css.call(this,t)},e.prototype.destroy=function(){t5(this.element,"mouseenter"),t5(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),eZ.prototype.destroy.call(this)},e.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},e.prototype.getBBox=function(t,e){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();var i=this.padding,o=this.height,r=this.translateX,n=this.translateY,s=this.width,a=tJ(this.paddingLeft,i),l=null!=e?e:this.rotation||0,h={width:void 0===s?0:s,height:void 0===o?0:o,x:(void 0===r?0:r)+this.bBox.x-a,y:(void 0===n?0:n)+this.bBox.y-i+this.baselineOffset};return l&&(h=this.getRotatedBox(h,l)),h},e.prototype.getCrispAdjust=function(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},e.prototype.heightSetter=function(t){this.heightSetting=t,this.doUpdate=!0},e.prototype.afterSetters=function(){t.prototype.afterSetters.call(this),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1),this.updateBackground()},e.prototype.onAdd=function(){this.text.add(this),this.attr({text:tJ(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&tS(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},e.prototype.paddingSetter=function(t,e){tF(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},e.prototype.rSetter=function(t,e){this.boxAttr(e,t)},e.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},e.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},e.prototype["text-alignSetter"]=function(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()},e.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()},e.prototype.updateBackground=function(){var t;"contrast"===this.fill&&(null==(t=this.box)||t.attr({fill:this.renderer.getContrast(this.text.styles.color||"#000"),"fill-opacity":.65}))},e.prototype.updateBoxSize=function(){var t,i=this.text,o={},r=this.padding,n=this.bBox=(!tF(this.widthSetting)||!tF(this.heightSetting)||this.textAlign)&&tS(i.textStr)?i.getBBox(void 0,0):e.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||n.height||0)+2*r;var s=this.renderer.fontMetrics(i);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||s).b,n.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!i.textPath){if(!this.box){var a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}o.x=t=this.getCrispAdjust(),o.y=(this.baseline?-this.baselineOffset:0)+t,o.width=Math.round(this.width),o.height=Math.round(this.height),this.box.attr(tL(o,this.deferredAttr)),this.deferredAttr={}}},e.prototype.updateTextPadding=function(){var t,e,i=this.text,o=i.styles.textAlign||this.textAlign;if(!i.textPath){this.updateBoxSize();var r=this.baseline?0:this.baselineOffset,n=(null!=(t=this.paddingLeft)?t:this.padding)+tI(o)*(null!=(e=this.widthSetting)?e:this.bBox.width);(n!==i.x||r!==i.y)&&(i.attr({align:o,x:n}),void 0!==r&&i.attr("y",r)),i.x=n,i.y=r}},e.prototype.widthSetter=function(t){this.widthSetting=tF(t)?t:void 0,this.doUpdate=!0},e.prototype.getPaddedWidth=function(){var t=this.padding,e=tJ(this.paddingLeft,t),i=tJ(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i},e.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},e.prototype.ySetter=function(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},e.emptyBBox={width:0,height:0,x:0,y:0},e.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],e}(eZ);function e2(t,e,i,o,r){var n=[];if(r){var s=r.start||0,a=r.end||0,l=tJ(r.r,i),h=tJ(r.r,o||i),d=1e-4>Math.abs(a-s-2*Math.PI);d&&(s=Math.PI/2,a=2.5*Math.PI-1e-4);var c=r.innerR,p=tJ(r.open,d),u=d?0:Math.cos(s),f=d?1:Math.sin(s),g=d?0:Math.cos(a),v=d?1:Math.sin(a),m=tJ(r.longArc,a-s-Math.PI<1e-4?0:1),y=["A",l,h,0,m,tJ(r.clockwise,1),t+(d?.001:l*g),e+h*v];y.params={start:s,end:a,cx:t,cy:e},n.push(["M",t+l*u,e+h*f],y),tS(c)&&((y=["A",c,c,0,m,tS(r.clockwise)?1-r.clockwise:0,t+(d?-.001:c*u),e+c*f]).params={start:a,end:s,cx:t,cy:e},n.push(p?["M",t+c*g,e+c*v]:["L",t+c*g,e+c*v],y)),p||n.push(["Z"])}return n}function e5(t,e,i,o,r){return(null==r?void 0:r.r)?e3(t,e,i,o,r):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]}function e3(t,e,i,o,r){var n=(null==r?void 0:r.r)||0;return[["M",t+n,e],["L",t+i-n,e],["A",n,n,0,0,1,t+i,e+n],["L",t+i,e+o-n],["A",n,n,0,0,1,t+i-n,e+o],["L",t+n,e+o],["A",n,n,0,0,1,t,e+o-n],["L",t,e+n],["A",n,n,0,0,1,t+n,e],["Z"]]}var e6={arc:e2,callout:function(t,e,i,o,r){var n=Math.min((null==r?void 0:r.r)||0,i,o),s=n+6,a=null==r?void 0:r.anchorX,l=(null==r?void 0:r.anchorY)||0,h=e3(t,e,i,o,{r:n});if(!tF(a)||a<i&&a>0&&l<o&&l>0)return h;if(t+a>i-s)if(l>e+s&&l<e+o-s)h.splice(3,1,["L",t+i,l-6],["L",t+i+6,l],["L",t+i,l+6],["L",t+i,e+o-n]);else if(a<i){var d=l<e+s,c=d?e:e+o,p=d?2:5;h.splice(p,0,["L",a,l],["L",t+i-n,c])}else h.splice(3,1,["L",t+i,o/2],["L",a,l],["L",t+i,o/2],["L",t+i,e+o-n]);else if(t+a<s)if(l>e+s&&l<e+o-s)h.splice(7,1,["L",t,l+6],["L",t-6,l],["L",t,l-6],["L",t,e+n]);else if(a>0){var d=l<e+s,c=d?e:e+o,p=d?1:6;h.splice(p,0,["L",a,l],["L",t+n,c])}else h.splice(7,1,["L",t,o/2],["L",a,l],["L",t,o/2],["L",t,e+n]);else l>o&&a<i-s?h.splice(5,1,["L",a+6,e+o],["L",a,e+o+6],["L",a-6,e+o],["L",t+n,e+o]):l<0&&a>s&&h.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-n,e]);return h},circle:function(t,e,i,o){return e2(t+i/2,e+o/2,i/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:e5,roundedRect:e3,square:e5,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}},e9=tc.doc,e4=tc.SVG_NS,e8=tc.win,e7=function(t,e){return t.substring(0,e)+"…"},it=function(){function t(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=null==e?void 0:e.lineHeight,this.textOutline=null==e?void 0:e.textOutline,this.ellipsis=(null==e?void 0:e.textOverflow)==="ellipsis",this.lineClamp=null==e?void 0:e.lineClamp,this.noWrap=(null==e?void 0:e.whiteSpace)==="nowrap"}return t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,i=t.renderer,o=tJ(t.textStr,"").toString(),r=-1!==o.indexOf("<"),n=e.childNodes,s=!t.added&&i.box,a=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(a!==t.textCache){t.textCache=a,delete t.actualWidth;for(var l=n.length;l--;)e.removeChild(n[l]);if(r||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))){if(""!==o){s&&s.appendChild(e);var h=new eB(o);this.modifyTree(h.nodes),h.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(e)}}else e.appendChild(e9.createTextNode(this.unescapeEntities(o)));tY(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,o=tx(i.element,"x");for(i.firstLineMetrics=void 0;t=i.element.firstChild;)if(/^[\s\u200B]*$/.test(t.textContent||" "))i.element.removeChild(t);else break;[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(t.previousSibling)),tx(t,{dy:e.getLineHeight(t.nextSibling),x:o}))});var r=this.width||0;if(r){var n=function(t,n){var s,a=t.textContent||"",l=a.replace(/([^\^])-/g,"$1- ").split(" "),h=!e.noWrap&&(l.length>1||i.element.childNodes.length>1),d=e.getLineHeight(n),c=Math.max(0,r-.8*d),p=0,u=i.actualWidth;if(h){for(var f=[],g=[];n.firstChild&&n.firstChild!==t;)g.push(n.firstChild),n.removeChild(n.firstChild);for(;l.length;)if(l.length&&!e.noWrap&&p>0&&(f.push(t.textContent||""),t.textContent=l.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,l,0===p&&u||0,r,c,function(t,e){return l.slice(0,e).join(" ").replace(/- /g,"-")}),u=i.actualWidth,p++,e.lineClamp&&p>=e.lineClamp){l.length&&(e.truncate(t,t.textContent||"",void 0,0,r,c,e7),t.textContent=(null==(s=t.textContent)?void 0:s.replace("…",""))+"…");break}g.forEach(function(e){n.insertBefore(e,t)}),f.forEach(function(e){n.insertBefore(e9.createTextNode(e),t);var i=e9.createElementNS(e4,"tspan");i.textContent="​",tx(i,{dy:d,x:o}),n.insertBefore(i,t)})}else e.ellipsis&&a&&e.truncate(t,a,void 0,0,r,c,e7)},s=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===e8.Node.TEXT_NODE?n(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),s(e))})};s(i.element)}},t.prototype.getLineHeight=function(t){var e=t.nodeType===e8.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h},t.prototype.modifyTree=function(t){var e=this,i=function(o,r){var n=o.attributes,s=void 0===n?{}:n,a=o.children,l=o.style,h=void 0===l?{}:l,d=o.tagName,c=e.renderer.styledMode;if("b"===d||"strong"===d?c?s.class="highcharts-strong":h.fontWeight="bold":("i"===d||"em"===d)&&(c?s.class="highcharts-emphasized":h.fontStyle="italic"),(null==h?void 0:h.color)&&(h.fill=h.color),"br"===d){s.class="highcharts-br",o.textContent="​";var p=t[r+1];(null==p?void 0:p.textContent)&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===d&&a&&a.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:a,tagName:"tspan"}]);"#text"!==d&&"a"!==d&&(o.tagName="tspan"),tL(o,{attributes:s,style:h}),a&&a.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),tB(this.svgElement,"afterModifyTree",{nodes:t})},t.prototype.truncate=function(t,e,i,o,r,n,s){var a,l,h=this.svgElement,d=h.rotation,c=[],p=i&&!o?1:0,u=(e||i||"").length,f=u;i||(r=n);var g=function(e,r){var n=r||e,s=t.parentNode;if(s&&void 0===c[n]&&s.getSubStringLength)try{c[n]=o+s.getSubStringLength(0,i?n+1:n)}catch(t){}return c[n]};if(h.rotation=0,o+(l=g(t.textContent.length))>r){for(;p<=u;)f=Math.ceil((p+u)/2),i&&(a=s(i,f)),l=g(f,a&&a.length-1),p===u?p=u+1:l>r?u=f-1:p=f;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=a||s(e||i,f)),this.ellipsis&&l>r&&this.truncate(t,t.textContent||"",void 0,0,r,n,e7)}i&&i.splice(0,f),h.actualWidth=l,h.rotation=d},t.prototype.unescapeEntities=function(t,e){return tK(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},t}(),ie=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},ii=tc.charts,io=tc.deg2rad,ir=tc.doc,is=tc.isFirefox,ia=tc.isMS,il=tc.isWebKit,ih=tc.noop,id=tc.SVG_NS,ic=tc.symbolSizes,ip=tc.win,iu=function(){function t(t,e,i,o,r,n,s,a,l){this.x=0,this.y=0;var h,d,c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),p=c.element;t.appendChild(p),tx(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&tx(p,"xmlns",this.SVG_NS),this.box=p,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(ir.createTextNode("Created with Highcharts 13.0.0")),this.defs=this.createElement("defs").add(),this.allowHTML=n,this.forExport=r,this.styledMode=s,this.chartIndex=l||0,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,i,!1),s||(c.css(this.getStyle(o||{})),this.palette=new eQ(this,a||eu.palette)),is&&t.getBoundingClientRect&&((h=function(){tA(t,{left:0,top:0}),d=t.getBoundingClientRect(),tA(t,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})})(),this.unSubPixelFix=tv(ip,"resize",h))}return t.prototype.definition=function(t){return new eB([t]).addToDOM(this.defs.element)},t.prototype.getReferenceURL=function(){if((is||il)&&ir.getElementsByTagName("base").length){if(!tS(X)){var t=er(),e=new eB([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(t,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(ir.body);tA(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=ir.elementFromPoint(6,6);X=(null==i?void 0:i.id)==="hitme",ir.body.removeChild(e)}if(X)return t2(ip.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""},t.prototype.getStyle=function(t){return this.style=tL({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style},t.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},t.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},t.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),tT(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects.length=0,null},t.prototype.createElement=function(t){return new this.Element(this,t)},t.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},t.prototype.shadowDefinition=function(t){var e=ie(["highcharts-drop-shadow-".concat(this.chartIndex)],Object.keys(t).map(function(e){return""+e+"-".concat(t[e])}),!0).join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=tV({color:"#000000",offsetX:0,offsetY:2,opacity:.05,width:6},t);return this.defs.element.querySelector("#".concat(e))||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e},t.prototype.getShadowFilterContent=function(t){return[{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}}]},t.prototype.buildText=function(t){new it(t).buildSVG()},t.prototype.getContrast=function(t){if("transparent"===t)return"#000000";var e=ex.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(tF(e[0])||!ex.useColorMix){var o=e.map(function(t){var e=t/255;return e<=.04?e/12.92:Math.pow((e+.055)/1.055,2.4)}),r=.2126*o[0]+.7152*o[1]+.0722*o[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"},t.prototype.button=function(t,e,i,o,r,n,s,a,l,h){void 0===r&&(r={});var d=this.label(t,e,i,l,void 0,void 0,h,void 0,"button"),c=this.styledMode,p=arguments,u=0;r=tV(eu.global.buttonTheme,r),c&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);var f=r.states||{},g=r.style||{};delete r.states,delete r.style;var v=[eB.filterUserAttributes(r)],m=[g];return c||["hover","select","disabled"].forEach(function(t,e){v.push(tV(v[0],eB.filterUserAttributes(p[e+5]||f[t]||{}))),m.push(v[e+1].style),delete v[e+1].style}),tv(d.element,ia?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),tv(d.element,ia?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){if(void 0===t&&(t=0),1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!c){d.attr(v[t]);var e=m[t];tU(e)&&d.css(e)}},d.attr(v[0]),!c&&(d.css(tL({cursor:"default"},g)),h&&d.text.css({pointerEvents:"none"})),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&(null==o||o.call(d,t))})},t.prototype.crispLine=function(t,e){var i=t[0],o=t[1];return tS(i[1])&&i[1]===o[1]&&(i[1]=o[1]=tw(i[1],e)),tS(i[2])&&i[2]===o[2]&&(i[2]=o[2]=tw(i[2],e)),t},t.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return tj(t)?e.d=t:tU(t)&&tL(e,t),this.createElement("path").attr(e)},t.prototype.circle=function(t,e,i){var o=tU(t)?t:void 0===t?{}:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},r.attr(o)},t.prototype.arc=function(t,e,i,o,r,n){tU(t)?(e=(s=t).y,i=s.r,o=s.innerR,r=s.start,n=s.end,t=s.x):s={innerR:o,start:r,end:n};var s,a=this.symbol("arc",t,e,i,i,s);return a.r=i,a},t.prototype.rect=function(t,e,i,o,r,n){var s=tU(t)?t:void 0===t?{}:{x:t,y:e,r:r,width:Math.max(i||0,0),height:Math.max(o||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==n&&(s["stroke-width"]=n,tL(s,a.crisp(s))),s.fill="none"),a.rSetter=function(t,e,i){a.r=t,tx(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(s)},t.prototype.roundedRect=function(t){return this.symbol("roundedRect").attr(t)},t.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:tJ(i,!0)?void 0:0}),this.alignElements()},t.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},t.prototype.image=function(t,e,i,o,r,n){var s={preserveAspectRatio:"none"};tF(e)&&(s.x=e),tF(i)&&(s.y=i),tF(o)&&(s.width=o),tF(r)&&(s.height=r);var a=this.createElement("image").attr(s),l=function(e){a.attr({href:t}),n.call(a,e)};if(n){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});var h=new ip.Image;tv(h,"load",l),h.src=t,h.complete&&l({})}else a.attr({href:t});return a},t.prototype.symbol=function(t,e,i,o,r,n){var s,a,l,h,d,c,p=this,u=/^url\((.*?)\)$/,f=u.test(t),g=!f&&(this.symbols[t]?t:"circle"),v=g&&this.symbols[g];if(v)"number"==typeof e&&(h=v.call(this.symbols,e||0,i||0,o||0,r||0,n)),l=this.path(h),p.styledMode||l.attr("fill","none"),tL(l,{symbolName:g||void 0,x:e,y:i,width:o,height:r}),n&&tL(l,n);else if(f){d=t.match(u)[1];var m=l=this.image(d);m.imgwidth=tJ(null==n?void 0:n.width,null==(s=ic[d])?void 0:s.width),m.imgheight=tJ(null==n?void 0:n.height,null==(a=ic[d])?void 0:a.height),c=function(t){return t.attr({width:t.width,height:t.height})},["width","height"].forEach(function(t){m[""+t+"Setter"]=function(t,e){this[e]=t;var i=this.alignByTranslate,o=this.element,r=this.width,s=this.height,a=this.imgwidth,l=this.imgheight,h="width"===e?a:l,d=1;n&&"within"===n.backgroundSize&&r&&s&&a&&l?(d=Math.min(r/a,s/l),tx(o,{width:Math.round(a*d),height:Math.round(l*d)})):o&&h&&o.setAttribute(e,h),!i&&a&&l&&this.translate(((r||0)-a*d)/2,((s||0)-l*d)/2)}}),tS(e)&&m.attr({x:e,y:i}),m.isImg=!0,tS(m.imgwidth)&&tS(m.imgheight)?c(m):(m.attr({width:0,height:0}),tk("img",{onload:function(){var t=ii[p.chartIndex];0===this.width&&(tA(this,{position:"absolute",top:"-999em"}),ir.body.appendChild(this)),ic[d]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&c(m),this.parentNode&&this.parentNode.removeChild(this),p.asyncCounter--,p.asyncCounter||!t||t.hasLoaded||t.onload()},src:d}),this.asyncCounter++)}return l},t.prototype.clipRect=function(t,e,i,o){return this.rect(t,e,i,o,0)},t.prototype.text=function(t,e,i,o){var r={};if(o&&(this.allowHTML||!this.forExport))return this.html(t,e,i);r.x=Math.round(e||0),i&&(r.y=Math.round(i)),tS(t)&&(r.text=t);var n=this.createElement("text").attr(r);return o&&(!this.forExport||this.allowHTML)||(n.xSetter=function(t,e,i){for(var o=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0,s=void 0;n<o.length;n++)(s=o[n]).getAttribute(e)===r&&s.setAttribute(e,t);i.setAttribute(e,t)}),n},t.prototype.fontMetrics=function(t){var e=tF(t)?t:tQ(eZ.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),o=Math.round(.8*i);return{h:i,b:o,f:e}},t.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*io),4)),{x:-t/3*Math.sin(e*io),y:o}},t.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)tY(i[0])&&tF(t[r])&&i.length===o[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e},t.prototype.label=function(t,e,i,o,r,n,s,a,l){return new e1(this,t,e,i,o,r,n,s,a,l)},t.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},t}();tL(iu.prototype,{Element:eZ,SVG_NS:id,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:e6,draw:ih}),tc.Renderer=iu;var ig=(d=function(t,e){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),iv=tc.composed,im=tc.isFirefox,iy=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.foreignObject=e.createElement("foreignObject").attr({zIndex:2}),o.element.style.whiteSpace="nowrap",o}return ig(e,t),e.compose=function(t){t0(iv,"HTMLElement")&&(t.prototype.html=function(t,i,o){return new e(this,"div").attr({text:t,x:Math.round(i),y:Math.round(o)})})},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.css=function(t){var e,i=this.element,o=t&&"width"in t,r=o&&t.width;return o&&(delete t.width,this.textWidth=tQ(r)||void 0,e=!0),(null==t?void 0:t.textOverflow)==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),(null==t?void 0:t.lineClamp)?(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"):(null==t?void 0:t.lineClamp)===0&&(t.display="inline-block"),tF(Number(null==t?void 0:t.fontSize))&&(t.fontSize+="px"),tL(this.styles,t),tA(i,t),e&&this.updateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.updateTransform=function(){if(!this.added){this.alignOnAdd=!0;return}var e,i=this.element,o=this.foreignObject,r=this.oldTextWidth,n=this.renderer,s=this.rotation,a=this.scaleX,l=this.styles,h=l.display,d=void 0===h?"inline-block":h,c=l.whiteSpace,p=this.textAlign,u=void 0===p?"left":p,f=this.textWidth,g=this.x,v=void 0===g?0:g,m=this.y,y=void 0===m?0:m,x=[s,u,i.innerHTML,f,this.textAlign].join(",");if(tA(i,{display:"inline-block",verticalAlign:"top"}),f!==r){var b=this.textPxLength?this.textPxLength:(tA(i,{width:"",whiteSpace:c||"nowrap"}),i.offsetWidth),M=f||0,k=!n.styledMode&&""===i.style.textOverflow&&i.style.webkitLineClamp;(M>r||b>M||k)&&(/[\-\s\u00AD]/.test(i.textContent||i.innerText)||"ellipsis"===i.style.textOverflow)&&(tA(i,{width:(s||a||b>M)&&tF(f)?f+"px":k?Math.min(b+1,M)+"px":"auto",display:d,whiteSpace:c||"normal"}),this.oldTextWidth=f)}o.attr({width:n.width,height:n.height}),x!==this.cTT&&(e=n.fontMetrics(i).b,this.getSpanCorrection(!tS(s)&&!this.textWidth&&this.textPxLength||i.offsetWidth,e,tI(u))),t.prototype.updateTransform.call(this),tF(v)&&tF(y)?(o.attr({x:v+(this.xCorr||0),y:y+(this.yCorr||0),width:i.offsetWidth+4,height:i.offsetHeight+1,"transform-origin":i.getAttribute("transform-origin")||"0 0"}),tA(i,{display:d,textAlign:u})):im&&o.attr({width:0,height:0}),this.cTT=x},e.prototype.add=function(e){var i=this.foreignObject,o=this.renderer;return i.add(e),t.prototype.add.call(this,o.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(i)),this.alignOnAdd&&this.updateTransform(),this},e.prototype.textSetter=function(t){t!==this.textStr&&(delete this.oldTextWidth,eB.setElementHTML(this.element,null!=t?t:""),this.textStr=t,this.doTransform=!0)},e.prototype.alignSetter=function(t){this.alignValue=this.textAlign=t,this.doTransform=!0},e.prototype.xSetter=function(t,e){this[e]=t,this.doTransform=!0},e}(eZ),ix=iy.prototype;ix.ySetter=ix.xSetter,(c=F||(F={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",boundary:void 0,range:!1},day:{main:"%[eb]",boundary:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]",boundary:void 0},year:{main:"%[Y]",boundary:void 0}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"var(--highcharts-neutral-color-80)",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"var(--highcharts-neutral-color-5)",minorGridLineWidth:1,minorTickColor:"var(--highcharts-neutral-color-40)",lineColor:"var(--highcharts-neutral-color-80)",lineWidth:1,gridLineColor:"var(--highcharts-neutral-color-10)",gridLineWidth:void 0,tickColor:"var(--highcharts-neutral-color-80)"},c.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};var ib=F;(Y||(Y={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},tK(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(t5(t,i,t.eventOptions[i]),delete t.eventOptions[i]),t_(e)&&(t.eventOptions[i]=e,tv(t,i,e,{order:0})))})};var iM=Y,ik=tc.deg2rad,iw=function(){function t(t,e,i,o,r){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,tB(this,"init"),i||o||this.addLabel()}return t.prototype.addLabel=function(){var t,e,i,o,r,n,s=this,a=s.axis,l=a.options,h=a.chart,d=a.categories,c=a.logarithmic,p=a.names,u=s.pos,f=tJ(null==(t=s.options)?void 0:t.labels,l.labels),g=a.tickPositions,v=u===g[0],m=u===g[g.length-1],y=g.info,x=null==y?void 0:y.boundaryTicks[u],b=l.dateTimeLabelFormats,M=s.label,k=this.parameters.category||(d?tJ(d[u],p[u],u):u);if(c&&tF(k)&&(k=tM(c.lin2log(k))),a.dateTime&&b)if(y){var w=y.unitName,A={millisecond:"hour",second:"hour",minute:"hour",hour:"day",day:"month",week:"month",month:"year",year:"year"}[w],S=!(null==(e=l.grid)?void 0:e.enabled)&&x&&A&&(null==(i=b[A])?void 0:i.boundary)||b[w];o=(r=h.time.resolveDTLFormat(S)).main}else tF(k)&&(o=a.dateTime.getXDateFormat(k,b||{}));s.isFirst=v,s.isLast=m,s.boundary=x;var T={axis:a,chart:h,dateTimeLabelFormat:o,boundary:x,isFirst:v,isLast:m,pos:u,tick:s,tickPositionInfo:y,value:k};tB(this,"labelFormat",T);var C=function(t){return f.formatter?f.formatter.call(t,t):f.format?(t.text=a.defaultLabelFormatter.call(t),eG.format(f.format,t,h)):a.defaultLabelFormatter.call(t)},P=C.call(T,T),O=null==r?void 0:r.list;O?s.shortenLabel=function(){for(n=0;n<O.length;n++)if(tL(T,{dateTimeLabelFormat:O[n]}),M.attr({text:C.call(T,T)}),M.getBBox().width<a.getSlotWidth(s)-2*(f.padding||0))return;M.attr({text:""})}:s.shortenLabel=void 0,M?M.textStr!==P&&(!M.textWidth||f.style.width||M.styles.width||M.css({width:void 0}),M.attr({text:P}),M.textPxLength=M.getBBox().width):(s.label=M=s.createLabel(P,f),s.rotation=0)},t.prototype.createLabel=function(t,e,i){var o=this.axis,r=o.chart,n=r.renderer,s=r.styledMode,a=e.style.whiteSpace,l=tS(t)&&e.enabled?n.text(t,null==i?void 0:i.x,null==i?void 0:i.y,e.useHTML).add(o.labelGroup):void 0;return l&&(s||l.css(tV(e.style)),l.textPxLength=l.getBBox().width,!s&&a&&l.css({whiteSpace:a})),l},t.prototype.destroy=function(){tT(this,this.axis)},t.prototype.getPosition=function(t,e,i,o){var r=this.axis,n=r.chart,s=o&&n.oldChartHeight||n.chartHeight,a={x:t?tM(r.translate(e+i,void 0,void 0,o)+r.transB):r.left+r.offset+(r.opposite?(o&&n.oldChartWidth||n.chartWidth)-r.right-r.left:0),y:t?s-r.bottom+r.offset-(r.opposite?r.height:0):tM(s-r.translate(e+i,void 0,void 0,o)-r.transB)};return a.y=tb(a.y,-1e9,1e9),tB(this,"afterGetPosition",{pos:a}),a},t.prototype.getLabelPosition=function(t,e,i,o,r,n,s,a){var l,h,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,u=d.staggerLines,f=d.tickRotCorr||{x:0,y:0},g=o||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),v=r.distance,m={};return l=0===d.side?i.rotation?-v:-i.getBBox().height:2===d.side?f.y+v:Math.cos(i.rotation*ik)*(f.y-i.getBBox(!1,0).height/2),tS(r.y)&&(l=0===d.side&&d.horiz?r.y+l:r.y),t=t+tJ(r.x,[0,1,0,-1][d.side]*v)+g+f.x-(n&&o?n*c*(p?-1:1):0),e=e+l-(n&&!o?n*c*(p?1:-1):0),u&&(h=s/(a||1)%u,d.opposite&&(h=u-h-1),e+=h*(d.labelOffset/u)),m.x=t,m.y=Math.round(e),tB(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:n,index:s}),m},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},t.prototype.getMarkPath=function(t,e,i,o,r,n){return void 0===r&&(r=!1),n.crispLine([["M",t,e],["L",t+(r?0:-i),e+(r?i:0)]],o)},t.prototype.handleOverflow=function(t){var e,i,o=this.axis,r=o.options.labels,n=t.x,s=o.chart.chartWidth,a=o.chart.spacing,l=tJ(o.labelLeft,Math.min(o.pos,a[3])),h=tJ(o.labelRight,Math.max(o.isRadial?0:o.pos+o.len,s-a[1])),d=this.label,c=this.rotation,p=tI(o.labelAlign||d.attr("align")),u=d.getBBox().width,f=o.getSlotWidth(this),g=f,v=1;c||"justify"!==r.overflow?c<0&&n-p*u<l?i=Math.round(n/Math.cos(c*ik)-l):c>0&&n+p*u>h&&(i=Math.round((s-n)/Math.cos(c*ik))):(n-p*u<l?g=t.x+g*(1-p)-l:n+(1-p)*u>h&&(g=h-t.x+g*p,v=-1),(g=Math.min(f,g))<f&&"center"===o.labelAlign&&(t.x+=v*(f-g-p*(f-Math.min(u,g)))),(u>g||o.autoRotation&&(null==(e=null==d?void 0:d.styles)?void 0:e.width))&&(i=g)),i&&d&&(this.shortenLabel?this.shortenLabel():d.css(tL({},{width:Math.floor(i)+"px",lineClamp:+!o.isRadial})))},t.prototype.render=function(t,e,i){var o,r=this.axis,n=r.horiz,s=this.pos,a=tJ(this.tickmarkOffset,r.tickmarkOffset),l=this.getPosition(n,s,a,e),h=l.x,d=l.y,c=r.pos,p=c+r.len,u=n?h:d,f=tJ(i,null==(o=this.label)?void 0:o.newOpacity,1);!r.chart.polar&&(tM(u)<c||u>p)&&(i=0),null!=i||(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(l,i),this.renderLabel(l,e,f,t),this.isNew=!1,tB(this,"afterRender")},t.prototype.renderGridLine=function(t,e){var i,o=this.axis,r=o.options,n={},s=this.pos,a=this.type,l=tJ(this.tickmarkOffset,o.tickmarkOffset),h=o.chart.renderer,d=this.gridLine,c=r.gridLineWidth,p=r.gridLineColor,u=r.gridLineDashStyle;"minor"===this.type&&(c=r.minorGridLineWidth,p=r.minorGridLineColor,u=r.minorGridLineDashStyle),d||(o.chart.styledMode||(n.stroke=p,n["stroke-width"]=c||0,n.dashstyle=u),a||(n.zIndex=1),t&&(e=0),this.gridLine=d=h.path().attr(n).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),d&&(i=o.getPlotLinePath({value:s+l,lineWidth:d.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&d[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e){var i=this.axis,o=i.options,r=i.chart.renderer,n=this.type,s=i.tickSize(n?n+"Tick":"tick"),a=t.x,l=t.y,h=tJ(o["minor"!==n?"tickWidth":"minorTickWidth"],!n&&i.isXAxis?1:0),d=o["minor"!==n?"tickColor":"minorTickColor"],c=this.mark,p=!c;s&&(i.opposite&&(s[0]=-s[0]),!c&&(this.mark=c=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:d,"stroke-width":h})),c[p?"attr":"animate"]({d:this.getMarkPath(a,l,s[0],c.strokeWidth(),i.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,o){var r=this.axis,n=r.horiz,s=r.options,a=this.label,l=s.labels,h=l.step,d=tJ(this.tickmarkOffset,r.tickmarkOffset),c=t.x,p=t.y,u=!0;a&&tF(c)&&(a.xy=t=this.getLabelPosition(c,p,a,n,l,d,o,h),(!this.isFirst||this.isLast||s.showFirstLabel)&&(!this.isLast||this.isFirst||s.showLastLabel)?n&&!e&&0!==i&&this.handleOverflow(t):u=!1,h&&o%h&&(u=!1),u&&tF(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},t}(),iA=ib.xAxis,iS=ib.yAxis,iT=ex.parse,iC=iM.registerEventOptions,iP=tc.deg2rad,iO=function(t,e){return tZ(e,void 0,void 0,tJ(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)};tL(eu,{xAxis:iA,yAxis:tV(iA,iS)});var iL=function(){function t(t,e,i){this.clippable=!0,this.init(t,e,i)}return t.prototype.init=function(t,e,i){void 0===i&&(i=this.coll);var o,r="xAxis"===i,n=this.isZAxis||(t.inverted?!r:r);this.chart=t,this.horiz=n,this.isXAxis=r,this.coll=i,tB(this,"init",{userOptions:e}),this.opposite=tJ(e.opposite,this.opposite),this.side=tJ(e.side,this.side,n?2*!this.opposite:this.opposite?1:3),this.setOptions(e);var s=this.options,a=s.labels;null!=this.type||(this.type=s.type||"linear"),null!=this.uniqueNames||(this.uniqueNames=null==(o=s.uniqueNames)||o),tB(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=tJ(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=tj(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[]),this.namesMap||(this.namesMap={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=tS(s.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},null!=this.len||(this.len=0),this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.max=void 0,this.min=void 0;var l=tJ(s.crosshair,t3(t.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===l?{}:l,-1===t.axes.indexOf(this)&&(r?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),ei(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&r&&!tS(this.reversed)&&(this.reversed=!0),this.labelRotation=tF(a.rotation)?a.rotation:void 0,iC(this,s),tB(this,"afterInit")},t.prototype.setOptions=function(t){var e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=tV(e,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},eu[this.coll],t),tB(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(){var t,e,i=this.axis,o=this.chart,r=o.numberFormatter,n=tF(this.value)?this.value:NaN,s=i.chart.time,a=i.categories,l=this.dateTimeLabelFormat,h=eu.lang,d=h.numericSymbols,c=h.numericSymbolMagnitude||1e3,p=i.logarithmic?Math.abs(n):i.tickInterval,u=null==d?void 0:d.length;if(a)e="".concat(this.value);else if(l)e=s.dateFormat(l,n,!0);else if(u&&d&&p>=1e3)for(;u--&&void 0===e;)p>=(t=Math.pow(c,u+1))&&10*n%t==0&&null!==d[u]&&0!==n&&(e=r(n/t,-1,void 0,void 0,o)+d[u]);return null!=e||(e=r(n,-1,void 0,1e4>Math.abs(n)?"":void 0,o)),e},t.prototype.getSeriesExtremes=function(){var t,e=this;tB(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(function(i){if(i.reserveSpace()){var o=i.options,r=void 0,n=o.threshold,s=void 0,a=void 0;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(n||0)&&(n=void 0),e.isXAxis)(r=i.getColumn("x")).length&&(r=e.logarithmic?r.filter(function(t){return t>0}):r,s=(t=i.getXExtremes(r)).min,a=t.max,tF(s)||s instanceof Date||(r=r.filter(tF),s=(t=i.getXExtremes(r)).min,a=t.max),r.length&&(e.dataMin=Math.min(tJ(e.dataMin,s),s),e.dataMax=Math.max(tJ(e.dataMax,a),a)));else{var l=i.applyExtremes();tF(l.dataMin)&&(s=l.dataMin,e.dataMin=Math.min(tJ(e.dataMin,s),s)),tF(l.dataMax)&&(a=l.dataMax,e.dataMax=Math.max(tJ(e.dataMax,a),a)),tS(n)&&(e.threshold=n),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),tB(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,r,n){var s,a=this.linkedParent||this,l=o&&a.old?a.old.min:a.min;if(!tF(l))return NaN;var h=a.minPixelPadding,d=(a.isOrdinal||(null==(s=a.brokenAxis)?void 0:s.hasBreaks)||a.logarithmic&&r)&&!!a.lin2val,c=1,p=0,u=o&&a.old?a.old.transA:a.transA,f=0;return u||(u=a.transA),i&&(c*=-1,p=a.len),a.reversed&&(c*=-1,p-=c*(a.sector||a.len)),e?(f=(t=t*c+p-h)/u+l,d&&(f=a.lin2val(f))):(d&&(t=a.val2lin(t)),f=c*(t-l)*u+p+c*h+(tF(n)?u*n:0),a.isRadial||(f=tM(f))),f},t.prototype.toPixels=function(t,e){var i,o;return this.translate(null!=(o=null==(i=this.chart)?void 0:i.time.parse(t))?o:NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){var e,i,o,r,n,s=this,a=s.chart,l=s.left,h=s.top,d=t.old,c=t.value,p=t.lineWidth,u=d&&a.oldChartHeight||a.chartHeight,f=d&&a.oldChartWidth||a.chartWidth,g=s.transB,v=t.translatedValue,m=t.force;function y(t,e,i){return"pass"!==m&&(t<e||t>i)&&(m?t=tb(t,e,i):n=!0),t}var x={value:c,lineWidth:p,old:d,force:m,acrossPanes:t.acrossPanes,translatedValue:v};return tB(this,"getPlotLinePath",x,function(t){e=o=(v=tb(v=tJ(v,s.translate(c,void 0,void 0,d)),-1e9,1e9))+g,i=r=u-v-g,tF(v)?s.horiz?(i=h,r=u-s.bottom+(s.options.isInternal?0:a.scrollablePixelsY||0),e=o=y(e,l,l+s.width)):(e=l,o=f-s.right+(a.scrollablePixelsX||0),i=r=y(i,h,h+s.height)):(n=!0,m=!1),t.path=n&&!m?void 0:a.renderer.crispLine([["M",e,i],["L",o,r]],p||1)}),x.path},t.prototype.getLinearTickPositions=function(t,e,i){var o,r,n,s=tM(Math.floor(e/t)*t),a=tM(Math.ceil(i/t)*t),l=[];if(tM(s+t)===s&&(n=20),this.single)return[e];for(o=s;o<=a&&(l.push(o),(o=tM(o+t,n))!==r);)r=o;return l},t.prototype.getMinorTickInterval=function(){var t=this.options,e=t.minorTicks,i=t.minorTickInterval;return!0===e?tJ(i,"auto"):!1!==e?i:void 0},t.prototype.getMinorTickPositions=function(){var t,e,i=this.options,o=this.tickPositions,r=this.minorTickInterval,n=this.pointRangePadding||0,s=(this.min||0)-n,a=(this.max||0)+n,l=(null==(t=this.brokenAxis)?void 0:t.hasBreaks)?this.brokenAxis.unitLength:a-s,h=[];if(l&&l/r<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(t,e,i){e&&h.push.apply(h,d.getLogTickPositions(r,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())h=h.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),s,a,i.startOfWeek));else for(e=s+(o[0]-s)%r;e<=a&&e!==h[0];e+=r)h.push(e)}return 0!==h.length&&this.trimTicks(h),h},t.prototype.adjustForMinRange=function(){var t,e,i,o,r,n,s,a=this.options,l=this.logarithmic,h=this.chart.time,d=this.max,c=this.min,p=this.minRange;this.isXAxis&&void 0===p&&!l&&(p=tS(a.min)||tS(a.max)||tS(a.floor)||tS(a.ceiling)?null:Math.min(5*(tD(this.series.map(function(t){var e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),tF(d)&&tF(c)&&tF(p)&&d-c<p&&(r=this.dataMax-this.dataMin>=p,o=(p-d+c)/2,n=[c-o,null!=(t=h.parse(a.min))?t:c-o],r&&(n[2]=l?l.log2lin(this.dataMin):this.dataMin),s=[(c=ty(n))+p,null!=(e=h.parse(a.max))?e:c+p],r&&(s[2]=l?l.log2lin(this.dataMax):this.dataMax),(d=tm(s))-c<p&&(n[0]=d-p,n[1]=null!=(i=h.parse(a.min))?i:d-p,c=ty(n))),this.minRange=p,this.min=c,this.max=d},t.prototype.getClosest=function(){var t,e;if(this.categories)e=1;else{var i=[];this.series.forEach(function(t){var o=t.closestPointRange,r=t.getColumn("x");1===r.length?i.push(r[0]):t.sorted&&tS(o)&&t.reserveSpace()&&(e=tS(e)?Math.min(e,o):o)}),i.length&&(i.sort(function(t,e){return t-e}),t=tD([i]))}return t&&e?Math.min(t,e):t||e},t.prototype.nameToX=function(t,e){var i,o,r=tj(this.options.categories),n=t.name,s=t.series,a=r?this.categories:this.names,l=this.namesMap;return s.requireSorting=!1,tS(e)||(e=this.uniqueNames&&a?r?a.indexOf(n):null!=(i=l[n])?i:-1:s.autoIncrement()),-1===e?!r&&a&&(o=a.length):tF(e)&&(o=e),void 0!==o?(this.names[o]=t.name,l[t.name]=o):o=tF(t.x)?t.x:s.autoIncrement(),o},t.prototype.updateNames=function(){var t=this,e=this.names,i=this.namesMap;e.length>0&&(Object.keys(i).forEach(function(t){delete i[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){var i;if(e.xIncrement=null,delete e.xColumn,!e.points||e.isDirtyData)t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints();else{var o=e.getColumn("x");null==(i=e.points)||i.forEach(function(t){t.x=o[t.index]})}}))},t.prototype.setAxisTranslation=function(){var t,e,i,o=this,r=o.max-o.min,n=o.linkedParent,s=!!o.categories,a=o.isXAxis,l=o.axisPointRange||0,h=0,d=0,c=o.transA;(a||s||l)&&(e=o.getClosest(),n?(h=n.minPointOffset,d=n.pointRangePadding):o.series.forEach(function(t){var i=s?1:a?tJ(t.options.pointRange,e,0):o.axisPointRange||0,r=t.options.pointPlacement;if(l=Math.max(l,i),!o.single||s){var n=t.is("xrange")?!a:a;h=Math.max(h,n&&tY(r)?0:i/2),d=Math.max(d,n&&"on"===r?0:i)}}),i=(null==(t=o.ordinal)?void 0:t.slope)&&e?o.ordinal.slope/e:1,o.minPointOffset=h*=i,o.pointRangePadding=d*=i,o.pointRange=Math.min(l,o.single&&s?1:r),a&&(o.closestPointRange=e)),o.translationSlope=o.transA=c=o.staticScale||o.len/(r+d||1),o.transB=o.horiz?o.left:o.bottom,o.minPixelPadding=c*h,tB(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){var t=this.max,e=this.min;return tF(t)&&tF(e)&&t-e||void 0},t.prototype.setTickInterval=function(t){var e,i,o,r,n,s,a,l,h,d=this.categories,c=this.chart,p=this.dataMax,u=this.dataMin,f=this.dateTime,g=this.isXAxis,v=this.logarithmic,m=this.options,y=this.softThreshold,x=c.time,b=tF(this.threshold)?this.threshold:void 0,M=this.minRange||0,k=m.ceiling,w=m.floor,A=m.linkedTo,S=m.softMax,T=m.softMin,C=tF(A)&&(null==(e=c[this.coll])?void 0:e[A]),P=m.tickPixelInterval,O=m.maxPadding,L=m.minPadding,E=0,B=tF(m.tickInterval)&&m.tickInterval>=0?m.tickInterval:void 0;if(f||d||C||this.getTickAmount(),l=tJ(this.userMin,x.parse(m.min)),h=tJ(this.userMax,x.parse(m.max)),C?(this.linkedParent=C,n=C.getExtremes(),this.min=tJ(n.min,n.dataMin),this.max=tJ(n.max,n.dataMax),this.type!==C.type&&ee(11,!0,c)):(y&&tS(b)&&tF(p)&&tF(u)&&(u>=b?(s=b,L=0):p<=b&&(a=b,O=0)),this.min=tJ(l,s,u),this.max=tJ(h,a,p)),tF(this.max)&&tF(this.min)&&(v&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,tJ(u,this.min))&&ee(10,!0,c),this.min=tM(v.log2lin(this.min),16),this.max=tM(v.log2lin(this.max),16)),this.range&&tF(u)&&(this.userMin=this.min=l=Math.max(u,this.minFromRange()||0),this.userMax=h=this.max,this.range=void 0)),tB(this,"foundExtremes"),this.adjustForMinRange(),tF(this.min)&&tF(this.max)){if(!tF(this.userMin)&&tF(T)&&T<this.min&&(this.min=l=T),!tF(this.userMax)&&tF(S)&&S>this.max&&(this.max=h=S),d||this.axisPointRange||(null==(i=this.stacking)?void 0:i.usePercentage)||C||(E=this.max-this.min)&&(!tS(l)&&L&&(this.min-=E*L),!tS(h)&&O&&(this.max+=E*O)),!tF(this.userMin)&&tF(w)&&(this.min=Math.max(this.min,w)),!tF(this.userMax)&&tF(k)&&(this.max=Math.min(this.max,k)),y&&tF(u)&&tF(p)){var I=b||0;!tS(l)&&this.min<I&&u>=I?this.min=m.minRange?Math.min(I,this.max-M):I:!tS(h)&&this.max>I&&p<=I&&(this.max=m.minRange?Math.max(I,this.min+M):I)}!c.polar&&this.min>this.max&&(tS(m.min)?this.max=this.min:tS(m.max)&&(this.min=this.max)),E=this.max-this.min}if(this.min!==this.max&&tF(this.min)&&tF(this.max)?C&&!B&&P===C.options.tickPixelInterval?this.tickInterval=B=C.tickInterval:this.tickInterval=tJ(B,this.tickAmount?E/Math.max(this.tickAmount-1,1):void 0,d?1:E*P/Math.max(this.len,P)):this.tickInterval=1,g&&!t){var D=this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(r=this.old)?void 0:r.max);this.series.forEach(function(t){var e;t.forceCrop=null==(e=t.forceCropping)?void 0:e.call(t),t.processData(D)}),tB(this,"postProcessData",{hasExtremesChanged:D})}this.setAxisTranslation(),tB(this,"initialAxisTranslation"),this.pointRange&&!B&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var z=tJ(m.minTickInterval,f&&!this.series.some(function(t){return!t.sorted})?this.closestPointRange:0);!B&&z&&this.tickInterval<z&&(this.tickInterval=z),f||v||B||(this.tickInterval=iO(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e,i,o,r=this.options,n=r.tickPositions,s=r.tickPositioner,a=this.getMinorTickInterval(),l=!this.isPanning,h=l&&r.startOnTick,d=l&&r.endOnTick,c=[];if(this.tickmarkOffset=this.categories&&"between"===r.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&tS(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==r.allowDecimals),n)c=n.slice();else if(tF(this.min)&&tF(this.max)){if(!(null==(t=this.ordinal)?void 0:t.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))c=[this.min,this.max],ee(19,!1,this.chart);else if(this.dateTime)c=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,r.units),this.min,this.max,r.startOfWeek,null==(e=this.ordinal)?void 0:e.positions,this.closestPointRange,!0);else if(this.logarithmic)c=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var p=this.tickInterval,u=p;u<=2*p;)if(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount)this.tickInterval=iO(this,u*=1.1);else break;c.length>this.len&&(c=[c[0],c[c.length-1]])[0]===c[1]&&(c.length=1),s&&(this.tickPositions=c,(o=s.apply(this,[this.min,this.max,this]))&&(c=o))}this.isDirty||c.length===(null==(i=this.tickPositions)?void 0:i.length)||(this.isDirty=!0),this.tickPositions=c,this.minorTickInterval="auto"===a&&this.tickInterval?this.tickInterval/r.minorTicksPerMajor:a,this.paddedTicks=c.slice(0),this.trimTicks(c,h,d),!this.isLinked&&tF(this.min)&&tF(this.max)&&(this.single&&c.length<2&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),n||o||this.adjustTickAmount()),tB(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],r=t[t.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(tB(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&tF(o))this.min=o;else if(t.length)for(;this.min-n>t[0];)t.shift();if(i&&tF(r))this.max=r;else for(;this.max+n<t[t.length-1];)t.pop();0===t.length&&tS(o)&&!this.options.tickPositions&&t.push((r+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=e.chart,o=[this],r=e.options,n=i.options.chart,s="yAxis"===this.coll&&n.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==n.alignTicks&&r.alignTicks||s)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){var l=function(t){var e=t.horiz,i=t.options;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},h=l(this);i[this.coll].forEach(function(i){var r=i.series;r.length&&r.some(function(t){return t.visible})&&i!==e&&l(i)===h&&(t=!0,o.push(i))})}if(t&&s){o.forEach(function(t){var i=t.getThresholdAlignment(e);tF(i)&&a.push(i)});var d=a.length>1?a.reduce(function(t,e){return t+e},0)/a.length:void 0;o.forEach(function(t){t.thresholdAlignment=d})}return t},t.prototype.getThresholdAlignment=function(t){if((!tF(this.dataMin)||this!==t&&this.series.some(function(t){var e;return t.isDirty||t.isDirtyData||(null==(e=t.xAxis)?void 0:e.isDirty)}))&&this.getSeriesExtremes(),tF(this.threshold)){var e=tb((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;tS(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t,e,i,o=this,r=o.finalTickAmt,n=o.max,s=o.min,a=o.options,l=o.tickPositions,h=o.tickAmount,d=o.thresholdAlignment,c=null==l?void 0:l.length,p=tJ(o.threshold,o.softThreshold?0:null),u=o.tickInterval,f=function(){return l.push(tM(l[l.length-1]+u))},g=function(){return l.unshift(tM(l[0]-u))};if(tF(d)&&(i=0===d?0:1===d?h-1:Math.round(tb(d*(h-1),1,h-2)),a.reversed&&(i=h-1-i)),o.hasData()&&tF(s)&&tF(n)){var v=function(){o.transA*=(c-1)/(h-1),o.min=a.startOnTick?l[0]:Math.min(s,l[0]),o.max=a.endOnTick?l[l.length-1]:Math.max(n,l[l.length-1])};if(tF(i)&&tF(o.threshold)){for(;l[i]!==p||l.length!==h||l[0]>s||l[l.length-1]<n;){for(l.length=0,l.push(o.threshold);l.length<h;)void 0===l[i]||l[i]>o.threshold?g():f();if(u>8*o.tickInterval)break;u*=2}v()}else if(c<h){for(;l.length<h;)l.length%2||s===p?f():g();v()}if(tS(r)){for(e=t=l.length;e--;)(3===r&&e%2==1||r<=2&&e>0&&e<t-1)&&l.splice(e,1);o.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e,i,o,r,n=this.coll,s=this.stacking,a=!1,l=!1;this.series.forEach(function(t){var e;a=a||t.isDirtyData||t.isDirty,l=l||(null==(e=t.xAxis)?void 0:e.isDirty)||!1}),this.setAxisSize();var h=this.len!==(null==(t=this.old)?void 0:t.len);h||a||l||this.isLinked||this.forceRedraw||this.userMin!==(null==(e=this.old)?void 0:e.userMin)||this.userMax!==(null==(i=this.old)?void 0:i.userMax)||this.alignToOthers()?(s&&"yAxis"===n&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&"xAxis"===n&&s.buildStacks(),this.isDirty||(this.isDirty=h||this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(r=this.old)?void 0:r.max))):s&&s.cleanStacks(),a&&delete this.allExtremes,tB(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,r){var n=this;void 0===i&&(i=!0);var s=this.chart;this.series.forEach(function(t){delete t.kdTree}),tB(this,"setExtremes",r=tL(r,{min:t=s.time.parse(t),max:e=s.time.parse(e)}),function(t){n.userMin=t.min,n.userMax=t.max,n.eventArgs=t,i&&s.redraw(o)})},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,r=this.width=Math.round(t1(tJ(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),n=this.height=Math.round(t1(tJ(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(t1(tJ(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(t1(tJ(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-n-s,this.right=t.chartWidth-r-a,this.len=Math.max(o?r:n,0),this.pos=o?a:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?tM(t.lin2log(this.min)):this.min,max:t?tM(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min,o=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=o:i>t?t=i:o<t&&(t=o),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=((t-90*this.side)%360+360)%360,i={align:"center"};return tB(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align},t.prototype.tickSize=function(t){var e,i=this.options,o=tJ(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=i["tick"===t?"tickLength":"minorTickLength"];o&&r&&("inside"===i[t+"Position"]&&(r=-r),e=[r,o]);var n={tickSize:e,prefix:t};return tB(this,"afterTickSize",n),n.tickSize},t.prototype.labelMetrics=function(){var t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||t.box)},t.prototype.unsquish=function(){var t,e,i=this.options.labels,o=i.padding||0,r=this.horiz,n=this.tickInterval,s=this.len/((+!!this.categories+this.max-this.min)/n),a=i.rotation,l=tM(.8*this.labelMetrics().h),h=Math.max(this.max-this.min,0),d=function(t){var e=(t+2*o)/(s||1);return(e=e>1?Math.ceil(e):1)*n>h&&t!==1/0&&s!==1/0&&h&&(e=Math.ceil(h/n)),tM(e*n)},c=n,p=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(tF(a)?e=[a]:s<i.autoRotationLimit&&(e=i.autoRotation)),e)for(var u=void 0,f=void 0,g=0,v=e;g<v.length;g++){var m=v[g];(m===a||m&&m>=-90&&m<=90)&&(f=(u=d(Math.abs(l/Math.sin(iP*m))))+Math.abs(m/360))<p&&(p=f,t=m,c=u)}}else c=d(.75*l);return this.autoRotation=e,this.labelRotation=tJ(t,tF(a)?a:0),i.step?n:c},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-!this.categories,1),n=e.margin[3];if(t&&tF(t.slotWidth))return t.slotWidth;if(i&&o.step<2&&!this.isRadial)return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){var s=o.style.width;if(void 0!==s)return parseInt(String(s),10);if(!this.opposite&&n)return n-e.spacing[3]}return .33*e.chartWidth},t.prototype.renderUnsquish=function(){var t,e=this.chart,i=e.renderer,o=this.tickPositions,r=this.ticks,n=this.options.labels,s=n.style,a=this.horiz,l=this.getSlotWidth(),h=Math.max(1,Math.round(l-(a?2*(n.padding||0):n.distance||0))),d={},c=this.labelMetrics(),p=s.lineClamp,u=null!=p?p:Math.floor(this.len/(o.length*c.h))||1,f=0;tY(n.rotation)||(d.rotation=n.rotation||0),o.forEach(function(t){var e;f=Math.max(f,(null==(e=r[t].label)?void 0:e.textPxLength)||0)}),this.maxLabelLength=f,this.autoRotation?f>h&&f>c.h?d.rotation=this.labelRotation:this.labelRotation=0:l&&(t=h),d.rotation&&(t=f>.5*e.chartHeight?.33*e.chartHeight:f,p||(u=1)),this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(d.align=this.labelAlign),o.forEach(function(e){var i=r[e],o=null==i?void 0:i.label,n=s.width,a={};o&&(o.attr(d),i.shortenLabel?i.shortenLabel():t&&!n&&"nowrap"!==s.whiteSpace&&(t<(o.textPxLength||0)||"DIV"===o.element.tagName)?o.css(tL(a,{width:""+t+"px",lineClamp:u})):(o.styles.width||o.textWidth||o.styles.lineClamp)&&!a.width&&!n&&o.css({width:"auto",lineClamp:0}),i.rotation=d.rotation)},this),this.tickRotCorr=i.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&tS(this.min)&&tS(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,r=this.opposite,n=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=n.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[n.align]),this.axisTitle=i.text(n.text||"",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(tV(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||n.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new iw(this,t)},t.prototype.createGroups=function(){var t=this,e=this.axisParent,i=this.chart,o=this.coll,r=this.options,n=i.renderer,s=function(i,s,a){return n.g(i).attr({zIndex:a}).addClass("highcharts-".concat(o.toLowerCase()).concat(s," ")+(t.isRadial?"highcharts-radial-axis".concat(s," "):"")+(r.className||"")).add(e)};this.axisGroup||(this.gridGroup=s("grid","-grid",r.gridZIndex).clip(this.clippable?i.plotClipInner:void 0),this.axisGroup=s("axis","",r.zIndex),this.labelGroup=s("axis-labels","-labels",r.labels.zIndex))},t.prototype.shuffleTicks=function(){var t,e=this,i=this.ticks,o=null==(t=this.old)?void 0:t.names;if("category"===this.type&&o){o.forEach(function(t,r){var n=e.namesMap[t];tS(n)&&r!==n&&(i[r]&&(i[r].pos=n,e.isDirty=!0),i[n]&&-1===e.names.indexOf(o[n])&&(i[n].pos=NaN))});var r=Object.values(i);Object.keys(i).forEach(function(t){delete i[t]}),r.forEach(function(t){isNaN(t.pos)?t.destroy():i[t.pos]=t})}},t.prototype.getOffset=function(){var t,e,i,o,r,n,s,a,l,h,d,c=this.chart,p=this.horiz,u=this.options,f=this.side,g=this.ticks,v=this.tickPositions,m=this.coll,y=this.hasData(),x=u.title,b=u.labels,M=tF(u.crossing),k=c.axisOffset,w=c.clipOffset,A=[-1,1,1,-1][f],S=this.tickRotCorr||{x:0,y:0},T=0,C=0,P=0,O=0;if(this.showAxis=s=y||u.showEmpty,this.staggerLines=this.horiz&&b.staggerLines||void 0,this.createGroups(),y||this.isLinked?(this.shuffleTicks(),v.forEach(this.generateTick.bind(this)),this.renderUnsquish(),T=Math.abs((S=this.tickRotCorr).x),d=this.reserveSpaceDefault=0===f||2===f||({1:"left",3:"right"})[f]===this.labelAlign,(null!=(i=null!=(e=null!=(t=b.reserveSpace)?t:!M&&null)?e:"center"===this.labelAlign||null)?i:d)&&v.forEach(function(t){O=Math.max(g[t].getLabelSize(),O)}),this.staggerLines&&(O*=this.staggerLines),!p&&tF(this.labelRotation)&&d&&(O-=T),this.labelOffset=O*(this.opposite?-1:1)):tK(g,function(t,e){t.destroy(),delete g[e]}),(null==x?void 0:x.text)&&!1!==x.enabled&&(this.addTitle(s),s&&!M&&!1!==x.reserveSpace&&(this.titleOffset=C=this.axisTitle.getBBox()[p?"height":"width"],P=tS(a=x.offset)?0:tJ(x.margin,p?5:10))),this.renderLine(),this.offset=A*(tF(u.offset)?u.offset:k[f]?k[f]+(u.margin||0):0),h=0===f?-this.labelMetrics().h:2===f?S.y:0,l=Math.abs(O)+P,O&&(l-=h,l+=A*(p?null!=(o=b.y)?o:S.y+A*b.distance:null!=(r=b.x)?r:d?A*(b.distance-T):S.x+A*b.distance),!p&&!d&&"center"===this.labelAlign&&tF(this.labelRotation)&&(l+=T)),this.axisTitleMargin=null!=a?a:l,this.maxLabelDimensions=null==(n=this.getMaxLabelDimensions)?void 0:n.call(this,g,v),"colorAxis"!==m&&w){var L=this.tickSize("tick");k[f]=Math.max(k[f],(this.axisTitleMargin||0)+C+A*this.offset,l,(null==v?void 0:v.length)&&L?L[0]+A*this.offset:0);var E=!this.axisLine||u.offset?0:this.axisLine.strokeWidth()/2;w[f]=Math.max(w[f],E)}tB(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,r=this.horiz,n=this.left+(i?this.width:0)+o,s=e.chartHeight-this.bottom-(i?this.height:0)+o;return i&&(t*=-1),e.renderer.crispLine([["M",r?this.left:n,r?s:this.top],["L",r?e.chartWidth-this.right:n,r?s:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){var t=this.chart,e=this.offset,i=this.options;this.axisLine||(this.axisLine=t.renderer.path().addClass("highcharts-axis-line").attr(t.styledMode?{}:{stroke:i.lineColor,"stroke-width":i.lineWidth,zIndex:7}).clip(this.clippable&&(void 0===e?0:e)<=0?t.plotClipOuter:void 0).add(this.axisGroup))},t.prototype.getTitlePosition=function(t){var e=this.horiz,i=this.left,o=this.top,r=this.len,n=this.options.title,s=e?i:o,a=this.opposite,l=this.offset,h=n.x,d=n.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:s+(e?0:r),middle:s+r/2,high:s+(e?r:0)}[n.align],f=(e?o+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],g={x:e?u+h:f+(a?this.width:0)+l+h,y:e?f+d-(a?this.height:0)+l:u+d};return tB(this,"afterGetTitlePosition",{titlePosition:g}),g},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new iw(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o,r=this.isLinked,n=this.ticks;(!r||t>=this.min&&t<=this.max||(null==(o=this.grid)?void 0:o.isColumn))&&(n[t]||(n[t]=new iw(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,r=i.logarithmic,n=o.renderer,s=i.options,a=i.isLinked,l=i.tickPositions,h=i.axisTitle,d=i.ticks,c=i.minorTicks,p=i.alternateBands,u=s.stackLabels,f=s.alternateGridColor,g=s.crossing,v=i.tickmarkOffset,m=i.axisLine,y=i.showAxis,x=ew(n.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){tK(t,function(t){t.isActive=!1})}),tF(g)){var b=this.isXAxis?o.yAxis[0]:o.xAxis[0],M=[1,-1,-1,1][this.side];if(b){var k=b.toPixels(g,!0);i.horiz&&(k=b.len-k),i.offset=M*k}}if(i.hasData()||a){var w=i.chart.hasRendered&&i.old&&tF(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,w)}),l.length&&(l.forEach(function(t,e){i.renderTick(t,e,w)}),v&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new iw(i,-1,null,!0)),d[-1].render(-1))),f&&l.forEach(function(n,s){e=void 0!==l[s+1]?l[s+1]+v:i.max-v,s%2==0&&n<i.max&&e<=i.max+(o.polar?-v:v)&&(p[n]||(p[n]=new tc.PlotLineOrBand(i,{})),t=n+v,p[n].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:f,className:"highcharts-alternate-grid"},p[n].render(),p[n].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[d,c,p].forEach(function(t){var e=[],i=x.duration;tK(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),t9(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==p&&o.hasRendered&&i?i:0)}),m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[y?"show":"hide"](y)),h&&y&&(h[h.isNew?"attr":"animate"](i.getTitlePosition(h)),h.isNew=!1),(null==u?void 0:u.enabled)&&i.stacking&&i.stacking.renderStackTotals(),this.old||this.saveOld(),i.isDirty=!1,tB(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.saveOld=function(){this.old=tF(this.min)?{len:this.len,max:this.max,min:this.min,names:this.names.slice(),transA:this.transA,userMax:this.userMax,userMin:this.userMin}:void 0},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,i=e.plotLinesAndBands,o=this.eventOptions;if(tB(this,"destroy",{keepEvents:t}),t||t5(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){tT(t)}),i)for(var r=i.length;r--;)i[r].destroy();for(var n in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();tK(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var i,o,r,n,s,a,l=this,h=this.crosshair,d=null==(i=null==h?void 0:h.snap)||i,c=this.chart,p=this.cross;if(tB(this,"drawCrosshair",{e:t,point:e}),t||(t=null==(o=this.cross)?void 0:o.e),h&&!1!==(tS(e)||!d)){if(clearTimeout(this.crossShowTimer),d?tS(e)&&(n=tJ("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),tS(n)&&(a={value:e&&(this.isXAxis?e.x:tJ(e.stackY,e.y)),translatedValue:n},c.polar&&tL(a,{isCrosshair:!0,chartX:null==t?void 0:t.chartX,chartY:null==t?void 0:t.chartY,point:e}),r=this.getPlotLinePath(a)||null),!tS(r))return void this.hideCrosshair();s=this.categories&&!this.isRadial,this.crossShowTimer=t9(function(){var e=l.cross;e||(l.cross=e=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+(h.className||"")).attr({zIndex:tJ(h.zIndex,2)}).clip(!1===h.clip?void 0:c.plotClipInner).add(),!c.styledMode&&(e.attr({stroke:h.color||(s?iT("var(--highcharts-highlight-color-20)").setOpacity(.25).get():"var(--highcharts-neutral-color-20)"),"stroke-width":tJ(h.width,1)}).css({"pointer-events":"none"}),h.dashStyle&&e.attr({dashstyle:h.dashStyle}))),e.show().animate({d:r},ew(null==h?void 0:h.animation)),s&&!h.width&&e.attr({"stroke-width":l.transA}),l.cross&&(l.cross.e=t)},(!p||"hidden"===p.attr("visibility"))&&h.showDelay||0)}else this.hideCrosshair();tB(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),tB(this,"afterHideCrosshair")},t.prototype.update=function(t,e){var i=this.chart;t=tV(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,tJ(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,r=o.length;r--;)o[r]&&o[r].remove(!1);tO(e.axes,this),tO(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,tJ(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],t}();!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if("datetime"!==this.type){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new o(this))}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,tv(t,"afterSetType",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,o,r=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],n=r[r.length-1],s=eo[n[0]],a=n[1];for(i=0;i<r.length;i++)if(s=eo[(n=r[i])[0]],a=n[1],r[i+1]){var l=(s*a[a.length-1]+eo[r[i+1][0]])/2;if(t<=l){o=l/t;break}}s===eo.year&&t<5*s&&(a=[1,2,5]);var h=tZ(t/s,a,"year"===n[0]?Math.max(tz(t/s),1):1);return{unitRange:s,count:h,unitName:n[0],match:o}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=o}(j||(j={}));var iE=j;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:null!=this.logarithmic||(this.logarithmic=new o(this))}function i(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),tv(t,"afterSetType",e),tv(t,"afterInit",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,o){var r=this.axis,n=r.len,s=r.options,a=[];if(o||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),a=r.getLinearTickPositions(t,e,i);else if(t>=.08){var l=Math.floor(e),h=void 0,d=void 0,c=void 0,p=void 0,u=void 0,f=void 0,g=void 0;for(h=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=l;d<i+1&&!g;d++)for(c=0,p=h.length;c<p&&!g;c++)(u=this.log2lin(this.lin2log(d)*h[c]))>e&&(!o||f<=i)&&void 0!==f&&a.push(f),f>i&&(g=!0),f=u}else{var v=this.lin2log(e),m=this.lin2log(i),y=o?r.getMinorTickInterval():s.tickInterval,x=s.tickPixelInterval/(o?5:1),b=o?n/r.tickPositions.length:n;t=tZ(t=tJ("auto"===y?null:y,this.minorAutoInterval,(m-v)*x/(b||1))),a=r.getLinearTickPositions(t,v,m).map(this.log2lin),o||(this.minorAutoInterval=t/5)}return o||(r.tickInterval=t),a},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=o}(_||(_={}));var iB=_;!function(t){var e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,i){var o=this,r=this.userOptions,n=new e(this,t);if(this.visible&&(n=n.render()),n){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)})),i){var s=r[i]||[];s.push(t),r[i]=s}this.plotLinesAndBands.push(n)}return n}function r(t){return this.addPlotBandOrLine(t,"plotLines")}function n(t,e,i){i=i||this.options;var o,r,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),s=[],a=this.horiz,l=!tF(this.min)||!tF(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,h=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),d=1;if(h&&n)for(l&&(r=h.toString()===n.toString(),d=0),o=0;o<h.length;o+=2){var c=h[o],p=h[o+1],u=n[o],f=n[o+1];("M"===c[0]||"L"===c[0])&&("M"===p[0]||"L"===p[0])&&("M"===u[0]||"L"===u[0])&&("M"===f[0]||"L"===f[0])&&(a&&u[1]===c[1]?(u[1]+=d,f[1]+=d):a||u[2]!==c[2]||(u[2]+=d,f[2]+=d),s.push(["M",c[1],c[2]],["L",p[1],p[2]],["L",f[1],f[2]],["L",u[1],u[2]],["Z"])),s.isFlat=r}return s}function s(t){this.removePlotBandOrLine(t)}function a(t){var e=this.plotLinesAndBands,i=this.options,o=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(e){var i;for(r=e.length;r--;)(null==(i=e[r])?void 0:i.id)===t&&tO(e,e[r])})}}function l(t){this.removePlotBandOrLine(t)}t.compose=function(t,h){var d=h.prototype;return d.addPlotBand||(e=t,tL(d,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:o,getPlotBandPath:n,removePlotBand:s,removePlotLine:l,removePlotBandOrLine:a})),h}}(U||(U={}));var iI=U,iD=function(){return(iD=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},iz=function(){function t(t,e){this.axis=t,this.options=e,this.id=e.id}return t.compose=function(e,i){return tv(e,"afterInit",function(){var t=this;this.labelCollectors.push(function(){for(var e,i=[],o=0,r=t.axes;o<r.length;o++)for(var n=r[o],s=0,a=n.plotLinesAndBands;s<a.length;s++){var l=a[s],h=l.label,d=l.options;!h||(null==(e=null==d?void 0:d.label)?void 0:e.allowOverlap)||i.push(h)}return i})}),iI.compose(t,i)},t.prototype.render=function(){var t=this;tB(this,"render");var e,i,o,r,n=this.axis,s=this.options,a=n.chart,l=n.horiz,h=n.logarithmic,d=s.color,c=s.events,p=s.zIndex,u=void 0===p?0:p,f=n.chart,g=f.renderer,v=f.time,m={},y=v.parse(s.to),x=v.parse(s.from),b=v.parse(s.value),M=s.borderWidth,k=s.label,w=this.label,A=this.svgElem,S=[],T=tS(x)&&tS(y),C=tS(b),P=!A,O={class:"highcharts-plot-"+(T?"band ":"line ")+(s.className||"")},L=T?"bands":"lines";if(!a.styledMode&&(C?(O.stroke=d||"var(--highcharts-neutral-color-40)",O["stroke-width"]=tJ(s.width,1),s.dashStyle&&(O.dashstyle=s.dashStyle)):T&&(O.fill=d||"var(--highcharts-highlight-color-10)",M&&(O.stroke=s.borderColor,O["stroke-width"]=M))),m.zIndex=u,L+="-"+u,(r=n.plotLinesAndBandsGroups[L])||(n.plotLinesAndBandsGroups[L]=r=g.g("plot-"+L).clip(a.plotClipOuter).attr(m).add()),A||(this.svgElem=A=g.path().attr(O).add(r)),tS(b))S=n.getPlotLinePath({value:null!=(e=null==h?void 0:h.log2lin(b))?e:b,lineWidth:A.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(tS(x)&&tS(y)))return;S=n.getPlotBandPath(null!=(i=null==h?void 0:h.log2lin(x))?i:x,null!=(o=null==h?void 0:h.log2lin(y))?o:y,s)}return!this.eventsAdded&&c&&(tK(c,function(e,i){null==A||A.on(i,function(e){c[i].apply(t,[e,t])})}),this.eventsAdded=!0),(P||!A.d)&&(null==S?void 0:S.length)?A.attr({d:S}):A&&(S?(A.show(),A.animate({d:S})):A.d&&(A.hide(),w&&(this.label=w=w.destroy()))),k&&(tS(k.text)||tS(k.formatter))&&(null==S?void 0:S.length)&&n.width>0&&n.height>0&&!S.isFlat?(k=tV(iD({align:l&&T?"center":void 0,x:l?!T&&4:10,verticalAlign:!l&&T?"middle":void 0,y:l?T?16:10:T?6:-4,rotation:l&&!T?90:0},T?{inside:!0}:{}),k),this.renderLabel(k,S,T,u)):w&&w.hide(),this},t.prototype.renderLabel=function(t,e,i,o){var r,n,s,a=this.axis,l=a.chart.renderer,h=t.inside,d=this.label;d||(this.label=d=l.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:o}),a.chart.styledMode||d.css(tV({color:null==(n=null==(r=a.chart.options.title)?void 0:r.style)?void 0:n.color,fontSize:"0.8em",textOverflow:i&&!h?"":"ellipsis"},t.style)),d.add());var c=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],p=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],u=tm(c),f=tm(p),g=ty(c)-u;d.align(t,!1,{x:u,y:f,width:g,height:ty(p)-f}),d.alignAttr.y-=l.fontMetrics(d).b,(!d.alignValue||"left"===d.alignValue||tS(h))&&d.css({width:((null==(s=t.style)?void 0:s.width)||(i&&h?g:90===d.rotation?a.height-(d.alignAttr.y-a.top):(t.clip?a.width+a.left:a.chart.chartWidth)-d.alignAttr.x))+"px"}),d.show(!0)},t.prototype.getLabelText=function(t){return tS(t.formatter)?t.formatter.call(this,this):t.text},t.prototype.destroy=function(){tO(this.axis.plotLinesAndBands,this),delete this.axis,tT(this)},t}(),iR=eG.format,iN=tc.composed,iW=tc.dateFormats,iG=tc.doc,iH=tc.isSafari,iX=eH.distribute,iF=function(t){clearTimeout(t.hideTimer),clearTimeout(t.showTimer)},iY=function(){function t(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}return t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"Format"]||"",t)})},t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=null==e?void 0:e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e,i=this.points||t3(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),tC(this.container)),tG(this.hideTimer),iF(this)},t.prototype.getAnchor=function(t,e){var i,o,r=this.chart,n=this.pointer,s=r.inverted,a=r.plotTop,l=r.plotLeft;if((null==(i=(t=t3(t))[0].series)?void 0:i.yAxis)&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=n.normalize(e)),o=[e.chartX-l,e.chartY-a];else if(t[0].tooltipPos)o=t[0].tooltipPos;else{var h=0,d=0;t.forEach(function(t){var e=t.pos(!0);e&&(h+=e[0],d+=e[1])}),h/=t.length,d/=t.length,this.shared&&t.length>1&&e&&(s?h=e.chartX:d=e.chartY),o=[h-l,d-a]}var c={point:t[0],ret:o};return tB(this,"getAnchor",c),c.ret.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=this.options,r=t.series,n=r.options;return[o.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+tJ(t.colorIndex,r.colorIndex),null==n?void 0:n.className].filter(tY).join(" ")},t.prototype.getLabel=function(t){var e,i,o=void 0===t?{anchorX:0,anchorY:0}:t,r=o.anchorX,n=o.anchorY,s=this,a=this.chart.styledMode,l=this.options,h=this.split&&this.allowShared,d=this.container,c=this.chart.renderer;if(this.label){var p=!this.label.hasClass("highcharts-label");(!h&&p||h&&!p)&&this.destroy()}if(!this.label){if(this.outside){var u=this.chart,f=u.options.chart.style;this.container=d=tc.doc.createElement("div"),d.className="highcharts-container highcharts-tooltip-container "+(u.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),d.dataset.highchartsChart=u.index.toString(),tA(d,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(l.style.zIndex||0,((null==f?void 0:f.zIndex)||0)+3)}),this.renderer=c=new iu(d,0,0,f,void 0,void 0,c.styledMode)}if(h?this.label=c.g("tooltip"):(this.label=c.label("",r,n,l.shape||"callout",void 0,void 0,l.useHTML,void 0,"tooltip").attr({padding:l.padding,r:l.borderRadius}),a||this.label.attr({fill:l.backgroundColor,"stroke-width":null!=(e=l.borderWidth)?e:+!l.fixed}).css(l.style).css({pointerEvents:l.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),s.outside){var g=this.label;[g.xSetter,g.ySetter].forEach(function(t,e){g[e?"ySetter":"xSetter"]=function(i){t.call(g,s.distance),g[e?"y":"x"]=i,d&&(d.style[e?"top":"left"]=""+i+"px")}})}this.label.attr({zIndex:8}).shadow(null!=(i=l.shadow)?i:!l.fixed).add()}return d&&!d.parentElement&&tc.doc.body.appendChild(d),this.label},t.prototype.getPlayingField=function(){var t=iG.body,e=iG.documentElement,i=this.chart,o=this.distance,r=this.outside;return{width:r?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*o-2:i.chartWidth,height:r?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}},t.prototype.getPosition=function(t,e,i){var o,r,n,s=this.distance,a=this.chart,l=this.outside,h=this.pointer,d=a.inverted,c=a.plotLeft,p=a.plotTop,u=a.polar,f=i.plotX,g=void 0===f?0:f,v=i.plotY,m=void 0===v?0:v,y={},x=d&&i.h||0,b=this.getPlayingField(),M=b.height,k=b.width,w=h.getChartPosition(),A=function(t){return t*w.scaleX},S=function(t){return t*w.scaleY},T=function(i){var o="x"===i;return[i,o?k:M,o?t:e].concat(l?[o?A(t):S(e),o?w.left-s+A(g+c):w.top-s+S(m+p),0,o?k:M]:[o?t:e,o?g+c:m+p,o?c:p,o?c+a.plotWidth:p+a.plotHeight])},C=T("y"),P=T("x"),O=!!i.negative;!u&&(null==(r=null==(o=a.hoverSeries)?void 0:o.yAxis)?void 0:r.reversed)&&(O=!O);var L=!this.followPointer&&tJ(i.ttBelow,!u&&!d===O),E=function(t,e,i,o,r,n,a){var h=l?"y"===t?S(s):A(s):s,d=(i-o)/2,c=o<r-s,p=r+s+o<e,u=r-h-i+d,f=r+h-d;if(L&&p)y[t]=f;else if(!L&&c)y[t]=u;else if(c)y[t]=Math.min(a-o,u-x<0?u:u-x);else{if(!p)return y[t]=0,!1;y[t]=Math.max(n,f+x+i>e?f:f+x)}},B=function(t,e,i,o,r){if(r<s||r>e-s)return!1;r<i/2?y[t]=1:r>e-o/2?y[t]=e-o-2:y[t]=r-i/2},I=function(t){var e;C=(e=[P,C])[0],P=e[1],n=t},D=function(){!1!==E.apply(0,C)?!1!==B.apply(0,P)||n||(I(!0),D()):n?y.x=y.y=0:(I(!0),D())};return(d&&!u||this.len>1)&&I(),D(),l&&(y.x-=w.left,y.y-=w.top),y},t.prototype.getFixedPosition=function(t,e,i){var o,r=i.series,n=this.chart,s=this.options,a=this.split,l=s.position,h=l.relativeTo,d=s.shared||(null==(o=null==r?void 0:r.yAxis)?void 0:o.isRadial)&&("pane"===h||!h)?"plotBox":h,c="chart"===d?n.renderer:n[d]||n.getClipBox(r,!0);return{x:c.x+(c.width-t)*tI(l.align)+l.x,y:c.y+(c.height-e)*tI(l.verticalAlign)+(!a&&l.y||0)}},t.prototype.hide=function(t){var e=this;iF(this),t=tJ(t,this.options.hideDelay),this.isHidden||(this.hideTimer=t9(function(){var i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:function(){i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=tJ(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))},t.prototype.move=function(t,e,i,o){var r=this,n=this.followPointer,s=this.options,a=ew(!n&&!this.isHidden&&!s.fixed&&s.animation),l=n||(this.len||0)>1,h={x:t,y:e};l?h.anchorX=h.anchorY=NaN:(h.anchorX=i,h.anchorY=o),a.step=function(){return r.drawTracker()},this.getLabel().animate(h,a)},t.prototype.refresh=function(t,e){var i=this,o=this,r=this.chart,n=this.options,s=this.pointer,a=this.shared,l=t3(t),h=l[0],d=n.format,c=n.formatter||o.defaultFormatter,p=r.styledMode,u=o.allowShared;if(n.enabled&&h.series){iF(this),o.allowShared=!(!tj(t)&&t.series&&t.series.noSharedTooltip),u=u&&!o.allowShared,o.followPointer=!o.split&&h.series.tooltipOptions.followPointer;var f=o.getAnchor(t,e),g=f[0],v=f[1];a&&o.allowShared&&(s.applyInactiveState(l),l.forEach(function(t){return t.setState("hover")}),h.points=l),this.len=l.length;var m=tY(d)?iR(d,h,r):c.call(h,o,h);h.points=void 0;var y=h.series;this.distance=tJ(y.tooltipOptions.distance,16),!1===m?this.hide():this.showTimer=t9(function(){if(o.split&&o.allowShared)o.renderSplit(m,l);else{var t=g,a=v;if(e&&s.isDirectTouch&&(t=e.chartX-r.plotLeft,a=e.chartY-r.plotTop),!(r.polar||!1===y.options.clip||l.some(function(e){return s.isDirectTouch||e.series.shouldShowTooltip(t,a)})))return void o.hide();var d=o.getLabel(u&&o.tt||{});(!n.style.width||p)&&d.css({width:(i.outside?i.getPlayingField():r.spacingBox).width-2*n.padding+"px"}),d.attr({class:o.getClassName(h),text:tj(m)?m.join(""):m}),i.outside&&d.attr({x:tb(d.x||0,0,i.getPlayingField().width-(d.width||0)-1)}),p||d.attr({stroke:n.borderColor||h.color||y.color||"var(--highcharts-neutral-color-60)"}),o.updatePosition({plotX:g,plotY:v,negative:h.negative,ttBelow:h.ttBelow,series:y,h:f[2]||0})}o.isHidden&&o.label&&o.label.attr({opacity:1}).show(),o.isHidden=!1},o.isHidden&&n.showDelay||0),tB(this,"refresh")}},t.prototype.renderSplit=function(t,e){var i,o,r=this,n=this,s=n.chart,a=n.chart,l=a.chartWidth,h=a.chartHeight,d=a.plotHeight,c=a.plotLeft,p=a.plotTop,u=a.scrollablePixelsY,f=a.scrollablePixelsX,g=a.styledMode,v=n.distance,m=n.options,y=n.options,x=y.fixed,b=y.position,M=y.positioner,k=n.pointer,w=(null==(i=s.scrollablePlotArea)?void 0:i.scrollingContainer)||{},A=w.scrollLeft,S=void 0===A?0:A,T=w.scrollTop,C=void 0===T?0:T,P=n.outside&&"number"!=typeof f?iG.documentElement.getBoundingClientRect():{left:S,right:S+l,top:C,bottom:C+h},O=n.getLabel(),L=this.renderer||s.renderer,E=!!(null==(o=s.xAxis[0])?void 0:o.opposite),B=k.getChartPosition(),I=B.left,D=B.top,z=M||x,R=p+C,N=0,W=d-(void 0===u?0:u),G=function(t,e,i,o,r,s){if(void 0===r&&(r=[0,0]),void 0===s&&(s=!0),i.isHeader)l=E?0:W,a=tb(r[0]-t/2,P.left,P.right-t-(n.outside?I:0));else if(x&&i){var a,l,h=n.getFixedPosition(t,e,i);a=h.x,l=h.y-R}else l=r[1]-R,a=tb(a=s?r[0]-t-v:r[0]+v,s?a:P.left,P.right);return{x:a,y:l}};tY(t)&&(t=[!1,t]);var H=t.slice(0,e.length+1).reduce(function(t,i,o){if(!1!==i&&""!==i){var r=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}},s=r.isHeader,a=s?n:r.series,l=a.tt=function(t,e,i){var o,r=t,s=e.isHeader,a=e.series,l=a.tooltipOptions||m,h=s?tV(l,l.header):l;if(!r){var d={padding:l.padding,r:l.borderRadius};g||(d.fill=h.backgroundColor,d["stroke-width"]=null!=(o=h.borderWidth)?o:+!l.fixed),r=L.label("",0,0,h.shape||(x&&!s?"rect":"callout"),void 0,void 0,l.useHTML).addClass(n.getClassName(e,!0,s)).attr(d).add(O)}return r.isActive=!0,g||r.css(h.style),r.attr({text:i}),g||r.attr({stroke:h.borderColor||e.color||a.color||"var(--highcharts-neutral-color-80)"}),r}(a.tt,r,i.toString()),h=l.getBBox(),u=h.width+l.strokeWidth();s&&(N=h.height+m.header.distance,W+=N,E&&(R-=N));var f=function(t){var e,i,o=t.isHeader,r=t.plotX,n=void 0===r?0:r,s=t.plotY,a=void 0===s?0:s,l=t.series;if(o)e=Math.max(c+n,c),i=p+d/2;else{var h=l.xAxis,u=l.yAxis;e=h.pos+tb(n,-v,h.len+v),l.shouldShowTooltip(0,u.pos-p+a,{ignoreX:!0})&&(i=u.pos+a)}return{anchorX:e=tb(e,P.left-v,P.right+v),anchorY:i}}(r),y=f.anchorX,b=f.anchorY;if("number"==typeof b){var k=h.height+1,w=(M||G).call(n,u,k,r,n,[y,b]);t.push({align:z?0:void 0,anchorX:y,anchorY:b,boxWidth:u,point:r,rank:tJ(w.rank,+!!s),size:k,target:w.y,tt:l,x:w.x})}else l.isActive=!1}return t},[]);!z&&H.some(function(t){var e=(n.outside?I:0)+t.anchorX;return e<P.left&&e+t.boxWidth<P.right||e<I-P.left+t.boxWidth&&P.right-e>e})&&(H=H.map(function(t){var e=G.call(r,t.boxWidth,t.size,t.point,void 0,[t.anchorX,t.anchorY],!1),i=e.x;return tL(t,{target:e.y,x:i})})),n.cleanSplit(),iX(H,W);var X={left:I,right:I};H.forEach(function(t){var e=t.x,i=t.boxWidth;!t.isHeader&&(n.outside&&I+e<X.left&&(X.left=I+e),n.outside&&X.left+i>X.right&&(X.right=I+e))}),H.forEach(function(t){var e=t.x,i=t.anchorX,o=t.anchorY,r=t.pos,s=t.point.isHeader,a={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+R+(x&&b.y||0),anchorX:i,anchorY:o};if(n.outside&&e<i){var l=I-X.left;l>0&&(a.x=s?(X.right-X.left)/2:e+l,a.anchorX=i+l)}t.tt.attr(a)});var F=n.container,Y=n.outside,j=n.renderer;if(Y&&F&&j){var _=O.getBBox(),U=_.width,V=_.height,Z=_.x,K=_.y;j.setSize(U+Z,V+K,!1),F.style.left=X.left+"px",F.style.top=D+"px"}iH&&O.attr({opacity:1===O.opacity?.999:1})},t.prototype.drawTracker=function(){var t=this;if(!this.shouldStickOnContact()){t.tracker&&(t.tracker=t.tracker.destroy());return}var e=t.chart,i=t.label,o=t.shared?e.hoverPoints:e.hoverPoint;if(i&&o){var r={x:0,y:0,width:0,height:0},n=this.getAnchor(o),s=i.getBBox();n[0]+=e.plotLeft-(i.translateX||0),n[1]+=e.plotTop-(i.translateY||0),r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=n[0]<0?Math.max(Math.abs(n[0]),s.width-n[0]):Math.max(Math.abs(n[0]),s.width),r.height=n[1]<0?Math.max(Math.abs(n[1]),s.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),s.height),t.tracker?t.tracker.attr(r):(t.tracker=i.renderer.rect(r).addClass("highcharts-tracker").add(i),tv(t.tracker.element,"mouseenter",function(){return iF(t)}),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)"}))}},t.prototype.styledModeFormat=function(t){return t.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}"')},t.prototype.headerFooterFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,r=i.xAxis,n=null==r?void 0:r.dateTime,s={isFooter:e,point:t},a=o.xDateFormat||"",l=o[e?"footerFormat":"headerFormat"];return tB(this,"headerFormatter",s,function(e){if(n&&!a&&tF(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a){if(tU(a)){var r=a;iW[0]=function(t){return i.chart.time.dateFormat(r,t)},a="%0"}(t.tooltipDateKeys||["key"]).forEach(function(t){l=l.replace(RegExp("point\\."+t+"([ \\)}])"),"(point.".concat(t,":").concat(a,")$1"))})}i.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=iR(l,t,this.chart)}),s.text||""},t.prototype.update=function(t){this.destroy(),this.init(this.chart,tV(!0,this.options,t))},t.prototype.updatePosition=function(t){var e,i,o,r=this.chart,n=this.container,s=this.distance,a=this.options,l=this.pointer,h=this.renderer,d=this.getLabel(),c=d.height,p=void 0===c?0:c,u=d.width,f=void 0===u?0:u,g=a.fixed,v=a.positioner,m=l.getChartPosition(),y=m.left,x=m.top,b=m.scaleX,M=m.scaleY,k=(v||g&&this.getFixedPosition||this.getPosition).call(this,f,p,t,this),w=tc.doc,A=(t.plotX||0)+r.plotLeft,S=(t.plotY||0)+r.plotTop;if(h&&n){if(k.x+=y,k.y+=x,v||g){var T=(null==(e=r.scrollablePlotArea)?void 0:e.scrollingContainer)||{},C=T.scrollLeft,P=T.scrollTop;k.x+=void 0===C?0:C,k.y+=void 0===P?0:P}o=(null!=(i=a.borderWidth)?i:+!g)+2*s+2,h.setSize(tb(f+o,0,w.documentElement.clientWidth)-1,p+o,!1),(1!==b||1!==M)&&(tA(n,{transform:"scale(".concat(b,", ").concat(M,")")}),A*=b,S*=M),A+=y-k.x,S+=x-k.y}this.move(Math.round(k.x),Math.round(k.y||0),A,S)},t}();(p=iY||(iY={})).compose=function(t){t0(iN,"Core.Tooltip")&&tv(t,"afterInit",function(){var t=this.chart;t.options.tooltip&&(t.tooltip=new p(t,t.options.tooltip,this))})};var ij=iY,i_=eG.format,iU=function(){function t(t,e,i){var o,r,n,s;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),null!=this.id||(this.id=er()),this.resolveColor(),null!=this.dataLabelOnNull||(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=null!=(n=null==(r=null==(o=t.xAxis)?void 0:o.categories)?void 0:r[this.x])?n:this.x,this.key=null!=(s=this.name)?s:this.category,tB(this,"afterInit")}return t.prototype.applyOptions=function(e,i,o){var r=this.series,n=r.options.pointValKey||r.pointValKey;return tL(this,e=t.prototype.optionsToObject.call(this,e)),this.options?this.options=r.chart.options.chart.allowMutatingData?tL(this.options,e):tV(this.options,e):this.options=e,n&&(this.y=t.prototype.getNestedProperty.call(this,n)),tF(i)&&(this.x=i),o||(this.selected&&(this.state="select"),e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point"),this},t.prototype.getOrigin=function(t,e){var i,o=t.x,r=void 0===o?0:o,n=t.y,s=void 0===n?0:n;void 0===e&&(e={});var a=this.graphic,l=this.series;if(l.chart.inverted&&(null==a?void 0:a.parentGroup)&&!(null==(i=null==a?void 0:a.parentGroup)?void 0:i.rotation)){var h=this.pos(!1,r,s);h&&(r=h[0],s=h[1])}r-=(e.width||0)/2,s-=(e.height||0)/2;var d={x:r};return l.is("column")||this.plotHigh||(d.y=s),d},t.prototype.destroy=function(){var t;if(!this.condemned){var e=this,i=e.series,o=i.chart,r=o.hoverPoints,n=ew(e.series.chart.renderer.globalAnimation).duration,s=function(){for(var t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(t5(e),e.destroyElements()),e)delete e[t]};e.legendItem&&o.legend.destroyItem(e),r&&(e.setState(),tO(r,e),r.length||(o.hoverPoints=void 0)),e===o.hoverPoint&&e.onMouseOut(),n&&i.condemnedPoints?(i.condemnedPoints.push(this),null==(t=this.graphic)||t.addClass("highcharts-point-condemned"),setTimeout(s,n)):s(),o.pointCount--}this.condemned=!0},t.prototype.destroyElements=function(t){void 0===t&&(t={graphic:1,dataLabel:1});var e,i,o=this,r=[];for(t.graphic&&r.push("graphic","connector"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)o[e=r[i]]&&(o[e]=o[e].destroy());["graphic","dataLabel"].forEach(function(e){var i=""+e+"s";t[e]&&o[i]&&(o[i].forEach(function(t){(null==t?void 0:t.element)&&t.destroy()}),delete o[i])})},t.prototype.firePointEvent=function(t,e,i){var o=this,r=this.series.options;o.manageEvent(t),"click"===t&&r.allowPointSelect&&(i=function(t){!o.condemned&&o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),tB(o,t,e,i)},t.prototype.getClassName=function(){var t;return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+((null==(t=this.zone)?void 0:t.className)?" "+this.zone.className.replace("highcharts-negative",""):"")},t.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?tR(t,this.options):this[t]},t.prototype.getZone=function(){var t,e=this.series,i=e.zones,o=e.zoneAxis||"y",r=0;for(t=i[0];this[o]>=t.value;)t=i[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),(null==t?void 0:t.color)&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.isValid=function(){return(tF(this.x)||this.x instanceof Date)&&tF(this.y)},t.prototype.optionsToObject=function(e){var i,o,r=this.series,n=r.options.keys,s=n||r.pointArrayMap||["y"],a=s.length,l={},h=0,d=0;if(tF(e)||null===e)l[s[0]]=e;else if(tj(e))for(!n&&e.length>a&&("string"==(o=typeof e[0])?(null==(i=r.xAxis)?void 0:i.dateTime)?l.x=r.chart.time.parse(e[0]):l[r.tupleKey||"name"]=e[0]:"number"===o&&(l.x=e[0]),h++);d<a;)n&&void 0===e[h]||(l[s[d]]=e[h]),h++,d++;else"object"==typeof e&&(l=e,e.dataLabels&&(r.hasDataLabels=function(){return!0}),e.marker&&(r._hasPointMarkers=!0));return(n||!r.options.data)&&Object.keys(l).forEach(function(e){e.indexOf(".")>0&&(t.prototype.setNestedProperty(l,l[e],e),delete l[e])}),l},t.prototype.pos=function(t,e,i){void 0===e&&(e=this.plotX),void 0===i&&(i=this.plotY);var o=this.series||{},r=o.chart,n=o.xAxis,s=o.yAxis,a=0,l=0;if(r&&tF(e)&&tF(i))return t&&(a=n?n.pos:r.plotLeft,l=s?s.pos:r.plotTop),r.inverted&&n&&s?[s.len-i+l,n.len-e+a]:[e+a,i+l]},t.prototype.resolveColor=function(){var t,e,i,o,r=this.options,n=this.series,s=n.chart,a=s.options.chart,l=s.styledMode,h=a.colorCount;if(delete this.nonZonedColor,n.options.colorByPoint){if(!l){var d=n.options.colors||s.options.colors;i=null==d?void 0:d[n.colorCounter],h=null==d?void 0:d.length}o=n.colorCounter,n.colorCounter++,n.colorCounter===h&&(n.colorCounter=0)}else l||(i=n.color),o=n.colorIndex;this.colorIndex=null!=(t=r.colorIndex)?t:o,this.color=null!=(e=r.color)?e:i},t.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,r){var n=r.length-1===o;return t[i]=n?e:tU(t[i],!0)?t[i]:{},t[i]},t),t},t.prototype.shouldDraw=function(){return!this.isNull},t.prototype.tooltipFormatter=function(t){var e,i=this.series,o=i.chart,r=i.pointArrayMap,n=i.tooltipOptions,s=n.valueDecimals,a=void 0===s?"":s,l=n.valuePrefix,h=void 0===l?"":l,d=n.valueSuffix,c=void 0===d?"":d;return o.styledMode&&(t=(null==(e=o.tooltip)?void 0:e.styledModeFormat(t))||t),(void 0===r?["y"]:r).forEach(function(e){e="{point."+e,(h||c)&&(t=t.replace(RegExp(e+"}","g"),h+e+"}"+c)),t=t.replace(RegExp(e+"}","g"),e+":,."+a+"f}")}),i_(t,this,o)},t.prototype.update=function(t,e,i,o){void 0===e&&(e=!0);var r=this,n=r.series,s=r.graphic,a=n.chart,l=n.options,h=l.data;function d(){r.applyOptions(t);var o=s&&r.hasMockGraphic,d=r.index,c=null===r.y?!o:o;s&&c&&(r.graphic=s.destroy(),delete r.hasMockGraphic),tU(t,!0)&&((null==s?void 0:s.element)&&(null==t?void 0:t.marker)&&void 0!==t.marker.symbol&&(r.graphic=s.destroy()),(null==t?void 0:t.dataLabels)&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy()));var p=r.optionsToObject(t);!n.hasProcessedDataTable&&(n.dataTable.setRow(p,d),h&&(h[d]=tU(h[d],!0)||tU(t,!0)?r.options:null!=t?t:h[d])),n.isDirty=n.isDirtyData=!0,"x"in p&&(tY(p.x)&&(n.xColumnIsNumbers=void 0),r.x=n.getX(p.x),r.isNull=r.isValid&&!r.isValid(),n.xColumn&&(n.xColumn[d]=r.x)),!n.fixedBox&&n.hasCartesianSeries&&(a.isDirtyBox=!0),"point"===l.legendType&&(a.isDirtyLegend=!0),e&&a.redraw(i)}!1===o?d():r.firePointEvent("update",{options:t},d)},t.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},t.prototype.select=function(t,e){var i=this,o=i.series,r=o.chart;t=tJ(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data&&(o.options.data[o.data.indexOf(i)]=i.options),i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(t){var e=t.series,o=e.options;t.selected&&t!==i&&(t.selected=t.options.selected=!1,o.data&&(o.data[e.data.indexOf(t)]=t.options),t.setState(r.hoverPoints&&o.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},t.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.inverted,o=e.pointer;o&&(t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i),o.runPointActions(t,this))},t.prototype.onMouseOut=function(){if(this.series){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null}},t.prototype.manageEvent=function(t){var e,i,o,r,n,s,a,l=null==(e=tV(this.series.options.point,this.options).events)?void 0:e[t];!t_(l)||(null==(i=this.hcEvents)?void 0:i[t])&&(null==(r=null==(o=this.hcEvents)?void 0:o[t])?void 0:r.map(function(t){return t.fn}).indexOf(l))!==-1?this.importedUserEvent&&!l&&(null==(s=this.hcEvents)?void 0:s[t])&&(null==(a=this.hcEvents)?void 0:a[t].userEvent)&&(t5(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(n=this.importedUserEvent)||n.call(this),this.importedUserEvent=tv(this,t,l),this.hcEvents&&(this.hcEvents[t].userEvent=!0))},t.prototype.setState=function(t,e){var i,o,r,n,s,a,l=this.series,h=this.state,d=l.options.states[t||"normal"]||{},c=eu.plotOptions[l.type].marker&&l.options.marker,p=c&&!1===c.enabled,u=(null==(i=null==c?void 0:c.states)?void 0:i[t||"normal"])||{},f=!1===u.enabled,g=this.marker||{},v=l.chart,m=c&&l.markerAttribs,y=l.halo,x=l.stateMarkerGraphic;if(((t=t||"")!==this.state||e)&&(!this.selected||"select"===t)&&!1!==d.enabled&&(!t||!f&&(!p||!1!==u.enabled))&&(!t||!g.states||!g.states[t]||!1!==g.states[t].enabled)){if(this.state=t,m&&(r=l.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(h&&this.graphic.removeClass("highcharts-point-"+h),t&&this.graphic.addClass("highcharts-point-"+t),!v.styledMode){n=l.pointAttribs(this,t),s=tJ(v.options.chart.animation,d.animation);var b=n.opacity;l.options.inactiveOtherPoints&&tF(b)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:b},s),t.connector&&t.connector.animate({opacity:b},s))}),this.graphic.animate(n,s)}r&&this.graphic.animate(r,tJ(v.options.chart.animation,u.animation,c.animation)),x&&x.hide()}else t&&u&&(a=g.symbol||l.symbol,x&&x.currentSymbol!==a&&(x=x.destroy()),r&&(x?x[e?"animate":"attr"]({x:r.x,y:r.y}):a&&(l.stateMarkerGraphic=x=v.renderer.symbol(a,r.x,r.y,r.width,r.height,tV(c,u)).add(l.markerGroup),x.currentSymbol=a)),!v.styledMode&&x&&"inactive"!==this.state&&x.attr(l.pointAttribs(this,t))),x&&(x[t&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));var M=d.halo,k=this.graphic||x,w=(null==k?void 0:k.visibility)||"inherit";(null==M?void 0:M.size)&&k&&"hidden"!==w&&!this.isCluster?(y||(l.halo=y=v.renderer.path().add(k.parentGroup)),y.show()[e?"animate":"attr"]({d:this.haloPath(M.size)}),y.attr({class:"highcharts-halo highcharts-color-"+tJ(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:w,zIndex:-1}),y.point=this,v.styledMode||y.attr(tL({fill:this.color||l.color,"fill-opacity":M.opacity},eB.filterUserAttributes(M.attributes||{})))):(null==(o=null==y?void 0:y.point)?void 0:o.haloPath)&&!y.point.destroyed&&y.animate({d:y.point.haloPath(0)},null,y.hide),tB(this,"afterSetState",{state:t})}},t.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(tw(e[0],1)-t,e[1]-t,2*t,2*t):[]},t}(),iV=function(){return(iV=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},iZ=tc.charts,iK=tc.composed,iq=tc.isTouchDevice,i$=function(t,e){return!tS(e)||t[""+e+"Key"]},iJ=function(){function t(t,e){var i;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!(null==(i=e.chart.events)?void 0:i.click),this.pinchDown=[],this.setDOMEvents(),tB(this,"afterInit")}return t.prototype.applyInactiveState=function(t){var e,i,o=this;void 0===t&&(t=[]);var r=[];t.forEach(function(t){var e=t.series;r.push(e),e.linkedParent&&r.push(e.linkedParent),e.linkedSeries&&r.push.apply(r,e.linkedSeries),e.navigatorSeries&&r.push(e.navigatorSeries),e.boosted&&e.markerGroup&&r.push.apply(r,o.chart.series.filter(function(t){return t.markerGroup===e.markerGroup}))});for(var n=0,s=this.chart.series;n<s.length;n++){var a=s[n],l=a.options;(null==(i=null==(e=l.states)?void 0:e.inactive)?void 0:i.enabled)!==!1&&(-1===r.indexOf(a)?a.setState("inactive",!0):l.inactiveOtherPoints&&a.setAllPointsToState("inactive"))}},t.prototype.destroy=function(){var e=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],!tc.chartCount&&(t.unbindDocumentMouseUp.forEach(function(t){return t.unbind()}),t.unbindDocumentMouseUp.length=0,t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),tK(e,function(t,i){e[i]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return tB(this,"getSelectionMarkerAttrs",o,function(o){var r,n=i.chart,s=i.zoomHor,a=i.zoomVert,l=n.mouseDownX,h=void 0===l?0:l,d=n.mouseDownY,c=void 0===d?0:d,p=o.attrs;p.x=n.plotLeft,p.y=n.plotTop,p.width=s?1:n.plotWidth,p.height=a?1:n.plotHeight,s&&(p.width=Math.max(1,Math.abs(r=t-h)),p.x=(r>0?0:r)+h),a&&(p.height=Math.max(1,Math.abs(r=e-c)),p.y=(r>0?0:r)+c)}),o},t.prototype.drag=function(t){var e,i=this.chart,o=i.mouseDownX,r=void 0===o?0:o,n=i.mouseDownY,s=void 0===n?0:n,a=i.options.chart,l=a.panning,h=a.panKey,d=a.selectionMarkerFill,c=i.plotLeft,p=i.plotTop,u=i.plotWidth,f=i.plotHeight,g=tU(l)?l.enabled:l,v=h&&t[""+h+"Key"],m=t.chartX,y=t.chartY,x=this.selectionMarker;if((!x||!x.touch)&&(m<c?m=c:m>c+u&&(m=c+u),y<p?y=p:y>p+f&&(y=p+f),this.hasDragged=Math.sqrt(Math.pow(r-m,2)+Math.pow(s-y,2)),this.hasDragged>10)){e=i.isInsidePlot(r-c,s-p,{visiblePlotOnly:!0});var b=this.getSelectionMarkerAttrs(m,y),M=b.shapeType,k=b.attrs;this.hasZoom&&e&&!v&&!x&&(this.selectionMarker=x=i.renderer[M](),x.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||x.attr({fill:d})),x&&x.attr(k),e&&!x&&g&&i$(t,h)&&i.pan(t,l)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:t.getBBox()};return tB(this,"getSelectionBox",e),e.result},t.prototype.drop=function(t){for(var e,i=this,o=this.chart,r=this.selectionMarker,n=0,s=o.axes;n<s.length;n++){var a=s[n];a.isPanning&&(a.isPanning=!1,(a.options.startOnTick||a.options.endOnTick||a.series.some(function(t){return t.boosted}))&&(a.forceRedraw=!0,a.setExtremes(a.userMin,a.userMax,!1),e=!0))}if(e&&o.redraw(),r&&t){if(this.hasDragged){var l=this.getSelectionBox(r);o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&("xAxis"===t.coll&&i.zoomX||"yAxis"===t.coll&&i.zoomY)}),selection:iV({originalEvent:t,xAxis:[],yAxis:[]},l),from:l})}tF(o.index)&&(this.selectionMarker=r.destroy())}o&&tF(o.index)&&(tA(o.container,{cursor:o._cursor}),o.cancelClick=this.hasDragged>10,o.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)},t.prototype.findNearestKDPoint=function(t,e,i){var o;return t.forEach(function(t){var r,n,s,a,l,h,d=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),c=t.searchPoint(i,d);tU(c,!0)&&c.series&&(!tU(o,!0)||(a=(r=o).distX-c.distX,l=r.dist-c.dist,h=(null==(n=c.series.group)?void 0:n.zIndex)-(null==(s=r.series.group)?void 0:s.zIndex),(0!==a&&e?a:0!==l?l:0!==h?h:r.series.index>c.series.index?-1:1)>0))&&(o=c)}),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,r=t.series,n=r.xAxis,s=r.yAxis,a=t.shapeArgs;if(n&&s){var l=null!=(o=null!=(i=t.clientX)?i:t.plotX)?o:0,h=t.plotY||0;return t.isNode&&a&&tF(a.x)&&tF(a.y)&&(l=a.x,h=a.y),e?{chartX:s.len+s.pos-h,chartY:n.len+n.pos-l}:{chartX:l+n.pos,chartY:h+s.pos}}if((null==a?void 0:a.x)&&a.y)return{chartX:a.x,chartY:a.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=tq(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetHeight,o=t.offsetWidth;return o>2&&i>2&&(this.chartPosition.scaleX=e.width/o,this.chartPosition.scaleY=e.height/i),this.chartPosition},t.prototype.getCoordinates=function(t){for(var e={xAxis:[],yAxis:[]},i=0,o=this.chart.axes;i<o.length;i++){var r=o[i];e[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(t[r.horiz?"chartX":"chartY"])})}return e},t.prototype.getHoverData=function(t,e,i,o,r,n){var s,a=[],l=function(t){return t.visible&&!(!r&&t.directTouch)&&tJ(t.options.enableMouseTracking,!0)},h=e,d={chartX:n?n.chartX:void 0,chartY:n?n.chartY:void 0,shared:r};tB(this,"beforeGetHoverData",d),s=h&&!h.stickyTracking?[h]:i.filter(function(t){return t.stickyTracking&&(d.filter||l)(t)});var c=o&&t||!n?t:this.findNearestKDPoint(s,r,n);return h=null==c?void 0:c.series,c&&(r&&!h.noSharedTooltip?(s=i.filter(function(t){return d.filter?d.filter(t):l(t)&&!t.noSharedTooltip})).forEach(function(t){var e,i=null==(e=t.options)?void 0:e.nullInteraction,o=tW(t.points,function(t){return t.x===c.x&&(!t.isNull||!!i)});tU(o)&&(t.boosted&&t.boost&&(o=t.boost.getPoint(o)),a.push(o))}):a.push(c)),tB(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:h,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){for(var e,i=t.target;i&&!e;)e=i.point,i=i.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){var e=this.chart,i=t.relatedTarget,o=e.hoverSeries;this.isDirectTouch=!1,!o||!i||o.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+o.index)&&this.inClass(i,"highcharts-tracker")||o.onMouseOut()},t.prototype.inClass=function(t,e){for(var i,o=t;o;){if(i=tx(o,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}o=o.parentElement}},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):tJ(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());var r=o.pageX-e.left,n=o.pageY-e.top;return tL(t,{chartX:Math.round(r/=e.scaleX),chartY:Math.round(n/=e.scaleY)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,o=this.normalize(t),r=e.plotLeft,n=e.plotTop;!e.cancelClick&&(i&&this.inClass(o.target,"highcharts-tracker")?(tB(i.series,"click",tL(o,{point:i})),e.hoverPoint&&i.firePointEvent("click",o)):(tL(o,this.getCoordinates(o)),e.isInsidePlot(o.chartX-r,o.chartY-n,{visiblePlotOnly:!0})&&tB(e,"click",o)))},t.prototype.onContainerMouseDown=function(t){var e,i=(1&(t.buttons||t.button))==1;t=this.normalize(t),tc.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&(null==(e=t.preventDefault)||e.call(t)),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=(iZ[tJ(t.hoverChartIndex,-1)]||{}).pointer;e=this.normalize(e),this.onContainerMouseMove(e),i&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(i.reset(),i.chartPosition=void 0)},t.prototype.onContainerMouseEnter=function(){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e,i=this.chart,o=i.tooltip,r=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===i.mouseIsDown||this.touchSelect(r))&&this.drag(r),!(!(null==(e=i.exporting)?void 0:e.openMenu)&&(this.inClass(r.target,"highcharts-tracker")||i.isInsidePlot(r.chartX-i.plotLeft,r.chartY-i.plotTop,{visiblePlotOnly:!0})))||(null==o?void 0:o.shouldStickOnContact(r))||(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))},t.prototype.onDocumentTouchEnd=function(t){this.onDocumentMouseUp(t)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition,r=this.normalize(t,o);!o||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0})||(null==i?void 0:i.shouldStickOnContact(r))||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i,o,r;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(i=null==e?void 0:e.preventDefault)||i.call(e)),null==(r=null==(o=iZ[tJ(t.hoverChartIndex,-1)])?void 0:o.pointer)||r.drop(e)},t.prototype.pinch=function(t){var e,i,o=this,r=this,n=r.chart,s=r.hasZoom,a=r.lastTouches,l=[].map.call(t.touches||[],function(t){return r.normalize(t)}),h=l.length,d=1===h&&(r.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||r.runChartClick),c=1===h&&(null==(i=null==(e=n.tooltip)?void 0:e.options.followTouchMove)||i);h>1?r.initiated=!0:c&&(r.initiated=!1),s&&r.initiated&&!d&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(r.pinchDown=l,r.res=!0,n.mouseDownX=t.chartX):c?this.runPointActions(r.normalize(t)):a&&(tB(n,"touchpan",{originalEvent:t,touches:l},function(){var e=function(t){var e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};n.transform({axes:n.axes.filter(function(t){return t.zoomEnabled&&(o.zoomHor&&t.horiz||o.zoomVert&&!t.horiz)}),to:e(l),from:e(a),trigger:t.type})}),r.res&&(r.res=!1,this.reset(!1,0))),r.lastTouches=l},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,r=i.hoverPoint,n=i.hoverPoints,s=i.tooltip,a=(null==s?void 0:s.shared)?n:r;t&&a&&t3(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&t3(a).length&&(s.refresh(a),s.shared&&n?n.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),n&&n.forEach(function(t){t.setState()}),o&&o.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)},t.prototype.runPointActions=function(e,i,o){var r,n=this.chart,s=n.series,a=(null==(r=n.tooltip)?void 0:r.options.enabled)?n.tooltip:void 0,l=!!a&&a.shared,h=i||n.hoverPoint,d=(null==h?void 0:h.series)||n.hoverSeries,c=(!e||"touchmove"!==e.type)&&(!!i||(null==d?void 0:d.directTouch)&&this.isDirectTouch),p=this.getHoverData(h,d,s,c,l,e);h=p.hoverPoint,d=p.hoverSeries;var u=p.hoverPoints,f=(null==d?void 0:d.tooltipOptions.followPointer)&&!d.tooltipOptions.split,g=l&&d&&!d.noSharedTooltip;if(h&&(o||h!==n.hoverPoint||(null==a?void 0:a.isHidden))){if((n.hoverPoints||[]).forEach(function(t){-1===u.indexOf(t)&&t.setState()}),n.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!h.series)return;n.hoverPoints=u,n.hoverPoint=h,h.firePointEvent("mouseOver",void 0,function(){a&&h&&a.refresh(g?u:h,e)})}else if(f&&a&&!a.isHidden){var v=a.getAnchor([{}],e);n.isInsidePlot(v[0],v[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:v[0],plotY:v[1]})}this.unDocMouseMove||(this.unDocMouseMove=tv(n.container.ownerDocument,"mousemove",function(e){var i,o,r;return null==(r=null==(o=iZ[null!=(i=t.hoverChartIndex)?i:-1])?void 0:o.pointer)?void 0:r.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(t){var i,o,r,s=null==(o=null==(i=t.crosshair)?void 0:i.snap)||o;s&&((r=n.hoverPoint)&&r.series[t.coll]===t||(r=tW(u,function(e){var i;return(null==(i=e.series)?void 0:i[t.coll])===t}))),r||!s?t.drawCrosshair(e,r):t.hideCrosshair()})},t.prototype.setDOMEvents=function(){var e=this,i=this.chart.container,o=i.ownerDocument,r=function(t){var e,i;return t.parentElement||(null==(i=null==(e=t.getRootNode())?void 0:e.host)?void 0:i.parentElement)};i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(tv(i,"mouseenter",this.onContainerMouseEnter.bind(this)),tv(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp.some(function(t){return t.doc===o})||t.unbindDocumentMouseUp.push({doc:o,unbind:tv(o,"mouseup",this.onDocumentMouseUp.bind(this))});for(var n=r(this.chart.renderTo);n&&"BODY"!==n.tagName;)this.eventsToUnbind.push(tv(n,"scroll",function(){delete e.chartPosition})),n=r(n);this.eventsToUnbind.push(tv(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),tv(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=tv(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),tv(this.chart,"redraw",this.setPointerCapture.bind(this))},t.prototype.setPointerCapture=function(){if(iq){var t,e,i=this.pointerCaptureEventsToUnbind,o=this.chart,r=o.container,n=(null==(e=null==(t=o.options.tooltip)?void 0:t.followTouchMove)||e)&&o.series.some(function(t){return t.options.findNearestPointBy.indexOf("y")>-1});!this.hasPointerCapture&&n?(i.push(tv(r,"pointerdown",function(t){var e,i;(null==(e=t.target)?void 0:e.hasPointerCapture(t.pointerId))&&(null==(i=t.target)||i.releasePointerCapture(t.pointerId))}),tv(r,"pointermove",function(t){var e,i;null==(i=null==(e=o.pointer)?void 0:e.getPointFromEvent(t))||i.onMouseOver(t)})),this.hasPointerCapture=!0):this.hasPointerCapture&&!n&&(i.forEach(function(t){return t()}),i.length=0,this.hasPointerCapture=!1)}},t.prototype.setHoverChartIndex=function(e){var i,o=this.chart,r=tc.charts[tJ(t.hoverChartIndex,-1)];if(r&&r!==o){var n={relatedTarget:o.container};!e||(null==e?void 0:e.relatedTarget)||Object.assign({},e,n),null==(i=r.pointer)||i.onContainerMouseLeave(e||n)}(null==r?void 0:r.mouseIsDown)||(t.hoverChartIndex=o.index)},t.prototype.touch=function(t,e){var i,o,r,n,s,a=this.chart,l=this.pinchDown,h=void 0===l?[]:l;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?((s=a.isInsidePlot(t.chartX-a.plotLeft,t.chartY-a.plotTop,{visiblePlotOnly:!0}))&&(null==(i=a.exporting)||!i.openMenu)?(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=n=!!h[0]&&Math.pow(h[0].chartX-t.chartX,2)+Math.pow(h[0].chartY-t.chartY,2)>=16),tJ(n,!0)&&this.pinch(t)):e&&this.reset(),(null==(r=null==(o=a.tooltip)?void 0:o.options.followTouchMove)||r)&&s&&t.preventDefault()):2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!!(this.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)},t.prototype.zoomOption=function(t){var e,i,o=this.chart,r=o.inverted,n=o.zooming.type||"";/touch/.test(t.type)&&(n=tJ(o.zooming.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=i=/y/.test(n),this.zoomHor=e&&!r||i&&r,this.zoomVert=i&&!r||e&&r,this.hasZoom=(e||i)&&i$(t,o.zooming.key)},t.unbindDocumentMouseUp=[],t}();(u=iJ||(iJ={})).compose=function(t){t0(iK,"Core.Pointer")&&tv(t,"beforeRender",function(){this.pointer=new u(this,this.options)})};var iQ=iJ,i0=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},i1=function(t,e,i,o,r){if(void 0===r&&(r=[]),Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice.apply(t,i0([e,i],r,!1)),array:t};var n=Object.getPrototypeOf(t).constructor,s=t[o?"subarray":"slice"](e,e+i),a=new n(t.length-i+r.length);return a.set(t.subarray(0,e),0),a.set(r,e),a.set(t.subarray(e+i),e+r.length),{removed:s,array:a}},i2=function(){function t(t){void 0===t&&(t={});var e=this;this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||er(),this.rowCount=0,this.versionTag=er();var i=0;tK(t.columns||{},function(t,o){e.columns[o]=t.slice(),i=Math.max(i,t.length)}),this.applyRowCount(i)}return t.prototype.applyRowCount=function(t){var e=this;this.rowCount=t,tK(this.columns,function(i,o){var r,n;i.length!==t&&(e.columns[o]=(r=i,n=t,Array.isArray(r)?(r.length=n,r):r.slice(0,n)))})},t.prototype.deleteRows=function(t,e){var i=this;if(void 0===e&&(e=1),e>0&&t<this.rowCount){var o=0;tK(this.columns,function(r,n){i.columns[n]=i1(r,t,e).array,o=r.length}),this.rowCount=o}tB(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=er()},t.prototype.getColumn=function(t,e){return this.columns[t]},t.prototype.getColumns=function(t,e){var i=this;return(t||Object.keys(this.columns)).reduce(function(t,e){return t[e]=i.columns[e],t},{})},t.prototype.getRowObject=function(t,e){var i,o={},r=this.columns;null!=e||(e=Object.keys(this.columns));for(var n=0,s=e;n<s.length;n++){var a=s[n];o[a]=null==(i=r[a])?void 0:i[t]}return o},t.prototype.setColumn=function(t,e,i,o){var r;void 0===e&&(e=[]),void 0===i&&(i=0),this.setColumns(((r={})[t]=e,r),i,o)},t.prototype.setColumns=function(t,e,i){var o=this,r=this.rowCount;tK(t,function(t,e){o.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),(null==i?void 0:i.silent)||(tB(this,"afterSetColumns"),this.versionTag=er())},t.prototype.setRow=function(t,e,i,o){void 0===e&&(e=this.rowCount);var r,n=this.columns,s=i?this.rowCount+1:e+1,a=Object.keys(t);if((null==o?void 0:o.addColumns)!==!1)for(var l=0,h=a.length;l<h;l++)n[r=a[l]]||(n[r]=Array(this.rowCount));tK(n,function(o,r){o&&(i?o=i1(o,e,0,!0,[t[r]]).array:o[e]=r in t?t[r]:o[e],n[r]=o)}),this.applyRowCount(Math.max(s,this.rowCount)),(null==o?void 0:o.silent)||(tB(this,"afterSetRows",{rowIndex:e}),this.versionTag=er())},t.prototype.getModified=function(){return this.modified||this},t}(),i5=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},i3=V||(V={});function i6(t,e,i){var o,r,n,s=this.legendItem=this.legendItem||{},a=this.chart,l=this.options,h=t.baseline,d=void 0===h?0:h,c=t.symbolWidth,p=t.symbolHeight,u=this.symbol||"circle",f=p/2,g=a.renderer,v=s.group,m=d-Math.round(((null==(o=t.fontMetrics)?void 0:o.b)||p)*(i?.4:.3)),y={},x=l.marker,b=0;if(a.styledMode||(y["stroke-width"]=Math.min(l.lineWidth||0,24),l.dashStyle?y.dashstyle=l.dashStyle:"square"!==l.linecap&&(y["stroke-linecap"]="round")),s.line=g.path().addClass("highcharts-graph").attr(y).add(v),i&&(s.area=g.path().addClass("highcharts-area").add(v)),y["stroke-linecap"]&&(b=Math.min(s.line.strokeWidth(),c)/2),c){var M=[["M",b,m],["L",c-b,m]];s.line.attr({d:M}),null==(r=s.area)||r.attr({d:i5(i5([],M,!0),[["L",c-b,d],["L",b,d]],!1)})}if(x&&!1!==x.enabled&&c){var k=Math.min(tJ(x.radius,f),f);0===u.indexOf("url")&&(x=tV(x,{width:p,height:p}),k=0),s.symbol=n=g.symbol(u,c/2-k,m-k,2*k,2*k,tL({context:"legend"},x)).addClass("highcharts-point").add(v),n.isMarker=!0}}i3.areaMarker=function(t,e){i6.call(this,t,e,!0)},i3.lineMarker=i6;var i9=V,i4={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"var(--highcharts-background-color)",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"var(--highcharts-neutral-color-20)",lineColor:"var(--highcharts-neutral-color-100)",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,distance:4,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:[1,3],style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},i8=(f=function(t,e){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i7=Z||(Z={});function ot(t,e){var i=eu.plotOptions||{},o=e.defaultOptions,r=e.prototype;return r.type=t,r.pointClass||(r.pointClass=iU),!i7.seriesTypes[t]&&(o&&(i[t]=o),i7.seriesTypes[t]=e,!0)}i7.seriesTypes=tc.seriesTypes,i7.registerSeriesType=ot,i7.seriesType=function(t,e,i,o,r){var n=eu.plotOptions||{};if(e=e||"",n[t]=tV(n[e],i),delete i7.seriesTypes[t],ot(t,tE(i7.seriesTypes[e]||tc.Series,o)),i7.seriesTypes[t].prototype.type=t,r){var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i8(e,t),e}(iU);tL(s.prototype,r),i7.seriesTypes[t].prototype.pointClass=s}return i7.seriesTypes[t]};var oe=Z,oi=function(){return(oi=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},oo=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},or=iM.registerEventOptions,on=tc.svg,os=tc.win,oa=oe.seriesTypes,ol=eG.format,oh=function(){function t(){this.zoneAxis="y"}return t.prototype.init=function(t,e){tB(this,"init",{options:e});var i,o,r,n,s=t.series;this.eventsToUnbind=[],this.condemnedPoints||(this.condemnedPoints=[]),this.chart=t,this.options=this.setOptions(e);var a=this.options,l=!1!==a.visible;null!=this.dataTable||(this.dataTable=(null==(i=a.dataTable)?void 0:i.isDataTable)?a.dataTable:new i2(a.dataTable)),this.linkedSeries=[],this.bindAxes(),tL(this,{name:a.name,state:"",visible:l,selected:!0===a.selected}),or(this,a);var h=a.events;((null==h?void 0:h.click)||(null==(r=null==(o=a.point)?void 0:o.events)?void 0:r.click)||a.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(n=s[s.length-1]),this._i=tJ(null==n?void 0:n._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",ei(this,s)),this.points||this.data||this.setData(a.data,!1),tB(this,"afterInit")},t.prototype.is=function(t){return oa[t]&&this instanceof oa[t]},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;tB(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(o[r]||[]).forEach(function(o){t=o.options,(tJ(i[r],0)===o.index||void 0!==i[r]&&i[r]===t.id)&&(ei(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||ee(18,!0,o)})}),tB(this,"afterBindAxes")},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0},t.prototype.hasMarkerChanged=function(t,e){var i=t.marker,o=e.marker||{};return i&&(o.enabled&&!i.enabled||o.symbol!==i.symbol||o.height!==i.height||o.width!==i.width)},t.prototype.autoIncrement=function(t){var e,i,o,r=this.options,n=this.options,s=n.pointIntervalUnit,a=n.relativeXValue,l=this.chart.time,h=null!=(i=null!=(e=this.xIncrement)?e:l.parse(r.pointStart))?i:0;if(this.pointInterval=o=tJ(this.pointInterval,r.pointInterval,1),a&&tF(t)&&(o*=t),s){var d=l.toParts(h);"day"===s?d[2]+=o:"month"===s?d[1]+=o:"year"===s&&(d[0]+=o),o=l.makeTime.apply(l,d)-h}return a&&tF(t)?h+o:(this.xIncrement=h+o,h)},t.prototype.setOptions=function(t){var e,i,o,r=this.chart,n=r.options.plotOptions,s=r.userOptions||{},a=tV(t),l=r.styledMode,h={plotOptions:n,userOptions:a};tB(this,"setOptions",h);var d=h.plotOptions[this.type],c=s.plotOptions||{},p=c.series||{},u=eu.plotOptions[this.type]||{},f=c[this.type]||{};d.dataLabels=this.mergeArrays(u.dataLabels,d.dataLabels),this.userOptions=h.userOptions;var g=tV(d,n.series,f,a),v=g.negativeColor,m=g.negativeFillColor,y=g.zoneAxis,x=void 0===y?"y":y,b=g.zones,M=(b||[]).map(function(t){return oi({},t)});return this.tooltipOptions=tV(eu.tooltip,null==(e=eu.plotOptions.series)?void 0:e.tooltip,null==u?void 0:u.tooltip,r.userOptions.tooltip,null==(i=c.series)?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=tJ(a.stickyTracking,f.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===d.marker&&delete g.marker,this.zones||(this.zones=M),this.zoneAxis=x,(v||m)&&!b&&(o={value:g[x+"Threshold"]||g.threshold||0,className:"highcharts-negative"},l||("boolean"!=typeof v&&(o.color=v),o.fillColor=m),M.push(o)),M.length&&tS(M[M.length-1].value)&&M.push(l?{}:{color:this.color,fillColor:this.fillColor}),tB(this,"afterSetOptions",{options:g}),g},t.prototype.getName=function(){var t=this.chart,e=this.options,i=e.dataMapping,o=e.name,r=(null==i?void 0:i.y)||(null==i?void 0:i.value),n=tY(r)?r:null==r?void 0:r.column;return null!=o?o:tY(n)?n:ol(t.options.lang.seriesName,this,t)},t.prototype.getCyclic=function(t,e,i){var o,r,n=this.chart,s=""+t+"Index",a=""+t+"Counter",l=(null==i?void 0:i.length)||n.options.chart.colorCount;!e&&(tS(r=tJ("color"===t?this.options.colorIndex:void 0,this[s]))?o=r:(n.series.length||(n[a]=0),o=n[a]%l,n[a]+=1),i&&(e=i[o])),void 0!==o&&(this[s]=o),this[t]=e},t.prototype.getColor=function(){var t,e=this.chart;e.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="var(--highcharts-neutral-color-20)":this.getCyclic("color",this.options.color||(null==(t=eu.plotOptions[this.type])?void 0:t.color),e.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)},t.prototype.getColumn=function(t,e,i){var o,r,n=this,s=e?this.dataTable.getModified():this.dataTable,a=s.rowCount,l=this.dataTable!==s,h=s.getColumn(t,!0);if("x"===t&&!l){if(this.xColumn)return this.xColumn;var d=s.getColumn("name",!0),c=this.options;if(this.xIncrement=null,!h||(null==(o=this.xAxis)?void 0:o.hasNames)||c.relativeXValue||h.length<(c.turboThreshold||1/0)&&!this.boosted&&!function(t){if(void 0!==n.xColumnIsNumbers)return n.xColumnIsNumbers;for(var e=0;e<t.length;e++)if("number"!=typeof t[e])return n.xColumnIsNumbers=!1;return n.xColumnIsNumbers=!0}(h)){for(var p=[],u=0;u<a;u++){var f=null==h?void 0:h[u];tS(f)||null!=this.xIncrement||(this.xIncrement=null!=(r=p[p.length-1])?r:null),p.push(this.getX(f,null==d?void 0:d[u]))}return this.xColumn=p}}return h||Array(i?a:0)},t.prototype.getX=function(t,e){var i;return(null==(i=this.xAxis)?void 0:i.hasNames)&&this.dataTable.getColumn("name",!0)&&tS(e)?this.xAxis.nameToX({name:e,series:this},t):void 0===t||tF(t)&&this.options.relativeXValue?this.autoIncrement(t):("string"==typeof t&&tF(t=this.chart.time.parse(t)),t)},t.prototype.matchPoints=function(t,e,i,o){var r,n,s,a,l=this.dataTable,h=this.options,d=this.requireSorting,c=h.dataSorting,p=this.data,u=[],f=[],g=l.rowCount===p.length,v=0,m=!0;this.xIncrement=null,delete this.xColumn;var y=l.getColumn("x"),x=l.getColumn("id"),b=(null==c?void 0:c.matchByName)?l.getColumn("name"):void 0,M=l.getColumn("index");for(s=0;s<l.rowCount;s++){var k=null==y?void 0:y[s],w=null==x?void 0:x[s],A=null==b?void 0:b[s],S=null==M?void 0:M[s],T=w&&e?[w,e]:A&&i?[A,i]:tS(S)&&o?[S,o]:tS(k)&&t?[k,t]:[],C=T[0],P=T[1],O=-1;if(P){if(-1===(O=P.indexOf(C,v))){for(var L=null==y?void 0:y[s],E=null!=(r=null==t?void 0:t.length)?r:l.rowCount;E&&t&&"number"==typeof L&&t[E-1]>L;)E--;u.push({newIndex:E,oldIndex:s})}else p[O]&&(f.push({newIndex:O,oldIndex:s}),p[O].touched=!0,d&&(v=O+1));(!g||s!==O||(null==c?void 0:c.enabled)||this.hasDerivedData)&&(n=!0)}else u.push({newIndex:s,oldIndex:s})}if(n){for(f.forEach(function(t){p[t.newIndex].applyOptions(l.getRowObject(t.oldIndex))}),u.sort(function(t,e){return e.newIndex-t.newIndex}),u.forEach(function(t){p.splice(t.newIndex,0,void 0)}),s=p.length;s--;)(a=p[s])&&!a.touched&&(a.destroy(),p.splice(s,1));this.isDirtyData=this.isDirty=!0}else if(!g||(null==c?void 0:c.enabled))m=!1;else for(s=0;s<l.rowCount;s++)!function(){if(!p[s].destroyed&&!p[s].condemned){var t=l.getRowObject(s);t&&(Object.keys(t).forEach(function(e){tS(t[e])||delete t[e]}),Object.keys(t).length&&p[s].update(t,!1,void 0,!1))}}();if(p.forEach(function(t){t&&(t.touched=!1)}),!m)return!1;var B=this.getColumn("x");return null===this.xIncrement&&B.length&&(this.xIncrement=ty(B),this.autoIncrement()),!0},t.prototype.getDataColumnKeys=function(){return this.dataColumnKeys||oo(["x"],this.pointArrayMap||["y"],!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var r,n,s,a,l,h=this.dataTable,d=this.options,c=this.points,p=(null==c?void 0:c.length)||0,u=h.getColumn("x"),f=h.getColumn("id"),g=(null==(r=d.dataSorting)?void 0:r.matchByName)&&(null==c?void 0:c.map(function(t){return t.name}))||h.getColumn("name"),v=h.getColumn("index"),m=this.chart,y=this.xAxis;if(m.options.chart.allowMutatingData||(d.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,l=tV(!0,t)),t=l||t,this.xIncrement=null,delete this.xColumn,delete this.xColumnIsNumbers,h!==d.dataTable&&delete h.columns.x,this.colorCounter=0,tj(t)?this.setDataFromArray(t):this.setDataFromTable(t),!1===o||!p||this.cropped||this.hasGroupedData||!this.visible||this.boosted||(s=this.matchPoints(u,f,g,v)),!s){for(tY(this.getColumn("y")[0])&&ee(14,!0,m),this.data=[],a=p;a--;)null==(n=c[a])||n.destroy();y&&(y.minRange=y.userMinRange),this.isDirty=m.isDirtyBox=!0,this.isDirtyData=!!c,i=!1}tj(t)&&(this.options.data=this.userOptions.data=t),"point"===d.legendType&&(this.processData(),this.generatePoints()),e&&m.redraw(i)},t.prototype.setDataFromArray=function(t){var e,i,o=t.length,r=this.options,n=r.keys,s=r.turboThreshold,a=this.pointValKey,l=void 0===a?"y":a,h=this.pointArrayMap,d=void 0===h?[]:h,c=d.length,p=this.dataTable,u=this.getDataColumnKeys(),f=s&&o>s,g=0,v=1;if(f){var m=this.getFirstValidPoint(t),y=this.getFirstValidPoint(t,o-1,-1),x=function(t){return!!(tj(t)&&(n||tF(t[0])))};if(tF(m)&&tF(y))p.setColumn(l,t);else if(x(m)&&x(y))if(c){for(var b=m.length===c,M=Array(m.length).fill(0).map(function(){return[]}),k=0;k<t.length;k++)for(var w=t[k],A=0;A<=c;A++)null==(i=M[A])||i.push(w[A]);p.setColumns((b?d:u).reduce(function(t,e,i){return t[e]=M[i],t},{}))}else{n&&(g=n.indexOf("x"),v=n.indexOf("y"),g=g>=0?g:0,v=v>=0?v:1),1===m.length&&(v=0);var S=[],T=[];if(g===v){for(var C=0;C<t.length;C++){var w=t[C];T.push(w[v])}p.setColumn(l,T)}else{for(var P=0;P<t.length;P++){var w=t[P];S.push(w[g]),T.push(w[v])}p.setColumns(((e={x:S})[l]=T,e))}}else f=!1}if(!f){for(var O={},L=0;L<o;L++)for(var E=this.pointClass.prototype.optionsToObject.call({series:this},t[L]),B=0,I=Object.keys(E);B<I.length;B++){var D=I[B];O[D]||(O[D]=Array(o)),O[D][L]=E[D]}o?p.setColumns(O):p.deleteRows(0,p.rowCount)}},t.prototype.setDataFromTable=function(t){var e=this,i=this.chart,o=this.options,r=this.dataTable,n=i.getDataTable(o),s=t?[t]:n.length?n:i.dataTable,a=this.getDataColumnKeys(),l=o.dataMapping,h=a.slice();l&&(Object.keys(l).forEach(function(t){t0(h,t)}),this.dataColumnKeys=h),s.forEach(function(t,i){var o=h.reduce(function(e,o){var r=null==l?void 0:l[o],n=t.columns||{},s=t.id,a=tY(r)?0===i&&n[r]:(((null==r?void 0:r.dataTable)||0)===i||s&&(null==r?void 0:r.dataTable)===s)&&(tF(null==r?void 0:r.column)?Object.values(n)[r.column]:n[(null==r?void 0:r.column)||o]);return a&&(e[o]=a),e},{});(l||t)&&r.setColumns(o),t.isDataTable&&e.bindDataTableEvents(t,o)})},t.prototype.bindDataTableEvents=function(t,e){var i=this;if(!this.hasBoundDataTableEvents){var o=this.chart,r=this.eventsToUnbind,n=function(){clearTimeout(o.redrawTimeout),o.redrawTimeout=setTimeout(function(){return o.renderer&&o.redraw()},0)};r.push(tv(t,"afterSetRows",function(t){var o=t.rowIndex;if(tF(o)){var r=i2.prototype.getRowObject.call({columns:e},o),s=i.data[o];r&&(i.currentDataGrouping?i.setData():(s?s.update(r,!1):i.addPoint(r,!1),n()))}})),r.push(tv(t,"afterDeleteRows",function(t){var e=t.rowCount,o=t.rowIndex;if(tF(o)){for(var r=o+e-1;r>=o;r--)i.removePoint(r,!1);n()}})),r.push(tv(t,"afterSetColumns",function(t){i.setData(t.target)})),this.hasBoundDataTableEvents=!0}},t.prototype.getProcessedData=function(t){var e,i,o,r,n,s=this,a=s.dataTable,l=s.isCartesian,h=s.options,d=s.xAxis,c=h.cropThreshold,p=t||s.getExtremesFromAll,u=null==d?void 0:d.logarithmic,f=a.rowCount,g=0,v=s.getColumn("x"),m=a,y=!1;return d&&(r=(o=d.getExtremes()).min,n=o.max,y=!!(d.categories&&!d.names.length),l&&s.sorted&&!p&&(!c||f>c||s.forceCrop)&&(v[f-1]<r||v[0]>n?m=new i2:s.getColumn(s.pointValKey||"y").length&&(v[0]<r||v[f-1]>n)&&(m=(e=this.cropData(a,r,n)).modified,g=e.start,i=!0))),v=this.getColumn("x",!0),{modified:m,cropped:i,cropStart:g,closestPointRange:tD([u?v.map(u.log2lin):v],function(){return s.requireSorting&&!y&&ee(15,!1,s.chart)})}},t.prototype.processData=function(t){var e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;var o=this.getProcessedData();i.modified=o.modified,this.cropped=o.cropped,this.cropStart=o.cropStart,this.closestPointRange=this.basePointRange=o.closestPointRange,tB(this,"afterProcessData")},t.prototype.cropData=function(t,e,i){var o,r,n=t===this.dataTable?this.getColumn("x"):t.getColumn("x",!0),s=n.length,a=0,l=s;for(o=0;o<s;o++)if(n[o]>=e){a=Math.max(0,o-1);break}for(r=o;r<s;r++)if(n[r]>i){l=r+1;break}var h=Object.keys(t.columns).reduce(function(e,i){return e[i]=(t.getColumn(i,!0)||[]).slice(a,l),e},{});return h.x=n.slice(a,l),{modified:new i2({columns:h}),start:a,end:l}},t.prototype.generatePoints=function(){var t,e,i,o,r,n,s,a,l,h,d,c,p,u=this.options,f=this.hasProcessedDataTable?void 0:u.data,g=this.dataTable.getModified(),v=this.getColumn("x",!0),m=this.pointClass,y=g.rowCount,x=this.cropStart||0,b=this.hasGroupedData,M=u.keys,k=[],w=(null==(t=u.dataGrouping)?void 0:t.groupAll)?x:0,A=this.getDataColumnKeys(),S=this.data;if(!S&&!b){var T=[];T.length=(null==f?void 0:f.length)||0,S=this.data=T}for(M&&b&&(this.options.keys=!1),c=0;c<y;c++)h=x+c,b?((d=new m(this,g.getRowObject(c,A))).dataGroup=null==(n=this.groupMap)?void 0:n[w+c],(null==(s=d.dataGroup)?void 0:s.options)&&(d.options=d.dataGroup.options,tL(d,d.dataGroup.options),delete d.dataLabels,d.key=null!=(a=d.name)?a:d.category)):(d=S[h],p=f?f[h]:g.getRowObject(c),d||void 0===p?d&&(d.category=null!=(o=null==(i=null==(e=this.xAxis)?void 0:e.categories)?void 0:i[d.x])?o:d.x,d.key=null!=(r=d.name)?r:d.category):S[h]=d=new m(this,p,v[c])),d&&(d.index=b?w+c:h,k[c]=d);if(this.options.keys=M,S&&(y!==(l=S.length)||b))for(c=0;c<l;c++)c!==x||b||(c+=y),S[c]&&(S[c].destroyElements(),S[c].plotX=void 0);this.data=S,this.points=k,tB(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:tm(t),max:ty(t)}},t.prototype.getExtremes=function(t,e){var i,o,r,n,s=this.xAxis,a=this.yAxis,l=e||this.getExtremesFromAll||this.options.getExtremesFromAll,h=l&&this.cropped?this.dataTable:this.dataTable.getModified(),d=h.rowCount,c=t||this.stackedYData,p=c?[c]:(null==(i=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:i.map(function(t){return h.getColumn(t,!0)||[]}))||[],u=this.getColumn("x",!0),f=[],g=this.requireSorting&&!this.is("column")?1:0,v=!!a&&a.positiveValuesOnly,m=l||this.cropped||!s,y=0,x=0;for(s&&(y=(o=s.getExtremes()).min,x=o.max),n=0;n<d;n++)if(r=u[n],m||(u[n+g]||r)>=y&&(u[n-g]||r)<=x)for(var b=0;b<p.length;b++){var M=p[b][n];tF(M)&&(M>0||!v)&&f.push(M)}var k={activeYData:f,dataMin:tm(f),dataMax:ty(f)};return tB(this,"afterGetExtremes",{dataExtremes:k}),k},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=1);for(var o=t.length,r=e;r>=0&&r<o;){if(tS(t[r]))return t[r];r+=i}},t.prototype.translate=function(){this.generatePoints();var t,e,i,o,r,n=this.options,s=this.xAxis,a=this.yAxis,l=n.stacking,h=n.threshold,d=this.chart,c=d.hasRendered,p=d.polar,u=this.points.concat(this.condemnedPoints),f=u.length,g=this.pointPlacementToXValue(),v=!!g,m=n.startFromThreshold?h:0,y=(null==n?void 0:n.nullInteraction)&&a.len,x=Number.MAX_VALUE;function b(t){return tb(t,-1e9,1e9)}var M=function(t,e){var i=s.translate(t,!1,!1,e,!0,g);return tF(i)?tM(b(i)):void 0},k=function(t,e,i){if(tF(t)&&void 0!==e.plotX){var o=a.translate(t,!1,!0,i,!0);return tF(o)?b(o):void 0}if(!tF(t)&&y)return y};for(e=0;e<f;e++){var w=u[e],A=w.x,S=void 0,T=void 0,C=w.y,P=w.low,O=l&&(null==(t=a.stacking)?void 0:t.stacks[(this.negStacks&&C<(m?0:h)?"-":"")+this.stackKey]);w.plotX=i=M(A),l&&this.visible&&O&&O[A]&&(r=this.getStackIndicator(r,A,this.index),!w.isNull&&r.key&&(T=(S=O[A]).points[r.key]),S&&tj(T)&&(P=T[0],C=T[1],P===m&&r.key===O[A].base&&(P=tJ(tF(h)?h:a.min)),a.positiveValuesOnly&&tS(P)&&P<=0&&(P=void 0),w.total=w.stackTotal=tJ(S.total),w.percentage=tS(w.y)&&S.total?w.y/S.total*100:void 0,w.stackY=C,this.irregularWidths||S.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),w.yBottom=tS(P)?b(a.translate(P,!1,!0,!1,!0)):void 0,this.dataModify&&(C=this.dataModify.modifyValue(C,e)),w.plotY=k(C,w),w.origin=!c||w.graphic||p?void 0:{x:M(A,!0),y:k(C,w,!0)},w.isInside=this.isPointInside(w),w.clientX=v?tM(s.translate(A,!1,!1,!1,!0,g)):i,w.negative=(w.y||0)<(h||0),!w.isNull&&!1!==w.visible&&tF(i)&&(tF(o)&&(x=Math.min(x,Math.abs(i-o))),o=i),w.zone=this.zones.length?w.getZone():void 0}this.closestPointRangePx=x,tB(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){var r=t.plotX,n=t.plotY;return(!!i||!t.isNull&&!!tF(n))&&(!e||!!o.isInsidePlot(r,n,{inverted:o.inverted}))&&!1!==t.visible})},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},t.prototype.setClip=function(){var t,e=this.chart,i=this.group,o=this.markerGroup,r=this.options,n=this.plotClipGroup,s=e.sharedClips,a=e.renderer,l=e.getClipBox(this),h=null==(t=r.clip)||t,d=this.getSharedClipKey(),c=s[d];c?c.animate(l):s[d]=c=a.clipRect(l),null==i||i.clip(h?c:void 0),null==o||o.clip(),null==n||n.clip(h&&this.yAxis.clippable?e.plotClipInner:void 0)},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,r=e.inverted,n=ew(this.options.animation),s=[this.getSharedClipKey(),n.duration,n.easing,n.defer].join(","),a=e.sharedClips[s],l=e.sharedClips[s+"m"];if(t&&i){var h=e.getClipBox(this);if(a)a.attr("height",h.height);else{h.width=0,r&&(h.x=e.plotHeight),a=e.renderer.clipRect(h),e.sharedClips[s]=a;var d={x:-99,y:-99,width:r?e.plotWidth+199:99,height:r?99:e.plotHeight+199};l=e.renderer.clipRect(d),e.sharedClips[s+"m"]=l}i.clip(a),null==o||o.clip(l)}else if(a&&!a.hasClass("highcharts-animating")){var c=e.getClipBox(this),p=n.step;((null==o?void 0:o.element.childNodes.length)||e.series.length>1)&&(n.step=function(t,e){p&&p.apply(e,arguments),"width"===e.prop&&(null==l?void 0:l.element)&&l.attr(r?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(c,n)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),tK(this.chart.sharedClips,function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])}),this.finishedAnimating=!0,tB(this,"afterAnimate")},t.prototype.drawPoints=function(t){t||(t=this.points.concat(this.condemnedPoints));var e,i,o,r,n,s,a,l=this.chart,h=l.styledMode,d=this.colorAxis,c=this.options,p=c.marker,u=c.nullInteraction,f=this[this.specialGroup||"markerGroup"],g=this.xAxis,v=tJ(p.enabled,!g||!!g.isRadial||null,this.closestPointRangePx>=p.enabledThreshold*p.radius);if(!1!==p.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){r=(o=(i=t[e]).graphic)?"animate":"attr",n=i.marker||{},s=!!i.marker;var m=i.isNull;if((v&&!tS(n.enabled)||n.enabled)&&(!m||u)&&!1!==i.visible){var y=tJ(n.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select");var x=!1!==i.isInside;if(!o&&x&&((a.width||0)>0||i.hasImage)&&(i.graphic=o=l.renderer.symbol(y,a.x,a.y,a.width,a.height,s?n:p).add(f),i.origin)){var b=i.getOrigin(i.origin,a);h||(b.opacity=0),o.attr(b),r="animate"}if(o){"animate"===r&&(null==o||o.animate(a));var M=this.pointAttribs(i,h||!i.selected?void 0:"select");h?d&&o.css({fill:M.fill}):o[r](M),o.addClass(i.getClassName(),!0)}}else o&&(i.graphic=o.destroy())}},t.prototype.markerAttribs=function(t,e){var i,o,r,n,s=this.options,a=s.marker,l=t.marker||{},h=l.symbol||a.symbol,d={},c=tJ(l.radius,null==a?void 0:a.radius);e&&(r=null==(i=null==a?void 0:a.states)?void 0:i[e],c=tJ(null==(n=null==(o=l.states)?void 0:o[e])?void 0:n.radius,null==r?void 0:r.radius,c&&c+((null==r?void 0:r.radiusPlus)||0))),t.hasImage=h&&0===h.indexOf("url"),t.hasImage&&(c=0);var p=t.pos();return tF(c)&&p&&(s.crisp&&(p[0]=tw(p[0],t.hasImage?0:"rect"===h?(null==a?void 0:a.lineWidth)||0:1)),d.x=p[0]-c,d.y=p[1]-c),c&&(d.width=d.height=2*c),d},t.prototype.pointAttribs=function(t,e){var i,o,r,n,s,a=this.options,l=a.marker,h=null==t?void 0:t.options,d=(null==h?void 0:h.marker)||{},c=null==h?void 0:h.color,p=null==t?void 0:t.color,u=null==(i=null==t?void 0:t.zone)?void 0:i.color,f=this.color,g=tJ(d.lineWidth,l.lineWidth),v=(null==t?void 0:t.isNull)&&a.nullInteraction?0:1;return f=c||u||p||f,n=d.fillColor||l.fillColor||f,s=d.lineColor||l.lineColor||f,e=e||"normal",o=l.states[e]||{},g=tJ((r=d.states&&d.states[e]||{}).lineWidth,o.lineWidth,g+tJ(r.lineWidthPlus,o.lineWidthPlus,0)),n=r.fillColor||o.fillColor||n,s=r.lineColor||o.lineColor||s,v=tJ(r.opacity,o.opacity,v),{stroke:s,"stroke-width":g,fill:n,opacity:(null==t?void 0:t.condemned)||(null==t?void 0:t.isInside)===!1?0:v}},t.prototype.destroy=function(t){var e,i,o,r,n=this,s=n.chart,a=/AppleWebKit\/533/.test(os.navigator.userAgent),l=n.data||[];for(tB(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach(function(t){(null==(r=n[t])?void 0:r.series)&&(tO(r.series,n),r.isDirty=r.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),o=l.length;o--;)null==(i=null==(e=l[o])?void 0:e.destroy)||i.call(e);for(var h=0,d=n.zones||[];h<d.length;h++)tT(d[h],void 0,!0);tG(n.animationTimeout),tK(n,function(t,e){t instanceof eZ&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===n&&(s.hoverSeries=void 0),tO(s.series,n),s.orderItems("series"),tK(n,function(e,i){t&&"hcEvents"===i||delete n[i]})},t.prototype.applyZones=function(){var t=this.area,e=this.chart,i=this.graph,o=this.zones,r=this.points,n=this.xAxis,s=this.yAxis,a=this.zoneAxis,l=e.inverted,h=e.renderer,d=this[""+a+"Axis"],c=d||{},p=c.isXAxis,u=c.len,f=void 0===u?0:u,g=c.minPointOffset,v=void 0===g?0:g,m=((null==i?void 0:i.strokeWidth())||0)/2+1,y=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),l&&(i=f-i);var o=t.translated,r=void 0===o?0:o,n=t.lineClip,s=t.value,a=i-r;null==n||n.push(["L",e,Math.abs(a)<m?i-m*(a<0||0===a&&tS(s)?-1:1):r])};if(o.length&&(i||t)&&d&&tF(d.min)){var x=d.getExtremes().max+v,b=function(t){t.forEach(function(e,i){("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],p?f-e[1]:e[1],p?e[2]:f-e[2]])})};if(o.forEach(function(t){t.lineClip=[],t.translated=tb(d.toPixels(tJ(t.value,x),!0)||0,0,f)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&r.length<n.len)for(var M=0;M<r.length;M++){var k=r[M],w=k.plotX,A=k.plotY,S=k.zone,T=S&&o[o.indexOf(S)-1];S&&y(S,w,A),T&&y(T,w,A)}var C=[],P=d.toPixels(d.getExtremes().min-v,!0);o.forEach(function(e){var o,r,a=e.lineClip||[],d=Math.round(e.translated||0);n.reversed&&a.reverse();var c=e.clip,u=e.simpleClip,f=0,g=0,v=n.len,m=s.len;p?(f=d,v=P):(g=d,m=P);var y=[["M",f,g],["L",v,g],["L",v,m],["L",f,m],["Z"]],x=oo(oo(oo(oo([y[0]],a,!0),[y[1],y[2]],!1),C,!0),[y[3],y[4]],!1);C=a.reverse(),P=d,l&&(b(x),t&&b(y)),c?(c.animate({d:x}),null==u||u.animate({d:y})):(c=e.clip=h.path(x),t&&(u=e.simpleClip=h.path(y))),i&&(null==(o=e.graph)||o.clip(c)),t&&(null==(r=e.area)||r.clip(u))})}else this.visible&&(i&&i.show(),t&&t.show())},t.prototype.plotGroup=function(t,e,i,o,r){var n=this[t],s=!n,a={visibility:i,zIndex:o||.1};return tS(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),n||(this[t]=n=this.chart.renderer.g().add(r)),n.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(tS(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(n.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),n.attr(a)[s?"attr":"animate"](this.getPlotBox(e)),n},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,r=o.inverted&&!o.polar&&e&&this.invertible&&"series"===t;o.inverted&&(e=i,i=this.xAxis);var n={scale:1,translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,name:t};tB(this,"getPlotBox",n);var s=n.scale;return{translateX:n.translateX,translateY:n.translateY,rotation:90*!!r,rotationOriginX:r?s*(e.len-i.len)/2:0,rotationOriginY:r?s*(e.len+i.len)/2:0,scaleX:r?-s:s,scaleY:s}},t.prototype.removeEvents=function(t){var e=this.eventsToUnbind;t||t5(this),e.length&&(e.forEach(function(t){t()}),e.length=0)},t.prototype.render=function(){var t,e,i,o,r,n=this,s=n.chart,a=n.options,l=n.hasRendered,h=ew(a.animation),d=n.visible?"inherit":"hidden",c=a.zIndex,p=s.seriesGroup,u=n.finishedAnimating?0:h.duration;tB(this,"render"),s.plotClipInner&&(n.plotClipGroup||(n.plotClipGroup=s.renderer.g().add(p))),n.plotGroup("group","series",d,c,n.plotClipGroup||p),n.markerGroup=n.plotGroup("markerGroup","markers",d,c,p),!1!==a.clip&&n.setClip(),u&&(null==(t=n.animate)||t.call(n,!0)),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),null==(e=n.drawDataLabels)||e.call(n),null==(i=n.redrawPoints)||i.call(n),a.enableMouseTracking&&(null==(o=n.drawTracker)||o.call(n)),u&&(null==(r=n.animate)||r.call(n)),l||(u&&h.defer&&(u+=h.defer),n.animationTimeout=t9(function(){n.afterAnimate()},u||0)),n.isDirty=!1,n.hasRendered=!0,tB(n,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree,this.condemnedPoints.length=0},t.prototype.reserveSpace=function(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,i=e.options,o=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,t9(function(){e.kdTree=function t(i,o,r){var n,s,a=null==i?void 0:i.length;if(a)return n=e.kdAxisArray[o%r],i.sort(function(t,e){return(t[n]||0)-(e[n]||0)}),{point:i[s=Math.floor(a/2)],left:t(i.slice(0,s),o+1,r),right:t(i.slice(s+1),o+1,r)}}(e.getValidPoints(void 0,!e.directTouch,null==i?void 0:i.nullInteraction),o,o),e.buildingKdTree=!1},i.kdNow||(null==t?void 0:t.type)==="touchstart"?0:1)},t.prototype.searchKDTree=function(t,e,i,o,r){var n=this,s=this.kdAxisArray,a=s[0],l=s[1],h=e?"distX":"dist",d=(n.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!n.isBubble,p=o||function(t,e,i){var o=t[i]||0,r=e[i]||0;return[o===r&&t.index>e.index||o<r?t:e,!1]},u=r||function(t,e){return t<e};if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,o,r){var s,d,f,g,v,m,y,x,b,M,k=i.point,w=n.kdAxisArray[o%r],A=k,S=!1;d=e[a],f=k[a],g=tS(d)&&tS(f)?d-f:null,v=e[l],m=k[l],y=tS(v)&&tS(m)?v-m:0,x=c&&(null==(s=k.marker)?void 0:s.radius)||0,k.dist=Math.sqrt((g&&g*g||0)+y*y)-x,k.distX=tS(g)?Math.abs(g)-x:Number.MAX_VALUE;var T=(e[w]||0)-(k[w]||0)+(c&&(null==(M=k.marker)?void 0:M.radius)||0),C=T<0?"left":"right",P=T<0?"right":"left";return i[C]&&(A=(b=p(k,t(e,i[C],o+1,r),h))[0],S=b[1]),i[P]&&u(Math.sqrt(T*T),A[h],S)&&(A=p(A,t(e,i[P],o+1,r),h)[0]),A}(t,this.kdTree,d,d)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=this.xAxis,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),tF(i)?i*(t.pointRange||e.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis,r=t.plotX,n=void 0===r?-1:r,s=t.plotY,a=void 0===s?-1:s;return a>=0&&a<=(o?o.len:e.plotHeight)&&n>=0&&n<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t,e=this,i=e.options,o=i.trackByArea,r=[].concat((o?e.areaPath:e.graphPath)||[]),n=e.chart,s=n.pointer,a=n.renderer,l=(null==(t=n.options.tooltip)?void 0:t.snap)||0,h=function(){i.enableMouseTracking&&n.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(on?1e-4:.002)+")",c=e.tracker;c?c.attr({d:r}):e.graph&&(e.tracker=c=a.path(r).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(o?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),n.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:o?d:"none","stroke-width":e.graph.strokeWidth()+(o?0:2*l)}),oo([e.tracker,e.markerGroup],e.dataLabelsGroups||[],!0).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",function(t){null==s||s.onTrackerMouseOut(t)}),i.cursor&&!n.styledMode&&t.css({cursor:i.cursor}),t.on("touchstart",h))})),tB(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,r){var n,s,a,l=this.options,h=this.chart,d=this.data,c=this.dataTable,p=this.xAxis,u=(null==p?void 0:p.hasNames)&&p.names,f=l.data,g=this.getColumn("x");e=tJ(e,!0);var v=this.pointClass.prototype,m=v.applyOptions,y=v.optionsToObject,x={series:this},b=y.call(x,t);m.call(x,b,void 0,!1);var M=x.x;if(a=g.length,this.requireSorting&&M<g[a-1])for(s=!0;a&&g[a-1]>M;)a--;c.setRow(b,a,!0),null==(n=this.xColumn)||n.splice(a,0,this.getX(M)),u&&x.name&&(u[M]=x.name),null==f||f.splice(a,0,t),(s||this.hasProcessedDataTable)&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),i&&(d[0]&&d[0].remove?d[0].remove(!1):([d,f,this.xColumn].filter(tS).forEach(function(t){t.shift()}),c.deleteRows(0))),!1!==r&&tB(this,"addPoint",{point:x}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,r=o.chart,n=o.data,s=o.points,a=o.dataTable,l=n[t],h=function(){[(null==s?void 0:s.length)===n.length?s:void 0,n,o.options.data,o.xColumn].filter(tS).forEach(function(e){e.splice(t,1)}),a.deleteRows(t),a.modified=a,null==l||l.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&r.redraw()};eC(i,r),e=tJ(e,!0),l?l.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){var r=this,n=r.chart;function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(o),tJ(t,!0)&&n.redraw(e)}!1!==i?tB(r,"remove",null,s):s()},t.prototype.update=function(e,i){tB(this,"update",{options:e=tP(e,this.userOptions)});var o,r,n,s,a,l=this,h=l.chart,d=l.userOptions,c=l.initialType||l.type,p=h.options.plotOptions,u=oa[c].prototype,f=l.finishedAnimating&&{animation:!1},g={},v=e.data||e.dataTable,m=t.keepProps.slice(),y=e.type||d.type||h.options.chart.type,x=!(this.hasDerivedData||y&&y!==this.type||void 0!==e.keys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(function(t){return l.hasOptionChanged(t)}));y=y||c,x?(m.push.apply(m,t.keepPropsForPoints),!1!==e.visible&&(m.push("area","graph"),"zones"in e||m.push("zones")),l.parallelArrays.forEach(function(t){m.push(t+"Data")}),v&&(e.dataSorting&&tL(l.options.dataSorting,e.dataSorting),this.setData(v,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&d.dataLabels&&(e.dataLabels=this.mergeArrays(d.dataLabels,e.dataLabels)),e=tV(d,{index:void 0===d.index?l.index:d.index,pointStart:null!=(r=null==(o=null==p?void 0:p.series)?void 0:o.pointStart)?r:d.pointStart},!x&&{data:l.options.data},e,f),x&&e.data&&(e.data=l.options.data),(m=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","plotClipGroup","transformGroup"].concat(m)).forEach(function(t){m[t]=l[t],delete l[t]});var b=!1;if(oa[y]){if(b=y!==l.type,l.remove(!1,!1,!1,!0),b)if(h.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(l,oa[y].prototype);else{var M=Object.hasOwnProperty.call(l,"hcEvents")&&l.hcEvents;for(a in u)l[a]=void 0;tL(l,oa[y].prototype),M?l.hcEvents=M:delete l.hcEvents}}else ee(17,!0,h,{missingModuleFor:y});if(m.forEach(function(t){l[t]=m[t]}),l.init(h,e),x&&this.points){!1===(s=l.options).visible?(g.graphic=1,g.dataLabel=1):(this.hasMarkerChanged(s,d)&&(g.graphic=1),(null==(n=l.hasDataLabels)?void 0:n.call(l))||(g.dataLabel=1));for(var k=0,w=this.points;k<w.length;k++){var A=w[k];(null==A?void 0:A.series)&&(A.resolveColor(),Object.keys(g).length&&A.destroyElements(g),!1===s.showInLegend&&A.legendItem&&h.legend.destroyItem(A))}}l.initialType=c,h.linkSeries(),b&&l.linkedSeries.length&&(l.isDirtyData=!0),tB(this,"afterUpdate"),tJ(i,!0)&&h.redraw(!!x&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e,i,o=this.chart,r=this.options[t],n=o.options.plotOptions,s=this.userOptions[t],a=tJ(null==(e=null==n?void 0:n[this.type])?void 0:e[t],null==(i=null==n?void 0:n.series)?void 0:i[t]);return s&&!tS(a)?r!==s:r!==tJ(a,r)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries,i=t.pointer;null==i||i.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),tB(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.chart,e=t.tooltip,i=t.hoverPoint;t.hoverSeries=null,i&&i.onMouseOut(),tB(this,"mouseOut"),e&&!this.stickyTracking&&(!e.shared||this.noSharedTooltip)&&e.hide(),t.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i,o,r=this,n=r.graph,s=r.options,a=s.inactiveOtherPoints,l=s.states,h=tJ(null==(i=null==l?void 0:l[t||"normal"])?void 0:i.animation,r.chart.options.chart.animation),d=s.lineWidth,c=s.opacity;if(t=t||"",r.state!==t&&(oo([r.group,r.markerGroup],r.dataLabelsGroups||[],!0).forEach(function(e){e&&(r.state&&e.removeClass("highcharts-series-"+r.state),t&&e.addClass("highcharts-series-"+t))}),r.state=t,!r.chart.styledMode)){if((null==(o=l[t])?void 0:o.enabled)===!1)return;if(t&&(d=l[t].lineWidth||d+(l[t].lineWidthPlus||0),c=tJ(l[t].opacity,c)),n&&!n.dashstyle&&tF(d))for(var p=0,u=oo([n],this.zones.map(function(t){return t.graph}),!0);p<u.length;p++){var f=u[p];null==f||f.animate({"stroke-width":d},h)}a||oo(oo([r.group,r.markerGroup],r.dataLabelsGroups||[],!0),[r.labelBySeries],!1).forEach(function(t){null==t||t.animate({opacity:c},h)})}e&&a&&r.points&&r.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var i,o,r=this,n=r.chart,s=n.options.chart.ignoreHiddenSeries,a=r.visible;r.visible=t=r.options.visible=r.userOptions.visible=void 0===t?!a:t;var l=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(function(t){var e;null==(e=r[t])||e[l]()}),null==(i=r.dataLabelsGroups)||i.forEach(function(t){null==t||t[l]()}),(n.hoverSeries===r||(null==(o=n.hoverPoint)?void 0:o.series)===r)&&r.onMouseOut(),r.legendItem&&n.legend.colorizeItem(r,t),r.isDirty=!0,r.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),r.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),s&&(n.isDirtyBox=!0),tB(r,l),!1!==e&&n.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),tB(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.prototype.drawLegendSymbol=function(t,e){var i,o,r=this.chart.renderer,n=this.options.legendSymbol||"rectangle",s=e.legendItem||{},a=t.options,l=t.symbolHeight,h=t.symbolWidth,d=a.squareSymbol,c=d?l:h,p=d?(h-l)/2:0,u=(t.baseline||0)-l+1,f=null!=(i=a.symbolRadius)?i:l,g="rectangle"===n?r.rect(p,u,c,l,f):r.symbols[n]&&r.symbol(n,p,u,c,l,{r:f});g?s.symbol=g.addClass("highcharts-point").attr({zIndex:3}).add(s.group):null==(o=i9[n])||o.call(this,t,e)},t.defaultOptions=i4,t.types=oe.seriesTypes,t.registerType=oe.registerSeriesType,t.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],t.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","condemnedPoints","dataTable","hasProcessedDataTable","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],t}();tL(oh.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:iU,requireSorting:!0,sorted:!0}),oe.series=oh;var od=iM.registerEventOptions,oc=tc.composed,op=tc.marginNames,ou=eH.distribute,of=eG.format,og=function(){function t(t,e){var i=this;this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),od(this,e),tv(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),tv(this.chart,"render",function(){i.options.enabled&&i.proximate&&(i.proximatePositions(),i.positionItems())})}return t.prototype.setOptions=function(t){var e=tJ(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=tV(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=tJ(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(tV(!0,this.options,t)),"events"in this.options&&od(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,tJ(e,!0)&&i.redraw(),tB(this,"afterUpdate",{redraw:e})},t.prototype.colorizeItem=function(t,e){var i,o,r,n,s,a=t.color,l=t.legendItem||{},h=l.area,d=l.group,c=l.label,p=l.line,u=l.symbol;if((t instanceof oh||t instanceof iU)&&(t.color=(null==(i=t.options)?void 0:i.legendSymbolColor)||a),null==d||d[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var f=this.itemHiddenStyle,g=void 0===f?{}:f,v=g.color,m=t.options,y=m.fillColor,x=m.lineColor,b=function(t){return!e&&(t.fill&&(t.fill=v),t.stroke&&(t.stroke=v)),t};null==c||c.css(tV(e?this.itemStyle:g)),null==p||p.attr(b({stroke:x||t.color})),null==u||u.attr(b(t.series?null==(r=(o=t.series).pointAttribs)?void 0:r.call(o,t):(null==(n=t.pointAttribs)?void 0:n.call(t))||{fill:t.color})),null==h||h.attr(b({fill:y||t.color,"fill-opacity":y?1:null!=(s=t.options.fillOpacity)?s:.75}))}t.color=a,tB(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,r=i.x,n=void 0===r?0:r,s=i.y,a=void 0===s?0:s,l=this.options,h=l.symbolPadding,d=!l.rtl,c=t.checkbox;if(null==o?void 0:o.element){var p={translateX:d?n:this.legendWidth-n-2*h-4,translateY:a};o[tS(o.translateY)?"animate":"attr"](p,void 0,function(){tB(e,"afterPositionItem",{item:t})})}c&&(c.x=n,c.y=a)},t.prototype.destroyItem=function(t){for(var e=t.legendItem||{},i=0,o=["group","label","line","symbol"];i<o.length;i++){var r=o[i];e[r]&&(e[r]=e[r].destroy())}t.checkbox=tC(t.checkbox),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++){var i=e[t];this.destroyItem(i)}for(var o=0,r=["clipRect","up","down","pager","nav","box","title","group"];o<r.length;o++){var n=r[o];this[n]&&(this[n]=this[n].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t,e,i=null==(t=this.group)?void 0:t.alignAttr,o=this.clipHeight||this.legendHeight,r=this.titleHeight;i&&(e=i.translateY,this.allItems.forEach(function(t){var n,s=t.checkbox;s&&(n=e+r+s.y+(this.scrollOffset||0)+3,tA(s,{left:i.translateX+t.checkboxOffset+s.x-20+"px",top:n+"px",display:this.proximate||n>e-6&&n<e+o-6?"":"none"}))},this))},t.prototype.renderTitle=function(){var t,e=this.options,i=this.padding,o=e.title,r=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?of(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)})},t.prototype.renderItem=function(t){var e,i=t.legendItem=t.legendItem||{},o=this.chart,r=o.renderer,n=this.options,s="horizontal"===n.layout,a=this.symbolWidth,l=n.symbolPadding||0,h=this.itemStyle,d=this.itemHiddenStyle,c=s?tJ(n.itemDistance,20):0,p=!n.rtl,u=!t.series,f=!u&&t.series.drawLegendSymbol?t.series:t,g=f.options,v=!!this.createCheckboxForItem&&g&&g.showCheckbox,m=n.useHTML,y=t.options.className,x=i.label,b=a+l+c+20*!!v;!x&&(i.group=r.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=x=r.text("",p?a+l:-l,this.baseline||0,m),o.styledMode||x.css(tV(t.visible?h:d)),x.attr({align:p?"left":"right",zIndex:2}).add(i.group),!this.baseline&&(this.fontMetrics=r.fontMetrics(x),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,x.attr("y",this.baseline),this.symbolHeight=tJ(n.symbolHeight,this.fontMetrics.f),n.squareSymbol&&(this.symbolWidth=tJ(n.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+l+c+20*!!v,p&&x.attr("x",this.symbolWidth+l))),f.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,x,m)),v&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(o.styledMode||!h.width)&&x.css({width:Math.min(n.itemWidth||this.widthOption||o.spacingBox.width,n.maxWidth?t1(n.maxWidth,o.chartWidth):1/0)-b+"px"}),this.setText(t);var M=x.getBBox(),k=(null==(e=this.fontMetrics)?void 0:e.h)||0;t.itemWidth=t.checkboxOffset=n.itemWidth||i.labelWidth||M.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(M.height>1.5*k?M.height:k))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,r=t.itemHeight,n=this.itemMarginBottom,s=this.itemMarginTop,a=o?tJ(e.itemDistance,20):0,l=this.maxLegendWidth,h=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};o&&this.itemX-i+h>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=s+this.itemY+n,this.lastLineHeight=Math.max(r,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,o?this.itemX+=h:(this.itemY+=s+r+n,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):h)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i,o=null==e?void 0:e.options;e&&tJ(o.showInLegend,!tS(o.linkedTo)&&void 0,!0)&&(t=t.concat((null==(i=e.legendItem)?void 0:i.labels)||("point"===o.legendType?e.data:e)))}),tB(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,o=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,s){var a;n.test(r)&&!tS(t[s])&&(i[op[s]]=Math.max(i[op[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*o[s%2?"x":"y"]+(null!=(a=o.margin)?a:12)+e[s]+(i.titleOffset[s]||0)))})},t.prototype.proximatePositions=function(){var t,e=this.chart,i=[],o="left"===this.options.align;this.allItems.forEach(function(t){var r,n,s,a,l=o;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(r=tW(l?t.points:t.points.slice(0).reverse(),function(t){return tF(t.plotY)})),n=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,s=t.visible?(r?r.plotY:t.yAxis.height)+(a-.3*n):a+t.yAxis.height,i.push({target:s,size:n,item:t}))},this);for(var r=0,n=ou(i,e.plotHeight);r<n.length;r++){var s=n[r];t=s.item.legendItem||{},tF(s.pos)&&(t.y=e.plotTop-e.spacing[0]+s.pos)}},t.prototype.render=function(){var t,e,i,o,r=this.chart,n=r.spacingBox.width,s=r.renderer,a=this.options,l=this.padding,h=this.getAllItems(),d=this.group,c=this.box;this.itemX=l,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=t1(a.width,n-l),o=n-2*l-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(o/=2),this.maxLegendWidth=this.widthOption||o,d||(this.group=d=s.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(d),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),t6(h,function(t,e){var i,o;return((null==(i=t.options)?void 0:i.legendIndex)||0)-((null==(o=e.options)?void 0:o.legendIndex)||0)}),a.reversed&&h.reverse(),this.allItems=h,this.display=t=!!h.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,h.forEach(this.renderItem,this),h.forEach(this.layoutItem,this),e=(a.maxWidth?Math.min(this.widthOption||this.offsetWidth,o,t1(a.maxWidth,r.chartWidth)||1/0):this.widthOption||this.offsetWidth)+l,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+l,c||(this.box=c=s.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(d)),r.styledMode||c.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),e>0&&i>0&&c[c.placed?"animate":"attr"](c.crisp.call({},{x:0,y:0,width:e,height:i},c.strokeWidth())),d[t?"show":"hide"](),r.styledMode&&"none"===d.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),tB(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(o-=e.titleOffset[2]),o!==t.y&&(t=tV(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(tV(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,r,n=this,s=this.chart,a=s.renderer,l=this.options,h=l.y,d="top"===l.verticalAlign,c=this.padding,p=l.maxHeight,u=l.navigation,f=tJ(u.animation,!0),g=u.arrowSize||12,v=this.pages,m=this.allItems,y=function(t){"number"==typeof t?k.attr({height:t}):k&&(n.clipRect=k.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},x=function(t){return n[t]=a.circle(0,0,1.3*g).translate(g/2,g/2).add(M),s.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]},b=s.spacingBox.height+(d?-h:h)-c,M=this.nav,k=this.clipRect;return"horizontal"!==l.layout||"middle"===l.verticalAlign||l.floating||(b/=2),p&&(b=Math.min(b,p)),v.length=0,t&&b>0&&t>b&&!1!==u.enabled?(this.clipHeight=e=Math.max(b-20-this.titleHeight-c,0),this.currentPage=tJ(this.currentPage,1),this.fullHeight=t,m.forEach(function(t,n){var s=(o=t.legendItem||{}).y||0,a=Math.round(o.label.getBBox().height),l=v.length;(!l||s-v[l-1]>e&&(i||s)!==v[l-1])&&(v.push(i||s),l++),o.pageIx=l-1,i&&r&&(r.pageIx=l-1),n===m.length-1&&s+a-v[l-1]>e&&s>v[l-1]&&(v.push(s),o.pageIx=l),s!==i&&(i=s),r=o}),k||(k=n.clipRect=a.clipRect(0,c-2,9999,0),n.contentGroup.clip(k)),y(e),M||(this.nav=M=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,g,g).add(M),x("upTracker").on("click",function(){n.scroll(-1,f)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(M),this.down=a.symbol("triangle-down",0,0,g,g).add(M),x("downTracker").on("click",function(){n.scroll(1,f)})),n.scroll(0),t=b):M&&(y(),this.nav=M.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,r=this.pages,n=r.length,s=this.clipHeight,a=this.options.navigation,l=this.pager,h=this.padding,d=this.currentPage+t;d>n&&(d=n),d>0&&(void 0!==e&&eC(e,o),this.nav.attr({translateX:h,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===d?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===n?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-r[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t9(function(){tB(i,"afterScroll",{currentPage:d})},ew(tJ(e,o.renderer.globalAnimation,!0)).duration))},t.prototype.setItemEvents=function(t,e,i){for(var o=this,r=t.legendItem||{},n=o.chart.renderer.boxWrapper,s=t instanceof iU,a=t instanceof oh,l="highcharts-legend-"+(s?"point":"series")+"-active",h=o.chart.styledMode,d=i?[e,r.symbol]:[r.group],c=function(e){o.allItems.forEach(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!s)})})},p=0;p<d.length;p++){var u=d[p];u&&u.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&n.addClass(l),h||e.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||e.css(tV(t.visible?o.itemStyle:o.itemHiddenStyle)),c(""),n.removeClass(l),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};n.removeClass(l),tB(o,"itemClick",{browserEvent:e,legendItem:t,context:o},i),s?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&tB(t,"legendItemClick",{browserEvent:e})})}},t.prototype.createCheckboxForItem=function(t){t.checkbox=tk("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),tv(t.checkbox,"click",function(e){var i=e.target;tB(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})},t}();(g=og||(og={})).compose=function(t){t0(oc,"Core.Legend")&&tv(t,"beforeMargins",function(){this.legend=new g(this,this.options.legend)})};var ov=og,om=function(){return(om=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},oy=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},ox=eG.numberFormat,ob=iM.registerEventOptions,oM=tc.charts,ok=tc.doc,ow=tc.marginNames,oA=tc.win,oS=oe.seriesTypes,oT=function(){function t(t,e,i){if(this.sharedClips={},!ok)return void ee(36,!1,this);var o=oy([],arguments,!0);(tY(t)||t.nodeName)&&(this.renderTo=o.shift()),this.init(o[0],o[1])}return t.chart=function(e,i,o){var r=new t(e,i,o);return r.promise||r},t.prototype.setZoomOptions=function(){var t=this.options.chart,e=t.zooming;this.zooming=om(om({},e),{type:tJ(t.zoomType,e.type),key:tJ(t.zoomKey,e.key),pinchType:tJ(t.pinchType,e.pinchType),singleTouch:tJ(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:tV(e.resetButton,t.resetZoomButton)})},t.prototype.init=function(t,e){tB(this,"init",{args:arguments},function(){var i,o,r=this,n=tV(eu,t),s=n.chart,a=this.renderTo||s.renderTo;this.userOptions=tL({},t),(this.renderTo=tY(a)?ok.getElementById(a):a)||ee(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],!0===e?this.promise=new Promise(function(t){r.callback=t}):this.callback=e,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.locale=null!=(i=n.lang.locale)?i:null==(o=this.renderTo.closest("[lang]"))?void 0:o.lang,this.time=new ed(tL(n.time||{},{locale:this.locale}),n.lang),n.time=this.time.options,this.numberFormatter=(s.numberFormatter||ox).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=oM.length,this.dataTable=this.getDataTable(n),oM.push(this),tc.chartCount++,ob(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),tB(this,"afterInit"),this.firstRender()})},t.prototype.getDataTable=function(t){return(t.dataTable?t3(t.dataTable):[]).map(function(t){return t.isDataTable?t:new i2(t)})},t.prototype.initSeries=function(t){var e=this.options.chart,i=t.type||e.type,o=oS[i];o||ee(17,!0,this,{missingModuleFor:i});var r=new o;return"function"==typeof r.init&&r.init(this,t),r},t.prototype.orderItems=function(t,e){void 0===e&&(e=0);var i=this[t],o=this.options[t]=t3(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?t3(this.userOptions[t]).slice():[];if(this.hasRendered&&(o.splice(e),r.splice(e)),i)for(var n=e,s=i.length;n<s;++n){var a=i[n];a&&(a.index=n,a instanceof oh&&(a.name=a.getName()),a.options.isInternal||(o[n]=a.options,r[n]=a.userOptions))}},t.prototype.getClipBox=function(t,e){var i,o,r,n,s,a=this.inverted,l=t||{},h=l.xAxis,d=l.yAxis,c=tV(this.clipBox),p=c.x,u=c.y,f=c.width,g=c.height;return t&&(h&&h.len!==this.plotSizeX&&!h.isRadial&&(f=h.len),d&&d.len!==this.plotSizeY&&!d.isRadial&&(g=d.len),a&&!t.invertible&&(f=(i=[g,f])[0],g=i[1])),e&&(p+=null!=(r=null==(o=a?d:h)?void 0:o.pos)?r:this.plotLeft,u+=null!=(s=null==(n=a?h:d)?void 0:n.pos)?s:this.plotTop),{x:p,y:u,width:f,height:g}},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o,r=this.inverted,n=this.plotBox,s=this.plotLeft,a=this.plotTop,l=this.scrollablePlotBox,h=i.visiblePlotOnly&&(null==(o=this.scrollablePlotArea)?void 0:o.scrollingContainer)||{},d=h.scrollLeft,c=void 0===d?0:d,p=h.scrollTop,u=void 0===p?0:p,f=i.series,g=i.visiblePlotOnly&&l||n,v=i.inverted?e:t,m=i.inverted?t:e,y={x:v,y:m,isInsidePlot:!0,options:i};if(!i.ignoreX){var x=f&&(r&&!this.polar?f.yAxis:f.xAxis)||{pos:s,len:1/0},b=i.paneCoordinates?x.pos+v:s+v;b>=Math.max(c+s,x.pos)&&b<=Math.min(c+s+g.width,x.pos+x.len)||(y.isInsidePlot=!1)}if(!i.ignoreY&&y.isInsidePlot){var M=!r&&i.axis&&!i.axis.isXAxis&&i.axis||f&&(r?f.xAxis:f.yAxis)||{pos:a,len:1/0},k=i.paneCoordinates?M.pos+m:a+m;k>=Math.max(u+a,M.pos)&&k<=Math.min(u+a+g.height,M.pos+M.len)||(y.isInsidePlot=!1)}return tB(this,"afterIsInsidePlot",y),y.isInsidePlot},t.prototype.redraw=function(t){tB(this,"beforeRedraw");var e,i,o,r,n=this.hasCartesianSeries?this.axes:this.colorAxis||[],s=this.series,a=this.pointer,l=this.legend,h=this.userOptions.legend,d=this.renderer,c=d.isHidden(),p=[],u=this.isDirtyBox,f=this.isDirtyLegend;for(d.rootFontSize=d.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),eC(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(!1),o=s.length;o--;)if(((r=s[o]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(o=s.length;o--;)(r=s[o]).options.stacking&&(r.isDirty=!0);s.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):h&&(h.labelFormatter||h.labelFormat)&&(f=!0)),t.isDirtyData&&tB(t,"updatedData")}),f&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),n.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),n.forEach(function(t){t.isDirty&&(u=!0)}),n.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push(function(){tB(t,"afterSetExtremes",tL(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),tB(this,"predraw"),s.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),n.forEach(function(t){t.saveOld()}),tB(this,"redraw"),tB(this,"render"),c&&this.temporaryDisplay(!0),p.forEach(function(t){t.call()})},t.prototype.get=function(t){var e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}for(var o=tW(this.axes,i)||tW(this.series,i),r=0;!o&&r<e.length;r++)o=tW(e[r].points||[],i);return o},t.prototype.createAxes=function(){var t=this.userOptions;tB(this,"createAxes");for(var e=0,i=["xAxis","yAxis"];e<i.length;e++)for(var o=i[e],r=t[o]=t3(t[o]||{}),n=0;n<r.length;n++)new iL(this,r[n],o);tB(this,"afterCreateAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){tJ(e.selectedStaging,e.selected)&&t.push(e)}),t},[])},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i,o=this,r=this.options[t]=tV(this.options[t],e),n=this[t];n&&e&&(this[t]=n=n.destroy()),r&&!n&&((n=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,i){o.applyDescription(t,e),o.layOutTitles(i)},this.styledMode||n.css(tL("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),n.textPxLength=n.getBBox().width,n.css({whiteSpace:null==(i=r.style)?void 0:i.whiteSpace}),this[t]=n)},t.prototype.layOutTitles=function(t){var e,i,o,r,n=this;void 0===t&&(t=!0);var s=[0,0,0],a=this.options,l=this.renderer,h=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var e,i=n[t],o=n.options[t],r=tV(h),a=(null==i?void 0:i.textPxLength)||0;if(i&&o){tB(n,"layOutTitle",{alignTo:r,key:t,textPxLength:a});var d=l.fontMetrics(i),c=d.b,p=d.h,u=o.verticalAlign||"top",f="top"===u,g=f&&o.minScale||1,v="title"===t?f?-3:0:f?s[0]+2:0,m=Math.min(r.width/a,1),y=Math.max(g,m),x=tV({y:"bottom"===u?c:v+c},o),b=(o.width||(m>g?n.chartWidth:r.width)/y)+"px";null!=x.align||(x.align="title"===t?m<g?"left":"center":null==(e=n.title)?void 0:e.alignValue),i.alignValue!==x.align&&(i.placed=!1);var M=Math.round(i.css({width:b}).getBBox(o.useHTML).height);if(x.height=M,i.align(x,!1,r).attr({align:x.align,scaleX:y,scaleY:y,"transform-origin":""+(r.x+a*y*tI(x.align))+" ".concat(p)}),!o.floating){var k=M*(M<1.2*p?1:y);"top"===u?s[0]=Math.ceil(s[0]+k):"bottom"===u&&(s[2]=Math.ceil(s[2]+k))}}},this),s[0]&&"top"===((null==(e=a.title)?void 0:e.verticalAlign)||"top")&&(s[0]+=(null==(i=a.title)?void 0:i.margin)||0),s[2]&&(null==(o=a.caption)?void 0:o.verticalAlign)==="bottom"&&(s[2]+=(null==(r=a.caption)?void 0:r.margin)||0);var d=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,tB(this,"afterLayOutTitles"),!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())},t.prototype.getContainerBox=function(){var t=this,e=[].map.call(this.renderTo.children,function(e){if(e!==t.container){var i=e.style.display;return e.style.display="none",[e,i]}}),i={width:tN(this.renderTo,"width",!0)||0,height:tN(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(function(t){var e=t[0],i=t[1];e.style.display=i}),i},t.prototype.getChartSize=function(){var t,e=this.options.chart,i=e.width,o=e.height,r=this.getContainerBox(),n=r.height<=1||!(null==(t=this.renderTo.parentElement)?void 0:t.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,i||r.width||600),this.chartHeight=Math.max(0,t1(o,this.chartWidth)||(n?400:r.height)),this.containerBox=r},t.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;null==i?void 0:i.style;)i.hcOrigStyle&&(tA(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(ok.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;(null==i?void 0:i.style)&&(ok.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,ok.body.appendChild(i)),("none"===tN(i,"display",!1)||i.hcOrigDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),tA(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==ok.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i,o=this.options,r=o.chart,n="data-highcharts-chart",s=er(),a=this.renderTo,l=tQ(tx(a,n));tF(l)&&oM[l]&&oM[l].hasRendered&&oM[l].destroy(),tx(a,n,this.index),a.innerHTML=eB.emptyHTML,r.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize();var h=this.chartHeight,d=this.chartWidth;this.styledMode||tA(a,{overflow:"hidden"}),this.styledMode||(i=tL({position:"relative",overflow:"hidden",width:d+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},r.style||{}));var c=tk("div",{id:s},i,a);if(this.container=c,this.getChartSize(),d!==this.chartWidth&&(d=this.chartWidth,this.styledMode||tA(c,{width:tJ(null==(t=r.style)?void 0:t.width,d+"px")})),this._cursor=c.style.cursor,this.renderer=new iu(c,d,h,void 0,r.forExport,null==(e=o.exporting)?void 0:e.allowHTML,this.styledMode,o.palette,this.index),this.containerBox=this.getContainerBox(),eC(void 0,this),this.setClassName(r.className),this.styledMode)for(var p in o.defs)this.renderer.definition(o.defs[p]);else this.renderer.setStyle(r.style),this.palette=this.renderer.palette;tB(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e,i=this.spacing,o=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!tS(o[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+i[0])),r[2]&&!tS(o[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+i[2])),(null==(e=this.legend)?void 0:e.display)&&this.legend.adjustMargins(o,i),tB(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,r=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?r(t.axes):(null==i?void 0:i.length)&&r(i),ow.forEach(function(i,r){tS(o[r])||(t[i]+=e[r])}),t.setChartSize()},t.prototype.getOptions=function(){return tP(this.userOptions,eu)},t.prototype.reflow=function(t){var e,i,o=this,r=o.containerBox,n=o.getContainerBox();null==(e=o.pointer)||delete e.chartPosition,(null==(i=o.exporting)?void 0:i.isPrinting)||o.isResizing||!r||!n.width||((n.width!==r.width||n.height!==r.height)&&(tG(o.reflowTimeout),o.reflowTimeout=t9(function(){if(o.container){o.setSize(void 0,void 0,!1);var t=o.containerBox;t&&(t.height=o.chartHeight)}},100*!!t)),o.containerBox=n)},t.prototype.setReflow=function(){var t=this,e=function(e){var i;(null==(i=t.options)?void 0:i.chart.reflow)&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{var i=tv(oA,"resize",e);tv(this,"destroy",i)}},t.prototype.setSize=function(t,e,i){var o=this,r=o.renderer;o.isResizing+=1,eC(i,o);var n=r.globalAnimation;o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize();var s=o.chartWidth,a=o.chartHeight,l=o.scrollablePixelsX,h=o.scrollablePixelsY;(o.isDirtyBox||s!==o.oldChartWidth||a!==o.oldChartHeight)&&(o.styledMode||(n?eS:tA)(o.container,{width:""+(s+(void 0===l?0:l))+"px",height:""+(a+(void 0===h?0:h))+"px"},n),o.setChartSize(!0),r.setSize(s,a,n),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(n),o.oldChartHeight=void 0,tB(o,"resize"),setTimeout(function(){o&&tB(o,"endResize")},ew(n).duration)),o.isResizing-=1},t.prototype.setChartSize=function(t){var e,i,o,r,n,s,a=this.chartHeight,l=this.chartWidth,h=this.clipOffset,d=this.inverted,c=this.spacing,p=this.renderer,u=Math[d?"floor":"round"];if(this.plotLeft=o=Math.round(this.plotLeft),this.plotTop=r=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(l-o-(null!=(e=this.marginRight)?e:0))),this.plotHeight=s=Math.max(0,Math.round(a-r-(null!=(i=this.marginBottom)?i:0))),this.plotSizeX=d?s:n,this.plotSizeY=d?n:s,this.spacingBox=p.spacingBox={x:c[3],y:c[0],width:l-c[3]-c[1],height:a-c[0]-c[2]},this.plotBox=p.plotBox={x:o,y:r,width:n,height:s},h&&(this.clipBox={x:u(h[d?2:3]),y:u(h[+!!d]),width:u(this.plotSizeX-h[+!d]-h[d?2:3]),height:u(this.plotSizeY-h[+!!d]-h[d?3:2])}),!t){for(var f=0,g=this.axes;f<g.length;f++){var v=g[f];v.setAxisSize(),v.setAxisTranslation()}p.alignElements()}tB(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){tB(this,"resetMargins");var t=this,e=t.options.chart,i=e.plotBorderWidth||0,o=Math.round(i)/2;["margin","spacing"].forEach(function(i){var o=e[i],r=tU(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,n){var s;t[i][n]=null!=(s=e["".concat(i).concat(o)])?s:r[n]})}),ow.forEach(function(e,i){var o;t[e]=null!=(o=t.margin[i])?o:t.spacing[i]}),t.axisOffset=[0,0,0,0],t.clipOffset=[o,o,o,o],t.plotBorderWidth=i},t.prototype.drawChartBox=function(){var t,e,i,o=this,r=o.options.chart,n=r.backgroundColor,s=r.plotBackgroundColor,a=r.plotBackgroundImage,l=r.plotBorderRadius,h=void 0===l?0:l,d=r.shadow,c=o.chartWidth,p=o.chartHeight,u=o.clipBox,f=o.clipOffset,g=o.clipRect,v=o.plotBGImage,m=o.plotBox,y=o.plotLeft,x=o.plotTop,b=o.plotWidth,M=o.plotHeight,k=o.renderer,w=o.styledMode,A=o.chartBackground,S=o.plotBackground,T=o.plotBorder,C="animate";A||(o.chartBackground=A=k.rect().addClass("highcharts-background").add(),C="attr"),w?t=e=A.strokeWidth():(e=(t=r.borderWidth||0)+8*!!d,i={fill:n||"none"},(t||A["stroke-width"])&&(i.stroke=r.borderColor,i["stroke-width"]=t),A.attr(i).shadow(d)),A[C]({x:e/2,y:e/2,width:c-e-t%2,height:p-e-t%2,r:r.borderRadius}),C="animate",S||(C="attr",o.plotBackground=S=k.rect().addClass("highcharts-plot-background").add()),S[C](om(om({},m),{r:h})),!w&&(S.attr({fill:s||"none"}).shadow(r.plotShadow),a&&(v?(a!==v.attr("href")&&v.attr("href",a),v.animate(m)):o.plotBGImage=k.image(a,y,x,b,M).add())),g?g.animate({width:u.width,height:u.height}):o.clipRect=k.clipRect(u),C="animate",T||(C="attr",o.plotBorder=T=k.rect().addClass("highcharts-plot-border").attr({zIndex:1.5}).add()),T.attr(w?void 0:{stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"})[C]({r:h});var P=T.strokeWidth(),O=tV(T.crisp(m,-P));if(f&&!w){var L=f[0]-P/2,E=f[3]-P/2;O.x-=E,O.y-=L,O.width+=E+f[1]-P/2,O.height+=L+f[2]-P/2}T[C](O),["plotClipOuter","plotClipInner"].forEach(function(t,e){var i,r=o[t],n=e?-P:P;null==r||r[h?C:"attr"]({x:O.x-n/2,y:O.y-n/2,width:O.width+n,height:O.height+n,r:h?h+n/2:0}),null==(i=null==r?void 0:r.parentGroup)||i.attr({display:h?"":"none"})}),o.isDirtyBox=!1,tB(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,r=o.options.chart,n=o.options.series;["inverted","angular","polar"].forEach(function(s){for(e=oS[r.type],i=r[s]||e&&e.prototype[s],t=null==n?void 0:n.length;!i&&t--;)(e=oS[n[t].type])&&e.prototype[s]&&(i=!0);o[s]=i})},t.prototype.linkSeries=function(t){var e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){var o,r,n=t.options.linkedTo,s=tY(n)&&(":previous"===n?i[t.index-1]:e.get(n));s&&s.linkedParent!==t&&(s.linkedSeries.push(t),t.linkedParent=s,t.visible=null!=(r=null!=(o=t.options.visible)?o:s.options.visible)?r:t.visible)}),tB(this,"afterLinkSeries",{isUpdating:t})},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.render=function(){var t,e,i,o,r=this.axes,n=this.colorAxis,s=this.renderer,a=this.options.chart,l=a.axisLayoutRuns,h=void 0===l?2:l,d=a.plotBorderRadius,c=function(t){t.forEach(function(t){t.visible&&t.render()})},p=0,u=!0,f=0;d&&(this.plotClipOuter||(this.plotClipOuter=s.clipRect()),this.plotClipInner||(this.plotClipInner=s.clipRect())),this.setTitle(),tB(this,"beforeMargins"),null==(t=this.getStacks)||t.call(this),this.getMargins(!0),this.setChartSize();for(var g=0;g<r.length;g++){var v=r[g],m=v.options,y=m.labels,x=m.offset;if(this.hasCartesianSeries&&v.horiz&&v.visible&&y.enabled&&v.series.length&&"colorAxis"!==v.coll&&!v.isRadial){p=m.tickLength,v.createGroups();var b=new iw(v,0,"",!0),M=b.createLabel("x",y);if(b.destroy(),M&&tJ(y.reserveSpace,!tF(m.crossing))&&(p=M.getBBox().height+y.distance+Math.max(tF(x)?x:0,0)),p){null==M||M.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-p,0);(u||o||h>1)&&f<h;){for(var k=this.plotWidth,w=this.plotHeight,A=[1.05,1.1],S=0;S<r.length;S++){var v=r[S],T=+(v.horiz||0);if(0===f){v.setScale();var C=null==(i=null==(e=v.tickPositions)?void 0:e.info)?void 0:i.match;C&&(A[T]=Math.min(C,A[T]))}else(T&&u||!T&&o)&&v.setTickInterval(!0)}0===f?this.getAxisMargins():this.getMargins(),u=k/this.plotWidth>(f?1:A[1]),o=w/this.plotHeight>(f?1:A[0]),f++}this.drawChartBox(),this.hasCartesianSeries?c(r):(null==n?void 0:n.length)&&c(n),this.seriesGroup||(this.seriesGroup=s.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e,i=this,o=tV(!0,this.options.credits,t);o.enabled&&!this.credits&&(this.credits=this.renderer.text(o.text+(this.mapCredits||""),0,0,o.useHTML).addClass("highcharts-credits").on("click",function(t){tB(i,"creditsClick",t,function(){o.href&&(oA.location.href=o.href)})}).attr({align:o.position.align,zIndex:8}),(null==(e=o.events)?void 0:e.click)&&tv(i,"creditsClick",o.events.click),i.styledMode||this.credits.css(o.style),this.credits.add().align(o.position),this.credits.update=function(t){i.credits=i.credits.destroy(),i.addCredits(t)})},t.prototype.destroy=function(){var t,e,i,o=this,r=o.axes,n=o.series,s=o.container,a=null==s?void 0:s.parentNode;for(tB(o,"destroy"),o.renderer.forExport?tO(oM,o):oM[o.index]=void 0,tc.chartCount--,o.renderTo.removeAttribute("data-highcharts-chart"),t5(o),i=r.length;i--;)r[i]=r[i].destroy();for(null==(e=null==(t=this.scroller)?void 0:t.destroy)||e.call(t),i=n.length;i--;)n[i]=n[i].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){var e,i;o[t]=null==(i=null==(e=o[t])?void 0:e.destroy)?void 0:i.call(e)}),s&&(s.innerHTML=eB.emptyHTML,t5(s),a&&tC(s)),tK(o,function(t,e){delete o[e]})},t.prototype.firstRender=function(){var t,e=this,i=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();var o=tj(i.series)?i.series:[];i.series=[],o.forEach(function(t){e.initSeries(t)}),e.linkSeries(),tB(e,"beforeRender"),e.render(),null==(t=e.pointer)||t.getChartPosition(),e.renderer.asyncCounter||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),tB(this,"load"),tB(this,"render"),tS(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":((null==e?void 0:e.element.textContent)||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||ee('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.warnIfCSSNotLoaded=function(){this.styledMode&&"0"!==oA.getComputedStyle(this.container).zIndex&&ee(35,!1,this)},t.prototype.addSeries=function(t,e,i){var o,r=this;return t&&(e=tJ(e,!0),tB(r,"addSeries",{options:t},function(){o=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),tB(r,"afterAddSeries",{series:o}),e&&r.redraw(i)})),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,e){var i=new iL(this,e.axis,t);return tJ(e.redraw,!0)&&this.redraw(e.animation),i},t.prototype.showLoading=function(t){var e,i,o,r,n=this,s=n.options,a=s.loading,l=null!=(e=null==a?void 0:a.style)?e:{},h=function(){var t,e,i,o;d&&tA(d,{left:null!=(t=l.left)?t:n.plotLeft+"px",top:null!=(e=l.top)?e:n.plotTop+"px",width:null!=(i=l.width)?i:n.plotWidth+"px",height:null!=(o=l.height)?o:n.plotHeight+"px"})},d=n.loadingDiv,c=n.loadingSpan;d||(n.loadingDiv=d=tk("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container)),c||(n.loadingSpan=c=tk("span",{className:"highcharts-loading-inner"},null,d),tv(n,"redraw",h)),d.className="highcharts-loading",eB.setElementHTML(c,tJ(t,s.lang.loading,"")),!n.styledMode&&(tA(d,tL(l,{zIndex:10})),tA(c,null!=(i=null==a?void 0:a.labelStyle)?i:{}),n.loadingShown||(tA(d,{opacity:0,display:""}),eS(d,{opacity:null!=(o=l.opacity)?o:.5},{duration:null!=(r=null==a?void 0:a.showDuration)?r:0}))),n.loadingShown=!0,h()},t.prototype.hideLoading=function(){var t,e,i=this.options,o=this.loadingDiv;o&&(o.className="highcharts-loading highcharts-loading-hidden",this.styledMode||eS(o,{opacity:0},{duration:null!=(e=null==(t=i.loading)?void 0:t.hideDuration)?e:100,complete:function(){tA(o,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var r,n,s,a=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,d=[];tB(a,"update",{options:t}),h||a.setResponsive(!1,!0),t=tP(t,a.options),a.userOptions=tV(a.userOptions,t);var c=t.chart;c&&(tV(!0,a.options.chart,c),this.setZoomOptions(),"className"in c&&a.setClassName(c.className),("inverted"in c||"polar"in c||"type"in c)&&(a.propFromSeries(),r=!0),"alignTicks"in c&&(r=!0),"events"in c&&ob(this,c),tK(c,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(a.isDirtyBox=!0,h||(s=!0))}),!a.styledMode&&c.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),tK(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[l[i]]?a[l[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&tV(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(t3(t[e]).forEach(function(t,o){if(t){var r,n=tS(t.id);n&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][tJ(t.index,o)])&&(n&&tS(r.options.id)||r.options.isInternal)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),r&&a.axes.forEach(function(t){t.update({},!1)}),n&&a.series.forEach(function(t){t.chart&&t.update({},!1)});var p=null==c?void 0:c.width,u=c&&(tY(c.height)?t1(c.height,p||a.chartWidth):c.height);s||tF(p)&&p!==a.chartWidth||tF(u)&&u!==a.chartHeight?a.setSize(p,u,o):tJ(e,!0)&&a.redraw(o),tB(a,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){var t=this,e=t.options.lang,i=t.zooming.resetButton,o=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function n(){t.zoomOut()}tB(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,n,o).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),tB(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){var t=this;tB(this,"selection",{resetSelection:!0},function(){return t.transform({reset:!0,trigger:"zoom"})})},t.prototype.pan=function(t,e){var i=this,o="object"==typeof e?e:{enabled:e,type:"x"},r=o.type,n=r&&i[({x:"xAxis",xy:"axes",y:"yAxis"})[r]].filter(function(t){return t.options.panningEnabled&&!t.options.isInternal}),s=i.options.chart;(null==s?void 0:s.panning)&&(s.panning=o),tB(this,"pan",{originalEvent:t},function(){i.transform({axes:n,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),tA(i.container,{cursor:"move"})})},t.prototype.transform=function(t){var e=this,i=t.axes,o=void 0===i?this.axes:i,r=t.event,n=t.from,s=void 0===n?{}:n,a=t.reset,l=t.selection,h=t.to,d=void 0===h?{}:h,c=t.trigger,p=t.allowResetButton,u=void 0===p||p,f=this.inverted,g=this.time;null==(m=this.hoverPoints)||m.forEach(function(t){return t.setState()}),tB(this,"transform",t);for(var v,m,y,x,b,M,k=t.hasZoomed||!1,w=0;w<o.length;w++){var A=o[w],S=A.horiz,T=A.len,C=A.minPointOffset,P=void 0===C?0:C,O=A.options,L=A.reversed,E=S?"width":"height",B=S?"x":"y",I=tJ(d[E],A.len),D=tJ(s[E],A.len),z=10>Math.abs(I)?1:I/D,R=(s[B]||0)+D/2-A.pos,N=R-((null!=(y=d[B])?y:A.pos)+I/2-A.pos)/z,W=L&&!f||!L&&f?-1:1;if(a||!(R<0)&&!(R>A.len)){var G=A.chart.polar||A.isOrdinal&&z<=1?0:P*W||0,H=A.toValue(N,!0),X=A.toValue(N+T/z,!0),F=H+G,Y=X-G,j=A.allExtremes;if(l&&l[A.coll].push({axis:A,min:Math.min(H,X),max:Math.max(H,X)}),F>Y&&(F=(v=[Y,F])[0],Y=v[1]),1===z&&!a&&"yAxis"===A.coll&&!j){for(var _=0,U=A.series;_<U.length;_++){var V=U[_],Z=V.getExtremes(V.getProcessedData(!0).modified.getColumn(V.pointValKey||"y")||[],!0);null!=j||(j={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),tF(Z.dataMin)&&tF(Z.dataMax)&&(j.dataMin=Math.min(Z.dataMin,j.dataMin),j.dataMax=Math.max(Z.dataMax,j.dataMax))}A.allExtremes=j}var K=tL(A.getExtremes(),j||{}),q=K.dataMin,$=K.dataMax,J=K.min,Q=K.max,tt=g.parse(O.min),te=g.parse(O.max),ti=null!=q?q:tt,to=null!=$?$:te,tr=Y-F,tn=A.categories?0:Math.min(tr,to-ti),ts=ti-tn*(tS(tt)?0:O.minPadding),ta=to+tn*(tS(te)?0:O.maxPadding),tl=A.allowZoomOutside||1===z||"zoom"!==c&&z>1,th=Math.min(null!=tt?tt:ts,ts,tl?J:ts),td=Math.max(null!=te?te:ta,ta,tl?Q:ta);(!A.isOrdinal||1!==z||a)&&(F<th&&(F=th,z>=1&&(Y=F+tr)),Y>td&&(Y=td,z>=1&&(F=Y-tr)),(a||A.series.length&&(F!==J||Y!==Q)&&F>=th&&Y<=td)&&(l?l[A.coll].push({axis:A,min:F,max:Y}):(A.isPanning="zoom"!==c,A.isPanning&&"mousewheel"!==c&&(M=!0),A.setExtremes(a?void 0:F,a?void 0:Y,!1,!1,{move:N,trigger:c,scale:z}),!a&&(F>th||Y<td)&&(b=u)),k=!0),this.hasCartesianSeries||a||(b=u),r&&(this[S?"mouseDownX":"mouseDownY"]=r[S?"chartX":"chartY"]))}}return k&&(l?tB(this,"selection",l,function(){delete t.selection,t.trigger="zoom",e.transform(t)}):(!b||M||this.resetZoomButton?!b&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===c&&(null!=(x=this.options.chart.animation)?x:this.pointCount<100)))),k},t}();tL(oT.prototype,{callbacks:[],collectionsWithInit:{xAxis:[oT.prototype.addAxis,[!0]],yAxis:[oT.prototype.addAxis,[!1]],series:[oT.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderRadius","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});var oC=tc.composed;function oP(){var t;(this.scrollablePixelsX||this.scrollablePixelsY)&&!this.scrollablePlotArea&&(this.scrollablePlotArea=new oL(this)),null==(t=this.scrollablePlotArea)||t.applyFixed()}function oO(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var oL=function(){function t(t){var e,i,o,r=t.options.chart,n=r.scrollablePlotArea||{},s=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(a.overflowX="auto"),t.scrollablePixelsY&&(a.overflowY="auto"),this.chart=t;var l=this.parentDiv=tk("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),h=this.scrollingContainer=tk("div",{className:"highcharts-scrolling"},a,l),d=this.innerContainer=tk("div",{className:"highcharts-inner-container"},void 0,h),c=this.fixedDiv=tk("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(e=r.style)?void 0:e.zIndex)||0)+2,top:0},void 0,!0),p=this.fixedRenderer=new iu(c,t.chartWidth,t.chartHeight,r.style);this.mask=p.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":null!=(i=n.opacity)?i:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),h.parentNode.insertBefore(c,h),tA(t.renderTo,{overflow:"visible"}),tv(t,"afterShowResetZoom",s),tv(t,"afterApplyDrilldown",s),tv(t,"afterLayOutTitles",s),tv(h,"scroll",function(){var e=t.pointer,i=t.hoverPoint;e&&(delete e.chartPosition,i&&(o=i),e.runPointActions(void 0,o,!0))}),d.appendChild(t.container)}return t.compose=function(t,e,i){var o=this;t0(oC,"ScrollablePlotArea")&&(tv(t,"afterInit",oO),tv(e,"afterSetChartSize",function(t){return o.afterSetSize(t.target,t)}),tv(e,"render",oP),tv(i,"show",oO))},t.afterSetSize=function(t,e){var i,o,r,n=t.options.chart.scrollablePlotArea||{},s=n.minWidth,a=n.minHeight,l=t.clipBox,h=t.plotBox,d=t.inverted;if(!t.renderer.forExport)if(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=tV(t.plotBox),h.width=t.plotWidth+=i,l[d?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=o=Math.max(0,a-t.chartHeight),tS(o)&&(t.scrollablePlotBox=tV(t.plotBox),h.height=t.plotHeight+=o,l[d?"width":"height"]+=o,r=!1)),tS(r)){if(!e.skipAxes)for(var c=0,p=t.axes;c<p.length;c++){var u=p[c];(u.horiz===r||t.hasParallelCoordinates&&"yAxis"===u.coll)&&(u.setAxisSize(),u.setAxisTranslation())}}else delete t.scrollablePlotBox},t.prototype.applyFixed=function(){var t,e=this.chart,i=this.fixedRenderer,o=this.isDirty,r=this.scrollingContainer,n=e.axisOffset,s=e.chartWidth,a=e.chartHeight,l=e.container,h=e.plotHeight,d=e.plotLeft,c=e.plotTop,p=e.plotWidth,u=e.scrollablePixelsX,f=void 0===u?0:u,g=e.scrollablePixelsY,v=void 0===g?0:g,m=e.options.chart.scrollablePlotArea||{},y=m.scrollPositionX,x=m.scrollPositionY,b=s+f,M=a+v;i.setSize(s,a),(null==o||o)&&(this.isDirty=!1,this.moveFixedElements()),eA(e.container),tA(l,{width:""+b+"px",height:""+M+"px"}),e.renderer.boxWrapper.attr({width:b,height:M,viewBox:["0 0",b,M].join(" ")}),null==(t=e.chartBackground)||t.attr({width:b,height:M}),tA(r,{width:""+s+"px",height:""+a+"px"}),tS(o)||(r.scrollLeft=f*(void 0===y?0:y),r.scrollTop=v*(void 0===x?0:x));var k=c-n[0]-1,w=d-n[3]-1,A=c+h+n[2]+1,S=d+p+n[1]+1,T=d+p-f,C=c+h-v,P=[["M",0,0]];f?P=[["M",0,k],["L",d-1,k],["L",d-1,A],["L",0,A],["Z"],["M",T,k],["L",s,k],["L",s,A],["L",T,A],["Z"]]:v&&(P=[["M",w,0],["L",w,c-1],["L",S,c-1],["L",S,0],["Z"],["M",w,C],["L",w,a],["L",S,a],["L",S,C],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:P})},t.prototype.moveFixedElements=function(){var e,i=this.chart,o=i.container,r=i.inverted,n=i.scrollablePixelsX,s=i.scrollablePixelsY,a=this.fixedRenderer,l=t.fixedSelectors.slice();if(n&&!r?e=".highcharts-yaxis":n&&r||s&&!r?e=".highcharts-xaxis":s&&r&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e))for(var h=0,d=[""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)"];h<d.length;h++){var c=d[h];t0(l,c)}else for(var p=0,u=[".highcharts-xaxis",".highcharts-yaxis"];p<u.length;p++)for(var f=u[p],g=0,v=[""+f+":not(.highcharts-radial-axis)",""+f+"-labels:not(.highcharts-radial-axis-labels)"];g<v.length;g++){var c=v[g];tO(l,c)}for(var m=0;m<l.length;m++){var c=l[m];[].forEach.call(o.querySelectorAll(c),function(t){(t.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}},t.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],t}(),oE=eG.format,oB=oe.series,oI=function(){function t(t,e,i,o,r){var n=t.chart.inverted,s=t.reversed;this.axis=t;var a=this.isNegative=!!i!=!!s;this.options=e=e||{},this.x=o,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(n?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(n?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(n?a?"right":"left":"center")}return t.prototype.destroy=function(){tT(this,this.axis)},t.prototype.render=function(t){var e,i=this.axis.chart,o=this.options,r=o.format,n=(r?oE(r,this,i):null==(e=o.formatter)?void 0:e.call(this,this))||"";if(this.label)this.label.attr({text:n,visibility:"hidden"});else{this.label=i.renderer.label(n,null,void 0,o.shape,void 0,void 0,o.useHTML,!1,"stack-labels");var s={r:o.borderRadius||0,text:n,padding:tJ(o.padding,5),visibility:"hidden"};i.styledMode||(s.fill=o.backgroundColor,s.stroke=o.borderColor,s["stroke-width"]=o.borderWidth,this.label.css(o.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=i.plotSizeY,tB(this,"afterRender")},t.prototype.setOffset=function(t,e,i,o,r,n){var s=this.alignOptions,a=this.axis,l=this.label,h=this.options,d=this.textAlign,c=a.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:n}),u=s.verticalAlign;if(l&&p){var f=l.getBBox(void 0,0),g=l.padding,v="justify"===tJ(h.overflow,"justify"),m=void 0;s.x=h.x||0,s.y=h.y||0;var y=this.adjustStackPosition({labelBox:f,verticalAlign:u,textAlign:d}),x=y.x,b=y.y;p.x-=x,p.y-=b,l.align(s,!1,p),(m=c.isInsidePlot(l.alignAttr.x+s.x+x,l.alignAttr.y+s.y+b))||(v=!1),v&&oB.prototype.justifyDataLabel.call(a,l,s,l.alignAttr,f,p),l.attr({x:l.alignAttr.x,y:l.alignAttr.y,rotation:h.rotation,rotationOriginX:f.width*tI(h.textAlign||"center"),rotationOriginY:f.height/2}),tJ(!v&&h.crop,!0)&&(m=tF(l.x)&&tF(l.y)&&c.isInsidePlot(l.x-g+(l.width||0),l.y)&&c.isInsidePlot(l.x+g,l.y)),l[m?"show":"hide"]()}tB(this,"afterSetOffset",{xOffset:t,width:e})},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i=t.verticalAlign,o=t.textAlign;return{x:e.width/2+e.width/2*(2*tI(o)-1),y:e.height/2*2*(1-tI(i))}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,r=t.defaultX,n=t.xOffset,s=t.width,a=t.boxBottom,l=e.stacking.usePercentage?100:tJ(o,this.total,0),h=e.toPixels(l),d=t.xAxis||i.xAxis[0],c=tJ(r,d.translate(this.x))+n,p=Math.abs(h-e.toPixels(a||tF(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),u=i.inverted,f=this.isNegative;return u?{x:(f?h:h-p)-i.plotLeft,y:d.height-c-s+d.top-i.plotTop,width:p,height:s}:{x:c+d.transB-i.plotLeft,y:(f?h-p:h)-i.plotTop,width:s,height:p}},t}(),oD=oe.series.prototype;function oz(){var t=this.inverted;this.axes.forEach(function(t){var e;(null==(e=t.stacking)?void 0:e.stacks)&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(function(e){var i,o=(null==(i=e.xAxis)?void 0:i.options)||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,tJ(e.options.stack,""),t?o.top:o.left,t?o.height:o.width].join(","))})}function oR(){var t,e=this.stacking;if(e){var i=e.stacks;tK(i,function(t,e){tT(t),delete i[e]}),null==(t=e.stackTotalGroup)||t.destroy()}}function oN(){this.stacking||(this.stacking=new oY(this))}function oW(t,e,i,o){return!tS(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(","),t}function oG(){var t,e=this,i=e.yAxis,o=e.stackKey||"",r=i.stacking.stacks,n=e.getColumn("x",!0),s=e.options.stacking,a=e[s+"Stacker"];a&&[o,"-"+o].forEach(function(i){for(var o,s,l,h,d=n.length;d--;)s=n[d],t=e.getStackIndicator(t,s,e.index,i),(h=null==(l=null==(o=r[i])?void 0:o[s])?void 0:l.points[t.key||""])&&a.call(e,h,l,d)})}function oH(t,e,i){var o=e.total?100/e.total:0;t[0]=tM(t[0]*o),t[1]=tM(t[1]*o),this.stackedYData[i]=t[1]}function oX(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?oD.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function oF(t,e){var i,o,r,n,s,a,l,h,d,c=e||this.options.stacking;if(c&&this.reserveSpace()&&(({group:"xAxis"})[c]||"yAxis")===t.coll){var p=this.getColumn("x",!0),u=this.getColumn(this.pointValKey||"y",!0),f=[],g=u.length,v=this.options,m=v.threshold||0,y=v.startFromThreshold?m:0,x=v.stack,b=e?""+this.type+",".concat(c):this.stackKey||"",M="-"+b,k=this.negStacks,w=t.stacking,A=w.stacks,S=w.oldStacks;for(w.stacksTouched+=1,d=0;d<g;d++){var T=p[d]||0,C=u[d],P=tF(C)&&C||0;h=(r=this.getStackIndicator(r,T,this.index)).key||"",A[l=(n=k&&P<(y?0:m))?M:b]||(A[l]={}),A[l][T]||((null==(i=S[l])?void 0:i[T])?(A[l][T]=S[l][T],A[l][T].total=null):A[l][T]=new oI(t,t.options.stackLabels,!!n,T,x)),s=A[l][T],null!==C?(s.points[h]=s.points[this.index]=[tJ(s.cumulative,y)],tS(s.cumulative)||(s.base=h),s.touched=w.stacksTouched,r.index>0&&!1===this.singleStacks&&(s.points[h][0]=s.points[this.index+","+T+",0"][0])):(delete s.points[h],delete s.points[this.index]);var O=s.total||0;"percent"===c?(a=n?b:M,O=k&&(null==(o=A[a])?void 0:o[T])?(a=A[a][T]).total=Math.max(a.total||0,O)+Math.abs(P):tM(O+Math.abs(P))):"group"===c?tF(C)&&O++:O=tM(O+P),"group"===c?s.cumulative=(O||1)-1:s.cumulative=tM(tJ(s.cumulative,y)+P),s.total=O,null!==C&&(s.points[h].push(s.cumulative),f[d]=s.cumulative,s.hasValidPoints=!0)}"percent"===c&&(w.usePercentage=!0),"group"!==c&&(this.stackedYData=f),w.oldStacks={}}}var oY=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e,i=this.axis,o=i.series,r="xAxis"===i.coll,n=i.options.reversedStacks,s=o.length;for(this.resetStacks(),this.usePercentage=!1,e=s;e--;)t=o[n?e:s-e-1],r&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!r)for(e=0;e<s;e++)o[e].modifyStacks();tB(i,"afterBuildStacks")},t.prototype.cleanStacks=function(){this.oldStacks&&(this.stacks=this.oldStacks,tK(this.stacks,function(t){tK(t,function(t){t.cumulative=t.total})}))},t.prototype.resetStacks=function(){var t=this;tK(this.stacks,function(e){tK(e,function(i,o){tF(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t,e=this.axis,i=e.chart,o=i.renderer,r=this.stacks,n=eT(i,(null==(t=e.options.stackLabels)?void 0:t.animation)||!1),s=this.stackTotalGroup=this.stackTotalGroup||o.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(i.plotLeft,i.plotTop),tK(r,function(t){tK(t,function(t){t.render(s)})}),s.animate({opacity:1},n)},t}();(K||(K={})).compose=function(t,e,i){var o=e.prototype,r=i.prototype;o.getStacks||(tv(t,"init",oN),tv(t,"destroy",oR),o.getStacks=oz,r.getStackIndicator=oW,r.modifyStacks=oG,r.percentStacker=oH,r.setGroupedPoints=oX,r.setStackedPoints=oF)};var oj=K,o_=(v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oU=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o_(e,t),e.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode;oU([this],this.zones,!0).forEach(function(r,n){var s,a=r.graph,l=a?"animate":"attr",h=r.dashStyle||e.dashStyle;if(a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(r.graph=a=t.chart.renderer.path(i).addClass("highcharts-graph"+(n?" highcharts-zone-graph-".concat(n-1," "):" ")+(n&&r.className||"")).attr({zIndex:1}).add(t.group)),a&&!o&&(s={stroke:!n&&e.lineColor||r.color||t.color||"var(--highcharts-neutral-color-20)","stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},h?s.dashstyle=h:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[l](s),e.shadow)){var d=t.chart.inverted,c={filterUnits:"userSpaceOnUse"},p=tU(e.shadow)?tV(d?{}:c,e.shadow):!!d||c;a.shadow(p)}a&&(a.startX=i.xMap,a.isArea=i.isArea)})},e.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,s=[],a=[],l=n.step,h=(t=t||r.points).reversed;return h&&t.reverse(),(l=({right:1,center:2})[l]||l&&3)&&h&&(l=4-l),(t=this.getValidPoints(t,!1,n.nullInteraction||!(n.connectNulls&&!e&&!i))).forEach(function(h,d){var c,p=h.plotX,u=h.plotY,f=t[d-1],g=h.isNull||"number"!=typeof u;(h.leftCliff||(null==f?void 0:f.rightCliff))&&!i&&(o=!0),g&&!tS(e)&&d>0?o=!n.connectNulls:g&&!e?o=!0:(0===d||o?c=[["M",h.plotX,h.plotY]]:r.getPointSpline?c=[r.getPointSpline(t,h,d)]:l?(c=1===l?[["L",f.plotX,u]]:2===l?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):c=[["L",p,u]],a.push(h.x),l&&(a.push(h.x),2===l&&a.push(h.x)),s.push.apply(s,c),o=!1)}),s.xMap=a,r.graphPath=s,s},e.defaultOptions=tV(oh.defaultOptions,{legendSymbol:"lineMarker"}),e}(oh);oe.registerSeriesType("line",oV);var oZ={threshold:0,legendSymbol:"areaMarker"},oK=(m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oq=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},o$=oe.seriesTypes.line,oJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oK(e,t),e.prototype.drawGraph=function(){var e=this;this.areaPath=[],t.prototype.drawGraph.apply(this);var i=this.areaPath,o=this.options;oq([this],this.zones,!0).forEach(function(t,r){var n,s={},a=t.fillColor||o.fillColor,l=t.area,h=l?"animate":"attr";l?(l.endX=e.preventGraphAnimation?null:i.xMap,l.animate({d:i})):(s.zIndex=0,(l=t.area=e.chart.renderer.path(i).addClass("highcharts-area"+(r?" highcharts-zone-area-".concat(r-1," "):" ")+(r&&t.className||"")).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=a||t.color||e.color,s["fill-opacity"]=a?1:null!=(n=o.fillOpacity)?n:.75,l.css({pointerEvents:e.stickyTracking?"none":"auto"})),l[h](s),l.startX=i.xMap,l.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e,i,o,r=o$.prototype.getGraphPath,n=this.options,s=n.stacking,a=this.yAxis,l=[],h=[],d=this.index,c=a.stacking.stacks[this.stackKey],p=n.threshold,u=Math.round(a.getThreshold(n.threshold)),f=tJ(n.connectNulls,"percent"===s),g=function(i,o,r){var n,f,g=t[i],v=t[o],m=s&&c[g.x].points[d],y=g[r+"Null"]||0,x=g[r+"Cliff"]||0,b=!0;m&&(x||y)?(n=(y?m[0]:m[1])+x,f=m[0]+x,b=!!y):!s&&v&&(v.isNull||!tS(v.plotY))&&(n=f=p),void 0!==n&&(h.push({plotX:e,plotY:null===n?u:a.getThreshold(n),isNull:b,isCliff:!0}),l.push({plotX:e,plotY:null===f?u:a.getThreshold(f),doCurve:!1}))};t=t||this.points,s&&(t=this.getStackPoints(t));for(var v=0,m=t.length;v<m;++v)s||(t[v].leftCliff=t[v].rightCliff=t[v].leftNull=t[v].rightNull=void 0),i=t[v].isNull||!tS(t[v].plotY),e=tJ(t[v].rectPlotX,t[v].plotX),o=s?tJ(t[v].yBottom,u):u,(!i||f)&&(f||g(v,v-1,"left"),i&&!s&&f||(h.push(t[v]),l.push({x:v,plotX:e,plotY:o})),f||g(v,v+1,"right"));var y=r.call(this,h,!0,!0);l.reversed=!0;var x=r.call(this,l,!0,!0),b=x[0];b&&"M"===b[0]&&(x[0]=["L",b[1],b[2]]);var M=y.concat(x);M.length&&M.push(["Z"]);var k=r.call(this,h,!1,f);return this.chart.series.length>1&&s&&h.some(function(t){return t.isCliff})&&(M.hasStackedCliffs=k.hasStackedCliffs=!0),M.xMap=y.xMap,this.areaPath=M,k},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],r=this.xAxis,n=this.yAxis,s=n.stacking.stacks[this.stackKey],a={},l=n.series,h=l.length,d=n.options.reversedStacks?1:-1,c=l.indexOf(e),p=n.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(var u=0;u<t.length;u++)t[u].leftNull=t[u].rightNull=void 0,a[t[u].x]=t[u];tK(s,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var f=l.map(function(t){return t.visible});o.forEach(function(t,u){var g,v,m=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var r=1===i?"rightNull":"leftNull",n=s[o[u+i]],p=0;if(n)for(var m=c;m>=0&&m<h;){var y=l[m].index;!(g=n.points[y])&&(y===e.index?a[t][r]=!0:f[m]&&(v=s[t].points[y])&&(p-=v[1]-v[0])),m+=d}a[t][1===i?"rightCliff":"leftCliff"]=p});else{for(var y=c;y>=0&&y<h;){var x=l[y].index;if(g=s[t].points[x]){m=g[1];break}y+=d}m||(m=0);var b=n.positiveValuesOnly&&m<=0?p:n.translate(m,!1,!0,!1,!0);i.push({isNull:!0,plotX:r.translate(t,!1,!1,!1,!0),x:t,plotY:b,yBottom:b})}})}return i},e.defaultOptions=tV(o$.defaultOptions,oZ),e}(o$);tL(oJ.prototype,{singleStacks:!1}),oe.registerSeriesType("area",oJ);var oQ=(y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o0=oe.seriesTypes.line,o1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oQ(e,t),e.prototype.getPointSpline=function(t,e,i){var o,r,n,s,a=e.plotX||0,l=e.plotY||0,h=t[i-1],d=t[i+1];function c(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(c(h)&&c(d)){var p=h.plotX||0,u=h.plotY||0,f=d.plotX||0,g=d.plotY||0,v=0;o=(1.5*a+p)/2.5,r=(1.5*l+u)/2.5,n=(1.5*a+f)/2.5,s=(1.5*l+g)/2.5,n!==o&&(v=(s-r)*(n-a)/(n-o)+l-s),r+=v,s+=v,r>u&&r>l?(r=Math.max(u,l),s=2*l-r):r<u&&r<l&&(r=Math.min(u,l),s=2*l-r),s>g&&s>l?(s=Math.max(g,l),r=2*l-s):s<g&&s<l&&(s=Math.min(g,l),r=2*l-s),e.rightContX=n,e.rightContY=s,e.controlPoints={low:[o,r],high:[n,s]}}var m=["C",tJ(h.rightContX,h.plotX,0),tJ(h.rightContY,h.plotY,0),tJ(o,a,0),tJ(r,l,0),a,l];return h.rightContX=h.rightContY=void 0,m},e.defaultOptions=tV(o0.defaultOptions),e}(o0);oe.registerSeriesType("spline",o1);var o2=(x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o5=oe.seriesTypes,o3=o5.area,o6=o5.area.prototype,o9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o2(e,t),e.defaultOptions=tV(o1.defaultOptions,o3.defaultOptions),e}(o1);tL(o9.prototype,{getGraphPath:o6.getGraphPath,getStackPoints:o6.getStackPoints,drawGraph:o6.drawGraph}),oe.registerSeriesType("areaspline",o9);var o4={borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.2},select:{color:"var(--highcharts-neutral-color-20)",borderColor:"var(--highcharts-neutral-color-100)"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"var(--highcharts-background-color)"},o8=(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o7=ex.parse,rt=tc.noop,re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o8(e,t),e.prototype.animate=function(t){var e,i,o=this,r=this.yAxis,n=r.pos,s=r.reversed,a=o.options,l=this.chart,h=l.clipOffset,d=l.inverted,c={},p=d?"translateX":"translateY";t&&h?(c.scaleY=.001,i=tb(r.toPixels(a.threshold||0),n,n+r.len),d?c.translateX=(i+=s?-Math.floor(h[+!!d]):Math.ceil(h[d?3:2]))-r.len:c.translateY=i+=s?Math.ceil(h[+!!d]):-Math.floor(h[d?3:2]),o.clipBox&&o.setClip(),o.group.attr(c)):(e=Number(o.group.attr(p)),o.group.animate({scaleY:1},tL(ew(o.options.animation),{step:function(t,i){o.group&&(c[p]=e+i.pos*(n-e),o.group.attr(c))}})))},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t,e,i,o=this,r=o.options,n=o.xAxis,s=o.yAxis,a=n.options.reversedStacks,l=n.reversed&&!a||!n.reversed&&a,h={},d=0;!1===r.grouping?d=1:o.chart.series.forEach(function(t){var e,r=t.yAxis,n=t.options;t.type===o.type&&t.reserveSpace()&&s.len===r.len&&s.pos===r.pos&&(n.stacking&&"group"!==n.stacking?(void 0===h[i=t.stackKey]&&(h[i]=d++),e=h[i]):!1!==n.grouping&&(e=d++),t.columnIndex=e)});var c=Math.min(Math.abs(n.transA)*(!(null==(t=n.brokenAxis)?void 0:t.hasBreaks)&&(null==(e=n.ordinal)?void 0:e.slope)||r.pointRange||n.closestPointRange||n.tickInterval||1),n.len),p=c*r.groupPadding,u=(c-2*p)/(d||1),f=Math.min(r.maxPointWidth||n.len,tJ(r.pointWidth,u*(1-2*r.pointPadding))),g=(o.columnIndex||0)+ +!!l;return o.columnMetrics={width:f,offset:(u-f)/2+(p+g*u-c/2)*(l?-1:1),paddedWidth:u,columnCount:d},o.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var r=this.borderWidth,n=this.chart.inverted;return o=tw(e+o,r,n)-(e=tw(e,r,n)),this.options.crisp&&(i=tw(t+i,r)-(t=tw(t,r))),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var r,n=this;if(!i.isNull&&o.columnCount>1){var s=this.xAxis.series.filter(function(t){return t.visible}).map(function(t){return t.index}),a=0,l=0;tK(null==(r=this.xAxis.stacking)?void 0:r.stacks,function(t){var e,o="number"==typeof i.x?null==(e=t[i.x.toString()])?void 0:e.points:void 0,r=null==o?void 0:o[n.index],h={};if(o&&tj(r)){var d=n.index,c=Object.keys(o).filter(function(t){return!t.match(",")&&o[t]&&o[t].length>1}).map(parseFloat).filter(function(t){return -1!==s.indexOf(t)}).filter(function(t){var e=n.chart.series[t].options,i=e.stacking&&e.stack;if(tS(i)){if(tF(h[i]))return d===t&&(d=h[i]),!1;h[i]=t}return!0}).sort(function(t,e){return e-t});a=c.indexOf(d),l=c.length}}),a=this.xAxis.reversed?l-1-a:a;var h=(l-1)*o.paddedWidth+e;t=(i.plotX||0)+h/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t,e,i=this,o=i.chart,r=i.options,n=i.dense=i.closestPointRange*i.xAxis.transA<2,s=i.borderWidth=null!=(t=r.borderWidth)?t:+!n,a=i.xAxis,l=i.yAxis,h=r.threshold,d=null!=(e=r.minPointLength)?e:5,c=i.getColumnMetrics(),p=c.width,u=i.pointXOffset=c.offset,f=i.dataMin,g=i.dataMax,v=i.translatedThreshold=l.getThreshold(h),m=i.barW=Math.max(p,1+2*s);r.pointPadding&&r.crisp&&(m=Math.ceil(m)),oh.prototype.translate.apply(i),i.points.concat(i.condemnedPoints).forEach(function(t){var e,n,s=null!=(e=t.yBottom)?e:v,y=999+Math.abs(s),x=t.plotX||0,b=tb(t.plotY,-y,l.len+y),M=Math.min(b,s),k=Math.max(b,s)-M,w=p,A=x+u,S=m;d&&Math.abs(k)<d&&(k=d,n=!l.reversed&&!t.negative||l.reversed&&t.negative,tF(h)&&tF(g)&&t.y===h&&g<=h&&(l.min||0)<h&&(f!==g||(l.max||0)<=h)&&(n=!n,t.negative=!t.negative),M=Math.abs(M-v)>d?s-(n?d:0):v-(n?d:0)),tS(t.options.pointWidth)&&(A-=Math.round(((w=S=Math.ceil(t.options.pointWidth))-p)/2)),r.centerInCategory&&(A=i.adjustForMissingColumns(A,w,t,c)),t.barX=A,t.pointWidth=w,t.tooltipPos=o.inverted?[tb(l.len+l.pos-o.plotLeft-b,l.pos-o.plotLeft,l.len+l.pos-o.plotLeft),a.len+a.pos-o.plotTop-A-S/2,k]:[a.left-o.plotLeft+A+S/2,tb(b+l.pos-o.plotTop,l.pos-o.plotTop,l.len+l.pos-o.plotTop),k],t.shapeType=i.pointClass.prototype.shapeType||"roundedRect",t.shapeArgs=i.crispCol(A,M,S,t.isNull?0:k)}),tB(this,"afterColumnTranslate")},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i,o,r,n,s,a,l,h,d,c=this.options,p=this.pointAttrToOptions||{},u=p.stroke||"borderColor",f=p["stroke-width"]||"borderWidth",g=t&&t.color||this.color,v=t&&t[u]||c[u]||g,m=t&&t.options.dashStyle||c.dashStyle,y=null!=(r=null!=(o=null!=(i=null==t?void 0:t[f])?i:c[f])?o:this[f])?r:1,x=(null==t?void 0:t.isNull)&&c.nullInteraction?0:null!=(s=null!=(n=null==t?void 0:t.opacity)?n:c.opacity)?s:1;t&&this.zones.length&&(h=t.getZone(),g=t.options.color||h&&(h.color||t.nonZonedColor)||this.color,h&&(v=h.borderColor||v,m=h.dashStyle||m,y=h.borderWidth||y)),e&&t&&(d=(l=tV(c.states[e],(null==(a=t.options.states)?void 0:a[e])||{})).brightness,g=l.color||void 0!==d&&o7(g).brighten(l.brightness).get()||g,v=l[u]||v,y=l[f]||y,m=l.dashStyle||m,x=tJ(l.opacity,x));var b={fill:g,stroke:v,"stroke-width":y,opacity:(null==t?void 0:t.condemned)?0:x};return m&&(b.dashstyle=m),b},e.prototype.drawPoints=function(t){t||(t=this.points.concat(this.condemnedPoints));var e,i=this,o=this.chart,r=i.options,n=r.nullInteraction,s=o.styledMode,a=o.renderer,l=r.animationLimit||250;t.forEach(function(t){var h=t.plotY,d=t.graphic,c=!!d,p=d&&o.pointCount<l?"animate":"attr";if(tF(h)&&(null!==t.y||n)){if(e=t.shapeArgs,d&&t.hasNewShapeType()&&(d=d.destroy()),!d){var u=e;t.origin&&o.pointCount<l&&(u=tV(e,t.getOrigin(t.origin,e)),s||(u.opacity=0),c=!0,p="animate"),t.graphic=d=a[t.shapeType](u).add(t.group||i.group)}c&&d[p](tV(e)),s||d[p](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow),d.addClass(t.getClassName(),!0).attr({visibility:t.visible?"inherit":"hidden"})}else d&&(t.graphic=d.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i,o=this,r=o.chart,n=r.pointer,s=function(t){null==n||n.normalize(t);var e=null==n?void 0:n.getPointFromEvent(t);n&&e&&o.options.enableMouseTracking&&(r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})||o.allowOutsidePlotInteraction&&(null==n?void 0:n.inClass(t.target,"highcharts-point"))||(null==n?void 0:n.inClass(t.target,"highcharts-data-label")))&&(n.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){i=tj(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),i.forEach(function(e){(e.div||e.element).point=t})}),o._hasTracking||(null==(e=o.trackerGroups)||e.reduce(function(t,e){return"dataLabelsGroup"===e?t.push.apply(t,o.dataLabelsGroups||[]):t.push(o[e]),t},[]).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){null==n||n.onTrackerMouseOut(t)}).on("touchstart",s),!r.styledMode&&o.options.cursor&&t.css({cursor:o.options.cursor}))}),o._hasTracking=!0),tB(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),oh.prototype.remove.apply(t,arguments)},e.defaultOptions=tV(oh.defaultOptions,o4),e}(oh);tL(re.prototype,{directTouch:!0,getSymbol:rt,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),oe.registerSeriesType("column",re);var ri=eG.format;!function(t){function e(){return l(this).some(function(t){return null==t?void 0:t.enabled})}function i(t,e,i,o,r){var n,s=this.chart,a=this.isCartesian&&s.inverted,l=t.condemned,h=t.origin,d=t.plotX,c=t.plotY,p=i.crop,u=i.distance,f=i.overflow,g=i.rotation,v=void 0===g?0:g,m=tI(i.align),y=tI(i.verticalAlign),x=t.pos(),b=tS(d)&&tS(c)&&s.isInsidePlot(d,Math.round(c),{inverted:a,paneCoordinates:!0,series:this}),M=this.visible&&t.visible&&tS(d)&&(this.forceDL||l||b||tJ(i.inside,!!this.options.stacking)&&o&&s.isInsidePlot(d,a?o.x+1:o.y+o.height-1,{inverted:a,paneCoordinates:!0,series:this}));if(x){var k=e.getBBox(),w=e.getBBox(void 0,0);o=tL({x:x[0],y:Math.round(x[1]),width:0,height:0},o||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(o[a?"x":"y"]=0,o[a?"width":"height"]=(null==(n=this.yAxis)?void 0:n.len)||0),tL(i,{width:k.width,height:k.height});var A=0,S=0;tF(u)&&!i.inside&&(A=u*(1-2*m),S=u*(1-2*y)),e.align(tV(i,{x:(i.x||0)+A,y:(i.y||0)+S,width:w.width,height:w.height}),!1,o,!1),e.distX=A,e.distY=S,e.alignAttr.x+=m*(w.width-k.width),e.alignAttr.y+=y*(w.height-k.height);var T=e.alignAttr.x+(k.width-w.width)/2,C=e.alignAttr.y+(k.height-w.height)/2;if(h){var P=t.pos(!1,h.x,h.y);if(P){var O=[P[0]-x[0],P[1]-x[1]];(this.is("column")||t.plotHigh)&&(O[+!a]=0),e.attr({x:T+O[0],y:C+O[1],opacity:.01}),e.placed=!0,r=!1}}var L={"text-align":e.alignAttr["text-align"]||"center",x:T,y:C,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2};if((l||!M)&&(L.opacity=0),e[e.placed?"animate":"attr"](L),0===v&&!l&&"justify"===(void 0===f?"justify":f)&&M&&o.height>=0)this.justifyDataLabel(e,i,e.alignAttr,k,o,r);else if((void 0===p||p)&&!l){var E=e.alignAttr,B=E.x,I=E.y;M=s.isInsidePlot(B,I,{paneCoordinates:!0,series:this})&&s.isInsidePlot(B+k.width-1,I+k.height-1,{paneCoordinates:!0,series:this})}i.shape&&!v&&e[r?"attr":"animate"]({anchorX:x[0],anchorY:x[1]})}e[r?"attr":"animate"]({visibility:M?"inherit":"hidden"}),e.placed=M}function o(t,e){tB(this,"initDataLabelsGroup",{index:t,zIndex:null==e?void 0:e.zIndex}),this.dataLabelsGroup=null==(i=this.dataLabelsGroups)?void 0:i[t];var i,o,r,n=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",null!=(o=null==e?void 0:e.zIndex)?o:6,null==(r=this.dataLabelsParentGroups)?void 0:r[t]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[t]=n,this.dataLabelsGroup=this.dataLabelsGroups[0],n}function r(t,e,i){var o=!!this.hasRendered,r=this.initDataLabelsGroup(t,i).attr({opacity:+o});return!o&&r&&(this.visible&&r.show(),this.options.animation?r.animate({opacity:1},e):r.attr({opacity:1})),r}function n(t){var e,i=this;t=t||this.points;var o=this,r=o.chart,n=o.options,s=r.renderer,h=r.options.chart,d=h.backgroundColor,c=h.plotBackgroundColor,p=s.getContrast(tY(c)&&c||tY(d)&&d||"var(--highcharts-background-color)"),u=[],f=l(o),g=f[0],v=g.animation,m=g.defer?eT(r,v,o):{defer:0,duration:0};tB(this,"drawDataLabels"),(null==(e=o.hasDataLabels)?void 0:e.call(o))&&t.concat(o.condemnedPoints).forEach(function(t){var e,l,h,d=t.dataLabels||[],c=t.color||o.color;t3(a(f,t.dlOptions||(null==(e=t.options)?void 0:e.dataLabels))).forEach(function(e,a){var l,h,f,g,v,y,x=e.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;if(i){var o=i.operator,r=t[i.property],n=i.value;return">"===o&&r>n||"<"===o&&r<n||">="===o&&r>=n||"<="===o&&r<=n||"=="===o&&r==n||"==="===o&&r===n||"!="===o&&r!=n||"!=="===o&&r!==n||!1}return!0}(t,e),b=e.backgroundColor,M=e.borderColor,k=e.distance,w=e.style,A=void 0===w?{}:w,S=t3(e.padding||0),T={},C=d[a],P=!C;if(x&&(g=tS(f=tJ(e[t.formatPrefix+"Format"],e.format))?ri(f,t,r):(e[t.formatPrefix+"Formatter"]||e.formatter).call(t,e,t),v=e.rotation,!r.styledMode&&(A.color=tJ(e.color,A.color,tY(o.color)?o.color:void 0,"var(--highcharts-neutral-color-100)"),"contrast"===A.color?("none"!==b&&(y=b),t.contrastColor=s.getContrast("auto"!==y&&"contrast"!==y&&tY(y)&&y||(tY(c)?c:"")),A.color=y&&"contrast"!==y||e.inside||0>tQ(k||0)||n.stacking?t.contrastColor:p):delete t.contrastColor,n.cursor&&(A.cursor=n.cursor)),T={r:null!=(l=e.borderRadius)?l:3,rotation:v,padding:S[0],paddingLeft:S[3%S.length],paddingRight:S[1%S.length],zIndex:1},r.styledMode||(T.fill="auto"===b?t.color:b,T.stroke="auto"===M?t.color:M,T["stroke-width"]=e.borderWidth),tK(T,function(t,e){void 0===t&&delete T[e]})),!C||x&&tS(g)&&!!(C.div||(null==(h=C.text)?void 0:h.foreignObject))==!!e.useHTML&&(C.rotation&&e.rotation||C.rotation===e.rotation)||(C=void 0,P=!0),x&&tS(g)&&""!==g&&(C?T.text=g:(C=s.label(g,0,0,e.shape,void 0,void 0,e.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":"")),C)){C.options=e,C.attr(T),r.styledMode?A.width&&C.css({width:A.width,textOverflow:A.textOverflow,whiteSpace:A.whiteSpace}):C.css(A).shadow(e.shadow),tB(C,"beforeAddingDataLabel",{labelOptions:e,point:t});var O=u[a]=u[a]||i.initDataLabels(a,m,e);C.added||C.add(O),o.alignDataLabel(t,C,e,void 0,P),C.isActive=!0,d[a]&&d[a]!==C&&d[a].destroy(),d[a]=C}});for(var g=d.length;g--;)(null==(l=d[g])?void 0:l.isActive)?d[g].isActive=!1:(null==(h=d[g])||h.destroy(),d.splice(g,1));t.dataLabel=d[0],t.dataLabels=d}),tB(this,"afterDrawDataLabels")}function s(t,e,i,o,r,n){var s,a,l,h=this.chart,d=e.align,c=e.verticalAlign,p=t.distX,u=void 0===p?0:p,f=t.distY,g=void 0===f?0:f,v=t.box?0:t.padding||0,m=h.inverted?this.yAxis:this.xAxis,y=m?m.left-h.plotLeft:0,x=h.inverted?this.xAxis:this.yAxis,b=x?x.top-h.plotTop:0,M=e.x,k=void 0===M?0:M,w=e.y,A=void 0===w?0:w;return(s=(i.x||0)-u+v+y)<0&&("right"===d&&k>=0?(e.align="left",e.inside=!0,k-=u):k-=s,a=!0),(s=(i.x||0)+o.width-u-v+y)>h.plotWidth&&("left"===d&&k<=0?(e.align="right",e.inside=!0,k-=u):k+=h.plotWidth-s,a=!0),(s=(i.y||0)-g+v+b)<0&&("bottom"===c&&A>=0?(e.verticalAlign="top",e.inside=!0,A-=g):A-=s,l=!0),(s=(i.y||0)+o.height-g-v+b)>h.plotHeight&&("top"===c&&A<=0?(e.verticalAlign="bottom",e.inside=!0,A-=g):A+=h.plotHeight-s,l=!0),(a||l)&&(e.x=a?k:k+u,e.y=l?A:A+g,t.placed=!n,t.align(e,void 0,r)),a||l}function a(t,e){var i,o=[];if(tj(t)&&!tj(e))o=t.map(function(t){return tV(t,e)});else if(tj(e)&&!tj(t))o=e.map(function(e){return tV(t,e)});else if(tj(t)||tj(e)){if(tj(t)&&tj(e))for(i=Math.max(t.length,e.length);i--;)o[i]=tV(t[i],e[i])}else o=tV(t,e);return o}function l(t){var e,i,o=t.chart.options.plotOptions;return t3(a(a(null==(e=null==o?void 0:o.series)?void 0:e.dataLabels,null==(i=null==o?void 0:o[t.type])?void 0:i.dataLabels),t.options.dataLabels))}t.compose=function(t){var l=t.prototype;l.initDataLabels||(l.initDataLabels=r,l.initDataLabelsGroup=o,l.alignDataLabel=i,l.drawDataLabels=n,l.justifyDataLabel=s,l.mergeArrays=a,l.hasDataLabels=e)}}(q||(q={}));var ro=q,rr=tc.composed,rn=oe.series;function rs(t,e,i,o,r){var n,s,a,l,h,d=this.chart,c=this.options,p=d.inverted,u=(null==(n=this.xAxis)?void 0:n.len)||d.plotSizeX||0,f=(null==(s=this.yAxis)?void 0:s.len)||d.plotSizeY||0,g=t.dlBox||t.shapeArgs,v=null!=(a=t.below)?a:(t.plotY||0)>(null!=(l=this.translatedThreshold)?l:f),m=null!=(h=i.inside)?h:!!c.stacking;if(g){if(o=tV(g),"allow"!==i.overflow||!1!==i.crop||!1!==c.clip){o.y<0&&(o.height+=o.y,o.y=0);var y=o.y+o.height-f;y>0&&y<o.height-1&&(o.height-=y)}p&&(o={x:f-o.y-o.height,y:u-o.x-o.width,width:o.height,height:o.width}),m||(p?(o.x+=v?0:o.width,o.width=0):(o.y+=v?o.height:0,o.height=0))}null!=i.align||(i.align=!p||m?"center":v?"right":"left"),null!=i.verticalAlign||(i.verticalAlign=p||m?"middle":v?"top":"bottom"),rn.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}($||($={})).compose=function(t){ro.compose(rn),t0(rr,"ColumnDataLabel")&&(t.prototype.alignDataLabel=rs)};var ra=$,rl=(M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rl(e,t),e.defaultOptions=tV(re.defaultOptions,{}),e}(re);tL(rh.prototype,{inverted:!0}),oe.registerSeriesType("bar",rh);var rd={lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},rc=(k=function(t,e){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rp=oe.seriesTypes,ru=rp.column,rf=rp.line,rg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rc(e,t),e.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,r){["x","y"].forEach(function(n,s){if(e[n]&&!o.isNull){var a="plot".concat(n.toUpperCase()),l=t[""+n+"Axis"],h=e[n]*l.transA;if(l&&!l.logarithmic){var d,c=Math.max(0,(o[a]||0)-h),p=Math.min(l.len,(o[a]||0)+h);o[a]=c+(p-c)*((d=1e4*Math.sin(r+s*i))-Math.floor(d)),"x"===n&&(o.clientX=o.plotX)}}})})},e.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},e.defaultOptions=tV(rf.defaultOptions,rd),e}(rf);tL(rg.prototype,{allowOutsidePlotInteraction:!0,drawTracker:ru.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),tv(rg,"afterTranslate",function(){this.applyJitter()}),oe.registerSeriesType("scatter",rg);var rv=tc.deg2rad;(w=J||(J={})).getCenter=function(){var t,e,i,o=this.options,r=this.chart,n=2*(o.slicedOffset||0),s=r.plotWidth-2*n,a=r.plotHeight-2*n,l=o.center,h=Math.min(s,a),d=o.thickness,c=o.size,p=o.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof p&&(p=parseFloat(p));var u=[tJ(null==l?void 0:l[0],"50%"),tJ(null==l?void 0:l[1],"50%"),tJ(c&&c<0?void 0:o.size,"100%"),tJ(p&&p<0?void 0:o.innerSize||0,"0%")];for(e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=t1(i,[s,a,h,u[2]][e])+(t?n:0);return u[3]>u[2]&&(u[3]=u[2]),tF(d)&&2*d<u[2]&&d>0&&(u[3]=u[2]-2*d),tB(this,"afterGetCenter",{positions:u}),u},w.getStartAndEndRadians=function(t,e){var i=tF(t)?t:0,o=tF(e)&&e>i&&e-i<360?e:i+360;return{start:rv*(i+-90),end:rv*(o+-90)}};var rm=J,ry=(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rx=function(){return(rx=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},rb=function(t){function e(e,i,o){var r=t.call(this,e,i,o)||this;r.half=0,null!=r.name||(r.name=e.chart.options.lang.pieSliceName);var n=function(t){r.slice("select"===t.type)};return tv(r,"select",n),tv(r,"unselect",n),r}return ry(e,t),e.prototype.getConnectorPath=function(t){var e=t.dataLabelPosition,i=t.options||{},o=i.connectorShape,r=this.connectorShapes[o]||o;return e&&r.call(this,rx(rx({},e.computed),{alignment:e.alignment}),e.connectorPosition,i)||[]},e.prototype.getTranslate=function(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})},e.prototype.isValid=function(){return tF(this.y)&&this.y>=0},e.prototype.setVisible=function(t,e){void 0===e&&(e=!0),t!==this.visible&&this.update({visible:null!=t?t:!this.visible},e,void 0,!1)},e.prototype.slice=function(t,e,i){var o,r=this.series;eC(i,r.chart),e=tJ(e,!0),this.sliced=this.options.sliced=null!=t?t:!this.sliced,r.options.data&&(r.options.data[r.data.indexOf(this)]=this.options),null==(o=this.graphic)||o.animate(this.getTranslate())},e}(iU);tL(rb.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt,r=e.touchingSliceAt,n=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-r.x,2*o.y-r.y,o.x,o.y]:["L",o.x,o.y];return[["M",t.x,t.y],n,["L",r.x,r.y]]},straight:function(t,e){var i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){var o=e.angle,r=void 0===o?this.angle||0:o,n=e.breakAt,s=e.touchingSliceAt,a=this.series,l=a.center,h=l[0],d=l[1],c=l[2]/2,p=a.chart,u=p.plotLeft,f=p.plotWidth,g="left"===t.alignment,v=t.x,m=t.y,y=n.x;if(i.crookDistance){var x=t1(i.crookDistance,1);y=g?h+c+(f+u-h-c)*(1-x):u+(h-c)*x}else y=h+(d-m)*Math.tan(r-Math.PI/2);var b=[["M",v,m]];return(g?y<=v&&y>=n.x:y>=v&&y<=n.x)&&b.push(["L",y,m]),b.push(["L",n.x,n.y],["L",s.x,s.y]),b}}});var rM={borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.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:"var(--highcharts-background-color)",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},rk=(S=function(t,e){return(S=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rw=rm.getStartAndEndRadians,rA=tc.noop,rS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rk(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,r=t.shapeArgs;i&&r&&(i.attr({r:tJ(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,r=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,o).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:e6.arc(t,e,this.center[2]/2,0,{start:i,end:o,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"var(--highcharts-neutral-color-20)"})):this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getXPos=function(t,e,i,o){var r=this.center,n=this.radii?this.radii[i.index]||0:r[2]/2,s=o.dataLabelPosition,a=(null==s?void 0:s.distance)||0,l=Math.asin(tb((t-r[1])/(n+a),-1,1));return r[0]+Math.cos(l)*(n+a)*(e?-1:1)+(a>0?e?-5:5:0)},e.prototype.hasData=function(){return this.points.some(function(t){return t.visible})},e.prototype.redrawPoints=function(){var t,e,i,o,r=this,n=r.chart;this.drawEmpty(),r.group&&!n.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(s){var a={};e=s.graphic,!s.isNull&&e?(o=s.shapeArgs,t=s.getTranslate(),n.styledMode||(i=r.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(e.setRadialReference(r.center).attr(o).attr(t),n.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),s.delayedRendering=!1):(e.setRadialReference(r.center),n.styledMode||tV(!0,a,i),tV(!0,a,o,t),e.animate(a)),e.attr({visibility:s.visible?"inherit":"hidden"}),e.addClass(s.getClassName(),!0)):e&&(s.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){tB(this,"translate"),this.generatePoints();var e,i,o,r,n,s,a,l=this.options,h=l.slicedOffset,d=rw(l.startAngle,l.endAngle),c=this.startAngleRad=d.start,p=(this.endAngleRad=d.end)-c,u=this.points,f=l.ignoreHiddenPoint,g=u.length,v=0;for(t||(this.center=t=this.getCenter()),s=0;s<g;s++){a=u[s],e=c+v*p,a.isValid()&&(!f||a.visible)&&(v+=a.percentage/100),i=c+v*p;var m={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:e,end:i};a.shapeType="arc",a.shapeArgs=m,(o=(i+e)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(o)*h),translateY:Math.round(Math.sin(o)*h)},r=Math.cos(o)*t[2]/2,n=Math.sin(o)*t[2]/2,a.tooltipPos=[t[0]+.7*r,t[1]+.7*n],a.half=+(o<-Math.PI/2||o>Math.PI/2),a.angle=o}tB(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e,i=this.points,o=i.length,r=this.options.ignoreHiddenPoint,n=0;for(t=0;t<o;t++)(e=i[t]).isValid()&&(!r||e.visible)&&(n+=e.y);for(t=0,this.total=n;t<o;t++)(e=i[t]).percentage=n>0&&(e.visible||!r)?e.y/n*100:0,e.total=n},e.defaultOptions=tV(oh.defaultOptions,rM),e}(oh);tL(rS.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:re.prototype.drawTracker,getCenter:rm.getCenter,getSymbol:rA,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:re.prototype.pointAttribs,pointClass:rb,requireSorting:!1,searchPoint:rA,trackerGroups:["group","dataLabelsGroup"]}),oe.registerSeriesType("pie",rS);var rT=tc.composed,rC=tc.noop,rP=eH.distribute,rO=oe.series;!function(t){var e={radialDistributionY:function(t,e){var i;return((null==(i=e.dataLabelPosition)?void 0:i.top)||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,o,r){var n=r.dataLabelPosition;return t.getXPos(i<((null==n?void 0:n.top)||0)+2||i>((null==n?void 0:n.bottom)||0)-2?o:i,e.half,e,r)},justify:function(t,e,i,o){var r;return o[0]+(t.half?-1:1)*(i+((null==(r=e.dataLabelPosition)?void 0:r.distance)||0))},alignToPlotEdges:function(t,e,i,o){var r=t.getBBox().width;return e?r+o:i-r-o},alignToConnectors:function(t,e,i,o){var r,n=0;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>n&&(n=r)}),e?n+o:i-n-o}};function i(t,e){var i=Math.PI/2,o=t.shapeArgs||{},r=o.start,n=void 0===r?0:r,s=o.end,a=void 0===s?0:s,l=t.angle||0;e>0&&n<i&&a>i&&l>i/2&&l<1.5*i&&(l=l<=i?Math.max(i/2,(n+i)/2):Math.min(1.5*i,(i+a)/2));var h=this.center,d=this.options,c=h[2]/2,p=Math.cos(l),u=Math.sin(l),f=h[0]+p*c,g=h[1]+u*c,v=Math.min((d.slicedOffset||0)+(d.borderWidth||0),e/5);return{natural:{x:f+p*e,y:g+u*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:l,breakAt:{x:f+p*v,y:g+u*v},touchingSliceAt:{x:f,y:g}},distance:e}}function o(){var t,e,i,o,r=this,n=this,s=n.points,a=n.chart,l=a.plotWidth,h=a.plotHeight,d=a.plotLeft,c=Math.round(a.chartWidth/3),p=n.center,u=p[2]/2,f=p[1],g=[[],[]],v=[0,0,0,0],m=n.dataLabelPositioners,y=0;n.visible&&(null==(t=n.hasDataLabels)?void 0:t.call(n))&&(s.forEach(function(t){(t.dataLabels||[]).forEach(function(t){t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),rO.prototype.drawDataLabels.apply(n),s.forEach(function(t){(t.dataLabels||[]).forEach(function(e,i){var o,n=p[2]/2,s=e.options,a=t1((null==s?void 0:s.distance)||0,n);0===i&&g[t.half].push(t),!tS(null==(o=null==s?void 0:s.style)?void 0:o.width)&&e.getBBox().width>c&&(e.css({width:Math.round(.7*c)+"px"}),e.shortened=!0),e.dataLabelPosition=r.getDataLabelPosition(t,a),y=Math.max(y,a)})}),g.forEach(function(t,e){var r,s,c,g=t.length,x=[],b=0;g&&(n.sortByAngle(t,e-.5),y>0&&(r=Math.max(0,f-u-y),s=Math.min(f+u+y,a.plotHeight),t.forEach(function(t){(t.dataLabels||[]).forEach(function(e){var i,o=e.dataLabelPosition;o&&o.distance>0&&(o.top=Math.max(0,f-u-o.distance),o.bottom=Math.min(f+u+o.distance,a.plotHeight),b=e.getBBox().height||21,e.lineHeight=a.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:((null==(i=e.dataLabelPosition)?void 0:i.natural.y)||0)-o.top+e.lineHeight/2,size:b,rank:t.y},x.push(t.distributeBox))})}),rP(x,c=s+b-r,c/5)),t.forEach(function(r){(r.dataLabels||[]).forEach(function(s){var a=s.options||{},c=r.distributeBox,f=s.dataLabelPosition,g=(null==f?void 0:f.natural.y)||0,y=a.connectorPadding||0,b=s.lineHeight||21,M=(b-s.getBBox().height)/2,k=0,w=g,A="inherit";if(f){if(x&&tS(c)&&f.distance>0&&(void 0===c.pos?A="hidden":(o=c.size,w=m.radialDistributionY(r,s))),a.justify)k=m.justify(r,s,u,p);else switch(a.alignTo){case"connectors":k=m.alignToConnectors(t,e,l,d);break;case"plotEdges":k=m.alignToPlotEdges(s,e,l,d);break;default:k=m.radialDistributionX(n,r,w-M,g,s)}if(f.attribs={visibility:A,align:f.alignment},f.posAttribs={x:k+(a.x||0)+(({left:y,right:-y})[f.alignment]||0),y:w+(a.y||0)-b/2},f.computed.x=k,f.computed.y=w-M,tJ(a.crop,!0)){i=s.getBBox().width;var S=void 0;k-i<y&&1===e?(S=Math.round(i-k+y),v[3]=Math.max(S,v[3])):k+i>l-y&&0===e&&(S=Math.round(k+i-l+y),v[1]=Math.max(S,v[1])),w-o/2<0?v[0]=Math.max(Math.round(-w+o/2),v[0]):w+o/2>h&&(v[2]=Math.max(Math.round(w+o/2-h),v[2])),f.sideOverflow=S}}})}))}),(0===ty(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(t){var i;null==(i=t.dataLabels)||i.forEach(function(i,o){var r,s,l=i.options||{},h=l.connectorColor,d=l.connectorWidth,c=void 0===d?1:d,p=i.dataLabelPosition;if(tF(c)){var u=void 0;e=i.connector,p&&p.distance>0?(u=!e,e||(i.connector=e=a.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(null==(r=n.dataLabelsGroups)?void 0:r[o])),a.styledMode||e.attr({"stroke-width":c,stroke:h||t.color||"var(--highcharts-neutral-color-60)"}),e[u?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:null==(s=p.attribs)?void 0:s.visibility})):e&&(i.connector=e.destroy())}})})))}function r(){this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(t){var e,i,o=t.dataLabelPosition;o?(o.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-o.sideOverflow,0)+"px",textOverflow:(null==(i=null==(e=t.options)?void 0:e.style)?void 0:i.textOverflow)||"ellipsis"}),t.shortened=!0),t.attr(o.attribs),t[t.moved?"animate":"attr"](o.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function n(t){var e=this.center,i=this.options,o=i.center,r=i.minSize||80,n=r,s=null!==i.size;return!s&&(null!==o[0]?n=Math.max(e[2]-Math.max(t[1],t[3]),r):(n=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2),null!==o[1]?n=tb(n,r,e[2]-Math.max(t[0],t[2])):(n=tb(n,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(i.thickness?Math.max(0,n-2*i.thickness):Math.max(0,t1(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}t.compose=function(t){if(ro.compose(rO),t0(rT,"PieDataLabel")){var s=t.prototype;s.dataLabelPositioners=e,s.alignDataLabel=rC,s.drawDataLabels=o,s.getDataLabelPosition=i,s.placeDataLabels=r,s.verifyDataLabelOverflow=n}}}(Q||(Q={}));var rL=Q;(T=tt||(tt={})).getCenterOfPoints=function(t){var e=t.reduce(function(t,e){return t.x+=e.x,t.y+=e.y,t},{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},T.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},T.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},T.pointInPolygon=function(t,e){var i,o,r=t.x,n=t.y,s=e.length,a=!1;for(i=0,o=s-1;i<s;o=i++){var l=e[i],h=l[0],d=l[1],c=e[o],p=c[0],u=c[1];d>n!=u>n&&r<(p-h)*(n-d)/(u-d)+h&&(a=!a)}return a};var rE=tt.pointInPolygon;function rB(t,e){var i,o=!1;return t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.hasClass("highcharts-data-label")?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),o=!0,t[t.isOld||t.placed?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),tB(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),o}var rI=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},rD=tc.noop,rz={radius:0,scope:"stack",where:void 0},rR=rD,rN=rD;function rW(t,e,i,o,r){void 0===r&&(r={});var n=rR(t,e,i,o,r),s=r.brStart,a=void 0===s||s,l=r.brEnd,h=void 0===l||l,d=r.innerR,c=void 0===d?0:d,p=r.r,u=void 0===p?i:p,f=r.start,g=r.end;if(r.open||!r.borderRadius)return n;for(var v=(void 0===g?0:g)-(void 0===f?0:f),m=Math.sin(v/2),y=Math.max(Math.min(t1(r.borderRadius||0,u-c),(u-c)/2,u*m/(1+m)),0),x=Math.min(y,v/Math.PI*2*c),b=n.length-1;b--;)(a||0!==b&&3!==b)&&(h||1!==b&&2!==b)&&!function(t,e,i){var o,r,n,s=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),("M"===s[0]||"L"===s[0])&&"A"===a[0]?(o=s,r=a,n=!0):"A"===s[0]&&("M"===a[0]||"L"===a[0])&&(o=a,r=s),o&&r&&r.params){var l=r[1],h=r[5],d=r.params,c=d.start,p=d.end,u=d.cx,f=d.cy,g=h?l-i:l+i,v=g?Math.asin(i/g):0,m=h?v:-v,y=Math.cos(v)*g;n?(d.start=c+m,o[1]=u+y*Math.cos(c),o[2]=f+y*Math.sin(c),t.splice(e+1,0,["A",i,i,0,0,1,u+l*Math.cos(d.start),f+l*Math.sin(d.start)])):(d.end=p-m,r[6]=u+l*Math.cos(d.end),r[7]=f+l*Math.sin(d.end),t.splice(e+1,0,["A",i,i,0,0,1,u+y*Math.cos(p),f+y*Math.sin(p)])),r[4]=Math.abs(d.end-d.start)<Math.PI?0:1}}(n,b,b>1?x:y);return n}function rG(){var t,e;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d()))for(var i=this.options,o=this.yAxis,r="percent"===i.stacking,n=null==(e=null==(t=eu.plotOptions)?void 0:t[this.type])?void 0:e.borderRadius,s=rH(i.borderRadius,tU(n)?n:{}),a=o.options.reversed,l=0,h=this.points;l<h.length;l++){var d=h[l],c=d.shapeArgs;if("roundedRect"===d.shapeType&&c){var p=c.width,u=void 0===p?0:p,f=c.height,g=void 0===f?0:f,v=c.y,m=void 0===v?0:v,y=g;if("stack"===s.scope&&d.stackTotal){var x=o.translate(r?100:d.stackTotal,!1,!0,!1,!0),b=o.translate(i.threshold||0,!1,!0,!1,!0),M=this.crispCol(0,Math.min(x,b),0,Math.abs(x-b));m=M.y,y=M.height}var k=(d.negative?-1:1)*(a?-1:1)==-1,w=s.where;!w&&this.is("waterfall")&&Math.abs((d.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(w="all"),w||(w="end");var A=Math.min(t1(s.radius,u),u/2,"all"===w?y/2:1/0)||0;"end"===w&&(k&&(m-=A),y+=A),tL(c,{brBoxHeight:y,brBoxY:m,r:A})}}}function rH(t,e){return tU(t)||(t={radius:t||0}),tV(rz,e,t)}function rX(){for(var t=rH(this.options.borderRadius),e=0,i=this.points;e<i.length;e++){var o=i[e].shapeArgs;o&&(o.borderRadius=t1(t.radius,(o.r||0)-(o.innerR||0)))}}function rF(t,e,i,o,r){void 0===r&&(r={});var n=rN(t,e,i,o,r),s=r.r,a=void 0===s?0:s,l=r.brBoxHeight,h=void 0===l?o:l,d=r.brBoxY,c=void 0===d?e:d,p=e-c,u=c+h-(e+o),f=p-a>-.1?0:a,g=u-a>-.1?0:a,v=Math.max(f&&p,0),m=Math.max(g&&u,0),y=[t+f,e],x=[t+i-f,e],b=[t+i,e+f],M=[t+i,e+o-g],k=[t+i-g,e+o],w=[t+g,e+o],A=[t,e+o-g],S=[t,e+f],T=function(t,e){return Math.sqrt(Math.pow(t,2)-Math.pow(e,2))};if(v){var C=T(f,f-v);y[0]-=C,x[0]+=C,b[1]=S[1]=e+f-v}if(o<f-v){var C=T(f,f-v-o);b[0]=M[0]=t+i-f+C,k[0]=Math.min(b[0],k[0]),w[0]=Math.max(M[0],w[0]),A[0]=S[0]=t+f-C,b[1]=S[1]=e+o}if(m){var C=T(g,g-m);k[0]+=C,w[0]-=C,M[1]=A[1]=e+o-g+m}if(o<g-m){var C=T(g,g-m-o);b[0]=M[0]=t+i-g+C,x[0]=Math.min(b[0],x[0]),y[0]=Math.max(M[0],y[0]),A[0]=S[0]=t+g-C,M[1]=A[1]=e}return n.length=0,n.push(rI(["M"],y,!0),rI(["L"],x,!0),rI(["A",f,f,0,0,1],b,!0),rI(["L"],M,!0),rI(["A",g,g,0,0,1],k,!0),rI(["L"],w,!0),rI(["A",g,g,0,0,1],A,!0),rI(["L"],S,!0),rI(["A",f,f,0,0,1],y,!0),["Z"]),n}function rY(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=tJ(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=tJ(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=tJ(i.minWidth,0)&&this.chartHeight>=tJ(i.minHeight,0)}).call(this,this)&&e.push(t._id)}function rj(t,e){var i,o=this,r=this.options.responsive,n=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach(function(t){void 0===t._id&&(t._id=er()),o.matchResponsiveRule(t,s)},this);var a=tV.apply(void 0,s.map(function(t){return tW((null==r?void 0:r.rules)||[],function(e){return e._id===t})}).map(function(t){return null==t?void 0:t.chartOptions}));a.isResponsiveOptions=!0,s=s.toString()||void 0;var l=null==n?void 0:n.ruleIds;s!==l&&(n&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(n.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=tP(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:a,undoOptions:i},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}(te||(te={})).compose=function(t){var e=t.prototype;return e.matchResponsiveRule||tL(e,{matchResponsiveRule:rY,setResponsive:rj}),t};var r_=te;function rU(t,e,i,o){return[["M",t,e+o/2],["L",t+i,e],["L",t,e+o/2],["L",t+i,e+o]]}function rV(t,e,i,o){return rU(t,e,i/2,o)}function rZ(t){var e=t.prototype.symbols;e.arrow=rU,e["arrow-filled"]=rK,e["arrow-filled-half"]=rq,e["arrow-half"]=rV,e["triangle-left"]=rK,e["triangle-left-half"]=rq}function rK(t,e,i,o){return[["M",t+i,e],["L",t,e+o/2],["L",t+i,e+o],["Z"]]}function rq(t,e,i,o){return rK(t,e,i/2,o)}tc.AST=eB,tc.Axis=iL,tc.Chart=oT,tc.Color=ex,tc.DataLabel=ro,tc.DataTable=i2,tc.DataTableCore=i2,tc.Fx=ek,tc.HTMLElement=iy,tc.Legend=ov,tc.LegendSymbol=i9,tc.PlotLineOrBand=iz,tc.Point=iU,tc.Pointer=iQ,tc.Series=oh,tc.SeriesRegistry=oe,tc.StackItem=oI,tc.SVGElement=eZ,tc.SVGRenderer=iu,tc.Templating=eG,tc.Tick=iw,tc.Time=ed,tc.Tooltip=ij,tc.addEvent=tv,tc.animObject=ew,tc.animate=eS,tc.arrayMax=ty,tc.arrayMin=tm,tc.attr=tx,tc.chart=oT.chart,tc.clamp=tb,tc.color=ex.parse,tc.correctFloat=tM,tc.createElement=tk,tc.css=tA,tc.crisp=tw,tc.dateFormat=eG.dateFormat,tc.defaultOptions=eu,tc.defined=tS,tc.destroyObjectProperties=tT,tc.diffObjects=tP,tc.discardElement=tC,tc.distribute=eH.distribute,tc.erase=tO,tc.error=ee,tc.extend=tL,tc.extendClass=tE,tc.find=tW,tc.fireEvent=tB,tc.format=eG.format,tc.getAlignFactor=tI,tc.getClosestDistance=tD,tc.getDeferredAnimation=eT,tc.getMagnitude=tz,tc.getNestedProperty=tR,tc.getOptions=function(){return eu},tc.getStyle=tN,tc.insertItem=ei,tc.isArray=tj,tc.isClass=tX,tc.isDOMElement=tH,tc.isFunction=t_,tc.isNumber=tF,tc.isObject=tU,tc.isString=tY,tc.internalClearTimeout=tG,tc.merge=tV,tc.normalizeTickInterval=tZ,tc.numberFormat=eG.numberFormat,tc.objectEach=tK,tc.offset=tq,tc.pad=t$,tc.pick=tJ,tc.pushUnique=t0,tc.pInt=tQ,tc.relativeLength=t1,tc.removeEvent=t5,tc.replaceNested=t2,tc.seriesType=oe.seriesType,tc.setAnimation=eC,tc.setOptions=eg,tc.splat=t3,tc.stableSort=t6,tc.stop=eA,tc.syncTimeout=t9,tc.time=ef,tc.ucfirst=t4,tc.timers=ek.timers,tc.timeUnits=eo,tc.uniqueKey=er,tc.useSerialIds=function(t){return G=tJ(t,G)},tc.wrap=t8,function(t,e,i){var o=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){var r=i.prototype.symbols;tv(t,"afterColumnTranslate",rG,{order:9}),tv(o,"afterTranslate",rX),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),rR=r.arc,rN=r.roundedRect,r.arc=rW,r.roundedRect=rF}}(tc.Series,tc.SVGElement,tc.SVGRenderer),ra.compose(tc.Series.types.column),ro.compose(tc.Series),iE.compose(tc.Axis),iy.compose(tc.SVGRenderer),ov.compose(tc.Chart),iB.compose(tc.Axis),(P=(C=tc.Chart).prototype).hideOverlappingLabels||(P.hideOverlappingLabels=function(t){for(var e,i,o,r,n,s=t.length,a=!1,l=0;l<s;l++)(e=t[l])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){var e,i,o;if(t&&(!t.alignAttr||t.placed)){var r=t.box?0:t.padding||0,n=(null==(e=t.dataLabelPosition)?void 0:e.posAttribs)||t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.getBBox(),a=s.height,l=s.polygon,h=s.width,d=tI(t.alignValue)*h;return t.width=h,t.height=a,{x:n.x+((null==(i=t.parentGroup)?void 0:i.translateX)||0)+r-d,y:n.y+((null==(o=t.parentGroup)?void 0:o.translateY)||0)+r,width:h-2*r,height:a-2*r,polygon:l}}}(e));t.sort(function(t,e){return((null==e?void 0:e.labelrank)||0)-((null==t?void 0:t.labelrank)||0)});for(var l=0;l<s;++l)for(var h=null==(r=(i=t[l])&&i.absoluteBox)?void 0:r.polygon,d=l+1;d<s;++d){n=(o=t[d])&&o.absoluteBox;var c=!1;if(r&&n&&i!==o&&(null==i?void 0:i.newOpacity)!==0&&(null==o?void 0:o.newOpacity)!==0&&(null==i?void 0:i.visibility)!=="hidden"&&(null==o?void 0:o.visibility)!=="hidden"){var p=n.polygon;if(h&&p&&h!==p?function(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(rE({x:o[0],y:o[1]},e))return!0}return!1}(h,p)&&(c=!0):n.x>=r.x+r.width||n.x+n.width<=r.x||n.y>=r.y+r.height||n.y+n.height<=r.y||(c=!0),c){var u=(null==i?void 0:i.labelrank)<(null==o?void 0:o.labelrank)?i:o,f=null==u?void 0:u.text;u&&(u.newOpacity=0),(null==f?void 0:f.element.querySelector("textPath"))&&f.hide()}}}for(var g=0;g<t.length;g++){var v=t[g];v&&rB(v,this)&&(a=!0)}a&&tB(this,"afterHideAllOverlappingLabels")},tv(C,"render",function(){for(var t,e=this,i=[],o=0,r=e.labelCollectors||[];o<r.length;o++){var n=r[o];i=i.concat(n())}for(var s=0,a=e.yAxis||[];s<a.length;s++){var l=a[s];l.stacking&&l.options.stackLabels&&!l.options.stackLabels.allowOverlap&&tK(l.stacking.stacks,function(t){tK(t,function(t){t.label&&i.push(t.label)})})}for(var h=function(o){if(o.visible&&(null==(t=o.hasDataLabels)?void 0:t.call(o))){var r=function(t){for(var r=function(t){t.visible&&(t.dataLabels||[]).forEach(function(r){var n,s,a=r.options||{};r.labelrank=tJ(a.labelrank,t.labelrank,null==(n=t.shapeArgs)?void 0:n.height),(null!=(s=a.allowOverlap)?s:o.is("pie")&&Number(a.distance)>0)?(r.oldOpacity=r.opacity,r.newOpacity=1,rB(r,e)):i.push(r)})},n=0;n<t.length;n++)r(t[n])};r(o.nodes||[]),r(o.points)}},d=0,c=e.series||[];d<c.length;d++)h(c[d]);this.hideOverlappingLabels(i)})),rL.compose(tc.Series.types.pie),iz.compose(tc.Chart,tc.Axis),iQ.compose(tc.Chart),r_.compose(tc.Chart),oL.compose(tc.Axis,tc.Chart,tc.Series),oj.compose(tc.Axis,tc.Chart,tc.Series),ij.compose(tc.Pointer);var r$=tc.deg2rad,rJ=Math.max,rQ=Math.min,r0=function(){function t(t,e,i){this.init(t,e,i)}return t.prototype.init=function(t,e,i){this.fromPoint=t,this.toPoint=e,this.options=i,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder},t.prototype.renderPath=function(t,e){var i=this.chart,o=i.styledMode,r=this.pathfinder,n={},s=this.graphics&&this.graphics.path;r.group||(r.group=i.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(i.seriesGroup)),r.group.translate(i.plotLeft,i.plotTop),!(s&&s.renderer)&&(s=i.renderer.path().add(r.group),o||s.attr({opacity:0})),s.attr(e),n.d=t,o||(n.opacity=1),s.animate(n),this.graphics=this.graphics||{},this.graphics.path=s},t.prototype.addMarker=function(t,e,i){var o,r,n,s,a,l,h,d=this.fromPoint.series.chart,c=d.pathfinder,p=d.renderer,u="start"===t?this.fromPoint:this.toPoint,f=u.getPathfinderAnchorPoint(e);e.enabled&&((h="start"===t?i[1]:i[i.length-2])&&"M"===h[0]||"L"===h[0])&&(l={x:h[1],y:h[2]},r=u.getRadiansToVector(l,f),o=u.getMarkerVector(r,e.radius,f),e.width&&e.height?(s=e.width,a=e.height):s=a=2*e.radius,this.graphics=this.graphics||{},n={x:o.x-s/2,y:o.y-a/2,width:s,height:a,rotation:-r/r$,rotationOriginX:o.x,rotationOriginY:o.y},this.graphics[t]?this.graphics[t].animate(n):(this.graphics[t]=p.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(n).add(c.group),p.styledMode||this.graphics[t].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},u.series.options.animation)))},t.prototype.getPath=function(t){var e=this.pathfinder,i=this.chart,o=e.algorithms[t.type],r=e.chartObstacles;return"function"!=typeof o?(ee('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(o.requiresObstacles&&!r&&(r=e.chartObstacles=e.getChartObstacles(t),i.options.connectors.algorithmMargin=t.algorithmMargin,e.chartObstacleMetrics=e.getObstacleMetrics(r)),o(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),tV({chartObstacles:r,lineObstacles:e.lineObstacles||[],obstacleMetrics:e.chartObstacleMetrics,hardBounds:{xMin:0,xMax:i.plotWidth,yMin:0,yMax:i.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:e.getAlgorithmStartDirection(t.startMarker)},t)))},t.prototype.render=function(){var t=this.fromPoint,e=t.series,i=e.chart,o=i.pathfinder,r={},n=tV(i.options.connectors,e.options.connectors,t.options.connectors,this.options);!i.styledMode&&(r.stroke=n.lineColor||t.color,r["stroke-width"]=n.lineWidth,n.dashStyle&&(r.dashstyle=n.dashStyle)),r.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,tS((n=tV(r,n)).marker.radius)||(n.marker.radius=rQ(rJ(Math.ceil((n.algorithmMargin||8)/2)-1,1),5));var s=this.getPath(n),a=s.path;s.obstacles&&(o.lineObstacles=o.lineObstacles||[],o.lineObstacles=o.lineObstacles.concat(s.obstacles)),this.renderPath(a,r),this.addMarker("start",tV(n.marker,n.startMarker),a),this.addMarker("end",tV(n.marker,n.endMarker),a)},t.prototype.destroy=function(){this.graphics&&(tK(this.graphics,function(t){t.destroy()}),delete this.graphics)},t}(),r1=tc.composed,r2={color:"var(--highcharts-highlight-color-20)",width:2,label:{format:"%[abdYHM]",formatter:function(t,e){return this.axis.chart.time.dateFormat(e||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}},r5=(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r5(e,t),e.prototype.init=function(e,i){var o,r=e.xAxis,n=e.yAxis;e.xAxis=e.yAxis=void 0;var s=tV(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},e,{isGantt:!0});e.xAxis=r,e.yAxis=n,s.xAxis=(!tj(e.xAxis)?[e.xAxis||{},{}]:e.xAxis).map(function(t,e){var i,r,n;return 1===e&&(o=0),tV({grid:{enabled:!0},opposite:null==(n=null!=(r=null==(i=eu.xAxis)?void 0:i.opposite)?r:t.opposite)||n,linkedTo:o},t,{type:"datetime"})}),s.yAxis=t3(e.yAxis||{}).map(function(t){return tV({grid:{enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)}),t.prototype.init.call(this,s,i)},e}(oT);(L=r3||(r3={})).ganttChart=function(t,e,i){var o=new L(t,e,i);return o.promise||o};var r6=r3,r9=tc.isTouchDevice,r4=[];function r8(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function r7(){var t,e,i,o,r=this.legend,n=this.navigator;if(n){e=r&&r.options,i=n.xAxis,o=n.yAxis;var s=n.scrollbarHeight,a=n.scrollButtonSize;this.inverted?(n.left=n.opposite?this.chartWidth-s-n.height:this.spacing[3]+s,n.top=this.plotTop+a):(n.left=tJ(i.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHeight-n.height-s-((null==(t=this.scrollbar)?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?r.legendHeight+tJ(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),i&&o&&(this.inverted?i.options.left=o.options.left=n.left:i.options.top=o.options.top=n.top,i.setAxisSize(),o.setAxisSize())}}function nt(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new ti(this),tJ(t.redraw,!0)&&this.redraw(t.animation))}function ne(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new ti(this))}function ni(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!r9&&"x"===this.zooming.type||r9&&"x"===this.zooming.pinchType))return!1}function no(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function nr(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(tV(!0,this.options.navigator,e),tV(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}var nn=function(t,e){if(t0(r4,t)){var i=t.prototype;ti=e,i.callbacks.push(no),tv(t,"afterAddSeries",r8),tv(t,"afterSetChartSize",r7),tv(t,"afterUpdate",nt),tv(t,"beforeRender",ne),tv(t,"beforeShowResetZoom",ni),tv(t,"update",nr)}},ns=tc.isTouchDevice;function na(){this.navigatorAxis||(this.navigatorAxis=new nh(this))}function nl(t){var e,i=this.chart,o=i.options,r=o.navigator,n=this.navigatorAxis,s=i.zooming.pinchType,a=o.rangeSelector,l=i.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==a?void 0:a.enabled))){if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||ns&&"xy"===s)&&this.options.range){var h=n.previousZoom;tS(t.min)?n.previousZoom=[this.min,this.max]:h&&(t.min=h[0],t.max=h[1],n.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}var nh=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),tv(t,"init",na),tv(t,"setExtremes",nl))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,o){var r=this.axis,n=(r.pointRange||0)/2,s=tJ(i,r.translate(t,!0,!r.horiz)),a=tJ(o,r.translate(e,!0,!r.horiz));return tS(i)||(s=tM(s+n)),tS(o)||(a=tM(a-n)),tF(s)&&tF(a)||(s=a=void 0),{min:s,max:a}},t}(),nd={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"var(--highcharts-neutral-color-5)",borderColor:"var(--highcharts-neutral-color-40)"},maskFill:"color-mix(var(--highcharts-highlight-color-60) 30%, transparent)",outlineColor:"var(--highcharts-neutral-color-40)",outlineWidth:1,series:{type:void 0===oe.seriesTypes.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"var(--highcharts-neutral-color-10)",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},nc=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},np={"navigator-handle":function(t,e,i,o,r){void 0===r&&(r={});var n=r.width?r.width/2:i,s=t1(r.borderRadius||0,Math.min(2*n,o));return nc([["M",-1.5,(o=r.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],e6.rect(-n-1,.5,2*n+1,o,{r:s}),!0)}},nu=tc.composed,nf={setFixedRange:function(t){var e=this.xAxis[0];tS(e.dataMax)&&tS(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}}.setFixedRange;function ng(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var nv=function(t,e,i){nh.compose(e),t0(nu,"Navigator")&&(t.prototype.setFixedRange=nf,tL(iu.prototype.symbols,np),tL(eu,{navigator:nd}),tv(i,"afterUpdate",ng))},nm=tc.composed;!function(t){var e;function i(t){var e,i,o,r,n,s,a,l,h=tJ(null==(e=t.options)?void 0:e.min,t.min),d=tJ(null==(i=t.options)?void 0:i.max,t.max);return{axisMin:h,axisMax:d,scrollMin:tS(t.dataMin)?Math.min(h,null!=(o=t.min)?o:1/0,t.dataMin,null!=(r=t.threshold)?r:1/0):h,scrollMax:null!=(s=null==(n=t.treeGrid)?void 0:n.adjustedMax)?s:tS(t.dataMax)?Math.max(d,null!=(a=t.max)?a:-1/0,t.dataMax,null!=(l=t.threshold)?l:-1/0):d}}function o(){var t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function r(){var t,o,r=this;(null==(o=null==(t=r.options)?void 0:t.scrollbar)?void 0:o.enabled)&&(r.options.scrollbar.vertical=!r.horiz,r.options.startOnTick=r.options.endOnTick=!1,r.scrollbar=new e(r.chart.renderer,r.options.scrollbar,r.chart),tv(r.scrollbar,"changed",function(t){var e,o,n=i(r),s=n.axisMin,a=n.axisMax,l=n.scrollMin,h=n.scrollMax,d=r.toPixels(l),c=r.toPixels(h)-d;if(tS(s)&&tS(a))if(r.horiz&&!r.reversed||!r.horiz&&r.reversed?(e=Math.min(h,r.toValue(d+c*this.to)),o=Math.max(l,r.toValue(d+c*this.from))):(e=Math.min(h,r.toValue(d+c*(1-this.from))),o=Math.max(l,r.toValue(d+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var p="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;r.setExtremes(tM(o),tM(e),!0,p,t)}else this.setRange(this.from,this.to)}))}function n(){var t,e,o,r=i(this),n=r.scrollMin,s=r.scrollMax,a=this.scrollbar,l=(this.axisTitleMargin||0)+(this.titleOffset||0),h=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(a&&h){if(this.horiz)this.opposite||(h[1]+=l),a.position(this.left,this.top+this.height+2+h[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(h[1]+=d),t=1;else{this.opposite&&(h[0]+=l);var c=void 0;c=a.options.opposite?this.left+this.width+2+h[0]-(this.opposite?0:d):this.opposite?0:d,a.position(c,this.top,this.width,this.height),this.opposite&&(h[0]+=d),t=0}if(h[t]+=a.size+(a.options.margin||0),isNaN(n)||isNaN(s)||!tS(this.min)||!tS(this.max)||tS(this.dataMin)&&this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){var p=this.pointRange/(this.dataMax+1);e=p*this.min,o=p*(this.max+1),a.setRange(e,o)}else e=(this.toPixels(this.min)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),o=(this.toPixels(this.max)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,o):a.setRange(1-o,1-e)}}t.compose=function(t,i){t0(nm,"Axis.Scrollbar")&&(e=i,tv(t,"afterGetOffset",o),tv(t,"afterInit",r),tv(t,"afterRender",n))}}(to||(to={}));var ny=to,nx={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"var(--highcharts-neutral-color-20)",barBorderWidth:0,barBorderColor:"var(--highcharts-neutral-color-20)",buttonArrowColor:"var(--highcharts-neutral-color-80)",buttonBackgroundColor:"var(--highcharts-neutral-color-10)",buttonBorderColor:"var(--highcharts-neutral-color-20)",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"var(--highcharts-neutral-color-20)",trackBorderRadius:5,trackBorderWidth:1},nb=tc.composed,nM=function(){function t(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}return t.compose=function(e){ny.compose(e,t),t0(nb,"Scrollbar")&&tL(eu,{scrollbar:nx})},t.swapXY=function(t,e){return e&&t.forEach(function(t){for(var e,i=t.length,o=0;o<i;o+=2)"number"==typeof(e=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=e)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,o=this.track.element,r=this.mouseDownHandler.bind(this),n=this.mouseMoveHandler.bind(this),s=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[o,"click",this.trackClick.bind(this)],[i,"mousedown",r],[i.ownerDocument,"mousemove",n],[i.ownerDocument,"mouseup",s],[i,"touchstart",r],[i.ownerDocument,"touchmove",n],[i.ownerDocument,"touchend",s]];a.forEach(function(t){tv.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*tJ(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=tM(this.to-this.from)*tJ(this.options.step,.2);this.updatePosition(tM(this.from-e),tM(this.to-e)),tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,tT(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,r=this.options,n=this.size,s=i.g().add(this.group);if(o.push(s),r.buttonsEnabled){var a=i.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:n,height:n,r:r.buttonBorderRadius},a.strokeWidth()));var l=i.path(t.swapXY([["M",n/2+(e?-1:1),n/2-3],["L",n/2+(e?-1:1),n/2+3],["L",n/2+(e?2:-2),n/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]);this.chart.styledMode||l.attr({fill:r.buttonArrowColor})}},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=tV(nx,eu.scrollbar,e),this.options.margin=tJ(this.options.margin,10),this.chart=i,this.size=tJ(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var e,i=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,o=this.cursorToScrollbarPosition(i);this.chartX=o.chartX,this.chartY=o.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e,i,o=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,r=this.options.vertical?"chartY":"chartX",n=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(i=this.cursorToScrollbarPosition(o)[r]-this[r],this.hasDragged=!0,this.updatePosition(n[0]+i,n[1]+i),this.hasDragged&&tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,o){var r=this.options,n=r.buttonsEnabled,s=r.margin,a=void 0===s?0:s,l=r.vertical,h=this.rendered?"animate":"attr",d=o,c=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=d,this.yOffset=c,l?(this.width=this.yOffset=i=c=this.size,this.xOffset=d=0,this.yOffset=c=n?this.size:0,this.barWidth=o-(n?2*i:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=d=n?this.size:0,this.barWidth=i-(n?2*o:0),this.y=this.y+a),this.group[h]({translateX:t,translateY:this.y}),this.track[h]({width:i,height:o}),this.scrollbarButtons[1][h]({translateX:l?0:i-d,translateY:l?o-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){t5.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,r=this.chart.styledMode,n=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=n,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:i.trackBorderRadius||0,height:o,width:o}).add(n),r||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tw(0,s),y:-tw(0,s)}),this.scrollbarGroup=e.g().add(n),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:o-s,width:o-s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-tw(0,this.scrollbarStrokeWidth),-tw(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,o,r=this.options,n=r.vertical,s=r.minWidth,a=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(tS(a)){var h=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=tM(h-i),o<s&&(i=(a-s+o)*t,o=s);var d=Math.floor(i+this.xOffset+this.yOffset),c=o/2-.5;this.from=t,this.to=e,n?(this.scrollbarGroup[l]({translateY:d}),this.scrollbar[l]({height:o}),this.scrollbarRifles[l]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:d}),this.scrollbar[l]({width:o}),this.scrollbarRifles[l]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return tJ(this.options.liveRedraw,tc.svg&&!tc.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!tS(t)},t.prototype.trackClick=function(t){var e,i=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,o=this.to-this.from,r=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&i.chartY>r||!this.options.vertical&&i.chartX>n?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tV(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=tM(1-tM(e-t)),e=1),t<0&&(e=tM(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=nx,t}(),nk=function(){return(nk=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},nw=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},nA=tc.isTouchDevice;function nS(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=[].filter.call(e,tF);if(o.length)return Math[t].apply(0,o)}var nT=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(e,i,o){nn(e,t),nv(e,i,o)},t.prototype.drawHandle=function(t,e,i,o){var r=this.navigatorOptions.handles.height;this.handles[e][o](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},t.prototype.drawOutline=function(t,e,i,o){var r,n,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),l=a/2,h=a%2/2,d=this.scrollButtonSize,c=this.size,p=this.top,u=this.height,f=p-l,g=p+u,v=this.left;i?(r=p+e+h,e=p+t+h,n=[["M",v+u,p-d-h],["L",v+u,r],["L",v,r],["M",v,e],["L",v+u,e],["L",v+u,p+c+d]],s&&n.push(["M",v+u,r-l],["L",v+u,e+l])):(v-=d,t+=v+d-h,e+=v+d-h,n=[["M",v,f],["L",t,f],["L",t,g],["M",e,g],["L",e,f],["L",v+c+2*d,f]],s&&n.push(["M",t-l,f],["L",e+l,f])),this.outline[o]({d:n})},t.prototype.drawMasks=function(t,e,i,o){var r,n,s,a,l=this.left,h=this.top,d=this.height;i?(s=[l,l,l],a=[h,h+t,h+e],n=[d,d,d],r=[t,e-t,this.size-e]):(s=[l,l+t,l+e],a=[h,h,h],n=[t,e-t,this.size-e],r=[d,d,d]),this.shades.forEach(function(t,e){t[o]({x:s[e],y:a[e],width:n[e],height:r[e]})})},t.prototype.renderElements=function(){var t,e,i,o=this,r=o.navigatorOptions,n=r.maskInside,s=o.chart,a=s.inverted,l=s.renderer,h={cursor:a?"ns-resize":"ew-resize"},d=null!=(t=o.navigatorGroup)?t:o.navigatorGroup=l.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!n,n,!n].forEach(function(t,e){var i,n=null!=(i=o.shades[e])?i:o.shades[e]=l.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(d);s.styledMode||(n.attr({fill:t?r.maskFill:"rgba(0,0,0,0)"}),1===e&&n.css(h))}),o.outline||(o.outline=l.path().addClass("highcharts-navigator-outline").add(d)),s.styledMode||o.outline.attr({"stroke-width":r.outlineWidth,stroke:r.outlineColor}),null==(e=r.handles)?void 0:e.enabled){var c=!1,p=r.handles,u=p.height,f=p.width;[0,1].forEach(function(t){var e,i,r=p.symbols[t];(c=c||(null==(e=o.handles[t])?void 0:e.symbolName)!==r)&&(null==(i=o.handles[t])||i.destroy(),o.handles[t]=l.symbol(r,-f/2-1,0,f,u,p),o.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d)),s.inverted&&o.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-f/2),rotationOriginY:(u+f)/2}),s.styledMode||o.handles[t].attr({fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.lineWidth,width:p.width,height:p.height,x:-f/2-1,y:0}).css(h)}),c&&(null==(i=o.partsEventsToUnbind)||i.forEach(function(t){t()}),o.partsEventsToUnbind=nw(nw([],o.getPartsEvents("mousedown"),!0),o.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,e){var i,o,r,n,s=this;void 0===e&&(e=!1);var a=this.chart,l=a.options.chart.inverted!==(null==(r=a.scrollbar)?void 0:r.options.vertical);if(tV(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),tS(t.enabled)||l)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(a);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t5(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(tv(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(n=t.height)?n:this.height;var h=this.getXAxisOffsets();this.xAxis.update(nk(nk({},t.xAxis),((i={offsets:h})[a.inverted?"width":"height"]=this.height,i[a.inverted?"height":"width"]=void 0,i)),!1),this.yAxis.update(nk(nk({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}e&&a.redraw()},t.prototype.render=function(t,e,i,o){var r,n,s,a,l,h,d=this.chart,c=this.xAxis,p=c.pointRange||0,u=c.navigatorAxis.fake?d.xAxis[0]:c,f=this.navigatorEnabled,g=this.rendered,v=d.inverted,m=d.xAxis[0].minRange,y=d.xAxis[0].options.maxRange,x=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||tS(i)){if(this.isDirty&&this.renderElements(),t=tM(t-p/2),e=tM(e+p/2),!tF(t)||!tF(e))if(!g)return;else i=0,o=tJ(c.width,u.width);this.left=tJ(c.left,d.plotLeft+x+(v?d.plotWidth:0));var M=this.size=l=tJ(c.len,(v?d.plotHeight:d.plotWidth)-2*x);n=v?b:l+2*x,i=tJ(i,c.toPixels(t,!0)),o=tJ(o,c.toPixels(e,!0)),tF(i)&&Math.abs(i)!==1/0||(i=0,o=n);var k=c.toValue(i,!0),w=c.toValue(o,!0),A=Math.abs(tM(w-k));tS(m)&&A<m?this.grabbedLeft?i=c.toPixels(w-m-p,!0):this.grabbedRight&&(o=c.toPixels(k+m+p,!0)):tS(y)&&tM(A-p)>y&&(this.grabbedLeft?i=c.toPixels(w-y-p,!0):this.grabbedRight&&(o=c.toPixels(k+y+p,!0))),this.zoomedMax=tb(Math.max(i,o),0,M),this.zoomedMin=tb(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);var S=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),h=g&&!this.hasDragged?"animate":"attr",this.drawMasks(S,M,v,h),this.drawOutline(S,M,v,h),(null==(r=this.navigatorOptions.handles)?void 0:r.enabled)&&(this.drawHandle(S,0,v,h),this.drawHandle(M,1,v,h))),this.scrollbar&&(v?(a=this.top-x,s=this.left-b+(f||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),b=l+2*x):(a=this.top+(f?this.height:-b),s=this.left-x),this.scrollbar.position(s,a,n,b),this.scrollbar.setRange(this.zoomedMin/(l||1),this.zoomedMax/(l||1))),this.rendered=!0,this.isDirty=!1,tB(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,r=o.container,n=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},n.push(tv(o.renderTo,"mousemove",t),tv(r.ownerDocument,"mouseup",e),tv(o.renderTo,"touchmove",t),tv(r.ownerDocument,"touchend",e)),i.eventsToUnbind=n,i.series&&i.series[0]&&n.push(tv(i.series[0].xAxis,"foundExtremes",function(){var t;null==(t=o.navigator)||t.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach(function(o){e[o].forEach(function(r,n){i.push(tv(r.element,t,function(t){e[""+o+"Mousedown"](t,n)}))})}),i},t.prototype.shadesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o,r,n,s,a,l,h=this.chart,d=this.xAxis,c=this.zoomedMin,p=this.size,u=this.range,f=this.left,g=t.chartX;h.inverted&&(g=t.chartY,f=this.top),1===e?(this.grabbedCenter=g,this.fixedWidth=u,this.dragOffset=g-c):(l=g-f-u/2,0===e?l=Math.max(0,l):2===e&&l+u>=p&&(l=p-u,this.reversedExtremes?(l-=u,s=null==(o=this.getUnionExtremes())?void 0:o.dataMin):n=null==(r=this.getUnionExtremes())?void 0:r.dataMax),l!==c&&(this.fixedWidth=u,tS((a=d.navigatorAxis.toFixedRange(l,l+u,s,n)).min)&&tB(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o=this.chart,r=o.xAxis[0],n=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=n?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=n?r.max:r.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var e,i,o,r=this,n=r.chart,s=r.navigatorSize,a=r.range,l=r.dragOffset,h=n.inverted,d=r.left;(!t.touches||0!==t.touches[0].pageX)&&(o=(t=(null==(e=n.pointer)?void 0:e.normalize(t))||t).chartX,h&&(d=r.top,o=t.chartY),r.grabbedLeft?(r.hasDragged=!0,r.render(0,0,o-d,r.otherHandlePos)):r.grabbedRight?(r.hasDragged=!0,r.render(0,0,r.otherHandlePos,o-d)):r.grabbedCenter&&l&&(r.hasDragged=!0,o<l?o=l:o>s+l-a&&(o=s+l-a),r.render(0,0,o-l,o-l+a)),r.hasDragged&&tJ(null==(i=r.scrollbarOptions)?void 0:i.liveRedraw,!nA&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){r.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var e,i,o,r,n,s,a,l=this.chart,h=this.xAxis,d=this.scrollbar,c=t.DOMEvent||t,p=l.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(n=this.reversedExtremes?r.dataMax:r.dataMin),tS((a=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,n,s)).min)&&tB(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&tF(this.zoomedMin)&&tF(this.zoomedMax)&&(o=Math.round(this.zoomedMin),i=Math.round(this.zoomedMax),this.shades&&this.drawMasks(o,i,p,u),this.outline&&this.drawOutline(o,i,p,u),(null==(e=this.navigatorOptions.handles)?void 0:e.enabled)&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(o,0,p,u),this.drawHandle(i,1,p,u)))},t.prototype.removeEvents=function(){var t;null==(t=this.eventsToUnbind)||t.forEach(function(t){t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){t5(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&t5(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var e,i,o,r,n=t.options,s=n.navigator||{},a=s.enabled,l=n.scrollbar||{},h=l.enabled,d=a&&s.height||0,c=h&&l.height||0,p=l.buttonsEnabled&&c||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=d,this.scrollbarHeight=c,this.scrollButtonSize=p,this.scrollbarEnabled=h,this.navigatorEnabled=!!a,this.navigatorOptions=s,this.scrollbarOptions=l,this.setOpposite();var u=this,f=u.baseSeries,g=t.xAxis.length,v=t.yAxis.length,m=f&&f[0]&&f[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,u.navigatorEnabled){var y=this.getXAxisOffsets();u.xAxis=new iL(t,tV({breaks:m.options.breaks,ordinal:m.options.ordinal,overscroll:m.options.overscroll},s.xAxis,{type:"datetime",yAxis:null==(e=s.yAxis)?void 0:e.id,index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:m.options.ordinal?0:m.options.minPadding,maxPadding:m.options.ordinal?0:m.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:y,width:d}:{offsets:y,height:d}),"xAxis"),u.yAxis=new iL(t,tV(s.yAxis,{alignTicks:!1,offset:0,index:v,isInternal:!0,reversed:tJ(s.yAxis&&s.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:d}:{height:d}),"yAxis"),u.xAxis.clippable=!1,u.yAxis.clippable=!1,f||(null==(i=s.series)?void 0:i.data)||(null==(o=s.series)?void 0:o.dataTable)?u.updateNavigatorSeries(!1):0===t.series.length&&(u.unbindRedraw=tv(t,"beforeRedraw",function(){var e;t.series.length>0&&!u.series&&(u.setBaseSeries(),null==(e=u.unbindRedraw)||e.call(u))})),u.reversedExtremes=t.inverted&&!u.xAxis.reversed||!t.inverted&&u.xAxis.reversed,u.renderElements(),u.addMouseEvents()}else u.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){var o=t.xAxis[0],r=o.getExtremes(),n=o.len-2*p,s=nS("min",o.options.min,r.dataMin),a=nS("max",o.options.max,r.dataMax)-s;return i?e*a/n+s:n*(e-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},u.xAxis.navigatorAxis.axis=u.xAxis,u.xAxis.navigatorAxis.toFixedRange=nh.prototype.toFixedRange.bind(u.xAxis.navigatorAxis);if(null==(r=t.options.scrollbar)?void 0:r.enabled){var x=tV(t.options.scrollbar,{vertical:t.inverted});tF(x.margin)||(x.margin=t.inverted?-3:3),t.scrollbar=u.scrollbar=new nM(t.renderer,x,t),tv(u.scrollbar,"changed",function(t){var e,i=u.size,o=i*this.to,r=i*this.from;u.hasDragged=null==(e=u.scrollbar)?void 0:e.hasDragged,u.render(0,0,r,o),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){u.onMouseUp(t)})})}u.addBaseSeriesEvents(),u.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=tJ(t.opposite,!!(!e&&i.inverted))},t.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.chart.time,r=this.xAxis,n=r.options,s=i.options;return t&&null===i.dataMin||(e={dataMin:tJ(o.parse(null==n?void 0:n.min),nS("min",o.parse(s.min),i.dataMin,r.dataMin,r.min)),dataMax:tJ(o.parse(null==n?void 0:n.max),nS("max",o.parse(s.max),i.dataMax,r.dataMax,r.max))}),e},t.prototype.setBaseSeries=function(t,e){var i,o=this.chart,r=this.baseSeries=[];t=t||(null==(i=o.options.navigator)?void 0:i.baseSeries)||(o.series.length?tW(o.series,function(t){return!t.options.isInternal}).index:0),(o.series||[]).forEach(function(e,i){!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&r.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},t.prototype.updateNavigatorSeries=function(t,e){var i,o,r,n,s,a=this,l=a.chart,h=a.baseSeries,d={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(i=this.navigatorOptions.xAxis)?void 0:i.id,yAxis:null==(o=this.navigatorOptions.yAxis)?void 0:o.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=a.series=(a.series||[]).filter(function(t){var e=t.baseSeries;return!(e&&0>h.indexOf(e))||(e&&(t5(e,"updatedData",a.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;if(h&&h.length&&h.forEach(function(t){var i,o,u=t.navigatorSeries,f=tL({color:t.color,visible:t.visible},tj(p)?eu.navigator.series:p);if(!u||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+h.length,s=(r=t.options||{}).navigatorOptions||{},f.dataLabels=t3(f.dataLabels),(n=tV(r,d,f,s)).pointRange=tJ(f.pointRange,s.pointRange,null==(i=eu.plotOptions[n.type||"line"])?void 0:i.pointRange);var g=s.data||f.data,v=s.dataTable||f.dataTable;a.hasNavigatorData=a.hasNavigatorData||!!g||!!v,n.data=g||(null==(o=r.data)?void 0:o.slice(0)),n.dataTable=v||r.dataTable,u&&u.options?u.update(n,e):(t.navigatorSeries=l.initSeries(n),tB(t.navigatorSeries,"afterUpdate"),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),((null==p?void 0:p.data)||(null==p?void 0:p.dataTable))&&!(h&&h.length)||tj(p)){var u=l.options.colors||[];a.hasNavigatorData=!1,(p=t3(p)).forEach(function(t,e){var i;d.name="Navigator "+(c.length+1),(n=tV(null==(i=eu.navigator)?void 0:i.series,{color:l.series[e]&&!l.series[e].options.isInternal&&l.series[e].color||u[e]||u[0]},d,t)).data=t.data,n.dataTable=t.dataTable,(n.data||n.dataTable)&&(a.hasNavigatorData=!0,c.push(l.initSeries(n)))})}t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(tv(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(o){o.eventsToUnbind.push(tv(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(tv(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(tv(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(tv(o,"remove",function(){i&&tO(i,o),this.navigatorSeries&&e.series&&(tO(e.series,this.navigatorSeries),tS(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,e){var i;return Math.min(t,null!=(i=e.getColumn("x")[0])?i:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,e,i,o=this.chart.navigator,r=this.getExtremes(),n=r.min,s=r.max,a=r.dataMin,l=r.dataMax,h=s-n,d=null==o?void 0:o.stickToMin,c=null==o?void 0:o.stickToMax,p=tJ(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],f=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(e=(i=a)+h),c&&(e=l+p,d||(i=Math.max(a,e-h,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(d||c)&&tF(i)&&(this.min=this.userMin=i,this.max=this.userMax=e)),o.stickToMin=o.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=tJ(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data||this.options.dataTable,!1,void 0,!1))},t.prototype.shouldStickToMin=function(t,e){var i=e.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,r=o.max,n=o.min,s=o.options.range;return!!(tF(r)&&tF(n))&&(s&&r-i>0?r-i<s:n<=i)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tv(this.chart,"redraw",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),tv(this.chart,"getMargins",function(){var t,e=this.navigator,i=e.opposite?"plotTop":"marginBottom";this.inverted&&(i=e.opposite?"marginRight":"plotLeft"),this[i]=(this[i]||0)+(e.navigatorEnabled||!this.inverted?e.height+((null==(t=this.scrollbar)?void 0:t.options.margin)||0)+e.scrollbarHeight:0)+(e.navigatorOptions.margin||0)}),tv(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(tO(this.chart.xAxis,this.xAxis),tO(this.chart.axes,this.xAxis)),this.yAxis&&(tO(this.chart.yAxis,this.yAxis),tO(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(e){t[e]&&t[e].destroy&&t[e].destroy(),t[e]=null}),[this.handles].forEach(function(t){tT(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),nC={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},nP={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"var(--highcharts-highlight-color-80)",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},nO=tc.composed,nL=[];function nE(){var t,e,i=this.range,o=i.type,r=this.max,n=this.chart.time,s=function(t,e){var i=n.toParts(t),r=i.slice();"year"===o?r[0]+=e:r[1]+=e;var s=n.makeTime.apply(n,r),a=n.toParts(s);return"month"===o&&i[1]===a[1]&&1===Math.abs(e)&&(r[0]=i[0],r[1]=i[1],r[2]=0),(s=n.makeTime.apply(n,r))-t};tF(i)?(t=r-i,e=i):i&&(t=r+s(r,-(i.count||1)),this.chart&&this.chart.setFixedRange(r-t));var a=tJ(this.dataMin,5e-324);return tF(t)||(t=a),t<=a&&(t=a,void 0===e&&(e=s(t,i.count)),this.newMax=Math.min(t+e,tJ(this.dataMax,Number.MAX_VALUE))),tF(r)?!tF(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function nB(){var t;null==(t=this.rangeSelector)||t.redrawElements()}function nI(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new tr(this))}function nD(){var t=this.rangeSelector;if(t){tF(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);var e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"===e&&(this.extraTopMargin=!0))}}function nz(){var t,e=this.rangeSelector;if(e){var i=this.xAxis[0].getExtremes(),o=this.legend,r=e&&e.options.verticalAlign;tF(i.min)&&e.render(i.min,i.max),(null==o?void 0:o.display)&&"top"===r&&r===o.options.verticalAlign&&(t=tV(this.spacingBox),"vertical"===o.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),o.group.placed=!1,o.align(t))}}function nR(){for(var t=0,e=nL.length;t<e;++t){var i=nL[t];if(i[0]===this){i[1].forEach(function(t){return t()}),nL.splice(t,1);return}}}function nN(){var t,e=this.rangeSelector;if(null==(t=null==e?void 0:e.options)?void 0:t.enabled){var i=this.xAxis[0].getExtremes(),o=i.min,r=i.max;tF(o)&&e.inputGroup&&e.inputGroup.getBBox().width<20&&e.render(o,r);var n=e.getHeight(),s=e.options.verticalAlign;e.options.floating||("bottom"===s?this.marginBottom+=n:"middle"!==s&&(this.plotTop+=n))}}function nW(t){var e=t.options.rangeSelector,i=this.extraBottomMargin,o=this.extraTopMargin,r=this.rangeSelector;if(e&&e.enabled&&!tS(r)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=r=new tr(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,r){var n=e&&e.verticalAlign||r.options&&r.options.verticalAlign;r.options.floating||("bottom"===n?this.extraBottomMargin=!0:"middle"!==n&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==i||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}var nG=function(t,e,i){if(tr=i,t0(nO,"RangeSelector")){var o=e.prototype;t.prototype.minFromRange=nE,tv(e,"afterGetContainer",nI),tv(e,"beforeRender",nD),tv(e,"destroy",nR),tv(e,"getMargins",nN),tv(e,"redraw",nz),tv(e,"update",nW),tv(e,"beforeRedraw",nB),o.callbacks.push(nz),tL(eu,{rangeSelector:nP}),tL(eu.lang,nC)}},nH=eG.format;function nX(t){var e=function(e){return new RegExp("%[[a-zA-Z]*".concat(e)).test(t)};if(tY(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";var i=tY(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,o=tY(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&o?"datetime-local":i?"date":o?"time":"text"}var nF=function(){function t(t){var e=this;this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=function(){var t=0;return e.buttons.forEach(function(e){var i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(t)}return t.compose=function(e,i){nG(e,i,t)},t.prototype.clickButton=function(t,e){var i,o,r,n,s,a=this.chart,l=this.buttonOptions[t],h=a.xAxis[0],d=a.scroller&&a.scroller.getUnionExtremes()||h||{},c=l.type,p=l.dataGrouping,u=d.dataMin,f=d.dataMax,g=tF(null==h?void 0:h.max)?Math.round(Math.min(h.max,null!=f?f:h.max)):void 0,v=l._range,m=!0;if(null!==u&&null!==f){if(this.setSelected(t),p&&(this.forcedDataGrouping=!0,iL.prototype.setDataGrouping.call(h||{chart:this.chart},p,!1),this.frozenStates=l.preserveDataGrouping),"month"===c||"year"===c)h?(n={range:l,max:g,chart:a,dataMin:u,dataMax:f},i=h.minFromRange.call(n),tF(n.newMax)&&(g=n.newMax),m=!1):v=l;else if(v)tF(g)&&(g=Math.min((i=Math.max(g-v,u))+v,f),m=!1);else if("ytd"===c)if(h)!h.hasData()||tF(f)&&tF(u)||(u=Number.MAX_VALUE,f=-Number.MAX_VALUE,a.series.forEach(function(t){var e=t.getColumn("x");e.length&&(u=Math.min(e[0],u),f=Math.max(e[e.length-1],f))}),e=!1),tF(f)&&tF(u)&&(i=r=(s=this.getYTDExtremes(f,u)).min,g=s.max);else{this.deferredYTDClick=t;return}else"all"===c&&h&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),i=u,g=f);if(m&&l._offsetMin&&tS(i)&&(i+=l._offsetMin),l._offsetMax&&tS(g)&&(g+=l._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),h)(tF(i)||tF(g))&&(h.setExtremes(i,g,tJ(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:l}),a.setFixedRange(l._range));else{o=t3(a.options.xAxis||{})[0];var y=tv(a,"afterCreateAxes",function(){var t=a.xAxis[0];t.range=t.options.range=v,t.min=t.options.min=r});tv(a,"load",function(){var t=a.xAxis[0];a.setFixedRange(l._range),t.options.range=o.range,t.options.min=o.min,y()})}tB(this,"afterBtnClick")}},t.prototype.setSelected=function(t){this.selected=this.options.selected=t},t.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=t.options.lang,r=i.buttons,n=i.selected,s=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&tB(t,"blur"),i&&i.blur&&tB(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=r.map(function(t){return t.type&&o.rangeSelector&&(null!=t.text||(t.text=o.rangeSelector[""+t.type+"Text"]),null!=t.title||(t.title=o.rangeSelector[""+t.type+"Title"])),t.text=nH(t.text,{count:t.count||1}),t.title=nH(t.title,{count:t.count||1}),t}),this.eventsToUnbind=[],this.eventsToUnbind.push(tv(t.container,"mousedown",s)),this.eventsToUnbind.push(tv(t,"resize",s)),r.forEach(e.computeButtonRange),void 0!==n&&r[n]&&this.clickButton(n,!1),this.eventsToUnbind.push(tv(t,"load",function(){t.xAxis&&t.xAxis[0]&&tv(t.xAxis[0],"setExtremes",function(i){tF(this.max)&&tF(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()},t.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=this.dropdownLabel,r=e.xAxis[0],n=Math.round(r.max-r.min),s=!r.hasVisibleSeries,a=24*36e5,l=e.scroller&&e.scroller.getUnionExtremes()||r,h=l.dataMin,d=l.dataMax,c=t.getYTDExtremes(d,h),p=c.min,u=c.max,f=t.selected,g=t.options.allButtonsEnabled,v=Array(t.buttonOptions.length).fill(0),m=tF(f),y=t.buttons,x=!1,b=null;t.buttonOptions.forEach(function(e,i){var o,l=e._range,c=e.type,y=e.count||1,M=e._offsetMax-e._offsetMin,k=i===f,w=l>d-h,A=l<r.minRange,S=!1,T=l===n;if(k&&w&&(x=!0),r.isOrdinal&&(null==(o=r.ordinal)?void 0:o.positions)&&l&&n<l){var C=r.ordinal.positions;C[C.length-1]-C[0]>l&&(T=!0)}else("month"===c||"year"===c)&&n+36e5>=({month:28,year:365})[c]*a*y-M&&n-36e5<=({month:31,year:366})[c]*a*y+M?T=!0:"ytd"===c?(T=u-p+M===n,S=!k):"all"===c&&(T=r.max-r.min>=d-h);var P=!g&&!(x&&"all"===c)&&(w||A||s),O=x&&"all"===c||!S&&T||k&&t.frozenStates;P?v[i]=3:O&&(!m||i===f)&&(b=i)}),null!==b?(v[b]=2,t.setSelected(b),this.dropdown&&(this.dropdown.selectedIndex=b+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),o&&(o.setState(0),o.attr({text:(eu.lang.rangeSelectorZoom||"")+" ▾"})));for(var M=0;M<v.length;M++){var k=v[M],w=y[M];if(w.state!==k&&(w.setState(k),i)){i.options[M+1].disabled=3===k,2===k&&(o&&(o.setState(2),o.attr({text:t.buttonOptions[M].text+" ▾"})),i.selectedIndex=M+1);var A=o.getBBox();tA(i,{width:""+A.width+"px",height:""+A.height+"px"})}}},t.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=tJ(t.offsetMin,0),t._offsetMax=tJ(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},t.prototype.getInputValue=function(t){var e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===o.timezone,o):0},t.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,r="min"===t?this.minInput:this.maxInput,n="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",nX(i.inputDateFormat||"%e %b %Y"));var s=r.getAttribute("data-hc-time"),a=tS(s)?Number(s):void 0;if(tS(e)){var l=a;tS(l)&&r.setAttribute("data-hc-time-previous",l),r.setAttribute("data-hc-time",e),a=e}r.value=o.dateFormat(this.inputTypeFormats[r.type]||i.inputEditDateFormat,a),n&&n.attr({text:o.dateFormat(i.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(t,e,i){var o="min"===t?this.minInput:this.maxInput;if(o){var r=this.inputTypeFormats[o.type],n=this.chart.time;if(r){var s=n.dateFormat(r,e);o.min!==s&&(o.min=s);var a=n.dateFormat(r,i);o.max!==a&&(o.max=a)}}},t.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){var o="text"===i.type,r=this.inputGroup,n=r.translateX,s=void 0===n?0:n,a=r.translateY,l=void 0===a?0:a,h=e.x,d=void 0===h?0:h,c=e.width,p=void 0===c?0:c,u=e.height,f=void 0===u?0:u,g=this.options.inputBoxWidth;tA(i,{width:o?p+(g?-2:20)+"px":"auto",height:f-2+"px",border:"2px solid silver"}),o&&g?tA(i,{left:s+d+"px",top:l+"px"}):tA(i,{left:Math.min(Math.round(d+s-(i.offsetWidth-p)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:l-(i.offsetHeight-f)/2+"px"})}},t.prototype.hideInput=function(t){var e="min"===t?this.minInput:this.maxInput;e&&tA(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},t.prototype.defaultInputDateParser=function(t,e,i){return(null==i?void 0:i.parse(t))||0},t.prototype.drawInput=function(t){var e=this.chart,i=this.div,o=this.inputGroup,r=this,n=e.renderer.style||{},s=e.renderer,a=e.options.rangeSelector,l=eu.lang,h="min"===t;function d(t){var i,o=r.maxInput,n=r.minInput,s=e.xAxis[0],a=(null==(i=e.scroller)?void 0:i.getUnionExtremes())||s,l=a.dataMin,d=a.dataMax,c=e.xAxis[0].getExtremes()[t],p=r.getInputValue(t);tF(p)&&p!==c&&(h&&o&&tF(l)?p>Number(o.getAttribute("data-hc-time"))?p=void 0:p<l&&(p=l):n&&tF(d)&&(p<Number(n.getAttribute("data-hc-time"))?p=void 0:p>d&&(p=d)),void 0!==p&&s.setExtremes(h?p:s.min,h?s.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=l[h?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=s.label(c,0).addClass("highcharts-range-label").attr({padding:2*!!c,height:c?a.inputBoxHeight:0}).add(o),u=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(o);var f=tk("input",{name:t,className:"highcharts-range-selector"},void 0,i);f.setAttribute("type",nX(a.inputDateFormat||"%e %b %Y")),e.styledMode||(p.css(tV(n,a.labelStyle)),u.css(tV({color:"var(--highcharts-neutral-color-80)"},n,a.inputStyle)),tA(f,tL({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},a.inputStyle))),f.onfocus=function(){r.showInput(t)},f.onblur=function(){f===tc.doc.activeElement&&d(t),r.hideInput(t),r.setInputValue(t),f.blur()};var g=!1;return f.onchange=function(){g||(d(t),r.hideInput(t),f.blur())},f.onkeypress=function(e){13===e.keyCode&&d(t)},f.onkeydown=function(e){g=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},f.onkeyup=function(){g=!1},{dateBox:u,input:f,label:p}},t.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}},t.prototype.getYTDExtremes=function(t,e){var i=this.chart.time,o=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(o,0))}},t.prototype.createElements=function(){var t,e=this.chart,i=e.renderer,o=e.container,r=e.options,n=r.rangeSelector,s=n.inputEnabled,a=tJ(null==(t=r.chart.style)?void 0:t.zIndex,0)+1;!1!==n.enabled&&(this.group=i.g("range-selector-group").attr({zIndex:7}).add(),this.div=tk("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),s&&this.createInputs())},t.prototype.createInputs=function(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);var t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;var e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input},t.prototype.render=function(t,e){if(!1!==this.options.enabled){var i,o,r=this.chart,n=r.options.rangeSelector;if(n.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(null==(i=this.maxLabel)||i.css(n.labelStyle),null==(o=this.minLabel)||o.css(n.labelStyle));var s=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(tS(s.dataMin)&&tS(s.dataMax)){var a=r.xAxis[0].minRange||0;this.setInputExtremes("min",s.dataMin,Math.min(s.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(s.dataMin,this.getInputValue("min"))+a,s.dataMax)}if(this.inputGroup){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:l}),l+=e+n.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(n.labelStyle),this.alignElements(),this.updateButtonStates()}},t.prototype.renderButtons=function(){var t,e,i=this,o=this.chart,r=this.options,n=eu.lang,s=o.renderer,a=tV(r.buttonTheme),l=a&&a.states;delete a.width,delete a.states,this.buttonGroup=s.g("range-selector-buttons").add(this.group);var h=this.dropdown=tk("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),d=null==(t=o.userOptions.rangeSelector)?void 0:t.buttonTheme;this.dropdownLabel=s.button("",0,0,function(){},tV(a,{"stroke-width":tJ(a["stroke-width"],0),width:"auto",paddingLeft:tJ(r.buttonTheme.paddingLeft,null==d?void 0:d.padding,8),paddingRight:tJ(r.buttonTheme.paddingRight,null==d?void 0:d.padding,8)}),l&&l.hover,l&&l.select,l&&l.disabled).hide().add(this.group),tv(h,"touchstart",function(){h.style.fontSize="16px"});var c=tc.isMS?"mouseover":"mouseenter",p=tc.isMS?"mouseout":"mouseleave";tv(h,c,function(){tB(i.dropdownLabel.element,c)}),tv(h,p,function(){tB(i.dropdownLabel.element,p)}),tv(h,"change",function(){tB(i.buttons[h.selectedIndex-1].element,"click")}),this.zoomText=s.label(n.rangeSelectorZoom||"",0).attr({padding:r.buttonTheme.padding,height:r.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(r.labelStyle),null!=(e=r.buttonTheme)["stroke-width"]||(e["stroke-width"]=0)),tk("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,h),this.createButtons()},t.prototype.createButtons=function(){var t=this,e=tV(this.options.buttonTheme),i=e&&e.states,o=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach(function(e,r){t.createButton(e,r,o,i)})},t.prototype.createButton=function(t,e,i,o){var r,n=this,s=this.dropdown,a=this.buttons,l=this.chart,h=this.options,d=l.renderer,c=tV(h.buttonTheme);null==s||s.add(tk("option",{textContent:t.title||t.text}),e+2),a[e]=d.button(null!=(r=t.text)?r:"",0,0,function(i){var o,r=t.events&&t.events.click;r&&(o=r.call(t,i)),!1!==o&&n.clickButton(e),n.isActive=!0},c,o&&o.hover,o&&o.select,o&&o.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&a[e].attr("title",t.title)},t.prototype.alignElements=function(){var t,e=this,i=this.buttonGroup,o=this.buttons,r=this.chart,n=this.group,s=this.inputGroup,a=this.options,l=this.zoomText,h=r.options,d=h.exporting&&!1!==h.exporting.enabled&&h.navigation&&h.navigation.buttonOptions,c=a.buttonPosition,p=a.inputPosition,u=a.verticalAlign,f=function(t,i,o){return d&&e.titleCollision(r)&&"top"===u&&o&&i.y-t.getBBox().height-12<(d.y||0)+(d.height||0)+r.spacing[0]?-40:0},g=r.plotLeft;if(n&&c&&p){var v=c.x-r.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var m=0;l&&(m+=l.getBBox().width+5),o.forEach(function(t,e){m+=t.width||0,e!==o.length-1&&(m+=a.buttonSpacing)}),this.initialButtonGroupWidth=m}g-=r.spacing[3];var y=f(i,c,"right"===c.align||"right"===p.align);this.alignButtonGroup(y),(null==(t=this.buttonGroup)?void 0:t.translateY)&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),n.placed=i.placed=r.hasLoaded}var x=0;a.inputEnabled&&s&&(x=f(s,p,"right"===c.align||"right"===p.align),"left"===p.align?v=g:"right"===p.align&&(v=-Math.max(r.axisOffset[1],-x)),s.align({y:p.y,width:s.getBBox().width,align:p.align,x:p.x+v-2},!0,r.spacingBox),s.placed=r.hasLoaded),this.handleCollision(x),n.align({verticalAlign:u},!0,r.spacingBox);var b=n.alignAttr.translateY,M=n.getBBox().height+20,k=0;if("bottom"===u){var w=r.legend&&r.legend.options;k=b-(M=M+(w&&"bottom"===w.verticalAlign&&w.enabled&&!w.floating?r.legend.legendHeight+tJ(w.margin,10):0)-20)-(a.floating?0:a.y)-(r.titleOffset?r.titleOffset[2]:0)-10}"top"===u?(a.floating&&(k=0),r.titleOffset&&r.titleOffset[0]&&(k=r.titleOffset[0]),k+=r.margin[0]-r.spacing[0]||0):"middle"===u&&(p.y===c.y?k=b:(p.y||c.y)&&(p.y<0||c.y<0?k-=Math.min(p.y,c.y):k=b-M)),n.translate(a.x,a.y+Math.floor(k));var A=this.minInput,S=this.maxInput,T=this.dropdown;a.inputEnabled&&A&&S&&(A.style.marginTop=n.translateY+"px",S.style.marginTop=n.translateY+"px"),T&&(T.style.marginTop=n.translateY+"px")}},t.prototype.redrawElements=function(){var t,e,i,o,r,n,s,a=this.chart,l=this.options,h=l.inputBoxHeight,d=l.inputBoxBorderColor;if(null==(t=this.maxDateBox)||t.attr({height:h}),null==(e=this.minDateBox)||e.attr({height:h}),a.styledMode||(null==(i=this.maxDateBox)||i.attr({stroke:d}),null==(o=this.minDateBox)||o.attr({stroke:d})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;var c=null!=(r=this.options.buttons)?r:[],p=Math.min(c.length,this.buttonOptions.length),u=this.dropdown,f=tV(this.options.buttonTheme),g=f&&f.states,v=f.width||28;if(c.length<this.buttonOptions.length)for(var m=this.buttonOptions.length-1;m>=c.length;m--){var y=this.buttons.pop();null==y||y.destroy(),null==(n=this.dropdown)||n.options.remove(m+1)}for(var m=p-1;m>=0;m--){var x=c[m];this.buttons[m].destroy(),null==u||u.options.remove(m+1),this.createButton(x,m,v,g),this.computeButtonRange(x)}if(c.length>this.buttonOptions.length)for(var m=this.buttonOptions.length;m<c.length;m++)this.createButton(c[m],m,v,g),this.computeButtonRange(c[m]);this.buttonOptions=null!=(s=this.options.buttons)?s:[],tS(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}},t.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.options,r=this.buttonGroup,n=this.dropdown,s=this.dropdownLabel,a=o.buttonPosition,l=i.plotLeft-i.spacing[3],h=a.x-i.spacing[3],d=i.plotLeft;"right"===a.align?(h+=t-l,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(h-=l/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),n&&tA(n,{left:d+"px",top:(null==r?void 0:r.translateY)+"px"}),null==s||s.attr({x:d}),r&&r.align({y:a.y,width:tJ(e,this.initialButtonGroupWidth),align:a.align,x:h},!0,i.spacingBox)},t.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,r=e.hasLoaded?"animate":"attr",n=i.buttonPosition,s=e.plotLeft,a=s;o&&"hidden"!==o.visibility&&(o[r]({x:tJ(s+n.x,s)}),a+=n.x+o.getBBox().width+5);for(var l=0,h=this.buttonOptions.length;l<h;++l)"hidden"!==t[l].visibility?(t[l][r]({x:a}),a+=(t[l].width||0)+i.buttonSpacing):t[l][r]({x:s})},t.prototype.handleCollision=function(t){var e=this.chart,i=this.buttonGroup,o=this.inputGroup,r=this.initialButtonGroupWidth,n=this.options,s=n.buttonPosition,a=n.dropdown,l=n.inputPosition,h=function(){o&&i&&o.attr({translateX:o.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:o.alignAttr.translateY+i.getBBox().height+10})};o&&i?l.align===s.align?(h(),r>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):r-t+o.getBBox().width>e.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():h():this.expandButtons():i&&"responsive"===a&&(r>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)},t.prototype.collapseButtons=function(){var t=this.buttons,e=this.zoomText;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(function(t){t.hide()}),this.showDropdown())},t.prototype.expandButtons=function(){var t=this.buttons,e=this.zoomText;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(function(t){t.show()}),this.positionButtons())},t.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.dropdownLabel,i=this.dropdown;t&&i&&(e.show(),tA(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)},t.prototype.hideDropdown=function(){var t=this.dropdown;t&&(this.dropdownLabel.hide(),tA(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.inputPosition,o=t.buttonPosition,r=t.y,n=o.y,s=i.y,a=0;if(t.height)return t.height;this.alignElements(),a=e?e.getBBox(!0).height+13+r:0;var l=Math.min(s,n);return(s<0&&n<0||s>0&&n>0)&&(a+=Math.abs(l)),a},t.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},t.prototype.update=function(t,e){void 0===e&&(e=!0);var i=this.chart;if(tV(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),tS(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons||!!t.buttonTheme,e&&this.render()},t.prototype.destroy=function(){var e=this,i=e.minInput,o=e.maxInput;e.eventsToUnbind&&(e.eventsToUnbind.forEach(function(t){return t()}),e.eventsToUnbind=void 0),tT(e.buttons),i&&(i.onfocus=i.onblur=i.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),tK(e,function(i,o){i&&"chart"!==o&&(i instanceof eZ?i.destroy():i instanceof window.HTMLElement&&tC(i),delete e[o]),i!==t.prototype[o]&&(e[o]=null)},this),this.buttons=[]},t}();tL(nF.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});function nY(t,e){for(var i=[],o=0;o<t.length;o++){var r=t[o][1],n=t[o][2];if("number"==typeof r&&"number"==typeof n)if(0===o)i.push(["M",r,n]);else if(o===t.length-1)i.push(["L",r,n]);else if(e){var s=t[o-1],a=t[o+1];if(s&&a){var l=s[1],h=s[2],d=a[1],c=a[2];if("number"==typeof l&&"number"==typeof d&&"number"==typeof h&&"number"==typeof c&&l!==d&&h!==c){var p=l<d?1:-1,u=h<c?1:-1;i.push(["L",r-p*Math.min(Math.abs(r-l),e),n-u*Math.min(Math.abs(n-h),e)],["C",r,n,r,n,r+p*Math.min(Math.abs(r-d),e),n+u*Math.min(Math.abs(n-c),e)])}}}else i.push(["L",r,n])}return i}var nj=Math.min,n_=Math.max,nU=Math.abs;function nV(t,e,i){for(var o,r,n=e-1e-7,s=i||0,a=t.length-1;s<=a;)if((r=n-t[o=a+s>>1].xMin)>0)s=o+1;else{if(!(r<0))return o;a=o-1}return s>0?s-1:0}function nZ(t,e){for(var i,o=nV(t,e.x+1)+1;o--;)if(t[o].xMax>=e.x&&(i=t[o],e.x<=i.xMax&&e.x>=i.xMin&&e.y<=i.yMax&&e.y>=i.yMin))return o;return -1}function nK(t){var e=[];if(t.length){e.push(["M",t[0].start.x,t[0].start.y]);for(var i=0;i<t.length;++i)e.push(["L",t[i].end.x,t[i].end.y])}return e}function nq(t,e){t.yMin=n_(t.yMin,e.yMin),t.yMax=nj(t.yMax,e.yMax),t.xMin=n_(t.xMin,e.xMin),t.xMax=nj(t.xMax,e.xMax)}var n$=function(t,e,i){var o,r,n,s,a,l=[],h=i.chartObstacles,d=nZ(h,t),c=nZ(h,e),p=tJ(i.startDirectionX,nU(e.x-t.x)>nU(e.y-t.y))?"x":"y";function u(t,e,i,o,r){var n={x:t.x,y:t.y};return n[e]=i[o||e]+(r||0),n}function f(t,e,i){var o=nU(e[i]-t[i+"Min"])>nU(e[i]-t[i+"Max"]);return u(e,i,t,i+(o?"Max":"Min"),o?1:-1)}c>-1?(o={start:n=f(h[c],e,p),end:e},a=n):a=e,d>-1&&(n=f(r=h[d],t,p),l.push({start:t,end:n}),n[p]>=t[p]==n[p]>=a[p]&&(s=t[p="y"===p?"x":"y"]<e[p],l.push({start:n,end:u(n,p,r,p+(s?"Max":"Min"),s?1:-1)}),p="y"===p?"x":"y"));var g=l.length?l[l.length-1].end:t;n=u(g,p,a),l.push({start:g,end:n});var v=u(n,p="y"===p?"x":"y",a);return l.push({start:n,end:v}),o&&l.push(o),{path:nY(nK(l),i.radius),obstacles:l}};function nJ(t,e,i){var o,r,n,s,a,l,h,d=tJ(i.startDirectionX,nU(e.x-t.x)>nU(e.y-t.y)),c=d?"x":"y",p=[],u=i.obstacleMetrics,f=nj(t.x,e.x)-u.maxWidth-10,g=n_(t.x,e.x)+u.maxWidth+10,v=nj(t.y,e.y)-u.maxHeight-10,m=n_(t.y,e.y)+u.maxHeight+10,y=!1,x=i.chartObstacles,b=nV(x,g),M=nV(x,f);function k(t,e,i){var o,r,n,s,a=t.x<e.x?1:-1;t.x<e.x?(o=t,r=e):(o=e,r=t),t.y<e.y?(s=t,n=e):(s=e,n=t);for(var l=a<0?nj(nV(x,r.x),x.length-1):0;x[l]&&(a>0&&x[l].xMin<=r.x||a<0&&x[l].xMax>=o.x);){if(x[l].xMin<=r.x&&x[l].xMax>=o.x&&x[l].yMin<=n.y&&x[l].yMax>=s.y){if(i)return{y:t.y,x:t.x<e.x?x[l].xMin-1:x[l].xMax+1,obstacle:x[l]};return{x:t.x,y:t.y<e.y?x[l].yMin-1:x[l].yMax+1,obstacle:x[l]}}l+=a}return e}function w(t,e,i,o,r){var n=r.soft,s=r.hard,a=o?"x":"y",l={x:e.x,y:e.y},h={x:e.x,y:e.y},d=t[a+"Max"]>=n[a+"Max"],c=t[a+"Min"]<=n[a+"Min"],p=t[a+"Max"]>=s[a+"Max"],u=t[a+"Min"]<=s[a+"Min"],f=nU(t[a+"Min"]-e[a]),g=nU(t[a+"Max"]-e[a]),v=10>nU(f-g)?e[a]<i[a]:g<f;h[a]=t[a+"Min"],l[a]=t[a+"Max"];var m=k(e,h,o)[a]!==h[a],y=k(e,l,o)[a]!==l[a];return v=m?!y||v:!y&&v,v=c?!d||v:!d&&v,v=u?!p||v:!p&&v}for((b=nZ(x=x.slice(M,b+1),e))>-1&&(o=x[b],r=e,n=nj(o.xMax-r.x,r.x-o.xMin)<nj(o.yMax-r.y,r.y-o.yMin),s=w(o,r,t,n,{soft:i.hardBounds,hard:i.hardBounds}),h=n?{y:r.y,x:o[s?"xMax":"xMin"]+(s?1:-1)}:{x:r.x,y:o[s?"yMax":"yMin"]+(s?1:-1)},p.push({end:e,start:h}),e=h);(b=nZ(x,e))>-1;)l=e[c]-t[c]<0,(h={x:e.x,y:e.y})[c]=x[b][l?c+"Max":c+"Min"]+(l?1:-1),p.push({end:e,start:h}),e=h;return{path:nK(a=(a=function t(e,o,r){if(e.x===o.x&&e.y===o.y)return[];var n,s,a,l,h,d,c,p=r?"x":"y",u=i.obstacleOptions.margin,b={soft:{xMin:f,xMax:g,yMin:v,yMax:m},hard:i.hardBounds};return(h=nZ(x,e))>-1?(l=w(h=x[h],e,o,r,b),nq(h,i.hardBounds),c=r?{y:e.y,x:h[l?"xMax":"xMin"]+(l?1:-1)}:{x:e.x,y:h[l?"yMax":"yMin"]+(l?1:-1)},(d=nZ(x,c))>-1&&(nq(d=x[d],i.hardBounds),c[p]=l?n_(h[p+"Max"]-u+1,(d[p+"Min"]+h[p+"Max"])/2):nj(h[p+"Min"]+u-1,(d[p+"Max"]+h[p+"Min"])/2),e.x===c.x&&e.y===c.y?(y&&(c[p]=l?n_(h[p+"Max"],d[p+"Max"])+1:nj(h[p+"Min"],d[p+"Min"])-1),y=!y):y=!1),s=[{start:e,end:c}]):(n=k(e,{x:r?o.x:e.x,y:r?e.y:o.y},r),s=[{start:e,end:{x:n.x,y:n.y}}],n[r?"x":"y"]!==o[r?"x":"y"]&&(l=w(n.obstacle,n,o,!r,b),nq(n.obstacle,i.hardBounds),a={x:r?n.x:n.obstacle[l?"xMax":"xMin"]+(l?1:-1),y:r?n.obstacle[l?"yMax":"yMin"]+(l?1:-1):n.y},r=!r,s=s.concat(t({x:n.x,y:n.y},a,r)))),s=s.concat(t(s[s.length-1].end,o,!r))}(t,e,d)).concat(p.reverse())),obstacles:a}}n$.requiresObstacles=!0,nJ.requiresObstacles=!0;var nQ={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}};function n0(t){var e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};var i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}!function(t){function e(t){var e,i,o=n0(this);switch(t.align){case"right":e="xMax";break;case"left":e="xMin"}switch(t.verticalAlign){case"top":i="yMin";break;case"bottom":i="yMax"}return e=e?o[e]:(o.xMin+o.xMax)/2,i=i?o[i]:(o.yMin+o.yMax)/2,{x:e+(t.xOffset||0),y:i+(t.yOffset||0)}}function i(t,e){var i;return!tS(e)&&(i=n0(this))&&(e={x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2}),Math.atan2(e.y-t.y,t.x-e.x)}function o(t,e,i){for(var o=2*Math.PI,r=n0(this),n=r.xMax-r.xMin,s=r.yMax-r.yMin,a=Math.atan2(s,n),l=n/2,h=s/2,d=r.xMin+l,c=r.yMin+h,p={x:d,y:c},u=t,f=1,g=!1,v=1,m=1;u<-Math.PI;)u+=o;for(;u>Math.PI;)u-=o;return f=Math.tan(u),u>-a&&u<=a?(m=-1,g=!0):u>a&&u<=Math.PI-a?m=-1:u>Math.PI-a||u<=-(Math.PI-a)?(v=-1,g=!0):v=-1,g?(p.x+=v*l,p.y+=m*l*f):(p.x+=s/(2*f)*v,p.y+=m*h),i.x!==d&&(p.x=i.x),i.y!==c&&(p.y=i.y),{x:p.x+e*Math.cos(u),y:p.y-e*Math.sin(u)}}t.compose=function(t,r,n){var s=n.prototype;s.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,e){return e.options&&tV(!0,e.options.connectors=e.options.connectors||{},e.options.pathfinder),t||e.options&&e.options.pathfinder},!1))&&(tV(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),ee('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new r(this),this.pathfinder.update(!0))}),s.getMarkerVector=o,s.getPathfinderAnchorPoint=e,s.getRadiansToVector=i,eg(nQ))}}(tn||(tn={}));var n1=tn,n2=Math.max,n5=Math.min,n3=function(){function t(t){this.init(t)}return t.compose=function(e,i){n1.compose(e,t,i)},t.prototype.init=function(t){this.chart=t,this.connections=[],tv(t,"redraw",function(){this.pathfinder.update()})},t.prototype.update=function(t){var e=this.chart,i=this,o=i.connections;i.connections=[],e.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){var o,r,n=t.options;n&&n.dependency&&(n.connect=n.dependency);var s=(null==(o=t.options)?void 0:o.connect)?t3(t.options.connect):[];t.visible&&!1!==t.isInside&&s.forEach(function(o){var n="string"==typeof o?o:o.to;n&&(r=e.get(n)),r instanceof iU&&r.series.visible&&r.visible&&!1!==r.isInside&&i.connections.push(new r0(t,r,"string"==typeof o?{}:o))})})});for(var r=0,n=void 0,s=void 0,a=o.length,l=i.connections.length;r<a;++r){s=!1;var h=o[r];for(n=0;n<l;++n){var d=i.connections[n];if((h.options&&h.options.type)===(d.options&&d.options.type)&&h.fromPoint===d.fromPoint&&h.toPoint===d.toPoint){d.graphics=h.graphics,s=!0;break}}s||h.destroy()}delete this.chartObstacles,delete this.lineObstacles,i.renderConnections(t)},t.prototype.renderConnections=function(t){t?this.chart.series.forEach(function(t){var e=function(){var e=t.chart.pathfinder;(e&&e.connections||[]).forEach(function(e){e.fromPoint&&e.fromPoint.series===t&&e.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?e():t.pathfinderRemoveRenderEvent=tv(t,"afterAnimate",e)}):this.connections.forEach(function(t){t.render()})},t.prototype.getChartObstacles=function(t){for(var e,i=this.chart.series,o=tJ(t.algorithmMargin,0),r=[],n=0,s=i.length;n<s;++n)if(i[n].visible&&!i[n].options.isInternal)for(var a=0,l=i[n].points.length,h=void 0,d=void 0;a<l;++a)(d=i[n].points[a]).visible&&(h=function(t){var e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};var i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}(d))&&r.push({xMin:h.xMin-o,xMax:h.xMax+o,yMin:h.yMin-o,yMax:h.yMax+o});return r=r.sort(function(t,e){return t.xMin-e.xMin}),tS(t.algorithmMargin)||(e=t.algorithmMargin=function(t){for(var e,i=t.length,o=[],r=0;r<i;++r)for(var n=r+1;n<i;++n)(e=function t(e,i,o){var r=tJ(o,10),n=e.yMax+r>i.yMin-r&&e.yMin-r<i.yMax+r,s=e.xMax+r>i.xMin-r&&e.xMin-r<i.xMax+r,a=n?e.xMin>i.xMax?e.xMin-i.xMax:i.xMin-e.xMax:1/0,l=s?e.yMin>i.yMax?e.yMin-i.yMax:i.yMin-e.yMax:1/0;return s&&n?r?t(e,i,Math.floor(r/2)):1/0:n5(a,l)}(t[r],t[n]))<80&&o.push(e);return o.push(80),n2(Math.floor(o.sort(function(t,e){return t-e})[Math.floor(o.length/10)]/2-1),1)}(r),r.forEach(function(t){t.xMin-=e,t.xMax+=e,t.yMin-=e,t.yMax+=e})),r},t.prototype.getObstacleMetrics=function(t){for(var e,i,o=0,r=0,n=t.length;n--;)e=t[n].xMax-t[n].xMin,i=t[n].yMax-t[n].yMin,o<e&&(o=e),r<i&&(r=i);return{maxHeight:r,maxWidth:o}},t.prototype.getAlgorithmStartDirection=function(t){var e="left"!==t.align&&"right"!==t.align,i="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return e?!!i&&void 0:!!i||void 0},t}();n3.prototype.algorithms={fastAvoid:nJ,straight:function(t,e){return{path:[["M",t.x,t.y],["L",e.x,e.y]],obstacles:[{start:t,end:e}]}},simpleConnect:n$},tc.Pathfinder=tc.Pathfinder||n3,rZ(tc.SVGRenderer),tc.Pathfinder.compose(tc.Chart,tc.Point);var n6=tc.composed;function n9(t,e){if(t0(n6,"StaticScale")){var i=e.prototype;tv(t,"afterSetOptions",n4),i.adjustHeight=n8,tv(e,"render",i.adjustHeight)}}function n4(){var t,e=this.chart.userOptions.chart;!this.horiz&&tF(this.options.staticScale)&&(!(null==e?void 0:e.height)||(null==(t=e.scrollablePlotArea)?void 0:t.minHeight))&&(this.staticScale=this.options.staticScale)}function n8(){var t,e;if("adjustHeight"!==this.redrawTrigger){for(var i=0,o=this.axes||[];i<o.length;i++)!function(i){var o=i.chart,r=i.options.staticScale;if(i.staticScale&&r&&tS(i.min)&&tS(i.max)){var n=(null!=(e=null==(t=i.brokenAxis)?void 0:t.unitLength)?e:i.max+i.tickInterval-i.min)*r,s=(n=Math.max(n,r))-o.plotHeight;!o.scrollablePixelsY&&Math.abs(s)>=1&&(o.plotHeight=n,o.redrawTrigger="adjustHeight",o.setSize(void 0,o.chartHeight+s,!!o.initiatedScale&&void 0)),i.series.forEach(function(t){var e=t.sharedClipKey&&o.sharedClips[t.sharedClipKey];e&&e.attr(o.inverted?{width:o.plotHeight}:{height:o.plotHeight})})}}(o[i]);this.initiatedScale=!0}this.redrawTrigger=void 0}n9(tc.Axis,tc.Chart);var n7={colorByPoint:!0,dataLabels:{formatter:function(){var t=this.partialFill;if(tU(t)&&(t=t.amount),tF(t)&&t>0)return tM(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0},st=(E=function(t,e){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),se=function(t){function e(e,i,o){var r=t.call(this,e,i,o)||this;return r.y||(r.y=0),r}return st(e,t),e.getColorByCategory=function(t,e){var i=t.chart,o=t.options.colors||i.options.colors,r=o?o.length:i.options.chart.colorCount||1,n=(e.y||0)%r,s=null==o?void 0:o[n];return{colorIndex:n,color:s}},e.prototype.resolveColor=function(){var t=this.series;if(t.options.colorByPoint&&!this.options.color){var i=e.getColorByCategory(t,this);t.chart.styledMode||(this.color=i.color),(void 0===this.options.colorIndex||null===this.options.colorIndex)&&(this.colorIndex=i.colorIndex)}else this.color=this.options.color||t.color},e.prototype.applyOptions=function(e,i){var o;return t.prototype.applyOptions.call(this,e,i),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!(null==(o=this.isValid)?void 0:o.call(this)),this.formatPrefix=this.isNull?"null":"point",this},e.prototype.setState=function(){t.prototype.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())},e.prototype.isValid=function(){return"number"==typeof this.x&&"number"==typeof this.x2},e}(oe.seriesTypes.column.prototype.pointClass);tL(se.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});var si=(B=function(t,e){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),so=tc.composed,sr=tc.noop,sn=ex.parse,ss=oe.seriesTypes.column;function sa(){var t,e,i=this.chart.time;if(this.isXAxis){t=tJ(this.dataMax,-Number.MAX_VALUE);for(var o=0,r=this.series;o<r.length;o++)for(var n=r[o],s=n.dataTable.getColumn("x2",!0)||n.dataTable.getColumn("end",!0)||[],a=0;a<s.length;a++){var l=s[a];"string"==typeof l&&(l=i.parse(l)),tF(l)&&l>t&&(t=l,e=!0)}e&&(this.dataMax=t)}}var sl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return si(e,t),e.compose=function(t){t0(so,"Series.XRange")&&tv(t,"afterGetSeriesExtremes",sa)},e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},e.prototype.getColumnMetrics=function(){var e=this,i=function(){for(var t=0,i=e.chart.series;t<i.length;t++){var o=i[t],r=o.xAxis;o.xAxis=o.yAxis,o.yAxis=r}};i();var o=t.prototype.getColumnMetrics.call(this);return i(),o},e.prototype.cropData=function(e,i,o){var r=e.getColumn("x")||[],n=e.getColumn("x2");e.setColumn("x",n,void 0,{silent:!0});var s=t.prototype.cropData.call(this,e,i,o);return e.setColumn("x",r.slice(s.start,s.end),void 0,{silent:!0}),s},e.prototype.findPointIndex=function(t){var e,i=this.cropStart,o=this.points,r=t.id;if(r){var n=tW(o,function(t){return t.id===r});e=n?n.index:void 0}if(void 0===e){var n=tW(o,function(e){return e.x===t.x&&e.x2===t.x2&&!e.touched});e=n?n.index:void 0}return this.cropped&&tF(e)&&tF(i)&&e>=i&&(e-=i),e},e.prototype.alignDataLabel=function(e){var i,o,r=e.plotX;e.plotX=tJ(null==(i=e.dlBox)?void 0:i.centerX,e.plotX),e.dataLabel&&(null==(o=e.shapeArgs)?void 0:o.width)&&e.dataLabel.css({width:""+e.shapeArgs.width+"px"}),t.prototype.alignDataLabel.apply(this,arguments),e.plotX=r},e.prototype.translatePoint=function(t){var e,i,o,r,n,s,a,l,h,d,c=this.xAxis,p=this.yAxis,u=this.columnMetrics,f=this.options,g=f.minPointLength||0,v=((null==(e=t.shapeArgs)?void 0:e.width)||0)/2,m=this.pointXOffset=u.offset,y=tJ(t.x2,t.x+(t.len||0)),x=f.borderRadius,b=this.chart.plotTop,M=this.chart.plotLeft,k=t.plotX,w=c.translate(y,0,0,0,1),A=Math.abs(w-k),S=this.chart.inverted,T=tJ(f.borderWidth,1),C=u.offset,P=Math.round(u.width);g&&((n=g-A)<0&&(n=0),k-=n/2,w+=n/2),k=Math.max(k,-10),w=tb(w,-10,c.len+10),tS(t.options.pointWidth)&&(C-=(Math.ceil(t.options.pointWidth)-P)/2,P=Math.ceil(t.options.pointWidth)),f.pointPlacement&&tF(t.plotY)&&p.categories&&(t.plotY=p.translate(t.y,0,1,0,1,f.pointPlacement));var O=tw(Math.min(k,w),T),L=tw(Math.max(k,w),T)-O,E=Math.min(t1("object"==typeof x?x.radius:x||0,P),Math.min(L,P)/2),B={x:O,y:tw((t.plotY||0)+C,T),width:L,height:P,r:E};t.shapeArgs=B,S?t.tooltipPos[1]+=m+v:t.tooltipPos[0]-=v+m-B.width/2,l=(a=B.x)+B.width,a<0||l>c.len?(a=tb(a,0,c.len),h=(l=tb(l,0,c.len))-a,t.dlBox=tV(B,{x:a,width:l-a,centerX:h?h/2:null})):t.dlBox=null;var I=t.tooltipPos,D=+!!S,z=+!S,R=this.columnMetrics?this.columnMetrics.offset:-u.width/2;S?I[D]+=B.width/2:I[D]=tb(I[D]+(c.reversed?-1:0)*B.width,c.left-M,c.left+c.len-M-1),I[z]=tb(I[z]+(S?-1:1)*R,p.top-b,p.top+p.len-b-1),(s=null!=(i=t.partialFill)?i:0)&&(tU(s)&&(s=s.amount||0),tF(s)||(s=0),t.partShapeArgs=tV(B),d=Math.max(Math.round(A*s+t.plotX-k),0),t.clipRectArgs={x:c.reversed?B.x+A-d:B.x,y:B.y,width:d,height:B.height}),t.key=t.category||t.name,t.yCategory=null==(o=p.categories)?void 0:o[null!=(r=t.y)?r:-1]},e.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var e=0,i=this.points;e<i.length;e++){var o=i[e];this.translatePoint(o)}},e.prototype.drawPoint=function(t,e){var i=this.options,o=this.chart.renderer,r=t.shapeType,n=t.shapeArgs,s=t.partShapeArgs,a=t.clipRectArgs,l=t.state,h=i.states[l||"normal"]||{},d=void 0===l?"attr":e,c=this.pointAttribs(t,l),p=tJ(this.chart.options.chart.animation,h.animation),u=t.graphic,f=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else{var g=t.getClassName();if(u?u.rect[e](n):(t.graphic=u=o.g("point").add(t.group||this.group),u.rect=o[r](tV(n)).add(u)),u.addClass(g+(l&&"select"!==l?" highcharts-point-"+l:""),!0),u.rect.addClass(g+" highcharts-partfill-original",!0),s&&(u.partRect?(u.partRect[e](tV(s)),u.partialClipRect[e](tV(a))):(u.partialClipRect=o.clipRect(a.x,a.y,a.width,a.height),u.partRect=o[r](s).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[e](c,p).shadow(i.shadow),s)){tU(f)||(f={}),tU(i.partialFill)&&(f=tV(i.partialFill,f));var v=f.fill||sn(c.fill).brighten(-.3).get()||sn(t.color||this.color).brighten(-.3).get();c.fill=v,u.partRect[d](c,p).shadow(i.shadow)}}},e.prototype.drawPoints=function(){for(var t=this.getAnimationVerb(),e=0,i=this.points;e<i.length;e++){var o=i[e];this.drawPoint(o,t)}},e.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"},e.prototype.isPointInside=function(e){var i=e.shapeArgs,o=e.plotX,r=e.plotY;return i?void 0!==o&&void 0!==r&&r>=0&&r<=this.yAxis.len&&(i.x||0)+(i.width||0)>=0&&o<=this.xAxis.len:t.prototype.isPointInside.apply(this,arguments)},e.defaultOptions=tV(ss.defaultOptions,n7),e}(ss);tL(sl.prototype,{pointClass:se,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:oe.series.prototype.animate,autoIncrement:sr,buildKDTree:sr}),oe.registerSeriesType("xrange",sl),sl.compose(tc.Axis);var sh=(I=function(t,e){return(I=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),sd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sh(e,t),e.setGanttPointAliases=function(t,e){var i,o,r;t.x=t.start=e.time.parse(null!=(i=t.start)?i:t.x),t.x2=t.end=e.time.parse(null!=(o=t.end)?o:t.x2),t.partialFill=t.completed=null!=(r=t.completed)?r:t.partialFill},e.prototype.applyOptions=function(i,o){var r,n=t.prototype.applyOptions.call(this,i,o);return e.setGanttPointAliases(n,n.series.chart),this.isNull=!(null==(r=this.isValid)?void 0:r.call(this)),this.formatPrefix=this.isNull?"null":"point",n},e.prototype.isValid=function(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)},e}(oe.seriesTypes.xrange.prototype.pointClass),sc={grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var t=this.series,e=t.xAxis,i=t.tooltipOptions.dateTimeLabelFormats,o=e.options.startOfWeek,r=t.tooltipOptions,n=this.options.milestone,s=r.xDateFormat,a="<b>"+(this.name||this.yCategory)+"</b>";if(r.pointFormat)return this.tooltipFormatter(r.pointFormat);!s&&tF(this.start)&&(s=t.chart.time.getDateFormat(e.closestPointRange,this.start,o,i||{}));var l=t.chart.time.dateFormat(s,this.start),h=t.chart.time.dateFormat(s,this.end);return a+="<br/>",n?a+=l+"<br/>":a+="Start: "+l+"<br/>"+("End: "+h)+"<br/>",a}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,align:"left"},endMarker:{enabled:!1,align:"right"}}};!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){var t;Object.keys((null==(t=this.options.breaks)?void 0:t[0])||{}).length&&(this.options.ordinal=!1)}function o(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var e=this.tickPositions,i=this.tickPositions.info,o=[],r=0;r<e.length;r++)t.isInAnyBreak(e[r])||o.push(e[r]);this.tickPositions=o,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new h(this))}function n(){var t,e,i=this.isDirty,o=this.options.connectNulls,r=this.points,n=this.xAxis,s=this.yAxis;if(i)for(var a=r.length;a--;){var l=r[a],h=(null!==l.y||!1!==o)&&((null==(t=null==n?void 0:n.brokenAxis)?void 0:t.isInAnyBreak(l.x,!0))||(null==(e=null==s?void 0:s.brokenAxis)?void 0:e.isInAnyBreak(l.y,!0)));l.visible=!h&&!1!==l.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,tJ(this.pointArrayMap,["y"]))}function a(t,e){var i,o,r,n,s=this,a=s.points;if(null==(i=null==t?void 0:t.brokenAxis)?void 0:i.hasBreaks){var l=t.brokenAxis;e.forEach(function(e){o=(null==l?void 0:l.breakArray)||[],r=t.isXAxis?t.min:tJ(s.options.threshold,t.min),a.forEach(function(i){var s;n=null!=(s=i["stack"+e.toUpperCase()])?s:i[e],o.forEach(function(e){if(tF(r)&&tF(n)){var o="";r<e.from&&n>e.to||r>e.from&&n<e.from?o="pointBreak":(r<e.from&&n>e.from&&n<e.to||r>e.from&&n>e.to&&n<e.from)&&(o="pointInBreak"),o&&tB(t,o,{point:i,brk:e})}})})})}}function l(){var t,e=this.currentDataGrouping,i=null==e?void 0:e.gapSize,o=this.points.slice(),r=this.yAxis,n=this.options.gapSize,s=o.length-1;if(n&&s>0){"value"!==this.options.gapUnit&&(n*=this.basePointRange),i&&i>n&&i>=this.basePointRange&&(n=i);for(var a=void 0,l=void 0;s--;)if(l&&!1!==l.visible||(l=o[s+1]),a=o[s],!1!==l.visible&&!1!==a.visible){if(l.x-a.x>n){var h=(a.x+l.x)/2;o.splice(s+1,0,{isNull:!0,x:h}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][h]=new oI(r,r.options.stackLabels,!1,h,null!=(t=this.stack)?t:"")).total=0)}l=a}}return this.getGraphPath(o)}t.compose=function(t,h){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),tv(t,"init",r),tv(t,"afterInit",e),tv(t,"afterSetTickPositions",o),tv(t,"afterSetOptions",i);var d=h.prototype;d.drawBreaks=a,d.gappedPath=l,tv(h,"afterGeneratePoints",n),tv(h,"afterRender",s)}return t};var h=function(){function t(t){this.axis=t}return t.isInBreak=function(t,e){var i=t.repeat||1/0,o=t.from,r=t.to-t.from,n=e>=o?(e-o)%i:i-(o-e)%i;return t.inclusive?n<=r:n<r&&0!==n},t.lin2Val=function(e){var i=this.min||0,o=this.brokenAxis,r=null==o?void 0:o.breakArray;if(!(null==r?void 0:r.length)||!tF(e))return e;var n=e;if(e>i)for(var s=0;s<r.length;s++){var a=r[s];if(a.from>n)break;a.to<=n&&a.to>i?n+=a.len:t.isInBreak(a,n)&&(n+=a.len)}else if(e<i)for(var l=0;l<r.length;l++){var a=r[l];if(a.from>i)break;a.from>=n&&a.from<i?n-=a.len:t.isInBreak(a,n)&&(n-=a.len)}return n},t.val2Lin=function(e){var i=this.min||0,o=this.brokenAxis,r=null==o?void 0:o.breakArray;if(!(null==r?void 0:r.length)||!tF(e))return e;var n=e;if(e>i)for(var s=0;s<r.length;s++){var a=r[s];if(a.to<=e&&a.to>i)n-=a.len;else if(a.from>e)break;else if(t.isInBreak(a,e)){n-=e-a.from;break}}else if(e<i)for(var l=0;l<r.length;l++){var a=r[l];if(a.from>=e&&a.from<i)n+=a.len;else if(a.from>i)break;else if(t.isInBreak(a,e)){n+=a.to-e;break}}return n},t.prototype.findBreakAt=function(t,e){return tW(e,function(e){return e.from<t&&t<e.to})},t.prototype.isInAnyBreak=function(e,i){var o,r,n,s=this.axis,a=s.options.breaks||[],l=a.length;if(l&&tF(e)){for(;l--;)t.isInBreak(a[l],e)&&(o=!0,r||(r=tJ(a[l].showPoints,!s.isXAxis)));n=o&&i?o&&!r:o}return n},t.prototype.setBreaks=function(e,i){var o,r=this,n=r.axis,s=n.chart.time,a=tj(e)&&!!Object.keys((null==e?void 0:e[0])||{}).length;n.isDirty=(null!=(o=r.hasBreaks)&&o)!==a,r.hasBreaks=a,null==e||e.forEach(function(t){t.from=s.parse(t.from)||0,t.to=s.parse(t.to)||0}),e!==n.options.breaks&&(n.options.breaks=n.userOptions.breaks=e),n.forceRedraw=!0,n.series.forEach(function(t){t.isDirty=!0}),a||n.val2lin!==t.val2Lin||(delete n.val2lin,delete n.lin2val),a&&(n.userOptions.ordinal=!1,n.lin2val=t.lin2Val,n.val2lin=t.val2Lin,n.setExtremes=function(t,e,i,o,s){var a;if(r.hasBreaks&&!(null==(a=n.treeGrid)?void 0:a.tree)){for(var l=this.brokenAxis.breakArray||[],h=void 0;h=r.findBreakAt(t,l);)t=h.to;for(;h=r.findBreakAt(e,l);)e=h.from;e<t&&(e=t)}n.constructor.prototype.setExtremes.call(this,t,e,i,o,s)},n.setAxisTranslation=function(){if(n.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var e,i,o,s,a,l,h,d,c,p,u,f,g=n.options.breaks||[],v=[],m=[],y=null!=(e=n.pointRangePadding)?e:0,x=0,b=null!=(i=n.userMin)?i:n.min,M=null!=(o=n.userMax)?o:n.max,k=tF(b)?Math.min(null!=(s=n.dataMin)?s:b,b):null!=(a=n.dataMin)?a:b,w=tF(M)?Math.max(null!=(l=n.dataMax)?l:M,M):null!=(h=n.dataMax)?h:M;(null==(d=n.treeGrid)?void 0:d.tree)||g.forEach(function(e){p=e.repeat||1/0,tF(b)&&tF(M)&&(t.isInBreak(e,b)&&(b+=e.to%p-b%p),t.isInBreak(e,M)&&(M-=M%p-e.from%p))}),tF(k)&&tF(w)&&g.forEach(function(t){for(u=t.from,p=t.repeat||1/0;u-p>k;)u-=p;for(;u<k;)u+=p;for(f=u;f<w;f+=p)v.push({value:f,move:"in"}),v.push({value:f+t.to-t.from,move:"out",size:t.breakSize})}),v.sort(function(t,e){return t.value===e.value?("in"!==t.move)-("in"!==e.move):t.value-e.value}),c=0,u=k,v.forEach(function(t){1===(c+="in"===t.move?1:-1)&&"in"===t.move&&(u=t.value),0===c&&tF(u)&&(m.push({from:u,to:t.value,len:t.value-u-(t.size||0)}),tF(b)&&tF(M)&&u<M&&t.value>b&&(x+=t.value-u-(t.size||0)))}),r.breakArray=m,tF(b)&&tF(M)&&tF(n.min)&&(r.unitLength=M-b-x+y,tB(n,"afterBreaks"),n.staticScale?n.transA=n.staticScale:r.unitLength&&(n.transA*=(M-n.min+y)/r.unitLength),y&&(n.minPixelPadding=n.transA*(n.minPointOffset||0)),n.min=b,n.max=M)}}),tJ(i,!0)&&n.chart.redraw()},t}();t.Additions=h}(ts||(ts={}));var sp=ts,su=tc.dateFormats;(D=ta||(ta={}))[D.top=0]="top",D[D.right=1]="right",D[D.bottom=2]="bottom",D[D.left=3]="left";function sf(t,e){var i={width:0,height:0};if(e.forEach(function(e){var o,r=t[e],n=0,s=0;tU(r,!0)&&(n=(o=tU(r.label,!0)?r.label:{}).getBBox?o.getBBox().height:0,o.textStr&&!tF(o.textPxLength)&&(o.textPxLength=o.getBBox().width),s=tF(o.textPxLength)?Math.round(o.textPxLength):0,o.textStr&&(s=Math.round(o.getBBox().width)),i.height=Math.max(n,i.height),i.width=Math.max(s,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var o=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(o-1)}return i}function sg(t){var e=this.grid,i=3===this.side;if(i||t.apply(this),!(null==e?void 0:e.isColumn)){var o=(null==e?void 0:e.columns)||[];i&&(o=o.slice().reverse()),o.forEach(function(t){t.getOffset()})}i&&t.apply(this)}function sv(t){var e;if(!0===(this.options.grid||{}).enabled){var i=this.axisTitle,o=this.height,r=this.horiz,n=this.left,s=this.offset,a=this.opposite,l=this.options,h=this.top,d=this.width,c=this.tickSize(),p=null==i?void 0:i.getBBox().width,u=l.title,f=u.x,g=u.y,v=null!=(e=u.margin)?e:r?5:10,m=i?this.chart.renderer.fontMetrics(i).f:0,y=(r?h+o:n)+(r?1:-1)*(a?-1:1)*(c?c[0]/2:0)+(this.side===ta.bottom?m:0);if(t.titlePosition.x=r?n-(p||0)/2-v+f:y+(a?d:0)+s+f,t.titlePosition.y=r?y-(a?o:0)+(a?m:-m)/2+s+g:h-v+g,!r){var x=(c||[])[0],b=void 0===x?0:x;"left"===u.textAlign?t.titlePosition.x-=b/2:"right"===u.textAlign&&(t.titlePosition.x+=b/2)}}}function sm(){var t,e=this.chart,i=this.options.grid,o=void 0===i?{}:i,r=this.userOptions;if(o.enabled&&((t=this.options).labels.align=tJ(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),o.columns)for(var n=this.grid.columns=[],s=this.grid.columnIndex=0;++s<o.columns.length;){var a=tV(r,o.columns[s],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),l=new iL(this.chart,a,this.coll);l.grid.isColumn=!0,l.grid.columnIndex=s,tO(e.axes,l),tO(e[this.coll]||[],l),n.push(l)}}function sy(){var t,e,i=this.axisTitle,o=this.grid,r=this.options;if(!0===(r.grid||{}).enabled){var n=this.min||0,s=this.max||0,a=this.ticks[this.tickPositions[0]];if(i&&!this.chart.styledMode&&(null==a?void 0:a.slotWidth)&&!this.options.title.style.width&&i.css({width:""+a.slotWidth+"px"}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),(null==(t=this.grid)?void 0:t.isOuterAxis())&&this.axisLine){var l=r.lineWidth;if(l){var h=this.getLinePath(l),d=h[0],c=h[1],p=(this.tickSize("tick")||[1])[0]*(this.side===ta.top||this.side===ta.left?-1:1);if("M"===d[0]&&"L"===c[0]&&(this.horiz?(d[2]+=p,c[2]+=p):(d[1]+=p,c[1]+=p)),!this.horiz&&this.chart.marginRight){var u=["L",this.left,d[2]||0],f=[d,u],g=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(s+this.tickmarkOffset)],v=[["M",c[1]||0,this.toPixels(s+this.tickmarkOffset)],g];this.grid.upperBorder||n%1==0||(this.grid.upperBorder=this.grid.renderBorder(f)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:r.lineColor,"stroke-width":r.lineWidth}),this.grid.upperBorder.animate({d:f})),this.grid.lowerBorder||s%1==0||(this.grid.lowerBorder=this.grid.renderBorder(v)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:r.lineColor,"stroke-width":r.lineWidth}),this.grid.lowerBorder.animate({d:v}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:r.lineColor,"stroke-width":r.lineWidth}),this.grid.axisLineExtra.animate({d:h})):this.grid.axisLineExtra=this.grid.renderBorder(h),this.axisLine[this.showAxis?"show":"hide"]()}}if(((null==o?void 0:o.columns)||[]).forEach(function(t){return t.render()}),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||(null==(e=this.linkedParent)?void 0:e.scrollbar))&&this.tickPositions.length){for(var m=this.tickmarkOffset,y=this.tickPositions[this.tickPositions.length-1],x=this.tickPositions[0],b=void 0,M=void 0;(b=this.hiddenLabels.pop())&&b.element;)b.show();for(;(M=this.hiddenMarks.pop())&&M.element;)M.show();(b=this.ticks[x].label)&&(n-x>m?this.hiddenLabels.push(b.hide()):b.show()),(b=this.ticks[y].label)&&(y-s>m?this.hiddenLabels.push(b.hide()):b.show());var k=this.ticks[y].mark;k&&y-s<m&&y-s>0&&this.ticks[y].isLast&&this.hiddenMarks.push(k.hide())}}}function sx(){var t,e=null==(t=this.tickPositions)?void 0:t.info,i=this.options,o=i.grid||{},r=this.userOptions.labels||{};o.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),e&&i.dateTimeLabelFormats&&i.labels&&!tS(r.align)&&(!1===i.dateTimeLabelFormats[e.unitName].range||e.count>1)&&(i.labels.align="left",tS(r.x)||(i.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function sb(t){var e,i=this.options,o=t.userOptions,r=i&&tU(i.grid,!0)?i.grid:{};!0===r.enabled&&(e=tV(!0,{className:"highcharts-grid-axis "+(o.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},o),"xAxis"===this.coll&&(tS(o.linkedTo)&&!tS(o.tickPixelInterval)&&(e.tickPixelInterval=350),!(!tS(o.tickPixelInterval)&&tS(o.linkedTo))||tS(o.tickPositioner)||tS(o.tickInterval)||tS(o.units)||(e.tickPositioner=function(t,i){var o,r,n=null==(r=null==(o=this.linkedParent)?void 0:o.tickPositions)?void 0:r.info;if(n){for(var s=e.units||[],a=void 0,l=1,h="year",d=0;d<s.length;d++){var c=s[d];if(c&&c[0]===n.unitName){a=d;break}}var p=tF(a)&&s[a+1];if(p){h=p[0]||"year";var u=p[1];l=(null==u?void 0:u[0])||1}else"year"===n.unitName&&(l=10*n.count);var f=eo[h];return this.tickInterval=f*l,this.chart.time.getTimeTicks({unitRange:f,count:l,unitName:h},t,i,this.options.startOfWeek)}})),tV(!0,this.options,e),this.horiz&&(i.minPadding=tJ(o.minPadding,0),i.maxPadding=tJ(o.maxPadding,0)),tF(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=r.borderWidth))}function sM(t){var e=t.userOptions,i=(null==e?void 0:e.grid)||{},o=i.columns;i.enabled&&o&&tV(!0,this.options,o[0])}function sk(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function sw(t){var e=this.horiz,i=this.maxLabelDimensions,o=this.options.grid,r=void 0===o?{}:o;if(r.enabled&&i){var n=2*this.options.labels.distance,s=e?r.cellHeight||n+i.height:n+i.width;tj(t.tickSize)?t.tickSize[0]=s:t.tickSize=[s,0]}}function sA(){this.axes.forEach(function(t){var e;((null==(e=t.grid)?void 0:e.columns)||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function sS(t){var e=this.grid;(e.columns||[]).forEach(function(e){return e.destroy(t.keepEvents)}),e.columns=void 0}function sT(t){var e=t.userOptions||{},i=tV({borderColor:"var(--highcharts-neutral-color-20)"},e.grid||{});i.enabled&&tS(i.borderColor)&&(e.tickColor=e.lineColor=i.borderColor),this.grid||(this.grid=new sE(this)),this.hiddenLabels=[],this.hiddenMarks=[],this.clippable=!1}function sC(t){var e=this.label,i=this.axis,o=i.reversed,r=i.chart,n=i.options.grid||{},s=i.options.labels,a=s.align,l=ta[i.side],h=t.tickmarkOffset,d=i.tickPositions,c=this.pos-h,p=tF(d[t.index+1])?d[t.index+1]-h:(i.max||0)+h,u=i.tickSize("tick"),f=u?u[0]:0,g=u?u[1]/2:0;if(!0===n.enabled){var v,m=void 0,y=void 0,x=void 0;if("top"===l?v=(m=i.top+i.offset)-f:"bottom"===l?m=(v=r.chartHeight-i.bottom+i.offset)+f:(m=i.top+i.len-(i.translate(o?p:c)||0),v=i.top+i.len-(i.translate(o?c:p)||0)),"right"===l?x=(y=r.chartWidth-i.right+i.offset)+f:"left"===l?y=(x=i.left+i.offset)-f:(y=Math.round(i.left+(i.translate(o?p:c)||0))-g,x=Math.min(Math.round(i.left+(i.translate(o?c:p)||0))-g,i.left+i.len)),this.slotWidth=x-y,t.pos.x="left"===a?y:"right"===a?x:y+(x-y)/2,t.pos.y=v+(m-v)/2,e){var b=r.renderer.fontMetrics(e),M=e.getBBox().height;if(s.useHTML)t.pos.y+=b.b+-(M/2);else{var k=Math.round(M/b.h);t.pos.y+=(b.b-(b.h-b.f))/2+-((k-1)*b.h/2)}}t.pos.x+=i.horiz&&s.x||0}}function sP(t){var e,i,o=t.axis,r=t.value;if(null==(e=o.options.grid)?void 0:e.enabled){var n=o.tickPositions,s=(o.linkedParent||o).series,a=null!=(i=s.reduce(function(t,e){var i,o;return e.is("gantt")?null==t?void 0:t.concat(null!=(o=null==(i=e.options)?void 0:i.data)?o:[]):t},[]))?i:[],l=r===n[0],h=r===n[n.length-1],d=s[0]&&tW(a,function(t){return t[o.isXAxis?"x":"y"]===r}),c=void 0;d&&(c=tV(d),tc.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(c,o.chart)),t.isFirst=l,t.isLast=h,t.point=c}}function sO(){var t,e,i=this.options,o=i.grid||{},r=this.categories,n=this.tickPositions,s=n[0],a=n[1],l=n[n.length-1],h=n[n.length-2],d=null==(t=this.linkedParent)?void 0:t.min,c=null==(e=this.linkedParent)?void 0:e.max,p=d||this.min,u=c||this.max,f=this.tickInterval,g=tF(p)&&p>=s+f&&p<a,v=tF(p)&&s<p&&s+f>p,m=tF(u)&&l>u&&l-f<u,y=tF(u)&&u<=l-f&&u>h;!0===o.enabled&&!r&&(this.isXAxis||this.isLinked)&&((v||g)&&!i.startOnTick&&(n[0]=p),(m||y)&&!i.endOnTick&&(n[n.length-1]=u))}function sL(t){var e,i=this.options.grid;return!0===(void 0===i?{}:i).enabled&&this.categories?this.tickInterval:t.apply(this,(e=arguments,Array.prototype.slice.call(e,1)))}var sE=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,e=this.axis,i=e.chart,o=e.grid.columnIndex,r=(null==(t=e.linkedParent)?void 0:t.grid.columns)||e.grid.columns||[],n=o?e.linkedParent:e,s=-1,a=0;return 3===e.side&&!i.inverted&&r.length?!e.linkedParent:((i[e.coll]||[]).forEach(function(t,i){t.side!==e.side||t.options.isInternal||(a=i,t===n&&(s=i))}),a===s&&(!tF(o)||r.length===o))},t.prototype.renderBorder=function(t){var e=this.axis,i=e.chart.renderer,o=e.options,r=i.path(t).addClass("highcharts-axis-line").add(e.axisGroup);return i.styledMode||r.attr({stroke:o.lineColor,"stroke-width":o.lineWidth,zIndex:7}),r},t}();su.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},su.W=function(t){var e=this.toParts(t),i=(e[7]+6)%7,o=e.slice(0);o[2]=e[2]-i+3;var r=this.toParts(this.makeTime(o[0],0,1));return 4!==r[7]&&(e[1]=0,e[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(o[0],o[1],o[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};var sB=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>e.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(i[o[r]]=t[o[r]]);return i};function sI(t,e,i,o,r,n){var s,a,l=n&&n.after,h=n&&n.before,d={data:o,depth:i-1,id:t,level:i,parent:e||""},c=0,p=0;"function"==typeof h&&h(d,n);var u=(r[t]||[]).map(function(e){var o=sI(e.id,t,i+1,e,r,n),l=e.start||NaN,h=!0===e.milestone?l:e.end||NaN;return s=!tF(s)||l<s?l:s,a=!tF(a)||h>a?h:a,c=c+1+o.descendants,p=Math.max(o.height+1,p),o});return o&&(null!=o.start||(o.start=s),null!=o.end||(o.end=a)),tL(d,{children:u,descendants:c,height:p}),"function"==typeof l&&l(d,n),d}var sD=function(t,e){var i,o;return sI("",null,1,null,(i=[],Object.keys(o=t.reduce(function(t,e){var o=e.parent,r=void 0===o?"":o,n=e.id;return void 0===t[r]&&(t[r]=[]),t[r].push(e),n&&i.push(n),t},{})).forEach(function(t){var e;if(""!==t&&-1===i.indexOf(t)){var r=o[t].map(function(t){return sB(t,[])});(e=o[""]).push.apply(e,r),delete o[t]}}),o),e)};function sz(){this.treeGrid||(this.treeGrid=new sW(this))}function sR(t,e,i,o,r,n,s,a,l){var h,d,c,p,u=tJ(null==(h=this.options)?void 0:h.labels,n),f=this.pos,g=this.axis,v="treegrid"===g.type,m=t.apply(this,[e,i,o,r,u,s,a,l]);if(v){var y=u&&tU(u.symbol,!0)?u.symbol:{},x=y.width,b=y.padding,M=void 0===b?5*!g.linkedParent:b,k=u&&tF(u.indentation)?u.indentation:0;p=(null==(c=null==(d=g.treeGrid.mapOfPosToGridNode)?void 0:d[f])?void 0:c.depth)||1,m.x+=(void 0===x?0:x)+2*M+(p-1)*k}return m}function sN(t){var e,i,o,r,n,s,a,l,h,d,c,p,u,f,g,v=this.pos,m=this.axis,y=this.label,x=this.treeGrid,b=this.options,M=null==x?void 0:x.labelIcon,k=null==y?void 0:y.element,w=m.treeGrid,A=m.options,S=m.chart,T=m.tickPositions,C=w.mapOfPosToGridNode,P=tJ(null==b?void 0:b.labels,null==A?void 0:A.labels),O=P&&tU(P.symbol,!0)?P.symbol:{},L=null==C?void 0:C[v],E=L||{},B=E.descendants,I=E.depth,D=L&&B&&B>0,z="treegrid"===m.type&&k,R=T.indexOf(v)>-1,N="highcharts-treegrid-node-",W=N+"level-",G=S.styledMode;(z&&L&&y.removeClass(RegExp(W+".*")).addClass(W+I),t.apply(this,Array.prototype.slice.call(arguments,1)),z&&D)?(g=w.isCollapsed(L),e={color:!G&&y.styles.color||"",collapsed:g,group:y.parentGroup,options:O,renderer:y.renderer,show:R,xy:y.xy},r=!(o=this.treeGrid).labelIcon,n=e.renderer,s=e.xy,l=(a=e.options).width||0,h=a.height||0,d=5*(null!=(i=a.padding)?!i:!this.axis.linkedParent),c={x:s.x-l/2-d,y:s.y-h/2},p=e.collapsed?90:180,u=e.show&&tF(c.y),(f=o.labelIcon)||(o.labelIcon=f=n.path(n.symbols[a.type](a.x||0,a.y||0,l,h)).addClass("highcharts-label-icon").add(e.group)),f[u?"show":"hide"](),n.styledMode||f.attr({cursor:"pointer",fill:e.color||"var(--highcharts-neutral-color-60)","stroke-width":1,stroke:a.lineColor,strokeWidth:a.lineWidth||0}),f[r?"attr":"animate"]({translateX:c.x,translateY:c.y,rotation:p}),y.addClass(N+(g?"collapsed":"expanded")).removeClass(N+(g?"expanded":"collapsed")),G||y.css({cursor:"pointer"}),[y,M].forEach(function(t){t&&!t.attachedTreeGridEvents&&(tv(t.element,"mouseover",function(){y.addClass("highcharts-treegrid-node-active"),y.renderer.styledMode||y.css({textDecoration:"underline"})}),tv(t.element,"mouseout",function(){var t;t=tU(P.style)?P.style:{},y.removeClass("highcharts-treegrid-node-active"),y.renderer.styledMode||y.css({textDecoration:t.textDecoration||"none"})}),tv(t.element,"click",function(){x.toggleCollapse()}),t.attachedTreeGridEvents=!0)})):M&&(t5(k),null==y||y.css({cursor:"default"}),M.destroy(),x.labelIcon=void 0)}var sW=function(){function t(t){this.tick=t}return t.compose=function(t){var e=t.prototype;e.toggleCollapse||(tv(t,"init",sz),t8(e,"getLabelPosition",sR),t8(e,"renderLabel",sN),e.collapse=function(t){this.treeGrid.collapse(t)},e.expand=function(t){this.treeGrid.expand(t)},e.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})},t.prototype.collapse=function(t){var e=this.tick,i=e.pos,o=e.axis,r=o.treeGrid,n=o.brokenAxis,s=r.mapOfPosToGridNode;n&&s&&n.setBreaks(r.collapse(s[i]),null==t||t)},t.prototype.destroy=function(){var t;null==(t=this.labelIcon)||t.destroy()},t.prototype.expand=function(t){var e=this.tick,i=e.pos,o=e.axis,r=o.treeGrid,n=o.brokenAxis,s=r.mapOfPosToGridNode;n&&s&&n.setBreaks(r.expand(s[i]),null==t||t)},t.prototype.toggleCollapse=function(t){void 0===t&&(t=!0);var e,i,o=this.tick,r=o.axis,n=o.pos,s=r.brokenAxis,a=r.treeGrid;if(s&&a.mapOfPosToGridNode){var l=!!(r.scrollbar&&r.staticScale),h=r.pos+r.len+(a.pendingSizeAdjustment||0);if(a.pendingSizeAdjustment=0,s.setBreaks(a.toggleCollapse(a.mapOfPosToGridNode[n]),l&&t),l){var d=r.toValue(r.toPixels(r.dataMax)),c=r.toValue(h)-r.tickmarkOffset,p=null!=(e=r.userMin)?e:r.min;if(a.adjustedMax=d!==r.dataMax?d-r.tickmarkOffset:void 0,c>r.dataMax){var u=h-r.toPixels(r.dataMax+r.tickmarkOffset);c=null!=(i=a.adjustedMax)?i:r.dataMax,(p=r.toValue(r.toPixels(p-r.tickmarkOffset)-u)+r.tickmarkOffset)<r.dataMin&&(u=r.toPixels(r.dataMin)-r.toPixels(p),p=r.dataMin,a.pendingSizeAdjustment=u)}r.setExtremes(tM(p),tM(c),!1,!1,{trigger:"toggleCollapse"})}t&&r.chart.redraw()}},t}(),sG=function(t){var e,i,o,r,n,s,a={};if(tU(t))for(r=tF(t.from)?t.from:1,s=t.levels,i={},e=tU(t.defaults)?t.defaults:{},tj(s)&&(i=s.reduce(function(t,i){var o,n,s;return tU(i)&&tF(i.level)&&(n=tJ((s=tV({},i)).levelIsConstant,e.levelIsConstant),delete s.levelIsConstant,delete s.level,tU(t[o=i.level+(n?0:r-1)])?tV(!0,t[o],s):t[o]=s),t},{})),n=tF(t.to)?t.to:1,o=0;o<=n;o++)a[o]=tV({},e,tU(i[o])?i[o]:{});return a};function sH(t){return Array(t.dataTable.rowCount).fill(void 0).map(function(e,i){return t.dataTable.getRowObject(i)})}function sX(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function sF(t,e,i){var o,r,n=[],s=[],a={},l=e||!1,h={},d=-1,c=sD(t,{after:function(t){var e=h[t.pos],i=0,o=0;e.children.forEach(function(t){o+=(t.descendants||0)+1,i=Math.max((t.height||0)+1,i)}),e.descendants=o,e.height=i,e.collapsed&&s.push(e)},before:function(t){var e,i,o=tU(t.data,!0)?t.data:{},r=tY(o.name)?o.name:"",s=a[t.parent],c=tU(s,!0)?h[s.pos]:null;l&&tU(c,!0)&&(e=tW(c.children,function(t){return t.name===r}))?(i=e.pos,e.nodes.push(t)):i=d++,!h[i]&&(h[i]=e={depth:c?c.depth+1:0,name:r,id:o.id,nodes:[t],children:[],pos:i},-1!==i&&n.push(r),tU(c,!0)&&c.children.push(e)),tY(t.id)&&(a[t.id]=t),e&&!0===o.collapsed&&(e.collapsed=!0),t.pos=i}});return o=h,{categories:n,mapOfIdToNode:a,mapOfPosToGridNode:h=(r=function(t,e,o){var n=t.nodes,s=e+(-1===e?0:i-1),a=(s-e)/2,l=e+a;return n.forEach(function(t){var i=t.data;tU(i,!0)&&(i.y=e+(i.yIndex||0)),t.pos=l}),o[l]=t,t.pos=l,t.tickmarkOffset=a+.5,t.collapseStart=s+.5,t.children.forEach(function(t){r(t,s+1,o),s=(t.collapseEnd||0)-.5}),t.collapseEnd=s+.5,o})(o["-1"],-1,{}),collapsedNodes:s,tree:c}}function sY(t){var e=t.target;e.axes.filter(function(t){return"treegrid"===t.type}).forEach(function(i){var o,r,n,s=i.options,a=s.labels,l=i.uniqueNames,h=e.time.parse(s.max),d=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),c=0;if(d){var p=[];if(r=i.series.reduce(function(t,i){var o=sH(i),r=o[0],n=Array.isArray(r)&&!r.find(function(t){return"object"==typeof t});return p.push(n),i.visible&&(o.forEach(function(o){var r;(n||(null==(r=i.options.keys)?void 0:r.length))&&(o=i.pointClass.prototype.optionsToObject.call({series:i},o),i.pointClass.setGanttPointAliases(o,e)),tU(o,!0)&&(o.yIndex=c,o.seriesIndex=i.index,t.push(o))}),!0===l&&c++),t},[]),h&&r.length<h)for(var u=r.length;u<=h;u++)r.push({name:u+"​"});i.categories=(n=sF(r,l||!1,!0===l?c:1)).categories,i.treeGrid.mapOfPosToGridNode=n.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=n.tree,i.series.forEach(function(t){var e=r.filter(function(e){return e.seriesIndex===t.index});e.forEach(function(t){delete t.seriesIndex,delete t.yIndex}),t.visible&&t.setData(e,!1)}),i.treeGrid.mapOptionsToLevel=sG({defaults:a,from:1,levels:null==a?void 0:a.levels,to:null==(o=i.treeGrid.tree)?void 0:o.height}),"beforeRender"===t.type&&(i.treeGrid.collapsedNodes=n.collapsedNodes)}})}function sj(t,e){var i,o,r,n=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,a=this.ticks,l=a[e];s&&this.treeGrid.mapOfPosToGridNode?((i=n[(r=this.treeGrid.mapOfPosToGridNode[e]).depth])&&(o={labels:i}),!l&&tl?a[e]=l=new tl(this,e,void 0,void 0,{category:r.name,tickmarkOffset:r.tickmarkOffset,options:o}):(l.parameters.category=r.name,l.options=o,l.addLabel(),this.isDirty=!0)):t.apply(this,Array.prototype.slice.call(arguments,1))}function s_(t,e,i,o){var r=this,n="treegrid"===i.type;r.treeGrid||(r.treeGrid=new sZ(r)),n&&(tv(e,"beforeRender",sY),tv(e,"beforeRedraw",sY),tv(e,"addSeries",function(t){if(t.options.data){var e=sF(t.options.data,i.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(e.collapsedNodes)}}),tv(r,"foundExtremes",function(){var t;null==(t=r.treeGrid.collapsedNodes)||t.forEach(function(t){var e=r.treeGrid.collapse(t);r.brokenAxis&&(r.brokenAxis.setBreaks(e,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(function(e){return t.collapseStart!==e.collapseStart||t.collapseEnd!==e.collapseEnd})))})}),tv(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),i=tV({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-3,height:6,width:8}},uniqueNames:!1},i,{reversed:!0})),t.apply(r,[e,i,o]),n&&(r.hasNames=!0,r.options.showLastLabel=!0)}function sU(t){var e,i,o,r,n,s,a,l=this.options,h=this.chart.time,d="number"==typeof l.linkedTo?null==(e=this.chart[this.coll])?void 0:e[l.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=null!=(o=null!=(i=this.userMin)?i:h.parse(l.min))?o:this.dataMin,this.max=null!=(n=null!=(r=this.userMax)?r:h.parse(l.max))?n:this.dataMax,tB(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],d){var c=d.getExtremes();this.min=null!=(s=c.min)?s:c.dataMin,this.max=null!=(a=c.max)?a:c.dataMax,this.tickPositions=d.tickPositions}this.linkedParent=d}else t.apply(this,Array.prototype.slice.call(arguments,1))}function sV(t){var e=this;"treegrid"===this.type&&e.visible&&e.tickPositions.forEach(function(t){var i,o=e.ticks[t];(null==(i=o.label)?void 0:i.attachedTreeGridEvents)&&(t5(o.label.element),o.label.attachedTreeGridEvents=!1)}),t.apply(e,Array.prototype.slice.call(arguments,1))}var sZ=function(){function t(t){this.pendingSizeAdjustment=0,this.axis=t}return t.compose=function(t,e,i,o){if(!t.keepProps.includes("treeGrid")){var r,n,s,a=t.prototype;t.keepProps.push("treeGrid"),t8(a,"generateTick",sj),t8(a,"init",s_),t8(a,"setTickInterval",sU),t8(a,"redraw",sV),a.utils={getNode:sI},tl||(tl=o)}return r=t,n=e,s=o,r.keepProps.includes("grid")||(r.keepProps.push("grid"),r.prototype.getMaxLabelDimensions=sf,t8(r.prototype,"unsquish",sL),t8(r.prototype,"getOffset",sg),tv(r,"init",sT),tv(r,"afterGetTitlePosition",sv),tv(r,"afterInit",sm),tv(r,"afterRender",sy),tv(r,"afterSetAxisTranslation",sx),tv(r,"afterSetOptions",sb),tv(r,"afterSetOptions",sM),tv(r,"afterSetScale",sk),tv(r,"afterTickSize",sw),tv(r,"trimTicks",sO),tv(r,"destroy",sS),tv(n,"afterSetChartSize",sA),tv(s,"afterGetLabelPosition",sC),tv(s,"labelFormat",sP)),sp.compose(t,i),sW.compose(o),t},t.prototype.setCollapsedStatus=function(t){var e=this.axis,i=e.chart;e.series.forEach(function(e){var o=sH(e);if(t.id&&o){var r=i.get(t.id),n=o[e.data.indexOf(r)];e.dataTable.setRow({collapsed:t.collapsed},e.data.indexOf(r)),r&&tU(n,!0)&&(r.collapsed=t.collapsed,n.collapsed=t.collapsed)}})},t.prototype.collapse=function(t){var e=this.axis,i=e.options.breaks||[],o=sX(t);return i.push(o),t.collapsed=!0,e.treeGrid.setCollapsedStatus(t),i},t.prototype.expand=function(t){var e,i=this.axis,o=sX(t);return t.collapsed=!1,i.treeGrid.setCollapsedStatus(t),(null==(e=i.options.breaks)?void 0:e.reduce(function(t,e){return(e.to!==o.to||e.from!==o.from)&&t.push(e),t},[]))||[]},t.prototype.getTickPositions=function(){var t=this.axis,e=Math.floor(t.min/t.tickInterval)*t.tickInterval,i=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(o,r){var n,s=+r;return s>=e&&s<=i&&!(null==(n=t.brokenAxis)?void 0:n.isInAnyBreak(s))&&o.push(s),o},[])},t.prototype.isCollapsed=function(t){var e=this.axis.options.breaks||[],i=sX(t);return e.some(function(t){return t.from===i.from&&t.to===i.to})},t.prototype.toggleCollapse=function(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)},t}(),sK=(z=function(t,e){return(z=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),sq=oe.series,s$=oe.seriesTypes.xrange,sJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sK(e,t),e.compose=function(t,e,i,o){s$.compose(t),e&&(n9(t,e),!i||(n3.compose(e,i.prototype.pointClass),o&&sZ.compose(t,e,i,o)))},e.prototype.getColumn=function(e){var i=this.chart.time;if("x"===e){var o=t.prototype.getColumn.call(this,"start");if(o.length)return o.map(function(t){return i.parse(t)||0})}return t.prototype.getColumn.apply(this,arguments)},e.prototype.drawPoint=function(e,i){var o,r=this.options,n=this.chart.renderer,s=e.shapeArgs,a=e.plotY,l=e.selected&&"select",h=r.stacking&&!r.borderRadius,d=e.graphic;e.options.milestone?tF(a)&&null!==e.y&&!1!==e.visible?(o=n.symbols.diamond(s.x||0,s.y||0,s.width||0,s.height||0),d?d[i]({d:o}):e.graphic=d=n.path(o).addClass(e.getClassName(),!0).add(e.group||this.group),this.chart.styledMode||e.graphic.attr(this.pointAttribs(e,l)).shadow(r.shadow,null,h)):d&&(e.graphic=d.destroy()):t.prototype.drawPoint.call(this,e,i)},e.prototype.translatePoint=function(e){var i,o;t.prototype.translatePoint.call(this,e),e.options.milestone&&(o=(i=e.shapeArgs).height||0,e.shapeArgs={x:(i.x||0)-o/2,y:i.y,width:o,height:o})},e.defaultOptions=tV(s$.defaultOptions,sc),e}(s$);tL(sJ.prototype,{pointArrayMap:["start","end","y"],pointClass:sd,setData:sq.prototype.setData}),oe.registerSeriesType("gantt",sJ),tc.Connection=tc.Connection||r0,tc.GanttChart=tc.GanttChart||r6,tc.Navigator=tc.Navigator||nT,tc.RangeSelector=tc.RangeSelector||nF,tc.Scrollbar=tc.Scrollbar||nM,tc.ganttChart=tc.GanttChart.ganttChart,rZ(tc.SVGRenderer),R=tc.Axis,N=tc.PlotLineOrBand,t0(r1,"CurrentDateIndication")&&(tv(R,"afterSetOptions",function(){var t=this.options,e=t.currentDateIndicator;if(e){var i="object"==typeof e?tV(r2,e):tV(r2);i.value=Date.now(),i.className="highcharts-current-date-indicator",null!=t.plotLines||(t.plotLines=[]),t.plotLines.push(i)}}),tv(N,"render",function(){var t;null==(t=this.label)||t.attr({text:this.getLabelText(this.options.label||{})})}),t8(N.prototype,"getLabelText",function(t,e){var i,o,r;if(this.options.className&&-1!==this.options.className.indexOf("highcharts-current-date-indicator")&&"function"==typeof(null==(i=this.options.label)?void 0:i.formatter)){var n=this.options;return n.value=Date.now(),(null==(r=null==(o=n.label)?void 0:o.formatter)?void 0:r.call(this,n.value,n.label.format,this))||""}return t.call(this,e)})),sJ.compose(tc.Axis,tc.Chart,tc.Series,tc.Tick),tc.Navigator.compose(tc.Chart,tc.Axis,tc.Series),tc.RangeSelector.compose(tc.Axis,tc.Chart),tc.Scrollbar.compose(tc.Axis),tc.product="Highcharts Gantt";var sQ=tc;return td.default}()});