1(this.webpackChunkFusion_components=this.webpackChunkFusion_components||[]).push([[154],{28621:function(t,e,i){function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function r(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var a,n,h;a={743(t,e,i){t.exports={Highcharts:i(783),HighchartsReact:i(316)}},316(t,e,i){var s;"undefined"!=typeof self&&self,t.exports=(s=i(15),function(t){function e(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},s.apply(this,arguments)}function o(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"HighchartsReact",function(){return d});var n=i(1),h=i.n(n),l="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,d=Object(n.memo)(Object(n.forwardRef)(function(t,e){var i=Object(n.useRef)(),r=Object(n.useRef)(),d=Object(n.useRef)(t.constructorType),c=Object(n.useRef)(t.highcharts);return l(function(){function e(){var e=t.highcharts||"object"===("undefined"==typeof window?"undefined":a(window))&&window.Highcharts,s=t.constructorType||"chart";e?e[s]?t.options?r.current=e[s](i.current,t.options,t.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(r.current){if(!1!==t.allowChartUpdate)if(t.constructorType!==d.current||t.highcharts!==c.current)d.current=t.constructorType,c.current=t.highcharts,e();else if(!t.immutable&&r.current){var s;(s=r.current).update.apply(s,[t.options].concat(o(t.updateArgs||[!0,!0])))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),l(function(){return function(){r.current&&(r.current.destroy(),r.current=null)}},[]),Object(n.useImperativeHandle)(e,function(){return{get chart(){return r.current},container:i}},[]),h.a.createElement("div",s({},t.containerProps,{ref:i}
vendor: 10,493 bytes, line 1
1))}));e.default=d},function(t,e){t.exports=s}]))},783(t){var e,i;i=()=>(()=>{"use strict";let t,e,i,s,r,a;var n,h,l,d,c,p,u,g,f,m,x,y,b,v,k,w,M,S,T,C,A,P,L,O,E,I,D={d:(t,e)=>{for(var i in e)D.o(e,i)&&!D.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},B={};D.d(B,{default:()=>Uo}),(n=m||(m={})).SVG_NS="http://www.w3.org/2000/svg",n.product="Highcharts",n.version="12.6.0",n.win="u">typeof window?window:{},n.doc=n.win.document,n.svg=!!n.doc?.createElementNS?.(n.SVG_NS,"svg")?.createSVGRect,n.pageLang=n.doc?.documentElement?.closest("[lang]")?.lang,n.userAgent=n.win.navigator?.userAgent||"",n.isChrome=n.win.chrome,n.isFirefox=-1!==n.userAgent.indexOf("Firefox"),n.isMS=/(edge|msie|trident)/i.test(n.userAgent)&&!n.win.opera,n.isSafari=!n.isChrome&&-1!==n.userAgent.indexOf("Safari"),n.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(n.userAgent),n.isWebKit=-1!==n.userAgent.indexOf("AppleWebKit"),n.deg2rad=2*Math.PI/360,n.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],n.noop=function(){},n.supportsPassiveEvents=function(){let t=!1;if(!n.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});n.win.addEventListener&&n.win.removeEventListener&&(n.win.addEventListener("testPassive",n.noop,e),n.win.removeEventListener("testPassive",n.noop,e))}return t}(),n.charts=[],n.composed=[],n.dateFormats={},n.seriesTypes={},n.symbolSizes={},n.chartCount=0;let z=m,{doc:N,win:R}=z;function W(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;z.Point&&t instanceof z.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let a=t.addEventListener;a&&a.call(t,e,i,!!z.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let n={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(n),r[e].sort((t,e)=>t.order-e.order),function(){Tt(t,e,i)}}function X(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i}function H(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}function G(t,e,i){let s,o=ct(e)&&!U(i),r=(e,i)=>{U(e)?t.setAttribute(i,e):o?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return ct(e)?r(i,e):xt(e,r),s}function Y(t,e,i){return t>e?t<i?t:i:e}function F(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function j(t,e,i,s,o){let r=N.createElement(t);return e&&J(r,e),o&&V(r,{padding:"0",border:"none",margin:"0"}),i&&V(r,i),s&&s.appendChild(r),r}function $(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function V(t,e){J(t.style,e)}function U(t){return null!=t}function _(t,e,i){xt(t,function(s,o){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[o]})}function Z(t){t?.parentElement?.removeChild(t)}function K(t,e,i,s){let o={};return function t(e,o,r,a){let n=i?o:e;xt(e,function(i,h){if(!a&&s&&s.indexOf(h)>-1&&o[h]){i=Ct(i),r[h]=[];for(let e=0;e<Math.max(i.length,o[h].length);e++)o[h][e]&&(void 0===i[e]?r[h][e]=o[h][e]:(r[h][e]={},t(i[e],o[h][e],r[h][e],a+1)))}else gt(i,!0)&&!i.nodeType?(r[h]=pt(i)?[]:{},t(i,o[h]||{},r[h],a+1),0===Object.keys(r[h]).length&&("colorAxis"!==h||0!==a)&&delete r[h]):(e[h]!==o[h]||h in e&&!(h in o))&&"__proto__"!==h&&"constructor"!==h&&(r[h]=n[h])})}(t,e,o,0),o}function q(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}}function J(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function Q(t,e){let i=function(){};return J(i.prototype=new t,e),i}function tt(t,e,i,s){if(i=i||{},N?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==z)){let s=N.createEvent("Events");s.initEvent(e,!0,!0),i=J(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||J(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let et=(t="")=>({center:.5,right:1,middle:.5,bottom:1}[t]||0);function it(t,e){let i,s,o,r,a=!e;return t.forEach(t=>{if(t.length>1)for(r=s=t.length-1;r>0;r--)(o=t[r]-t[r-1])<0&&!a?(e?.(),e=void 0):o&&(void 0===i||o<i)&&(i=o)}),i}function st(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function ot(t,e){let i=t.split(".");for(;i.length&&U(e);){let t=i.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return gt(e)&&(t=e["@this"]),t??e}let s=e[t.replace(/[\\'"]/g,"")];if(!U(s)||"function"==typeof s||"number"==typeof s.nodeType||s===R)return;e=s}return e}function rt(t,e,i){let s;if("width"===e){let e=Math.min(t.offsetWidth,t.scrollWidth),i=t.getBoundingClientRect?.().width;return i<e&&i>=e-1&&(e=Math.floor(i)),Math.max(0,e-(rt(t,"padding-left",!0)||0)-(rt(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(rt(t,"padding-top",!0)||0)-(rt(t,"padding-bottom",!0)||0));let o=R.getComputedStyle(t,void 0);return o&&(s=o.getPropertyValue(e),vt(i,"opacity"!==e)&&(s=kt(s))),s}let at=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function nt(t){U(t)&&clearTimeout(t)}function ht(t){return gt(t)&&"number"==typeof t.nodeType}function lt(t){let e=t?.constructor;return!(!gt(t,!0)||ht(t)||!e?.name||"Object"===e.name)}function dt(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function ct(t){return"string"==typeof t}function pt(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function ut(t){return"function"==typeof t}function gt(t,e){return!(!t||"object"!=typeof t||e&&pt(t))}function ft(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),xt(e,function(i,s){"__proto__"!==s&&"constructor"!==s&&(!gt(i,!0)||lt(i)||ht(i)?t[s]=e[s]:t[s]=r(t[s]||{},i))}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let a=s.length;for(i=0;i<a;i++)o=r(o,s[i]);return o}function mt(t,e,i,s,o){let r,a=t,n=t/(i=vt(i,st(t)));for(!e&&(e=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),r=0;r<e.length&&(a=e[r],(!o||!(a*i>=t))&&(o||!(n<=(e[r]+(e[r+1]||e[r]))/2)));r++);return F(a*i,-Math.round(Math.log(.001)/Math.LN10))}function xt(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function yt(t){let e=N.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(R.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(R.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function bt(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function vt(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function kt(t,e){return parseInt(t,e||10)}function wt(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function Mt(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function St(t,...e){let i,s;do{for(s of(i=t,e))t=t.replace(s[0],s[1])}while(t!==i);return t}function Tt(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,xt(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}function Ct(t){return pt(t)?t:[t]}function At(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}function Pt(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function Lt(t){return ct(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}let{charts:Ot,win:Et}=z;function It(t,e,i,s){let o=e?"Highcharts error":"Highcharts warning";32===t&&(t=`${o}: Deprecated member`);let r=dt(t),a=r?`${o} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(void 0!==s){let t="";r&&(a+="?"),xt(s,function(e,i){t+=`\n - ${i}: ${e}`,r&&(a+=encodeURI(i)+"="+encodeURI(e))}),a+=t}tt(z,"displayError",{chart:i,code:t,message:a,params:s},function(){if(e)throw Error(a);Et.console&&-1===It.messages.indexOf(a)&&console.warn(a)}),It.messages.push(a)}function Dt(t,e){let i,s=t.options.index,o=e.length;for(i=t.options.isInternal?o:0;i<o+1;i++)if(!e[i]||dt(s)&&s<vt(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(It||(It={})).messages=[];let Bt={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)};let zt=(i=Math.random().toString(36).substring(2,9)+"-",s=0,function(){return"highcharts-"+(t?"":i)+s++});Et.jQuery&&(Et.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new(z[ct(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):Ot[G(this[0],"data-highcharts-chart")]});let{pageLang:Nt,win:Rt}=z,Wt=z.isSafari&&Rt.Intl&&!Rt.Intl.DateTimeFormat.prototype.formatRange,Xt=class{constructor(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Rt.Date,this.update(t),this.lang=e}update(t={}){this.dTLCache={},this.options=t=ft(!0,this.options,t);let{timezoneOffset:e,useUTC:i,locale:s}=t;this.Date=t.Date||Rt.Date||Date;let o=t.timezone;U(i)&&(o=i?"UTC":void 0),e&&e%60==0&&(o="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone="UTC"!==o&&0!==o?.indexOf("Etc/GMT"),this.timezone=o,this.lang&&s&&(this.lang.locale=s),["months","shortMonths","weekdays","shortWeekdays"].forEach(t=>{let e=/months/i.test(t),i=/short/.test(t),s={timeZone:"UTC"};s[e?"month":"weekday"]=i?"short":"long",this[t]=(e?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(t=>this.dateFormat(s,24*(e?31:1)*36e5*t))})}toParts(t){let[e,i,s,o,r,a,n]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g);return[o,s-1,i,r,a,n,Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(e)].map(Number)}dateTimeFormat(t,e,i=this.options.locale||Nt){let s=JSON.stringify(t)+i;ct(t)&&(t=this.str2dtf(t));
1let o=this.dTLCache[s];if(!o){t.timeZone??(t.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(It(34),t.timeZone="UTC",o=new Intl.DateTimeFormat(i,t)):It(e.message,!1)}}return this.dTLCache[s]=o,o?.format(e)||""}str2dtf(t,e={}){let 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(s=>{-1!==t.indexOf(s)&&J(e,i[s])}),e}makeTime(t,e,i=1,s=0,o,r,a){let n=this.Date.UTC(t,e,i,s,o||0,r||0,a||0);if("UTC"!==this.timezone){let t=this.getTimezoneOffset(n);if(n+=t,-1!==[2,3,8,9,10,11].indexOf(e)&&(s<5||s>20)){let e=this.getTimezoneOffset(n);t!==e?n+=e-t:t-36e5!==this.getTimezoneOffset(n-36e5)||Wt||(n-=36e5)}}return n}parse(t){if(!ct(t))return t??void 0;let 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");let s=Date.parse(t);return dt(s)?s+(!e||i?this.getTimezoneOffset(s):0):void 0}getTimezoneOffset(t){if("UTC"!==this.timezone){let[e,i,s,o,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),a=-60*(s+r/60)*6e4;if(dt(a))return a}return 0}dateFormat(t,e,i){let s=this.lang;if(!U(e)||isNaN(e))return s?.invalidDate||"";if(ct(t=t??"%Y-%m-%d %H:%M:%S")){let i,o=/%\[([a-zA-Z]+)\]/g;for(;i=o.exec(t);)t=t.replace(i[0],this.dateTimeFormat(i[1],e,s?.locale))}if(ct(t)&&-1!==t.indexOf("%")){let i=this,[o,r,a,n,h,l,d,c]=this.toParts(e),p=s?.weekdays||this.weekdays,u=s?.shortWeekdays||this.shortWeekdays,g=s?.months||this.months,f=s?.shortMonths||this.shortMonths;xt(J({a:u?u[c]:p[c].substr(0,3),A:p[c],d:bt(a),e:bt(a,2," "),w:c,v:s?.weekFrom??"",b:f[r],B:g[r],m:bt(r+1),o:r+1,y:o.toString().substr(2,2),Y:o,H:bt(n),k:n,I:bt(n%12||12),l:n%12||12,M:bt(h),p:n<12?"AM":"PM",P:n<12?"am":"pm",S:bt(l),L:bt(d,3)},z.dateFormats),function(s,o){if(ct(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof s?s.call(i,e,i):s)})}else if(gt(t)){let i=(this.getTimezoneOffset(e)||0)/36e5,s=this.timezone||"Etc/GMT"+(i>=0?"+":"")+i,{prefix:o="",suffix:r=""}=t;t=o+this.dateTimeFormat(J({timeZone:s},t),e)+r}return i?Lt(t):t}resolveDTLFormat(t){return gt(t,!0)?gt(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=Ct(t))[0],from:t[1],to:t[2]}}getDateFormat(t,e,i,s){let o=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond",h=n;for(n in Bt){if(t&&t===Bt.week&&+this.dateFormat("%w",e)===i&&o.substr(6)===r.substr(6)){n="week";break}if(t&&Bt[n]>t){n=h;break}if(a[n]&&o.substr(a[n])!==r.substr(a[n]))break;"week"!==n&&(h=n)}return this.resolveDTLFormat(s[n]).main}},Ht=class extends Xt{getTimeTicks(t,e,i,s){let o,r=this,a=[],n={},{count:h=1,unitRange:l}=t,[d,c,p,u,g,f]=r.toParts(e),m=(e||0)%1e3;if(s??(s=1),U(e)){if(m=l>=Bt.second?0:h*Math.floor(m/h),l>=Bt.second&&(f=l>=Bt.minute?0:h*Math.floor(f/h)),l>=Bt.minute&&(g=l>=Bt.hour?0:h*Math.floor(g/h)),l>=Bt.hour&&(u=l>=Bt.day?0:h*Math.floor(u/h)),l>=Bt.day&&(p=l>=Bt.month?1:Math.max(1,h*Math.floor(p/h))),l>=Bt.month&&(c=l>=Bt.year?0:h*Math.floor(c/h)),l>=Bt.year&&(d-=d%h),l===Bt.week){h&&(e=r.makeTime(d,c,p,u,g,f,m));let t=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),i="DLMXJVS".indexOf(t);p+=-i+s+(i<s?-7:0)}e=r.makeTime(d,c,p,u,g,f,m),r.variableTimezone&&U(i)&&(o=i-e>4*Bt.month||r.getTimezoneOffset(e)!==r.getTimezoneOffset(i));let t=e,x=1;for(;t<i;)a.push(t),l===Bt.year?t=r.makeTime(d+x*h,0):l===Bt.month?t=r.makeTime(d,c+x*h):!o||l!==Bt.day&&l!==Bt.week?o&&l===Bt.hour&&h>1?t=r.makeTime(d,c,p,u+x*h):t+=l*h:t=r.makeTime(d,c,p+x*h*(l===Bt.day?1:7)),x++;a.push(t),l<=Bt.hour&&a.length<1e4&&a.forEach(t=>{t%18e5==0&&"000000000"===r.dateFormat("%H%M%S%L",t)&&(n[t]="day")})}return a.info=J(t,{higherRanks:n,totalRange:l*h}),a}},{isTouchDevice:Gt}
vendor: 8,715 bytes, line 1
1=z,Yt={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],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:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},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,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:t=>Math.sqrt(1-Math.pow(t-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:Gt?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:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},Ft=new Ht(Yt.time,Yt.lang),jt={defaultOptions:Yt,defaultTime:Ft,getOptions:function(){return Yt},setOptions:function(t){return tt(z,"setOptions",{options:t}),ft(!0,Yt,t),t.time&&Ft.update(Yt.time),t.lang&&"locale"in t.lang&&Ft.update({locale:t.lang.locale}),t.lang?.chartTitle&&(Yt.title=o(o({},Yt.title),{},{text:t.lang.chartTitle})),Yt}},{win:$t}=z,Vt=(t,e,i)=>`color-mix(in srgb,${t},${e} ${100*i}%)`,Ut=t=>ct(t)&&!!t&&"none"!==t;class _t{static parse(t){return t?new _t(t):_t.None}constructor(t){let e,i,s,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;const r=z.Color;if(r&&r!==_t)return new r(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(t=>new _t(t[1]));else if("string"==typeof t)for(this.input=t=_t.names[t.toLowerCase()]||t,s=_t.parsers.length;s--&&!i;)(e=(o=_t.parsers[s]).regex.exec(t))&&(i=o.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){let i=ft(e);return i.stops=[].slice.call(i.stops),this.stops.forEach((e,s)=>{i.stops[s]=[i.stops[s][0],e.get(t)]}),i}return i&&dt(i[0])?"rgb"===t||!t&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?`${i[3]}`:"rgba("+i.join(",")+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(dt(t)&&0!==t)if(dt(e[0]))for(let i=0;i<3;i++)e[i]+=kt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else _t.useColorMix&&Ut(this.input)&&(this.output=Vt(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!dt(i[0])||!dt(s[0]))return _t.useColorMix&&Ut(this.input)&&Ut(t.input)&&e<.99?Vt(this.input,t.input,e):t.input||"none";let o=1!==s[3]||1!==i[3],r=(t,s)=>t+(i[s]-t)*(1-e),a=s.slice(0,3).map(r).map(Math.round);return o&&a.push(r(s[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}_t.names={white:"#ffffff",black:"#000000"},_t.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[kt(t[1]),kt(t[2]),kt(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[kt(t[1]),kt(t[2]),kt(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[kt(t[1]+t[1],16),kt(t[2]+t[2],16),kt(t[3]+t[3],16),U(t[4])?kt(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[kt(t[1],16),kt(t[2],16),kt(t[3],16),U(t[4])?kt(t[4],16)/255:1]}}],_t.useColorMix=$t.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),_t.None=new _t("");let{parse:Zt}=_t,{win:Kt}=z;class qt{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t?.[0],i=t?.[1],s=this.now||0,o=[];if(1!==s&&e&&i)if(e.length===i.length&&s<1)for(let t=0;t<i.length;t++){let r=e[t],a=i[t],n=[];for(let t=0;t<a.length;t++){let e=r[t],i=a[t];dt(e)&&dt(i)&&("A"!==a[0]||4!==t&&5!==t)?n[t]=e+s*(i-e):n[t]=i}o.push(n)}else o=i;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)}run(t,e,i){let s=this,o=s.options,r=function(t){return!r.stopped&&s.step(t)},a=Kt.requestAnimationFrame||function(t){setTimeout(t,13)},n=function(){for(let t=0;t<qt.timers.length;t++)qt.timers[t]()||qt.timers.splice(t--,1);qt.timers.length&&a(n)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,r.elem=this.elem,r.prop=this.prop,r()&&1===qt.timers.push(r)&&a(n)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))}step(t){let e,i,s=+new Date,o=this.options,r=this.elem,a=o.complete,n=o.duration,h=o.curAnim;return r.attr&&!r.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,xt(h,function(t){!0!==t&&(i=!1)}),i&&a&&a.call(r),e=!1):(this.pos=o.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s,o,r,a,n=t.startX,h=t.endX,l=i.slice(),d=t.isArea,c=d?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,u=e?.slice();if(!u||p)return[l,l];function g(t,e){for(;t.length<o;){let i=t[0],s=e[o-t.length];if(s&&"M"===i[0]&&("C"===s[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){let e=t.pop();t.push(t[t.length-1],e)}}}function f(t){for(;t.length<o;){let e=t[Math.floor(t.length/c)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),d){let i=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(n&&h&&h.length){for(r=0;r<n.length;r++){if(n[r]===h[0]){s=r;break}if(n[0]===h[h.length-n.length+r]){s=r,a=!0;break}if(n[n.length-1]===h[h.length-n.length+r]){s=n.length-r;break}}void 0===s&&(u=[])}return u.length&&dt(s)&&(o=l.length+s*c,a?(g(u,l),f(l)):(g(l,u),f(u))),[u,l]}fillSetter(){qt.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,Zt(this.start).tweenTo(Zt(this.end),this.pos),void 0,!0)}}function Jt(t){return gt(t)?ft({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function Qt(t,e){let i=qt.timers.length;for(;i--;)qt.timers[i].elem!==t||e&&e!==qt.timers[i].prop||(qt.timers[i].stopped=!0)}qt.timers=[];
1let te={animate:function(t,e,i){let s,o,r,a,n="";gt(i)||(a=arguments,i={duration:a[2],easing:a[3],complete:a[4]}),dt(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=ft(e),xt(e,function(a,h){Qt(t,h),r=new qt(t,i,h),o=void 0,"d"===h&&pt(e.d)?(r.paths=r.initPath(t,t.pathArray,e.d),r.toD=e.d,s=0,o=1):t.attr?s=t.attr(h):(s=parseFloat(rt(t,h))||0,"opacity"!==h&&(n="px")),o||(o=a),"string"==typeof o&&o.match("px")&&(o=o.replace(/px/g,"")),r.run(s,o,n)})},animObject:Jt,getDeferredAnimation:function(t,e,i){let s=Jt(e),o=i?[i]:t.series,r=0,a=0;return o.forEach(t=>{let i=Jt(t.options.animation);r=gt(e)&&U(e.defer)?s.defer:Math.max(r,i.duration+i.defer),a=Math.min(s.duration,i.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-a),duration:Math.min(r,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=vt(t,e.options.chart.animation,!0)},stop:Qt},{SVG_NS:ee,win:ie}=z,{trustedTypes:se}=ie,oe=se&&ut(se.createPolicy)&&se.createPolicy("highcharts",{createHTML:t=>t}),re=oe?oe.createHTML(""):"";
vendor: 3,528 bytes, line 1
1class ae{static filterUserAttributes(t){return xt(t,(e,i)=>{let s=!0;-1===ae.allowedAttributes.indexOf(i)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(s=ct(e)&&ae.allowedReferences.some(t=>0===e.indexOf(t))),s||(It(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),ct(e)&&t[i]&&(t[i]=e.replace(/</g,"<"))}),t}static parseStyle(t){return t.split(";").reduce((t,e)=>{let i=e.split(":").map(t=>t.trim()),s=i.shift();return s&&i.length&&(t[s.replace(/-([a-z])/g,t=>t[1].toUpperCase())]=i.join(":")),t},{})}static setElementHTML(t,e){t.innerHTML=ae.emptyHTML,e&&new ae(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(t){return function t(e,i){let s;return Ct(e).forEach(function(e){let o,r=e.tagName,a=e.textContent?z.doc.createTextNode(e.textContent):void 0,n=ae.bypassHTMLFiltering;if(r)if("#text"===r)o=a;else if(-1!==ae.allowedTags.indexOf(r)||n){let s="svg"===r?ee:i.namespaceURI||ee,h=z.doc.createElementNS(s,r),l=e.attributes||{};xt(e,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(l[e]=t)}),G(h,n?l:ae.filterUserAttributes(l)),e.style&&V(h,e.style),a&&h.appendChild(a),t(e.children||[],h),o=h}else It(33,!1,void 0,{"Invalid tagName in config":r});o&&i.appendChild(o),s=o}),s}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=(new DOMParser).parseFromString(oe?oe.createHTML(t):t,"text/html")}catch{}if(!e){let i=j("div");i.innerHTML=t,e={body:i}}let s=(t,e)=>{let i=t.nodeName.toLowerCase(),o={tagName:i};"#text"===i&&(o.textContent=t.textContent||"");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=>{"data-style"===e.name?o.style=ae.parseStyle(e.value):t[e.name]=e.value}),o.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{s(t,e)}),e.length&&(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,t=>s(t,i)),i}}ae.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","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"],ae.allowedReferences=["https://","http://","mailto:","/","../","./","#"],ae.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"],ae.emptyHTML=re,ae.bypassHTMLFiltering=!1;let{defaultOptions:ne,defaultTime:he}=jt,{pageLang:le}=z,de={add:(t,e)=>
vendor: 10,551 bytes, line 1
1t+e,divide:(t,e)=>0!==e?t/e:"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!pt(t)&&t.map((i,s)=>pe(e.body,J(gt(i)?i:{"@this":i},{"@index":s,"@first":0===s,"@last":s===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>t*e,ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,ucfirst:Lt,unless:t=>!t},ce={};function pe(t="",e,i){let s,o,r,a=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'â= #\\(\\)]+)\\}","gu"),n=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),h=[],l=/f$/,d=/\.(\d)/,c=i?.options?.lang||ne.lang,p=i?.time||he,u=i?.numberFormatter||ue.bind(i),g=(t="")=>{let i;return"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:/^["'].+["']$/.test(t)?t.slice(1,-1):ot(t,e))},f=0;for(;null!==(s=a.exec(t));){let i=s,a=n.exec(s[1]);a&&(s=a,r=!0),o?.isBlock||(o={ctx:e,expression:s[1],find:s[0],isBlock:"#"===s[1].charAt(0),start:s.index,startInner:s.index+s[0].length,length:s[0].length});let l=(o.isBlock?i:s)[1].split(" ")[0].replace("#","");de[l]&&(o.isBlock&&l===o.fn&&f++,o.fn||(o.fn=l));let d="else"===s[1];if(o.isBlock&&o.fn&&(s[1]===`/${o.fn}`||d))if(f)!d&&f--;else{let e=o.startInner,i=t.substr(e,s.index-e);void 0===o.body?(o.body=i,o.startInner=s.index+s[0].length):o.elseBody=i,o.find+=i+s[0],d||(h.push(o),o=void 0)}else o.isBlock||h.push(o);if(a&&!o?.isBlock)break}return h.forEach(s=>{let o,r,{body:a,elseBody:h,expression:f,fn:m}=s;if(m){let t,n=[s],l=[],d=f.length,c=0;for(r=0;r<=d;r++){let e=f.charAt(r);t||'"'!==e&&"'"!==e?t===e&&(t=""):t=e,t||" "!==e&&r!==d||(l.push(f.substr(c,r-c)),c=r+1)}for(r=de[m].length;r--;)n.unshift(g(l[r+1]));o=de[m].apply(e,n),s.isBlock&&"boolean"==typeof o&&(o=pe(o?a:h,e,i))}else{let t=/^["'].+["']$/.test(f)?[f]:f.split(":");if(o=g(t.shift()||""),t.length&&"number"==typeof o){let e=t.join(":");if(l.test(e)){let t=parseInt((e.match(d)||["","-1"])[1],10);null!==o&&(o=u(o,t,c.decimalPoint,e.indexOf(",")>-1?c.thousandsSep:""))}else o=p.dateFormat(e,o)}n.lastIndex=0,n.test(s.find)&&ct(o)&&(o=`"${o}"`)}t=t.replace(s.find,vt(o,""))}),r?pe(t,e,i):t}function ue(t,e,i,s){e*=1;let o,r,[a,n]=(t=+t||0).toString().split("e").map(Number),h=this?.options?.lang||ne.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,d=e,c={};i??(i=h.decimalPoint),s??(s=h.thousandsSep),-1===e?e=Math.min(l,20):dt(e)?e&&n<0&&((r=e+n)>=0?(a=+a.toExponential(r).split("e")[0],e=r):(a=Math.floor(a),t=e<20?+(a*Math.pow(10,n)).toFixed(e):0,n=0)):e=2,n&&(e??(e=2),t=a),dt(e)&&e>=0&&(c.minimumFractionDigits=e,c.maximumFractionDigits=e),""===s&&(c.useGrouping=!1);let p=s||i,u=p?"en":this?.locale||h.locale||le,g=JSON.stringify(c)+u;return o=(ce[g]??(ce[g]=new Intl.NumberFormat(u,c))).format(t),p&&(o=o.replace(/([,\.])/g,"_$1").replace(/_\,/g,s??",").replace("_.",i??".")),(e||0!=+o)&&(!(n<0)||d)||(o="0"),n&&0!=+o&&(o+="e"+(n<0?"":"+")+n),o}let ge={dateFormat:function(t,e,i){return he.dateFormat(t,e,i)},format:pe,helpers:de,numberFormat:ue};(h=x||(x={})).rendererTypes={},h.getRendererType=function(t=r){return h.rendererTypes[t]||h.rendererTypes[r]},h.registerRendererType=function(t,e,i){h.rendererTypes[t]=e,(!r||i)&&(r=t,z.Renderer=e)};let fe=x;(y||(y={})).distribute=function t(e,i,s){let o,r,a,n=e,h=n.reducedLen||i,l=(t,e)=>t.target-e.target,d=[],c=e.length,p=[],u=d.push,g=!0,f=0;for(o=c;o--;)f+=e[o].size;if(f>h){if(At(e,(t,e)=>(e.rank||0)-(t.rank||0)),e[0].rank===e[e.length-1].rank){let t=[[0,c-1]];for(;t.length&&f>h;){let i=t.shift();if(!i)break;r=e[o=Math.floor((i[0]+i[1])/2)],wt(p,o)&&(f-=r.size),i[0]<o&&t.push([i[0],o-1]),o<i[1]&&t.push([o+1,i[1]])}}else for(o=c-1;f>h&&o>=0;)r=e[o],wt(p,o)&&(f-=r.size),o--;p.sort((t,e)=>e-t).forEach(t=>u.apply(d,e.splice(t,1)))}for(At(e,l),e=e.map(t=>({size:t.size,targets:[t.target],align:vt(t.align,.5)}));g;){for(o=e.length;o--;)r=e[o],a=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=Y(a-r.size*r.align,0,i-r.size);for(o=e.length,g=!1;o--;)o>0&&e[o-1].pos+e[o-1].size>e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),g=!0)}return u.apply(n,d),o=0,e.some(e=>{let r=0;return(e.targets||[]).some(()=>(n[o].pos=e.pos+r,void 0!==s&&Math.abs(n[o].pos-n[o].target)>s?(n.slice(0,o+1).forEach(t=>delete t.pos),n.reducedLen=(n.reducedLen||i)-.1*i,n.reducedLen>.1*i&&t(n,i,s),!0):(r+=n[o].size,o++,!1)))}),At(n,l),n};let me=y,{animate:xe,animObject:ye,stop:be}=te,{deg2rad:ve,doc:ke,svg:we,SVG_NS:Me,win:Se,isFirefox:Te}=z;class Ce{_defaultGetter(t){let e=vt(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=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(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let 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}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let o=this.renderer,r=o.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||ct(i)?i||"renderer":void 0;n&&(a&&wt(r,this),i=void 0);let h=vt(i,o[n],o),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*et(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*et(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(l),c[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=ye(vt(e,this.renderer.globalAnimation,!0)),o=s.defer;return ke.hidden&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),Pt(()=>{this.element&&xe(this,t,s)},o)):(this.attr(t,void 0,i||s.complete),xt(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),s=t.substring(i+1),o=t.substring(0,i);if(o&&"none"!==o&&z.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();let t=ke.createElementNS(Me,"tspan");G(t,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":o,"stroke-linejoin":"round"});let i=e.querySelector("textPath")||e;[].forEach.call(i.childNodes,e=>{let i=e.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(t=>i.removeAttribute(t)),t.appendChild(i)});let r=0;[].forEach.call(i.querySelectorAll("text tspan"),t=>{r+=Number(t.getAttribute("dy"))});let a=ke.createElementNS(Me,"tspan");a.textContent="â",G(a,{x:Number(e.getAttribute("x")),dy:-r}),t.appendChild(a),i.insertBefore(t,i.firstChild)}}attr(t,e,i,s){let o,r,a,{element:n}=this,h=Ce.symbolCustomAttribs,l=this;return"string"==typeof t&&void 0!==e&&(o=t,(t={})[o]=e),"string"==typeof t?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,n):(xt(t,function(e,i){a=!1,s||be(this,i),this.symbolName&&-1!==h.indexOf(i)&&(r||(this.symbolAttr(t),r=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,e,i,n)},this),this.afterSetters()),i&&i.call(this),l}clip(t){if(t&&!t.clipPath){let e=zt()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);J(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,o=(t.width||this.width||0)+i,r=(t.height||this.height||0)+s,a=$(i,e),n=$(s,e);return J(t,{x:a,y:n,width:$(o,e)-a,height:$(r,e)-n}),U(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s,o,r,a,n,h,l,d,c,p,u,g=this.renderer,f=[];tt(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(r=t[o],n=g.gradients,h=t.stops,c=i.radialReference,pt(r)&&(t[o]=r={x1:r[0],y1:r[1],x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&c&&!U(r.gradientUnits)&&(a=r,r=ft(r,g.getRadialAttr(c,a),{gradientUnits:"userSpaceOnUse"})),xt(r,function(t,e){"id"!==e&&f.push(e,t)}),xt(h,function(t){f.push(t)}),n[f=f.join(",")])p=n[f].attr("id");else{r.id=p=zt();let t=n[f]=g.createElement(o).attr(r).add(g.defs);t.radAttr=a,t.stops=[],h.forEach(function(e){0===e[1].indexOf("rgba")?(l=(s=_t.parse(e[1])).get("rgb"),d=s.get("a")):(l=e[1],d=1);let i=g.createElement("stop").attr({offset:e[0],"stop-color":l,"stop-opacity":d}).add(t);t.stops.push(i)})}u="url("+g.url+"#"+p+")",i.setAttribute(e,u),i.gradient=f,t.toString=function(){return u}}})}css(t){let e,i=this.styles,s={},o=this.element,r=!i;if(i&&xt(t,function(t,e){i&&i[e]!==t&&(s[e]=t,r=!0)}),r){i&&(t=J(i,s)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=kt(t.width)),J(this.styles,t),e&&!we&&this.renderer.forExport&&delete t.width;let r=Te&&t.fontSize||null;r&&(dt(r)||/^\d+$/.test(r))&&(t.fontSize+="px");let a=ft(t);o.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(t=>a&&delete a[t]),a.color&&(a.fill=a.color,delete a.color)),V(o,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){let s=(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=s.length;e--;)s[e]=""+kt(s[e])*vt(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t,e=this,{element:i={},renderer:s,stops:o}=e,r=i.ownerSVGElement,a="SPAN"===i.nodeName&&e.parentGroup||void 0;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,be
vendor: 4,481 bytes, line 1
1(e),e.clipPath&&r){let t=e.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){e.getAttribute("clip-path").indexOf(t.element.id)>-1&&e.removeAttribute("clip-path")}),e.clipPath=t.destroy()}if(o){for(let t of o)t.destroy();o.length=0}for(e.safeRemoveChild(i);a?.div&&0===a.div.childNodes.length;)t=a.parentGroup,e.safeRemoveChild(a.div),delete a.div,a=t;e.alignOptions&&q(s.alignedObjects,e),xt(e,(t,i)=>{(e[i]?.parentGroup===e||-1!==["connector","foreignObject"].indexOf(i))&&e[i]?.destroy?.(),delete e[i]})}dSetter(t,e,i){pt(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((t,e,i)=>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)}fillSetter(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,o,{element:r,renderer:a,styles:n,textStr:h}=this,{cache:l,cacheKeys:d}=a,c=r.namespaceURI===this.SVG_NS,p=vt(e,this.rotation,0),u=a.styledMode?r&&Ce.prototype.getStyle.call(r,"font-size"):n.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,n.fontWeight,n.lineClamp,n.textOverflow,u,p]);if(g&&!t&&(i=l[g]),!i||i.polygon){if(c||a.forExport){try{o=this.fakeTS&&function(t){let e=r.querySelector(".highcharts-text-outline");e&&V(e,{display:t})},ut(o)&&o("none"),i=r.getBBox?J({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight,x:0,y:0},ut(o)&&o("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,c&&(i.height=s={"11px,17":14,"13px,20":16}[`${u||""},${Math.round(s)}`]||s),p&&(i=this.getRotatedBox(i,p));let t={bBox:i};tt(this,"afterGetBBox",t),i=t.bBox}if(g&&(""===h||i.height>0)){for(;d.length>250;)delete l[d.shift()];l[g]||d.push(g),l[g]=i}return i}getBBoxCacheKey(t){if(U(this.textStr)){let e=""+this.textStr;return-1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),[e,...t].join(",")}}getRotatedBox(t,e){let{x:i,y:s,width:o,height:r}=t,{alignValue:a,translateY:n,rotationOriginX:h=0,rotationOriginY:l=0}=this,d=et(a),c=Number(this.element.getAttribute("y")||0)-(n?0:s),p=e*ve,u=(e-90)*ve,g=Math.cos(p),f=Math.sin(p),m=o*g,x=o*f,y=Math.cos(u),b=Math.sin(u),[[v,k],[w,M]]=[h,l].map(t=>[t-t*g,t*f]),S=i+d*(o-m)+v+M+c*y,T=S+m,C=T-r*y,A=C-m,P=s+c-d*x-k+w+c*b,L=P+x,O=L-r*b,E=O-x,I=Math.min(S,T,C,A),D=Math.min(P,L,O,E);return{x:I,y:D,width:Math.max(S,T,C,A)-I,height:Math.max(P,L,O,E)-D,polygon:[[S,P],[T,L],[C,O],[A,E]]}}getStyle(t){return Se.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=Me,this.element="span"===e||"body"===e?j(e):ke.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},tt(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=W(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(ct(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,e?.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){let{renderer:e}=this,i=ft(90===this.parentGroup?.rotation?{offsetX:-1,offsetY:-1}:{},gt(t)?t:{}),s=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${s})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=kt(e):""!==e&&(G(t=ke.createElementNS(Me,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i}symbolAttr(t){let e=this;
vendor: 7,653 bytes, line 1
1Ce.symbolCustomAttribs.forEach(function(i){e[i]=vt(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||ke.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=St(vt(t,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,foreignObject:i,matrix:s,padding:o,rotation:r=0,rotationOriginX:a,rotationOriginY:n,scaleX:h,scaleY:l,text:d,translateX:c=0,translateY:p=0}=this,u=[`translate(${c},${p})`];U(s)&&u.push("matrix("+s.join(",")+")"),r&&(u.push("rotate("+r+" "+(a??e.getAttribute("x")??this.x??0)+" "+(n??e.getAttribute("y")??this.y??0)+")"),"SPAN"!==d?.element.tagName||d?.foreignObject||d.attr({rotation:r,rotationOriginX:(a||0)-o,rotationOriginY:(n||0)-o})),(U(h)||U(l))&&u.push(`scale(${h??1} ${l??1})`),u.length&&!(d||this).textPath&&(i?.element||e).setAttribute(t,u.join(" "))}visibilitySetter(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let i,s,o,r,a,n=this.renderer,h=this.parentGroup,l=(h||n).element||n.box,d=this.element,c=l===n.box,p=!1,u=this.added;if(U(t)?(d.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):U(this[e])&&d.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&h&&(h.handleZ=!0),a=(i=l.childNodes).length-1;a>=0&&!p;a--)r=!U(o=(s=i[a]).getAttribute("data-z-index")),s!==d&&(t<0&&r&&!c&&!a?(l.insertBefore(d,i[a]),p=!0):(kt(o)<=t||r&&(!U(t)||t>=0))&&(l.insertBefore(d,i[a+1]),p=!0));p||(l.insertBefore(d,i[3*!!c]),p=!0)}return p}}Ce.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Ce.prototype.strokeSetter=Ce.prototype.fillSetter,Ce.prototype.yGetter=Ce.prototype.xGetter,Ce.prototype.matrixSetter=Ce.prototype.rotationOriginXSetter=Ce.prototype.rotationOriginYSetter=Ce.prototype.rotationSetter=Ce.prototype.scaleXSetter=Ce.prototype.scaleYSetter=Ce.prototype.translateXSetter=Ce.prototype.translateYSetter=Ce.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};let Ae=Ce;class Pe extends Ae{constructor(t,e,i,s,o,r,a,n,h,l){let d;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=s,this.anchorX=r,this.anchorY=a,this.baseline=h,this.className=l,this.addClass("button"===l?"highcharts-no-tooltip":"highcharts-label"),l&&this.addClass("highcharts-"+l),this.text=t.text(void 0,0,0,n).attr({zIndex:1}),"string"==typeof o&&((d=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=Pe.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=et(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&dt(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(t){if(t){let e={};t=ft(t),Pe.textProps.forEach(i=>{void 0!==t[i]&&(e[i]=t[i],delete t[i])}),this.text.css(e),"fontSize"in e||"fontWeight"in e||"width"in e?this.updateTextPadding():"textOverflow"in e&&this.updateBoxSize()}return Ae.prototype.css.call(this,t)}destroy(){Tt(this.element,"mouseenter"),Tt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Ae.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();let{padding:i,height:s=0,translateX:o=0,translateY:r=0,width:a=0}=this,n=vt(this.paddingLeft,i),h=e??(this.rotation||0),l={width:a,height:s,x:o+this.bBox.x-n,y:r+this.bBox.y-i+this.baselineOffset};return h&&(l=this.getRotatedBox(l,h)),l}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:vt(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&U(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){dt(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()}textSetter(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t,e=this.text,i={},s=this.padding,o=this.bBox=dt(this.widthSetting)&&dt(this.heightSetting)&&!this.textAlign||!U(e.textStr)?Pe.emptyBBox:e.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*s;let r=this.renderer.fontMetrics(e);if(this.baselineOffset=s+Math.min((this.text.firstLineMetrics||r).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-r.h)/2),this.needsBox&&!e.textPath){if(!this.box){let t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)}i.x=t=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(J(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text,e=t.styles.textAlign||this.textAlign;if(!t.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,s=(this.paddingLeft??this.padding)+et(e)*(this.widthSetting??this.bBox.width);(s!==t.x||i!==t.y)&&(t.attr({align:e,x:s}),void 0!==i&&t.attr("y",i)),t.x=s,t.y=i}}widthSetter(t){this.widthSetting=dt(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=vt(this.paddingLeft,t),i=vt(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(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)}ySetter(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}function Le(t,e,i,s,o){let r=[];if(o){let a=o.start||0,n=o.end||0,h=vt(o.r,i),l=vt(o.r,s||i),d=1e-4>Math.abs(n-a-2*Math.PI);d&&(a=Math.PI/2,n=2.5*Math.PI-1e-4);let c=o.innerR,p=vt(o.open,d),u=d?0:Math.cos(a),g=d?1:Math.sin(a),f=d?0:Math.cos(n),m=d?1:Math.sin(n),x=vt(o.longArc,n-a-Math.PI<1e-4?0:1),y=["A",h,l,0,x,vt(o.clockwise,1),t+(d?.001:h*f),e+l*m];y.params={start:a,end:n,cx:t,cy:e},r.push(["M",t+h*u,e+l*g],y),U(c)&&((y=["A",c,c,0,x,U(o.clockwise)?1-o.clockwise:0,t+(d?-.001:c*u),e+c*g]).params={start:n,end:a,cx:t,cy:e}
vendor: 4,231 bytes, line 1
1,r.push(p?["M",t+c*f,e+c*m]:["L",t+c*f,e+c*m],y)),p||r.push(["Z"])}return r}function Oe(t,e,i,s,o){return o?.r?Ee(t,e,i,s,o):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function Ee(t,e,i,s,o){let r=o?.r||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}Pe.emptyBBox={width:0,height:0,x:0,y:0},Pe.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let Ie={arc:Le,callout:function(t,e,i,s,o){let r=Math.min(o?.r||0,i,s),a=r+6,n=o?.anchorX,h=o?.anchorY||0,l=Ee(t,e,i,s,{r:r});if(!dt(n)||n<i&&n>0&&h<s&&h>0)return l;if(t+n>i-a)if(h>e+a&&h<e+s-a)l.splice(3,1,["L",t+i,h-6],["L",t+i+6,h],["L",t+i,h+6],["L",t+i,e+s-r]);else if(n<i){let o=h<e+a,d=o?e:e+s;l.splice(o?2:5,0,["L",n,h],["L",t+i-r,d])}else l.splice(3,1,["L",t+i,s/2],["L",n,h],["L",t+i,s/2],["L",t+i,e+s-r]);else if(t+n<a)if(h>e+a&&h<e+s-a)l.splice(7,1,["L",t,h+6],["L",t-6,h],["L",t,h-6],["L",t,e+r]);else if(n>0){let i=h<e+a,o=i?e:e+s;l.splice(i?1:6,0,["L",n,h],["L",t+r,o])}else l.splice(7,1,["L",t,s/2],["L",n,h],["L",t,s/2],["L",t,e+r]);else h>s&&n<i-a?l.splice(5,1,["L",n+6,e+s],["L",n,e+s+6],["L",n-6,e+s],["L",t+r,e+s]):h<0&&n>a&&l.splice(1,1,["L",n-6,e],["L",n,e-6],["L",n+6,e],["L",i-r,e]);return l},circle:function(t,e,i,s){return Le(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},rect:Oe,roundedRect:Ee,square:Oe,triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]}},{doc:De,SVG_NS:Be,win:ze}=z,Ne=(t,e)=>t.substring(0,e)+"â¦",Re=class{constructor(t){const e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e?.lineHeight,this.textOutline=e?.textOutline,this.ellipsis="ellipsis"===e?.textOverflow,this.lineClamp=e?.lineClamp,this.noWrap="nowrap"===e?.whiteSpace}buildSVG(){let t=this.svgElement,e=t.element,i=t.renderer,s=vt(t.textStr,"").toString(),o=-1!==s.indexOf("<"),r=e.childNodes,a=!t.added&&i.box,n=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(n!==t.textCache){t.textCache=n,delete t.actualWidth;for(let t=r.length;t--;)e.removeChild(r[t]);if(o||this.ellipsis||this.width||t.textPath||-1!==s.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(s))){if(""!==s){a&&a.appendChild(e);let i=new ae(s);this.modifyTree(i.nodes),i.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("â¦")&&t.attr("title",this.unescapeEntities(t.textStr||"",["<",">"])),a&&a.removeChild(e)}}else e.appendChild(De.createTextNode(this.unescapeEntities(s)));ct(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,i=G(e.element,"x");for(e.firstLineMetrics=void 0;(t=e.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)e.element.removeChild(t);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(t,s)=>{t.nextSibling&&t.previousSibling&&(0===s&&1===t.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(t.previousSibling)),G(t,{dy:this.getLineHeight(t.nextSibling),x:i}))});let s=this.width||0;if(!s)return;let o=(t,o)=>{let r=t.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),n=!this.noWrap&&(a.length>1||e.element.childNodes.length>1),h=this.getLineHeight(o),l=Math.max(0,s-.8*h),d=0,c=e.actualWidth;if(n){let r=[],n=[];for(;o.firstChild&&o.firstChild!==t;)n.push(o.firstChild),o.removeChild(o.firstChild);for(;a.length;)if(a.length&&!this.noWrap&&d>0&&(r.push(t.textContent||""),t.textContent=a.join(" ").replace(/- /g,"-")),this.truncate(t,void 0,a,0===d&&c||0,s,l,(t,e)=>a.slice(0,e).join(" ").replace(/- /g,"-")),c=e.actualWidth,d++,this.lineClamp&&d>=this.lineClamp){a.length&&(this.truncate(t,t.textContent||"",void 0,0,s,l,Ne),t.textContent=t.textContent?.replace("â¦","")+"â¦");break}
vendor: 4,582 bytes, line 1
1n.forEach(e=>{o.insertBefore(e,t)}),r.forEach(e=>{o.insertBefore(De.createTextNode(e),t);let s=De.createElementNS(Be,"tspan");s.textContent="â",G(s,{dy:h,x:i}),o.insertBefore(s,t)})}else this.ellipsis&&r&&this.truncate(t,r,void 0,0,s,l,Ne)},r=t=>{[].slice.call(t.childNodes).forEach(i=>{i.nodeType===ze.Node.TEXT_NODE?o(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),r(i))})};r(e.element)}getLineHeight(t){let e=t.nodeType===ze.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(i,s)=>{let{attributes:o={},children:r,style:a={},tagName:n}=i,h=this.renderer.styledMode;if("b"===n||"strong"===n?h?o.class="highcharts-strong":a.fontWeight="bold":("i"===n||"em"===n)&&(h?o.class="highcharts-emphasized":a.fontStyle="italic"),a?.color&&(a.fill=a.color),"br"===n){o.class="highcharts-br",i.textContent="â";let e=t[s+1];e?.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else"a"===n&&r&&r.some(t=>"#text"===t.tagName)&&(i.children=[{children:r,tagName:"tspan"}]);"#text"!==n&&"a"!==n&&(i.tagName="tspan"),J(i,{attributes:o,style:a}),r&&r.filter(t=>"#text"!==t.tagName).forEach(e)};t.forEach(e),tt(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,i,s,o,r,a){let n,h,l=this.svgElement,{rotation:d}=l,c=[],p=i&&!s?1:0,u=(e||i||"").length,g=u;i||(o=r);let f=function(e,o){let r=o||e,a=t.parentNode;if(a&&void 0===c[r]&&a.getSubStringLength)try{c[r]=s+a.getSubStringLength(0,i?r+1:r)}catch{}return c[r]};if(l.rotation=0,s+(h=f(t.textContent.length))>o){for(;p<=u;)g=Math.ceil((p+u)/2),i&&(n=a(i,g)),h=f(g,n&&n.length-1),p===u?p=u+1:h>o?u=g-1:p=g;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=n||a(e||i,g)),this.ellipsis&&h>o&&this.truncate(t,t.textContent||"",void 0,0,o,r,Ne)}i&&i.splice(0,g),l.actualWidth=h,l.rotation=d}unescapeEntities(t,e){return xt(this.renderer.escapes,function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),s))}),t}},{defaultOptions:We}=jt,{charts:Xe,deg2rad:He,doc:Ge,isFirefox:Ye,isMS:Fe,isWebKit:je,noop:$e,SVG_NS:Ve,symbolSizes:Ue,win:_e}=z;class Ze{constructor(t,e,i,s,o,r,a){let n,h;this.x=0,this.y=0;const l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=l.element;a||l.css(this.getStyle(s||{})),t.appendChild(d),G(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&G(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Ge.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=l.getStyle("font-size"),this.setSize(e,i,!1),Ye&&t.getBoundingClientRect&&((n=function(){V(t,{left:0,top:0}),h=t.getBoundingClientRect(),V(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=W(_e,"resize",n))}definition(t){return new ae([t]).addToDOM(this.defs.element)}getReferenceURL(){if((Ye||je)&&Ge.getElementsByTagName("base").length){if(!U(e)){let t=zt(),i=new ae([{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(#${t})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Ge.body);V(i,{position:"fixed",top:0,left:0,zIndex:9e5});let s=Ge.elementFromPoint(6,6);e="hitme"===s?.id,Ge.body.removeChild(i)}if(e)return St(_e.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=J({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}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),_(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t){return new this.Element(this,t)}getRadialAttr(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]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map(e=>`${e}-${t[e]}
1`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=ft({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e}getShadowFilterContent(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}}]}buildText(t){new Re(t).buildSVG()}getContrast(t){if("transparent"===t)return"#000000";let e=_t.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(dt(e[0])||!_t.useColorMix){let t=e.map(t=>{let e=t/255;return e<=.04?e/12.92:Math.pow((e+.055)/1.055,2.4)}),i=.2126*t[0]+.7152*t[1]+.0722*t[2];return 1.05/(i+.05)>(i+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,s,o={},r,a,n,h,l){let d=this.label(t,e,i,h,void 0,void 0,l,void 0,"button"),c=this.styledMode,p=arguments,u=0;o=ft(We.global.buttonTheme,o),c&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let g=o.states||{},f=o.style||{};delete o.states,delete o.style;let m=[ae.filterUserAttributes(o)],x=[f];return c||["hover","select","disabled"].forEach((t,e)=>{m.push(ft(m[0],ae.filterUserAttributes(p[e+5]||g[t]||{}))),x.push(m[e+1].style),delete m[e+1].style}),W(d.element,Fe?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),W(d.element,Fe?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=(t=0)=>{if(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(m[t]);let e=x[t];gt(e)&&d.css(e)}},d.attr(m[0]),!c&&(d.css(J({cursor:"default"},f)),l&&d.text.css({pointerEvents:"none"})),d.on("touchstart",t=>t.stopPropagation()).on("click",function(t){3!==u&&s?.call(d,t)})}crispLine(t,e){let[i,s]=t;return U(i[1])&&i[1]===s[1]&&(i[1]=s[1]=$(i[1],e)),U(i[2])&&i[2]===s[2]&&(i[2]=s[2]=$(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return pt(t)?e.d=t:gt(t)&&J(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=gt(t)?t:void 0===t?{}:{x:t,y:e,r:i},o=this.createElement("circle");return o.xSetter=o.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},o.attr(s)}arc(t,e,i,s,o,r){let a;gt(t)?(e=(a=t).y,i=a.r,s=a.innerR,o=a.start,r=a.end,t=a.x):a={innerR:s,start:o,end:r};let n=this.symbol("arc",t,e,i,i,a);return n.r=i,n}rect(t,e,i,s,o,r){let a=gt(t)?t:void 0===t?{}:{x:t,y:e,r:o,width:Math.max(i||0,0),height:Math.max(s||0,0)},n=this.createElement("rect");return this.styledMode||(void 0!==r&&(a["stroke-width"]=r,J(a,n.crisp(a))),a.fill="none"),n.rSetter=function(t,e,i){n.r=t,G(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(a)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(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:vt(i,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,o,r){let a={preserveAspectRatio:"none"};dt(e)&&(a.x=e),dt(i)&&(a.y=i),dt(s)&&(a.width=s),dt(o)&&(a.height=o);let n=this.createElement("image").attr(a),h=function(e){n.attr({href:t}),r.call(n,e)};if(r){n.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e=new _e.Image;W(e,"load",h),e.src=t,e.complete&&h({})}else n.attr({href:t});return n}symbol(t,e,i,s,o,r){let a,n,h,l,d=this,c=/^url\((.*?)\)$/,p=c.test(t),u=!p&&(this.symbols[t]?t:"circle"),g=u&&this.symbols[u];if(g)"number"==typeof e&&(n=g.call(this.symbols,e||0,i||0,s||0,o||0,r)),a=this.path(n),d.styledMode||a.attr("fill","none"),J(a,{symbolName:u||void 0,x:e,y:i,width:s,height:o}),r&&J(a,r);else if(p){h=t.match(c)[1];let s=a=this.image(h);s.imgwidth=vt(r?.width,Ue[h]?.width),s.imgheight=vt(r?.height,Ue[h]?.height),l=t=>t.attr({width:t.width,height:t.height}),["width","height"].forEach(t=>{s[`${t}Setter`]=function(t,e){this[e]=t;let{alignByTranslate:i,element:s,width:o,height:a,imgwidth:n,imgheight:h}=this,l="width"===e?n:h,d=1;r&&"within"===r.backgroundSize&&o&&a&&n&&h?(d=Math.min(o/n,a/h),G(s,{width:Math.round(n*d),height:Math.round(h*d)})):s&&l&&s.setAttribute(e,l),!i&&n&&h&&this.translate(((o||0)-n*d)/2,((a||0)-h*d)/2)}}),U(e)&&s.attr({x:e,y:i}),s.isImg=!0,U(s.imgwidth)&&U(s.imgheight)?l(s):(s.attr({width:0,height:0}),j("img",{onload:function(){let t=Xe[d.chartIndex];0===this.width&&(V(this,{position:"absolute",top:"-999em"}),Ge.body.appendChild(this)),Ue[h]={width:this.width,height:this.height},s.imgwidth=this.width,s.imgheight=this.height,s.element&&l(s),this.parentNode&&this.parentNode.removeChild(this),d.asyncCounter--,d.asyncCounter||!t||t.hasLoaded||t.onload()},src:h}),this.asyncCounter++)}return a}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let o={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);o.x=Math.round(e||0),i&&(o.y=Math.round(i)),U(t)&&(o.text=t);let r=this.createElement("text").attr(o);return s&&(!this.forExport||this.allowHTML)||(r.xSetter=function(t,e,
1i){let s=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(let i,r=0;r<s.length;r++)(i=s[r]).getAttribute(e)===o&&i.setAttribute(e,t);i.setAttribute(e,t)}),r}fontMetrics(t){let e=dt(t)?t:kt(Ae.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e);return{h:i,b:Math.round(.8*i),f:e}}rotCorr(t,e,i){let s=t;return e&&i&&(s=Math.max(s*Math.cos(e*He),4)),{x:-t/3*Math.sin(e*He),y:s}}pathToSegments(t){let e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<t.length;o++)ct(i[0])&&dt(t[o])&&i.length===s[i[0].toUpperCase()]&&t.splice(o,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[o]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[o]);return e.push(i.slice(0)),e}label(t,e,i,s,o,r,a,n,h){return new Pe(this,t,e,i,s,o,r,a,n,h)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}J(Ze.prototype,{Element:Ae,SVG_NS:Ve,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Ie,draw:$e}),fe.registerRendererType("svg",Ze,!0);let{composed:Ke,isFirefox:qe}=z;function Je(t,e,i){let s=this.div?.style;Ae.prototype[`${e}Setter`].call(this,t,e,i),s&&(i.style[e]=s[e]=t)}let Qe=(t,e)=>{if(!t.div){let i=G(t.element,"class"),s=t.css,r=j("div",i?{className:i}:void 0,o(o({position:"absolute",left:`${t.translateX||0}px`,top:`${t.translateY||0}px`},t.styles),{},{display:t.display,opacity:t.opacity,visibility:t.visibility}),t.parentGroup?.div||e);t.classSetter=(t,e,i)=>{i.setAttribute("class",t),r.className=t},t.translateXSetter=t.translateYSetter=(e,i)=>{t[i]=e,r.style["translateX"===i?"left":"top"]=`${e}px`,t.doTransform=!0},t.scaleXSetter=t.scaleYSetter=(e,i)=>{t[i]=e,t.doTransform=!0},t.opacitySetter=t.visibilitySetter=Je,t.css=e=>(s.call(t,e),e.cursor&&(r.style.cursor=e.cursor),e.pointerEvents&&(r.style.pointerEvents=e.pointerEvents),t),t.on=function(){return Ae.prototype.on.apply({element:r,onEvents:t.onEvents},arguments),t},t.div=r}return t.div};class ti extends Ae{static compose(t){wt(Ke,this.compose)&&(t.prototype.html=function(t,e,i){return new ti(this,"span").attr({text:t,x:Math.round(e),y:Math.round(i)})})}constructor(t,e){super(t,e),ti.useForeignObject?this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}):this.css(o({position:"absolute"},t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}css(t){let e,{element:i}=this,s="SPAN"===i.tagName&&t&&"width"in t,o=s&&t.width;return s&&(delete t.width,this.textWidth=kt(o)||void 0,e=!0),"ellipsis"===t?.textOverflow&&(t.overflow="hidden",t.whiteSpace="nowrap"),t?.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),dt(Number(t?.fontSize))&&(t.fontSize+="px"),J(this.styles,t),V(i,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let{element:t,foreignObject:e,oldTextWidth:i,renderer:s,rotation:o,rotationOriginX:r,rotationOriginY:a,scaleX:n,scaleY:h,styles:{display:l="inline-block",whiteSpace:d},textAlign:c="left",textWidth:p,translateX:u=0,translateY:g=0,x:f=0,y:m=0}=this,x=()=>this.textPxLength?this.textPxLength:(V(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth);if(e||V(t,{marginLeft:`${u}px`,marginTop:`${g}px`}),"SPAN"===t.tagName){let u,g=[o,c,t.innerHTML,p,this.textAlign].join(","),y=-1*this.parentGroup?.padding||0;if(p!==i){let e=x(),r=p||0,a=!s.styledMode&&""===t.style.textOverflow&&t.style.webkitLineClamp;(r>i||e>r||a)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(V(t,{width:(o||n||e>r)&&dt(p)?p+"px":a?Math.min(e+1,r)+"px":"auto",display:l,whiteSpace:d||"normal"}),this.oldTextWidth=p)}e&&(V(t,{display:"inline-block",verticalAlign:"top"}),e.attr({width:s.width,height:s.height})),g!==this.cTT&&(u=s.fontMetrics(t).b,U(o)&&!e&&(o!==(this.oldRotation||0)||c!==this.oldAlign)&&V(t,{transform:`rotate(${o}deg)`,transformOrigin:`${y}% ${y}px`}
1),this.getSpanCorrection(!U(o)&&!this.textWidth&&this.textPxLength||t.offsetWidth,u,et(c)));let{xCorr:b=0,yCorr:v=0}=this,k={left:`${f+b}px`,top:`${m+v}px`,textAlign:c,transformOrigin:`${(r??f)-b-f-y}px ${(a??m)-v-m-y}px`};(n||h)&&(k.transform=`scale(${n??1},${h??1})`),e?(super.updateTransform(),dt(f)&&dt(m)?(e.attr({x:f+b,y:m+v,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),V(t,{display:l,textAlign:c})):qe&&e.attr({width:0,height:0})):V(t,k),this.cTT=g,this.oldRotation=o,this.oldAlign=c}}add(t){let{foreignObject:e,renderer:i}=this,s=i.box.parentNode,o=[];if(e)e.add(t),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(e));else{let e;if(this.parentGroup=t,t&&!(e=t.div)){let i=t;for(;i;)o.push(i),i=i.parentGroup;for(let t of o.reverse())e=Qe(t,s)}(e||s).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,ae.setElementHTML(this.element,t??""),this.textStr=t,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}}let ei=ti.prototype;ei.visibilitySetter=ei.opacitySetter=Je,ei.ySetter=ei.rotationSetter=ei.rotationOriginXSetter=ei.rotationOriginYSetter=ei.xSetter,(l=b||(b={})).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]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},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:"#333333",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:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},l.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:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let ii=b;(v||(v={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},xt(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(Tt(t,i,t.eventOptions[i]),delete t.eventOptions[i]),ut(e)&&(t.eventOptions[i]=e,W(t,i,e,{order:0})))})};let si=v,{deg2rad:oi}=z,ri=class{constructor(t,e,i,s,o){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,tt(this,"init"),i||s||this.addLabel()}addLabel(){let t,e,i,s=this,o=s.axis,r=o.options,a=o.chart,n=o.categories,h=o.logarithmic,l=o.names,d=s.pos,c=vt(s.options?.labels,r.labels),p=o.tickPositions,u=d===p[0],g=d===p[p.length-1],f=(!c.step||1===c.step)&&1===o.tickInterval,m=p.info,x=s.label,y=this.parameters.category||(n?vt(n[d],l[d],d):d);h&&dt(y)&&(y=F(h.lin2log(y))),o.dateTime&&(m?t=(e=a.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid?.enabled&&m.higherRanks[d]||m.unitName])).main:dt(y)&&(t=o.dateTime.getXDateFormat(y,r.dateTimeLabelFormats||{}))),s.isFirst=u,s.isLast=g;let b={axis:o,chart:a,dateTimeLabelFormat:t,isFirst:u,isLast:g,pos:d,tick:s,tickPositionInfo:m,value:y};tt(this,"labelFormat",b);let v=t=>c.formatter?c.formatter.call(t,t):c.format?(t.text=o.defaultLabelFormatter.call(t),ge.format(c.format,t,a)):o.defaultLabelFormatter.call(t),k=v.call(b,b),w=e?.list;s.shortenLabel=w?function(){for(i=0;i<w.length;i++)if(J(b,{dateTimeLabelFormat:w[i]}),x.attr({text:v.call(b,b)}),x.getBBox().width<o.getSlotWidth(s)-2*(c.padding||0))return;x.attr({text:""})}:void 0,f&&o._addedPlotLB&&s.moveLabel(k,c),U(x)||s.movedLabel?x&&x.textStr!==k&&!f&&(!x.textWidth||c.style.width||x.styles.width||x.css({width:null}),x.attr({text:k}
1),x.textPxLength=x.getBBox().width):(s.label=x=s.createLabel(k,c),s.rotation=0)}createLabel(t,e,i){let s=this.axis,{renderer:o,styledMode:r}=s.chart,a=e.style.whiteSpace,n=U(t)&&e.enabled?o.text(t,i?.x,i?.y,e.useHTML).add(s.labelGroup):void 0;return n&&(r||n.css(ft(e.style)),n.textPxLength=n.getBBox().width,!r&&a&&n.css({whiteSpace:a})),n}destroy(){_(this,this.axis)}getPosition(t,e,i,s){let o=this.axis,r=o.chart,a=s&&r.oldChartHeight||r.chartHeight,n={x:t?F(o.translate(e+i,void 0,void 0,s)+o.transB):o.left+o.offset+(o.opposite?(s&&r.oldChartWidth||r.chartWidth)-o.right-o.left:0),y:t?a-o.bottom+o.offset-(o.opposite?o.height:0):F(a-o.translate(e+i,void 0,void 0,s)-o.transB)};return n.y=Y(n.y,-1e9,1e9),tt(this,"afterGetPosition",{pos:n}),n}getLabelPosition(t,e,i,s,o,r,a,n){let h,l,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,u=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},f=s||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),m=o.distance,x={};return h=0===d.side?i.rotation?-m:-i.getBBox().height:2===d.side?g.y+m:Math.cos(i.rotation*oi)*(g.y-i.getBBox(!1,0).height/2),U(o.y)&&(h=0===d.side&&d.horiz?o.y+h:o.y),t=t+vt(o.x,[0,1,0,-1][d.side]*m)+f+g.x-(r&&s?r*c*(p?-1:1):0),e=e+h-(r&&!s?r*c*(p?1:-1):0),u&&(l=a/(n||1)%u,d.opposite&&(l=u-l-1),e+=l*(d.labelOffset/u)),x.x=t,x.y=Math.round(e),tt(this,"afterGetLabelPosition",{pos:x,tickmarkOffset:r,index:a}),x}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(t,e,i,s,o=!1,r){return r.crispLine([["M",t,e],["L",t+(o?0:-i),e+(o?i:0)]],s)}handleOverflow(t){let e,i=this.axis,s=i.options.labels,o=t.x,r=i.chart.chartWidth,a=i.chart.spacing,n=vt(i.labelLeft,Math.min(i.pos,a[3])),h=vt(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,r-a[1])),l=this.label,d=this.rotation,c=et(i.labelAlign||l.attr("align")),p=l.getBBox().width,u=i.getSlotWidth(this),g=u,f=1;d||"justify"!==s.overflow?d<0&&o-c*p<n?e=Math.round(o/Math.cos(d*oi)-n):d>0&&o+c*p>h&&(e=Math.round((r-o)/Math.cos(d*oi))):(o-c*p<n?g=t.x+g*(1-c)-n:o+(1-c)*p>h&&(g=h-t.x+g*c,f=-1),(g=Math.min(u,g))<u&&"center"===i.labelAlign&&(t.x+=f*(u-g-c*(u-Math.min(p,g)))),(p>g||i.autoRotation&&l?.styles?.width)&&(e=g)),e&&l&&(this.shortenLabel?this.shortenLabel():l.css(J({},{width:Math.floor(e)+"px",lineClamp:+!i.isRadial})))}moveLabel(t,e){let i,s=this,o=s.label,r=s.axis,a=!1;o&&o.textStr===t?(s.movedLabel=o,a=!0,delete s.label):xt(r.ticks,function(e){a||e.isNew||e===s||!e.label||e.label.textStr!==t||(s.movedLabel=e.label,a=!0,e.labelPos=s.movedLabel.xy,delete e.label)}),!a&&(s.labelPos||o)&&(i=s.labelPos||o.xy,s.movedLabel=s.createLabel(t,e,i),s.movedLabel&&s.movedLabel.attr({opacity:0}))}render(t,e,i){let s=this.axis,o=s.horiz,r=this.pos,a=vt(this.tickmarkOffset,s.tickmarkOffset),n=this.getPosition(o,r,a,e),h=n.x,l=n.y,d=s.pos,c=d+s.len,p=o?h:l,u=vt(i,this.label?.newOpacity,1);!s.chart.polar&&(F(p)<d||p>c)&&(i=0),i??(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(n,i),this.renderLabel(n,e,u,t),this.isNew=!1,tt(this,"afterRender")}renderGridLine(t,e){let i,s=this.axis,o=s.options,r={},a=this.pos,n=this.type,h=vt(this.tickmarkOffset,s.tickmarkOffset),l=s.chart.renderer,d=this.gridLine,c=o.gridLineWidth,p=o.gridLineColor,u=o.gridLineDashStyle;"minor"===this.type&&(c=o.minorGridLineWidth,p=o.minorGridLineColor,u=o.minorGridLineDashStyle),d||(s.chart.styledMode||(r.stroke=p,r["stroke-width"]=c||0,r.dashstyle=u),n||(r.zIndex=1),t&&(e=0),this.gridLine=d=l.path().attr(r).addClass("highcharts-"+(n?n+"-":"")+"grid-line").add(s.gridGroup)),d&&(i=s.getPlotLinePath({value:a+h,lineWidth:d.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&d[t||this.isNew?"attr":"animate"]({d:i,opacity:e})}renderMark(t,e){let i=this.axis,s=i.options,o=i.chart.renderer,r=this.type,a=i.tickSize(r?r+"Tick":"tick"),n=t.x,h=t.y,l=vt(s["minor"!==r?"tickWidth":"minorTickWidth"],!r&&i.isXAxis?1:0),d=s["minor"!==r?"tickColor":"minorTickColor"],c=this.mark,p=!c;a&&(i.opposite&&(a[0]=-a[0]),!c&&(this.mark=c=o.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:d,"stroke-width":l})),c[p?"attr":"animate"]({d:this.getMarkPath(n,h,a[0],c.strokeWidth(),i.horiz,o),opacity:e}))}renderLabel(t,e,i,s){let o=this.axis,r=o.horiz,a=o.options,n=this.label,h=a.labels,l=h.step,d=vt(this.tickmarkOffset,o.tickmarkOffset),c=t.x,p=t.y,u=!0;n&&dt(c)&&(n.xy=t=this.getLabelPosition(c,p,n,r,h,d,s,l),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?u=!1:r&&!e&&0!==i&&this.handleOverflow(t),l&&s%l&&(u=!1),u&&dt(t.y)?(t.opacity=i,n[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(n.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0}
1,void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:ai}=te,{xAxis:ni,yAxis:hi}=ii,{defaultOptions:li}=jt,{registerEventOptions:di}=si,{deg2rad:ci}=z,pi=(t,e)=>mt(e,void 0,void 0,vt(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount);J(li,{xAxis:ni,yAxis:ft(ni,hi)});class ui{constructor(t,e,i){this.init(t,e,i)}init(t,e,i=this.coll){let s="xAxis"===i,o=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=o,this.isXAxis=s,this.coll=i,tt(this,"init",{userOptions:e}),this.opposite=vt(e.opposite,this.opposite),this.side=vt(e.side,this.side,o?2*!this.opposite:this.opposite?1:3),this.setOptions(e);let r=this.options,a=r.labels;this.type??(this.type=r.type||"linear"),this.uniqueNames??(this.uniqueNames=r.uniqueNames??!0),tt(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=vt(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===this.type||!0===r.categories,this.categories=pt(r.categories)&&r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=U(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.max=void 0,this.min=void 0;let n=vt(r.crosshair,Ct(t.options.tooltip.crosshairs)[+!s]);this.crosshair=!0===n?{}:n,-1===t.axes.indexOf(this)&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),Dt(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!U(this.reversed)&&(this.reversed=!0),this.labelRotation=dt(a.rotation)?a.rotation:void 0,di(this,r),tt(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=ft(e,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},li[this.coll],t),tt(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t,e,i=this.axis,s=this.chart,{numberFormatter:o}=s,r=dt(this.value)?this.value:NaN,a=i.chart.time,n=i.categories,h=this.dateTimeLabelFormat,l=li.lang,d=l.numericSymbols,c=l.numericSymbolMagnitude||1e3,p=i.logarithmic?Math.abs(r):i.tickInterval,u=d?.length;if(n)e=`${this.value}`;else if(h)e=a.dateFormat(h,r,!0);else if(u&&d&&p>=1e3)for(;u--&&void 0===e;)p>=(t=Math.pow(c,u+1))&&10*r%t==0&&null!==d[u]&&0!==r&&(e=o(r/t,-1,void 0,void 0,s)+d[u]);return e??(e=o(r,-1,void 0,1e4>Math.abs(r)?"":void 0,s)),e}getSeriesExtremes(){let t,e=this;tt(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(i=>{if(i.reserveSpace()){let s,o,r,a=i.options,n=a.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(n||0)&&(n=void 0),e.isXAxis)(s=i.getColumn("x")).length&&(s=e.logarithmic?s.filter(t=>t>0):s,o=(t=i.getXExtremes(s)).min,r=t.max,dt(o)||o instanceof Date||(s=s.filter(dt),o=(t=i.getXExtremes(s)).min,r=t.max),s.length&&(e.dataMin=Math.min(vt(e.dataMin,o),o),e.dataMax=Math.max(vt(e.dataMax,r),r)));else{let t=i.applyExtremes();dt(t.dataMin)&&(o=t.dataMin,e.dataMin=Math.min(vt(e.dataMin,o),o)),dt(t.dataMax)&&(r=t.dataMax,e.dataMax=Math.max(vt(e.dataMax,r),r)),U(n)&&(e.threshold=n),(!a.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),tt(this,"afterGetSeriesExtremes")}translate(t,e,i,s,o,r){let a=this.linkedParent||this,n=s&&a.old?a.old.min:a.min;if(!dt(n))return NaN;let h=a.minPixelPadding,l=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&o)&&!!a.lin2val,d=1,c=0,p=s&&a.old?a.old.transA:a.transA,u=0;return p||(p=a.transA),i&&(d*=-1,c=a.len),a.reversed&&(d*=-1,c-=d*(a.sector||a.len)),e?(u=(t=t*d+c-h)/p+n,l&&(u=a.lin2val(u))):(l&&(t=a.val2lin(t)),u=d*(t-n)*p+c+d*h+(dt(r)?p*r:0),a.isRadial||(u=F(u))),u}toPixels(t,e){return this.translate(this.chart?.time.parse(t)??NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e,i,s,o,r,a=this,n=a.chart,h=a.left,l=a.top,d=t.old,c=t.value,p=t.lineWidth,u=d&&n.oldCh
1artHeight||n.chartHeight,g=d&&n.oldChartWidth||n.chartWidth,f=a.transB,m=t.translatedValue,x=t.force;function y(t,e,i){return"pass"!==x&&(t<e||t>i)&&(x?t=Y(t,e,i):r=!0),t}let b={value:c,lineWidth:p,old:d,force:x,acrossPanes:t.acrossPanes,translatedValue:m};return tt(this,"getPlotLinePath",b,function(t){e=s=(m=Y(m=vt(m,a.translate(c,void 0,void 0,d)),-1e9,1e9))+f,i=o=u-m-f,dt(m)?a.horiz?(i=l,o=u-a.bottom+(a.options.isInternal?0:n.scrollablePixelsY||0),e=s=y(e,h,h+a.width)):(e=h,s=g-a.right+(n.scrollablePixelsX||0),i=o=y(i,l,l+a.height)):(r=!0,x=!1),t.path=r&&!x?void 0:n.renderer.crispLine([["M",e,i],["L",s,o]],p||1)}),b.path}getLinearTickPositions(t,e,i){let s,o,r,a=F(Math.floor(e/t)*t),n=F(Math.ceil(i/t)*t),h=[];if(F(a+t)===a&&(r=20),this.single)return[e];for(s=a;s<=n&&(h.push(s),(s=F(s+t,r))!==o);)o=s;return h}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return!0===t?vt(e,"auto"):!1!==t?e:void 0}getMinorTickPositions(){let t,e=this.options,i=this.tickPositions,s=this.minorTickInterval,o=this.pointRangePadding||0,r=(this.min||0)-o,a=(this.max||0)+o,n=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:a-r,h=[];if(n&&n/s<this.len/3){let o=this.logarithmic;if(o)this.paddedTicks.forEach(function(t,e,i){e&&h.push.apply(h,o.getLogTickPositions(s,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())h=h.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(s),r,a,e.startOfWeek));else for(t=r+(i[0]-r)%s;t<=a&&t!==h[0];t+=s)h.push(t)}return 0!==h.length&&this.trimTicks(h),h}adjustForMinRange(){let t,e,i,s,o=this.options,r=this.logarithmic,a=this.chart.time,{max:n,min:h,minRange:l}=this;this.isXAxis&&void 0===l&&!r&&(l=U(o.min)||U(o.max)||U(o.floor)||U(o.ceiling)?null:Math.min(5*(it(this.series.map(t=>{let e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),dt(n)&&dt(h)&&dt(l)&&n-h<l&&(e=this.dataMax-this.dataMin>=l,t=(l-n+h)/2,i=[h-t,a.parse(o.min)??h-t],e&&(i[2]=r?r.log2lin(this.dataMin):this.dataMin),s=[(h=H(i))+l,a.parse(o.max)??h+l],e&&(s[2]=r?r.log2lin(this.dataMax):this.dataMax),(n=X(s))-h<l&&(i[0]=n-l,i[1]=a.parse(o.min)??n-l,h=H(i))),this.minRange=l,this.min=h,this.max=n}getClosest(){let t,e;if(this.categories)e=1;else{let i=[];this.series.forEach(function(t){let s=t.closestPointRange,o=t.getColumn("x");1===o.length?i.push(o[0]):t.sorted&&U(s)&&t.reserveSpace()&&(e=U(e)?Math.min(e,s):s)}),i.length&&(i.sort((t,e)=>t-e),t=it([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e,i=pt(this.options.categories),s=i?this.categories:this.names,o=t.options.x;return t.series.requireSorting=!1,U(o)||(o=this.uniqueNames&&s?i?s.indexOf(t.name):vt(s.keys[t.name],-1):t.series.autoIncrement()),-1===o?!i&&s&&(e=s.length):dt(o)&&(e=o),void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(e=>{e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints());let i=e.getColumn("x").slice();e.data.forEach((e,s)=>{let o=i[s];e?.options&&void 0!==e.name&&void 0!==(o=t.nameToX(e))&&o!==e.x&&(i[s]=e.x=o)}),e.dataTable.setColumn("x",i)}))}setAxisTranslation(){let t,e,i=this,s=i.max-i.min,o=i.linkedParent,r=!!i.categories,a=i.isXAxis,n=i.axisPointRange||0,h=0,l=0,d=i.transA;(a||r||n)&&(t=i.getClosest(),o?(h=o.minPointOffset,l=o.pointRangePadding):i.series.forEach(function(e){let s=r?1:a?vt(e.options.pointRange,t,0):i.axisPointRange||0,o=e.options.pointPlacement;if(n=Math.max(n,s),!i.single||r){let t=e.is("xrange")?!a:a;h=Math.max(h,t&&ct(o)?0:s/2),l=Math.max(l,t&&"on"===o?0:s)}}),e=i.ordinal?.slope&&t?i.ordinal.slope/t:1,i.minPointOffset=h*=e,i.pointRangePadding=l*=e,i.pointRange=Math.min(n,i.single&&r?1:s),a&&(i.closestPointRange=t)),i.translationSlope=i.transA=d=i.staticScale||i.len/(s+l||1),i.transB=i.horiz?i.left
vendor: 4,958 bytes, line 1
1:i.bottom,i.minPixelPadding=d*h,tt(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return dt(t)&&dt(e)&&t-e||void 0}setTickInterval(t){let e,i,s,o,r,{categories:a,chart:n,dataMax:h,dataMin:l,dateTime:d,isXAxis:c,logarithmic:p,options:u,softThreshold:g}=this,f=n.time,m=dt(this.threshold)?this.threshold:void 0,x=this.minRange||0,{ceiling:y,floor:b,linkedTo:v,softMax:k,softMin:w}=u,M=dt(v)&&n[this.coll]?.[v],S=u.tickPixelInterval,T=u.maxPadding,C=u.minPadding,A=0,P=dt(u.tickInterval)&&u.tickInterval>=0?u.tickInterval:void 0;if(d||a||M||this.getTickAmount(),o=vt(this.userMin,f.parse(u.min)),r=vt(this.userMax,f.parse(u.max)),M?(this.linkedParent=M,e=M.getExtremes(),this.min=vt(e.min,e.dataMin),this.max=vt(e.max,e.dataMax),this.type!==M.type&&It(11,!0,n)):(g&&U(m)&&dt(h)&&dt(l)&&(l>=m?(i=m,C=0):h<=m&&(s=m,T=0)),this.min=vt(o,i,l),this.max=vt(r,s,h)),dt(this.max)&&dt(this.min)&&(p&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,vt(l,this.min))&&It(10,!0,n),this.min=F(p.log2lin(this.min),16),this.max=F(p.log2lin(this.max),16)),this.range&&dt(l)&&(this.userMin=this.min=o=Math.max(l,this.minFromRange()||0),this.userMax=r=this.max,this.range=void 0)),tt(this,"foundExtremes"),this.adjustForMinRange(),dt(this.min)&&dt(this.max)){if(!dt(this.userMin)&&dt(w)&&w<this.min&&(this.min=o=w),!dt(this.userMax)&&dt(k)&&k>this.max&&(this.max=r=k),a||this.axisPointRange||this.stacking?.usePercentage||M||(A=this.max-this.min)&&(!U(o)&&C&&(this.min-=A*C),!U(r)&&T&&(this.max+=A*T)),!dt(this.userMin)&&dt(b)&&(this.min=Math.max(this.min,b)),!dt(this.userMax)&&dt(y)&&(this.max=Math.min(this.max,y)),g&&dt(l)&&dt(h)){let t=m||0;!U(o)&&this.min<t&&l>=t?this.min=u.minRange?Math.min(t,this.max-x):t:!U(r)&&this.max>t&&h<=t&&(this.max=u.minRange?Math.max(t,this.min+x):t)}!n.polar&&this.min>this.max&&(U(u.min)?this.max=this.min:U(u.max)&&(this.min=this.max)),A=this.max-this.min}if(this.min!==this.max&&dt(this.min)&&dt(this.max)?M&&!P&&S===M.options.tickPixelInterval?this.tickInterval=P=M.tickInterval:this.tickInterval=vt(P,this.tickAmount?A/Math.max(this.tickAmount-1,1):void 0,a?1:A*S/Math.max(this.len,S)):this.tickInterval=1,c&&!t){let t=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(e){e.forceCrop=e.forceCropping?.(),e.processData(t)}),tt(this,"postProcessData",{hasExtremesChanged:t})}this.setAxisTranslation(),tt(this,"initialAxisTranslation"),this.pointRange&&!P&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let L=vt(u.minTickInterval,d&&!this.series.some(t=>!t.sorted)?this.closestPointRange:0);!P&&L&&this.tickInterval<L&&(this.tickInterval=L),d||p||P||(this.tickInterval=pi(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let t,e=this.options,i=e.tickPositions,s=e.tickPositioner,o=this.getMinorTickInterval(),r=!this.isPanning,a=r&&e.startOnTick,n=r&&e.endOnTick,h=[];if(this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&U(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==e.allowDecimals),i)h=i.slice();else if(dt(this.min)&&dt(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))h=[this.min,this.max],It(19,!1,this.chart);else if(this.dateTime)h=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)h=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let t=this.tickInterval,e=t;for(;e<=2*t&&(h=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&h.length>this.tickAmount);)this.tickInterval=pi(this,e*=1.1)}h.length>this.len&&(h=[h[0],h[h.length-1]])[0]===h[1]&&(h.length=1),s&&(this.tickPositions=h,(t=s.apply(this,[this.min,this.max,this]))&&(h=t))}this.isDirty||h.length===this.tickPositions?.length||(this.isDirty=!0),this.tickPositions=h,this.minorTickInterval="auto"===o&&this.tickInterval?this.tickInterval/e.minorTicksPerMajor:o,this.paddedTicks=h.slice(0),this.trimTicks(h,a,n),!this.isLinked&&dt(this.min)&&dt(this.max)&&(this.single&&h.length<2&&!this.categories&&!this.series.some(t=>t.is("heatmap")&&"between"===t.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),tt(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(tt(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&s!==-1/0)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=o;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&U(s)&&!this.options.tickPositions&&t.push((o+s)/2)}}alignToOthers(){let t,e=this,i=e.chart,s=[this],o=e.options,r=i.options.chart,a="yAxis"===this.coll&&r.alignThresholds,n=[];if(e.thresholdAlignment=void 0,(!1!==r.alignTicks&&o.alignTicks||a)&&
vendor: 4,774 bytes, line 1
1!1!==o.startOnTick&&!1!==o.endOnTick&&!e.logarithmic){let o=t=>{let{horiz:e,options:i}=t;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},r=o(this);i[this.coll].forEach(function(i){let{series:a}=i;a.length&&a.some(t=>t.visible)&&i!==e&&o(i)===r&&(t=!0,s.push(i))})}if(t&&a){s.forEach(t=>{let i=t.getThresholdAlignment(e);dt(i)&&n.push(i)});let t=n.length>1?n.reduce((t,e)=>t+e,0)/n.length:void 0;s.forEach(e=>{e.thresholdAlignment=t})}return t}getThresholdAlignment(t){if((!dt(this.dataMin)||this!==t&&this.series.some(t=>t.isDirty||t.isDirtyData||t.xAxis?.isDirty))&&this.getSeriesExtremes(),dt(this.threshold)){let t=Y((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,i=t.tickAmount;U(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}adjustTickAmount(){let t,e,i,s=this,{finalTickAmt:o,max:r,min:a,options:n,tickPositions:h,tickAmount:l,thresholdAlignment:d}=s,c=h?.length,p=vt(s.threshold,s.softThreshold?0:null),u=s.tickInterval,g=()=>h.push(F(h[h.length-1]+u)),f=()=>h.unshift(F(h[0]-u));if(dt(d)&&(i=0===d?0:1===d?l-1:Math.round(Y(d*(l-1),1,l-2)),n.reversed&&(i=l-1-i)),s.hasData()&&dt(a)&&dt(r)){let d=()=>{s.transA*=(c-1)/(l-1),s.min=n.startOnTick?h[0]:Math.min(a,h[0]),s.max=n.endOnTick?h[h.length-1]:Math.max(r,h[h.length-1])};if(dt(i)&&dt(s.threshold)){for(;h[i]!==p||h.length!==l||h[0]>a||h[h.length-1]<r;){for(h.length=0,h.push(s.threshold);h.length<l;)void 0===h[i]||h[i]>s.threshold?f():g();if(u>8*s.tickInterval)break;u*=2}d()}else if(c<l){for(;h.length<l;)h.length%2||a===p?g():f();d()}if(U(o)){for(e=t=h.length;e--;)(3===o&&e%2==1||o<=2&&e>0&&e<t-1)&&h.splice(e,1);s.finalTickAmt=void 0}}}setScale(){let{coll:t,stacking:e}=this,i=!1,s=!1;this.series.forEach(t=>{i=i||t.isDirtyData||t.isDirty,s=s||t.xAxis?.isDirty||!1}),this.setAxisSize();let o=this.len!==this.old?.len;o||i||s||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(e&&"yAxis"===t&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e&&"xAxis"===t&&e.buildStacks(),this.isDirty||(this.isDirty=o||this.min!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),i&&delete this.allExtremes,tt(this,"afterSetScale")}setExtremes(t,e,i=!0,s,o){let r=this.chart;this.series.forEach(t=>{delete t.kdTree}),tt(this,"setExtremes",o=J(o,{min:t=r.time.parse(t),max:e=r.time.parse(e)}),t=>{this.userMin=t.min,this.userMax=t.max,this.eventArgs=t,i&&r.redraw(s)})}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,o=this.width=Math.round(Mt(vt(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(Mt(vt(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),a=this.top=Math.round(Mt(vt(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),n=this.left=Math.round(Mt(vt(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-r-a,this.right=t.chartWidth-o-n,this.len=Math.max(s?o:r,0),this.pos=s?n:a}getExtremes(){let t=this.logarithmic;return{min:t?F(t.lin2log(this.min)):this.min,max:t?F(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,s=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s<t&&(t=s),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=((t-90*this.side)%360+360)%360,i={align:"center"};return tt(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align}tickSize(t){let e,i=this.options,s=vt(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=i["tick"===t?"tickLength":"minorTickLength"];s&&o&&("inside"===i[t+"Position"]&&(o=-o),e=[o,s]);let r={tickSize:e};return tt(this,"afterTickSize",r),r.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)}unsquish(){let t,e,i=this.options.labels,s=i.padding||0,o=this.horiz,r=this.tickInterval,a=this.len/((+!!this.categories+this.max-this.min)/r),n=i.rotation,h=F(.8*this.labelMetrics().h),l=Math.max(this.max-this.min,0),d=function(t){let e=(t+2*s)/(a||1);return(e=e>1?Math.ceil(e):1)*r>l&&t!==1/0&&a!==1/0&&l&&(e=Math.ceil(l/r)),F(e*r)},c=r,p=Number.MAX_VALUE;if(o){if(!i.staggerLines&&(dt(n)?e=[n]:a<i.autoRotationLimit&&(e=i.autoRotation)),e){let i,s;for(let o of e)(o===n||o&&o>
1=-90&&o<=90)&&(s=(i=d(Math.abs(h/Math.sin(ci*o))))+Math.abs(o/360))<p&&(p=s,t=o,c=i)}}else c=d(.75*h);return this.autoRotation=e,this.labelRotation=vt(t,dt(n)?n:0),i.step?r:c}getSlotWidth(t){let e=this.chart,i=this.horiz,s=this.options.labels,o=Math.max(this.tickPositions.length-!this.categories,1),r=e.margin[3];if(t&&dt(t.slotWidth))return t.slotWidth;if(i&&s.step<2&&!this.isRadial)return s.rotation?0:(this.staggerLines||1)*this.len/o;if(!i){let t=s.style.width;if(void 0!==t)return parseInt(String(t),10);if(!this.opposite&&r)return r-e.spacing[3]}return.33*e.chartWidth}renderUnsquish(){let t,e=this.chart,i=e.renderer,s=this.tickPositions,o=this.ticks,r=this.options.labels,a=r.style,n=this.horiz,h=this.getSlotWidth(),l=Math.max(1,Math.round(h-(n?2*(r.padding||0):r.distance||0))),d={},c=this.labelMetrics(),p=a.lineClamp,u=p??(Math.floor(this.len/(s.length*c.h))||1),g=0;ct(r.rotation)||(d.rotation=r.rotation||0),s.forEach(function(t){let e=o[t];e.movedLabel&&e.replaceMovedLabel();let i=e.label?.textPxLength||0;i>g&&(g=i)}),this.maxLabelLength=g,this.autoRotation?g>l&&g>c.h?d.rotation=this.labelRotation:this.labelRotation=0:h&&(t=l),d.rotation&&(t=g>.5*e.chartHeight?.33*e.chartHeight:g,p||(u=1)),this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(d.align=this.labelAlign),s.forEach(function(e){let i=o[e],s=i?.label,r=a.width,n={};s&&(s.attr(d),i.shortenLabel?i.shortenLabel():t&&!r&&"nowrap"!==a.whiteSpace&&(t<(s.textPxLength||0)||"SPAN"===s.element.tagName)?s.css(J(n,{width:`${t}px`,lineClamp:u})):!s.styles.width||n.width||r||s.css({width:"auto"}),i.rotation=d.rotation)},this),this.tickRotCorr=i.rotCorr(c.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&U(this.min)&&U(this.max)}addTitle(t){let e,i=this.chart.renderer,s=this.horiz,o=this.opposite,r=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(ft(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new ri(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:s}=this,o=e.renderer,r=(e,r,a)=>o.g(e).attr({zIndex:a}).addClass(`highcharts-${i.toLowerCase()}${r} `+(this.isRadial?`highcharts-radial-axis${r} `:"")+(s.className||"")).add(t);this.axisGroup||(this.gridGroup=r("grid","-grid",s.gridZIndex),this.axisGroup=r("axis","",s.zIndex),this.labelGroup=r("axis-labels","-labels",s.labels.zIndex))}getOffset(){let t,e,i,s,o=this,{chart:r,horiz:a,options:n,side:h,ticks:l,tickPositions:d,coll:c}=o,p=r.inverted&&!o.isZAxis?[1,0,3,2][h]:h,u=o.hasData(),g=n.title,f=n.labels,m=dt(n.crossing),x=r.axisOffset,y=r.clipOffset,b=[-1,1,1,-1][h],v=0,k=0,w=0;if(o.showAxis=t=u||n.showEmpty,o.staggerLines=o.horiz&&f.staggerLines||void 0,o.createGroups(),u||o.isLinked?(d.forEach(function(t){o.generateTick(t)}),o.renderUnsquish(),o.reserveSpaceDefault=0===h||2===h||{1:"left",3:"right"}[h]===o.labelAlign,vt(f.reserveSpace,!m&&null,"center"===o.labelAlign||null,o.reserveSpaceDefault)&&d.forEach(function(t){w=Math.max(l[t].getLabelSize(),w)}),o.staggerLines&&(w*=o.staggerLines),o.labelOffset=w*(o.opposite?-1:1)):xt(l,function(t,e){t.destroy(),delete l[e]}),g?.text&&!1!==g.enabled&&(o.addTitle(t),t&&!m&&!1!==g.reserveSpace&&(o.titleOffset=v=o.axisTitle.getBBox()[a?"height":"width"],k=U(e=g.offset)?0:vt(g.margin,a?5:10))),o.renderLine(),o.offset=b*vt(n.offset,x[h]?x[h]+(n.margin||0):0),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},s=0===h?-o.labelMetrics().h:2===h?o.tickRotCorr.y:0,i=Math.abs(w)+k,w&&(i-=s,i+=b*(a?vt(f.y,o.tickRotCorr.y+b*f.distance):vt(f.x,b*f.distance))),o.axisTitleMargin=vt(e,i),o.getMaxLabelDimensions&&(o.maxLabelDimensions=o.getMaxLabelDimensions(l,d)),"colorAxis"!==c&&y){let t=this.tickSize("tick");x[h]=Math.max(x[h],(o.axisTitleMargin||0)+v+b*o.offset,i,d?.length&&t?t[0]+b*o.offset:0);let e=!o.axisLine||n.offset?0:o.axisLine.strokeWidth()/2;y[p]=Math.max(y[p],e)}tt(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+s,a=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",o?this.left:r,o?a:this.top],["L",o?e.chartWidth-this.right:r,o?a:e.chartHeight-this.bottom]],t)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,o=this.len,r=this.options.title,a=e?i:s,n=this.opposite,h=this.offset,l=r.x,d=r.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:a+(e?0:o),middle:a+o/2,high:a+(e?o:0)}[r.align],g=(e?s+this.height:i)+(e?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],f={x:e?u+l:g+(n?this.width:0)+h+l,y:e?g+d-(n?this.height:0)+h:u+d};return tt(this,"afterGetTitlePosition",{titlePosition:f}),f}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new ri(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}
1renderTick(t,e,i){let s=this.isLinked,o=this.ticks;(!s||t>=this.min&&t<=this.max||this.grid?.isColumn)&&(o[t]||(o[t]=new ri(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))}render(){let t,e,i=this,s=i.chart,o=i.logarithmic,r=s.renderer,a=i.options,n=i.isLinked,h=i.tickPositions,l=i.axisTitle,d=i.ticks,c=i.minorTicks,p=i.alternateBands,u=a.stackLabels,g=a.alternateGridColor,f=a.crossing,m=i.tickmarkOffset,x=i.axisLine,y=i.showAxis,b=ai(r.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){xt(t,function(t){t.isActive=!1})}),dt(f)){let t=this.isXAxis?s.yAxis[0]:s.xAxis[0],e=[1,-1,-1,1][this.side];if(t){let s=t.toPixels(f,!0);i.horiz&&(s=t.len-s),i.offset=e*s}}if(i.hasData()||n){let r=i.chart.hasRendered&&i.old&&dt(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,r)}),h.length&&(h.forEach(function(t,e){i.renderTick(t,e,r)}),m&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new ri(i,-1,null,!0)),d[-1].render(-1))),g&&h.forEach(function(r,a){e=void 0!==h[a+1]?h[a+1]+m:i.max-m,a%2==0&&r<i.max&&e<=i.max+(s.polar?-m:m)&&(p[r]||(p[r]=new z.PlotLineOrBand(i,{})),t=r+m,p[r].options={from:o?o.lin2log(t):t,to:o?o.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},p[r].render(),p[r].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[d,c,p].forEach(function(t){let e=[],i=b.duration;xt(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),Pt(function(){let i=e.length;for(;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==p&&s.hasRendered&&i?i:0)}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[y?"show":"hide"](y)),l&&y&&(l[l.isNew?"attr":"animate"](i.getTitlePosition(l)),l.isNew=!1),u?.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,tt(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})}getKeepProps(){return this.keepProps||ui.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,s=this.eventOptions;if(tt(this,"destroy",{keepEvents:t}),t||Tt(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){_(t)}),i){let t=i.length;for(;t--;)i[t].destroy()}for(let t in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[t]=e.plotLinesAndBandsGroups[t].destroy();xt(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=s}drawCrosshair(t,e){let i,s,o,r,a=this.crosshair,n=a?.snap??!0,h=this.chart,l=this.cross;if(tt(this,"drawCrosshair",{e:t,point:e}
1),t||(t=this.cross?.e),a&&!1!==(U(e)||!n)){if(clearTimeout(this.crossShowTimer),n?U(e)&&(s=vt("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),U(s)&&(r={value:e&&(this.isXAxis?e.x:vt(e.stackY,e.y)),translatedValue:s},h.polar&&J(r,{isCrosshair:!0,chartX:t?.chartX,chartY:t?.chartY,point:e}),i=this.getPlotLinePath(r)||null),!U(i))return void this.hideCrosshair();o=this.categories&&!this.isRadial,this.crossShowTimer=Pt(()=>{let e=this.cross;e||(this.cross=e=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(a.className||"")).attr({zIndex:vt(a.zIndex,2)}).add(),!h.styledMode&&(e.attr({stroke:a.color||(o?_t.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":vt(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&e.attr({dashstyle:a.dashStyle}))),e.show().animate({d:i},ai(a?.animation)),o&&!a.width&&e.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=t)},(!l||"hidden"===l.attr("visibility"))&&a.showDelay||0)}else this.hideCrosshair();tt(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),tt(this,"afterHideCrosshair")}update(t,e){let i=this.chart;t=ft(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,vt(e,!0)&&i.redraw()}remove(t){let e=this.chart,i=this.coll,s=this.series,o=s.length;for(;o--;)s[o]&&s[o].remove(!1);q(e.axes,this),q(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,vt(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}ui.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){"datetime"===this.type?this.dateTime||(this.dateTime=new s(this)):this.dateTime=void 0}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,W(t,"afterSetType",i)),t};class s{constructor(t){this.axis=t}normalizeTimeTickInterval(t,e){let i,s,o=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]],r=o[o.length-1],a=Bt[r[0]],n=r[1];for(i=0;i<o.length;i++)if(a=Bt[(r=o[i])[0]],n=r[1],o[i+1]){let e=(a*n[n.length-1]+Bt[o[i+1][0]])/2;if(t<=e){s=e/t;break}}return a===Bt.year&&t<5*a&&(n=[1,2,5]),{unitRange:a,count:mt(t/a,n,"year"===r[0]?Math.max(st(t/a),1):1),unitName:r[0],match:s}}getXDateFormat(t,e){let{axis:i}=this,s=i.chart.time;return i.closestPointRange?s.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||s.resolveDTLFormat(e.year).main:s.resolveDTLFormat(e.day).main}}t.Additions=s}(k||(k={}));let gi=k;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new s(this))}function i(){let 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"),W(t,"afterSetType",e),W(t,"afterInit",i)),t};class s{constructor(t){this.axis=t}getLogTickPositions(t,e,i,s){let o=this.axis,r=o.len,a=o.options,n=[];if(s||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),n=o.getLinearTickPositions(t,e,i);else if(t>=.08){let o,r,a,h,l,d,c;for(o=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],r=Math.floor(e);r<i+1&&!c;r++)for(a=0,h=o.length;a<h&&!c;a++)(l=this.log2lin(this.lin2log(r)*o[a]))>e&&(!s||d<=i)&&void 0!==d&&n.push(d),d>i&&(c=!0),d=l}else{let h=this.lin2log(e),l=this.lin2log(i),d=s?o.getMinorTickInterval():a.tickInterval,c=a.tickPixelInterval/(s?5:1),p=s?r/o.tickPositions.length:r;t=mt(t=vt("auto"===d?null:d,this.minorAutoInterval,(l-h)*c/(p||1))),n=o.getLinearTickPositions(t,h,l).map(this.log2lin),s||(this.minorAutoInterval=t/5)}return s||(o.tickInterval=t),n}lin2log(t){return Math.pow(10,t)}log2lin(t){return Math.log(t)/Math.LN10}}t.Additions=s}(w||(w={}));let fi=w;!function(t){let e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function s(t,i){let s=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEac
1h(t=>{this.addPlotBandOrLine(t)})),i){let e=s[i]||[];e.push(t),s[i]=e}this.plotLinesAndBands.push(o)}return o}function o(t){return this.addPlotBandOrLine(t,"plotLines")}function r(t,e,i){i=i||this.options;let s,o,r=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),a=[],n=this.horiz,h=!dt(this.min)||!dt(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,l=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),d=1;if(l&&r)for(h&&(o=l.toString()===r.toString(),d=0),s=0;s<l.length;s+=2){let t=l[s],e=l[s+1],i=r[s],h=r[s+1];("M"===t[0]||"L"===t[0])&&("M"===e[0]||"L"===e[0])&&("M"===i[0]||"L"===i[0])&&("M"===h[0]||"L"===h[0])&&(n&&i[1]===t[1]?(i[1]+=d,h[1]+=d):n||i[2]!==t[2]||(i[2]+=d,h[2]+=d),a.push(["M",t[1],t[2]],["L",e[1],e[2]],["L",h[1],h[2]],["L",i[1],i[2]],["Z"])),a.isFlat=o}return a}function a(t){this.removePlotBandOrLine(t)}function n(t){let e=this.plotLinesAndBands,i=this.options,s=this.userOptions;if(e){let o=e.length;for(;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]].forEach(function(e){for(o=e.length;o--;)e[o]?.id===t&&q(e,e[o])})}}function h(t){this.removePlotBandOrLine(t)}t.compose=function(t,l){let d=l.prototype;return d.addPlotBand||(e=t,J(d,{addPlotBand:i,addPlotLine:o,addPlotBandOrLine:s,getPlotBandPath:r,removePlotBand:a,removePlotLine:h,removePlotBandOrLine:n})),l}}(M||(M={}));let mi=M;class xi{static compose(t,e){return W(t,"afterInit",function(){this.labelCollectors.push(()=>{let t=[];for(let e of this.axes)for(let{label:i,options:s}of e.plotLinesAndBands)i&&!s?.label?.allowOverlap&&t.push(i);return t})}),mi.compose(xi,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){tt(this,"render");let t,{axis:e,options:i}=this,{horiz:s,logarithmic:r}=e,{color:a,events:n,zIndex:h=0}=i,{renderer:l,time:d}=e.chart,c={},p=d.parse(i.to),u=d.parse(i.from),g=d.parse(i.value),f=i.borderWidth,m=i.label,{label:x,svgElem:y}=this,b=[],v=U(u)&&U(p),k=U(g),w=!y,M={class:"highcharts-plot-"+(v?"band ":"line ")+(i.className||"")},S=v?"bands":"lines";if(!e.chart.styledMode&&(k?(M.stroke=a||"#999999",M["stroke-width"]=vt(i.width,1),i.dashStyle&&(M.dashstyle=i.dashStyle)):v&&(M.fill=a||"#e6e9ff",f&&(M.stroke=i.borderColor,M["stroke-width"]=f))),c.zIndex=h,S+="-"+h,(t=e.plotLinesAndBandsGroups[S])||(e.plotLinesAndBandsGroups[S]=t=l.g("plot-"+S).attr(c).add()),y||(this.svgElem=y=l.path().attr(M).add(t)),U(g))b=e.getPlotLinePath({value:r?.log2lin(g)??g,lineWidth:y.strokeWidth(),acrossPanes:i.acrossPanes});else{if(!U(u)||!U(p))return;b=e.getPlotBandPath(r?.log2lin(u)??u,r?.log2lin(p)??p,i)}return!this.eventsAdded&&n&&(xt(n,(t,e)=>{y?.on(e,t=>{n[e].apply(this,[t,this])})}),this.eventsAdded=!0),!w&&y.d||!b?.length?y&&(b?(y.show(),y.animate({d:b})):y.d&&(y.hide(),x&&(this.label=x=x.destroy()))):y.attr({d:b}),m&&(U(m.text)||U(m.formatter))&&b?.length&&e.width>0&&e.height>0&&!b.isFlat?(m=ft(o({align:s&&v?"center":void 0,x:s?!v&&4:10,verticalAlign:!s&&v?"middle":void 0,y:s?v?16:10:v?6:-4,rotation:s&&!v?90:0},v?{inside:!0}:{}),m),this.renderLabel(m,b,v,h)):x&&x.hide(),this}renderLabel(t,e,i,s){let o=this.axis,r=o.chart.renderer,a=t.inside,n=this.label;n||(this.label=n=r.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:s}),o.chart.styledMode||n.css(ft({color:o.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},t.style)),n.add());let h=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],l=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],d=X(h),c=X(l),p=H(h)-d;n.align(t,!1,{x:d,y:c,width:p,height:H(l)-c}),n.alignAttr.y-=r.fontMetrics(n).b,(!n.alignValue||"left"===n.alignValue||U(a))&&n.css({width:(t.style?.width||(i&&a?p:90===n.rotation?o.height-(n.alignAttr.y-o.top):(t.clip?o.width+o.left:o.chart.chartWidth)-n.alignAttr.x))+"px"}),n.show(!0)}getLabelText(t){return U(t.formatter)?t.formatter.call(this,this):t.text}destroy(){q(this.axis.plotLinesAndBands,this),delete this.axis,_(this)}}let{animObject:yi}=te,{format:bi}=ge,{composed:vi,dateFormats:ki,doc:wi,isSafari:Mi}=z,{distribute:Si}=me,Ti=t=>{clearTimeout(t.hideTimer),clearTimeout(t.showTimer)};class Ci{constructor(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}bodyFormatter(t){return t.map(t=>{let e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"Format"]||"",t)})}
vendor: 3,220 bytes, line 1
1cleanSplit(t){this.chart.series.forEach(function(e){let i=e?.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||Ct(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e}destroy(){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(),Z(this.container)),nt(this.hideTimer),Ti(this)}getAnchor(t,e){let i,{chart:s,pointer:o}=this,r=s.inverted,a=s.plotTop,n=s.plotLeft;if(t=Ct(t),t[0].series?.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=o.normalize(e)),i=[e.chartX-n,e.chartY-a];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let s=0,o=0;t.forEach(function(t){let e=t.pos(!0);e&&(s+=e[0],o+=e[1])}),s/=t.length,o/=t.length,this.shared&&t.length>1&&e&&(r?s=e.chartX:o=e.chartY),i=[s-n,o-a]}let h={point:t[0],ret:i};return tt(this,"getAnchor",h),h.ret.map(Math.round)}getClassName(t,e,i){let s=this.options,o=t.series,r=o.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+vt(t.colorIndex,o.colorIndex),r?.className].filter(ct).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,s=this.chart.styledMode,o=this.options,r=this.split&&this.allowShared,a=this.container,n=this.chart.renderer;if(this.label){let t=!this.label.hasClass("highcharts-label");(!r&&t||r&&!t)&&this.destroy()}if(!this.label){if(this.outside){let t=this.chart,e=t.options.chart.style,i=fe.getRendererType();this.container=a=z.doc.createElement("div"),a.className="highcharts-tooltip-container "+(t.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),V(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(e?.zIndex||0)+3)}),this.renderer=n=new i(a,0,0,e,void 0,void 0,n.styledMode)}if(r?this.label=n.g("tooltip"):(this.label=n.label("",t,e,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),s||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let t=this.label;[t.xSetter,t.ySetter].forEach((e,s)=>{t[s?"ySetter":"xSetter"]=o=>{e.call(t,i.distance),t[s?"y":"x"]=o,a&&(a.style[s?"top":"left"]=`${o}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&z.doc.body.appendChild(a),this.label}getPlayingField(){let{body:t,documentElement:e}=wi,{chart:i,distance:s,outside:o}=this;return{width:o?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s-2:i.chartWidth,height:o?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let s,{distance:o,chart:r,outside:a,pointer:n}=this,{inverted:h,plotLeft:l,plotTop:d,polar:c}=r,{plotX:p=0,plotY:u=0}=i,g={},f=h&&i.h||0,{height:m,width:x}=this.getPlayingField(),y=n.getChartPosition(),b=i=>{let s="x"===i;
vendor: 1,268 bytes, line 1
1return[i,s?x:m,s?t:e].concat(a?[s?t*y.scaleX:e*y.scaleY,s?y.left-o+(p+l)*y.scaleX:y.top-o+(u+d)*y.scaleY,0,s?x:m]:[s?t:e,s?p+l:u+d,s?l:d,s?l+r.plotWidth:d+r.plotHeight])},v=b("y"),k=b("x"),w=!!i.negative;!c&&r.hoverSeries?.yAxis?.reversed&&(w=!w);let M=!this.followPointer&&vt(i.ttBelow,!c&&!h===w),S=function(t,e,i,s,r,n,h){let l=a?"y"===t?o*y.scaleY:o*y.scaleX:o,d=(i-s)/2,c=s<r-o,p=r+o+s<e,u=r-l-i+d,m=r+l-d;if(M&&p)g[t]=m;else if(!M&&c)g[t]=u;else if(c)g[t]=Math.min(h-s,u-f<0?u:u-f);else{if(!p)return g[t]=0,!1;g[t]=Math.max(n,m+f+i>e?m:m+f)}},T=function(t,e,i,s,r){if(r<o||r>e-o)return!1;g[t]=r<i/2?1:r>e-s/2?e-s-2:r-i/2},C=function(t){[v,k]=[k,v],s=t},A=()=>{!1!==S.apply(0,v)?!1!==T.apply(0,k)||s||(C(!0),A()):s?g.x=g.y=0:(C(!0),A())};return(h&&!c||this.len>1)&&C(),A(),a&&(g.x-=y.left,g.y-=y.top),g}getFixedPosition(t,e,i){let s=i.series,{chart:o,options:r,split:a}=this,n=r.position,h=n.relativeTo,l=r.shared||s?.yAxis?.isRadial&&("pane"===h||!h)?"plotBox":h,d="chart"===l?o.renderer:o[l]||o.getClipBox(s,!0);return{x:d.x+(d.width-t)*et(n.align)+n.x,y:d.y+(d.height-e)*et(n.verticalAlign)+(!a&&n.y||0)}}hide(t){let e=this;Ti(this),t=vt(t,this.options.hideDelay),this.isHidden||(this.hideTimer=Pt(function(){let i=e.getLabel();e.getLabel().animate({opacity:0}
vendor: 4,476 bytes, line 1
1,{duration:t?150:t,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(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=vt(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))}shouldStickOnContact(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.pointer.inClass(t.target,"highcharts-tooltip"))}move(t,e,i,s){let{followPointer:o,options:r}=this,a=yi(!o&&!this.isHidden&&!r.fixed&&r.animation),n={x:t,y:e};o||(this.len||0)>1?n.anchorX=n.anchorY=NaN:(n.anchorX=i,n.anchorY=s),a.step=()=>this.drawTracker(),this.getLabel().animate(n,a)}refresh(t,e){let i=this,{chart:s,options:o,pointer:r,shared:a}=this,n=Ct(t),h=n[0],l=o.format,d=o.formatter||i.defaultFormatter,c=s.styledMode,p=i.allowShared;if(!o.enabled||!h.series)return;Ti(this),i.allowShared=!(!pt(t)&&t.series&&t.series.noSharedTooltip),p=p&&!i.allowShared,i.followPointer=!i.split&&h.series.tooltipOptions.followPointer;let u=i.getAnchor(t,e),g=u[0],f=u[1];a&&i.allowShared&&(r.applyInactiveState(n),n.forEach(t=>t.setState("hover")),h.points=n),this.len=n.length;let m=ct(l)?bi(l,h,s):d.call(h,i,h);h.points=void 0;let x=h.series;this.distance=vt(x.tooltipOptions.distance,16),!1===m?this.hide():this.showTimer=Pt(()=>{if(i.split&&i.allowShared)i.renderSplit(m,n);else{let t=g,a=f;if(e&&r.isDirectTouch&&(t=e.chartX-s.plotLeft,a=e.chartY-s.plotTop),!s.polar&&!1!==x.options.clip&&!n.some(e=>r.isDirectTouch||e.series.shouldShowTooltip(t,a)))return void i.hide();{let t=i.getLabel(p&&i.tt||{});(!o.style.width||c)&&t.css({width:(this.outside?this.getPlayingField():s.spacingBox).width-2*o.padding+"px"}),t.attr({class:i.getClassName(h),text:pt(m)?m.join(""):m}),this.outside&&t.attr({x:Y(t.x||0,0,this.getPlayingField().width-(t.width||0)-1)}),c||t.attr({stroke:o.borderColor||h.color||x.color||"#666666"}),i.updatePosition({plotX:g,plotY:f,negative:h.negative,ttBelow:h.ttBelow,series:x,h:u[2]||0})}}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1},i.isHidden&&o.showDelay||0),tt(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:o,chartHeight:r,plotHeight:a,plotLeft:n,plotTop:h,scrollablePixelsY:l=0,scrollablePixelsX:d,styledMode:c},distance:p,options:u,options:{fixed:g,position:f,positioner:m},pointer:x}=i,{scrollLeft:y=0,scrollTop:b=0}=s.scrollablePlotArea?.scrollingContainer||{},v=i.outside&&"number"!=typeof d?wi.documentElement.getBoundingClientRect():{left:y,right:y+o,top:b,bottom:b+r},k=i.getLabel(),w=this.renderer||s.renderer,M=!!s.xAxis[0]?.opposite,{left:S,top:T}=x.getChartPosition(),C=m||g,A=h+b,P=0,L=a-l,O=function(t,e,s,o,r=[0,0],a=!0){let n,h;if(s.isHeader)h=M?0:L,n=Y(r[0]-t/2,v.left,v.right-t-(i.outside?S:0));else if(g&&s){let o=i.getFixedPosition(t,e,s);n=o.x,h=o.y-A}else h=r[1]-A,n=Y(n=a?r[0]-t-p:r[0]+p,a?n:v.left,v.right);return{x:n,y:h}};ct(t)&&(t=[!1,t]);let E=t.slice(0,e.length+1).reduce(function(t,s,o){if(!1!==s&&""!==s){let r=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:a,series:{}},l=r.isHeader,d=l?i:r.series,f=d.tt=function(t,e,s){let o=t,{isHeader:r,series:a}=e,n=a.tooltipOptions||u;if(!o){let t={padding:n.padding,r:n.borderRadius};c||(t.fill=n.backgroundColor,t["stroke-width"]=n.borderWidth??(g&&!r?0:1)),o=w.label("",0,0,n[r?"headerShape":"shape"]||(g&&!r?"rect":"callout"),void 0,void 0,n.useHTML).addClass(i.getClassName(e,!0,r)).attr(t).add(k)}return o.isActive=!0,o.attr({text:s}),c||o.css(n.style).attr({stroke:n.borderColor||e.color||a.color||"#333333"}),o}(d.tt,r,s.toString()),x=f.getBBox(),y=x.width+f.strokeWidth();l&&(P=x.height,L+=P,M&&(A-=P));let{anchorX:b,anchorY:S}=function(t){let e,i,{isHeader:s,plotX:o=0,plotY:r=0,series:l}=t;if(s)e=Math.max(n+o,n),i=h+a/2;else{let{xAxis:t,yAxis:s}=l;e=t.pos+Y(o,-p,t.len+p),l.shouldShowTooltip(0,s.pos-h+r,{ignoreX:!0})&&(i=s.pos+r)}return{anchorX:e=Y(e,v.left-p,v.right+p),anchorY:i}}(r);if("number"==typeof S){let e=x.height+1,s=(m||O).call(i,y,e,r,i,[b,S]);t.push({align:C?0:void 0,anchorX:b,anchorY:S,boxWidth:y,point:r,rank:vt(s.rank,+!!l),size:e,target:s.y,tt:f,x:s.x})}else f.isActive=!1}return t},[]);!C&&E.some(t=>{let{outside:e}=i,s=(e?S:0)+t.anchorX;return s<v.left&&s+t.boxWidth<v.right||s<S-v.left+t.boxWidth&&v.right-s>s})&&(E=E.map(t=>{let{x:e,y:i}=O.call(this,t.boxWidth,t.size,t.point,void 0,[t.anchorX,t.anchorY],!1);return J(t,{target:i,x:e})})),i.cleanSplit(),Si(E,L);let I={left:S,right:S};
1E.forEach(function(t){let{x:e,boxWidth:s,isHeader:o}=t;!o&&(i.outside&&S+e<I.left&&(I.left=S+e),!o&&i.outside&&I.left+s>I.right&&(I.right=S+e))}),E.forEach(function(t){let{x:e,anchorX:s,anchorY:o,pos:r,point:{isHeader:a}}=t,n={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+A+(g&&f.y||0),anchorX:s,anchorY:o};if(i.outside&&e<s){let t=S-I.left;t>0&&(a||(n.x=e+t,n.anchorX=s+t),a&&(n.x=(I.right-I.left)/2,n.anchorX=s+t))}t.tt.attr(n)});let{container:D,outside:B,renderer:z}=i;if(B&&D&&z){let{width:t,height:e,x:i,y:s}=k.getBBox();z.setSize(t+i,e+s,!1),D.style.left=I.left+"px",D.style.top=T+"px"}Mi&&k.attr({opacity:1===k.opacity?.999:1})}drawTracker(){let t=this;if(!this.shouldStickOnContact())return void(t.tracker&&(t.tracker=t.tracker.destroy()));let e=t.chart,i=t.label,s=t.shared?e.hoverPoints:e.hoverPoint;if(!i||!s)return;let o={x:0,y:0,width:0,height:0},r=this.getAnchor(s),a=i.getBBox();r[0]+=e.plotLeft-(i.translateX||0),r[1]+=e.plotTop-(i.translateY||0),o.x=Math.min(0,r[0]),o.y=Math.min(0,r[1]),o.width=r[0]<0?Math.max(Math.abs(r[0]),a.width-r[0]):Math.max(Math.abs(r[0]),a.width),o.height=r[1]<0?Math.max(Math.abs(r[1]),a.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),a.height),t.tracker?t.tracker.attr(o):(t.tracker=i.renderer.rect(o).addClass("highcharts-tracker").add(i),W(t.tracker.element,"mouseenter",()=>Ti(t)),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(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}"')}headerFooterFormatter(t,e){let i=t.series,s=i.tooltipOptions,o=i.xAxis,r=o?.dateTime,a={isFooter:e,point:t},n=s.xDateFormat||"",h=s[e?"footerFormat":"headerFormat"];return tt(this,"headerFormatter",a,function(e){if(r&&!n&&dt(t.key)&&(n=r.getXDateFormat(t.key,s.dateTimeLabelFormats)),r&&n){if(gt(n)){let t=n;ki[0]=e=>i.chart.time.dateFormat(t,e),n="%0"}
1(t.tooltipDateKeys||["key"]).forEach(t=>{h=h.replace(RegExp("point\\."+t+"([ \\)}])"),`(point.${t}:${n})$1`)})}i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=bi(h,t,this.chart)}),a.text||""}update(t){this.destroy(),this.init(this.chart,ft(!0,this.options,t))}updatePosition(t){let e,{chart:i,container:s,distance:o,options:r,pointer:a,renderer:n}=this,{height:h=0,width:l=0}=this.getLabel(),{fixed:d,positioner:c}=r,{left:p,top:u,scaleX:g,scaleY:f}=a.getChartPosition(),m=(c||d&&this.getFixedPosition||this.getPosition).call(this,l,h,t,this),x=z.doc,y=(t.plotX||0)+i.plotLeft,b=(t.plotY||0)+i.plotTop;if(n&&s){let{scrollLeft:t=0,scrollTop:a=0}=i.scrollablePlotArea?.scrollingContainer||{};m.x+=t+p,m.y+=a+u,e=(r.borderWidth||0)+2*o+2,n.setSize(Y(l+e,0,x.documentElement.clientWidth)-1,h+e,!1),(1!==g||1!==f)&&(V(s,{transform:`scale(${g}, ${f})`}),y*=g,b*=f),y+=p-m.x,b+=u-m.y}this.move(Math.round(m.x),Math.round(m.y||0),y,b)}}(d=Ci||(Ci={})).compose=function(t){wt(vi,"Core.Tooltip")&&W(t,"afterInit",function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new d(t,t.options.tooltip,this))})};let Ai=Ci,{animObject:Pi}=te,{defaultOptions:Li}=jt,{format:Oi}=ge;class Ei{constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),this.id??(this.id=zt()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=t.xAxis?.categories?.[this.x]??this.x,this.key=this.name??this.category,tt(this,"afterInit")}animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(J({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})}applyOptions(t,e){let i=this.series,s=i.options.pointValKey||i.pointValKey;return J(this,t=Ei.prototype.optionsToObject.call(this,t)),this.options?this.options=i.chart.options.chart.allowMutatingData?J(this.options,t):ft(this.options,t):this.options=t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=Ei.prototype.getNestedProperty.call(this,s)),this.selected&&(this.state="select"),"name"in this&&void 0===e&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=e??i.autoIncrement():dt(t.x)&&i.options.relativeXValue?this.x=i.autoIncrement(t.x):"string"==typeof this.x&&(e??(e=i.chart.time.parse(this.x)),dt(e)&&(this.x=e)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,i=e.chart,s=e.options.dataSorting,o=i.hoverPoints,r=Pi(t.series.chart.renderer.globalAnimation),a=()=>{for(let e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(Tt(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),o&&(t.setState(),q(o,t),o.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s?.enabled?(this.animateBeforeDestroy(),Pt(a,r.duration)):a(),i.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){t?.element&&t.destroy()}),delete e[t]})}firePointEvent(t,e,i){let s=this,o=this.series.options;s.manageEvent(t),"click"===t&&o.allowPointSelect&&(i=function(t){!s.destroyed&&s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),tt(s,t,e,i)}getClassName(){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:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,i,s=this,o=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),i=o.length;i--;)s[e=o[i]]&&r.singular.push(e);return["graphic","dataLabel"].forEach(function(e){let i=e+"s";t[e]&&s[i]&&r.plural.push(i)}),r}getNestedProperty(t){if(t)return 0===t.indexOf("custom.")?ot(t,this.options):this[t]}getZone(){let t,e=this.series,i=e.zones,s=e.zoneAxis||"y",o=0;for(t=i[0];this[s]>=t.value;)t=i[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),t?.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(dt(this.x)||this.x instanceof Date)&&dt(this.y)}optionsToObject(t){let e,i=this.series,s=i.options.keys,o=s||i.pointArrayMap||["y"],r=o.length,a={},n=0,h=0;if(dt(t)||null===t)a[o[0]]=t;else if(pt(t))for(!s&&t.length>r&&("string"==(e=typeof t[0])?i.xAxis?.dateTime?a.x=i.chart.time.parse(t[0]):a.name=t[0]:"number"===e&&(a.x=t[0]),n++);h<r;)s&&void 0===t[n]||(o[h].indexOf(".")>0?Ei.prototype.setNestedProperty(a,t[n],o[h]):a[o[h]]=t[n]),n++,h++;else"object"==typeof t&&(a=t,t.dataLabels&&(i.hasDataLabels=()=>!0),t.marker&&(i._hasPointMarkers=!0));return a}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:s}=this,{chart:o,xAxis:r,yAxis:a}=s,n=0,h=0;if(dt(i)&&dt(e))return t&&(n=r?r.pos:o.plotLeft,h=a?a.pos:o.plotTop),o.inverted&&r&&a?[a.len-e+h,r.len-i+n]:[i+n,e+h]}}resolveColor(){let t,e,i,s=this.series,o=s.chart.options.chart,r=s.chart.styledMode,a=o.colorCount;delete this.nonZonedColor,s.options.colorByPoint?(r||(t=(e=s.options.colors||s.chart.options.colors)[s.c
1olorCounter],a=e.length),i=s.colorCounter,s.colorCounter++,s.colorCounter===a&&(s.colorCounter=0)):(r||(t=s.color),i=s.colorIndex),this.colorIndex=vt(this.options.colorIndex,i),this.color=vt(this.options.color,t)}setNestedProperty(t,e,i){return i.split(".").reduce(function(t,i,s,o){let r=o.length-1===s;return t[i]=r?e:gt(t[i],!0)?t[i]:{},t[i]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:o="",valuePrefix:r="",valueSuffix:a=""}=s;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEach(e=>{e="{point."+e,(r||a)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+a)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")}),Oi(t,this,e)}update(t,e,i,s){let o,r=this,a=r.series,n=r.graphic,h=a.chart,l=a.options,d=l.data;function c(){r.applyOptions(t);let s=n&&r.hasMockGraphic,c=null===r.y?!s:s;n&&c&&(r.graphic=n.destroy(),delete r.hasMockGraphic),gt(t,!0)&&(n?.element&&t&&t.marker&&void 0!==t.marker.symbol&&(r.graphic=n.destroy()),t?.dataLabels&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy())),o=r.index;let p={};for(let t of a.dataColumnKeys())p[t]=r[t];a.dataTable.setRow(p,o),d&&!a.processedData&&(d[o]=gt(d[o],!0)||gt(t,!0)?r.options:t??d[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===l.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}e=vt(e,!0),!1===s?c():r.firePointEvent("update",{options:t},c)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,o=s.chart;t=vt(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||o.getSelectedPoints().forEac
1h(function(t){let e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(o.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:i}=this.series.chart;i&&(t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e),i.runPointActions(t,this))}onMouseOut(){let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=ft(this.series.options.point,this.options),i=e.events?.[t];!ut(i)||this.hcEvents?.[t]&&-1!==this.hcEvents?.[t]?.map(t=>t.fn).indexOf(i)?this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(Tt(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(this.importedUserEvent?.(),this.importedUserEvent=W(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0))}setState(t,e){let i,s,o,r,a=this.series,n=this.state,h=a.options.states[t||"normal"]||{},l=Li.plotOptions[a.type].marker&&a.options.marker,d=l&&!1===l.enabled,c=l?.states?.[t||"normal"]||{},p=!1===c.enabled,u=this.marker||{},g=a.chart,f=l&&a.markerAttribs,m=a.halo,x=a.stateMarkerGraphic;if((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===h.enabled||t&&(p||d&&!1===c.enabled)||t&&u.states&&u.states[t]&&!1===u.states[t].enabled)return;if(this.state=t,f&&(i=a.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(n&&this.graphic.removeClass("highcharts-point-"+n),t&&this.graphic.addClass("highcharts-point-"+t),!g.styledMode){s=a.pointAttribs(this,t),o=vt(g.options.chart.animation,h.animation);let e=s.opacity;a.options.inactiveOtherPoints&&dt(e)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:e},o),t.connector&&t.connector.animate({opacity:e},o))}),this.graphic.animate(s,o)}i&&this.graphic.animate(i,vt(g.options.chart.animation,c.animation,l.animation)),x&&x.hide()}else t&&c&&(r=u.symbol||a.symbol,x&&x.currentSymbol!==r&&(x=x.destroy()),i&&(x?x[e?"animate":"attr"]({x:i.x,y:i.y}):r&&(a.stateMarkerGraphic=x=g.renderer.symbol(r,i.x,i.y,i.width,i.height,ft(l,c)).add(a.markerGroup),x.currentSymbol=r)),!g.styledMode&&x&&"inactive"!==this.state&&x.attr(a.pointAttribs(this,t))),x&&(x[t&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));let y=h.halo,b=this.graphic||x,v=b?.visibility||"inherit";y?.size&&b&&"hidden"!==v&&!this.isCluster?(m||(a.halo=m=g.renderer.path().add(b.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(y.size)}),m.attr({class:"highcharts-halo highcharts-color-"+vt(this.colorIndex,a.colorIndex)+(this.className?" "+this.className:""),visibility:v,zIndex:-1}),m.point=this,g.styledMode||m.attr(J({fill:this.color||a.color,"fill-opacity":y.opacity},ae.filterUserAttributes(y.attributes||{})))):m?.point?.haloPath&&!m.point.destroyed&&m.animate({d:m.point.haloPath(0)},null,m.hide),tt(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle($(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let Ii=Ei,{parse:Di}=_t,{charts:Bi,composed:zi,isTouchDevice:Ni}=z,Ri=(t,e)=>!U(e)||t[`${e}Key`];class Wi{applyInactiveState(t=[]){let e=[];for(let i of(t.forEach(t=>{let i=t.series;e.push(i),i.linkedParent&&e.push(i.linkedParent),i.linkedSeries&&e.push.apply(e,i.linkedSeries),i.navigatorSeries&&e.push(i.navigatorSeries),i.boosted&&i.markerGroup&&e.push.apply(e,this.chart.series.filter(t=>t.markerGroup===i.markerGroup))}),this.chart.series)){let t=i.options;!1!==t.states?.inactive?.enabled&&(-1===e.indexOf(i)?i.setState("inactive",!0):t.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){let t=this;this.eventsToUnbind.forEach(t=>t()),this.eventsToUnbind=[],!z.chartCount&&(Wi.unbindDocumentMouseUp.forEach(t=>t.unbind()),Wi.unbindDocumentMouseUp.length=0,Wi.unbindDocumentTouchEnd&&(Wi.unbindDocumentTouchEnd=Wi.unbindDocumentTouchEnd())),xt(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return tt(this,"getSelectionMarkerAttrs",i,i=>{let s,{chart:o,zoomHor:r,zoomVert:a}
vendor: 4,243 bytes, line 1
1=this,{mouseDownX:n=0,mouseDownY:h=0}=o,l=i.attrs;l.x=o.plotLeft,l.y=o.plotTop,l.width=r?1:o.plotWidth,l.height=a?1:o.plotHeight,r&&(l.width=Math.max(1,Math.abs(s=t-n)),l.x=(s>0?0:s)+n),a&&(l.height=Math.max(1,Math.abs(s=e-h)),l.y=(s>0?0:s)+h)}),i}drag(t){let e,{chart:i}=this,{mouseDownX:s=0,mouseDownY:o=0}=i,{panning:r,panKey:a,selectionMarkerFill:n}=i.options.chart,h=i.plotLeft,l=i.plotTop,d=i.plotWidth,c=i.plotHeight,p=gt(r)?r.enabled:r,u=a&&t[`${a}Key`],g=t.chartX,f=t.chartY,m=this.selectionMarker;if((!m||!m.touch)&&(g<h?g=h:g>h+d&&(g=h+d),f<l?f=l:f>l+c&&(f=l+c),this.hasDragged=Math.sqrt(Math.pow(s-g,2)+Math.pow(o-f,2)),this.hasDragged>10)){e=i.isInsidePlot(s-h,o-l,{visiblePlotOnly:!0});let{shapeType:d,attrs:c}=this.getSelectionMarkerAttrs(g,f);this.hasZoom&&e&&!u&&!m&&(this.selectionMarker=m=i.renderer[d](),m.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||m.attr({fill:n||Di("#334eff").setOpacity(.25).get()})),m&&m.attr(c),e&&!m&&p&&Ri(t,a)&&i.pan(t,r)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return tt(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let t of i.axes)t.isPanning&&(t.isPanning=!1,(t.options.startOnTick||t.options.endOnTick||t.series.some(t=>t.boosted))&&(t.forceRedraw=!0,t.setExtremes(t.userMin,t.userMax,!1),e=!0));if(e&&i.redraw(),s&&t){if(this.hasDragged){let e=this.getSelectionBox(s);i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&("xAxis"===t.coll&&this.zoomX||"yAxis"===t.coll&&this.zoomY)),selection:o({originalEvent:t,xAxis:[],yAxis:[]},e),from:e})}dt(i.index)&&(this.selectionMarker=s.destroy())}i&&dt(i.index)&&(V(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(t,e,i){let s;return t.forEach(function(t){var o;let r,a,n,h=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),l=t.searchPoint(i,h);gt(l,!0)&&l.series&&(!gt(s,!0)||(r=(o=s).distX-l.distX,a=o.dist-l.dist,n=l.series.group?.zIndex-o.series.group?.zIndex,(0!==r&&e?r:0!==a?a:0!==n?n:o.series.index>l.series.index?-1:1)>0))&&(s=l)}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,o=t.shapeArgs;if(i&&s){let r=t.clientX??t.plotX??0,a=t.plotY||0;return t.isNode&&o&&dt(o.x)&&dt(o.y)&&(r=o.x,a=o.y),e?{chartX:s.len+s.pos-a,chartY:i.len+i.pos-r}:{chartX:r+i.pos,chartY:a+s.pos}}if(o?.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=yt(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:s}=t;return s>2&&i>2&&(this.chartPosition.scaleX=e.width/s,this.chartPosition.scaleY=e.height/i),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let i of this.chart.axes)e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,i,s,o,r){let a,n=[],h=function(t){return t.visible&&!(!o&&t.directTouch)&&vt(t.options.enableMouseTracking,!0)},l=e,d={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};tt(this,"beforeGetHoverData",d),a=l&&!l.stickyTracking?[l]:i.filter(t=>t.stickyTracking&&(d.filter||h)(t));let c=s&&t||!r?t:this.findNearestKDPoint(a,o,r);return l=c?.series,c&&(o&&!l.noSharedTooltip?(a=i.filter(function(t){return d.filter?d.filter(t):h(t)&&!t.noSharedTooltip})).forEach(function(t){let e=t.options?.nullInteraction,i=at(t.points,function(t){return!(t.x!==c.x||t.isNull&&!e)});gt(i)&&(t.boosted&&t.boost&&(i=t.boost.getPoint(i)),n.push(i))}):n.push(c)),tt(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:n}}getPointFromEvent(t){let e,i=t.target;for(;i&&!e;)e=i.point,i=i.parentNode;return e}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i,s=t;for(;s;){if(i=G(s,"class")){if(-1!==i.indexOf(e))return!0;
vendor: 4,540 bytes, line 1
1if(-1!==i.indexOf("highcharts-container"))return!1}s=s.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),tt(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):vt(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let o=s.pageX-e.left,r=s.pageY-e.top;return J(t,{chartX:Math.round(o/=e.scaleX),chartY:Math.round(r/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),o=e.plotLeft,r=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(tt(i.series,"click",J(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(J(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-o,s.chartY-r,{visiblePlotOnly:!0})&&tt(e,"click",s)))}onContainerMouseDown(t){let e=!(1&~(t.buttons||t.button));t=this.normalize(t),z.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||e)&&(this.zoomOption(t),e&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=Bi[vt(Wi.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(s))&&this.drag(s),!e.exporting?.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(s)&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,o=this.normalize(t,s);!s||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(o)||o.target!==e.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),Bi[vt(Wi.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:o}=e,r=[].map.call(t.touches||[],t=>e.normalize(t)),a=r.length,n=1===a&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),h=i.tooltip,l=1===a&&vt(h?.options.followTouchMove,!0);a>1?e.initiated=!0:l&&(e.initiated=!1),s&&e.initiated&&!n&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(e.pinchDown=r,e.res=!0,i.mouseDownX=t.chartX):l?this.runPointActions(e.normalize(t)):o&&(tt(i,"touchpan",{originalEvent:t,touches:r},()=>{let e=t=>{let e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&(this.zoomHor&&t.horiz||this.zoomVert&&!t.horiz)),to:e(r),from:e(o),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=r}reset(t,e){let i=this.chart,s=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,a=i.tooltip,n=a?.shared?r:o;t&&n&&Ct(n).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&n&&Ct(n).length&&(a.refresh(n),a.shared&&r?r.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(t){t.setState()}),s&&s.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let s=this.chart,o=s.series,r=s.tooltip?.options.enabled?s.tooltip:void 0,a=!!r&&r.shared,n=e||s.hoverPoint,h=n?.series||s.hoverSeries,l=(!t||"touchmove"!==t.type)&&(!!e||h?.directTouch&&this.isDirectTouch),d=this.getHoverData(n,h,o,l,a,t);n=d.hoverPoint,h=d.hoverSeries;let c=d.hoverPoints,p=h?.tooltipOptions.followPointer&&!h.tooltipOptions.split,u=a&&h&&!h.noSharedTooltip;if(n&&(i||n!==s.hoverPoint||r?.isHidden)){if((s.hoverPoints||[]).forEac
vendor: 8,494 bytes, line 1
1h(function(t){-1===c.indexOf(t)&&t.setState()}),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!n.series)return;s.hoverPoints=c,s.hoverPoint=n,n.firePointEvent("mouseOver",void 0,()=>{r&&n&&r.refresh(u?c:n,t)})}else if(p&&r&&!r.isHidden){let e=r.getAnchor([{}],t);s.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:e[0],plotY:e[1]})}this.unDocMouseMove||(this.unDocMouseMove=W(s.container.ownerDocument,"mousemove",t=>Bi[Wi.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(t)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(e){let i,o=e.crosshair?.snap??!0;o&&((i=s.hoverPoint)&&i.series[e.coll]===e||(i=at(c,t=>t.series?.[e.coll]===e))),i||!o?e.drawCrosshair(t,i):e.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument,i=t=>t.parentElement||t.getRootNode()?.host?.parentElement;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(W(t,"mouseenter",this.onContainerMouseEnter.bind(this)),W(t,"mouseleave",this.onContainerMouseLeave.bind(this))),Wi.unbindDocumentMouseUp.some(t=>t.doc===e)||Wi.unbindDocumentMouseUp.push({doc:e,unbind:W(e,"mouseup",this.onDocumentMouseUp.bind(this))});let s=i(this.chart.renderTo);for(;s&&"BODY"!==s.tagName;)this.eventsToUnbind.push(W(s,"scroll",()=>{delete this.chartPosition})),s=i(s);this.eventsToUnbind.push(W(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),W(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Wi.unbindDocumentTouchEnd||(Wi.unbindDocumentTouchEnd=W(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),W(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Ni)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=vt(e.options.tooltip?.followTouchMove,!0)&&e.series.some(t=>t.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(W(i,"pointerdown",t=>{t.target?.hasPointerCapture(t.pointerId)&&t.target?.releasePointerCapture(t.pointerId)}),W(i,"pointermove",t=>{e.pointer?.getPointFromEvent(t)?.onMouseOver(t)})),e.styledMode||V(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(t=>t()),t.length=0,e.styledMode||V(i,{"touch-action":vt(e.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(t){let e=this.chart,i=z.charts[vt(Wi.hoverChartIndex,-1)];if(i&&i!==e){let s={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,s),i.pointer?.onContainerMouseLeave(t||s)}i?.mouseIsDown||(Wi.hoverChartIndex=e.index)}touch(t,e){let i,{chart:s,pinchDown:o=[]}=this;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})&&!s.exporting?.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=i=!!o[0]&&Math.pow(o[0].chartX-t.chartX,2)+Math.pow(o[0].chartY-t.chartY,2)>=16),vt(i,!0)&&this.pinch(t)):e&&this.reset():2===t.touches.length&&this.pinch(t)}touchSelect(t){return!(!this.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)}zoomOption(t){let e,i,s=this.chart,o=s.inverted,r=s.zooming.type||"";/touch/.test(t.type)&&(r=vt(s.zooming.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=i=/y/.test(r),this.zoomHor=e&&!o||i&&o,this.zoomVert=i&&!o||e&&o,this.hasZoom=(e||i)&&Ri(t,s.zooming.key)}}Wi.unbindDocumentMouseUp=[],(c=Wi||(Wi={})).compose=function(t){wt(zi,"Core.Pointer")&&W(t,"beforeRender",function(){this.pointer=new c(this,this.options)})};let Xi=Wi,{setLength:Hi,splice:Gi}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[s?"subarray":"slice"](e,e+i),n=new r(t.length-i+o.length);return n.set(t.subarray(0,e),0),n.set(o,e),n.set(t.subarray(e+i),e+o.length),{removed:a,array:n}}},Yi=class{constructor(t={}){this.autoId=!t.id,this.columns={},this.id=t.id||zt(),this.rowCount=0,this.versionTag=zt();let e=0;xt(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,xt(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=Hi(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;xt(this.columns,(s,o)=>{this.columns[o]=Gi(s,t,e).array,i=s.length}),this.rowCount=i}tt(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=zt()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRow(t,e){return(e||Object.keys(this.columns)).map(e=>this.columns[e]?.[t])}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;xt(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||(tt(this,"afterSetColumns"),this.versionTag=zt())}setRow(t,e=this.rowCount,i,s){let{columns:o}=this,r=i?this.rowCount+1:e+1,a=Object.keys(t);if(!1!==s?.addColumns)for(let t=0,e=a.length;t<e;t++){let e=a[t];o[e]||(o[e]=[])}xt(o,(a,n)=>{a||!1===s?.addColumns||(a=Array(r)),a&&(i?a=Gi(a,e,0,!0,[t[n]??null]).array:a[e]=t[n]??null,o[n]=a)}),r>this.rowCount&&this.applyRowCount(r),s?.silent||(tt(this,"afterSetRows"),this.versionTag=zt())}getModified(){return this.modified||this}};var Fi=S||(S={});function ji(t,e,i){let s,o=this.legendItem=this.legendItem||{},{chart:r,options:a}=this,{baseline:n=0,symbolWidth:h,symbolHeight:l}=t,d=this.symbol||"circle",c=l/2,p=r.renderer,u=o.group,g=n-Math.round((t.fontMetrics?.b||l)*(i?.4:.3)),f={},m=a.marker,x=0;if(r.styledMode||(f["stroke-width"]=Math.min(a.lineWidth||0,24),a.dashStyle?f.dashstyle=a.dashStyle:"square"!==a.linecap&&(f["stroke-linecap"]="round")),o.line=p.path().addClass("highcharts-graph").attr(f).add(u),i&&(o.area=p.path().addClass("highcharts-area").add(u)),f["stroke-linecap"]&&(x=Math.min(o.line.strokeWidth(),h)/2),h){let t=[["M",x,g],["L",h-x,g]];o.line.attr({d:t}),o.area?.attr({d:[...t,["L",h-x,n],["L",x,n]]})}if(m&&!1!==m.enabled&&h){let t=Math.min(vt(m.radius,c),c);0===d.indexOf("url")&&(m=ft(m,{width:l,height:l}),t=0),o.symbol=s=p.symbol(d,h/2-t,g-t,2*t,2*t,J({context:"legend"},m)).addClass("highcharts-point").add(u),s.isMarker=!0}}Fi.areaMarker=function(t,e){ji.call(this,t,e,!0)},Fi.lineMarker=ji;let $i=S,{defaultOptions:Vi}=jt;var Ui=T||(T={});function _i(t,e){let i=Vi.plotOptions||{},s=e.defaultOptions,o=e.prototype;return o.type=t,o.pointClass||(o.pointClass=Ii),!Ui.seriesTypes[t]&&(s&&(i[t]=s),Ui.seriesTypes[t]=e,!0)}Ui.seriesTypes=z.seriesTypes,Ui.registerSeriesType=_i,Ui.seriesType=function(t,e,i,s,o){let r=Vi.plotOptions||{};if(e=e||"",r[t]=ft(r[e],i),delete Ui.seriesTypes[t],_i(t,Q(Ui.seriesTypes[e]||z.Series,s)),Ui.seriesTypes[t].prototype.type=t,o){class e extends Ii{}J(e.prototype,o),Ui.seriesTypes[t].prototype.pointClass=e}return Ui.seriesTypes[t]};let Zi=T,{animObject:Ki,setAnimation:qi}=te,{defaultOptions:Ji}=jt,{registerEventOptions:Qi}=si,{svg:ts,win:es}=z,{seriesTypes:is}=Zi,{format:ss}=ge;class os{constructor(){this.zoneAxis="y"}init(t,e){let i;tt(this,"init",{options:e}),this.dataTable??(this.dataTable=new Yi);let s=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);let o=this.options,r=!1!==o.visible;this.linkedSeries=[],this.bindAxes(),J(this,{name:o.name,state:"",visible:r,selected:!0===o.selected}),Qi(this,o);let a=o.events;(a?.click||o.point?.events?.click||o.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),this._i=vt(i?._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",Dt(this,s)),o.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(o.data,!1),tt(this,"afterInit")}is(t){return is[t]&&this instanceof is[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;
1tt(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){(s[o]||[]).forEach(function(s){t=s.options,(vt(i[o],0)===s.index||void 0!==i[o]&&i[o]===t.id)&&(Dt(e,s.series),e[o]=s,s.isDirty=!0)}),e[o]||e.optionalAxis===o||It(18,!0,s)})}),tt(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker||{};return i&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i=this.options,{pointIntervalUnit:s,relativeXValue:o}=this.options,r=this.chart.time,a=this.xIncrement??r.parse(i.pointStart)??0;if(this.pointInterval=e=vt(this.pointInterval,i.pointInterval,1),o&&dt(t)&&(e*=t),s){let t=r.toParts(a);"day"===s?t[2]+=e:"month"===s?t[1]+=e:"year"===s&&(t[0]+=e),e=r.makeTime.apply(r,t)-a}return o&&dt(t)?a+e:(this.xIncrement=a+e,a)}setDataSortingOptions(){let t=this.options;J(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),U(t.pointRange)||(t.pointRange=1)}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,r=i.userOptions||{},a=ft(t),n=i.styledMode,h={plotOptions:s,userOptions:a};tt(this,"setOptions",h);let l=h.plotOptions[this.type],d=r.plotOptions||{},c=d.series||{},p=Ji.plotOptions[this.type]||{},u=d[this.type]||{};l.dataLabels=this.mergeArrays(p.dataLabels,l.dataLabels),this.userOptions=h.userOptions;let g=ft(l,s.series,u,a);this.tooltipOptions=ft(Ji.tooltip,Ji.plotOptions.series?.tooltip,p?.tooltip,i.userOptions.tooltip,d.series?.tooltip,u.tooltip,a.tooltip),this.stickyTracking=vt(a.stickyTracking,u.stickyTracking,c.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===l.marker&&delete g.marker;let{negativeColor:f,negativeFillColor:m,zoneAxis:x="y",zones:y}=g,b=this.zones=(y||[]).map(t=>o({},t));return this.zoneAxis=x,(f||m)&&!y&&(e={value:g[x+"Threshold"]||g.threshold||0,className:"highcharts-negative"},n||("boolean"!=typeof f&&(e.color=f),e.fillColor=m),b.push(e)),b.length&&U(b[b.length-1].value)&&b.push(n?{}:{color:this.color,fillColor:this.fillColor}),tt(this,"afterSetOptions",{options:g}),g}getName(){return this.options.name??ss(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(t,e,i){let s,o,r=this.chart,a=`${t}Index`,n=`${t}Counter`,h=i?.length||r.options.chart.colorCount;!e&&(U(o=vt("color"===t?this.options.colorIndex:void 0,this[a]))?s=o:(r.series.length||(r[n]=0),s=r[n]%h,r[n]+=1),i&&(e=i[s])),void 0!==s&&(this[a]=s),this[t]=e}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||Ji.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}getColumn(t,e){return(e?this.dataTable.getModified():this.dataTable).getColumn(t,!0)||[]}findPointIndex(t,e){let i,s,o,{id:r,x:a}=t,n=this.points,h=this.options.dataSorting,l=this.cropStart||0;if(r){let t=this.chart.get(r);t instanceof Ii&&(i=t)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let e=e=>!e.touched&&e.index===t.index;if(h?.matchByName?e=e=>!e.touched&&e.name===t.name:this.options.relativeXValue&&(e=e=>!e.touched&&e.options.x===t.x),!(i=at(n,e)))return}return i&&void 0!==(o=i?.index)&&(s=!0),void 0===o&&dt(a)&&(o=this.getColumn("x").indexOf(a,e)),-1!==o&&void 0!==o&&this.cropped&&(o=o>=l?o-l:o),!s&&dt(o)&&n[o]?.touched&&(o=void 0),o}updateData(t,e){let i,s,o,r,{options:a,requireSorting:n}=this,h=a.dataSorting,l=this.points,d=[],c=t.length===l.length,p=this.xIncrement,u=!0;if(this.xIncrement=null,t.forEach((t,e)=>{let s,o=U(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},{id:p,x:u}=o;p||dt(u)?(-1===(s=this.findPointIndex(o,r))||void 0===s?d.push(t):l[s]&&t!==a.data?.[s]?(l[s].update(t,!1,void 0,!1),l[s].touched=!0,n&&(r=s+1)):l[s]&&(l[s].touched=!0),(!c||e!==s||h?.enabled||this.hasDerivedData)&&(i=!0)):d.push(t)},this),i)for(s=l.length;s--;)(o=l[s])&&!o.touched&&o.remove?.(!1,e);else c&&!h?.enabled?(t.forEach((t,e)=>{t===l[e].y||l[e].destroyed||l[e].update(t,!1,void 0,!1)}),d.length=0):u=!1;if(l.forEach(t=>{t&&(t.touched=!1)}),!u)return!1;d.forEach(t=>{this.addPoint(t,!1,void 0,void 0,!1)},this);let g=this.getColumn("x");return null!==p&&null===this.xIncrement&&g.length&&(this.xIncrement=H(g),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){let o,r,a,n=this.points,h=n?.length||0,l=this.options,d=this.chart,c=l.dataSorting,p=this.xAxis,u=l.turboThreshold,g=this.dataTable,f=this.dataColumnKeys(),m=this.pointV
1alKey||"y",x=(this.pointArrayMap||[]).length,y=l.keys,b=0,v=1;d.options.chart.allowMutatingData||(l.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,a=ft(!0,t));let k=(t=a||t||[]).length;if(c?.enabled&&(t=this.sortData(t)),!1!==s&&k&&h&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(r=this.updateData(t,i)),!r){this.xIncrement=null,this.colorCounter=0;let e=u&&!l.relativeXValue&&k>u;if(e){let i=this.getFirstValidPoint(t),s=this.getFirstValidPoint(t,k-1,-1),o=t=>!(!pt(t)||!y&&!dt(t[0]));if(dt(i)&&dt(s)){let e=[],i=[];for(let s of t)e.push(this.autoIncrement()),i.push(s);g.setColumns({x:e,[m]:i})}else if(o(i)&&o(s))if(x){let e=+(i.length===x),s=Array(f.length).fill(0).map(()=>[]);for(let i of t){e&&s[0].push(this.autoIncrement());for(let t=e;t<=x;t++)s[t]?.push(i[t-e])}g.setColumns(f.reduce((t,e,i)=>(t[e]=s[i],t),{}))}else{y&&(b=y.indexOf("x"),v=y.indexOf("y"),b=b>=0?b:0,v=v>=0?v:1),1===i.length&&(v=0);let e=[],s=[];for(let i of t)b===v?e.push(this.autoIncrement()):e.push(i[b]??i.x??null),s.push(i[v]??i.y??null);g.setColumns({x:e,[m]:s})}else e=!1}if(!e){let e=f.reduce((t,e)=>(t[e]=[],t),{});for(o=0;o<k;o++){let i=this.pointClass.prototype.applyOptions.apply({series:this},[t[o]]);for(let t of f)e[t][o]=i[t]}g.setColumns(e)}for(ct(this.getColumn("y")[0])&&It(14,!0,d),this.data=[],this.options.data=this.userOptions.data=t,o=h;o--;)n[o]?.destroy();p&&(p.minRange=p.userMinRange),this.isDirty=d.isDirtyBox=!0,this.isDirtyData=!!n,i=!1}"point"===l.legendType&&(this.processData(),this.generatePoints()),e&&d.redraw(i)}sortData(t){let e=this,i=e.options.dataSorting.sortKey||"y",s=function(t,e){return U(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,o){t[o]=s(e,i),t[o].index=o},this),t.concat().sort((t,e)=>{let s=ot(i,t),o=ot(i,e);return o<s?-1:+(o>s)}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){let i=e.options,o=i.data;!i.dataSorting?.enabled&&o&&(o.forEach(function(i,r){o[r]=s(e,i),t[r]&&(o[r].x=t[r].x,o[r].index=r)}),e.setData(o,!1))}),t}getProcessedData(t){let e,i,s,o,r,a=this,{dataTable:n,isCartesian:h,options:l,xAxis:d}=a,c=l.cropThreshold,p=t||a.getExtremesFromAll,u=d?.logarithmic,g=n.rowCount,f=0,m=a.getColumn("x"),x=n,y=!1;return d&&(o=(s=d.getExtremes()).min,r=s.max,y=!(!d.categories||d.names.length),h&&a.sorted&&!p&&(!c||g>c||a.forceCrop)&&(m[g-1]<o||m[0]>r?x=new Yi:a.getColumn(a.pointValKey||"y").length&&(m[0]<o||m[g-1]>r)&&(x=(e=this.cropData(n,o,r)).modified,f=e.start,i=!0))),m=x.getColumn("x")||[],{modified:x,cropped:i,cropStart:f,closestPointRange:it([u?m.map(u.log2lin):m],()=>a.requireSorting&&!y&&It(15,!1,a.chart))}}processData(t){let e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let s=this.getProcessedData();i.modified=s.modified,this.cropped=s.cropped,this.cropStart=s.cropStart,this.closestPointRange=this.basePointRange=s.closestPointRange,tt(this,"afterProcessData")}cropData(t,e,i){let s,o,r=t.getColumn("x",!0)||[],a=r.length,n={},h=0,l=a;for(s=0;s<a;s++)if(r[s]>=e){h=Math.max(0,s-1);break}for(o=s;o<a;o++)if(r[o]>i){l=o+1;break}for(let e of this.dataColumnKeys()){let i=t.getColumn(e,!0);i&&(n[e]=i.slice(h,l))}return{modified:new Yi({columns:n}),start:h,end:l}}generatePoints(){let t,e,i,s,o,r=this.options,a=this.processedData||r.data,n=this.dataTable.getModified(),h=this.getColumn("x",!0),l=this.pointClass,d=n.rowCount,c=this.cropStart||0,p=this.hasGroupedData,u=r.keys,g=[],f=r.dataGrouping?.groupAll?c:0,m=this.pointArrayMap||["y"],x=this.dataColumnKeys(),y=this.data;if(!y&&!p){let t=[];t.length=a?.length||0,y=this.data=t}for(u&&p&&(this.options.keys=!1),s=0;s<d;s++)e=c+s,p?((i=new l(this,n.getRow(s,x)||[])).dataGroup=this.groupMap?.[f+s],i.dataGroup?.options&&(i.options=i.dataGroup.options,J(i,i.dataGroup.options),delete i.dataLabels,i.key=i.name??i.category)):(i=y[e],o=a?a[e]:n.getRow(s,m),i||void 0===o?i&&(i.category=this.xAxis?.categories?.[i.x]??i.x,i.key=i.name??i.category):y[e]=i=new l(this,o,h[s])),i&&(i.index=p?f+s:e,g[s]=i);if(this.options.keys=u,y&&(d!==(t=y.length)||p))for(s=0;s<t;s++)s!==c||p||(s+=d),y[s]&&(y[s].destroyElements(),y[s].plotX=void 0);this.data=y,this.points=g,tt(this,"afterGeneratePoints")}getXExtremes(t){return{min:X(t),max:H(t)}}getExtremes(t,e){let i,s,o,{xAxis:r,yAxis:a}=this,n=e||this.getExtremesFromAll||this.options.getExtremesFromAll,h=n&&this.cropped?this.dataTable:this.dataTable.getModified(),l=h.rowCount,d=t||this.stackedYData,c=d?[d]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(t=>h.getColumn(t,!0)||[])||[],p=this.getColumn("x",!0),u=[],g=this.requireSorting&&!this.is("column")?1:0,f=!!a&&a.positiveValuesOnly,m=n||this.cropped||!r,x=0,y=0;for(r&&(x=(i=r.getExtremes()).min,y=i.max),o=0;o<l;o++)if(s=p[o],m||(p[o+g]||s)>=x&&(p[o-g]||s)<=y)for(let t of c){let e=t[o];dt(e)&&(e>0||!f)&&u.push(e)}let b={activeYData:u,dataMin:X(u),dataMax:H(u)};return tt(this,"afterGetExtremes",{dataExtremes:b}),b}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let s=t.length,o=e;for(;o>=0&&o<s;){if(U(t[o]))return t[o];o+=i}}translate(){this.generatePoints();let t,e,i,s,o=this.options,r=o.stacking,a=this.xAxis,n=this.enabledDataSorting,h=this.yAxis,l=this.points,d=l.length,c=this.pointPlacementToXValue(),p=!!c,u=o.threshold,g=o.startFromThreshold?u:0,f=o?.nullInteraction&&h.len,m=Number.MAX_VALUE;function x(t){return Y(t,-1e9,1e9)}for(t=0;t<d;t++){let o,d,y,b=l[t],v=b.x,k=b.y,w=b.low,M=r&&h.stacking?.stacks[(this.negStacks&&k<(g?0:u)?"-":"")+this.stackKey];b.plotX=dt(e=a.translate(v,!1,!1,!1,!0,c))?F(x(e)):void 0,r&&this.visible&&M&&M[v]&&(s=this.getStackIndicator(s,v,this.index),!b.isNull&&s.key&&(y=(d=M[v]).points[s.key]),d&&pt(y)&&(w=y[0],k=y[1],w===g&&s.key===M[v].base&&(w=vt(dt(u)?u:h.min)),h.positiveValuesOnly&&U(w)&&w<=0&&(w=void 0),b.total=b.stackTotal=vt(d.total),b.percentage=U(b.y)&&d.total?b.y/d.total*100:void 0,b.stackY=k,this.irregularWidths||d.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),b.yBottom=U(w)?x(h.translate(w,!1,!0,!1,!0)):void 0,this.dataModify&&(k=this.dataModify.modifyValue(k,t)),dt(k)&&void 0!==b.plotX?o=dt(o=h.translate(k,!1,!0,!1,!0))?x(o):void 0:!dt(k)&&f&&(o=f),b.plotY=o,b.isInside=this.isPointInside(b),b.clientX=p?F(a.translate(v,!1,!1,!1,!0,c)):e,b.negative=(b.y||0)<(u||0),b.isNull||!1===b.visible||(void 0!==i&&(m=Math.min(m,Math.abs(e-i))),i=e),b.zone=this.zones.length?b.getZone():void 0,!b.graphic&&this.group&&n&&(b.isNew=!0)}this.closestPointRangePx=m,tt(this,"afterTranslate")}getValidPoints(t,e,i){let s=this.chart;return(t||this.points||[]).filter(function(t){let{plotX:o,plotY:r}=t;return!(!i&&(t.isNull||!dt(r))||e&&!s.isInsidePlot(o,r,{inverted:s.inverted})||!1===t.visible)})}
1getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i}=this,s=t.sharedClips,o=t.renderer,r=t.getClipBox(this),a=this.getSharedClipKey(),n=s[a];tt(this,"setClip",{clipBox:r}),n?n.animate(r):s[a]=n=o.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:n),i&&i.clip()}animate(t){let{chart:e,group:i,markerGroup:s}=this,o=e.inverted,r=Ki(this.options.animation),a=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),n=e.sharedClips[a],h=e.sharedClips[a+"m"];if(t&&i){let t=e.getClipBox(this);if(n)n.attr("height",t.height);else{t.width=0,o&&(t.x=e.plotHeight),n=e.renderer.clipRect(t),e.sharedClips[a]=n;let i={x:-99,y:-99,width:o?e.plotWidth+199:99,height:o?99:e.plotHeight+199};h=e.renderer.clipRect(i),e.sharedClips[a+"m"]=h}i.clip(n),s?.clip(h)}else if(n&&!n.hasClass("highcharts-animating")){let t=e.getClipBox(this),i=r.step;(s?.element.childNodes.length||e.series.length>1)&&(r.step=function(t,e){i&&i.apply(e,arguments),"width"===e.prop&&h?.element&&h.attr(o?"height":"width",t+99)}),n.addClass("highcharts-animating").animate(t,r)}}afterAnimate(){this.setClip(),xt(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,tt(this,"afterAnimate")}drawPoints(t=this.points){let e,i,s,o,r,a,n,h=this.chart,l=h.styledMode,{colorAxis:d,options:c}=this,p=c.marker,u=c.nullInteraction,g=this[this.specialGroup||"markerGroup"],f=this.xAxis,m=vt(p.enabled,!f||!!f.isRadial||null,this.closestPointRangePx>=p.enabledThreshold*p.radius);if(!1!==p.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){o=(s=(i=t[e]).graphic)?"animate":"attr",r=i.marker||{},a=!!i.marker;let c=i.isNull;if(!(m&&!U(r.enabled)||r.enabled)||c&&!u||!1===i.visible)s&&(i.graphic=s.destroy());else{let t=vt(r.symbol,this.symbol,"rect");n=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=f.reversed?-(n.width||0):f.width);let e=!1!==i.isInside;if(!s&&e&&((n.width||0)>0||i.hasImage)&&(i.graphic=s=h.renderer.symbol(t,n.x,n.y,n.width,n.height,a?r:p).add(g),this.enabledDataSorting&&h.hasRendered&&(s.attr({x:i.startXPos}),o="animate")),s&&"animate"===o&&s[e?"show":"hide"](e).animate(n),s){let t=this.pointAttribs(i,l||!i.selected?void 0:"select");l?d&&s.css({fill:t.fill}):s[o](t)}s&&s.addClass(i.getClassName(),!0)}}}markerAttribs(t,e){let i,s,o=this.options,r=o.marker,a=t.marker||{},n=a.symbol||r.symbol,h={},l=vt(a.radius,r?.radius);e&&(i=r?.states?.[e],s=a.states?.[e],l=vt(s?.radius,i?.radius,l&&l+(i?.radiusPlus||0))),t.hasImage=n&&0===n.indexOf("url"),t.hasImage&&(l=0);let d=t.pos();return dt(l)&&d&&(o.crisp&&(d[0]=$(d[0],t.hasImage?0:"rect"===n?r?.lineWidth||0:1)),h.x=d[0]-l,h.y=d[1]-l),l&&(h.width=h.height=2*l),h}pointAttribs(t,e){let i,s,o,r,a=this.options,n=a.marker,h=t?.options,l=h?.marker||{},d=h?.color,c=t?.color,p=t?.zone?.color,u=this.color,g=vt(l.lineWidth,n.lineWidth),f=t?.isNull&&a.nullInteraction?0:1;return u=d||p||c||u,o=l.fillColor||n.fillColor||u,r=l.lineColor||n.lineColor||u,e=e||"normal",i=n.states[e]||{},g=vt((s=l.states&&l.states[e]||{}).lineWidth,i.lineWidth,g+vt(s.lineWidthPlus,i.lineWidthPlus,0)),o=s.fillColor||i.fillColor||o,r=s.lineColor||i.lineColor||r,{stroke:r,"stroke-width":g,fill:o,opacity:f=vt(s.opacity,i.opacity,f)}}destroy(t){let e,i,s=this,o=s.chart,r=/AppleWebKit\/533/.test(es.navigator.userAgent),a=s.data||[];for(tt(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(t){i=s[t],i?.series&&(q(i.series,s),i.isDirty=i.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)a[e]?.destroy?.();for(let t of s.zones)_(t,void 0,!0);nt(s.animationTimeout),xt(s,function(t,e){t instanceof Ae&&!t.survive&&t[r&&"group"===e?"hide":"destroy"]()}),o.hoverSeries===s&&(o.hoverSeries=void 0),q(o.series,s),o.orderItems("series"),xt(s,function(e,i){t&&"hcEvents"===i||delete s[i]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:o,xAxis:r,yAxis:a,zoneAxis:n}=this,{inverted:h,renderer:l}=e,d=this[`${n}Axis`],{isXAxis:c,len:p=0,minPointOffset:u=0}=d||{},g=(i?.strokeWidth()||0)/2+1,f=(t,e=0,i=0)=>{h&&(i=p-i);let{translated:s=0,lineClip:o}=t,r=i-s;o?.push(["L",e,Math.abs(r)<g?i-g*(r<=0?-1:1):s])};if(s.length&&(i||t)&&d&&dt(d.min)){let e=d.getExtremes().max+u,g=t=>{t.forEach((e,i)=>{("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],c?p-e[1]:e[1],c?e[2]:p-e[2]])})};if(s.forEach(t=>{t.lineClip=[],t.translated=Y(d.toPixels(vt(t.value,e),!0)||0,0,p)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===n&&o.length<r.len)for(let t of o){let{plotX:e,plotY:i,zone:o}=t,r=o&&s[s.indexOf(o)-1];o&&f(o,e,i),r&&f(r,e,i)}let m=[],x=d.toPixels(d.getExtremes().min-u,!0);
vendor: 4,680 bytes, line 1
1s.forEach(e=>{let s=e.lineClip||[],o=Math.round(e.translated||0);r.reversed&&s.reverse();let{clip:n,simpleClip:d}=e,p=0,u=0,f=r.len,y=a.len;c?(p=o,f=x):(u=o,y=x);let b=[["M",p,u],["L",f,u],["L",f,y],["L",p,y],["Z"]],v=[b[0],...s,b[1],b[2],...m,b[3],b[4]];m=s.reverse(),x=o,h&&(g(v),t&&g(b)),n?(n.animate({d:v}),d?.animate({d:b})):(n=e.clip=l.path(v),t&&(d=e.simpleClip=l.path(b))),i&&e.graph?.clip(n),t&&e.area?.clip(d)})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,o){let r=this[t],a=!r,n={visibility:i,zIndex:s||.1};return U(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(n.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(U(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(n)[a?"attr":"animate"](this.getPlotBox(e)),r}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,o=s.inverted&&!s.polar&&e&&this.invertible&&"series"===t;s.inverted&&(e=i,i=this.xAxis);let r={scale:1,translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,name:t};tt(this,"getPlotBox",r);let{scale:a,translateX:n,translateY:h}=r;return{translateX:n,translateY:h,rotation:90*!!o,rotationOriginX:o?a*(e.len-i.len)/2:0,rotationOriginY:o?a*(e.len+i.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(t){let{eventsToUnbind:e}=this;t||Tt(this),e.length&&(e.forEach(t=>{t()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,o=Ki(i.animation),r=t.visible?"inherit":"hidden",a=i.zIndex,n=e.seriesGroup,h=t.finishedAnimating?0:o.duration;tt(this,"render"),t.plotGroup("group","series",r,a,n),t.markerGroup=t.plotGroup("markerGroup","markers",r,a,n),!1!==i.clip&&t.setClip(),h&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),h&&t.animate?.(),s||(h&&o.defer&&(h+=o.defer),t.animationTimeout=Pt(()=>{t.afterAnimate()},h||0)),t.isDirty=!1,t.hasRendered=!0,tt(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options,s=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,Pt(function(){e.kdTree=function t(i,s,o){let r,a,n=i?.length;if(n)return r=e.kdAxisArray[s%o],i.sort((t,e)=>(t[r]||0)-(e[r]||0)),{point:i[a=Math.floor(n/2)],left:t(i.slice(0,a),s+1,o),right:t(i.slice(a+1),s+1,o)}}(e.getValidPoints(void 0,!e.directTouch,i?.nullInteraction),s,s),e.buildingKdTree=!1},i.kdNow||"touchstart"===t?.type?0:1)}searchKDTree(t,e,i,s,o){let r=this,[a,n]=this.kdAxisArray,h=e?"distX":"dist",l=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,d=!!r.isBubble,c=s||((t,e,i)=>{let s=t[i]||0,o=e[i]||0;return[s===o&&t.index>e.index||s<o?t:e,!1]}),p=o||((t,e)=>t<e);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,s,o){let l,u,g,f,m,x,y,b=i.point,v=r.kdAxisArray[s%o],k=b,w=!1;l=e[a],u=b[a],g=U(l)&&U(u)?l-u:null,f=e[n],m=b[n],x=U(f)&&U(m)?f-m:0,y=d&&b.marker?.radius||0,b.dist=Math.sqrt((g&&g*g||0)+x*x)-y,b.distX=U(g)?Math.abs(g)-y:Number.MAX_VALUE;let M=(e[v]||0)-(b[v]||0)+(d&&b.marker?.radius||0),S=M<0?"left":"right",T=M<0?"right":"left";return i[S]&&([k,w]=c(b,t(e,i[S],s+1,o),h)),i[T]&&p(Math.sqrt(M*M),k[h],w)&&(k=c(k,t(e,i[T],s+1,o),h)[0]),k}(t,this.kdTree,l,l)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),dt(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:o=-1,plotY:r=-1}=t;return r>=0&&r<=(s?s.len:e.plotHeight)&&o>=0&&o<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),o=t.chart,r=o.pointer,a=o.renderer,n=o.options.tooltip?.snap||0,h=()=>{e.enableMouseTracking&&o.hoverSeries!==t&&t.onMouseOver()},l="rgba(192,192,192,"+(ts?1e-4:.002)+")",d=t.tracker;d?d.attr({d:s}):t.graph&&(t.tracker=d=a.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),o.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:l,fill:i?l:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*n)}
1),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",t=>{r?.onTrackerMouseOut(t)}),e.cursor&&!o.styledMode&&t.css({cursor:e.cursor}),t.on("touchstart",h))})),tt(this,"afterDrawTracker")}addPoint(t,e,i,s,o){let r,a,n=this.options,{chart:h,data:l,dataTable:d,xAxis:c}=this,p=c?.hasNames&&c.names,u=n.data,g=this.getColumn("x");e=vt(e,!0);let f={series:this};this.pointClass.prototype.applyOptions.apply(f,[t]);let m=f.x;if(a=g.length,this.requireSorting&&m<g[a-1])for(r=!0;a&&g[a-1]>m;)a--;d.setRow(f,a,!0,{addColumns:!1}),p&&f.name&&(p[m]=f.name),u?.splice(a,0,t),(r||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===n.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):([l,u].filter(U).forEach(t=>{t.shift()}),d.deleteRows(0))),!1!==o&&tt(this,"addPoint",{point:f}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(s)}removePoint(t,e,i){let s=this,{chart:o,data:r,points:a,dataTable:n}=s,h=r[t],l=function(){[a?.length===r.length?a:void 0,r,s.options.data].filter(U).forEach(e=>{e.splice(t,1)}),n.deleteRows(t),h?.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&o.redraw()};qi(i,o),e=vt(e,!0),h?h.firePointEvent("remove",null,l):l()}remove(t,e,i,s){let o=this,r=o.chart;function a(){o.destroy(s),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(s),vt(t,!0)&&r.redraw(e)}!1!==i?tt(o,"remove",null,a):a()}update(t,e){tt(this,"update",{options:t=K(t,this.userOptions)});let i,s,o=this,r=o.chart,a=o.userOptions,n=o.initialType||o.type,h=r.options.plotOptions,l=is[n].prototype,d=o.finishedAnimating&&{animation:!1},c={},p=os.keepProps.slice(),u=t.type||a.type||r.options.chart.type,g=!(this.hasDerivedData||u&&u!==this.type||void 0!==t.keys||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(t=>o.hasOptionChanged(t)));u=u||n,g?(p.push.apply(p,os.keepPropsForPoints),!1!==t.visible&&p.push("area","graph"),o.parallelArrays.forEach(function(t){p.push(t+"Data")}),t.data&&(t.dataSorting&&J(o.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t.dataLabels&&a.dataLabels&&(t.dataLabels=this.mergeArrays(a.dataLabels,t.dataLabels)),t=ft(a,{index:void 0===a.index?o.index:a.index,pointStart:h?.series?.pointStart??a.pointStart??o.getColumn("x")[0]},!g&&{data:o.options.data},t,d),g&&t.data&&(t.data=o.options.data),(p=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(p)).forEach(function(t){p[t]=o[t],delete o[t]});let f=!1;if(is[u]){if(f=u!==o.type,o.remove(!1,!1,!1,!0),f)if(r.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(o,is[u].prototype);else{let t=Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents;for(s in l)o[s]=void 0;J(o,is[u].prototype),t?o.hcEvents=t:delete o.hcEvents}}else It(17,!0,r,{missingModuleFor:u});if(p.forEach(function(t){o[t]=p[t]}),o.init(r,t),g&&this.points)for(let t of(!1===(i=o.options).visible?(c.graphic=1,c.dataLabel=1):(this.hasMarkerChanged(i,a)&&(c.graphic=1),o.hasDataLabels?.()||(c.dataLabel=1)),this.points))t?.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===i.showInLegend&&t.legendItem&&r.legend.destroyItem(t));o.initialType=n,r.linkSeries(),r.setSortedData(),f&&o.linkedSeries.length&&(o.isDirtyData=!0),tt(this,"afterUpdate"),vt(e,!0)&&r.redraw(!!g&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,i=this.options[t],s=e.options.plotOptions,o=this.userOptions[t],r=vt(s?.[this.type]?.[t],s?.series?.[t]);return o&&!U(r)?i!==o:i!==vt(r,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries,i=t.pointer;i?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&tt(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&tt(this,"mouseOut"),i&&
vendor: 8,636 bytes, line 1
1!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(t){t.setState("",!0)})}setState(t,e){let i=this,{graph:s,options:o}=i,{inactiveOtherPoints:r,states:a}=o,n=vt(a?.[t||"normal"]?.animation,i.chart.options.chart.animation),{lineWidth:h,opacity:l}=o;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,...i.dataLabelsGroups||[]].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(!1===a[t]?.enabled)return;if(t&&(h=a[t].lineWidth||h+(a[t].lineWidthPlus||0),l=vt(a[t].opacity,l)),s&&!s.dashstyle&&dt(h))for(let t of[s,...this.zones.map(t=>t.graph)])t?.animate({"stroke-width":h},n);r||[i.group,i.markerGroup,...i.dataLabelsGroups||[],i.labelBySeries].forEach(function(t){t?.animate({opacity:l},n)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t)})}setVisible(t,e){let i=this,s=i.chart,o=s.options.chart.ignoreHiddenSeries,r=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t;let a=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(t=>{i[t]?.[a]()}),i.dataLabelsGroups?.forEach(t=>{t?.[a]()}),(s.hoverSeries===i||s.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(e=>{e.setVisible(t,!1)}),o&&(s.isDirtyBox=!0),tt(i,a),!1!==e&&s.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),tt(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){let i=this.chart.renderer,s=this.options.legendSymbol||"rectangle",o=e.legendItem||{},{options:r,symbolHeight:a,symbolWidth:n}=t,h=r.squareSymbol,l=h?a:n,d=h?(n-a)/2:0,c=(t.baseline||0)-a+1,p=r.symbolRadius??a,u="rectangle"===s?i.rect(d,c,l,a,p):i.symbols[s]&&i.symbol(s,d,c,l,a,{r:p});u?o.symbol=u.addClass("highcharts-point").attr({zIndex:3}).add(o.group):$i[s]?.call(this,t,e)}}os.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:t}=this.series.chart;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,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"},os.types=Zi.seriesTypes,os.registerType=Zi.registerSeriesType,os.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],os.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],J(os.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Ii,requireSorting:!0,sorted:!0}),Zi.series=os;let rs=os,{animObject:as,setAnimation:ns}=te,{registerEventOptions:hs}=si,{composed:ls,marginNames:ds}=z,{distribute:cs}=me,{format:ps}=ge;class us{constructor(t,e){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(),hs(this,e),W(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),W(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=vt(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=ft(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=vt(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(ft(!0,this.options,t)),"events"in this.options&&hs(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,vt(e,!0)&&i.redraw(),tt(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let i=t.color,{area:s,group:o,label:r,line:a,symbol:n}=t.legendItem||{};if((t instanceof rs||t instanceof Ii)&&(t.color=t.options?.legendSymbolColor||i),o?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:i={}}=this,o=i.color,{fillColor:h,fillOpacity:l,lineColor:d,marker:c}=t.options,p=t=>(!e&&(t.fill&&(t.fill=o),t.stroke&&(t.stroke=o)),t);r?.css(ft(e?this.itemStyle:i)),a?.attr(p({stroke:d||t.color})),n&&n.attr(p(c&&n.isMarker?t.pointAttribs():{fill:t.color})),s?.attr(p({fill:h||t.color,"fill-opacity":h?1:l??.75}))}t.color=i,tt(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},o=this.options,r=o.symbolPadding,a=!o.rtl,n=t.checkbox;if(e?.element){let o={translateX:a?i:this.legendWidth-i-2*r-4,translateY:s},n=()=>{tt(this,"afterPositionItem",{item:t})};e[U(e.translateY)?"animate":"attr"](o,void 0,n)}n&&(n.x=i,n.y=s)}destroyItem(t){let e=t.legendItem||{};for(let t of["group","label","line","symbol"])e[t]&&(e[t]=e[t].destroy());t.checkbox=Z(t.checkbox),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(o){let r,a=o.checkbox;a&&(r=t+s+a.y+(this.scrollOffset||0)+3,V(a,{left:e.translateX+o.checkboxOffset+a.x-20+"px",top:r+"px",display:this.proximate||r>t-6&&r<t+i-6?"":"none"}))},this))}renderTitle(){let t,e=this.options,i=this.padding,s=e.title,o=0;s.text&&(this.title||(this.title=this.chart.renderer.label(s.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(s.style),this.title.add(this.group)),s.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?ps(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,o=this.options,r="horizontal"===o.layout,a=this.symbolWidth,n=o.symbolPadding||0,h=this.itemStyle,l=this.itemHiddenStyle,d=r?vt(o.itemDistance,20):0,c=!o.rtl,p=!t.series,u=!p&&t.series.drawLegendSymbol?t.series:t,g=u.options,f=!!this.createCheckboxForItem&&g&&g.showCheckbox,m=o.useHTML,x=t.options.className,y=e.label,b=a+n+d+20*!!f;!y&&(e.group=s.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=s.text("",c?a+n:-n,this.baseline||0,m),i.styledMode||y.css(ft(t.visible?h:l)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=vt(o.symbolHeight,this.fontMetrics.f),o.squareSymbol&&(this.symbolWi
vendor: 1,958 bytes, line 1
1dth=vt(o.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+n+d+20*!!f,c&&y.attr("x",this.symbolWidth+n))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,m)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!h.width)&&y.css({width:Math.min(o.itemWidth||this.widthOption||i.spacingBox.width,o.maxWidth?Mt(o.maxWidth,i.chartWidth):1/0)-b+"px"}),this.setText(t);let v=y.getBBox(),k=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=o.itemWidth||e.labelWidth||v.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(v.height>1.5*k?v.height:k))}layoutItem(t){let e=this.options,i=this.padding,s="horizontal"===e.layout,o=t.itemHeight,r=this.itemMarginBottom,a=this.itemMarginTop,n=s?vt(e.itemDistance,20):0,h=this.maxLegendWidth,l=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+l>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=a+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,s?this.itemX+=l:(this.itemY+=a+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:n):l)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let i=e?.options;e&&vt(i.showInLegend,!U(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItem?.labels||("point"===i.legendType?e.data:e)))}),tt(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let 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)}adjustMargins(t,e){let i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
vendor: 8,372 bytes, line 1
1h((r,a)=>{r.test(o)&&!U(t[a])&&(i[ds[a]]=Math.max(i[ds[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+(s.margin??12)+e[a]+(i.titleOffset[a]||0)))})}proximatePositions(){let t,e=this.chart,i=[],s="left"===this.options.align;for(let o of(this.allItems.forEach(function(t){let o,r,a,n,h=s;t.yAxis&&(t.xAxis.options.reversed&&(h=!h),t.points&&(o=at(h?t.points:t.points.slice(0).reverse(),function(t){return dt(t.plotY)})),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,n=t.yAxis.top-e.plotTop,a=t.visible?(o?o.plotY:t.yAxis.height)+(n-.3*r):n+t.yAxis.height,i.push({target:a,size:r,item:t}))},this),cs(i,e.plotHeight)))t=o.item.legendItem||{},dt(o.pos)&&(t.y=e.plotTop-e.spacing[0]+o.pos)}render(){let t,e,i,s,o=this.chart,r=o.spacingBox.width,a=o.renderer,n=this.options,h=this.padding,l=this.getAllItems(),d=this.group,c=this.box;this.itemX=h,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Mt(n.width,r-h),s=r-2*h-n.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(s/=2),this.maxLegendWidth=this.widthOption||s,d||(this.group=d=a.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(d),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),At(l,(t,e)=>(t.options?.legendIndex||0)-(e.options?.legendIndex||0)),n.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(n.maxWidth?Math.min(this.widthOption||this.offsetWidth,s,Mt(n.maxWidth,o.chartWidth)||1/0):this.widthOption||this.offsetWidth)+h,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+h,c||(this.box=c=a.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(d)),o.styledMode||c.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.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"](),o.styledMode&&"none"===d.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),tt(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=ft(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(ft(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e,i,s,o,r=this,a=this.chart,n=a.renderer,h=this.options,l=h.y,d="top"===h.verticalAlign,c=this.padding,p=h.maxHeight,u=h.navigation,g=vt(u.animation,!0),f=u.arrowSize||12,m=this.pages,x=this.allItems,y=function(t){"number"==typeof t?w.attr({height:t}):w&&(r.clipRect=w.destroy(),r.contentGroup.clip()),r.contentGroup.div&&(r.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},b=function(t){return r[t]=n.circle(0,0,1.3*f).translate(f/2,f/2).add(k),a.styledMode||r[t].attr("fill","rgba(0,0,0,0.0001)"),r[t]},v=a.spacingBox.height+(d?-l:l)-c,k=this.nav,w=this.clipRect;return"horizontal"!==h.layout||"middle"===h.verticalAlign||h.floating||(v/=2),p&&(v=Math.min(v,p)),m.length=0,t&&v>0&&t>v&&!1!==u.enabled?(this.clipHeight=e=Math.max(v-20-this.titleHeight-c,0),this.currentPage=vt(this.currentPage,1),this.fullHeight=t,x.forEach((t,r)=>{let a=(s=t.legendItem||{}).y||0,n=Math.round(s.label.getBBox().height),h=m.length;(!h||a-m[h-1]>e&&(i||a)!==m[h-1])&&(m.push(i||a),h++),s.pageIx=h-1,i&&o&&(o.pageIx=h-1),r===x.length-1&&a+n-m[h-1]>e&&a>m[h-1]&&(m.push(a),s.pageIx=h),a!==i&&(i=a),o=s}),w||(w=r.clipRect=n.clipRect(0,c-2,9999,0),r.contentGroup.clip(w)),y(e),k||(this.nav=k=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,f,f).add(k),b("upTracker").on("click",function(){r.scroll(-1,g)}),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(k),this.down=n.symbol("triangle-down",0,0,f,f).add(k),b("downTracker").on("click",function(){r.scroll(1,g)})),r.scroll(0),t=v):k&&(y(),this.nav=k.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,o=s.length,r=this.clipHeight,a=this.options.navigation,n=this.pager,h=this.padding,l=this.currentPage+t;l>o&&(l=o),l>0&&(void 0!==e&&ns(e,i),this.nav.attr({translateX:h,translateY:r+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===l?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:l+"/"+o}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:l===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===l?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===l?"default":"pointer"}),this.down.attr({fill:l===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:l===o?"default":"pointer"})),this.scrollOffset=-s[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes(),Pt(()=>{tt(this,"afterScroll",{currentPage:l})},as(vt(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let s=this,o=t.legendItem||{},r=s.chart.renderer.boxWrapper,a=t instanceof Ii,n=t instanceof rs,h="highcharts-legend-"+(a?"point":"series")+"-active",l=s.chart.styledMode,d=i?[e,o.symbol]:[o.group],c=e=>{s.allItems.forEach(i=>{t!==i&&[i].concat(i.linkedSeries||[]).forEach(t=>{t.setState(e,!a)})})};for(let i of d)i&&i.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&r.addClass(h),l||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(ft(t.visible?s.itemStyle:s.itemHiddenStyle)),c(""),r.removeClass(h),t.setState()}).on("click",function(e){r.removeClass(h),tt(s,"itemClick",{browserEvent:e,legendItem:t,context:s},function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")}),a?t.firePointEvent("legendItemClick",{browserEvent:e}):n&&tt(t,"legendItemClick",{browserEvent:e})})}createCheckboxForItem(t){t.checkbox=j("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),W(t.checkbox,"click",function(e){let i=e.target;tt(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}(p=us||(us={})).compose=function(t){wt(ls,"Core.Legend")&&W(t,"beforeMargins",function(){this.legend=new p(this,this.options.legend)})};let gs=us,{animate:fs,animObject:ms,setAnimation:xs}=te,{defaultOptions:ys}=jt,{numberFormat:bs}=ge,{registerEventOptions:vs}=si,{charts:ks,doc:ws,marginNames:Ms,svg:Ss,win:Ts}=z,{seriesTypes:Cs}=Zi;class As{static chart(t,e,i){return new As(t,e,i)}constructor(t,e,i){if(this.sharedClips={},!ws)return void It(36,!1,this);const s=[...arguments];(ct(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming=o(o({},e),{},{type:vt(t.zoomType,e.type),key:vt(t.zoomKey,e.key),pinchType:vt(t.pinchType,e.pinchType),singleTouch:vt(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:ft(e.resetButton,t.resetZoomButton)})}init(t,e){tt(this,"init",{args:arguments},function(){let i=ft(ys,t),s=i.chart,o=this.renderTo||s.renderTo;this.userOptions=J({},t),(this.renderTo=ct(o)?ws.getElementById(o):o)||It(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new Ht(J(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||bs).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=ks.length,ks.push(this),z.chartCount++,vs(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),tt(this,"afterInit"),this.firstRen
vendor: 5,072 bytes, line 1
1der()})}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=Cs[i];s||It(17,!0,this,{missingModuleFor:i});let o=new s;return"function"==typeof o.init&&o.init(this,t),o}setSortedData(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})}orderItems(t,e=0){let i=this[t],s=this.options[t]=Ct(this.options[t]).slice(),o=this.userOptions[t]=this.userOptions[t]?Ct(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),o.splice(e)),i)for(let t=e,r=i.length;t<r;++t){let e=i[t];e&&(e.index=t,e instanceof rs&&(e.name=e.getName()),e.options.isInternal||(s[t]=e.options,o[t]=e.userOptions))}}getClipBox(t,e){let i=this.inverted,{xAxis:s,yAxis:o}=t||{},{x:r,y:a,width:n,height:h}=ft(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&(n=s.len),o&&o.len!==this.plotSizeY&&(h=o.len),i&&!t.invertible&&([n,h]=[h,n])),e&&(r+=(i?o:s)?.pos??this.plotLeft,a+=(i?s:o)?.pos??this.plotTop),{x:r,y:a,width:n,height:h}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:o,plotLeft:r,plotTop:a,scrollablePlotBox:n}=this,{scrollLeft:h=0,scrollTop:l=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},d=i.series,c=i.visiblePlotOnly&&n||o,p=i.inverted?e:t,u=i.inverted?t:e,g={x:p,y:u,isInsidePlot:!0,options:i};if(!i.ignoreX){let t=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:r,len:1/0},e=i.paneCoordinates?t.pos+p:r+p;e>=Math.max(h+r,t.pos)&&e<=Math.min(h+r+c.width,t.pos+t.len)||(g.isInsidePlot=!1)}if(!i.ignoreY&&g.isInsidePlot){let t=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:a,len:1/0},e=i.paneCoordinates?t.pos+u:a+u;e>=Math.max(l+a,t.pos)&&e<=Math.min(l+a+c.height,t.pos+t.len)||(g.isInsidePlot=!1)}return tt(this,"afterIsInsidePlot",g),g.isInsidePlot}redraw(t){tt(this,"beforeRedraw");let e,i,s,o,r=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,n=this.pointer,h=this.legend,l=this.userOptions.legend,d=this.renderer,c=d.isHidden(),p=[],u=this.isDirtyBox,g=this.isDirtyLegend;for(d.rootFontSize=d.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),xs(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(!1),s=a.length;s--;)if(((o=a[s]).options.stacking||o.options.centerInCategory)&&(i=!0,o.isDirty)){e=!0;break}if(e)for(s=a.length;s--;)(o=a[s]).options.stacking&&(o.isDirty=!0);a.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),g=!0):l&&(l.labelFormatter||l.labelFormat)&&(g=!0)),t.isDirtyData&&tt(t,"updatedData")}),g&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1),i&&this.getStacks(),r.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),r.forEach(function(t){t.isDirty&&(u=!0)}),r.forEach(function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push(function(){tt(t,"afterSetExtremes",J(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),tt(this,"predraw"),a.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),n&&n.reset(!0),d.draw(),tt(this,"redraw"),tt(this,"render"),c&&this.temporaryDisplay(!0),p.forEach(function(t){t.call()})}get(t){let e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}let s=at(this.axes,i)||at(this.series,i);for(let t=0;!s&&t<e.length;t++)s=at(e[t].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(tt(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=Ct(t[e]||{}))new ui(this,i,e);tt(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(e=>{vt(e.selectedStaging,e.selected)&&t.push(e)}),t),[])}getSelectedSeries(){return this.series.filter(t=>t.selected)}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,s=this.options[t]=ft(this.options[t],e),o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,s){i.applyDescription(t,e),i.layOutTitles(s)},this.styledMode||o.css(J("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),o.textPxLength=o.getBBox().width,o.css({whiteSpace:s.style?.whiteSpace}),this[t]=o)}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:s,spacingBox:o}=this;["title","subtitle","caption"].forEach(t=>{let i=this[t],r=this.options[t],a=ft(o),n=i?.textPxLength||0;if(i&&r){tt(this,"layOutTitle",{alignTo:a,key:t,textPxLength:n});let o=s.fontMetrics(i),h=o.b,l=o.h,d=r.verticalAlign||"top",c="top"===d,p=c&&r.minScale||1,u="title"===t?c?-3:0:c?e[0]+2:0,g=Math.min(a.width/n,1),f=Math.max(p,g),m=ft({y:"bottom"===d?h:u+h},r),x=(r.width||(g>p?this.chartWidth:a.width)/f)+"px";
vendor: 4,524 bytes, line 1
1m.align??(m.align="title"===t?g<p?"left":"center":this.title?.alignValue),i.alignValue!==m.align&&(i.placed=!1);let y=Math.round(i.css({width:x}).getBBox(r.useHTML).height);if(m.height=y,i.align(m,!1,a).attr({align:m.align,scaleX:f,scaleY:f,"transform-origin":`${a.x+n*f*et(m.align)} ${l}`}),!r.floating){let t=y*(y<1.2*l?1:f);"top"===d?e[0]=Math.ceil(e[0]+t):"bottom"===d&&(e[2]=Math.ceil(e[2]+t))}}},this),e[0]&&"top"===(i.title?.verticalAlign||"top")&&(e[0]+=i.title?.margin||0),e[2]&&"bottom"===i.caption?.verticalAlign&&(e[2]+=i.caption?.margin||0);let r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,tt(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,t=>{if(t!==this.container){let e=t.style.display;return t.style.display="none",[t,e]}}),e={width:rt(this.renderTo,"width",!0)||0,height:rt(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([t,e])=>{t.style.display=e}),e}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox(),o=s.height<=1||!this.renderTo.parentElement?.style.height&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,Mt(i,this.chartWidth)||(o?400:s.height)),this.containerBox=s}temporaryDisplay(t){let e,i=this.renderTo;if(t)for(;i?.style;)i.hcOrigStyle&&(V(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(ws.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i?.style&&(ws.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,ws.body.appendChild(i)),("none"===rt(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),V(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==ws.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",o=zt(),r=this.renderTo,a=kt(G(r,s));dt(a)&&ks[a]&&ks[a].hasRendered&&ks[a].destroy(),G(r,s,this.index),r.innerHTML=ae.emptyHTML,i.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize();let n=this.chartHeight,h=this.chartWidth;V(r,{overflow:"hidden"}),this.styledMode||(t=J({position:"relative",overflow:"hidden",width:h+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));let l=j("div",{id:o},t,r);this.container=l,this.getChartSize(),h!==this.chartWidth&&(h=this.chartWidth,this.styledMode||V(l,{width:vt(i.style?.width,h+"px")})),this.containerBox=this.getContainerBox(),this._cursor=l.style.cursor;let d=i.renderer||!Ss?fe.getRendererType(i.renderer):Ze;if(this.renderer=new d(l,h,n,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode),xs(void 0,this),this.setClassName(i.className),this.styledMode)for(let t in e.defs)this.renderer.definition(e.defs[t]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,tt(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!U(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!U(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),tt(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,o=t=>{t.forEach(t=>{t.visible&&t.getOffset()})};t.hasCartesianSeries?o(t.axes):i?.length&&o(i),Ms.forEach((i,o)=>{U(s[o])||(t[i]+=e[o])}),t.setChartSize()}getOptions(){return K(this.userOptions,ys)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer?.chartPosition,!e.exporting?.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(nt(e.reflowTimeout),e.reflowTimeout=Pt(function(){if(e.container){e.setSize(void 0,void 0,!1);let t=e.containerBox;t&&(t.height=e.chartHeight)}},100*!!t)),e.containerBox=s)}setReflow(){let t=this,e=e=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=W(Ts,"resize",e);W(this,"destroy",t)}}setSize(t,e,i){let s=this,o=s.renderer;s.isResizing+=1,xs(i,s);let r=o.globalAnimation;
vendor: 1,966 bytes, line 1
1s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:a,chartHeight:n,scrollablePixelsX:h=0,scrollablePixelsY:l=0}=s;(s.isDirtyBox||a!==s.oldChartWidth||n!==s.oldChartHeight)&&(s.styledMode||(r?fs:V)(s.container,{width:`${a+h}px`,height:`${n+l}px`},r),s.setChartSize(!0),o.setSize(a,n,r),s.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(r),s.oldChartHeight=void 0,tt(s,"resize"),setTimeout(()=>{s&&tt(s,"endResize")},ms(r).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,o,{chartHeight:r,chartWidth:a,inverted:n,spacing:h,renderer:l}=this,d=this.clipOffset,c=Math[n?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(r-i-(this.marginBottom??0))),this.plotSizeX=n?o:s,this.plotSizeY=n?s:o,this.spacingBox=l.spacingBox={x:h[3],y:h[0],width:a-h[3]-h[1],height:r-h[0]-h[2]},this.plotBox=l.plotBox={x:e,y:i,width:s,height:o},d&&(this.clipBox={x:c(d[3]),y:c(d[0]),width:c(this.plotSizeX-d[1]-d[3]),height:c(this.plotSizeY-d[0]-d[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),l.alignElements()),tt(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){tt(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach(i=>{let s=e[i],o=gt(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach((s,r)=>{t[i][r]=e[`${i}${s}`]??o[r]})}),Ms.forEach((e,i)=>{t[e]=t.margin[i]??t.spacing[i]}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i}drawChartBox(){let t,e,i,s=this.options.chart,o=this.renderer,r=this.chartWidth,a=this.chartHeight,n=this.styledMode,h=this.plotBGImage,l=s.backgroundColor,d=s.plotBackgroun
1dColor,c=s.plotBackgroundImage,p=this.plotLeft,u=this.plotTop,g=this.plotWidth,f=this.plotHeight,m=this.plotBox,x=this.clipRect,y=this.clipBox,b=this.chartBackground,v=this.plotBackground,k=this.plotBorder,w="animate";b||(this.chartBackground=b=o.rect().addClass("highcharts-background").add(),w="attr"),n?t=e=b.strokeWidth():(e=(t=s.borderWidth||0)+8*!!s.shadow,i={fill:l||"none"},(t||b["stroke-width"])&&(i.stroke=s.borderColor,i["stroke-width"]=t),b.attr(i).shadow(s.shadow)),b[w]({x:e/2,y:e/2,width:r-e-t%2,height:a-e-t%2,r:s.borderRadius}),w="animate",v||(w="attr",this.plotBackground=v=o.rect().addClass("highcharts-plot-background").add()),v[w](m),!n&&(v.attr({fill:d||"none"}).shadow(s.plotShadow),c&&(h?(c!==h.attr("href")&&h.attr("href",c),h.animate(m)):this.plotBGImage=o.image(c,p,u,g,f).add())),x?x.animate({width:y.width,height:y.height}):this.clipRect=o.clipRect(y),w="animate",k||(w="attr",this.plotBorder=k=o.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),n||k.attr({stroke:s.plotBorderColor,"stroke-width":s.plotBorderWidth||0,fill:"none"}),k[w](k.crisp(m,-k.strokeWidth())),this.isDirtyBox=!1,tt(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,o=s.options.chart,r=s.options.series;["inverted","angular","polar"].forEach(function(a){for(e=Cs[o.type],i=o[a]||e&&e.prototype[a],t=r?.length;!i&&t--;)(e=Cs[r[t].type])&&e.prototype[a]&&(i=!0);s[a]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){let{linkedTo:s}=t.options,o=ct(s)&&(":previous"===s?i[t.index-1]:e.get(s));o&&o.linkedParent!==t&&(o.linkedSeries.push(t),t.linkedParent=o,o.enabledDataSorting&&t.setDataSortingOptions(),t.visible=t.options.visible??o.options.visible??t.visible)}),tt(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t,e=this.axes,i=this.colorAxis,s=this.renderer,o=this.options.chart.axisLayoutRuns||2,r=t=>{t.forEach(t=>{t.visible&&t.render()})},a=0,n=!0,h=0;for(let t of(this.setTitle(),tt(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=t,{labels:i}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&i.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){a=e.tickLength,t.createGroups();let s=new ri(t,0,"",!0),o=s.createLabel("x",i);if(s.destroy(),o&&vt(i.reserveSpace,!dt(e.crossing))&&(a=o.getBBox().height+i.distance+Math.max(e.offset||0,0)),a){o?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(n||t||o>1)&&h<o;){let i=this.plotWidth,s=this.plotHeight,o=[1.05,1.1];for(let i of e){let e=+(i.horiz||0);if(0===h){i.setScale();let t=i.tickPositions?.info?.match;t&&(o[e]=Math.min(t,o[e]))}else(e&&n||!e&&t)&&i.setTickInterval(!0)}0===h?this.getAxisMargins():this.getMargins(),n=i/this.plotWidth>(h?1:o[1]),t=s/this.plotHeight>(h?1:o[0]),h++}this.drawChartBox(),this.hasCartesianSeries?r(e):i?.length&&r(i),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}addCredits(t){let e=this,i=ft(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(t){tt(e,"creditsClick",t,()=>{i.href&&(Ts.location.href=i.href)})}).attr({align:i.position.align,zIndex:8}),i.events?.click&&W(e,"creditsClick",i.events.click),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,i=e.axes,s=e.series,o=e.container,r=o?.parentNode;for(tt(e,"destroy"),e.renderer.forExport?q(ks,e):ks[e.index]=void 0,z.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Tt(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=s.length;t--;)s[t]=s[t].destroy();
vendor: 4,111 bytes, line 1
1["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(t=>{e[t]=e[t]?.destroy?.()}),o&&(o.innerHTML=ae.emptyHTML,Tt(o),r&&Z(o)),xt(e,function(t,i){delete e[i]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=pt(e.series)?e.series:[];e.series=[],i.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),tt(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.asyncCounter||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),tt(this,"load"),tt(this,"render"),U(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e?.element.textContent||"").replace(/</g,"<")}),t.accessibility&&!1===t.accessibility.enabled||It('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))}warnIfCSSNotLoaded(){this.styledMode&&"0"!==Ts.getComputedStyle(this.container).zIndex&&It(35,!1,this)}addSeries(t,e,i){let s,o=this;return t&&(e=vt(e,!0),tt(o,"addSeries",{options:t},function(){s=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),tt(o,"afterAddSeries",{series:s}),e&&o.redraw(i)})),s}addAxis(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,e){let i=new ui(this,e.axis,t);return vt(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,o=s?.style??{},r=function(){a&&V(a,{left:o.left??e.plotLeft+"px",top:o.top??e.plotTop+"px",width:o.width??e.plotWidth+"px",height:o.height??e.plotHeight+"px"})},a=e.loadingDiv,n=e.loadingSpan;a||(e.loadingDiv=a=j("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=j("span",{className:"highcharts-loading-inner"},null,a),W(e,"redraw",r)),a.className="highcharts-loading",ae.setElementHTML(n,vt(t,i.lang.loading,"")),!e.styledMode&&(V(a,J(o,{zIndex:10})),V(n,s?.labelStyle??{}),e.loadingShown||(V(a,{opacity:0,display:""}),fs(a,{opacity:o.opacity??.5},{duration:s?.showDuration??0}))),e.loadingShown=!0,r()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||fs(e,{opacity:0},{duration:t.loading?.hideDuration??100,complete:function(){V(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let o,r,a,n=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,d=[];tt(n,"update",{options:t}),l||n.setResponsive(!1,!0),t=K(t,n.options),n.userOptions=ft(n.userOptions,t);let c=t.chart;c&&(ft(!0,n.options.chart,c),this.setZoomOptions(),"className"in c&&n.setClassName(c.className),("inverted"in c||"polar"in c||"type"in c)&&(n.propFromSeries(),o=!0),"alignTicks"in c&&(o=!0),"events"in c&&vs(this,c),xt(c,function(t,e){-1!==n.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==n.propsRequireDirtyBox.indexOf(e)&&(n.isDirtyBox=!0),-1!==n.propsRequireReflow.indexOf(e)&&(n.isDirtyBox=!0,l||(a=!0))}),!n.styledMode&&c.style&&n.renderer.setStyle(n.options.chart.style||{})),!n.styledMode&&t.colors&&(this.options.colors=t.colors),xt(t,function(e,i){n[i]&&"function"==typeof n[i].update?n[i].update(e,!1):"function"==typeof n[h[i]]?n[h[i]](e):"colors"!==i&&-1===n.collectionsWithUpdate.indexOf(i)&&ft(!0,n.options[i],t[i]),"chart"!==i&&-1!==n.propsRequireUpdateSeries.indexOf(i)&&(r=!0)}
1),this.collectionsWithUpdate.forEach(e=>{t[e]&&(Ct(t[e]).forEach((t,s)=>{let o;if(!t)return;let r=U(t.id);r&&(o=n.get(t.id)),!o&&n[e]&&(o=n[e][vt(t.index,s)])&&(r&&U(o.options.id)||o.options.isInternal)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),i&&(o.touched=!0)),!o&&i&&n.collectionsWithInit[e]&&(n.collectionsWithInit[e][0].apply(n,[t].concat(n.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&n[e].forEach(t=>{t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(t=>{t.chart&&t.remove&&t.remove(!1)}),o&&n.axes.forEach(function(t){t.update({},!1)}),r&&n.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);let p=c?.width,u=c&&(ct(c.height)?Mt(c.height,p||n.chartWidth):c.height);a||dt(p)&&p!==n.chartWidth||dt(u)&&u!==n.chartHeight?n.setSize(p,u,s):vt(e,!0)&&n.redraw(s),tt(n,"afterUpdate",{options:t,redraw:e,animation:s})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=ys.lang,i=t.zooming.resetButton,s=i.theme,o="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function r(){t.zoomOut()}tt(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,r,s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)}),tt(this,"afterShowResetZoom")}zoomOut(){tt(this,"selection",{resetSelection:!0}
vendor: 2,808 bytes, line 1
1,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,s="object"==typeof e?e:{enabled:e,type:"x"},o=s.type,r=o&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter(t=>t.options.panningEnabled&&!t.options.isInternal),a=i.options.chart;a?.panning&&(a.panning=s),tt(this,"pan",{originalEvent:t},()=>{i.transform({axes:r,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),V(i.container,{cursor:"move"})})}transform(t){let{axes:e=this.axes,event:i,from:s={},reset:o,selection:r,to:a={},trigger:n,allowResetButton:h=!0}=t,{inverted:l,time:d}=this;this.hoverPoints?.forEach(t=>t.setState()),tt(this,"transform",t);let c,p,u=t.hasZoomed||!1;for(let t of e){let{horiz:e,len:g,minPointOffset:f=0,options:m,reversed:x}=t,y=e?"width":"height",b=e?"x":"y",v=vt(a[y],t.len),k=vt(s[y],t.len),w=10>Math.abs(v)?1:v/k,M=(s[b]||0)+k/2-t.pos,S=M-((a[b]??t.pos)+v/2-t.pos)/w,T=x&&!l||!x&&l?-1:1;if(!o&&(M<0||M>t.len))continue;let C=t.chart.polar||t.isOrdinal?0:f*T||0,A=t.toValue(S,!0),P=t.toValue(S+g/w,!0),L=A+C,O=P-C,E=t.allExtremes;if(r&&r[t.coll].push({axis:t,min:Math.min(A,P),max:Math.max(A,P)}),L>O&&([L,O]=[O,L]),1===w&&!o&&"yAxis"===t.coll&&!E){for(let e of t.series){let t=e.getExtremes(e.getProcessedData(!0).modified.getColumn(e.pointValKey||"y")||[],!0);E??(E={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),dt(t.dataMin)&&dt(t.dataMax)&&(E.dataMin=Math.min(t.dataMin,E.dataMin),E.dataMax=Math.max(t.dataMax,E.dataMax))}t.allExtremes=E}let{dataMin:I,dataMax:D,min:B,max:z}=J(t.getExtremes(),E||{}),N=d.parse(m.min),R=d.parse(m.max),W=I??N,X=D??R,H=O-L,G=t.categories?0:Math.min(H,X-W),Y=W-G*(U(N)?0:m.minPadding),F=X+G*(U(R)?0:m.maxPadding),j=t.allowZoomOutside||1===w||"zoom"!==n&&w>1,$=Math.min(N??Y,Y,j?B:Y),V=Math.max(R??F,F,j?z:F);(!t.isOrdinal||1!==w||o)&&(L<$&&(L=$,w>=1&&(O=L+H)),O>V&&(O=V,w>=1&&(L=O-H)),(o||t.series.length&&(L!==B||O!==z)&&L>=$&&O<=V)&&(r?r[t.coll].push({axis:t,min:L,max:O}):(t.isPanning="zoom"!==n,t.isPanning&&"mousewheel"!==n&&(p=!0),t.setExtremes(o?void 0:L,o?void 0:O,!1,!1,{move:S,trigger:n,scale:w}),!o&&(L>$||O<V)&&(c=h)),u=!0),this.hasCartesianSeries||o||(c=h),i&&(this[e?"mouseDownX":"mouseDownY"]=i[e?"chartX":"chartY"]))}return u&&(r?tt(this,"selection",r,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!c||p||this.resetZoomButton?!c&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===n&&(this.options.chart.animation??this.pointCount<100)))),u}}J(As.prototype,{callbacks:[],collectionsWithInit:{xAxis:[As.prototype.addAxis,[!0]],yAxis:[As.prototype.addAxis,[!1]],series:[As.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
1dColor","plotBackgroundImage","plotBorderColor","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"]});let{stop:Ps}=te,{composed:Ls}=z;function Os(){let t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new Is(this)),t?.applyFixed()}function Es(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Is{static compose(t,e,i){wt(Ls,this.compose)&&(W(t,"afterInit",Es),W(e,"afterSetChartSize",t=>this.afterSetSize(t.target,t)),W(e,"render",Os),W(i,"show",Es))}static afterSetSize(t,e){let i,s,o,{minWidth:r,minHeight:a}=t.options.chart.scrollablePlotArea||{},{clipBox:n,plotBox:h,inverted:l,renderer:d}=t;if(!d.forExport)if(r?(t.scrollablePixelsX=i=Math.max(0,r-t.chartWidth),i&&(t.scrollablePlotBox=ft(t.plotBox),h.width=t.plotWidth+=i,n[l?"height":"width"]+=i,o=!0)):a&&(t.scrollablePixelsY=s=Math.max(0,a-t.chartHeight),U(s)&&(t.scrollablePlotBox=ft(t.plotBox),h.height=t.plotHeight+=s,n[l?"width":"height"]+=s,o=!1)),U(o)){if(!e.skipAxes)for(let e of t.axes)(e.horiz===o||t.hasParallelCoordinates&&"yAxis"===e.coll)&&(e.setAxisSize(),e.setAxisTranslation())}else delete t.scrollablePlotBox}constructor(t){let e;const i=t.options.chart,s=fe.getRendererType(),o=i.scrollablePlotArea||{},r=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(a.overflowX="auto"),t.scrollablePixelsY&&(a.overflowY="auto"),this.chart=t;const n=this.parentDiv=j("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),h=this.scrollingContainer=j("div",{className:"highcharts-scrolling"},a,n),l=this.innerContainer=j("div",{className:"highcharts-inner-container"},void 0,h),d=this.fixedDiv=j("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(i.style?.zIndex||0)+2,top:0},void 0,!0),c=this.fixedRenderer=new s(d,t.chartWidth,t.chartHeight,i.style);this.mask=c.path().attr({fill:i.backgroundColor||"#fff","fill-opacity":o.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),h.parentNode.insertBefore(d,h),V(t.renderTo,{overflow:"visible"}),W(t,"afterShowResetZoom",r),W(t,"afterApplyDrilldown",r),W(t,"afterLayOutTitles",r),W(h,"scroll",()=>{let{pointer:i,hoverPoint:s}=t;i&&(delete i.chartPosition,s&&(e=s),i.runPointActions(void 0,e,!0))}),l.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:s}=this,{axisOffset:o,chartWidth:r,chartHeight:a,container:n,plotHeight:h,plotLeft:l,plotTop:d,plotWidth:c,scrollablePixelsX:p=0,scrollablePixelsY:u=0}=t,{scrollPositionX:g=0,scrollPositionY:f=0}=t.options.chart.scrollablePlotArea||{},m=r+p,x=a+u;e.setSize(r,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),Ps(t.container),V(n,{width:`${m}px`,height:`${x}px`}),t.renderer.boxWrapper.attr({width:m,height:x,viewBox:["0 0",m,x].join(" ")}),t.chartBackground?.attr({width:m,height:x}),V(s,{width:`${r}px`,height:`${a}px`}),U(i)||(s.scrollLeft=p*g,s.scrollTop=u*f);let y=d-o[0]-1,b=l-o[3]-1,v=d+h+o[2]+1,k=l+c+o[1]+1,w=l+c-p,M=d+h-u,S=[["M",0,0]];p?S=[["M",0,y],["L",l-1,y],["L",l-1,v],["L",0,v],["Z"],["M",w,y],["L",r,y],["L",r,v],["L",w,v],["Z"]]:u&&(S=[["M",b,0],["L",b,d-1],["L",k,d-1],["L",k,0],["Z"],["M",b,M],["L",b,a],["L",k,a],["L",k,M],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:S})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:s,scrollablePixelsY:o}=this.chart,r=this.fixedRenderer,a=Is.fixedSelectors.slice();if(s&&!i?t=".highcharts-yaxis":s&&i||o&&!i?t=".highcharts-xaxis":o&&i&&(t=".highcharts-yaxis"),!t||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===t)for(let t of[".highcharts-xaxis",".highcharts-yaxis"])for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])q(a,e);else for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])wt(a,e);for(let t of a)[].forEach.call(e.querySelectorAll(t),t=>
1{(t.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}}Is.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"];let{format:Ds}=ge,{series:Bs}=Zi,zs=class{constructor(t,e,i,s,o){const r=t.chart.inverted,a=t.reversed;this.axis=t;const n=this.isNegative=!!i!=!!a;this.options=e=e||{},this.x=s,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(r?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":n?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?n?"right":"left":"center")}destroy(){_(this,this.axis)}render(t){let e=this.axis.chart,i=this.options,s=i.format,o=(s?Ds(s,this,e):i.formatter?.call(this,this))||"";if(this.label)this.label.attr({text:o,visibility:"hidden"});else{this.label=e.renderer.label(o,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let s={r:i.borderRadius||0,text:o,padding:vt(i.padding,5),visibility:"hidden"};e.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,tt(this,"afterRender")}setOffset(t,e,i,s,o,r){let{alignOptions:a,axis:n,label:h,options:l,textAlign:d}=this,c=n.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:s,defaultX:o,xAxis:r}),{verticalAlign:u}=a;if(h&&p){let t,e=h.getBBox(void 0,0),i=h.padding,s="justify"===vt(l.overflow,"justify");a.x=l.x||0,a.y=l.y||0;let{x:o,y:r}=this.adjustStackPosition({labelBox:e,verticalAlign:u,textAlign:d});p.x-=o,p.y-=r,h.align(a,!1,p),(t=c.isInsidePlot(h.alignAttr.x+a.x+o,h.alignAttr.y+a.y+r))||(s=!1),s&&Bs.prototype.justifyDataLabel.call(n,h,a,h.alignAttr,e,p),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:l.rotation,rotationOriginX:e.width*et(l.textAlign||"center"),rotationOriginY:e.height/2}),vt(!s&&l.crop,!0)&&(t=dt(h.x)&&dt(h.y)&&c.isInsidePlot(h.x-i+(h.width||0),h.y)&&c.isInsidePlot(h.x+i,h.y)),h[t?"show":"hide"]()}tt(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:i}){return{x:t.width/2+t.width/2*(2*et(i)-1),y:t.height/2*2*(1-et(e))}}getStackBox(t){let e=this.axis,i=e.chart,{boxTop:s,defaultX:o,xOffset:r,width:a,boxBottom:n}=t,h=e.stacking.usePercentage?100:vt(s,this.total,0),l=e.toPixels(h),d=t.xAxis||i.xAxis[0],c=vt(o,d.translate(this.x))+r,p=Math.abs(l-e.toPixels(n||dt(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),u=i.inverted,g=this.isNegative;return u?{x:(g?l:l-p)-i.plotLeft,y:d.height-c-a+d.top-i.plotTop,width:p,height:a}:{x:c+d.transB-i.plotLeft,y:(g?l-p:l)-i.plotTop,width:a,height:p}}},{getDeferredAnimation:Ns}=te,{series:{prototype:Rs}}=Zi;function Ws(){let t=this.inverted;this.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(e=>{let i=e.xAxis?.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,vt(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))})}function Xs(){let t=this.stacking;if(t){let e=t.stacks;xt(e,(t,i)=>{_(t),delete e[i]}),t.stackTotalGroup?.destroy()}}function Hs(){this.stacking||(this.stacking=new Vs(this))}function Gs(t,e,i,s){return!U(t)||t.x!==e||s&&t.stackKey!==s?t={x:e,index:0,key:s,stackKey:s}:t.index++,t.key=[i,e,t.index].join(","),t}function Ys(){let t,e=this,i=e.yAxis,s=e.stackKey||"",o=i.stacking.stacks,r=e.getColumn("x",!0),a=e.options.stacking,n=e[a+"Stacker"];n&&[s,"-"+s].forEach(i=>{let s,a,h,l=r.length;for(;l--;)s=r[l],t=e.getStackIndicator(t,s,e.index,i),a=o[i]?.[s],(h=a?.points[t.key||""])&&n.call(e,h,a,l)})}function Fs(t,e,i){let s=e.total?100/e.total:0;t[0]=F(t[0]*s),t[1]=F(t[1]*s),this.stackedYData[i]=t[1]}function js(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Rs.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function $s(t,e){let i,s,o,r,a,n,h,l=e||this.options.stacking;if(!l||!this.reserveSpace()||({group:"xAxis"}[l]||"yAxis")!==t.coll)return;
vendor: 8,579 bytes, line 1
1let d=this.getColumn("x",!0),c=this.getColumn(this.pointValKey||"y",!0),p=[],u=c.length,g=this.options,f=g.threshold||0,m=g.startFromThreshold?f:0,x=g.stack,y=e?`${this.type},${l}`:this.stackKey||"",b="-"+y,v=this.negStacks,k=t.stacking,w=k.stacks,M=k.oldStacks;for(k.stacksTouched+=1,h=0;h<u;h++){let e=d[h]||0,u=c[h],g=dt(u)&&u||0;n=(i=this.getStackIndicator(i,e,this.index)).key||"",w[a=(s=v&&g<(m?0:f))?b:y]||(w[a]={}),w[a][e]||(M[a]?.[e]?(w[a][e]=M[a][e],w[a][e].total=null):w[a][e]=new zs(t,t.options.stackLabels,!!s,e,x)),o=w[a][e],null!==u?(o.points[n]=o.points[this.index]=[vt(o.cumulative,m)],U(o.cumulative)||(o.base=n),o.touched=k.stacksTouched,i.index>0&&!1===this.singleStacks&&(o.points[n][0]=o.points[this.index+","+e+",0"][0])):(delete o.points[n],delete o.points[this.index]);let S=o.total||0;"percent"===l?(r=s?y:b,S=v&&w[r]?.[e]?(r=w[r][e]).total=Math.max(r.total||0,S)+Math.abs(g):F(S+Math.abs(g))):"group"===l?dt(u)&&S++:S=F(S+g),o.cumulative="group"===l?(S||1)-1:F(vt(o.cumulative,m)+g),o.total=S,null!==u&&(o.points[n].push(o.cumulative),p[h]=o.cumulative,o.hasValidPoints=!0)}"percent"===l&&(k.usePercentage=!0),"group"!==l&&(this.stackedYData=p),k.oldStacks={}}class Vs{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,o="xAxis"===i.coll,r=i.options.reversedStacks,a=s.length;for(this.resetStacks(),this.usePercentage=!1,e=a;e--;)t=s[r?e:a-e-1],o&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!o)for(e=0;e<a;e++)s[e].modifyStacks();tt(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,xt(this.stacks,t=>{xt(t,t=>{t.cumulative=t.total})}))}resetStacks(){xt(this.stacks,t=>{xt(t,(e,i)=>{dt(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,o=Ns(e,t.options.stackLabels?.animation||!1),r=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),xt(s,t=>{xt(t,t=>{t.render(r)})}),r.animate({opacity:1},o)}}(C||(C={})).compose=function(t,e,i){let s=e.prototype,o=i.prototype;s.getStacks||(W(t,"init",Hs),W(t,"destroy",Xs),s.getStacks=Ws,o.getStackIndicator=Gs,o.modifyStacks=Ys,o.percentStacker=Fs,o.setGroupedPoints=js,o.setStackedPoints=$s)};let Us=C;class _s extends rs{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,o)=>{let r,a=s.graph,n=a?"animate":"attr",h=s.dashStyle||t.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):e.length&&(s.graph=a=this.chart.renderer.path(e).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&s.className||"")).attr({zIndex:1}).add(this.group)),a&&!i&&(r={stroke:!o&&t.lineColor||s.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},h?r.dashstyle=h:"square"!==t.linecap&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),a[n](r),t.shadow)){let e=this.chart.inverted,i={filterUnits:"userSpaceOnUse"},s=gt(t.shadow)?ft(e?{}:i,t.shadow):!!e||i;a.shadow(s)}a&&(a.startX=e.xMap,a.isArea=e.isArea)})}getGraphPath(t,e,i){let s,o=this,r=o.options,a=[],n=[],h=r.step,l=(t=t||o.points).reversed;return l&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&l&&(h=4-h),(t=this.getValidPoints(t,!1,r.nullInteraction||!(r.connectNulls&&!e&&!i))).forEach(function(l,d){let c,p=l.plotX,u=l.plotY,g=t[d-1],f=l.isNull||"number"!=typeof u;(l.leftCliff||g?.rightCliff)&&!i&&(s=!0),f&&!U(e)&&d>0?s=!r.connectNulls:f&&!e?s=!0:(0===d||s?c=[["M",l.plotX,l.plotY]]:o.getPointSpline?c=[o.getPointSpline(t,l,d)]:h?(c=1===h?[["L",g.plotX,u]]:2===h?[["L",(g.plotX+p)/2,g.plotY],["L",(g.plotX+p)/2,u]]:[["L",p,g.plotY]]).push(["L",p,u]):c=[["L",p,u]],n.push(l.x),h&&(n.push(l.x),2===h&&n.push(l.x)),a.push.apply(a,c),s=!1)}),a.xMap=n,o.graphPath=a,a}}_s.defaultOptions=ft(rs.defaultOptions,{legendSymbol:"lineMarker"}),Zi.registerSeriesType("line",_s);let{seriesTypes:{line:Zs}}=Zi;class Ks extends Zs{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let o={},r=i.fillColor||e.fillColor,a=i.area,n=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(o.zIndex=0,(a=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?` highcharts-zone-area-${s-1} `:" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=r||i.color||this.color,o["fill-opacity"]=r?1:e.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[n](o),a.startX=t.xMap,a.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,s,o=Zs.prototype.getGraphPath,r=this.options,a=r.stacking,n=this.yAxis,h=[],l=[],d=this.index,c=n.stacking.stacks[this.stackKey],p=r.threshold,u=Math.round(n.getThreshold(r.threshold)),g=vt(r.connectNulls,"percent"===a),f=function(i,s,o){let r,g,f=t[i],m=t[s],x=a&&c[f.x].points[d],y=f[o+"Null"]||0,b=f[o+"Cliff"]||0,v=!0;x&&(b||y)?(r=(y?x[0]:x[1])+b,g=x[0]+b,v=!!y):!a&&m&&(m.isNull||!U(m.plotY))&&(r=g=p),void 0!==r&&(l.push({plotX:e,plotY:null===r?u:n.getThreshold(r),isNull:v,isCliff:!0}),h.push({plotX:e,plotY:null===g?u:n.getThreshold(g),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let o=0,r=t.length;o<r;++o)a||(t[o].leftCliff=t[o].rightCliff=t[o].leftNull=t[o].rightNull=void 0),i=t[o].isNull||!U(t[o].plotY),e=vt(t[o].rectPlotX,t[o].plotX),s=a?vt(t[o].yBottom,u):u,(!i||g)&&(g||f(o,o-1,"left"),i&&!a&&g||(l.push(t[o]),h.push({x:o,plotX:e,plotY:s})),g||f(o,o+1,"right"));let m=o.call(this,l,!0,!0);h.reversed=!0;let x=o.call(this,h,!0,!0),y=x[0];y&&"M"===y[0]&&(x[0]=["L",y[1],y[2]]);let b=m.concat(x);b.length&&b.push(["Z"]);let v=o.call(this,l,!1,g);return this.chart.series.length>1&&a&&l.some(t=>t.isCliff)&&(b.hasStackedCliffs=v.hasStackedCliffs=!0),b.xMap=m.xMap,this.areaPath=b,v}getStackPoints(t){let e=this,i=[],s=[],o=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],n={},h=r.series,l=h.length,d=r.options.reversedStacks?1:-1,c=h.indexOf(e),p=r.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(let e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,n[t[e].x]=t[e];xt(a,function(t,e){null!==t.total&&s.push(e)}),s.sort(function(t,e){return t-e});let u=h.map(t=>t.visible);s.forEach(function(t,g){let f,m,x=0;if(n[t]&&!n[t].isNull)i.push(n[t]),[-1,1].forEach(function(i){let o=1===i?"rightNull":"leftNull",r=a[s[g+i]],p=0;if(r){let i=c;for(;i>=0&&i<l;){let s=h[i].index;!(f=r.points[s])&&(s===e.index?n[t][o]=!0:u[i]&&(m=a[t].points[s])&&(p-=m[1]-m[0])),i+=d}}n[t][1===i?"rightCliff":"leftCliff"]=p});else{let e=c;for(;e>=0&&e<l;){let i=h[e].index;if(f=a[t].points[i]){x=f[1];break}e+=d}x||(x=0);let s=r.positiveValuesOnly&&x<=0?p:r.translate(x,!1,!0,!1,!0);i.push({isNull:!0,plotX:o.translate(t,!1,!1,!1,!0),x:t,plotY:s,yBottom:s})}})}return i}}Ks.defaultOptions=ft(Zs.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),J(Ks.prototype,{singleStacks:!1}),Zi.registerSeriesType("area",Ks);let{line:qs}=Zi.seriesTypes;class Js extends qs{getPointSpline(t,e,i){let s,o,r,a,n=e.plotX||0,h=e.plotY||0,l=t[i-1],d=t[i+1];function c(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(c(l)&&c(d)){let t=l.plotX||0,i=l.plotY||0,c=d.plotX||0,p=d.plotY||0,u=0;s=(1.5*n+t)/2.5,o=(1.5*h+i)/2.5,r=(1.5*n+c)/2.5,a=(1.5*h+p)/2.5,r!==s&&(u=(a-o)*(r-n)/(r-s)+h-a),o+=u,a+=u,o>i&&o>h?(o=Math.max(i,h),a=2*h-o):o<i&&o<h&&(o=Math.min(i,h),a=2*h-o),a>p&&a>h?(a=Math.max(p,h),o=2*h-a):a<p&&a<h&&(a=Math.min(p,h),o=2*h-a),e.rightContX=r,e.rightContY=a,e.controlPoints={low:[s,o],high:[r,a]}}let p=["C",vt(l.rightContX,l.plotX,0),vt(l.rightContY,l.plotY,0),vt(s,n,0),vt(o,h,0),n,h];return l.rightContX=l.rightContY=void 0,p}}Js.defaultOptions=ft(qs.defaultOptions),Zi.registerSeriesType("spline",Js);let Qs=Js,{area:to,area:{prototype:eo}}=Zi.seriesTypes;class io extends Qs{}io.defaultOptions=ft(Qs.defaultOptions,to.defaultOptions),J(io.prototype,{getGraphPath:eo.getGraphPath,getStackPoints:eo.getStackPoints,drawGraph:eo.drawGraph}),Zi.registerSeriesType("areaspline",io);let{animObject:so}=te,{parse:oo}=_t,{noop:ro}=z;class ao extends rs{animate(t){let e,i,s=this,o=this.yAxis,r=o.pos,a=o.reversed,n=s.options,{clipOffset:h,inverted:l}=this.chart,d={},c=l?"translateX":"translateY";t&&h?(d.scaleY=.001,i=Y(o.toPixels(n.threshold||0),r,r+o.len),l?d.translateX=(i+=a?-Math.floor(h[0]):Math.ceil(h[2]))-o.len:d.translateY=i+=a?Math.
vendor: 5,474 bytes, line 1
1ceil(h[0]):-Math.floor(h[2]),s.clipBox&&s.setClip(),s.group.attr(d)):(e=Number(s.group.attr(c)),s.group.animate({scaleY:1},J(so(s.options.animation),{step:function(t,i){s.group&&(d[c]=e+i.pos*(r-e),s.group.attr(d))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(t){t.type===i.type&&(t.isDirty=!0)})}getColumnMetrics(){let t,e=this,i=e.options,s=e.xAxis,o=e.yAxis,r=s.options.reversedStacks,a=s.reversed&&!r||!s.reversed&&r,n={},h=0;!1===i.grouping?h=1:e.chart.series.forEach(function(i){let s,r=i.yAxis,a=i.options;i.type===e.type&&i.reserveSpace()&&o.len===r.len&&o.pos===r.pos&&(a.stacking&&"group"!==a.stacking?(void 0===n[t=i.stackKey]&&(n[t]=h++),s=n[t]):!1!==a.grouping&&(s=h++),i.columnIndex=s)});let l=Math.min(Math.abs(s.transA)*(!s.brokenAxis?.hasBreaks&&s.ordinal?.slope||i.pointRange||s.closestPointRange||s.tickInterval||1),s.len),d=l*i.groupPadding,c=(l-2*d)/(h||1),p=Math.min(i.maxPointWidth||s.len,vt(i.pointWidth,c*(1-2*i.pointPadding))),u=(e.columnIndex||0)+ +!!a;return e.columnMetrics={width:p,offset:(c-p)/2+(d+u*c-l/2)*(a?-1:1),paddedWidth:c,columnCount:h},e.columnMetrics}crispCol(t,e,i,s){let o=this.borderWidth,r=this.chart.inverted;return s=$(e+s,o,r)-(e=$(e,o,r)),this.options.crisp&&(i=$(t+i,o)-(t=$(t,o))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let o=this.xAxis.series.filter(t=>t.visible).map(t=>t.index),r=0,a=0;xt(this.xAxis.stacking?.stacks,t=>{let e="number"==typeof i.x?t[i.x.toString()]?.points:void 0,s=e?.[this.index],n={};if(e&&pt(s)){let t=this.index,i=Object.keys(e).filter(t=>!t.match(",")&&e[t]&&e[t].length>1).map(parseFloat).filter(t=>-1!==o.indexOf(t)).filter(e=>{let i=this.chart.series[e].options,s=i.stacking&&i.stack;if(U(s)){if(dt(n[s]))return t===e&&(t=n[s]),!1;n[s]=e}return!0}).sort((t,e)=>e-t);r=i.indexOf(t),a=i.length}}),r=this.xAxis.reversed?a-1-r:r;let n=(a-1)*s.paddedWidth+e;t=(i.plotX||0)+n/2-e-r*s.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,o=t.borderWidth=i.borderWidth??+!s,r=t.xAxis,a=t.yAxis,n=i.threshold,h=i.minPointLength??5,l=t.getColumnMetrics(),d=l.width,c=t.pointXOffset=l.offset,p=t.dataMin,u=t.dataMax,g=t.translatedThreshold=a.getThreshold(n),f=t.barW=Math.max(d,1+2*o);i.pointPadding&&i.crisp&&(f=Math.ceil(f)),rs.prototype.translate.apply(t),t.points.forEach(function(s){let o,m=s.yBottom??g,x=999+Math.abs(m),y=s.plotX||0,b=Y(s.plotY,-x,a.len+x),v=Math.min(b,m),k=Math.max(b,m)-v,w=d,M=y+c,S=f;h&&Math.abs(k)<h&&(k=h,o=!a.reversed&&!s.negative||a.reversed&&s.negative,dt(n)&&dt(u)&&s.y===n&&u<=n&&(a.min||0)<n&&(p!==u||(a.max||0)<=n)&&(o=!o,s.negative=!s.negative),v=Math.abs(v-g)>h?m-(o?h:0):g-(o?h:0)),U(s.options.pointWidth)&&(M-=Math.round(((w=S=Math.ceil(s.options.pointWidth))-d)/2)),i.centerInCategory&&(M=t.adjustForMissingColumns(M,w,s,l)),s.barX=M,s.pointWidth=w,s.tooltipPos=e.inverted?[Y(a.len+a.pos-e.plotLeft-b,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),r.len+r.pos-e.plotTop-M-S/2,k]:[r.left-e.plotLeft+M+S/2,Y(b+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),k],s.shapeType=t.pointClass.prototype.shapeType||"roundedRect",s.shapeArgs=t.crispCol(M,v,S,s.isNull?0:k)}),tt(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i,s,o,r=this.options,a=this.pointAttrToOptions||{},n=a.stroke||"borderColor",h=a["stroke-width"]||"borderWidth",l=t&&t.color||this.color,d=t&&t[n]||r[n]||l,c=t&&t.options.dashStyle||r.dashStyle,p=t&&t[h]||r[h]||this[h]||0,u=t?.isNull&&r.nullInteraction?0:t?.opacity??r.opacity??1;t&&this.zones.length&&(s=t.getZone(),l=t.options.color||s&&(s.color||t.nonZonedColor)||this.color,s&&(d=s.borderColor||d,c=s.dashStyle||c,p=s.borderWidth||p)),e&&t&&(o=(i=ft(r.states[e],t.options.states?.[e]||{})).brightness,l=i.color||void 0!==o&&oo(l).brighten(i.brightness).get()||l,d=i[n]||d,p=i[h]||p,c=i.dashStyle||c,u=vt(i.opacity,u));let g={fill:l,stroke:d,"stroke-width":p,opacity:u};return c&&(g.dashstyle=c),g}drawPoints(t=this.points){let e,i=this,s=this.chart,o=i.options,r=o.nullInteraction,a=s.renderer,n=o.animationLimit||250;t.forEach(function(t){let h=t.plotY,l=t.graphic,d=!!l,c=l&&s.pointCount<n?"animate":"attr";dt(h)&&(null!==t.y||r)?(e=t.shapeArgs,l&&t.hasNewShapeType()&&(l=l.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!l&&(t.graphic=l=a[t.shapeType](e).add(t.group||i.group),l&&i.enabledDataSorting&&s.hasRendered&&s.pointCount<n&&(l.attr({x:t.startXPos}),d=!0,c="animate")),l&&d&&l[c](ft(e)),s.styledMode||l[c](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&o.shadow),l&&(l.addClass(t.getClassName(),!0),l.attr({visibility:t.visible?"inherit":"hidden"}))):l&&(t.graphic=l.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,o=s.pointer,r=function(t){o?.normalize(t);let e=o?.getPointFromEvent(t);o&&e&&i.options.enableMouseTracking&&(s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})||i.allowOutsidePlotInteraction&&o?.inClass(t.target,"highcharts-point")||o?.inClass(t.target,"highcharts-data-label"))&&(o.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=pt(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),i._hasTracking||(i.trackerGroups?.reduce((t,e)=>
1("dataLabelsGroup"===e?t.push(...i.dataLabelsGroups||[]):t.push(i[e]),t),[]).forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(t){o?.onTrackerMouseOut(t)}).on("touchstart",r),!s.styledMode&&i.options.cursor&&t.css({cursor:i.options.cursor}))}),i._hasTracking=!0),tt(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),rs.prototype.remove.apply(t,arguments)}}ao.defaultOptions=ft(rs.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),J(ao.prototype,{directTouch:!0,getSymbol:ro,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Zi.registerSeriesType("column",ao);let no=ao,{getDeferredAnimation:ho}=te,{format:lo}=ge;!function(t){function e(){return h(this).some(t=>t?.enabled)}function i(t,e,i,s,o){let{chart:r,enabledDataSorting:a}=this,n=this.isCartesian&&r.inverted,h=t.plotX,l=t.plotY,d=i.rotation||0,c=U(h)&&U(l)&&r.isInsidePlot(h,Math.round(l),{inverted:n,paneCoordinates:!0,series:this}),p=0===d&&"justify"===vt(i.overflow,a?"none":"justify"),u=this.visible&&!1!==t.visible&&U(h)&&(t.series.forceDL||a&&!p||c||vt(i.inside,!!this.options.stacking)&&s&&r.isInsidePlot(h,n?s.x+1:s.y+s.height-1,{inverted:n,paneCoordinates:!0,series:this})),g=t.pos();if(u&&g){var f;let h=e.getBBox(),l=e.getBBox(void 0,0);if(s=J({x:g[0],y:Math.round(g[1]),width:0,height:0},s||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(s[n?"x":"y"]=0,s[n?"width":"height"]=this.yAxis?.len||0),J(i,{width:h.width,height:h.height}),f=s,a&&this.xAxis&&!p&&this.setDataLabelStartPos(t,e,o,c,f),e.align(ft(i,{width:l.width,height:l.height}),!1,s,!1),e.alignAttr.x+=et(i.align)*(l.width-h.width),e.alignAttr.y+=et(i.verticalAlign)*(l.height-h.height),e[e.placed?"animate":"attr"]({"text-align":e.alignAttr["text-align"]||"center",x:e.alignAttr.x+(h.width-l.width)/2,y:e.alignAttr.y+(h.height-l.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),p&&s.height>=0)this.justifyDataLabel(e,i,e.alignAttr,h,s,o);else if(vt(i.crop,!0)){let{x:t,y:i}=e.alignAttr;u=r.isInsidePlot(t,i,{paneCoordinates:!0,series:this})&&r.isInsidePlot(t+h.width-1,i+h.height-1,{paneCoordinates:!0,series:this})}i.shape&&!d&&e[o?"attr":"animate"]({anchorX:g[0],anchorY:g[1]})}o&&a&&(e.placed=!1),u||a&&!p?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function s(t,e){tt(this,"initDataLabelsGroup",{index:t,zIndex:e?.zIndex??6}),this.dataLabelsGroup=this.dataLabelsGroups?.[t];let i=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",e?.zIndex??6,this.dataLabelsParentGroups?.[t]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[t]=i,this.dataLabelsGroup=this.dataLabelsGroups[0],i}function o(t,e,i){let s=!!this.hasRendered,o=this.initDataLabelsGroup(t,i).attr({opacity:+s});return!s&&o&&(this.visible&&o.show(),this.options.animation?o.animate({opacity:1},e):o.attr({opacity:1})),o}function r(t){let e;t=t||this.points;let i=this,s=i.chart,o=i.options,r=s.renderer,{backgroundColor:a,plotBackgroun
1dColor:l}=s.options.chart,d=r.getContrast(ct(l)&&l||ct(a)&&a||"#000000"),c=h(i),{animation:p,defer:u}=c[0],g=u?ho(s,p,i):{defer:0,duration:0};tt(this,"drawDataLabels"),i.hasDataLabels?.()&&t.forEach(t=>{let a=t.dataLabels||[],h=t.color||i.color;Ct(n(c,t.dlOptions||t.options?.dataLabels)).forEach((n,l)=>{e=this.initDataLabels(l,g,n);let c,p,u,f,m=n.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let i=e.filter;if(i){let e=i.operator,s=t[i.property],o=i.value;return">"===e&&s>o||"<"===e&&s<o||">="===e&&s>=o||"<="===e&&s<=o||"=="===e&&s==o||"==="===e&&s===o||"!="===e&&s!=o||"!=="===e&&s!==o||!1}return!0}(t,n),{backgroundColor:x,borderColor:y,distance:b,style:v={}}=n,k={},w=a[l],M=!w;m&&(p=U(c=vt(n[t.formatPrefix+"Format"],n.format))?lo(c,t,s):(n[t.formatPrefix+"Formatter"]||n.formatter).call(t,n,t),u=n.rotation,!s.styledMode&&(v.color=vt(n.color,v.color,ct(i.color)?i.color:void 0,"#000000"),"contrast"===v.color?("none"!==x&&(f=x),t.contrastColor=r.getContrast("auto"!==f&&ct(f)&&f||(ct(h)?h:"")),v.color=f||!U(b)&&n.inside||0>kt(b||0)||o.stacking?t.contrastColor:d):delete t.contrastColor,o.cursor&&(v.cursor=o.cursor)),k={r:n.borderRadius||0,rotation:u,padding:n.padding,zIndex:1},s.styledMode||(k.fill="auto"===x?t.color:x,k.stroke="auto"===y?t.color:y,k["stroke-width"]=n.borderWidth),xt(k,(t,e)=>{void 0===t&&delete k[e]})),!w||m&&U(p)&&!(!w.div&&!w.text?.foreignObject)==!!n.useHTML&&(w.rotation&&n.rotation||w.rotation===n.rotation)||(w=void 0,M=!0),m&&U(p)&&""!==p&&(w?k.text=p:(w=r.label(p,0,0,n.shape,void 0,void 0,n.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(n.className||"")+(n.useHTML?" highcharts-tracker":"")),w&&(w.options=n,w.attr(k),s.styledMode?v.width&&w.css({width:v.width,textOverflow:v.textOverflow,whiteSpace:v.whiteSpace}):w.css(v).shadow(n.shadow),tt(w,"beforeAddingDataLabel",{labelOptions:n,point:t}),w.added||w.add(e),i.alignDataLabel(t,w,n,void 0,M),w.isActive=!0,a[l]&&a[l]!==w&&a[l].destroy(),a[l]=w))});let l=a.length;for(;l--;)a[l]?.isActive?a[l].isActive=!1:(a[l]?.destroy(),a.splice(l,1));t.dataLabel=a[0],t.dataLabels=a}),tt(this,"afterDrawDataLabels")}function a(t,e,i,s,o,r){let a,n,h=this.chart,l=e.align,d=e.verticalAlign,c=t.box?0:t.padding||0,p=h.inverted?this.yAxis:this.xAxis,u=p?p.left-h.plotLeft:0,g=h.inverted?this.xAxis:this.yAxis,f=g?g.top-h.plotTop:0,{x:m=0,y:x=0}=e;return(a=(i.x||0)+c+u)<0&&("right"===l&&m>=0?(e.align="left",e.inside=!0):m-=a,n=!0),(a=(i.x||0)+s.width-c+u)>h.plotWidth&&("left"===l&&m<=0?(e.align="right",e.inside=!0):m+=h.plotWidth-a,n=!0),(a=i.y+c+f)<0&&("bottom"===d&&x>=0?(e.verticalAlign="top",e.inside=!0):x-=a,n=!0),(a=(i.y||0)+s.height-c+f)>h.plotHeight&&("top"===d&&x<=0?(e.verticalAlign="bottom",e.inside=!0):x+=h.plotHeight-a,n=!0),n&&(e.x=m,e.y=x,t.placed=!r,t.align(e,void 0,o)),n}function n(t,e){let i,s=[];if(pt(t)&&!pt(e))s=t.map(function(t){return ft(t,e)});else if(pt(e)&&!pt(t))s=e.map(function(e){return ft(t,e)});else if(pt(t)||pt(e)){if(pt(t)&&pt(e))for(i=Math.max(t.length,e.length);i--;)s[i]=ft(t[i],e[i])}else s=ft(t,e);return s}function h(t){let e=t.chart.options.plotOptions;return Ct(n(n(e?.series?.dataLabels,e?.[t.type]?.dataLabels),t.options.dataLabels))}function l(t,e,i,s,o){let r=this.chart,a=r.inverted,n=this.xAxis,h=n.reversed,l=((a?e.height:e.width)||0)/2,d=t.pointWidth,c=d?d/2:0;e.startXPos=a?o.x:h?-l-c:n.width-l+c,e.startYPos=a?h?this.yAxis.height-l+c:-l-c:o.y,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0}
vendor: 1,346 bytes, line 1
1,void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){let h=t.prototype;h.initDataLabels||(h.initDataLabels=o,h.initDataLabelsGroup=s,h.alignDataLabel=i,h.drawDataLabels=r,h.justifyDataLabel=a,h.mergeArrays=n,h.setDataLabelStartPos=l,h.hasDataLabels=e)}}(A||(A={}));let co=A,{composed:po}=z,{series:uo}=Zi;function go(t,e,i,s,o){let{chart:r,options:a}=this,n=r.inverted,h=this.xAxis?.len||r.plotSizeX||0,l=this.yAxis?.len||r.plotSizeY||0,d=t.dlBox||t.shapeArgs,c=t.below??(t.plotY||0)>(this.translatedThreshold??l),p=i.inside??!!a.stacking;if(d){if(s=ft(d),"allow"!==i.overflow||!1!==i.crop||!1!==a.clip){s.y<0&&(s.height+=s.y,s.y=0);let t=s.y+s.height-l;t>0&&t<s.height-1&&(s.height-=t)}n&&(s={x:l-s.y-s.height,y:h-s.x-s.width,width:s.height,height:s.width}),p||(n?(s.x+=c?0:s.width,s.width=0):(s.y+=c?s.height:0,s.height=0))}i.align??(i.align=!n||p?"center":c?"right":"left"),i.verticalAlign??(i.verticalAlign=n||p?"middle":c?"top":"bottom"),uo.prototype.alignDataLabel.call(this,t,e,i,s,o),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}(P||(P={})).compose=function(t){co.compose(uo),wt(po,"ColumnDataLabel")&&(t.prototype.alignDataLabel=go)};let fo=P;class mo extends no{}mo.defaultOptions=ft(no.defaultOptions,{}),J(mo.prototype,{inverted:!0}),Zi.registerSeriesType("bar",mo);
1let{column:xo,line:yo}=Zi.seriesTypes;class bo extends yo{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,o){["x","y"].forEach(function(r,a){if(e[r]&&!s.isNull){let n=`plot${r.toUpperCase()}`,h=t[`${r}Axis`],l=e[r]*h.transA;if(h&&!h.logarithmic){let t,e=Math.max(0,(s[n]||0)-l),d=Math.min(h.len,(s[n]||0)+l);s[n]=e+(d-e)*((t=1e4*Math.sin(o+a*i))-Math.floor(t)),"x"===r&&(s.clientX=s.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}bo.defaultOptions=ft(yo.defaultOptions,{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/>"}}),J(bo.prototype,{allowOutsidePlotInteraction:!0,drawTracker:xo.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),W(bo,"afterTranslate",function(){this.applyJitter()}),Zi.registerSeriesType("scatter",bo);let{deg2rad:vo}=z;(u=L||(L={})).getCenter=function(){let t,e,i,s=this.options,o=this.chart,r=2*(s.slicedOffset||0),a=o.plotWidth-2*r,n=o.plotHeight-2*r,h=s.center,l=Math.min(a,n),d=s.thickness,c=s.size,p=s.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof p&&(p=parseFloat(p));let u=[vt(h?.[0],"50%"),vt(h?.[1],"50%"),vt(c&&c<0?void 0:s.size,"100%"),vt(p&&p<0?void 0:s.innerSize||0,"0%")];for(!o.angular||this instanceof rs||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=Mt(i,[a,n,l,u[2]][e])+(t?r:0);return u[3]>u[2]&&(u[3]=u[2]),dt(d)&&2*d<u[2]&&d>0&&(u[3]=u[2]-2*d),tt(this,"afterGetCenter",{positions:u}),u},u.getStartAndEndRadians=function(t,e){let i=dt(t)?t:0,s=dt(e)&&e>i&&e-i<360?e:i+360;return{start:vo*(i+-90),end:vo*(s+-90)}};let ko=L,{setAnimation:wo}=te;class Mo extends Ii{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,r=this.connectorShapes[s]||s;return e&&r.call(this,o(o({},e.computed),{},{alignment:e.alignment}),e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let 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})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name=t.chart.options.lang.pieSliceName);const s=t=>{this.slice("select"===t.type)};W(this,"select",s),W(this,"unselect",s)}isValid(){return dt(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let s=this.series;wo(i,s.chart),e=vt(e,!0),this.sliced=this.options.sliced=t=U(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}J(Mo.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let s=e.breakAt,o=e.touchingSliceAt,r=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-o.x,2*s.y-o.y,s.x,s.y]:["L",s.x,s.y];return[["M",t.x,t.y],r,["L",o.x,o.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{angle:s=this.angle||0,breakAt:o,touchingSliceAt:r}=e,{series:a}=this,[n,h,l]=a.center,d=l/2,{plotLeft:c,plotWidth:p}=a.chart,u="left"===t.alignment,{x:g,y:f}=t,m=o.x;if(i.crookDistance){let t=Mt(i.crookDistance,1);m=u?n+d+(p+c-n-d)*(1-t):c+(n-d)*t}else m=n+(h-f)*Math.tan(s-Math.PI/2);let x=[["M",g,f]];return(u?m<=g&&m>=o.x:m>=g&&m<=o.x)&&x.push(["L",m,f]),x.push(["L",o.x,o.y],["L",r.x,r.y]),x}}});let{getStartAndEndRadians:So}=ko,{noop:To}=z;class Co extends rs{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(t){let i=t.graphic,o=t.shapeArgs;i&&o&&(i.attr({r:vt(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,o=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,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Ie.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;
vendor: 4,045 bytes, line 1
1this.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)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,i,s){let o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,a=s.dataLabelPosition,n=a?.distance||0,h=Math.asin(Y((t-o[1])/(r+n),-1,1));return o[0]+Math.cos(h)*(r+n)*(e?-1:1)+(n>0?(e?-1:1)*(s.padding||0):0)}hasData(){return this.points.some(t=>t.visible)}redrawPoints(){let t,e,i,s,o=this,r=o.chart;this.drawEmpty(),o.group&&!r.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(a){let n={};e=a.graphic,!a.isNull&&e?(s=a.shapeArgs,t=a.getTranslate(),r.styledMode||(i=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||ft(!0,n,i),ft(!0,n,s,t),e.animate(n)),e.attr({visibility:a.visible?"inherit":"hidden"}),e.addClass(a.getClassName(),!0)):e&&(a.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})}translate(t){tt(this,"translate"),this.generatePoints();let e,i,s,o,r,a,n,h=this.options,l=h.slicedOffset,d=So(h.startAngle,h.endAngle),c=this.startAngleRad=d.start,p=(this.endAngleRad=d.end)-c,u=this.points,g=h.ignoreHiddenPoint,f=u.length,m=0;for(t||(this.center=t=this.getCenter()),a=0;a<f;a++){n=u[a],e=c+m*p,n.isValid()&&(!g||n.visible)&&(m+=n.percentage/100),i=c+m*p;let h={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:e,end:i};n.shapeType="arc",n.shapeArgs=h,(s=(i+e)/2)>1.5*Math.PI?s-=2*Math.PI:s<-Math.PI/2&&(s+=2*Math.PI),n.slicedTranslation={translateX:Math.round(Math.cos(s)*l),translateY:Math.round(Math.sin(s)*l)},o=Math.cos(s)*t[2]/2,r=Math.sin(s)*t[2]/2,n.tooltipPos=[t[0]+.7*o,t[1]+.7*r],n.half=+(s<-Math.PI/2||s>Math.PI/2),n.angle=s}tt(this,"afterTranslate")}updateTotals(){let t,e,i=this.points,s=i.length,o=this.options.ignoreHiddenPoint,r=0;for(t=0;t<s;t++)(e=i[t]).isValid()&&(!o||e.visible)&&(r+=e.y);for(t=0,this.total=r;t<s;t++)(e=i[t]).percentage=r>0&&(e.visible||!o)?e.y/r*100:0,e.total=r}}Co.defaultOptions=ft(rs.defaultOptions,{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:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),J(Co.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:no.prototype.drawTracker,getCenter:ko.getCenter,getSymbol:To,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:no.prototype.pointAttribs,pointClass:Mo,requireSorting:!1,searchPoint:To,trackerGroups:["group","dataLabelsGroup"]}),Zi.registerSeriesType("pie",Co);let{composed:Ao,noop:Po}=z,{distribute:Lo}=me,{series:Oo}=Zi;!function(t){let e={radialDistributionY:function(t,e){return(e.dataLabelPosition?.top||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,s,o){let r=o.dataLabelPosition;return t.getX(i<(r?.top||0)+2||i>(r?.bottom||0)-2?s:i,e.half,e,o)},justify:function(t,e,i,s){return s[0]+(t.half?-1:1)*(i+(e.dataLabelPosition?.distance||0))},alignToPlotEdges:function(t,e,i,s){let o=t.getBBox().width;return e?o+s:i-o-s},alignToConnectors:function(t,e,i,s){let o,r=0;return t.forEach(function(t){(o=t.dataLabel.getBBox().width)>r&&(r=o)}),e?r+s:i-r-s}};function i(t,e){let i=Math.PI/2,{start:s=0,end:o=0}=t.shapeArgs||{},r=t.angle||0;e>0&&s<i&&o>i&&r>i/2&&r<1.5*i&&(r=r<=i?Math.max(i/2,(s+i)/2):Math.min(1.5*i,(i+o)/2));let{center:a,options:n}=this,h=a[2]/2,l=Math.cos(r),d=Math.sin(r),c=a[0]+l*h,p=a[1]+d*h,u=Math.min((n.slicedOffset||0)+(n.borderWidth||0),e/5);
vendor: 4,329 bytes, line 1
1return{natural:{x:c+l*e,y:p+d*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:r,breakAt:{x:c+l*u,y:p+d*u},touchingSliceAt:{x:c,y:p}},distance:e}}function s(){let t,e,i,s=this,o=s.points,r=s.chart,a=r.plotWidth,n=r.plotHeight,h=r.plotLeft,l=Math.round(r.chartWidth/3),d=s.center,c=d[2]/2,p=d[1],u=[[],[]],g=[0,0,0,0],f=s.dataLabelPositioners,m=0;s.visible&&s.hasDataLabels?.()&&(o.forEach(t=>{(t.dataLabels||[]).forEach(t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),Oo.prototype.drawDataLabels.apply(s),o.forEach(t=>{(t.dataLabels||[]).forEach((e,i)=>{let s=d[2]/2,o=e.options,r=Mt(o?.distance||0,s);0===i&&u[t.half].push(t),!U(o?.style?.width)&&e.getBBox().width>l&&(e.css({width:Math.round(.7*l)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,r),m=Math.max(m,r)})}),u.forEach((t,o)=>{let l,u,x,y=t.length,b=[],v=0;y&&(s.sortByAngle(t,o-.5),m>0&&(l=Math.max(0,p-c-m),u=Math.min(p+c+m,r.plotHeight),t.forEach(t=>{(t.dataLabels||[]).forEach(e=>{let i=e.dataLabelPosition;i&&i.distance>0&&(i.top=Math.max(0,p-c-i.distance),i.bottom=Math.min(p+c+i.distance,r.plotHeight),v=e.getBBox().height||21,e.lineHeight=r.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:(e.dataLabelPosition?.natural.y||0)-i.top+e.lineHeight/2,size:v,rank:t.y},b.push(t.distributeBox))})}),Lo(b,x=u+v-l,x/5)),t.forEach(r=>{(r.dataLabels||[]).forEach(l=>{let p=l.options||{},u=r.distributeBox,m=l.dataLabelPosition,x=m?.natural.y||0,y=p.connectorPadding||0,v=l.lineHeight||21,k=(v-l.getBBox().height)/2,w=0,M=x,S="inherit";if(m){if(b&&U(u)&&m.distance>0&&(void 0===u.pos?S="hidden":(i=u.size,M=f.radialDistributionY(r,l))),p.justify)w=f.justify(r,l,c,d);else switch(p.alignTo){case"connectors":w=f.alignToConnectors(t,o,a,h);break;case"plotEdges":w=f.alignToPlotEdges(l,o,a,h);break;default:w=f.radialDistributionX(s,r,M-k,x,l)}if(m.attribs={visibility:S,align:m.alignment},m.posAttribs={x:w+(p.x||0)+({left:y,right:-y}[m.alignment]||0),y:M+(p.y||0)-v/2},m.computed.x=w,m.computed.y=M-k,vt(p.crop,!0)){let t;w-(e=l.getBBox().width)<y&&1===o?(t=Math.round(e-w+y),g[3]=Math.max(t,g[3])):w+e>a-y&&0===o&&(t=Math.round(w+e-a+y),g[1]=Math.max(t,g[1])),M-i/2<0?g[0]=Math.max(Math.round(i/2-M),g[0]):M+i/2>n&&(g[2]=Math.max(Math.round(M+i/2-n),g[2])),m.sideOverflow=t}}})}))}),(0===H(g)||this.verifyDataLabelOverflow(g))&&(this.placeDataLabels(),this.points.forEach(e=>{e.dataLabels?.forEach((i,o)=>{let{connectorColor:a,connectorWidth:n=1}=i.options||{},h=i.dataLabelPosition;if(dt(n)){let l;t=i.connector,h&&h.distance>0?(l=!t,t||(i.connector=t=r.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(s.dataLabelsGroups?.[o])),r.styledMode||t.attr({"stroke-width":n,stroke:a||e.color||"#666666"}),t[l?"attr":"animate"]({d:e.getConnectorPath(i)}),t.attr({visibility:h.attribs?.visibility})):t&&(i.connector=t.destroy())}})})))}function o(){this.points.forEach(t=>{(t.dataLabels||[]).forEach(t=>{let e=t.dataLabelPosition;e?(e.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-e.sideOverflow,0)+"px",textOverflow:t.options?.style?.textOverflow||"ellipsis"}),t.shortened=!0),t.attr(e.attribs),t[t.moved?"animate":"attr"](e.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function r(t){let e=this.center,i=this.options,s=i.center,o=i.minSize||80,r=o,a=null!==i.size;return!a&&(null!==s[0]?r=Math.max(e[2]-Math.max(t[1],t[3]),o):(r=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2),null!==s[1]?r=Y(r,o,e[2]-Math.max(t[0],t[2])):(r=Y(r,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(i.thickness?Math.max(0,r-2*i.thickness):Math.max(0,Mt(i.innerSize||0,r)),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}t.compose=function(t){if(co.compose(Oo),wt(Ao,"PieDataLabel")){let a=t.prototype;a.dataLabelPositioners=e,a.alignDataLabel=Po,a.drawDataLabels=s,a.getDataLabelPosition=i,a.placeDataLabels=o,a.verifyDataLabelOverflow=r}}}(O||(O={}));let Eo=O;(g=E||(E={})).getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},g.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}
vendor: 3,904 bytes, line 1
1,g.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},g.pointInPolygon=function({x:t,y:e},i){let s,o,r=i.length,a=!1;for(s=0,o=r-1;s<r;o=s++){let[r,n]=i[s],[h,l]=i[o];n>e!=l>e&&t<(h-r)*(e-n)/(l-n)+r&&(a=!a)}return a};let{pointInPolygon:Io}=E;function Do(t,e){let i,s=!1;return t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.hasClass("highcharts-data-label")?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),s=!0,t[t.isOld?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),tt(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),s}let{defaultOptions:Bo}=jt,{noop:zo}=z,No={radius:0,scope:"stack",where:void 0},Ro=zo,Wo=zo;function Xo(t,e,i,s,o={}){let r=Ro(t,e,i,s,o),{brStart:a=!0,brEnd:n=!0,innerR:h=0,r:l=i,start:d=0,end:c=0}=o;if(o.open||!o.borderRadius)return r;let p=c-d,u=Math.sin(p/2),g=Math.max(Math.min(Mt(o.borderRadius||0,l-h),(l-h)/2,l*u/(1+u)),0),f=Math.min(g,p/Math.PI*2*h),m=r.length-1;for(;m--;)(a||0!==m&&3!==m)&&(n||1!==m&&2!==m)&&function(t,e,i){let s,o,r,a=t[e],n=t[e+1];if("Z"===n[0]&&(n=t[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==n[0]?"A"===a[0]&&("M"===n[0]||"L"===n[0])&&(s=n,o=a):(s=a,o=n,r=!0),s&&o&&o.params){let a=o[1],n=o[5],h=o.params,{start:l,end:d,cx:c,cy:p}=h,u=n?a-i:a+i,g=u?Math.asin(i/u):0,f=n?g:-g,m=Math.cos(g)*u;r?(h.start=l+f,s[1]=c+m*Math.cos(l),s[2]=p+m*Math.sin(l),t.splice(e+1,0,["A",i,i,0,0,1,c+a*Math.cos(h.start),p+a*Math.sin(h.start)])):(h.end=d-f,o[6]=c+a*Math.cos(h.end),o[7]=p+a*Math.sin(h.end),t.splice(e+1,0,["A",i,i,0,0,1,c+m*Math.cos(d),p+m*Math.sin(d)])),o[4]=Math.abs(h.end-h.start)<Math.PI?0:1}}(r,m,m>1?f:g);return r}function Ho(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:t,yAxis:e}=this,i="percent"===t.stacking,s=Bo.plotOptions?.[this.type]?.borderRadius,o=Go(t.borderRadius,gt(s)?s:{}),r=e.options.reversed;for(let s of this.points){let{shapeArgs:a}=s;if("roundedRect"===s.shapeType&&a){let{width:n=0,height:h=0,y:l=0}=a,d=l,c=h;if("stack"===o.scope&&s.stackTotal){let o=e.translate(i?100:s.stackTotal,!1,!0,!1,!0),r=e.translate(t.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(o,r),0,Math.abs(o-r));d=a.y,c=a.height}let p=(s.negative?-1:1)*(r?-1:1)==-1,u=o.where;!u&&this.is("waterfall")&&Math.abs((s.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(u="all"),u||(u="end");let g=Math.min(Mt(o.radius,n),n/2,"all"===u?c/2:1/0)||0;"end"===u&&(p&&(d-=g),c+=g),J(a,{brBoxHeight:c,brBoxY:d,r:g})}}}}function Go(t,e){return gt(t)||(t={radius:t||0}),ft(No,e,t)}function Yo(){let t=Go(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=Mt(t.radius,(i.r||0)-(i.innerR||0)))}}function Fo(t,e,i,s,o={}){let r=Wo(t,e,i,s,o),{r:a=0,brBoxHeight:n=s,brBoxY:h=e}=o,l=e-h,d=h+n-(e+s),c=l-a>-.1?0:a,p=d-a>-.1?0:a,u=Math.max(c&&l,0),g=Math.max(p&&d,0),f=[t+c,e],m=[t+i-c,e],x=[t+i,e+c],y=[t+i,e+s-p],b=[t+i-p,e+s],v=[t+p,e+s],k=[t,e+s-p],w=[t,e+c],M=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(u){let t=M(c,c-u);f[0]-=t,m[0]+=t,x[1]=w[1]=e+c-u}if(s<c-u){let o=M(c,c-u-s);x[0]=y[0]=t+i-c+o,b[0]=Math.min(x[0],b[0]),v[0]=Math.max(y[0],v[0]),k[0]=w[0]=t+c-o,x[1]=w[1]=e+s}if(g){let t=M(p,p-g);b[0]+=t,v[0]-=t,y[1]=k[1]=e+s-p+g}if(s<p-g){let o=M(p,p-g-s);x[0]=y[0]=t+i-p+o,m[0]=Math.min(x[0],m[0]),f[0]=Math.max(y[0],f[0]),k[0]=w[0]=t+p-o,y[1]=k[1]=e}return r.length=0,r.push(["M",...f],["L",...m],["A",c,c,0,0,1,...x],["L",...y],["A",p,p,0,0,1,...b],["L",...v],["A",p,p,0,0,1,...k],["L",...w],["A",c,c,0,0,1,...f],["Z"]),r}function jo(t,e){let i=t.condition;(i.callback||function(){return this.chartWidth<=vt(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=vt(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=vt(i.minWidth,0)&&this.chartHeight>=vt(i.minHeight,0)}).call(this,this)&&e.push(t._id)}function $o(t,e){let i,s=this.options.responsive,o=this.currentResponsive,r=[];
vendor: 4,369 bytes, line 1
1!e&&s&&s.rules&&s.rules.forEach(t=>{void 0===t._id&&(t._id=zt()),this.matchResponsiveRule(t,r)},this);let a=ft(...r.map(t=>at(s?.rules||[],e=>e._id===t)).map(t=>t?.chartOptions));a.isResponsiveOptions=!0,r=r.toString()||void 0;let n=o?.ruleIds;r!==n&&(o&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(o.undoOptions,t,!0),this.updatingResponsive=!1),r?((i=K(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:r,mergedOptions:a,undoOptions:i},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}(I||(I={})).compose=function(t){let e=t.prototype;return e.matchResponsiveRule||J(e,{matchResponsiveRule:jo,setResponsive:$o}),t};let Vo=I;z.AST=ae,z.Axis=ui,z.Chart=As,z.Color=_t,z.DataLabel=co,z.DataTableCore=Yi,z.Fx=qt,z.HTMLElement=ti,z.Legend=gs,z.LegendSymbol=$i,z.PlotLineOrBand=xi,z.Point=Ii,z.Pointer=Xi,z.RendererRegistry=fe,z.Series=rs,z.SeriesRegistry=Zi,z.StackItem=zs,z.SVGElement=Ae,z.SVGRenderer=Ze,z.Templating=ge,z.Tick=ri,z.Time=Ht,z.Tooltip=Ai,z.addEvent=W,z.animObject=te.animObject,z.animate=te.animate,z.arrayMax=H,z.arrayMin=X,z.attr=G,z.chart=As.chart,z.clamp=Y,z.color=_t.parse,z.correctFloat=F,z.createElement=j,z.css=V,z.dateFormat=ge.dateFormat,z.defaultOptions=jt.defaultOptions,z.defined=U,z.destroyObjectProperties=_,z.diffObjects=K,z.discardElement=Z,z.distribute=me.distribute,z.erase=q,z.error=It,z.extend=J,z.extendClass=Q,z.find=at,z.fireEvent=tt,z.format=ge.format,z.getDeferredAnimation=te.getDeferredAnimation,z.getMagnitude=st,z.getOptions=jt.getOptions,z.getStyle=rt,z.insertItem=Dt,z.isArray=pt,z.isClass=lt,z.isDOMElement=ht,z.isFunction=ut,z.isNumber=dt,z.isObject=gt,z.isString=ct,z.merge=ft,z.normalizeTickInterval=mt,z.numberFormat=ge.numberFormat,z.objectEach=xt,z.offset=yt,z.pad=bt,z.pick=vt,z.pInt=kt,z.relativeLength=Mt,z.removeEvent=Tt,z.seriesType=Zi.seriesType,z.setAnimation=te.setAnimation,z.setOptions=jt.setOptions,z.splat=Ct,z.stableSort=At,z.stop=te.stop,z.syncTimeout=Pt,z.time=jt.defaultTime,z.timers=qt.timers,z.timeUnits=Bt,z.uniqueKey=zt,z.useSerialIds=function(e){return t=vt(e,t)},z.wrap=function(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}},function(t,e,i){let s=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let o=i.prototype.symbols;W(t,"afterColumnTranslate",Ho,{order:9}),W(s,"afterTranslate",Yo),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Ro=o.arc,Wo=o.roundedRect,o.arc=Xo,o.roundedRect=Fo}}(z.Series,z.SVGElement,z.SVGRenderer),fo.compose(z.Series.types.column),co.compose(z.Series),gi.compose(z.Axis),ti.compose(z.SVGRenderer),gs.compose(z.Chart),fi.compose(z.Axis),(a=(f=z.Chart).prototype).hideOverlappingLabels||(a.hideOverlappingLabels=function(t){let e,i,s,o,r,a=t.length,n=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),h=(t,e)=>{for(let i of t)if(Io({x:i[0],y:i[1]},e))return!0;return!1},l=!1;for(let i=0;i<a;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){if(t&&(!t.alignAttr||t.placed)){let e=t.box?0:t.padding||0,i=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},{height:s,polygon:o,width:r}=t.getBBox(),a=et(t.alignValue)*r;return t.width=r,t.height=s,{x:i.x+(t.parentGroup?.translateX||0)+e-a,y:i.y+(t.parentGroup?.translateY||0)+e,width:r-2*e,height:s-2*e,polygon:o}}}(e));t.sort((t,e)=>(e?.labelrank||0)-(t?.labelrank||0));for(let e=0;e<a;++e){o=(i=t[e])&&i.absoluteBox;let l=o?.polygon;for(let d=e+1;d<a;++d){r=(s=t[d])&&s.absoluteBox;let e=!1;if(o&&r&&i!==s&&0!==i?.newOpacity&&0!==s?.newOpacity&&"hidden"!==i?.visibility&&"hidden"!==s?.visibility){let t=r.polygon;if(l&&t&&l!==t?h(l,t)&&(e=!0):n(o,r)&&(e=!0),e){let t=i?.labelrank<s?.labelrank?i:s,e=t?.text;t&&(t.newOpacity=0),e?.element.querySelector("textPath")&&e.hide()}}}}for(let e of t)e&&Do(e,this)&&(l=!0);l&&tt(this,"afterHideAllOverlappingLabels")},W(f,"render",function(){let t=this,e=[];for(let i of t.labelCollectors||[])e=e.concat(i());for(let i of t.yAxis||[])i.stacking&&i.options.stackLabels&&!i.options.stackLabels.allowOverlap&&xt(i.stacking.stacks,t=>{xt(t,t=>{t.label&&e.push(t.label)})});for(let i of t.series||[])if(i.visible&&i.hasDataLabels?.()){let s=i=>
1{for(let s of i)s.visible&&(s.dataLabels||[]).forEach(i=>{let o=i.options||{};i.labelrank=vt(o.labelrank,s.labelrank,s.shapeArgs?.height),o.allowOverlap??Number(o.distance)>0?(i.oldOpacity=i.opacity,i.newOpacity=1,Do(i,t)):e.push(i)})};s(i.nodes||[]),s(i.points)}this.hideOverlappingLabels(e)})),Eo.compose(z.Series.types.pie),xi.compose(z.Chart,z.Axis),Xi.compose(z.Chart),Vo.compose(z.Chart),Is.compose(z.Axis,z.Chart,z.Series),Us.compose(z.Axis,z.Chart,z.Series),Ai.compose(z.Pointer);let Uo=z;return B.default})(),(e="u"<typeof window?this:window)._Highcharts=i(),t.exports=e._Highcharts},15(t){"use strict";t.exports=i(40809)}},n={},h=function t(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}};return a[e].call(s.exports,s,s.exports,t),s.exports}(743),t.exports=h}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.