highcharts
Version:
JavaScript charting framework
10 lines • 99.7 kB
JavaScript
/**
* Highcharts JS v12.6.0 (2026-04-13)
* @module highcharts/highcharts-more
* @requires highcharts
*
* (c) 2009-2026 Highsoft AS
*
* A commercial license may be required depending on use.
* See www.highcharts.com/license
*/import*as t from"./highcharts.js";var e,i,s,o,a={};a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let r=t.default;var n=a.n(r);let l=t.default.SeriesRegistry;var h=a.n(l);let p=t.default.Series;var d=a.n(p);let{doc:c,win:u}=n();function g(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let a=o.hcEvents;n().Point&&t instanceof n().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let r=t.addEventListener;r&&r.call(t,e,i,!!n().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),a[e]||(a[e]=[]);let l={fn:i,order:"number"==typeof s.order?s.order:1/0};return a[e].push(l),a[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,a;t.nodeName&&(e?(o={})[e]=!0:o=i,C(o,function(t,e){if(i[e])for(a=i[e].length;a--;)s(e,i[e][a].fn)}))}let a="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(a,"hcEvents")){let t=a.hcEvents;if(e){let a=t[e]||[];i?(t[e]=a.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete a.hcEvents}}(t,e,i)}}function f(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i}function b(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}function m(t,e,i){return t>e?t<i?t:i:e}function y(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function x(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function P(t){return null!=t}function M(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function v(t,e,i,s){if(i=i||{},c?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==n())){let s=c.createEvent("Events");s.initEvent(e,!0,!0),i=M(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||M(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,a=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(a=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);a&&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 L=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 k(t){return S(t)&&"number"==typeof t.nodeType}function w(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function A(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function S(t,e){return!!t&&"object"==typeof t&&(!e||!A(t))}function T(t,...e){let i,s=[t,...e],o={},a=function(t,e){return"object"!=typeof t&&(t={}),C(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!S(i,!0)||(o=i?.constructor,S(i,!0)&&!k(i)&&o?.name&&"Object"!==o.name)||k(i)?t[s]=e[s]:t[s]=a(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let r=s.length;for(i=0;i<r;i++)o=a(o,s[i]);return o}function C(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function N(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function X(t,e){return parseInt(t,e||10)}function Y(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function R(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function I(t){return A(t)?t:[t]}function E(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)))}}let{deg2rad:O}=n();(e=i||(i={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,a=t.center,r=Math.min(s,o),n=t.thickness,l,h=t.size,p=t.innerSize||0,c,u;"string"==typeof h&&(h=parseFloat(h)),"string"==typeof p&&(p=parseFloat(p));let g=[N(a?.[0],"50%"),N(a?.[1],"50%"),N(h&&h<0?void 0:t.size,"100%"),N(p&&p<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof d()||(g[3]=0),c=0;c<4;++c)u=g[c],l=c<2||2===c&&/%$/.test(u),g[c]=R(u,[s,o,r,g[2]][c])+(l?i:0);return g[3]>g[2]&&(g[3]=g[2]),w(n)&&2*n<g[2]&&n>0&&(g[3]=g[2]-2*n),v(this,"afterGetCenter",{positions:g}),g},e.getStartAndEndRadians=function(t,e){let i=w(t)?t:0,s=w(e)&&e>i&&e-i<360?e:i+360;return{start:O*(i+-90),end:O*(s+-90)}};let D=i;function z(t){let e,i=this;return t&&i.pane.forEach(s=>{W(t.chartX-i.plotLeft,t.chartY-i.plotTop,s.center)&&(e=s)}),e}function B({clipBox:t}){if(!this.xAxis||!this.yAxis||!this.chart.angular&&!this.chart.polar)return;let{plotWidth:e,plotHeight:i}=this.chart,s=Math.min(e,i),o=this.xAxis.pane,a=this.yAxis.pane;o&&o.axis&&(t.x+=o.center[0]-o.center[2]/s*e/2),a&&a.axis&&(t.y+=a.center[1]-a.center[2]/s*i/2)}function W(t,e,i,s,o){let a=!0,r=i[0],n=i[1],l=2*Math.PI,h=Math.sqrt(Math.pow(t-r,2)+Math.pow(e-n,2));if(P(s)&&P(o)){let i=Math.atan2(y(e-n,8),y(t-r,8));i=(i+l)%l,s=(s+l)%l,Math.abs((o=(o+l)%l)-s)>1e-6&&(a=s>o?i>=s||i<=o:i>=s&&i<=o)}else a=!0;return h<=Math.ceil(i[2]/2)&&a}function H(t){this.polar&&(t.options.inverted&&([t.x,t.y]=[t.y,t.x]),t.isInsidePlot=this.pane.some(e=>W(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)))}function F(t){let e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!W(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}function G(t){let e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(i){return i.visible&&!(!t.shared&&i.directTouch)&&N(i.options.enableMouseTracking,!0)&&(!e.hoverPane||i.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}let{defaultOptions:q}=n(),V={shape:"circle",borderRadius:0,borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},K={background:V,center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};q.pane=K;class j{constructor(t,e){this.coll="pane",this.init(t,e)}init(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)}setOptions(t){this.options=t=T(K,{background:this.chart.angular?{}:void 0},t)}render(){let t=this.options,e=this.chart.renderer;this.group||(this.group=e.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter();let i=this.options.background;if(i){let t=Math.max((i=I(i)).length,this.background.length||0);for(let e=0;e<t;e++)i[e]&&this.axis?this.renderBackground(T(V,i[e]),e):this.background[e]&&(this.background[e]=this.background[e].destroy(),this.background.splice(e,1))}}renderBackground(t,e){let i={class:"highcharts-pane "+(t.className||"")},s="animate";this.chart.styledMode||M(i,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),s="attr"),this.background[e][s]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(i)}updateCenter(t){this.center=(t||this.axis||{}).center=D.getCenter.call(this)}update(t,e){T(!0,this.options,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(t){t.pane===this&&(t.pane=null,t.update({},e))},this)}}j.compose=function(t,e,i){let s=t.prototype;s.getHoverPane||(s.collectionsWithUpdate.push("pane"),s.getHoverPane=z,g(t,"afterIsInsidePlot",H),g(e,"afterGetHoverData",F),g(e,"beforeGetHoverData",G),g(i,"setClip",B))};let{area:{prototype:{pointClass:U,pointClass:{prototype:_}}}}=h().seriesTypes,Z=class extends U{setState(){let t=this.state,e=this.series,i=e.chart.polar;P(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),P(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,i&&w(this.plotHighX)&&(this.plotX=this.plotHighX),_.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],i&&w(this.plotLowX)&&(this.plotX=this.plotLowX),e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0;let s=e.modifyMarkerSettings();_.setState.apply(this,arguments),e.restoreMarkerSettings(s)}haloPath(){let t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&w(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=_.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&w(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(_.haloPath.apply(this,arguments))),e}isValid(){return w(this.low)&&w(this.high)}},{noop:$}=n(),{area:Q,area:{prototype:J},column:{prototype:tt}}=h().seriesTypes;class te extends Q{toYData(t){return[t.low,t.high]}highToXY(t){let e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX}getGraphPath(t){let e=[],i=[],s=J.getGraphPath,o=this.options,a=this.chart.polar,r=a&&!1!==o.connectEnds,n=o.connectNulls,l,h,p,d=o.step;for(l=(t=t||this.points).length;l--;){h=t[l];let s=a?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||r||n||t[l+1]&&!t[l+1].isNull||i.push(s),p={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:N(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull},i.push(p),e.push(p),h.isNull||r||n||t[l-1]&&!t[l-1].isNull||i.push(s)}let c=s.call(this,t);d&&(!0===d&&(d="left"),o.step=({left:"right",center:"center",right:"left"})[d]);let u=s.call(this,e),g=s.call(this,i);o.step=d;let f=[].concat(c,u);return!this.chart.polar&&g[0]&&"M"===g[0][0]&&(g[0]=["L",g[0][1],g[0][2]]),this.graphPath=f,this.areaPath=c.concat(g),f.isArea=!0,f.xMap=c.xMap,this.areaPath.xMap=c.xMap,f}drawDataLabels(){let t,e,i,s,o,a=this.points,r=a.length,n=[],l=this.options.dataLabels,h=this.chart.inverted;if(l){if(A(l)?(s=l[0]||{enabled:!1},o=l[1]||{enabled:!1}):((s=M({},l)).x=l.xHigh,s.y=l.yHigh,(o=M({},l)).x=l.xLow,o.y=l.yLow),s.enabled||this.hasDataLabels?.()){for(t=r;t--;)if(e=a[t]){let{plotHigh:o=0,plotLow:a=0}=e;i=s.inside?o<a:o>a,e.y=e.high,e._plotY=e.plotY,e.plotY=o,n[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=i,h?s.align||(s.align=i?"right":"left"):s.verticalAlign||(s.verticalAlign=i?"top":"bottom")}for(this.options.dataLabels=s,J.drawDataLabels&&J.drawDataLabels.apply(this,arguments),t=r;t--;)(e=a[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=n[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(o.enabled||this.hasDataLabels?.()){for(t=r;t--;)if(e=a[t]){let{plotHigh:t=0,plotLow:s=0}=e;i=o.inside?t<s:t>s,e.below=!i,h?o.align||(o.align=i?"left":"right"):o.verticalAlign||(o.verticalAlign=i?"bottom":"top")}this.options.dataLabels=o,J.drawDataLabels&&J.drawDataLabels.apply(this,arguments)}if(s.enabled)for(t=r;t--;)(e=a[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=l}}alignDataLabel(){tt.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let t={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:t,lowMarker:e}}=this;this.options.marker=T(t,e),e.symbol&&(this.symbol=e.symbol)}return t}restoreMarkerSettings(t){this.options.marker=t.marker,this.symbol=t.symbol}drawPoints(){let t,e,i=this.points.length,s=this.modifyMarkerSettings();for(J.drawPoints.apply(this,arguments),this.restoreMarkerSettings(s),t=0;t<i;)(e=this.points[t]).graphics=e.graphics||[],e.origProps={plotY:e.plotY,plotX:e.plotX,isInside:e.isInside,negative:e.negative,zone:e.zone,y:e.y},(e.graphic||e.graphics[0])&&(e.graphics[0]=e.graphic),e.graphic=e.graphics[1],e.plotY=e.plotHigh,P(e.plotHighX)&&(e.plotX=e.plotHighX),e.y=N(e.high,e.origProps.y),e.negative=e.y<(this.options.threshold||0),this.zones.length&&(e.zone=e.getZone()),this.chart.polar||(e.isInside=e.isTopInside=void 0!==e.plotY&&e.plotY>=0&&e.plotY<=this.yAxis.len&&e.plotX>=0&&e.plotX<=this.xAxis.len),t++;for(J.drawPoints.apply(this,arguments),t=0;t<i;)(e=this.points[t]).graphics=e.graphics||[],(e.graphic||e.graphics[1])&&(e.graphics[1]=e.graphic),e.graphic=e.graphics[0],e.origProps&&(M(e,e.origProps),delete e.origProps),t++}hasMarkerChanged(t,e){let i=t.lowMarker,s=e.lowMarker||{};return i&&(!1===i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)||super.hasMarkerChanged(t,e)}}te.defaultOptions=T(Q.defaultOptions,{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),g(te,"afterTranslate",function(){"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(t=>{let e=t.high,i=t.plotY;t.isNull?t.plotY=void 0:(t.plotLow=i,t.plotHigh=w(e)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(e):e,!1,!0,void 0,!0):void 0,this.dataModify&&(t.yBottom=t.plotHigh))})},{order:0}),g(te,"afterTranslate",function(){this.points.forEach(t=>{if(this.chart.polar)this.highToXY(t),t.plotLow=t.plotY,t.tooltipPos=[((t.plotHighX||0)+(t.plotLowX||0))/2,((t.plotHigh||0)+(t.plotLow||0))/2];else{let e=t.pos(!1,t.plotLow),i=t.pos(!1,t.plotHigh);e&&i&&(e[0]=(e[0]+i[0])/2,e[1]=(e[1]+i[1])/2),t.tooltipPos=e}})},{order:3}),M(te.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:Z,pointValKey:"low",setStackedPoints:$}),h().registerSeriesType("arearange",te);let ti=te,{spline:{prototype:ts}}=h().seriesTypes;class to extends ti{}to.defaultOptions=T(ti.defaultOptions),M(to.prototype,{getPointSpline:ts.getPointSpline}),h().registerSeriesType("areasplinerange",to);let ta=t.default.Series.types.column;var tr=a.n(ta);let{noop:tn}=n();class tl extends tr(){pointAttribs(){return{}}getWhiskerPair(t,e,i,s,o){let a=o.whiskers.strokeWidth(),r=(i,s)=>{let o=R(i,2*t)/2,r=x(s,a);return[["M",x(e-o),r],["L",x(e+o),r]]};return[...r(i,o.highPlot),...r(s,o.lowPlot)]}translate(){let t=this.yAxis,e=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(i){e.forEach(function(e){null!==i[e]&&(i[e+"Plot"]=t.translate(i[e],0,1,0,1))}),i.plotHigh=i.highPlot})}drawPoints(){let t,e,i,s,o,a,r,n,l,h,p,d=this.points,c=this.options,u=this.chart,g=u.renderer,f=!1!==this.doQuartiles,b=this.options.whiskerLength;for(let m of d){let d=(n=m.graphic)?"animate":"attr",y=m.shapeArgs,P={},M={},v={},L={},k=m.color||this.color,w=m.options.whiskerLength||b;if(void 0!==m.plotY){let A;l=y.width,p=(h=y.x)+l,t=f?m.q1Plot:m.lowPlot,e=f?m.q3Plot:m.lowPlot,i=m.highPlot,s=m.lowPlot,n||(m.graphic=n=g.g("point").add(this.group),m.stem=g.path().addClass("highcharts-boxplot-stem").add(n),b&&(m.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(n)),f&&(m.box=g.path(r).addClass("highcharts-boxplot-box").add(n)),m.medianShape=g.path(a).addClass("highcharts-boxplot-median").add(n)),u.styledMode||(M.stroke=m.stemColor||c.stemColor||k,M["stroke-width"]=N(m.stemWidth,c.stemWidth,c.lineWidth),M.dashstyle=m.stemDashStyle||c.stemDashStyle||c.dashStyle,m.stem.attr(M),w&&(v.stroke=m.whiskerColor||c.whiskerColor||k,v["stroke-width"]=N(m.whiskerWidth,c.whiskerWidth,c.lineWidth),v.dashstyle=m.whiskerDashStyle||c.whiskerDashStyle||c.dashStyle,m.whiskers.attr(v)),f&&(P.fill=m.fillColor||c.fillColor||k,P.stroke=c.lineColor||k,P["stroke-width"]=c.lineWidth||0,P.dashstyle=m.boxDashStyle||c.boxDashStyle||c.dashStyle,m.box.attr(P)),L.stroke=m.medianColor||c.medianColor||k,L["stroke-width"]=N(m.medianWidth,c.medianWidth,c.lineWidth),L.dashstyle=m.medianDashStyle||c.medianDashStyle||c.dashStyle,m.medianShape.attr(L));let S=x((m.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,m.stem.strokeWidth());if(A=[["M",S,e],["L",S,i],["M",S,t],["L",S,s]],m.stem[d]({d:A}),f){let i=m.box.strokeWidth();t=x(t,i),e=x(e,i),A=[["M",h=x(h,i),e],["L",h,t],["L",p=x(p,i),t],["L",p,e],["L",h,e],["Z"]],m.box[d]({d:A})}if(w){let t=l/2,e=this.getWhiskerPair(t,S,m.upperWhiskerLength??c.upperWhiskerLength??w,m.lowerWhiskerLength??c.lowerWhiskerLength??w,m);m.whiskers[d]({d:e})}A=[["M",h,o=x(m.medianPlot,m.medianShape.strokeWidth())],["L",p,o]],m.medianShape[d]({d:A})}}}toYData(t){return[t.low,t.q1,t.median,t.q3,t.high]}}tl.defaultOptions=T(tr().defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),M(tl.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:tn,setStackedPoints:tn}),h().registerSeriesType("boxplot",tl);let th=tl,tp={borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0},td=t.default.Templating;var tc=a.n(td);let{noop:tu}=n(),tg=class{constructor(t,e){this.setState=tu,this.init(t,e)}init(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(t){t.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t){let e,i=N(t.options.itemDistance,20),s=this.legendItem||{},o=this.options,a=o.ranges,r=o.connectorDistance;if(!a||!a.length||!w(a[0].value)){t.options.bubbleLegend.autoRanges=!0;return}!function(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}(a,function(t,e){return e.value-t.value}),this.ranges=a,this.setOptions(),this.render();let n=this.getMaxLabelSize(),l=this.ranges[0].radius,h=2*l;e=(e=r-l+n.width)>0?e:0,this.maxLabel=n,this.movementX="left"===o.labels.align?e:0,s.labelWidth=h+e+i,s.labelHeight=h+n.height/2}setOptions(){let t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],s=this.legend.baseline,o={zIndex:e.zIndex,"stroke-width":e.borderWidth},a={zIndex:e.zIndex,"stroke-width":e.connectorWidth},r={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},n=i.options.marker.fillOpacity,l=this.chart.styledMode;t.forEach(function(h,p){l||(o.stroke=N(h.borderColor,e.borderColor,i.color),o.fill=h.color||e.color,o.fill||(o.fill=i.color,o["fill-opacity"]=n??1),a.stroke=N(h.connectorColor,e.connectorColor,i.color)),t[p].radius=this.getRangeRadius(h.value),t[p]=T(t[p],{center:t[0].radius-t[p].radius+s}),l||T(!0,t[p],{bubbleAttribs:T(o),connectorAttribs:T(a),labelAttribs:r})},this)}getRangeRadius(t){let e=this.options,i=this.options.seriesIndex,s=this.chart.series[i],o=e.ranges[0].value,a=e.ranges[e.ranges.length-1].value,r=e.minSize,n=e.maxSize;return s.getRadius.call(this,a,o,r,n,t)}render(){let t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;for(let s of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group),this.ranges))s.value>=i&&this.renderRange(s);this.hideOverlappingLabels()}renderRange(t){let e=this.ranges[0],i=this.legend,s=this.options,o=s.labels,a=this.chart,r=a.series[s.seriesIndex],n=a.renderer,l=this.symbols,h=l.labels,p=t.center,d=Math.abs(t.radius),c=s.connectorDistance||0,u=o.align,g=i.options.rtl,f=s.borderWidth,b=s.connectorWidth,m=e.radius||0,y=p-d-f/2+b/2,x=(y%1?1:.5)-(b%2?0:.5),P=n.styledMode,M=g||"left"===u?-c:c;"center"===u&&(M=0,s.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(n.circle(m,p+x,d).attr(P?{}:t.bubbleAttribs).addClass((P?"highcharts-color-"+r.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(s.className||"")).add(this.legendItem.symbol)),l.connectors.push(n.path(n.crispLine([["M",m,y],["L",m+M,y]],s.connectorWidth)).attr(P?{}:t.connectorAttribs).addClass((P?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(s.connectorClassName||"")).add(this.legendItem.symbol));let v=n.text(this.formatLabel(t)).attr(P?{}:t.labelAttribs).css(P?{}:o.style).addClass("highcharts-bubble-legend-labels "+(s.labels.className||"")).add(this.legendItem.symbol),L={x:m+M+s.labels.x,y:y+s.labels.y+.4*v.getBBox().height};v.attr(L),h.push(v),v.placed=!0,v.alignAttr=L}getMaxLabelSize(){let t,e;return this.symbols.labels.forEach(function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}}formatLabel(t){let e=this.options,i=e.labels.formatter,s=e.labels.format,{numberFormatter:o}=this.chart;return s?tc().format(s,t,this.chart):i?i.call(t,t):o(t.value,1)}hideOverlappingLabels(){let t=this.chart,e=this.options.labels.allowOverlap,i=this.symbols;!e&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()}))}getRanges(){let t=this.legend.bubbleLegend,e=t.chart.series,i=t.options.ranges,s,o,a=Number.MAX_VALUE,r=-Number.MAX_VALUE;return e.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(o=t.getColumn("z").filter(w)).length&&(a=N(t.options.zMin,Math.min(a,Math.max(f(o),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),r=N(t.options.zMax,Math.max(r,b(o))))}),s=a===r?[{value:r}]:[{value:a},{value:(a+r)/2},{value:r,autoRanges:!0}],i.length&&i[0].radius&&s.reverse(),s.forEach(function(t,e){i&&i[e]&&(s[e]=T(i[e],t))}),s}predictBubbleSizes(){let t=this.chart,e=t.legend.options,i=e.floating,s="horizontal"===e.layout,o=s?t.legend.lastLineHeight:0,a=t.plotSizeX,r=t.plotSizeY,n=t.series[this.options.seriesIndex],l=n.getPxExtremes(),h=Math.ceil(l.minPxSize),p=Math.ceil(l.maxPxSize),d=Math.min(r,a),c,u=n.options.maxSize;return i||!/%$/.test(u)?c=p:(c=(d+o)*(u=parseFloat(u))/100/(u/100+1),(s&&r-c>=a||!s&&a-c>=r)&&(c=p)),[h,Math.ceil(c)]}updateRanges(t,e){let i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()}correctSizes(){let t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},{setOptions:tf}=n(),{composed:tb}=n();function tm(t,e,i){let s,o,a,r=this.legend,n=ty(this)>=0;r&&r.options.enabled&&r.bubbleLegend&&r.options.bubbleLegend.autoRanges&&n?(s=r.bubbleLegend.options,o=r.bubbleLegend.predictBubbleSizes(),r.bubbleLegend.updateRanges(o[0],o[1]),s.placed||(r.group.placed=!1,r.allItems.forEach(t=>{(a=t.legendItem||{}).group&&(a.group.translateY=void 0)})),r.render(),s.placed||(this.getMargins(),this.axes.forEach(t=>{t.setScale(),t.updateNames(),C(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),s.placed=!0,t.call(this,e,i),r.bubbleLegend.correctSizes()):(t.call(this,e,i),r&&r.options.enabled&&r.bubbleLegend&&r.render())}function ty(t){let e=t.series,i=0;for(;i<e.length;){if(e[i]&&e[i].isBubble&&e[i].visible&&e[i].dataTable.rowCount)return i;i++}return -1}function tx(t){let e=this.bubbleLegend,i=this.options,s=i.bubbleLegend,o=ty(this.chart);e&&e.ranges&&e.ranges.length&&(s.ranges.length&&(s.autoRanges=!!s.ranges[0].autoRanges),this.destroyItem(e)),o>=0&&i.enabled&&s.enabled&&(s.seriesIndex=o,this.bubbleLegend=new tg(s,this),this.bubbleLegend.addToLegend(t.allItems))}function tP(){if(this.bubbleLegend){let t=this.allItems,e=this.options.rtl,i=function(t){let e=t.allItems,i=[],s=e.length,o,a,r,n=0,l=0;for(n=0;n<s;n++)if(a=e[n].legendItem||{},r=(e[n+1]||{}).legendItem||{},a.labelHeight&&(e[n].itemHeight=a.labelHeight),e[n]===e[s-1]||a.y!==r.y){for(i.push({height:0}),o=i[i.length-1];l<=n;l++)e[l].itemHeight>o.height&&(o.height=e[l].itemHeight);o.step=n}return i}(this),s,o,a,r,n=0;t.forEach((t,l)=>{(r=t.legendItem||{}).group&&(s=r.group.translateX||0,o=r.y||0,((a=t.movementX)||e&&t.ranges)&&(a=e?s-t.options.maxSize/2:s+a,r.group.attr({translateX:a})),l>i[n].step&&n++,r.group.attr({translateY:Math.round(o+i[n].height/2)}),r.y=o+i[n].height/2)})}}function tM(t){let e;if(t.defaultPrevented)return!1;let i=t.legendItem,s=this.chart,o=i.visible;this&&this.bubbleLegend&&(i.visible=!o,i.ignoreSeries=o,e=ty(s)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),i.visible=o)}let tv=function(t,e){Y(tb,"Series.BubbleLegend")&&(tf({legend:{bubbleLegend:tp}}),E(t.prototype,"drawChartBox",tm),g(e,"afterGetAllItems",tx),g(e,"afterRender",tP),g(e,"itemClick",tM))},tL=t.default.Point;var tk=a.n(tL);let{seriesTypes:{scatter:{prototype:{pointClass:tw}}}}=h();class tA extends tw{haloPath(t){let e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){let t=this.pos()||[0,0],{xAxis:i,yAxis:s,chart:o}=this.series,a=2*e;return o.renderer.symbols.circle((i?.len||0)-t[1]-e,(s?.len||0)-t[0]-e,a,a)}return tk().prototype.haloPath.call(this,e)}}M(tA.prototype,{ttBelow:!1});let{composed:tS,noop:tT}=n(),{series:tC,seriesTypes:{column:{prototype:tN},scatter:tX}}=h();function tY(){let t=this.len,{coll:e,isXAxis:i,min:s}=this,o=(this.max||0)-(s||0),a=0,r=t,n=t/o,l;("xAxis"===e||"yAxis"===e)&&(this.series.forEach(t=>{if(t.bubblePadding&&t.reserveSpace()){this.allowZoomOutside=!0,l=!0;let e=t.getColumn(i?"x":"y");if(i&&((t.onPoint||t).getRadii(0,0,t),t.onPoint&&(t.radii=t.onPoint.radii)),o>0){let i=e.length;for(;i--;)if(w(e[i])&&this.dataMin<=e[i]&&e[i]<=this.max){let o=t.radii&&t.radii[i]||0;a=Math.min((e[i]-s)*n-o,a),r=Math.max((e[i]-s)*n+o,r)}}}}),l&&o>0&&!this.logarithmic&&(r-=t,n*=(t+Math.max(0,a)-Math.min(r,t))/t,[["min","userMin",a],["max","userMax",r]].forEach(t=>{void 0===N(this.options[t[0]],this[t[1]])&&(this[t[0]]+=t[2]/n)})))}function tR(){let{ticks:t,tickPositions:e,dataMin:i=0,dataMax:s=0,categories:o}=this,a=this.options.type;if((o?.length||"category"===a)&&this.series.find(t=>t.bubblePadding)){let o=e.length;for(;o--;){let a=t[e[o]],r=a.pos||0;(r>s||r<i)&&a.label?.hide()}}}class tI extends tX{static compose(t,e,i){tv(e,i),Y(tS,"Series.Bubble")&&(g(t,"foundExtremes",tY),g(t,"afterRender",tR))}animate(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){let{graphic:e,plotX:i=0,plotY:s=0}=t;e&&e.width&&(this.hasRendered||e.attr({x:i,y:s,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)}getRadii(){let t=this.getColumn("z"),e=this.getColumn("y"),i=[],s,o,a,r=this.chart.bubbleZExtremes,{minPxSize:n,maxPxSize:l}=this.getPxExtremes();if(!r){let t,e=Number.MAX_VALUE,i=-Number.MAX_VALUE;this.chart.series.forEach(s=>{if(s.bubblePadding&&s.reserveSpace()){let o=(s.onPoint||s).getZExtremes();o&&(e=Math.min(N(e,o.zMin),o.zMin),i=Math.max(N(i,o.zMax),o.zMax),t=!0)}}),t?(r={zMin:e,zMax:i},this.chart.bubbleZExtremes=r):r={zMin:0,zMax:0}}for(o=0,s=t.length;o<s;o++)a=t[o],i.push(this.getRadius(r.zMin,r.zMax,n,l,a,e&&e[o]));this.radii=i}getRadius(t,e,i,s,o,a){let r=this.options,n="width"!==r.sizeBy,l=r.zThreshold,h=e-t,p=.5;if(null===a||null===o)return null;if(w(o)){if(r.sizeByAbsoluteValue&&(o=Math.abs(o-l),e=h=Math.max(e-l,Math.abs(t-l)),t=0),o<t)return i/2-1;h>0&&(p=(o-t)/h)}return n&&p>=0&&(p=Math.sqrt(p)),Math.ceil(i+p*(s-i))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(t,e){let i=super.markerAttribs(t,e),{height:s=0,width:o=0}=i;return this.chart.inverted?M(i,{x:(t.plotX||0)-o/2,y:(t.plotY||0)-s/2}):i}pointAttribs(t,e){let i=this.options.marker,s=i?.fillOpacity,o=tC.prototype.pointAttribs.call(this,t,e);return o["fill-opacity"]=s??1,o}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:t,options:e,radii:i}=this,{minPxSize:s}=this.getPxExtremes(),o=t.length;for(;o--;){let a=t[o],r=i?i[o]:0;"z"===this.zoneAxis&&(a.negative=(a.z||0)<(e.zThreshold||0)),w(r)&&(a.marker=M(a.marker,{radius:r,width:2*r,height:2*r})),w(r)&&r>=s/2?a.dlBox={x:a.plotX-r,y:a.plotY-r,width:2*r,height:2*r}:(a.shapeArgs=a.plotY=a.dlBox=void 0,a.isInside=!1)}}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=e=>{let i;return"string"==typeof e&&(i=/%$/.test(e),e=parseInt(e,10)),i?t*e/100:e},i=e(N(this.options.minSize,8)),s=Math.max(e(N(this.options.maxSize,"20%")),i);return{minPxSize:i,maxPxSize:s}}getZExtremes(){let t=this.options,e=this.getColumn("z").filter(w);if(e.length){let i=N(t.zMin,m(f(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),s=N(t.zMax,b(e));if(w(i)&&w(s))return{zMin:i,zMax:s}}}searchKDTree(t,e,i,s=tT,o=tT){return s=(t,e,i)=>{let s=t[i]||0,o=e[i]||0,a,r=!1;return s===o?a=t.index>e.index?t:e:s<0&&o<0?(a=s-(t.marker?.radius||0)>=o-(e.marker?.radius||0)?t:e,r=!0):a=s<o?t:e,[a,r]},o=(t,e,i)=>!i&&t>e||t<e,super.searchKDTree(t,e,i,s,o)}}tI.defaultOptions=T(tX.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{z:e}=this.point;return w(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),M(tI.prototype,{alignDataLabel:tN.alignDataLabel,applyZones:tT,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:tA,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(tI,"updatedData",t=>{delete t.target.chart.bubbleZExtremes}),g(tI,"remove",t=>{delete t.target.chart.bubbleZExtremes}),g(tI,"update",t=>{let e=t.target.options;(P(e.zMin)||P(e.zMax))&&delete t.target.chart.bubbleZExtremes}),h().registerSeriesType("bubble",tI);let{seriesTypes:{column:{prototype:{pointClass:{prototype:tE}}},arearange:{prototype:{pointClass:tO}}}}=h();class tD extends tO{isValid(){return w(this.low)}}M(tD.prototype,{setState:tE.setState});let{noop:tz}=n(),{seriesTypes:{arearange:tB,column:tW,column:{prototype:tH}}}=h();class tF extends tB{setOptions(){return T(!0,arguments[0],{stacking:void 0}),tB.prototype.setOptions.apply(this,arguments)}translate(){return tH.translate.apply(this)}pointAttribs(){return tH.pointAttribs.apply(this,arguments)}translate3dPoints(){return tH.translate3dPoints.apply(this,arguments)}translate3dShapes(){return tH.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let t,e,i,s,o=this.yAxis,a=this.xAxis,r=a.startAngleRad,n=this.chart,l=this.xAxis.isRadial,h=Math.max(n.chartWidth,n.chartHeight)+999;this.points.forEach(p=>{let d=p.shapeArgs||{},c=this.options.minPointLength,u=p.plotY,g=o.translate(p.high,0,1,0,1);if(w(g)&&w(u))if(p.plotHigh=m(g,-h,h),p.plotLow=m(u,-h,h),s=p.plotHigh,Math.abs(t=N(p.rectPlotY,p.plotY)-p.plotHigh)<c?(e=c-t,t+=e,s-=e/2):t<0&&(t*=-1,s-=t),l&&this.polar)i=p.barX+r,p.shapeType="arc",p.shapeArgs=this.polar.arc(s+t,s,i,i+(p.pointWidth||0));else{d.height=t,d.y=s;let{x:e=0,width:i=0}=d;p.shapeArgs=T(p.shapeArgs,this.crispCol(e,s,i,t)),p.tooltipPos=n.inverted?[o.len+o.pos-n.plotLeft-s-t/2,a.len+a.pos-n.plotTop-e-i/2,t]:[a.left-n.plotLeft+e+i/2,o.pos-n.plotTop+s+t/2,t]}})}}tF.defaultOptions=T(tW.defaultOptions,tB.defaultOptions,{borderRadius:{where:"all"},pointRange:null,legendSymbol:"rectangle",marker:null,states:{hover:{halo:!1}}}),g(tF,"afterColumnTranslate",function(){tF.prototype.afterColumnTranslate.apply(this)},{order:5}),M(tF.prototype,{directTouch:!0,pointClass:tD,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:tH.adjustForMissingColumns,animate:tH.animate,crispCol:tH.crispCol,drawGraph:tz,drawPoints:tH.drawPoints,getSymbol:tz,drawTracker:tH.drawTracker,getColumnMetrics:tH.getColumnMetrics}),h().registerSeriesType("columnrange",tF);let{column:tG}=h().seriesTypes;class tq extends tG{translate(){let t=this.chart,e=this.options,i=this.dense=this.closestPointRange*this.xAxis.transA<2,s=this.borderWidth=N(e.borderWidth,+!i),o=this.yAxis,a=e.threshold,r=N(e.minPointLength,5),n=this.getColumnMetrics(),l=n.width,h=this.pointXOffset=n.offset,p=this.translatedThreshold=o.getThreshold(a),d=this.barW=Math.max(l,1+2*s);for(let i of(t.inverted&&(p-=.5),e.pointPadding&&(d=Math.ceil(d)),super.translate(),this.points)){let s=N(i.yBottom,p),c=999+Math.abs(s),u=m(i.plotY,-c,o.len+c),g=d/2,f=Math.min(u,s),b=Math.max(u,s)-f,y=i.plotX+h,x,P,M,v,L,k,w,A,S,T,C;e.centerInCategory&&(y=this.adjustForMissingColumns(y,l,i,n)),i.barX=y,i.pointWidth=l,i.tooltipPos=t.inverted?[o.len+o.pos-t.plotLeft-u,this.xAxis.len-y-g,b]:[y+g,u+o.pos-t.plotTop,b],x=a+(i.total||i.y),"percent"===e.stacking&&(x=a+(i.y<0)?-100:100);let X=o.toPixels(x,!0);M=(P=t.plotHeight-X-(t.plotHeight-p))?g*(f-X)/P:0,v=P?g*(f+b-X)/P:0,k=y-M+g,w=y+M+g,A=y+v+g,S=y-v+g,T=f-r,C=f+b,i.y<0&&(T=f,C=f+b+r),t.inverted&&(L=o.width-f,P=X-(o.width-p),M=g*(X-L)/P,v=g*(X-(L-b))/P,w=(k=y+g+M)-2*M,A=y-v+g,S=y+v+g,T=f,C=f+b-r,i.y<0&&(C=f+b+r)),i.shapeType="path",i.shapeArgs={x:k,y:T,width:w-k,height:b,d:[["M",k,T],["L",w,T],["L",A,C],["L",S,C],["Z"]]}}}}tq.defaultOptions=T(tG.defaultOptions,{}),h().registerSeriesType("columnpyramid",tq);let{arearange:tV}=h().seriesTypes;class tK extends th{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||tr().prototype.getColumnMetrics.call(this)}drawDataLabels(){let t=this.pointValKey;if(tV)for(let e of(tV.prototype.drawDataLabels.call(this),this.points))e.y=e[t]}toYData(t){return[t.low,t.high]}}tK.defaultOptions=T(th.defaultOptions,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}),g(tK,"afterTranslate",function(){for(let t of this.points)t.plotLow=t.plotY},{order:0}),M(tK.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),h().registerSeriesType("errorbar",tK);let{series:{prototype:{pointClass:tj}}}=h(),{noop:tU}=n(),{series:t_,seriesTypes:{column:tZ}}=h();class t$ extends t_{translate(){let t=this.yAxis,e=this.options,i=t.center;this.generatePoints(),this.points.forEach(s=>{let o=T(e.dial,s.dial),a=X(o.radius)*i[2]/200,r=X(o.baseLength)*a/100,n=X(o.rearLength)*a/100,l=o.baseWidth,h=o.topWidth,p=e.overshoot,d=t.startAngleRad+t.translate(s.y,void 0,void 0,void 0,!0);(w(p)||!1===e.wrap)&&(p=w(p)?p/180*Math.PI:0,d=m(d,t.startAngleRad-p,t.endAngleRad+p)),d=180*d/Math.PI,s.shapeType="path",s.shapeArgs={d:o.path||[["M",-n,-l/2],["L",r,-l/2],["L",a,-h/2],["L",a,h/2],["L",r,l/2],["L",-n,l/2],["Z"]],translateX:i[0],translateY:i[1],rotation:d},s.plotX=i[0],s.plotY=i[1],P(s.y)&&t.max-t.min&&(s.percentage=(s.y-t.min)/(t.max-t.min)*100)})}drawPoints(){let t=this,e=t.chart,i=t.yAxis.center,s=t.pivot,o=t.options,a=o.pivot,r=e.renderer;t.points.forEach(i=>{let s=i.graphic,a=i.shapeArgs,n=a.d,l=T(o.dial,i.dial);s?(s.animate(a),a.d=n):i.graphic=r[i.shapeType](a).addClass("highcharts-dial").add(t.group),e.styledMode||i.graphic[s?"animate":"attr"]({stroke:l.borderColor,"stroke-width":l.borderWidth,fill:l.backgroundColor})}),s?s.animate({translateX:i[0],translateY:i[1]}):a&&(t.pivot=r.circle(0,0,a.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(i[0],i[1]).add(t.group),e.styledMode||t.pivot.attr({fill:a.backgroundColor,stroke:a.borderColor,"stroke-width":a.borderWidth}))}animate(t){let e=this;t||e.points.forEach(t=>{let i=t.graphic;i&&(i.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),i.animate({rotation:t.shapeArgs.rotation},e.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),t_.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(t,e){t_.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),N(e,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}t$.defaultOptions=T(t_.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),M(t$.prototype,{angular:!0,directTouch:!0,drawGraph:tU,drawTracker:tZ.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:class extends tj{setState(t){this.state=t}},trackerGroups:["group","dataLabelsGroup"]}),h().registerSeriesType("gauge",t$);let tQ=t.default.Color;var tJ=a.n(tQ);let{composed:t0}=n();function t1(){let t,e,i,s,o=this;o.container&&(t=g(o.container,"mousedown",t=>{e&&e(),i&&i(),(s=o.hoverPoint)&&s.series&&s.series.hasDraggableNodes&&s.series.options.draggable&&(s.series.onMouseDown(s,t),e=g(o.container,"mousemove",t=>s&&s.series&&s.series.onMouseMove(s,t)),i=g(o.container.ownerDocument,"mouseup",t=>(e(),i(),s&&s.series&&s.series.onMouseUp(s,t))))})),g(o,"destroy",function(){t()})}let t2={compose:function(t){Y(t0,"DragNodes")&&g(t,"load",t1)},onMouseDown:function(t,e){let{panKey:i}=this.chart.options.chart;if(i&&e[`${i}Key`])return;let s=this.chart.pointer?.normalize(e)||e;t.fixedPosition={chartX:s.chartX,chartY:s.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){let i,s,o=this.chart,a=o.pointer?.normalize(e)||e,r=t.fixedPosition.chartX-a.chartX,n=t.fixedPosition.chartY-a.chartY,l=o.graphLayoutsLookup;(Math.abs(r)>5||Math.abs(n)>5)&&(i=t.fixedPosition.plotX-r,s=t.fixedPosition.plotY-n,o.isInsidePlot(i,s)&&(t.plotX=i,t.plotY=s,t.hasDragged=!0,this.redrawHalo(t),l.forEach(t=>{t.restartSimulation()})))}},onMouseUp:function(t){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}},{setAnimation:t3}=n(),{composed:t5}=n();function t8(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(t=>{t.updateSimulation()}),this.redraw())}function t6(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(t=>{t.updateSimulation(!1)}),this.redraw())}function t9(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(t=>{t.stop()})}function t4(){let t,e=!1,i=i=>{i.maxIterations--&&isFinite(i.temperature)&&!i.isStable()&&!i.enableSimulation&&(i.beforeStep&&i.beforeStep(),i.step(),t=!1,e=!0)};if(this.graphLayoutsLookup&&!this.pointer?.hasDragged){for(t3(!1,this),this.graphLayoutsLookup.forEach(t=>t.start());!t;)t=!0,this.graphLayoutsLookup.forEach(i);e&&this.series.forEach(t=>{t&&t.layout&&t.render()})}}let t7=function(t){Y(t5,"GraphLayout")&&(g(t,"afterPrint",t8),g(t,"beforePrint",t6),g(t,"predraw",t9),g(t,"render",t4))},et={},ee={},ei=t.default.Chart;var es=a.n(ei);let{seriesTypes:{bubble:{prototype:{pointClass:eo}}}}=h(),ea=class extends eo{destroy(){return this.series?.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),tk().prototype.destroy.apply(this,arguments)}firePointEvent(){let t=this.series.options;if(this.isParentNode&&t.parentNode){let e=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,tk().prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=e}else tk().prototype.firePointEvent.apply(this,arguments)}select(){let t=this.series.chart;this.isParentNode?(t.getSelectedPoints=t.getSelectedParentNodes,tk().prototype.select.apply(this,arguments),t.getSelectedPoints=es().prototype.getSelectedPoints):tk().prototype.select.apply(this,arguments)}setState(t,e){this?.graphic?.parentGroup?.element&&super.setState(t,e)}},er={attractive:function(t,e,i){let s=t.getMass(),o=-i.x*e*this.diffTemperature,a=-i.y*e*this.diffTemperature;t.fromNode.fixedPosition||(t.fromNode.plotX-=o*s.fromNode/t.fromNode.degree,t.fromNode.plotY-=a*s.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=o*s.toNode/t.toNode.degree,t.toNode.plotY+=a*s.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){let t=this.options.gravitationalConstant||0,e=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*t,i=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*t;this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=i/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){let i=-t.options.friction,s=t.options.maxSpeed,o=e.prevX,a=e.prevY,r=(e.plotX+e.dispX-o)*i,n=(e.plotY+e.dispY-a)*i,l=Math.abs,h=l(r)/(r||1),p=l(n)/(n||1),d=h*Math.min(s,Math.abs(r)),c=p*Math.min(s,Math.abs(n));e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=d,e.plotY+=c,e.temperature=t.vectorLength({x:d,y:c})},repulsive:function(t,e,i){let s=e*this.diffTemperature/t.mass/t.degree;t.fixedPosition||(t.plotX+=i.x*s,t.plotY+=i.y*s)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t)}},{noop:en}=n(),el={barycenter:function(){let t,e,i=this.options.gravitationalConstant||0,s=this.box,o=this.nodes,a=Math.sqrt(o.length);for(let r of o)if(!r.fixedPosition){let o=r.mass*a,n=r.plotX||0,l=r.plotY||0,h=r.series,p=h.parentNode;this.resolveSplitSeries(r)&&p&&!r.isParentNode?(t=p.plotX||0,e=p.plotY||0):(t=s.width/2,e=s.height/2),r.plotX=n-(n-t)*i/o,r.plotY=l-(l-e)*i/o,h.chart.hoverPoint===r&&h.redrawHalo&&h.halo&&h.redrawHalo(r)}},getK:en,integrate:er.integrate,repulsive:function(t,e,i,s){let o=e*this.diffTemperature/t.mass/t.degree,a=i.x*o,r=i.y*o;t.fixedPosition||(t.plotX+=a,t.plotY+=r),s.fixedPosition||(s.plotX-=a,s.plotY-=r)},repulsiveForceFunction:function(t,e,i,s){return Math.min(t,(i.marker.radius+s.marker.radius)/2)}},eh={attractive:function(t,e,i,s){let o=t.getMass(),a=i.x/s*e,r=i.y/s*e;t.fromNode.fixedPosition||(t.fromNode.dispX-=a*o.fromNode/t.fromNode.degree,t.fromNode.dispY-=r*o.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=a*o.toNode/t.toNode.degree,t.toNode.dispY+=r*o.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){let t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;this.nodes.forEach(function(s){if(!s.fixedPosition){let o=s.getDegree(),a=o*(1+o/2);s.dispX+=(e-s.plotX)*t*a/s.degree,s.dispY+=(i-s.plotY)*t*a/s.degree}})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;let i=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==i&&(e.plotX+=e.dispX/i*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/i*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,i,s){t.dispX+=i.x/s*e/t.degree,t.dispY+=i.y/s*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}};class ep{constructor(t){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}divideBox(){let t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new ep({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new ep({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new ep({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new ep({left:this.box.left,top:this.box.top+e,width:t,height:e})}getBoxPosition(t){let e=t.plotX<this.box.left+this.box.width/2,i=t.plotY<this.box.top+this.box.height/2;return e?3*!i:i?1:2}insert(t,e){let i;this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((i=new ep({top:t.plotX||NaN,left:t.plotY||NaN,width:.1,height:.1})).body=t,i.isInternal=!1,this.nodes.push(i)):(this.isInternal=!1,this.body=t))}updateMassAndCenter(){let t=0,e=0,i=0;if(this.isInternal){for(let s of this.nodes)s.isEmpty||(t+=s.mass,e+=s.plotX*s.mass,i+=s.plotY*s.mass);e/=t,i/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,i=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=i}}let ed=class{constructor(t,e,i,s){this.box={left:t,top:e,width:i,height:s},this.maxDepth=25,this.root=new ep(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}calculateMassAndCenter(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})}insertNodes(t){for(let e of t)this.root.insert(e,this.maxDepth)}visitNodeRecursive(t,e,i){let s;if(t||(t=this.root),t===this.root&&e&&(s=e(t)),!1!==s){for(let o of t.nodes){if(o.isInternal){if(e&&(s=e(o)),!1===s)continue;this.visitNodeRecursive(o,e,i)}else o.body&&e&&e(o.body);i&&i(o)}t===this.root&&i&&i(t)}}},{win:ec}=n();class eu{constructor(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}static compose(t){t7(t),et.euler=eh,et.verlet=er,ee["reingold-fruchterman"]=eu}init(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=et[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=N(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=N(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation}updateSimulation(t){this.enableSimulation=N(t,this.options.enableSimulation)}start(){let t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.finishedAnimating=!0,t.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()}step(){let t=this.series;for(let t of(this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter()),this.forces||[]))this[t+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(let e of t)e.chart&&e.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&ec.cancelAnimationFrame(this.simulation),this.simulation=ec.requestAnimationFrame(()=>this.step())):(this.simulation=!1,this.series.forEach(t=>{v(t,"afterSimulation")}))}}stop(){this.simulation&&ec.cancelAnimationFrame(this.simulation)}setArea(t,e,i,s){this.box={left:t,top:e,width:i,height:s}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(t,e){for(let i of t)-1===e.indexOf(i)&&e.push(i)}removeElementFromCollection(t,e){let i=e.indexOf(t);-1!==i&&e.splice(i,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(t){this.maxIterations=N(t,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(t){this.initialRendering=t}createQuadTree(){this.quadTree=new ed(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let t=this.options.initialPositions;if("function"==typeof t)for(let e of(t.call(this),this.nodes))P(e.prevX)||(e.prevX=e.plotX),P(e.prevY)||(e.prevY=e.plotY),e.dispX=0,e.dispY=0;else"circle"===t?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let t,e=this.box,i=this.nodes,s=2*Math.PI/(i.length+1),o=i.filter(function(t){return 0===t.linksTo.length}),a={},r=this.options.initialPositionRadius,n=t=>{for(let e of t.linksFrom||[])a[e.toNode.id]||(a[e.toNode.id]=!0,l.push(e.toNode),n(e.toNode))},l=[];for(let t of o)l.push(t),n(t);if(l.length)for(let t of i)-1===l.indexOf(t)&&l.push(t);else l=i;for(let i=0,o=l.length;i<o;++i)(t=l[i]).plotX=t.prevX=N(t.plotX,e.width/2+r*Math.cos(i*s)),t.plotY=t.prevY=N(t.plotY,e.height/2+r*Math.sin(i*s)),t.dispX=0,t.dispY=0}setRandomPositions(){let t,e=this.box,i=this.nodes,s=i.length+1,o=t=>{let e=t*t/Math.PI;return e-Math.floor(e)};for(let a=0,r=i.length;a<r;++a)(t=i[a]).plotX=t.prevX=N(t.plotX,e.width*o(a)),t.plotY=t.prevY=N(t.plotY,e.height*o(s+a)),t.dispX=0,t.dispY=0}force(t,...e){this.integration[t].apply(this,e)}barycenterForces(){this.getBarycenter(),this.force("barycenter")}getBarycenter(){let t=0,e=0,i=0;for(let s of this.nodes)e+=s.plotX*s.mass,i+=s.plotY*s.mass,t+=s.mass;return this.barycenter={x:e,y:i,xFactor:e/t,yFactor:i/t},this.barycenter}barnesHutApproximation(t,e){let i,s,o=this.getDistXY(t,e),a=this.vectorLength(o);return t!==e&&0!==a&&(e.isInternal?e.boxSize/a<this.op