@aquera/data-visualizer-sdk 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-4PS3OAOS.js +1 -0
- package/chunk-5CTM6JVQ.js +1 -0
- package/chunk-6Q3P5YXE.js +2 -0
- package/chunk-7ROJSOMZ.js +1 -0
- package/chunk-ATIVRRY6.js +2 -0
- package/chunk-AYEY6YSX.js +1 -0
- package/chunk-BTDKTIE6.js +2 -0
- package/chunk-CFURBIBO.js +1 -0
- package/chunk-DPG6F2YZ.js +1 -0
- package/chunk-FZDVALWH.js +1 -0
- package/chunk-GE5TYRBE.js +18 -0
- package/chunk-GJVMDYMJ.js +2 -0
- package/chunk-H2YEWK77.js +1 -0
- package/chunk-HIPUXYQH.js +18 -0
- package/{chunk-S24GYO47.js → chunk-IKSLFT22.js} +606 -606
- package/chunk-MMU63XDX.js +1 -0
- package/chunk-ORMWZQE4.js +1 -0
- package/chunk-QAUTHFGS.js +1 -0
- package/chunk-REQTBAAZ.js +1 -0
- package/chunk-THFIOYOT.js +1 -0
- package/chunk-UBYEJME7.js +1 -0
- package/chunk-VHRN6ITF.js +18 -0
- package/chunk-W25JWAKD.js +1 -0
- package/chunk-XEG2ZCTG.js +1 -0
- package/chunk-XRJ2TFI3.js +1 -0
- package/chunk-Y42W4DYB.js +4 -0
- package/chunk-Y6QEYRLY.js +1 -0
- package/chunk-YOMAZ3ZR.js +1 -0
- package/chunk-ZAZ2JO4L.js +1 -0
- package/main.js +1 -1
- package/package.json +1 -1
- package/chunk-2RUFAZZ3.js +0 -2
- package/chunk-4L6PYIW4.js +0 -1
- package/chunk-O74A6HHW.js +0 -18
- package/chunk-V7RVJSD2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as Ct}from"./chunk-ZW5NV4UO.js";var wt=Ct((L,E)=>{(function(p,A){typeof L=="object"&&typeof E=="object"?E.exports=A(p._Highcharts,p._Highcharts.Color,p._Highcharts.SeriesRegistry):typeof define=="function"&&define.amd?define("highcharts/modules/xrange",["highcharts/highcharts"],function(w){return A(w,w.Color,w.SeriesRegistry)}):typeof L=="object"?L["highcharts/modules/xrange"]=A(p._Highcharts,p._Highcharts.Color,p._Highcharts.SeriesRegistry):p.Highcharts=A(p.Highcharts,p.Highcharts.Color,p.Highcharts.SeriesRegistry)})("u"<typeof window?L:window,(p,A,w)=>(()=>{"use strict";var tt={512:s=>{s.exports=w},620:s=>{s.exports=A},944:s=>{s.exports=p}},W={};function n(s){var t=W[s];if(t!==void 0)return t.exports;var e=W[s]={exports:{}};return tt[s](e,e.exports,n),e.exports}n.n=s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return n.d(t,{a:t}),t},n.d=(s,t)=>{for(var e in t)n.o(t,e)&&!n.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},n.o=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var q={};n.d(q,{default:()=>mt});var et=n(944),C=n.n(et),it=n(620),st=n.n(it),ot=n(512),O=n.n(ot);let{correctFloat:rt,isNumber:at,isObject:lt}=C(),{column:{prototype:{pointClass:nt}}}=O().seriesTypes,{extend:ht}=C();class j extends nt{static getColorByCategory(t,e){let i=t.options.colors||t.chart.options.colors,o=i?i.length:t.chart.options.chart.colorCount,l=e.y%o,a=i?.[l];return{colorIndex:l,color:a}}resolveColor(){let t=this.series;if(t.options.colorByPoint&&!this.options.color){let e=j.getColorByCategory(t,this);t.chart.styledMode||(this.color=e.color),(this.options.colorIndex===void 0||this.options.colorIndex===null)&&(this.colorIndex=e.colorIndex)}else this.color=this.options.color||t.color}constructor(t,e){super(t,e),this.y||(this.y=0)}applyOptions(t,e){return super.applyOptions(t,e),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!this.isValid?.(),this.formatPrefix=this.isNull?"null":"point",this}setState(){super.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())}isValid(){return typeof this.x=="number"&&typeof this.x2=="number"}}ht(j.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});let{composed:pt,noop:K}=C(),{parse:U}=st(),{column:z}=O().seriesTypes,{addEvent:ct,clamp:v,crisp:_,defined:dt,extend:ut,find:G,isNumber:M,isObject:B,merge:x,pick:P,pushUnique:gt,relativeLength:xt}=C();function ft(){let s,t;if(this.isXAxis){for(let e of(s=P(this.dataMax,-Number.MAX_VALUE),this.series)){let i=e.dataTable.getColumn("x2",!0)||e.dataTable.getColumn("end",!0);if(i)for(let o of i)M(o)&&o>s&&(s=o,t=!0)}t&&(this.dataMax=s)}}class I extends z{static compose(t){gt(pt,"Series.XRange")&&ct(t,"afterGetSeriesExtremes",ft)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}getColumnMetrics(){let t=()=>{for(let i of this.chart.series){let o=i.xAxis;i.xAxis=i.yAxis,i.yAxis=o}};t();let e=super.getColumnMetrics();return t(),e}cropData(t,e,i){let o=t.getColumn("x")||[],l=t.getColumn("x2");t.setColumn("x",l,void 0,{silent:!0});let a=super.cropData(t,e,i);return t.setColumn("x",o.slice(a.start,a.end),void 0,{silent:!0}),a}findPointIndex(t){let e,{cropStart:i,points:o}=this,{id:l}=t;if(l){let a=G(o,h=>h.id===l);e=a?a.index:void 0}if(e===void 0){let a=G(o,h=>h.x===t.x&&h.x2===t.x2&&!h.touched);e=a?a.index:void 0}return this.cropped&&M(e)&&M(i)&&e>=i&&(e-=i),e}alignDataLabel(t){let e=t.plotX;t.plotX=P(t.dlBox?.centerX,t.plotX),t.dataLabel&&t.shapeArgs?.width&&t.dataLabel.css({width:`${t.shapeArgs.width}px`}),super.alignDataLabel.apply(this,arguments),t.plotX=e}translatePoint(t){let e=this.xAxis,i=this.yAxis,o=this.columnMetrics,l=this.options,a=l.minPointLength||0,h=(t.shapeArgs?.width||0)/2,g=this.pointXOffset=o.offset,R=P(t.x2,t.x+(t.len||0)),S=l.borderRadius,N=this.chart.plotTop,f=this.chart.plotLeft,d=t.plotX,r=e.translate(R,0,0,0,1),u=Math.abs(r-d),y=this.chart.inverted,D=P(l.borderWidth,1),T,m,$=o.offset,X=Math.round(o.width),b,F,V,Y;a&&((T=a-u)<0&&(T=0),d-=T/2,r+=T/2),d=Math.max(d,-10),r=v(r,-10,e.len+10),dt(t.options.pointWidth)&&($-=(Math.ceil(t.options.pointWidth)-X)/2,X=Math.ceil(t.options.pointWidth)),l.pointPlacement&&M(t.plotY)&&i.categories&&(t.plotY=i.translate(t.y,0,1,0,1,l.pointPlacement));let J=_(Math.min(d,r),D),Q=_(Math.max(d,r),D)-J,bt=Math.min(xt(typeof S=="object"?S.radius:S||0,X),Math.min(Q,X)/2),c={x:J,y:_((t.plotY||0)+$,D),width:Q,height:X,r:bt};t.shapeArgs=c,y?t.tooltipPos[1]+=g+h:t.tooltipPos[0]-=h+g-c.width/2,F=(b=c.x)+c.width,b<0||F>e.len?(b=v(b,0,e.len),V=(F=v(F,0,e.len))-b,t.dlBox=x(c,{x:b,width:F-b,centerX:V?V/2:null})):t.dlBox=null;let H=t.tooltipPos,k=+!!y,Z=+!y,At=this.columnMetrics?this.columnMetrics.offset:-o.width/2;y?H[k]+=c.width/2:H[k]=v(H[k]+(e.reversed?-1:0)*c.width,e.left-f,e.left+e.len-f-1),H[Z]=v(H[Z]+(y?-1:1)*At,i.top-N,i.top+i.len-N-1),(m=t.partialFill)&&(B(m)&&(m=m.amount),M(m)||(m=0),t.partShapeArgs=x(c),Y=Math.max(Math.round(u*m+t.plotX-d),0),t.clipRectArgs={x:e.reversed?c.x+u-Y:c.x,y:c.y,width:Y,height:c.height}),t.key=t.category||t.name,t.yCategory=i.categories?.[t.y??-1]}translate(){for(let t of(super.translate.apply(this,arguments),this.points))this.translatePoint(t)}drawPoint(t,e){let i=this.options,o=this.chart.renderer,l=t.shapeType,a=t.shapeArgs,h=t.partShapeArgs,g=t.clipRectArgs,R=t.state,S=i.states[R||"normal"]||{},N=R===void 0?"attr":e,f=this.pointAttribs(t,R),d=P(this.chart.options.chart.animation,S.animation),r=t.graphic,u=t.partialFill;if(t.isNull||t.visible===!1)r&&(t.graphic=r.destroy());else if(r?r.rect[e](a):(t.graphic=r=o.g("point").addClass(t.getClassName()).add(t.group||this.group),r.rect=o[l](x(a)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(r)),h&&(r.partRect?(r.partRect[e](x(h)),r.partialClipRect[e](x(g))):(r.partialClipRect=o.clipRect(g.x,g.y,g.width,g.height),r.partRect=o[l](h).addClass("highcharts-partfill-overlay").add(r).clip(r.partialClipRect))),!this.chart.styledMode&&(r.rect[e](f,d).shadow(i.shadow),h)){B(u)||(u={}),B(i.partialFill)&&(u=x(i.partialFill,u));let y=u.fill||U(f.fill).brighten(-.3).get()||U(t.color||this.color).brighten(-.3).get();f.fill=y,r.partRect[N](f,d).shadow(i.shadow)}}drawPoints(){let t=this.getAnimationVerb();for(let e of this.points)this.drawPoint(e,t)}getAnimationVerb(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}isPointInside(t){let e=t.shapeArgs,i=t.plotX,o=t.plotY;return e?i!==void 0&&o!==void 0&&o>=0&&o<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&i<=this.xAxis.len:super.isPointInside.apply(this,arguments)}}I.defaultOptions=x(z.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){let s=this.partialFill;if(lt(s)&&(s=s.amount),at(s)&&s>0)return rt(100*s)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}),ut(I.prototype,{pointClass:j,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:O().series.prototype.animate,autoIncrement:K,buildKDTree:K}),O().registerSeriesType("xrange",I);let yt=C();I.compose(yt.Axis);let mt=C();return q.default})())});export default wt();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Vi,e as mr}from"./chunk-ZW5NV4UO.js";var br=mr((Wt,Ee)=>{(function(E,vt){typeof Wt=="object"&&typeof Ee=="object"?Ee.exports=vt(E._Highcharts,E._Highcharts.SeriesRegistry,E._Highcharts.Series,E._Highcharts.Series.types.column,E._Highcharts.Templating,E._Highcharts.Point,E._Highcharts.Color,E._Highcharts.Chart,E._Highcharts.SVGElement,E._Highcharts.StackItem):typeof define=="function"&&define.amd?define("highcharts/highcharts-more",["highcharts/highcharts"],function($){return vt($,$.SeriesRegistry,$.Series,$.Series,["types"],["column"],$.Templating,$.Point,$.Color,$.Chart,$.SVGElement,$.StackItem)}):typeof Wt=="object"?Wt["highcharts/highcharts-more"]=vt(E._Highcharts,E._Highcharts.SeriesRegistry,E._Highcharts.Series,E._Highcharts.Series.types.column,E._Highcharts.Templating,E._Highcharts.Point,E._Highcharts.Color,E._Highcharts.Chart,E._Highcharts.SVGElement,E._Highcharts.StackItem):E.Highcharts=vt(E.Highcharts,E.Highcharts.SeriesRegistry,E.Highcharts.Series,E.Highcharts.Series.types.column,E.Highcharts.Templating,E.Highcharts.Point,E.Highcharts.Color,E.Highcharts.Chart,E.Highcharts.SVGElement,E.Highcharts.StackItem)})("u"<typeof window?Wt:window,(E,vt,$,Ui,_i,Ki,ji,Zi,$i,Qi)=>(()=>{"use strict";var ze,re,ne,le,Ji={28:s=>{s.exports=$i},184:s=>{s.exports=Qi},260:s=>{s.exports=Ki},448:s=>{s.exports=Ui},512:s=>{s.exports=vt},620:s=>{s.exports=ji},820:s=>{s.exports=$},944:s=>{s.exports=E},960:s=>{s.exports=Zi},984:s=>{s.exports=_i}},De={};function H(s){var t=De[s];if(t!==void 0)return t.exports;var e=De[s]={exports:{}};return Ji[s](e,e.exports,H),e.exports}H.n=s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return H.d(t,{a:t}),t},H.d=(s,t)=>{for(var e in t)H.o(t,e)&&!H.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},H.o=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var Oe={};H.d(Oe,{default:()=>fr});var ts=H(944),w=H.n(ts),es=H(512),z=H.n(es),is=H(820),He=H.n(is);let{deg2rad:Be}=w(),{fireEvent:ss,isNumber:he,pick:Ft,relativeLength:as}=w();(ze=re||(re={})).getCenter=function(){let s=this.options,t=this.chart,e=2*(s.slicedOffset||0),i=t.plotWidth-2*e,a=t.plotHeight-2*e,r=s.center,o=Math.min(i,a),n=s.thickness,h,p=s.size,d=s.innerSize||0,l,u;typeof p=="string"&&(p=parseFloat(p)),typeof d=="string"&&(d=parseFloat(d));let c=[Ft(r?.[0],"50%"),Ft(r?.[1],"50%"),Ft(p&&p<0?void 0:s.size,"100%"),Ft(d&&d<0?void 0:s.innerSize||0,"0%")];for(!t.angular||this instanceof He()||(c[3]=0),l=0;l<4;++l)u=c[l],h=l<2||l===2&&/%$/.test(u),c[l]=as(u,[i,a,o,c[2]][l])+(h?e:0);return c[3]>c[2]&&(c[3]=c[2]),he(n)&&2*n<c[2]&&n>0&&(c[3]=c[2]-2*n),ss(this,"afterGetCenter",{positions:c}),c},ze.getStartAndEndRadians=function(s,t){let e=he(s)?s:0,i=he(t)&&t>e&&t-e<360?t:e+360;return{start:Be*(e+-90),end:Be*(i+-90)}};let os=re,{addEvent:Gt,correctFloat:We,defined:Fe,pick:rs}=w();function ns(s){let t,e=this;return s&&e.pane.forEach(i=>{pe(s.chartX-e.plotLeft,s.chartY-e.plotTop,i.center)&&(t=i)}),t}function ls({clipBox:s}){if(!this.xAxis||!this.yAxis||!this.chart.angular&&!this.chart.polar)return;let{plotWidth:t,plotHeight:e}=this.chart,i=Math.min(t,e),a=this.xAxis.pane,r=this.yAxis.pane;a&&a.axis&&(s.x+=a.center[0]-a.center[2]/i*t/2),r&&r.axis&&(s.y+=r.center[1]-r.center[2]/i*e/2)}function pe(s,t,e,i,a){let r=!0,o=e[0],n=e[1],h=2*Math.PI,p=Math.sqrt(Math.pow(s-o,2)+Math.pow(t-n,2));if(Fe(i)&&Fe(a)){let d=Math.atan2(We(t-n,8),We(s-o,8));d=(d+h)%h,i=(i+h)%h,Math.abs((a=(a+h)%h)-i)>1e-6&&(r=i>a?d>=i||d<=a:d>=i&&d<=a)}else r=!0;return p<=Math.ceil(e[2]/2)&&r}function hs(s){this.polar&&(s.options.inverted&&([s.x,s.y]=[s.y,s.x]),s.isInsidePlot=this.pane.some(t=>pe(s.x,s.y,t.center,t.axis&&t.axis.normalizedStartAngleRad,t.axis&&t.axis.normalizedEndAngleRad)))}function ps(s){let t=this.chart;s.hoverPoint&&s.hoverPoint.plotX&&s.hoverPoint.plotY&&t.hoverPane&&!pe(s.hoverPoint.plotX,s.hoverPoint.plotY,t.hoverPane.center)&&(s.hoverPoint=void 0)}function ds(s){let t=this.chart;t.polar?(t.hoverPane=t.getHoverPane(s),s.filter=function(e){return e.visible&&!(!s.shared&&e.directTouch)&&rs(e.options.enableMouseTracking,!0)&&(!t.hoverPane||e.xAxis.pane===t.hoverPane)}):t.hoverPane=void 0}let{defaultOptions:cs}=w(),Ge={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%"},qe={background:Ge,center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};cs.pane=qe;let{extend:us,merge:de,splat:gs}=w(),ce=(()=>{class s{constructor(e,i){this.coll="pane",this.init(e,i)}init(e,i){this.chart=i,this.background=[],i.pane.push(this),this.setOptions(e)}setOptions(e){this.options=e=de(qe,{background:this.chart.angular?{}:void 0},e)}render(){let e=this.options,i=this.chart.renderer;this.group||(this.group=i.g("pane-group").attr({zIndex:e.zIndex||0}).add()),this.updateCenter();let a=this.options.background;if(a){let r=Math.max((a=gs(a)).length,this.background.length||0);for(let o=0;o<r;o++)a[o]&&this.axis?this.renderBackground(de(Ge,a[o]),o):this.background[o]&&(this.background[o]=this.background[o].destroy(),this.background.splice(o,1))}}renderBackground(e,i){let a={class:"highcharts-pane "+(e.className||"")},r="animate";this.chart.styledMode||us(a,{fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.borderWidth}),this.background[i]||(this.background[i]=this.chart.renderer.path().add(this.group),r="attr"),this.background[i][r]({d:this.axis.getPlotBandPath(e.from,e.to,e)}).attr(a)}updateCenter(e){this.center=(e||this.axis||{}).center=os.getCenter.call(this)}update(e,i){de(!0,this.options,e),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(a){a.pane===this&&(a.pane=null,a.update({},i))},this)}}return s.compose=function(t,e,i){let a=t.prototype;a.getHoverPane||(a.collectionsWithUpdate.push("pane"),a.getHoverPane=ns,Gt(t,"afterIsInsidePlot",hs),Gt(e,"afterGetHoverData",ps),Gt(e,"beforeGetHoverData",ds),Gt(i,"setClip",ls))},s})(),{area:{prototype:{pointClass:fs,pointClass:{prototype:qt}}}}=z().seriesTypes,{defined:Ve,isNumber:Lt}=w(),ms=class extends fs{setState(){let s=this.state,t=this.series,e=t.chart.polar;Ve(this.plotHigh)||(this.plotHigh=t.yAxis.toPixels(this.high,!0)),Ve(this.plotLow)||(this.plotLow=this.plotY=t.yAxis.toPixels(this.low,!0)),t.lowerStateMarkerGraphic=t.stateMarkerGraphic,t.stateMarkerGraphic=t.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,e&&Lt(this.plotHighX)&&(this.plotX=this.plotHighX),qt.setState.apply(this,arguments),this.state=s,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],e&&Lt(this.plotLowX)&&(this.plotX=this.plotLowX),t.upperStateMarkerGraphic=t.stateMarkerGraphic,t.stateMarkerGraphic=t.lowerStateMarkerGraphic,t.lowerStateMarkerGraphic=void 0;let i=t.modifyMarkerSettings();qt.setState.apply(this,arguments),t.restoreMarkerSettings(i)}haloPath(){let s=this.series.chart.polar,t=[];return this.plotY=this.plotLow,s&&Lt(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(t=qt.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,s&&Lt(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(t=t.concat(qt.haloPath.apply(this,arguments))),t}isValid(){return Lt(this.low)&&Lt(this.high)}},{noop:bs}=w(),{area:Ue,area:{prototype:ft},column:{prototype:ys}}=z().seriesTypes,{addEvent:_e,defined:xs,extend:Vt,isArray:Ps,isNumber:Ms,pick:Ke,merge:je}=w();class kt extends Ue{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=[],a=ft.getGraphPath,r=this.options,o=this.chart.polar,n=o&&r.connectEnds!==!1,h=r.connectNulls,p,d,l,u=r.step;for(p=(t=t||this.points).length;p--;){d=t[p];let y=o?{plotX:d.rectPlotX,plotY:d.yBottom,doCurve:!1}:{plotX:d.plotX,plotY:d.plotY,doCurve:!1};d.isNull||n||h||t[p+1]&&!t[p+1].isNull||i.push(y),l={polarPlotY:d.polarPlotY,rectPlotX:d.rectPlotX,yBottom:d.yBottom,plotX:Ke(d.plotHighX,d.plotX),plotY:d.plotHigh,isNull:d.isNull},i.push(l),e.push(l),d.isNull||n||h||t[p-1]&&!t[p-1].isNull||i.push(y)}let c=a.call(this,t);u&&(u===!0&&(u="left"),r.step={left:"right",center:"center",right:"left"}[u]);let m=a.call(this,e),x=a.call(this,i);r.step=u;let f=[].concat(c,m);return!this.chart.polar&&x[0]&&x[0][0]==="M"&&(x[0]=["L",x[0][1],x[0][2]]),this.graphPath=f,this.areaPath=c.concat(x),f.isArea=!0,f.xMap=c.xMap,this.areaPath.xMap=c.xMap,f}drawDataLabels(){let t,e,i,a,r,o=this.points,n=o.length,h=[],p=this.options.dataLabels,d=this.chart.inverted;if(p){if(Ps(p)?(a=p[0]||{enabled:!1},r=p[1]||{enabled:!1}):((a=Vt({},p)).x=p.xHigh,a.y=p.yHigh,(r=Vt({},p)).x=p.xLow,r.y=p.yLow),a.enabled||this.hasDataLabels?.()){for(t=n;t--;)if(e=o[t]){let{plotHigh:l=0,plotLow:u=0}=e;i=a.inside?l<u:l>u,e.y=e.high,e._plotY=e.plotY,e.plotY=l,h[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=i,d?a.align||(a.align=i?"right":"left"):a.verticalAlign||(a.verticalAlign=i?"top":"bottom")}for(this.options.dataLabels=a,ft.drawDataLabels&&ft.drawDataLabels.apply(this,arguments),t=n;t--;)(e=o[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=h[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(r.enabled||this.hasDataLabels?.()){for(t=n;t--;)if(e=o[t]){let{plotHigh:l=0,plotLow:u=0}=e;i=r.inside?l<u:l>u,e.below=!i,d?r.align||(r.align=i?"left":"right"):r.verticalAlign||(r.verticalAlign=i?"bottom":"top")}this.options.dataLabels=r,ft.drawDataLabels&&ft.drawDataLabels.apply(this,arguments)}if(a.enabled)for(t=n;t--;)(e=o[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(l){return!!l}));this.options.dataLabels=p}}alignDataLabel(){ys.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let t={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:e,lowMarker:i}}=this;this.options.marker=je(e,i),i.symbol&&(this.symbol=i.symbol)}return t}restoreMarkerSettings(t){this.options.marker=t.marker,this.symbol=t.symbol}drawPoints(){let t,e,i=this.points.length,a=this.modifyMarkerSettings();for(ft.drawPoints.apply(this,arguments),this.restoreMarkerSettings(a),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,xs(e.plotHighX)&&(e.plotX=e.plotHighX),e.y=Ke(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=e.plotY!==void 0&&e.plotY>=0&&e.plotY<=this.yAxis.len&&e.plotX>=0&&e.plotX<=this.xAxis.len),t++;for(ft.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&&(Vt(e,e.origProps),delete e.origProps),t++}hasMarkerChanged(t,e){let i=t.lowMarker,a=e.lowMarker||{};return i&&(i.enabled===!1||a.symbol!==i.symbol||a.height!==i.height||a.width!==i.width)||super.hasMarkerChanged(t,e)}}kt.defaultOptions=je(Ue.defaultOptions,{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25CF</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}}),_e(kt,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(s=>{let t=s.high,e=s.plotY;s.isNull?s.plotY=void 0:(s.plotLow=e,s.plotHigh=Ms(t)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(t):t,!1,!0,void 0,!0):void 0,this.dataModify&&(s.yBottom=s.plotHigh))})},{order:0}),_e(kt,"afterTranslate",function(){this.points.forEach(s=>{if(this.chart.polar)this.highToXY(s),s.plotLow=s.plotY,s.tooltipPos=[((s.plotHighX||0)+(s.plotLowX||0))/2,((s.plotHigh||0)+(s.plotLow||0))/2];else{let t=s.pos(!1,s.plotLow),e=s.pos(!1,s.plotHigh);t&&e&&(t[0]=(t[0]+e[0])/2,t[1]=(t[1]+e[1])/2),s.tooltipPos=t}})},{order:3}),Vt(kt.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:ms,pointValKey:"low",setStackedPoints:bs}),z().registerSeriesType("arearange",kt);let Ze=kt,{spline:{prototype:vs}}=z().seriesTypes,{merge:Ls,extend:ks}=w();class ue extends Ze{}ue.defaultOptions=Ls(Ze.defaultOptions),ks(ue.prototype,{getPointSpline:vs.getPointSpline}),z().registerSeriesType("areasplinerange",ue);var ws=H(448),Ut=H.n(ws);let{noop:$e}=w(),{crisp:it,extend:As,merge:Ss,pick:ge,relativeLength:Ts}=w();class _t extends Ut(){pointAttribs(){return{}}getWhiskerPair(t,e,i,a,r){let o=r.whiskers.strokeWidth(),n=(h,p)=>{let d=Ts(h,2*t)/2,l=it(p,o);return[["M",it(e-d),l],["L",it(e+d),l]]};return[...n(i,r.highPlot),...n(a,r.lowPlot)]}translate(){let t=this.yAxis,e=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(i){e.forEach(function(a){i[a]!==null&&(i[a+"Plot"]=t.translate(i[a],0,1,0,1))}),i.plotHigh=i.highPlot})}drawPoints(){let t,e,i,a,r,o,n,h,p,d,l,u=this.points,c=this.options,m=this.chart,x=m.renderer,f=this.doQuartiles!==!1,y=this.options.whiskerLength;for(let g of u){let A=(h=g.graphic)?"animate":"attr",v=g.shapeArgs,C={},X={},L={},S={},I=g.color||this.color,b=g.options.whiskerLength||y;if(g.plotY!==void 0){let M;p=v.width,l=(d=v.x)+p,t=f?g.q1Plot:g.lowPlot,e=f?g.q3Plot:g.lowPlot,i=g.highPlot,a=g.lowPlot,h||(g.graphic=h=x.g("point").add(this.group),g.stem=x.path().addClass("highcharts-boxplot-stem").add(h),y&&(g.whiskers=x.path().addClass("highcharts-boxplot-whisker").add(h)),f&&(g.box=x.path(n).addClass("highcharts-boxplot-box").add(h)),g.medianShape=x.path(o).addClass("highcharts-boxplot-median").add(h)),m.styledMode||(X.stroke=g.stemColor||c.stemColor||I,X["stroke-width"]=ge(g.stemWidth,c.stemWidth,c.lineWidth),X.dashstyle=g.stemDashStyle||c.stemDashStyle||c.dashStyle,g.stem.attr(X),b&&(L.stroke=g.whiskerColor||c.whiskerColor||I,L["stroke-width"]=ge(g.whiskerWidth,c.whiskerWidth,c.lineWidth),L.dashstyle=g.whiskerDashStyle||c.whiskerDashStyle||c.dashStyle,g.whiskers.attr(L)),f&&(C.fill=g.fillColor||c.fillColor||I,C.stroke=c.lineColor||I,C["stroke-width"]=c.lineWidth||0,C.dashstyle=g.boxDashStyle||c.boxDashStyle||c.dashStyle,g.box.attr(C)),S.stroke=g.medianColor||c.medianColor||I,S["stroke-width"]=ge(g.medianWidth,c.medianWidth,c.lineWidth),S.dashstyle=g.medianDashStyle||c.medianDashStyle||c.dashStyle,g.medianShape.attr(S));let P=it((g.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,g.stem.strokeWidth());if(M=[["M",P,e],["L",P,i],["M",P,t],["L",P,a]],g.stem[A]({d:M}),f){let k=g.box.strokeWidth();t=it(t,k),e=it(e,k),M=[["M",d=it(d,k),e],["L",d,t],["L",l=it(l,k),t],["L",l,e],["L",d,e],["Z"]],g.box[A]({d:M})}if(b){let k=p/2,Y=this.getWhiskerPair(k,P,g.upperWhiskerLength??c.upperWhiskerLength??b,g.lowerWhiskerLength??c.lowerWhiskerLength??b,g);g.whiskers[A]({d:Y})}M=[["M",d,r=it(g.medianPlot,g.medianShape.strokeWidth())],["L",l,r]],g.medianShape[A]({d:M})}}}toYData(t){return[t.low,t.q1,t.median,t.q3,t.high]}}_t.defaultOptions=Ss(Ut().defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25CF</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}),As(_t.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:$e,setStackedPoints:$e}),z().registerSeriesType("boxplot",_t);let Qe=_t,Cs={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};var Ns=H(984),Xs=H.n(Ns);let{noop:Ys}=w(),{arrayMax:Rs,arrayMin:Is,isNumber:Je,merge:Xt,pick:Yt,stableSort:Es}=w(),zs=class{constructor(s,t){this.setState=Ys,this.init(s,t)}init(s,t){this.options=s,this.visible=!0,this.chart=t.chart,this.legend=t}addToLegend(s){s.splice(this.options.legendIndex,0,this)}drawLegendSymbol(s){let t,e=Yt(s.options.itemDistance,20),i=this.legendItem||{},a=this.options,r=a.ranges,o=a.connectorDistance;if(!r||!r.length||!Je(r[0].value)){s.options.bubbleLegend.autoRanges=!0;return}Es(r,function(d,l){return l.value-d.value}),this.ranges=r,this.setOptions(),this.render();let n=this.getMaxLabelSize(),h=this.ranges[0].radius,p=2*h;t=(t=o-h+n.width)>0?t:0,this.maxLabel=n,this.movementX=a.labels.align==="left"?t:0,i.labelWidth=p+t+e,i.labelHeight=p+n.height/2}setOptions(){let s=this.ranges,t=this.options,e=this.chart.series[t.seriesIndex],i=this.legend.baseline,a={zIndex:t.zIndex,"stroke-width":t.borderWidth},r={zIndex:t.zIndex,"stroke-width":t.connectorWidth},o={align:this.legend.options.rtl||t.labels.align==="left"?"right":"left",zIndex:t.zIndex},n=e.options.marker.fillOpacity,h=this.chart.styledMode;s.forEach(function(p,d){h||(a.stroke=Yt(p.borderColor,t.borderColor,e.color),a.fill=p.color||t.color,a.fill||(a.fill=e.color,a["fill-opacity"]=n??1),r.stroke=Yt(p.connectorColor,t.connectorColor,e.color)),s[d].radius=this.getRangeRadius(p.value),s[d]=Xt(s[d],{center:s[0].radius-s[d].radius+i}),h||Xt(!0,s[d],{bubbleAttribs:Xt(a),connectorAttribs:Xt(r),labelAttribs:o})},this)}getRangeRadius(s){let t=this.options,e=this.options.seriesIndex,i=this.chart.series[e],a=t.ranges[0].value,r=t.ranges[t.ranges.length-1].value,o=t.minSize,n=t.maxSize;return i.getRadius.call(this,r,a,o,n,s)}render(){let s=this.legendItem||{},t=this.chart.renderer,e=this.options.zThreshold;for(let i of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),s.symbol=t.g("bubble-legend"),s.label=t.g("bubble-legend-item").css(this.legend.itemStyle||{}),s.symbol.translateX=0,s.symbol.translateY=0,s.symbol.add(s.label),s.label.add(s.group),this.ranges))i.value>=e&&this.renderRange(i);this.hideOverlappingLabels()}renderRange(s){let t=this.ranges[0],e=this.legend,i=this.options,a=i.labels,r=this.chart,o=r.series[i.seriesIndex],n=r.renderer,h=this.symbols,p=h.labels,d=s.center,l=Math.abs(s.radius),u=i.connectorDistance||0,c=a.align,m=e.options.rtl,x=i.borderWidth,f=i.connectorWidth,y=t.radius||0,g=d-l-x/2+f/2,A=(g%1?1:.5)-(f%2?0:.5),v=n.styledMode,C=m||c==="left"?-u:u;c==="center"&&(C=0,i.connectorDistance=0,s.labelAttribs.align="center"),h.bubbleItems.push(n.circle(y,d+A,l).attr(v?{}:s.bubbleAttribs).addClass((v?"highcharts-color-"+o.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(i.className||"")).add(this.legendItem.symbol)),h.connectors.push(n.path(n.crispLine([["M",y,g],["L",y+C,g]],i.connectorWidth)).attr(v?{}:s.connectorAttribs).addClass((v?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(i.connectorClassName||"")).add(this.legendItem.symbol));let X=n.text(this.formatLabel(s)).attr(v?{}:s.labelAttribs).css(v?{}:a.style).addClass("highcharts-bubble-legend-labels "+(i.labels.className||"")).add(this.legendItem.symbol),L={x:y+C+i.labels.x,y:g+i.labels.y+.4*X.getBBox().height};X.attr(L),p.push(X),X.placed=!0,X.alignAttr=L}getMaxLabelSize(){let s,t;return this.symbols.labels.forEach(function(e){t=e.getBBox(!0),s=s?t.width>s.width?t:s:t}),s||{}}formatLabel(s){let t=this.options,e=t.labels.formatter,i=t.labels.format,{numberFormatter:a}=this.chart;return i?Xs().format(i,s,this.chart):e?e.call(s):a(s.value,1)}hideOverlappingLabels(){let s=this.chart,t=this.options.labels.allowOverlap,e=this.symbols;!t&&e&&(s.hideOverlappingLabels(e.labels),e.labels.forEach(function(i,a){i.newOpacity?i.newOpacity!==i.oldOpacity&&e.connectors[a].show():e.connectors[a].hide()}))}getRanges(){let s=this.legend.bubbleLegend,t=s.chart.series,e=s.options.ranges,i,a,r=Number.MAX_VALUE,o=-Number.MAX_VALUE;return t.forEach(function(n){n.isBubble&&!n.ignoreSeries&&(a=n.getColumn("z").filter(Je)).length&&(r=Yt(n.options.zMin,Math.min(r,Math.max(Is(a),n.options.displayNegative===!1?n.options.zThreshold:-Number.MAX_VALUE))),o=Yt(n.options.zMax,Math.max(o,Rs(a))))}),i=r===o?[{value:o}]:[{value:r},{value:(r+o)/2},{value:o,autoRanges:!0}],e.length&&e[0].radius&&i.reverse(),i.forEach(function(n,h){e&&e[h]&&(i[h]=Xt(e[h],n))}),i}predictBubbleSizes(){let s=this.chart,t=s.legend.options,e=t.floating,i=t.layout==="horizontal",a=i?s.legend.lastLineHeight:0,r=s.plotSizeX,o=s.plotSizeY,n=s.series[this.options.seriesIndex],h=n.getPxExtremes(),p=Math.ceil(h.minPxSize),d=Math.ceil(h.maxPxSize),l=Math.min(o,r),u,c=n.options.maxSize;return e||!/%$/.test(c)?u=d:(u=(l+a)*(c=parseFloat(c))/100/(c/100+1),(i&&o-u>=r||!i&&r-u>=o)&&(u=d)),[p,Math.ceil(u)]}updateRanges(s,t){let e=this.legend.options.bubbleLegend;e.minSize=s,e.maxSize=t,e.ranges=this.getRanges()}correctSizes(){let s=this.legend,t=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(t.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,t.maxPxSize),s.render())}},{setOptions:Ds}=w(),{composed:Os}=w(),{addEvent:ti,objectEach:Hs,pushUnique:Bs,wrap:Ws}=w();function Fs(s,t,e){let i,a,r,o=this.legend,n=fe(this)>=0;o&&o.options.enabled&&o.bubbleLegend&&o.options.bubbleLegend.autoRanges&&n?(i=o.bubbleLegend.options,a=o.bubbleLegend.predictBubbleSizes(),o.bubbleLegend.updateRanges(a[0],a[1]),i.placed||(o.group.placed=!1,o.allItems.forEach(h=>{(r=h.legendItem||{}).group&&(r.group.translateY=void 0)})),o.render(),i.placed||(this.getMargins(),this.axes.forEach(h=>{h.setScale(),h.updateNames(),Hs(h.ticks,function(p){p.isNew=!0,p.isNewLabel=!0})}),this.getMargins()),i.placed=!0,s.call(this,t,e),o.bubbleLegend.correctSizes(),ii(o,ei(o))):(s.call(this,t,e),o&&o.options.enabled&&o.bubbleLegend&&(o.render(),ii(o,ei(o))))}function fe(s){let t=s.series,e=0;for(;e<t.length;){if(t[e]&&t[e].isBubble&&t[e].visible&&t[e].dataTable.rowCount)return e;e++}return-1}function ei(s){let t=s.allItems,e=[],i=t.length,a,r,o,n=0,h=0;for(n=0;n<i;n++)if(r=t[n].legendItem||{},o=(t[n+1]||{}).legendItem||{},r.labelHeight&&(t[n].itemHeight=r.labelHeight),t[n]===t[i-1]||r.y!==o.y){for(e.push({height:0}),a=e[e.length-1];h<=n;h++)t[h].itemHeight>a.height&&(a.height=t[h].itemHeight);a.step=n}return e}function Gs(s){let t=this.bubbleLegend,e=this.options,i=e.bubbleLegend,a=fe(this.chart);t&&t.ranges&&t.ranges.length&&(i.ranges.length&&(i.autoRanges=!!i.ranges[0].autoRanges),this.destroyItem(t)),a>=0&&e.enabled&&i.enabled&&(i.seriesIndex=a,this.bubbleLegend=new zs(i,this),this.bubbleLegend.addToLegend(s.allItems))}function qs(s){let t;if(s.defaultPrevented)return!1;let e=s.legendItem,i=this.chart,a=e.visible;this&&this.bubbleLegend&&(e.visible=!a,e.ignoreSeries=a,t=fe(i)>=0,this.bubbleLegend.visible!==t&&(this.update({bubbleLegend:{enabled:t}}),this.bubbleLegend.visible=t),e.visible=a)}function ii(s,t){let e=s.allItems,i=s.options.rtl,a,r,o,n,h=0;e.forEach((p,d)=>{(n=p.legendItem||{}).group&&(a=n.group.translateX||0,r=n.y||0,((o=p.movementX)||i&&p.ranges)&&(o=i?a-p.options.maxSize/2:a+o,n.group.attr({translateX:o})),d>t[h].step&&h++,n.group.attr({translateY:Math.round(r+t[h].height/2)}),n.y=r+t[h].height/2)})}let Vs=function(s,t){Bs(Os,"Series.BubbleLegend")&&(Ds({legend:{bubbleLegend:Cs}}),Ws(s.prototype,"drawChartBox",Fs),ti(t,"afterGetAllItems",Gs),ti(t,"itemClick",qs))};var Us=H(260),mt=H.n(Us);let{seriesTypes:{scatter:{prototype:{pointClass:_s}}}}=z(),{extend:Ks}=w();class si extends _s{haloPath(t){let e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){let i=this.pos()||[0,0],{xAxis:a,yAxis:r,chart:o}=this.series,n=2*e;return o.renderer.symbols.circle((a?.len||0)-i[1]-e,(r?.len||0)-i[0]-e,n,n)}return mt().prototype.haloPath.call(this,e)}}Ks(si.prototype,{ttBelow:!1});let{composed:js,noop:me}=w(),{series:Zs,seriesTypes:{column:{prototype:$s},scatter:ai}}=z(),{addEvent:Kt,arrayMax:Qs,arrayMin:Js,clamp:ta,extend:be,isNumber:bt,merge:ea,pick:yt,pushUnique:ia}=w();function sa(){let s=this.len,{coll:t,isXAxis:e,min:i}=this,a=(this.max||0)-(i||0),r=0,o=s,n=s/a,h;(t==="xAxis"||t==="yAxis")&&(this.series.forEach(p=>{if(p.bubblePadding&&p.reserveSpace()){this.allowZoomOutside=!0,h=!0;let d=p.getColumn(e?"x":"y");if(e&&((p.onPoint||p).getRadii(0,0,p),p.onPoint&&(p.radii=p.onPoint.radii)),a>0){let l=d.length;for(;l--;)if(bt(d[l])&&this.dataMin<=d[l]&&d[l]<=this.max){let u=p.radii&&p.radii[l]||0;r=Math.min((d[l]-i)*n-u,r),o=Math.max((d[l]-i)*n+u,o)}}}}),h&&a>0&&!this.logarithmic&&(o-=s,n*=(s+Math.max(0,r)-Math.min(o,s))/s,[["min","userMin",r],["max","userMax",o]].forEach(p=>{yt(this.options[p[0]],this[p[1]])===void 0&&(this[p[0]]+=p[2]/n)})))}function aa(){let{ticks:s,tickPositions:t,dataMin:e=0,dataMax:i=0,categories:a}=this,r=this.options.type;if((a?.length||r==="category")&&this.series.find(o=>o.bubblePadding)){let o=t.length;for(;o--;){let n=s[t[o]],h=n.pos||0;(h>i||h<e)&&n.label?.hide()}}}class wt extends ai{static compose(t,e,i){Vs(e,i),ia(js,"Series.Bubble")&&(Kt(t,"foundExtremes",sa),Kt(t,"afterRender",aa))}animate(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){let{graphic:i,plotX:a=0,plotY:r=0}=e;i&&i.width&&(this.hasRendered||i.attr({x:a,y:r,width:1,height:1}),i.animate(this.markerAttribs(e),this.options.animation))},this)}getRadii(){let t=this.getColumn("z"),e=this.getColumn("y"),i=[],a,r,o,n=this.chart.bubbleZExtremes,{minPxSize:h,maxPxSize:p}=this.getPxExtremes();if(!n){let d,l=Number.MAX_VALUE,u=-Number.MAX_VALUE;this.chart.series.forEach(c=>{if(c.bubblePadding&&c.reserveSpace()){let m=(c.onPoint||c).getZExtremes();m&&(l=Math.min(yt(l,m.zMin),m.zMin),u=Math.max(yt(u,m.zMax),m.zMax),d=!0)}}),d?(n={zMin:l,zMax:u},this.chart.bubbleZExtremes=n):n={zMin:0,zMax:0}}for(r=0,a=t.length;r<a;r++)o=t[r],i.push(this.getRadius(n.zMin,n.zMax,h,p,o,e&&e[r]));this.radii=i}getRadius(t,e,i,a,r,o){let n=this.options,h=n.sizeBy!=="width",p=n.zThreshold,d=e-t,l=.5;if(o===null||r===null)return null;if(bt(r)){if(n.sizeByAbsoluteValue&&(r=Math.abs(r-p),e=d=Math.max(e-p,Math.abs(t-p)),t=0),r<t)return i/2-1;d>0&&(l=(r-t)/d)}return h&&l>=0&&(l=Math.sqrt(l)),Math.ceil(i+l*(a-i))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(t,e){let i=super.markerAttribs(t,e),{height:a=0,width:r=0}=i;return this.chart.inverted?be(i,{x:(t.plotX||0)-r/2,y:(t.plotY||0)-a/2}):i}pointAttribs(t,e){let i=this.options.marker,a=i?.fillOpacity,r=Zs.prototype.pointAttribs.call(this,t,e);return r["fill-opacity"]=a??1,r}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:t,options:e,radii:i}=this,{minPxSize:a}=this.getPxExtremes(),r=t.length;for(;r--;){let o=t[r],n=i?i[r]:0;this.zoneAxis==="z"&&(o.negative=(o.z||0)<(e.zThreshold||0)),bt(n)&&n>=a/2?(o.marker=be(o.marker,{radius:n,width:2*n,height:2*n}),o.dlBox={x:o.plotX-n,y:o.plotY-n,width:2*n,height:2*n}):(o.shapeArgs=o.plotY=o.dlBox=void 0,o.isInside=!1)}}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=r=>{let o;return typeof r=="string"&&(o=/%$/.test(r),r=parseInt(r,10)),o?t*r/100:r},i=e(yt(this.options.minSize,8)),a=Math.max(e(yt(this.options.maxSize,"20%")),i);return{minPxSize:i,maxPxSize:a}}getZExtremes(){let t=this.options,e=this.getColumn("z").filter(bt);if(e.length){let i=yt(t.zMin,ta(Js(e),t.displayNegative===!1?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),a=yt(t.zMax,Qs(e));if(bt(i)&&bt(a))return{zMin:i,zMax:a}}}searchKDTree(t,e,i,a=me,r=me){return a=(o,n,h)=>{let p=o[h]||0,d=n[h]||0,l,u=!1;return p===d?l=o.index>n.index?o:n:p<0&&d<0?(l=p-(o.marker?.radius||0)>=d-(n.marker?.radius||0)?o:n,u=!0):l=p<d?o:n,[l,u]},r=(o,n,h)=>!h&&o>n||o<n,super.searchKDTree(t,e,i,a,r)}}wt.defaultOptions=ea(ai.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:s}=this.series.chart,{z:t}=this.point;return bt(t)?s(t,-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"}),be(wt.prototype,{alignDataLabel:$s.alignDataLabel,applyZones:me,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:si,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),Kt(wt,"updatedData",s=>{delete s.target.chart.bubbleZExtremes}),Kt(wt,"remove",s=>{delete s.target.chart.bubbleZExtremes}),z().registerSeriesType("bubble",wt);let{seriesTypes:{column:{prototype:{pointClass:{prototype:oa}}},arearange:{prototype:{pointClass:ra}}}}=z(),{extend:na,isNumber:la}=w();class oi extends ra{isValid(){return la(this.low)}}na(oi.prototype,{setState:oa.setState});let{noop:ri}=w(),{seriesTypes:{arearange:ye,column:ha,column:{prototype:tt}}}=z(),{addEvent:pa,clamp:ni,extend:da,isNumber:li,merge:xe,pick:ca}=w();class Rt extends ye{setOptions(){return xe(!0,arguments[0],{stacking:void 0}),ye.prototype.setOptions.apply(this,arguments)}translate(){return tt.translate.apply(this)}pointAttribs(){return tt.pointAttribs.apply(this,arguments)}translate3dPoints(){return tt.translate3dPoints.apply(this,arguments)}translate3dShapes(){return tt.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let t,e,i,a,r=this.yAxis,o=this.xAxis,n=o.startAngleRad,h=this.chart,p=this.xAxis.isRadial,d=Math.max(h.chartWidth,h.chartHeight)+999;this.points.forEach(l=>{let u=l.shapeArgs||{},c=this.options.minPointLength,m=l.plotY,x=r.translate(l.high,0,1,0,1);if(li(x)&&li(m))if(l.plotHigh=ni(x,-d,d),l.plotLow=ni(m,-d,d),a=l.plotHigh,Math.abs(t=ca(l.rectPlotY,l.plotY)-l.plotHigh)<c?(e=c-t,t+=e,a-=e/2):t<0&&(t*=-1,a-=t),p&&this.polar)i=l.barX+n,l.shapeType="arc",l.shapeArgs=this.polar.arc(a+t,a,i,i+l.pointWidth);else{u.height=t,u.y=a;let{x:f=0,width:y=0}=u;l.shapeArgs=xe(l.shapeArgs,this.crispCol(f,a,y,t)),l.tooltipPos=h.inverted?[r.len+r.pos-h.plotLeft-a-t/2,o.len+o.pos-h.plotTop-f-y/2,t]:[o.left-h.plotLeft+f+y/2,r.pos-h.plotTop+a+t/2,t]}})}}Rt.defaultOptions=xe(ha.defaultOptions,ye.defaultOptions,{borderRadius:{where:"all"},pointRange:null,legendSymbol:"rectangle",marker:null,states:{hover:{halo:!1}}}),pa(Rt,"afterColumnTranslate",function(){Rt.prototype.afterColumnTranslate.apply(this)},{order:5}),da(Rt.prototype,{directTouch:!0,pointClass:oi,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:tt.adjustForMissingColumns,animate:tt.animate,crispCol:tt.crispCol,drawGraph:ri,drawPoints:tt.drawPoints,getSymbol:ri,drawTracker:tt.drawTracker,getColumnMetrics:tt.getColumnMetrics}),z().registerSeriesType("columnrange",Rt);let{column:hi}=z().seriesTypes,{clamp:ua,merge:ga,pick:Pe}=w();class pi extends hi{translate(){let t=this.chart,e=this.options,i=this.dense=this.closestPointRange*this.xAxis.transA<2,a=this.borderWidth=Pe(e.borderWidth,+!i),r=this.yAxis,o=e.threshold,n=Pe(e.minPointLength,5),h=this.getColumnMetrics(),p=h.width,d=this.pointXOffset=h.offset,l=this.translatedThreshold=r.getThreshold(o),u=this.barW=Math.max(p,1+2*a);for(let c of(t.inverted&&(l-=.5),e.pointPadding&&(u=Math.ceil(u)),super.translate(),this.points)){let m=Pe(c.yBottom,l),x=999+Math.abs(m),f=ua(c.plotY,-x,r.len+x),y=u/2,g=Math.min(f,m),A=Math.max(f,m)-g,v=c.plotX+d,C,X,L,S,I,b,M,P,k,Y,T;e.centerInCategory&&(v=this.adjustForMissingColumns(v,p,c,h)),c.barX=v,c.pointWidth=p,c.tooltipPos=t.inverted?[r.len+r.pos-t.plotLeft-f,this.xAxis.len-v-y,A]:[v+y,f+r.pos-t.plotTop,A],C=o+(c.total||c.y),e.stacking==="percent"&&(C=o+(c.y<0)?-100:100);let N=r.toPixels(C,!0);L=(X=t.plotHeight-N-(t.plotHeight-l))?y*(g-N)/X:0,S=X?y*(g+A-N)/X:0,b=v-L+y,M=v+L+y,P=v+S+y,k=v-S+y,Y=g-n,T=g+A,c.y<0&&(Y=g,T=g+A+n),t.inverted&&(I=r.width-g,X=N-(r.width-l),L=y*(N-I)/X,S=y*(N-(I-A))/X,M=(b=v+y+L)-2*L,P=v-S+y,k=v+S+y,Y=g,T=g+A-n,c.y<0&&(T=g+A+n)),c.shapeType="path",c.shapeArgs={x:b,y:Y,width:M-b,height:A,d:[["M",b,Y],["L",M,Y],["L",P,T],["L",k,T],["Z"]]}}}}pi.defaultOptions=ga(hi.defaultOptions,{}),z().registerSeriesType("columnpyramid",pi);let{arearange:di}=z().seriesTypes,{addEvent:fa,merge:ma,extend:ba}=w();class jt extends Qe{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||Ut().prototype.getColumnMetrics.call(this)}drawDataLabels(){let t=this.pointValKey;if(di)for(let e of(di.prototype.drawDataLabels.call(this),this.points))e.y=e[t]}toYData(t){return[t.low,t.high]}}jt.defaultOptions=ma(Qe.defaultOptions,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}),fa(jt,"afterTranslate",function(){for(let s of this.points)s.plotLow=s.plotY},{order:0}),ba(jt.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),z().registerSeriesType("errorbar",jt);let{series:{prototype:{pointClass:ya}}}=z(),{noop:xa}=w(),{series:Zt,seriesTypes:{column:Pa}}=z(),{clamp:Ma,isNumber:ci,extend:va,merge:Me,pick:La,pInt:ve,defined:ka}=w();class Le extends Zt{translate(){let t=this.yAxis,e=this.options,i=t.center;this.generatePoints(),this.points.forEach(a=>{let r=Me(e.dial,a.dial),o=ve(r.radius)*i[2]/200,n=ve(r.baseLength)*o/100,h=ve(r.rearLength)*o/100,p=r.baseWidth,d=r.topWidth,l=e.overshoot,u=t.startAngleRad+t.translate(a.y,void 0,void 0,void 0,!0);(ci(l)||e.wrap===!1)&&(l=ci(l)?l/180*Math.PI:0,u=Ma(u,t.startAngleRad-l,t.endAngleRad+l)),u=180*u/Math.PI,a.shapeType="path",a.shapeArgs={d:r.path||[["M",-h,-p/2],["L",n,-p/2],["L",o,-d/2],["L",o,d/2],["L",n,p/2],["L",-h,p/2],["Z"]],translateX:i[0],translateY:i[1],rotation:u},a.plotX=i[0],a.plotY=i[1],ka(a.y)&&t.max-t.min&&(a.percentage=(a.y-t.min)/(t.max-t.min)*100)})}drawPoints(){let t=this,e=t.chart,i=t.yAxis.center,a=t.pivot,r=t.options,o=r.pivot,n=e.renderer;t.points.forEach(h=>{let p=h.graphic,d=h.shapeArgs,l=d.d,u=Me(r.dial,h.dial);p?(p.animate(d),d.d=l):h.graphic=n[h.shapeType](d).addClass("highcharts-dial").add(t.group),e.styledMode||h.graphic[p?"animate":"attr"]({stroke:u.borderColor,"stroke-width":u.borderWidth,fill:u.backgroundColor})}),a?a.animate({translateX:i[0],translateY:i[1]}):o&&(t.pivot=n.circle(0,0,o.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(i[0],i[1]).add(t.group),e.styledMode||t.pivot.attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth}))}animate(t){let e=this;t||e.points.forEach(i=>{let a=i.graphic;a&&(a.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),a.animate({rotation:i.shapeArgs.rotation},e.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),Zt.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(t,e){Zt.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),La(e,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}Le.defaultOptions=Me(Zt.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}),va(Le.prototype,{angular:!0,directTouch:!0,drawGraph:xa,drawTracker:Pa.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:class extends ya{setState(s){this.state=s}},trackerGroups:["group","dataLabelsGroup"]}),z().registerSeriesType("gauge",Le);var wa=H(620),Aa=H.n(wa);let{composed:Sa}=w(),{addEvent:It,pushUnique:Ta}=w();function Ca(){let s,t,e,i,a=this;a.container&&(s=It(a.container,"mousedown",r=>{t&&t(),e&&e(),(i=a.hoverPoint)&&i.series&&i.series.hasDraggableNodes&&i.series.options.draggable&&(i.series.onMouseDown(i,r),t=It(a.container,"mousemove",o=>i&&i.series&&i.series.onMouseMove(i,o)),e=It(a.container.ownerDocument,"mouseup",o=>(t(),e(),i&&i.series&&i.series.onMouseUp(i,o))))})),It(a,"destroy",function(){s()})}let Et={compose:function(s){Ta(Sa,"DragNodes")&&It(s,"load",Ca)},onMouseDown:function(s,t){let{panKey:e}=this.chart.options.chart;if(e&&t[`${e}Key`])return;let i=this.chart.pointer?.normalize(t)||t;s.fixedPosition={chartX:i.chartX,chartY:i.chartY,plotX:s.plotX,plotY:s.plotY},s.inDragMode=!0},onMouseMove:function(s,t){if(s.fixedPosition&&s.inDragMode){let e,i,a=this.chart,r=a.pointer?.normalize(t)||t,o=s.fixedPosition.chartX-r.chartX,n=s.fixedPosition.chartY-r.chartY,h=a.graphLayoutsLookup;(Math.abs(o)>5||Math.abs(n)>5)&&(e=s.fixedPosition.plotX-o,i=s.fixedPosition.plotY-n,a.isInsidePlot(e,i)&&(s.plotX=e,s.plotY=i,s.hasDragged=!0,this.redrawHalo(s),h.forEach(p=>{p.restartSimulation()})))}},onMouseUp:function(s){s.fixedPosition&&(s.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),s.inDragMode=s.hasDragged=!1,this.options.fixedDraggable||delete s.fixedPosition)},redrawHalo:function(s){s&&this.halo&&this.halo.attr({d:s.haloPath(this.options.states.hover.halo.size)})}},{setAnimation:Na}=w(),{composed:Xa}=w(),{addEvent:$t,pushUnique:Ya}=w();function Ra(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(s=>{s.updateSimulation()}),this.redraw())}function Ia(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(s=>{s.updateSimulation(!1)}),this.redraw())}function Ea(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(s=>{s.stop()})}function za(){let s,t=!1,e=i=>{i.maxIterations--&&isFinite(i.temperature)&&!i.isStable()&&!i.enableSimulation&&(i.beforeStep&&i.beforeStep(),i.step(),s=!1,t=!0)};if(this.graphLayoutsLookup&&!this.pointer?.hasDragged){for(Na(!1,this),this.graphLayoutsLookup.forEach(i=>i.start());!s;)s=!0,this.graphLayoutsLookup.forEach(e);t&&this.series.forEach(i=>{i&&i.layout&&i.render()})}}let Da=function(s){Ya(Xa,"GraphLayout")&&($t(s,"afterPrint",Ra),$t(s,"beforePrint",Ia),$t(s,"predraw",Ea),$t(s,"render",za))},Qt={},zt={};var Oa=H(960),Ha=H.n(Oa);let{seriesTypes:{bubble:{prototype:{pointClass:Ba}}}}=z(),Wa=class extends Ba{destroy(){return this.series?.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),mt().prototype.destroy.apply(this,arguments)}firePointEvent(){let s=this.series.options;if(this.isParentNode&&s.parentNode){let t=s.allowPointSelect;s.allowPointSelect=s.parentNode.allowPointSelect,mt().prototype.firePointEvent.apply(this,arguments),s.allowPointSelect=t}else mt().prototype.firePointEvent.apply(this,arguments)}select(){let s=this.series.chart;this.isParentNode?(s.getSelectedPoints=s.getSelectedParentNodes,mt().prototype.select.apply(this,arguments),s.getSelectedPoints=Ha().prototype.getSelectedPoints):mt().prototype.select.apply(this,arguments)}setState(s,t){this?.graphic?.parentGroup?.element&&super.setState(s,t)}},{isNumber:Fa}=w(),ui={attractive:function(s,t,e){let i=s.getMass(),a=-e.x*t*this.diffTemperature,r=-e.y*t*this.diffTemperature;s.fromNode.fixedPosition||(s.fromNode.plotX-=a*i.fromNode/s.fromNode.degree,s.fromNode.plotY-=r*i.fromNode/s.fromNode.degree),s.toNode.fixedPosition||(s.toNode.plotX+=a*i.toNode/s.toNode.degree,s.toNode.plotY+=r*i.toNode/s.toNode.degree)},attractiveForceFunction:function(s,t){return(t-s)/s},barycenter:function(){let s=this.options.gravitationalConstant||0,t=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*s,e=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*s;this.nodes.forEach(function(i){i.fixedPosition||(i.plotX-=t/i.mass/i.degree,i.plotY-=e/i.mass/i.degree)})},getK:function(s){return Math.pow(s.box.width*s.box.height/s.nodes.length,.5)},integrate:function(s,t){let e=-s.options.friction,i=s.options.maxSpeed,a=t.prevX,r=t.prevY,o=(t.plotX+t.dispX-a)*e,n=(t.plotY+t.dispY-r)*e,h=Math.abs,p=h(o)/(o||1),d=h(n)/(n||1),l=p*Math.min(i,Math.abs(o)),u=d*Math.min(i,Math.abs(n));t.prevX=t.plotX+t.dispX,t.prevY=t.plotY+t.dispY,t.plotX+=l,t.plotY+=u,t.temperature=s.vectorLength({x:l,y:u})},repulsive:function(s,t,e){let i=t*this.diffTemperature/s.mass/s.degree;s.fixedPosition||(s.plotX+=e.x*i,s.plotY+=e.y*i)},repulsiveForceFunction:function(s,t){return(t-s)/s*(t>s)}},{noop:Ga}=w(),qa={barycenter:function(){let s,t,e=this.options.gravitationalConstant||0,i=this.box,a=this.nodes,r=Math.sqrt(a.length);for(let o of a)if(!o.fixedPosition){let n=o.mass*r,h=o.plotX||0,p=o.plotY||0,d=o.series,l=d.parentNode;this.resolveSplitSeries(o)&&l&&!o.isParentNode?(s=l.plotX||0,t=l.plotY||0):(s=i.width/2,t=i.height/2),o.plotX=h-(h-s)*e/n,o.plotY=p-(p-t)*e/n,d.chart.hoverPoint===o&&d.redrawHalo&&d.halo&&d.redrawHalo(o)}},getK:Ga,integrate:ui.integrate,repulsive:function(s,t,e,i){let a=t*this.diffTemperature/s.mass/s.degree,r=e.x*a,o=e.y*a;s.fixedPosition||(s.plotX+=r,s.plotY+=o),i.fixedPosition||(i.plotX-=r,i.plotY-=o)},repulsiveForceFunction:function(s,t,e,i){return Math.min(s,(e.marker.radius+i.marker.radius)/2)}},Va={attractive:function(s,t,e,i){let a=s.getMass(),r=e.x/i*t,o=e.y/i*t;s.fromNode.fixedPosition||(s.fromNode.dispX-=r*a.fromNode/s.fromNode.degree,s.fromNode.dispY-=o*a.fromNode/s.fromNode.degree),s.toNode.fixedPosition||(s.toNode.dispX+=r*a.toNode/s.toNode.degree,s.toNode.dispY+=o*a.toNode/s.toNode.degree)},attractiveForceFunction:function(s,t){return s*s/t},barycenter:function(){let s=this.options.gravitationalConstant,t=this.barycenter.xFactor,e=this.barycenter.yFactor;this.nodes.forEach(function(i){if(!i.fixedPosition){let a=i.getDegree(),r=a*(1+a/2);i.dispX+=(t-i.plotX)*s*r/i.degree,i.dispY+=(e-i.plotY)*s*r/i.degree}})},getK:function(s){return Math.pow(s.box.width*s.box.height/s.nodes.length,.3)},integrate:function(s,t){t.dispX+=t.dispX*s.options.friction,t.dispY+=t.dispY*s.options.friction;let e=t.temperature=s.vectorLength({x:t.dispX,y:t.dispY});e!==0&&(t.plotX+=t.dispX/e*Math.min(Math.abs(t.dispX),s.temperature),t.plotY+=t.dispY/e*Math.min(Math.abs(t.dispY),s.temperature))},repulsive:function(s,t,e,i){s.dispX+=e.x/i*t/s.degree,s.dispY+=e.y/i*t/s.degree},repulsiveForceFunction:function(s,t){return t*t/s}};class xt{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 xt({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new xt({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new xt({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new xt({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(),this.body!==!0&&(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 xt({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 a of this.nodes)a.isEmpty||(t+=a.mass,e+=a.plotX*a.mass,i+=a.plotY*a.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 Ua=class{constructor(s,t,e,i){this.box={left:s,top:t,width:e,height:i},this.maxDepth=25,this.root=new xt(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}calculateMassAndCenter(){this.visitNodeRecursive(null,null,function(s){s.updateMassAndCenter()})}insertNodes(s){for(let t of s)this.root.insert(t,this.maxDepth)}visitNodeRecursive(s,t,e){let i;if(s||(s=this.root),s===this.root&&t&&(i=t(s)),i!==!1){for(let a of s.nodes){if(a.isInternal){if(t&&(i=t(a)),i===!1)continue;this.visitNodeRecursive(a,t,e)}else a.body&&t&&t(a.body);e&&e(a)}s===this.root&&e&&e(s)}}},{win:ke}=w(),{clamp:gi,defined:fi,isFunction:_a,fireEvent:Ka,pick:nt}=w();class we{constructor(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}static compose(t){Da(t),Qt.euler=Va,Qt.verlet=ui,zt["reingold-fruchterman"]=we}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=Qt[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=nt(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=nt(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation}updateSimulation(t){this.enableSimulation=nt(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(i){i.finishedAnimating=!0,i.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()}step(){let t=this.series;for(let e of(this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter()),this.forces||[]))this[e+"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&&ke.cancelAnimationFrame(this.simulation),this.simulation=ke.requestAnimationFrame(()=>this.step())):(this.simulation=!1,this.series.forEach(e=>{Ka(e,"afterSimulation")}))}}stop(){this.simulation&&ke.cancelAnimationFrame(this.simulation)}setArea(t,e,i,a){this.box={left:t,top:e,width:i,height:a}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(t,e){for(let i of t)e.indexOf(i)===-1&&e.push(i)}removeElementFromCollection(t,e){let i=e.indexOf(t);i!==-1&&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=nt(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 Ua(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let t=this.options.initialPositions;if(_a(t))for(let e of(t.call(this),this.nodes))fi(e.prevX)||(e.prevX=e.plotX),fi(e.prevY)||(e.prevY=e.plotY),e.dispX=0,e.dispY=0;else t==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let t,e=this.box,i=this.nodes,a=2*Math.PI/(i.length+1),r=i.filter(function(d){return d.linksTo.length===0}),o={},n=this.options.initialPositionRadius,h=d=>{for(let l of d.linksFrom||[])o[l.toNode.id]||(o[l.toNode.id]=!0,p.push(l.toNode),h(l.toNode))},p=[];for(let d of r)p.push(d),h(d);if(p.length)for(let d of i)p.indexOf(d)===-1&&p.push(d);else p=i;for(let d=0,l=p.length;d<l;++d)(t=p[d]).plotX=t.prevX=nt(t.plotX,e.width/2+n*Math.cos(d*a)),t.plotY=t.prevY=nt(t.plotY,e.height/2+n*Math.sin(d*a)),t.dispX=0,t.dispY=0}setRandomPositions(){let t,e=this.box,i=this.nodes,a=i.length+1,r=o=>{let n=o*o/Math.PI;return n-Math.floor(n)};for(let o=0,n=i.length;o<n;++o)(t=i[o]).plotX=t.prevX=nt(t.plotX,e.width*r(o)),t.plotY=t.prevY=nt(t.plotY,e.height*r(a+o)),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 a of this.nodes)e+=a.plotX*a.mass,i+=a.plotY*a.mass,t+=a.mass;return this.barycenter={x:e,y:i,xFactor:e/t,yFactor:i/t},this.barycenter}barnesHutApproximation(t,e){let i,a,r=this.getDistXY(t,e),o=this.vectorLength(r);return t!==e&&o!==0&&(e.isInternal?e.boxSize/o<this.options.theta&&o!==0?(a=this.repulsiveForce(o,this.k),this.force("repulsive",t,a*e.mass,r,o),i=!1):i=!0:(a=this.repulsiveForce(o,this.k),this.force("repulsive",t,a*e.mass,r,o))),i}repulsiveForces(){if(this.approximation==="barnes-hut")for(let t of this.nodes)this.quadTree.visitNodeRecursive(null,e=>this.barnesHutApproximation(t,e));else{let t,e,i;for(let a of this.nodes)for(let r of this.nodes)a===r||a.fixedPosition||(i=this.getDistXY(a,r),(e=this.vectorLength(i))!==0&&(t=this.repulsiveForce(e,this.k),this.force("repulsive",a,t*r.mass,i,e)))}}attractiveForces(){let t,e,i;for(let a of this.links)a.fromNode&&a.toNode&&(t=this.getDistXY(a.fromNode,a.toNode),(e=this.vectorLength(t))!==0&&(i=this.attractiveForce(e,this.k),this.force("attractive",a,i,t,e)))}applyLimits(){for(let t of this.nodes)t.fixedPosition||(this.integration.integrate(this,t),this.applyLimitBox(t,this.box),t.dispX=0,t.dispY=0)}applyLimitBox(t,e){let i=t.radius;t.plotX=gi(t.plotX,e.left+i,e.width-i),t.plotY=gi(t.plotY,e.top+i,e.height-i)}coolDown(t,e,i){return t-e*i}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let t=0;for(let e of this.nodes)t+=e.temperature;return t}vectorLength(t){return Math.sqrt(t.x*t.x+t.y*t.y)}getDistR(t,e){let i=this.getDistXY(t,e);return this.vectorLength(i)}getDistXY(t,e){let i=t.plotX-e.plotX,a=t.plotY-e.plotY;return{x:i,y:a,absX:Math.abs(i),absY:Math.abs(a)}}}let mi=we,{addEvent:ja,defined:Za,pick:bi}=w();function $a(){let s=this.series,t=[];return s.forEach(e=>{e.parentNode&&e.parentNode.selected&&t.push(e.parentNode)}),t}function Qa(){this.allDataPoints&&delete this.allDataPoints}class Jt extends mi{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(t){mi.compose(t),Qt.packedbubble=qa,zt.packedbubble=Jt;let e=t.prototype;e.getSelectedParentNodes||(ja(t,"beforeRedraw",Qa),e.getSelectedParentNodes=$a),e.allParentNodes||(e.allParentNodes=[])}beforeStep(){this.options.marker&&this.series.forEach(t=>{t&&t.calculateParentRadius()})}isStable(){let t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&t<1e-5||this.temperature<=0}setCircularPositions(){let t=this.box,e=[...this.nodes,...this?.chart?.allParentNodes||[]],i=2*Math.PI/(e.length+1),a=this.options.initialPositionRadius,r,o,n=0;for(let h of e)this.resolveSplitSeries(h)&&!h.isParentNode?(r=h.series.parentNode.plotX,o=h.series.parentNode.plotY):(r=t.width/2,o=t.height/2),h.plotX=h.prevX=bi(h.plotX,r+a*Math.cos(h.index||n*i)),h.plotY=h.prevY=bi(h.plotY,o+a*Math.sin(h.index||n*i)),h.dispX=0,h.dispY=0,n++}repulsiveForces(){let{options:t,k:e}=this,{bubblePadding:i=0,seriesInteraction:a}=t,r=[...this.nodes,...this?.chart?.allParentNodes||[]];for(let o of r){let n=o.series,h=o.fixedPosition,p=(o.marker?.radius||0)+i;for(let d of(o.degree=o.mass,o.neighbours=0,r)){let l=d.series;if(o!==d&&!h&&(a||n===l)&&!(n===l&&(d.isParentNode||o.isParentNode))){let u,c=this.getDistXY(o,d),m=this.vectorLength(c)-(p+(d.marker?.radius||0));m<0&&(o.degree+=.01,u=this.repulsiveForce(-m/Math.sqrt(++o.neighbours),e,o,d)*d.mass),this.force("repulsive",o,u||0,c,d,m)}}}}resolveSplitSeries(t){let e=t.series?.options?.layoutAlgorithm?.splitSeries;return!Za(e)&&t.series.chart?.options?.plotOptions?.packedbubble?.layoutAlgorithm?.splitSeries||e||!1}applyLimitBox(t,e){let i,a;this.resolveSplitSeries(t)&&!t.isParentNode&&this.options.parentNodeLimit&&(i=this.getDistXY(t,t.series.parentNode),(a=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(i))<0&&a>-2*t.marker.radius&&(t.plotX-=.01*i.x,t.plotY-=.01*i.y)),super.applyLimitBox(t,e)}}zt.packedbubble=Jt;let{syncTimeout:Ja}=w(),{animObject:to}=w();var eo=H(28),io=H.n(eo);let{deg2rad:so}=w(),{addEvent:Ae,merge:ao,uniqueKey:oo,defined:yi,extend:ro}=w();function no(s,t){t=ao(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},t);let e=this.renderer.url,i=this.text||this,a=i.textPath,{attributes:r,enabled:o}=t;if(s=s||a&&a.path,a&&a.undo(),s&&o){let n=Ae(i,"afterModifyTree",h=>{if(s&&o){let p=s.attr("id");p||s.attr("id",p=oo());let d={x:0,y:0};yi(r.dx)&&(d.dx=r.dx,delete r.dx),yi(r.dy)&&(d.dy=r.dy,delete r.dy),i.attr(d),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let l=h.nodes.slice(0);h.nodes.length=0,h.nodes[0]={tagName:"textPath",attributes:ro(r,{"text-anchor":r.textAnchor,href:`${e}#${p}`}),children:l}}});i.textPath={path:s,undo:n}}else i.attr({dx:0,dy:0}),delete i.textPath;return this.added&&(i.textCache="",this.renderer.buildText(i)),this}function lo(s){let t=s.bBox,e=this.element?.querySelector("textPath");if(e){let i=[],{b:a,h:r}=this.renderer.fontMetrics(this.element),o=r-a,n=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),h=e.innerHTML.replace(n,"").split(/<tspan class="highcharts-br"[^>]*>/),p=h.length,d=(l,u)=>{let{x:c,y:m}=u,x=(e.getRotationOfChar(l)-90)*so,f=Math.cos(x),y=Math.sin(x);return[[c-o*f,m-o*y],[c+a*f,m+a*y]]};for(let l=0,u=0;u<p;u++){let c=h[u].length;for(let m=0;m<c;m+=5)try{let x=l+m+u,[f,y]=d(x,e.getStartPositionOfChar(x));m===0?(i.push(y),i.push(f)):(u===0&&i.unshift(y),u===p-1&&i.push(f))}catch{break}l+=c-1;try{let m=l+u,x=e.getEndPositionOfChar(m),[f,y]=d(m,x);i.unshift(y),i.unshift(f)}catch{break}}i.length&&i.push(i[0].slice()),t.polygon=i}return t}function ho(s){let t=s.labelOptions,e=s.point,i=t[e.formatPrefix+"TextPath"]||t.textPath;i&&!t.useHTML&&(this.setTextPath(e.getDataLabelPath?.(this)||e.graphic,i),e.dataLabelPath&&!i.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy()))}let{parse:xi}=Aa(),{noop:Pi}=w(),{series:{prototype:lt},seriesTypes:{bubble:Se}}=z(),{initDataLabels:po,initDataLabelsDefer:co}={initDataLabels:function(){let s=this.options.dataLabels;if(!this.dataLabelsGroup){let t=this.initDataLabelsGroup(0,s);return!this.chart.styledMode&&s?.style&&t.css(s.style),t.attr({opacity:0}),this.visible&&(this.options.animation&&s?.animation?t.animate({opacity:1},s.animation):t.attr({opacity:1}),t.show()),t}return this.dataLabelsGroup.attr(Vi({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){let s=this.options.dataLabels;s?.defer&&this.options.layoutAlgorithm?.enableSimulation?Ja(()=>{this.deferDataLabels=!1},s?to(s.animation).defer:0):this.deferDataLabels=!1}},{addEvent:uo,clamp:Mi,defined:ht,extend:vi,fireEvent:go,isArray:Li,isNumber:ki,merge:Dt,pick:te}=w();({compose:function(s){Ae(s,"afterGetBBox",lo),Ae(s,"beforeAddingDataLabel",ho);let t=s.prototype;t.setTextPath||(t.setTextPath=no)}}).compose(io());class ee extends Se{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}static compose(t,e,i){Se.compose(t,e,i),Et.compose(e),Jt.compose(e)}accumulateAllPoints(){let t=this.chart,e=[];for(let i of t.series)if(i.is("packedbubble")&&i.reserveSpace()){let a=i.getColumn("value");for(let r=0;r<a.length;r++)e.push([null,null,a[r],i.index,r,{id:r,marker:{radius:0}}])}return e}addLayout(){let t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",i=this.chart.options.chart,a=this.chart.graphLayoutsStorage,r=this.chart.graphLayoutsLookup,o;a||(this.chart.graphLayoutsStorage=a={},this.chart.graphLayoutsLookup=r=[]),(o=a[e])||(t.enableSimulation=ht(i.forExport)?!i.forExport:t.enableSimulation,a[e]=o=new zt[e],o.init(t),r.splice(o.index,0,o)),this.layout=o,this.points.forEach(n=>{n.mass=2,n.degree=1,n.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)}addSeriesLayout(){let t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",i=this.chart.graphLayoutsStorage,a=this.chart.graphLayoutsLookup,r=Dt(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),o=i[e+"-series"];o||(i[e+"-series"]=o=new zt[e],o.init(r),a.splice(o.index,0,o)),this.parentNodeLayout=o,this.createParentNodes()}calculateParentRadius(){let t=this.seriesBox();this.parentNodeRadius=Mi(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let t=this.chart.series,e=this.options.zMin,i=this.options.zMax,a=1/0,r=-1/0;return e&&i?[e,i]:(t.forEach(o=>{o.getColumn("value").forEach(n=>{ht(n)&&(n>r&&(r=n),n<a&&(a=n))})}),[e=te(e,a),i=te(i,r)])}checkOverlap(t,e){let i=t[0]-e[0],a=t[1]-e[1];return Math.sqrt(i*i+a*a)-Math.abs(t[2]+e[2])<-.001}createParentNodes(){let t=this.pointClass,e=this.chart,i=this.parentNodeLayout,a=this.layout.options,r,o=this.parentNode,n={radius:this.parentNodeRadius,lineColor:this.color,fillColor:xi(this.color).brighten(.4).get()};a.parentNodeOptions&&(n=Dt(a.parentNodeOptions.marker||{},n)),this.parentNodeMass=0,this.points.forEach(h=>{this.parentNodeMass+=Math.PI*Math.pow(h.marker.radius,2)}),this.calculateParentRadius(),i.nodes.forEach(h=>{h.seriesIndex===this.index&&(r=!0)}),i.setArea(0,0,e.plotWidth,e.plotHeight),r||(o||(o=new t(this,{mass:this.parentNodeRadius/2,marker:n,dataLabels:{inside:!1},states:{normal:{marker:n},hover:{marker:n}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index}),this.chart.allParentNodes.push(o)),this.parentNode&&(o.plotX=this.parentNode.plotX,o.plotY=this.parentNode.plotY),this.parentNode=o,i.addElementsToCollection([this],i.series),i.addElementsToCollection([o],i.nodes))}deferLayout(){let t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(t=>{t.removeElementFromCollection(this,t.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),lt.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(lt.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",lt.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let t=this.chart,e=this.layout.options.parentNodeOptions.marker,i={fill:e.fillColor||xi(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":te(e.lineWidth,this.options.lineWidth)},a={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&ht(this.parentNode.plotX)&&ht(this.parentNode.plotY)&&ht(this.parentNodeRadius)&&(a=Dt({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},i),this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(i.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(a))}drawTracker(){let t,e=this.parentNode;super.drawTracker(),e&&(t=Li(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(i=>{(i.div||i.element).point=e}))}getPointRadius(){let t,e,i,a,r=this.chart,o=r.plotWidth,n=r.plotHeight,h=this.options,p=h.useSimulation,d=Math.min(o,n),l={},u=[],c=r.allDataPoints||[],m=c.length;["minSize","maxSize"].forEach(f=>{let y=parseInt(h[f],10),g=/%$/.test(h[f]);l[f]=g?d*y/100:y*Math.sqrt(m)}),r.minRadius=t=l.minSize/Math.sqrt(m),r.maxRadius=e=l.maxSize/Math.sqrt(m);let x=p?this.calculateZExtremes():[t,e];c.forEach((f,y)=>{i=p?Mi(f[2],x[0],x[1]):f[2],(a=this.getRadius(x[0],x[1],t,e,i))===0&&(a=null),c[y][2]=a,u.push(a)}),this.radii=u}init(){return lt.init.apply(this,arguments),co.call(this),this.eventsToUnbind.push(uo(this,"updatedData",function(){this.chart.series.forEach(t=>{t.type===this.type&&(t.isDirty=!0)},this)})),this}onMouseUp(t){if(t.fixedPosition&&!t.removed){let e,i=this.layout,a=this.parentNodeLayout;!t.isParentNode&&a&&i.options.dragBetweenSeries&&a.nodes.forEach(r=>{t&&t.marker&&r!==t.series.parentNode&&(e=i.getDistXY(t,r),i.vectorLength(e)-r.marker.radius-t.marker.radius<0&&(r.series.addPoint(Dt(t.options,{plotX:t.plotX,plotY:t.plotY}),!1),i.removeElementFromCollection(t,i.nodes),t.remove()))}),Et.onMouseUp.apply(this,arguments)}}placeBubbles(t){let e=this.checkOverlap,i=this.positionBubble,a=[],r=1,o=0,n=0,h,p=[],d,l=t.sort((u,c)=>c[2]-u[2]);if(l.length){if(a.push([[0,0,l[0][2],l[0][3],l[0][4]]]),l.length>1)for(a.push([[0,0-l[1][2]-l[0][2],l[1][2],l[1][3],l[1][4]]]),d=2;d<l.length;d++)l[d][2]=l[d][2]||1,e(h=i(a[r][o],a[r-1][n],l[d]),a[r][0])?(a.push([]),n=0,a[r+1].push(i(a[r][o],a[r][0],l[d])),r++,o=0):r>1&&a[r-1][n+1]&&e(h,a[r-1][n+1])?(n++,a[r].push(i(a[r][o],a[r-1][n],l[d])),o++):(o++,a[r].push(h));this.chart.stages=a,this.chart.rawPositions=[].concat.apply([],a),this.resizeRadius(),p=this.chart.rawPositions}return p}pointAttribs(t,e){let i=this.options,a=t&&t.isParentNode,r=i.marker;a&&i.layoutAlgorithm&&i.layoutAlgorithm.parentNodeOptions&&(r=i.layoutAlgorithm.parentNodeOptions.marker);let o=r.fillOpacity,n=lt.pointAttribs.call(this,t,e);return o!==1&&(n["fill-opacity"]=o),n}positionBubble(t,e,i){let a=Math.asin,r=Math.acos,o=Math.pow,n=Math.abs,h=(0,Math.sqrt)(o(t[0]-e[0],2)+o(t[1]-e[1],2)),p=r((o(h,2)+o(i[2]+e[2],2)-o(i[2]+t[2],2))/(2*(i[2]+e[2])*h)),d=a(n(t[0]-e[0])/h),l=(t[1]-e[1]<0?0:Math.PI)+p+d*((t[0]-e[0])*(t[1]-e[1])<0?1:-1),u=Math.cos(l),c=Math.sin(l);return[e[0]+(e[2]+i[2])*c,e[1]-(e[2]+i[2])*u,i[2],i[3],i[4]]}render(){let t=[];lt.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(e=>{Li(e.dataLabels)&&e.dataLabels.forEach(i=>{t.push(i)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))}resizeRadius(){let t,e,i,a,r,o=this.chart,n=o.rawPositions,h=Math.min,p=Math.max,d=o.plotLeft,l=o.plotTop,u=o.plotHeight,c=o.plotWidth;for(let y of(t=i=1/0,e=a=-1/0,n))r=y[2],t=h(t,y[0]-r),e=p(e,y[0]+r),i=h(i,y[1]-r),a=p(a,y[1]+r);let m=[e-t,a-i],x=[(c-d)/m[0],(u-l)/m[1]],f=h.apply([],x);if(Math.abs(f-1)>1e-10){for(let y of n)y[2]*=f;this.placeBubbles(n)}else o.diffY=u/2+l-i-(a-i)/2,o.diffX=c/2+d-t-(e-t)/2}seriesBox(){let t,e=this.chart,i=this.data,a=Math.max,r=Math.min,o=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return i.forEach(n=>{ht(n.plotX)&&ht(n.plotY)&&n.marker.radius&&(t=n.marker.radius,o[0]=r(o[0],n.plotX-t),o[1]=a(o[1],n.plotX+t),o[2]=r(o[2],n.plotY-t),o[3]=a(o[3],n.plotY+t))}),ki(o.width/o.height)?o:null}setVisible(){let t=this;lt.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach(e=>{t.layout.removeElementFromCollection(e,t.layout.nodes)}))}translate(){let t,e,i,a=this.chart,r=this.data,o=this.index,n=this.options.useSimulation;for(let h of(this.generatePoints(),ht(a.allDataPoints)||(a.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),n?i=a.allDataPoints:(i=this.placeBubbles(a.allDataPoints),this.options.draggable=!1),i))h[3]===o&&(t=r[h[4]],e=te(h[2],void 0),n||(t.plotX=h[0]-a.plotLeft+a.diffX,t.plotY=h[1]-a.plotTop+a.diffY),ki(e)&&(t.marker=vi(t.marker,{radius:e,width:2*e,height:2*e}),t.radius=e));n&&this.deferLayout(),go(this,"afterTranslate")}}ee.defaultOptions=Dt(Se.defaultOptions,{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:s}=this.series.chart,{value:t}=this.point;return Fa(t)?s(t,-1):""},parentNodeFormatter:function(){return this.name||""},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981},stickyTracking:!1}),vi(ee.prototype,{pointClass:Wa,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:po,alignDataLabel:lt.alignDataLabel,indexateNodes:Pi,onMouseDown:Et.onMouseDown,onMouseMove:Et.onMouseMove,redrawHalo:Et.redrawHalo,searchPoint:Pi}),z().registerSeriesType("packedbubble",ee);let{noop:fo}=w(),{area:mo,line:wi,scatter:Ai}=z().seriesTypes,{extend:bo,merge:yo}=w();class Te extends Ai{getGraphPath(){let t=wi.prototype.getGraphPath.call(this),e=t.length+1;for(;e--;)(e===t.length||t[e][0]==="M")&&e>0&&t.splice(e,0,["Z"]);return this.areaPath=t,t}drawGraph(){this.options.fillColor=this.color,mo.prototype.drawGraph.call(this)}}Te.defaultOptions=yo(Ai.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}),bo(Te.prototype,{type:"polygon",drawTracker:wi.prototype.drawTracker,setStackedPoints:fo}),z().registerSeriesType("polygon",Te);let{defaultOptions:xo}=w(),{noop:Si}=w(),{addEvent:Ti,extend:Po,isObject:Ci,merge:Mo,relativeLength:Ce}=w(),vo={radius:0,scope:"stack",where:void 0},Ni=Si,Xi=Si;function Lo(s,t,e,i,a={}){let r=Ni(s,t,e,i,a),{brStart:o=!0,brEnd:n=!0,innerR:h=0,r:p=e,start:d=0,end:l=0}=a;if(a.open||!a.borderRadius)return r;let u=l-d,c=Math.sin(u/2),m=Math.max(Math.min(Ce(a.borderRadius||0,p-h),(p-h)/2,p*c/(1+c)),0),x=Math.min(m,u/Math.PI*2*h),f=r.length-1;for(;f--;)(o||f!==0&&f!==3)&&(n||f!==1&&f!==2)&&(function(y,g,A){let v,C,X,L=y[g],S=y[g+1];if(S[0]==="Z"&&(S=y[0]),(L[0]==="M"||L[0]==="L")&&S[0]==="A"?(v=L,C=S,X=!0):L[0]==="A"&&(S[0]==="M"||S[0]==="L")&&(v=S,C=L),v&&C&&C.params){let I=C[1],b=C[5],M=C.params,{start:P,end:k,cx:Y,cy:T}=M,N=b?I-A:I+A,R=N?Math.asin(A/N):0,D=b?R:-R,W=Math.cos(R)*N;X?(M.start=P+D,v[1]=Y+W*Math.cos(P),v[2]=T+W*Math.sin(P),y.splice(g+1,0,["A",A,A,0,0,1,Y+I*Math.cos(M.start),T+I*Math.sin(M.start)])):(M.end=k-D,C[6]=Y+I*Math.cos(M.end),C[7]=T+I*Math.sin(M.end),y.splice(g+1,0,["A",A,A,0,0,1,Y+W*Math.cos(k),T+W*Math.sin(k)])),C[4]=Math.abs(M.end-M.start)<Math.PI?0:1}})(r,f,f>1?x:m);return r}function ko(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:s,yAxis:t}=this,e=s.stacking==="percent",i=xo.plotOptions?.[this.type]?.borderRadius,a=Ne(s.borderRadius,Ci(i)?i:{}),r=t.options.reversed;for(let o of this.points){let{shapeArgs:n}=o;if(o.shapeType==="roundedRect"&&n){let{width:h=0,height:p=0,y:d=0}=n,l=d,u=p;if(a.scope==="stack"&&o.stackTotal){let f=t.translate(e?100:o.stackTotal,!1,!0,!1,!0),y=t.translate(s.threshold||0,!1,!0,!1,!0),g=this.crispCol(0,Math.min(f,y),0,Math.abs(f-y));l=g.y,u=g.height}let c=(o.negative?-1:1)*(r?-1:1)==-1,m=a.where;!m&&this.is("waterfall")&&Math.abs((o.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(m="all"),m||(m="end");let x=Math.min(Ce(a.radius,h),h/2,m==="all"?p/2:1/0)||0;m==="end"&&(c&&(l-=x),u+=x),Po(n,{brBoxHeight:u,brBoxY:l,r:x})}}}}function Ne(s,t){return Ci(s)||(s={radius:s||0}),Mo(vo,t,s)}function wo(){let s=Ne(this.options.borderRadius);for(let t of this.points){let e=t.shapeArgs;e&&(e.borderRadius=Ce(s.radius,(e.r||0)-(e.innerR||0)))}}function Ao(s,t,e,i,a={}){let r=Xi(s,t,e,i,a),{r:o=0,brBoxHeight:n=i,brBoxY:h=t}=a,p=t-h,d=h+n-(t+i),l=p-o>-.1?0:o,u=d-o>-.1?0:o,c=Math.max(l&&p,0),m=Math.max(u&&d,0),x=[s+l,t],f=[s+e-l,t],y=[s+e,t+l],g=[s+e,t+i-u],A=[s+e-u,t+i],v=[s+u,t+i],C=[s,t+i-u],X=[s,t+l],L=(S,I)=>Math.sqrt(Math.pow(S,2)-Math.pow(I,2));if(c){let S=L(l,l-c);x[0]-=S,f[0]+=S,y[1]=X[1]=t+l-c}if(i<l-c){let S=L(l,l-c-i);y[0]=g[0]=s+e-l+S,A[0]=Math.min(y[0],A[0]),v[0]=Math.max(g[0],v[0]),C[0]=X[0]=s+l-S,y[1]=X[1]=t+i}if(m){let S=L(u,u-m);A[0]+=S,v[0]-=S,g[1]=C[1]=t+i-u+m}if(i<u-m){let S=L(u,u-m-i);y[0]=g[0]=s+e-u+S,f[0]=Math.min(y[0],f[0]),x[0]=Math.max(g[0],x[0]),C[0]=X[0]=s+u-S,g[1]=C[1]=t}return r.length=0,r.push(["M",...x],["L",...f],["A",l,l,0,0,1,...y],["L",...g],["A",u,u,0,0,1,...A],["L",...v],["A",u,u,0,0,1,...C],["L",...X],["A",l,l,0,0,1,...x],["Z"]),r}let So={circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:!1,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}},{defaultOptions:At}=w(),{composed:To,noop:Ot}=w(),{addEvent:pt,correctFloat:Yi,defined:Pt,extend:Co,fireEvent:No,isObject:Xo,merge:Mt,pick:Q,pushUnique:Yo,relativeLength:Xe,splat:Ro,wrap:Io}=w();(function(s){function t(){this.autoConnect=this.isCircular&&Q(this.userMax,this.options.max)===void 0&&Yi(this.endAngleRad-this.startAngleRad)===Yi(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function e(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(b=>this.ticks[b]?.label).filter(b=>!!b)}}function i(){return Ot}function a(b,M,P){let k=this.pane.center,Y=b.value,T,N,R;return this.isCircular?(Pt(Y)?b.point&&(b.point.shapeArgs||{}).start&&(Y=this.chart.inverted?this.translate(b.point.rectPlotY,!0):b.point.x):(N=b.chartX||0,R=b.chartY||0,Y=this.translate(Math.atan2(R-P,N-M)-this.startAngleRad,!0)),N=(T=this.getPosition(Y)).x,R=T.y):(Pt(Y)||(N=b.chartX,R=b.chartY),Pt(N)&&Pt(R)&&(P=k[1]+this.chart.plotTop,Y=this.translate(Math.min(Math.sqrt(Math.pow(N-M,2)+Math.pow(R-P,2)),k[2]/2)-k[3]/2,!0))),[Y,N||0,R||0]}function r(b,M,P){let k=this.pane.center,Y=this.chart,T=this.left||0,N=this.top||0,R,D=Q(M,k[2]/2-this.offset),W;return P===void 0&&(P=this.horiz?0:this.center&&-this.center[3]/2),P&&(D+=P),this.isCircular||M!==void 0?((W=this.chart.renderer.symbols.arc(T+k[0],N+k[1],D,D,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[T+k[0]],W.yBounds=[N+k[1]-D]):(R=this.postTranslate(this.angleRad,D),W=[["M",this.center[0]+Y.plotLeft,this.center[1]+Y.plotTop],["L",R.x,R.y]]),W}function o(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function n(b,M,P){let k=this.chart,Y=V=>{if(typeof V=="string"){let Nt=parseInt(V,10);return Z.test(V)&&(Nt=Nt*D/100),Nt}return V},T=this.center,N=this.startAngleRad,R=P.borderRadius,D=T[2]/2,W=Math.min(this.offset,0),U=this.left||0,j=this.top||0,Z=/%$/,O=this.isCircular,B=this.options.plotBands||[],G=B.indexOf(P),_,J,K,ot,dt,q,rt=Q(Y(P.outerRadius),D),ct=Y(P.innerRadius),Bt=Q(Y(P.thickness),10),ut=!0,gt=!0;if(R&&G>-1&&(B[G-1]&&B[G-1].to===b&&(ut=!1),B[G+1]&&B[G+1].from===M&&(gt=!1)),this.options.gridLineInterpolation==="polygon")q=this.getPlotLinePath({value:b}).concat(this.getPlotLinePath({value:M,reverse:!0}));else{b=Math.max(b,this.min),M=Math.min(M,this.max);let V=this.translate(b),Nt=this.translate(M);O||(rt=V||0,ct=Nt||0),P.shape!=="circle"&&O?(_=N+(V||0),J=N+(Nt||0)):(_=-Math.PI/2,J=1.5*Math.PI,dt=!0),rt-=W,Bt-=W,q=k.renderer.symbols.arc(U+T[0],j+T[1],rt,rt,{start:Math.min(_,J),end:Math.max(_,J),innerR:Q(ct,rt-Bt),open:dt,borderRadius:R,brStart:ut,brEnd:gt}),O&&(K=(J+_)/2,ot=U+T[0]+T[2]/2*Math.cos(K),q.xBounds=K>-Math.PI/2&&K<Math.PI/2?[ot,k.plotWidth]:[0,ot],q.yBounds=[j+T[1]+T[2]/2*Math.sin(K)],q.yBounds[0]+=K>-Math.PI&&K<0||K>Math.PI?-10:10)}return q}function h(b){let M=this.pane.center,P=this.chart,k=P.inverted,Y=b.reverse,T=this.pane.options.background,N=T?Ro(T)[0]:{},R=N.innerRadius||"0%",D=N.outerRadius||"100%",W=M[0]+P.plotLeft,U=M[1]+P.plotTop,j=this.height,Z=b.isCrosshair,O=M[3]/2,B=b.value,G,_,J,K,ot,dt,q,rt,ct,Bt=this.getPosition(B),ut=Bt.x,gt=Bt.y;if(Z&&(B=(rt=this.getCrosshairPosition(b,W,U))[0],ut=rt[1],gt=rt[2]),this.isCircular)_=Math.sqrt(Math.pow(ut-W,2)+Math.pow(gt-U,2)),J=typeof R=="string"?Xe(R,1):R/_,K=typeof D=="string"?Xe(D,1):D/_,M&&O&&(J<(G=O/_)&&(J=G),K<G&&(K=G)),ct=[["M",W+J*(ut-W),U-J*(U-gt)],["L",ut-(1-K)*(ut-W),gt+(1-K)*(U-gt)]];else if((B=this.translate(B))&&(B<0||B>j)&&(B=0),this.options.gridLineInterpolation==="circle")ct=this.getLinePath(0,B,O);else if(ct=[],P[k?"yAxis":"xAxis"].forEach(V=>{V.pane===this.pane&&(ot=V)}),ot){q=ot.tickPositions,ot.autoConnect&&(q=q.concat([q[0]])),Y&&(q=q.slice().reverse()),B&&(B+=O);for(let V=0;V<q.length;V++)dt=ot.getPosition(q[V],B),ct.push(V?["L",dt.x,dt.y]:["M",dt.x,dt.y])}return ct}function p(b,M){let P=this.translate(b);return this.postTranslate(this.isCircular?P:this.angleRad,Q(this.isCircular?M:P<0?0:P,this.center[2]/2)-this.offset)}function d(){let b=this.center,M=this.chart,P=this.options.title;return{x:M.plotLeft+b[0]+(P.x||0),y:M.plotTop+b[1]-{high:.5,middle:.25,low:0}[P.align]*b[2]+(P.y||0)}}function l(b){b.beforeSetTickPositions=t,b.createLabelCollector=e,b.getCrosshairPosition=a,b.getLinePath=r,b.getOffset=o,b.getPlotBandPath=n,b.getPlotLinePath=h,b.getPosition=p,b.getTitlePosition=d,b.postTranslate=v,b.setAxisSize=X,b.setAxisTranslation=L,b.setOptions=S}function u(){let b=this.chart,M=this.options,P=b.angular&&this.isXAxis,k=this.pane,Y=k?.options;if(!P&&k&&(b.angular||b.polar)){let T=2*Math.PI,N=(Q(Y.startAngle,0)-90)*Math.PI/180,R=(Q(Y.endAngle,Q(Y.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(M.angle||0)*Math.PI/180,this.startAngleRad=N,this.endAngleRad=R,this.offset=M.offset||0;let D=(N%T+T)%T,W=(R%T+T)%T;D>Math.PI&&(D-=T),W>Math.PI&&(W-=T),this.normalizedStartAngleRad=D,this.normalizedEndAngleRad=W}}function c(b){this.isRadial&&(b.align=void 0,b.preventDefault())}function m(){if(this.chart?.labelCollectors){let b=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;b>=0&&this.chart.labelCollectors.splice(b,1)}}function x(b){let M,P=this.chart,k=P.angular,Y=P.polar,T=this.isXAxis,N=this.coll,R=b.userOptions.pane||0,D=this.pane=P.pane&&P.pane[R];if(N==="colorAxis"){this.isRadial=!1;return}k?(k&&T?(this.isHidden=!0,this.createLabelCollector=i,this.getOffset=Ot,this.redraw=C,this.render=C,this.setScale=Ot,this.setCategories=Ot,this.setTitle=Ot):l(this),M=!T):Y&&(l(this),M=this.horiz),k||Y?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&P.labelCollectors.push(this.labelCollector)):this.isRadial=!1,D&&M&&(D.axis=this),this.isCircular=M}function f(){this.isRadial&&this.beforeSetTickPositions()}function y(b){let M=this.label;if(!M)return;let P=this.axis,k=M.getBBox(),Y=P.options.labels,T=(P.translate(this.pos)+P.startAngleRad+Math.PI/2)/Math.PI*180%360,N=Math.round(T),R=Pt(Y.y)?0:-(.3*k.height),D=Y.y,W,U=20,j=Y.align,Z="end",O=N<0?N+360:N,B=O,G=0,_=0;P.isRadial&&(W=P.getPosition(this.pos,P.center[2]/2+Xe(Q(Y.distance,-25),P.center[2]/2,-P.center[2]/2)),Y.rotation==="auto"?M.attr({rotation:T}):Pt(D)||(D=P.chart.renderer.fontMetrics(M).b-k.height/2),Pt(j)||(P.isCircular?(k.width>P.len*P.tickInterval/(P.max-P.min)&&(U=0),j=T>U&&T<180-U?"left":T>180+U&&T<360-U?"right":"center"):j="center",M.attr({align:j})),j==="auto"&&P.tickPositions.length===2&&P.isCircular&&(O>90&&O<180?O=180-O:O>270&&O<=360&&(O=540-O),B>180&&B<=360&&(B=360-B),(P.pane.options.startAngle===N||P.pane.options.startAngle===N+360||P.pane.options.startAngle===N-360)&&(Z="start"),j=N>=-90&&N<=90||N>=-360&&N<=-270||N>=270&&N<=360?Z==="start"?"right":"left":Z==="start"?"left":"right",B>70&&B<110&&(j="center"),O<15||O>=180&&O<195?G=.3*k.height:O>=15&&O<=35?G=Z==="start"?0:.75*k.height:O>=195&&O<=215?G=Z==="start"?.75*k.height:0:O>35&&O<=90?G=Z==="start"?-(.25*k.height):k.height:O>215&&O<=270&&(G=Z==="start"?k.height:-(.25*k.height)),B<15?_=Z==="start"?-(.15*k.height):.15*k.height:B>165&&B<=180&&(_=Z==="start"?.15*k.height:-(.15*k.height)),M.attr({align:j}),M.translate(_,G+R)),b.pos.x=W.x+(Y.x||0),b.pos.y=W.y+(D||0))}function g(b){this.axis.getPosition&&Co(b.pos,this.axis.getPosition(this.pos))}function A({options:b}){b.xAxis&&Mt(!0,s.radialDefaultOptions.circular,b.xAxis),b.yAxis&&Mt(!0,s.radialDefaultOptions.radialGauge,b.yAxis)}function v(b,M){let P=this.chart,k=this.center;return b=this.startAngleRad+b,{x:P.plotLeft+k[0]+Math.cos(b)*M,y:P.plotTop+k[1]+Math.sin(b)*M}}function C(){this.isDirty=!1}function X(){let b,M;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),b=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(M=this.postTranslate(this.angleRad,b[3]/2),b[0]=M.x-this.chart.plotLeft,b[1]=M.y-this.chart.plotTop),this.len=this.width=this.height=(b[2]-b[3])*Q(this.sector,1)/2)}function L(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function S(b){let{coll:M}=this,{angular:P,inverted:k,polar:Y}=this.chart,T={};P?this.isXAxis||(T=Mt(At.yAxis,s.radialDefaultOptions.radialGauge)):Y&&(T=this.horiz?Mt(At.xAxis,s.radialDefaultOptions.circular):Mt(M==="xAxis"?At.xAxis:At.yAxis,s.radialDefaultOptions.radial)),k&&M==="yAxis"&&(T.stackLabels=Xo(At.yAxis,!0)?At.yAxis.stackLabels:{},T.reversedStacks=!0);let N=this.options=Mt(T,b);N.plotBands||(N.plotBands=[]),No(this,"afterSetOptions")}function I(b,M,P,k,Y,T,N){let R,D=this.axis;return D.isRadial?["M",M,P,"L",(R=D.getPosition(this.pos,D.center[2]/2+k)).x,R.y]:b.call(this,M,P,k,Y,T,N)}s.radialDefaultOptions=Mt(So),s.compose=function(b,M){return Yo(To,"Axis.Radial")&&(pt(b,"afterInit",u),pt(b,"autoLabelAlign",c),pt(b,"destroy",m),pt(b,"init",x),pt(b,"initialAxisTranslation",f),pt(M,"afterGetLabelPosition",y),pt(M,"afterGetPosition",g),pt(w(),"setOptions",A),Io(M.prototype,"getMarkPath",I)),b}})(ne||(ne={}));let Ri=ne,{animObject:Eo}=w(),{optionsToObject:zo}={compose:function(s,t,e){let i=s.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let a=e.prototype.symbols;Ti(s,"afterColumnTranslate",ko,{order:9}),Ti(i,"afterTranslate",wo),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Ni=a.arc,Xi=a.roundedRect,a.arc=Lo,a.roundedRect=Ao}},optionsToObject:Ne},{defaultOptions:Do}=w(),{composed:Oo}=w(),{addEvent:et,defined:Ht,find:Ye,isNumber:st,isObject:Ho,merge:Ii,pick:St,pushUnique:Bo,relativeLength:Wo,splat:Ei,uniqueKey:Fo,wrap:at}=w();function Go(){(this.pane||[]).forEach(s=>{s.render()})}function qo(s){let t=s.args[0].xAxis,e=s.args[0].yAxis,i=s.args[0].chart;t&&e&&(e.gridLineInterpolation==="polygon"?(t.startOnTick=!0,t.endOnTick=!0):t.gridLineInterpolation==="polygon"&&i.inverted&&(e.startOnTick=!0,e.endOnTick=!0))}function Vo(){this.pane||(this.pane=[]),this.options.pane=Ei(this.options.pane||{}),Ei(this.userOptions.pane||{}).forEach(s=>{new ce(s,this)},this)}function Uo(s){let t=s.args.marker,e=this.chart.xAxis[0],i=this.chart.yAxis[0],a=this.chart.inverted,r=a?i:e,o=a?e:i;if(this.chart.polar){s.preventDefault();let n=(t.attr?t.attr("start"):t.start)-r.startAngleRad,h=t.attr?t.attr("r"):t.r,p=(t.attr?t.attr("end"):t.end)-r.startAngleRad,d=t.attr?t.attr("innerR"):t.innerR;s.result.x=n+r.pos,s.result.width=p-n,s.result.y=o.len+o.pos-h,s.result.height=h-d}}function _o(s){let t=this.chart;if(t.polar&&t.hoverPane&&t.hoverPane.axis){s.preventDefault();let e=t.hoverPane.center,i=t.mouseDownX||0,a=t.mouseDownY||0,r=s.args.chartY,o=s.args.chartX,n=2*Math.PI,h=t.hoverPane.axis.startAngleRad,p=t.hoverPane.axis.endAngleRad,d=t.inverted?t.xAxis[0]:t.yAxis[0],l={},u="arc";if(l.x=e[0]+t.plotLeft,l.y=e[1]+t.plotTop,this.zoomHor){let c=h>0?p-h:Math.abs(h)+Math.abs(p),m=Math.atan2(a-t.plotTop-e[1],i-t.plotLeft-e[0])-h,x=Math.atan2(r-t.plotTop-e[1],o-t.plotLeft-e[0])-h;l.r=e[2]/2,l.innerR=e[3]/2,m<=0&&(m+=n),x<=0&&(x+=n),x<m&&(x=[m,m=x][0]),c<n&&h+x>p+(n-c)/2&&(x=m,m=h<=0?h:0);let f=l.start=Math.max(m+h,h),y=l.end=Math.min(x+h,p);if(d.options.gridLineInterpolation==="polygon"){let g=t.hoverPane.axis,A=f-g.startAngleRad+g.pos,v=d.getPlotLinePath({value:d.max}),C=g.toValue(A),X=g.toValue(A+(y-f));if(C<g.getExtremes().min){let{min:L,max:S}=g.getExtremes();C=S-(L-C)}if(X<g.getExtremes().min){let{min:L,max:S}=g.getExtremes();X=S-(L-X)}X<C&&(X=[C,C=X][0]),(v=Re(v,C,X,g)).push(["L",e[0]+t.plotLeft,t.plotTop+e[1]]),l.d=v,u="path"}}if(this.zoomVert){let c=t.inverted?t.xAxis[0]:t.yAxis[0],m=Math.sqrt(Math.pow(i-t.plotLeft-e[0],2)+Math.pow(a-t.plotTop-e[1],2)),x=Math.sqrt(Math.pow(o-t.plotLeft-e[0],2)+Math.pow(r-t.plotTop-e[1],2));if(x<m&&(m=[x,x=m][0]),x>e[2]/2&&(x=e[2]/2),m<e[3]/2&&(m=e[3]/2),this.zoomHor||(l.start=h,l.end=p),l.r=x,l.innerR=m,c.options.gridLineInterpolation==="polygon"){let f=c.toValue(c.len+c.pos-m),y=c.toValue(c.len+c.pos-x);l.d=c.getPlotLinePath({value:y}).concat(c.getPlotLinePath({value:f,reverse:!0})),u="path"}}if(this.zoomHor&&this.zoomVert&&d.options.gridLineInterpolation==="polygon"){let c=t.hoverPane.axis,m=l.start||0,x=l.end||0,f=m-c.startAngleRad+c.pos,y=c.toValue(f),g=c.toValue(f+(x-m));if(l.d instanceof Array){let A=l.d.slice(0,l.d.length/2),v=l.d.slice(l.d.length/2,l.d.length);v=[...v].reverse();let C=t.hoverPane.axis;A=Re(A,y,g,C),(v=Re(v,y,g,C))&&(v[0][0]="L"),v=[...v].reverse(),l.d=A.concat(v),u="path"}}s.attrs=l,s.shapeType=u}}function Ko(){let s=this.chart;s.polar&&(this.polar=new Di(this),s.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function jo(){let{chart:s,options:t,yAxis:e}=this;if(t.borderRadius&&s.polar&&s.inverted){let i=Do.plotOptions?.[this.type]?.borderRadius,{scope:a,where:r="end"}=zo(t.borderRadius,Ho(i)?i:{});for(let o of this.points){let{shapeArgs:n}=o;if(o.shapeType==="arc"&&n){let h=r==="all",p=!0;t.stacking&&a==="stack"&&(h=o.stackY===o.y&&r==="all",p=o.stackY===o.stackTotal),e.reversed&&([h,p]=[p,h]),n.brStart=h,n.brEnd=p}}}}function Zo(){if(this.chart.polar&&this.xAxis){let{xAxis:s,yAxis:t}=this,e=this.chart;this.kdByAngle=e.tooltip&&e.tooltip.shared,this.kdByAngle||e.inverted?this.searchPoint=$o:this.options.findNearestPointBy="xy";let i=this.points,a=i.length;for(;a--;)this.is("column")||this.is("columnrange")||this.polar.toXY(i[a]),e.hasParallelCoordinates||this.yAxis.reversed||(St(i[a].y,5e-324)<t.min||i[a].x<s.min||i[a].x>s.max?(i[a].isNull=!0,i[a].plotY=NaN):i[a].isNull=i[a].isValid&&!i[a].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(et(this,"afterRender",function(){let r;if(e.polar&&this.options.clip!==!1){if(r=this.yAxis.pane.center,this.clipCircle)this.clipCircle.animate({x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2});else{var o,n,h,p,d;let l,u,c;this.clipCircle=(o=e.renderer,n=r[0],h=r[1],p=r[2]/2,d=r[3]/2,l=Fo(),u=o.createElement("clipPath").attr({id:l}).add(o.defs),(c=d?o.arc(n,h,p,d,0,2*Math.PI).add(u):o.circle(n,h,p).add(u)).id=l,c.clipPath=u,c)}this.group.clip(this.clipCircle),this.setClip=w().noop}})))}}function $o(s){let t=this.chart,e=this.xAxis,i=this.yAxis,a=e.pane&&e.pane.center,r=s.chartX-(a&&a[0]||0)-t.plotLeft,o=s.chartY-(a&&a[1]||0)-t.plotTop,n=t.inverted?{clientX:s.chartX-i.pos,plotY:s.chartY-e.pos}:{clientX:180+-180/Math.PI*Math.atan2(r,o)};return this.searchKDTree(n)}function Re(s,t,e,i){let a=i.tickInterval,r=i.tickPositions,o=Ye(r,h=>h>=e),n=Ye([...r].reverse(),h=>h<=t);return Ht(o)||(o=r[r.length-1]),Ht(n)||(n=r[0],o+=a,s[0][0]="L",s.unshift(s[s.length-3])),(s=s.slice(r.indexOf(n),r.indexOf(o)+1))[0][0]="M",s}function Qo(s,t){return Ye(this.pane||[],e=>e.options.id===t)||s.call(this,t)}function Jo(s,t,e,i,a,r){let o,n,h,p=this.chart,d=St(i.inside,!!this.options.stacking);if(p.polar){if(o=t.rectPlotX/Math.PI*180,p.inverted)this.forceDL=p.isInsidePlot(t.plotX,t.plotY),d&&t.shapeArgs?(n=t.shapeArgs,a=Ii(a,{x:(h=this.yAxis.postTranslate(((n.start||0)+(n.end||0))/2-this.xAxis.startAngleRad,t.barX+t.pointWidth/2)).x-p.plotLeft,y:h.y-p.plotTop})):t.tooltipPos&&(a=Ii(a,{x:t.tooltipPos[0],y:t.tooltipPos[1]})),i.align=St(i.align,"center"),i.verticalAlign=St(i.verticalAlign,"middle");else{var l;(l=i).align===null&&(l.align=o>20&&o<160?"left":o>200&&o<340?"right":"center"),l.verticalAlign===null&&(l.verticalAlign=o<45||o>315?"bottom":o>135&&o<225?"top":"middle"),i=l}He().prototype.alignDataLabel.call(this,t,e,i,a,r),this.isRadialBar&&t.shapeArgs&&t.shapeArgs.start===t.shapeArgs.end?e.hide():e.show()}else s.call(this,t,e,i,a,r)}function tr(){let s=this.options,t=s.stacking,e=this.chart,i=this.xAxis,a=this.yAxis,r=a.reversed,o=a.center,n=i.startAngleRad,h=i.endAngleRad-n,p=s.threshold,d=0,l,u,c,m,x,f=0,y=0,g,A,v,C,X,L,S,I;if(i.isRadial)for(c=(l=this.points).length,m=a.translate(a.min),x=a.translate(a.max),p=s.threshold||0,e.inverted&&st(p)&&Ht(d=a.translate(p))&&(d<0?d=0:d>h&&(d=h),this.translatedThreshold=d+n);c--;){if(L=(u=l[c]).barX,A=u.x,v=u.y,u.shapeType="arc",e.inverted){u.plotY=a.translate(v),t&&a.stacking?(X=a.stacking.stacks[(v<0?"-":"")+this.stackKey],this.visible&&X&&X[A]&&!u.isNull&&(C=X[A].points[this.getStackIndicator(void 0,A,this.index).key],f=a.translate(C[0]),y=a.translate(C[1]),Ht(f)&&(f=w().clamp(f,0,h)))):(f=d,y=u.plotY),f>y&&(y=[f,f=y][0]),r?y>m?y=m:f<x?f=x:(f>m||y<x)&&(f=y=h):f<m?f=m:y>x?y=x:(y<m||f>x)&&(f=y=0),a.min>a.max&&(f=y=r?h:0),f+=n,y+=n,o&&(u.barX=L+=o[3]/2),S=Math.max(L,0),I=Math.max(L+u.pointWidth,0);let b=s.borderRadius,M=Wo((typeof b=="object"?b.radius:b)||0,I-S);u.shapeArgs={x:o[0],y:o[1],r:I,innerR:S,start:f,end:y,borderRadius:M},u.opacity=f===y?0:void 0,u.plotY=(Ht(this.translatedThreshold)&&(f<this.translatedThreshold?f:y))-n}else f=L+n,u.shapeArgs=this.polar.arc(u.yBottom,u.plotY,f,f+u.pointWidth),u.shapeArgs.borderRadius=0;this.polar.toXY(u),e.inverted?(g=a.postTranslate(u.rectPlotY,L+u.pointWidth/2),u.tooltipPos=[g.x-e.plotLeft,g.y-e.plotTop]):u.tooltipPos=[u.plotX,u.plotY],o&&(u.ttBelow=u.plotY>o[1])}}function er(s,t){let e,i,a=this;if(this.chart.polar){t=t||this.points;for(let o=0;o<t.length;o++)if(!t[o].isNull){e=o;break}this.options.connectEnds!==!1&&e!==void 0&&(this.connectEnds=!0,t.splice(t.length,0,t[e]),i=!0),t.forEach(o=>{o.polarPlotY===void 0&&a.polar.toXY(o)})}let r=s.apply(this,[].slice.call(arguments,1));return i&&t.pop(),r}function ir(s,t){let e=this.chart,i={xAxis:[],yAxis:[]};return e.polar?e.axes.forEach(a=>{if(a.coll==="colorAxis")return;let r=a.isXAxis,o=a.center,n=t.chartX-o[0]-e.plotLeft,h=t.chartY-o[1]-e.plotTop;i[r?"xAxis":"yAxis"].push({axis:a,value:a.translate(r?Math.PI-Math.atan2(n,h):Math.sqrt(Math.pow(n,2)+Math.pow(h,2)),!0)})}):i=s.call(this,t),i}function sr(s,t){this.chart.polar||s.call(this,t)}function zi(s,t){let e=this,i=this.chart,a=this.group,r=this.markerGroup,o=this.xAxis&&this.xAxis.center,n=i.plotLeft,h=i.plotTop,p=this.options.animation,d,l,u,c,m,x;i.polar?e.isRadialBar?t||(e.startAngleRad=St(e.translatedThreshold,e.xAxis.startAngleRad),w().seriesTypes.pie.prototype.animate.call(e,t)):(p=Eo(p),e.is("column")?t||(l=o[3]/2,e.points.forEach(f=>{u=f.graphic,m=(c=f.shapeArgs)&&c.r,x=c&&c.innerR,u&&c&&(u.attr({r:l,innerR:l}),u.animate({r:m,innerR:x},e.options.animation))})):t?(d={translateX:o[0]+n,translateY:o[1]+h,scaleX:.001,scaleY:.001},a.attr(d),r&&r.attr(d)):(d={translateX:n,translateY:h,scaleX:1,scaleY:1},a.animate(d,p),r&&r.animate(d,p))):s.call(this,t)}function ar(s,t,e,i){let a,r;if(this.chart.polar)if(i){let o=(r=(function h(p,d,l,u){let c,m,x,f,y,g,A=+!!u,v=(c=d>=0&&d<=p.length-1?d:d<0?p.length-1+d:0)-1<0?p.length-(1+A):c-1,C=c+1>p.length-1?A:c+1,X=p[v],L=p[C],S=X.plotX,I=X.plotY,b=L.plotX,M=L.plotY,P=p[c].plotX,k=p[c].plotY;m=(1.5*P+S)/2.5,x=(1.5*k+I)/2.5,f=(1.5*P+b)/2.5,y=(1.5*k+M)/2.5;let Y=Math.sqrt(Math.pow(m-P,2)+Math.pow(x-k,2)),T=Math.sqrt(Math.pow(f-P,2)+Math.pow(y-k,2)),N=Math.atan2(x-k,m-P);g=Math.PI/2+(N+Math.atan2(y-k,f-P))/2,Math.abs(N-g)>Math.PI/2&&(g-=Math.PI),m=P+Math.cos(g)*Y,x=k+Math.sin(g)*Y;let R={rightContX:f=P+Math.cos(Math.PI+g)*T,rightContY:y=k+Math.sin(Math.PI+g)*T,leftContX:m,leftContY:x,plotX:P,plotY:k};return l&&(R.prevPointCont=h(p,v,!1,u)),R})(t,i,!0,this.connectEnds)).prevPointCont&&r.prevPointCont.rightContX,n=r.prevPointCont&&r.prevPointCont.rightContY;a=["C",st(o)?o:r.plotX,st(n)?n:r.plotY,st(r.leftContX)?r.leftContX:r.plotX,st(r.leftContY)?r.leftContY:r.plotY,r.plotX,r.plotY]}else a=["M",e.plotX,e.plotY];else a=s.call(this,t,e,i);return a}function or(s,t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:a}=this,{chart:r}=a;return r.polar&&st(i)&&st(e)?[i+(t?r.plotLeft:0),e+(t?r.plotTop:0)]:s.call(this,t,e)}}class Di{static compose(t,e,i,a,r,o,n,h,p,d){if(ce.compose(e,i,a),Ri.compose(t,r),Bo(Oo,"Polar")){let l=e.prototype,u=o.prototype,c=i.prototype,m=a.prototype;if(et(e,"afterDrawChartBox",Go),et(e,"createAxes",Vo),et(e,"init",qo),at(l,"get",Qo),at(c,"getCoordinates",ir),at(c,"pinch",sr),et(i,"getSelectionMarkerAttrs",_o),et(i,"getSelectionBox",Uo),et(a,"afterInit",Ko),et(a,"afterColumnTranslate",jo,{order:9}),et(a,"afterTranslate",Zo,{order:2}),et(a,"afterColumnTranslate",tr,{order:4}),at(m,"animate",zi),at(u,"pos",or),h){let x=h.prototype;at(x,"alignDataLabel",Jo),at(x,"animate",zi)}if(p&&at(p.prototype,"getGraphPath",er),d){let x=d.prototype;at(x,"getPointSpline",ar),n&&(n.prototype.getPointSpline=x.getPointSpline)}}}constructor(t){this.series=t}arc(t,e,i,a){let r=this.series,o=r.xAxis.center,n=r.yAxis.len,h=o[3]/2,p=n-e+h,d=n-St(t,n)+h;return r.yAxis.reversed&&(p<0&&(p=h),d<0&&(d=h)),{x:o[0],y:o[1],r:p,innerR:d,start:i,end:a}}toXY(t){let e=this.series,i=e.chart,a=e.xAxis,r=e.yAxis,o=t.plotX,n=i.inverted,h=t.y,p=t.plotY,d=n?o:r.len-p,l;if(n&&e&&!e.isRadialBar&&(t.plotY=p=st(h)?r.translate(h):0),t.rectPlotX=o,t.rectPlotY=p,r.center&&(d+=r.center[3]/2),st(p)){let u=n?r.postTranslate(p,d):a.postTranslate(o,d);t.plotX=t.polarPlotX=u.x-i.plotLeft,t.plotY=t.polarPlotY=u.y-i.plotTop}e.kdByAngle?((l=(o/Math.PI*180+a.pane.options.startAngle)%360)<0&&(l+=360),t.clientX=l):t.clientX=t.plotX}}var rr=H(184),Oi=H.n(rr);let{composed:nr}=w(),{addEvent:ie,objectEach:Hi,pushUnique:lr}=w();(function(s){function t(){let o=this.waterfall?.stacks;o&&(o.changed=!1,delete o.alreadyChanged)}function e(){this.options.stackLabels?.enabled&&this.waterfall?.stacks&&this.waterfall.renderStackTotals()}function i(){this.waterfall||(this.waterfall=new r(this))}function a(){let o=this.axes;for(let n of this.series)if(n.options.stacking){for(let h of o)!h.isXAxis&&h.waterfall&&(h.waterfall.stacks.changed=!0);break}}s.compose=function(o,n){lr(nr,"Axis.Waterfall")&&(ie(o,"init",i),ie(o,"afterBuildStacks",t),ie(o,"afterRender",e),ie(n,"beforeRedraw",a))};class r{constructor(n){this.axis=n,this.stacks={changed:!1}}renderStackTotals(){let n=this.axis,h=n.waterfall?.stacks,p=n.stacking?.stackTotalGroup,d=new(Oi())(n,n.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=d,p&&Hi(h,l=>{Hi(l,(u,c)=>{d.total=u.stackTotal,d.x=+c,u.label&&(d.label=u.label),Oi().prototype.render.call(d,p),u.label=d.label,delete d.label})}),d.total=null}}s.Composition=r})(le||(le={}));let hr=le,{isNumber:pr}=w();class dr extends Ut().prototype.pointClass{getClassName(){let t=mt().prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t}isValid(){return pr(this.y)||this.isSum||!!this.isIntermediateSum}}let{column:se,line:cr}=z().seriesTypes,{addEvent:ur,arrayMax:Bi,arrayMin:Wi,correctFloat:Ie,crisp:ae,extend:Fi,isNumber:Tt,merge:Gi,objectEach:qi,pick:gr}=w();function oe(s,t){return Object.hasOwnProperty.call(s,t)}class Ct extends se{generatePoints(){se.prototype.generatePoints.apply(this);let t=this.getColumn("y",!0);for(let e=0,i=this.points.length;e<i;e++){let a=this.points[e],r=t[e];Tt(r)&&(a.isIntermediateSum||a.isSum)&&(a.y=Ie(r))}}processData(t){let e,i,a,r,o,n,h=this.options,p=this.getColumn("y"),d=h.data,l=p.length,u=h.threshold||0;a=i=r=o=0;for(let c=0;c<l;c++)n=p[c],e=d?.[c]||{},n==="sum"||e.isSum?p[c]=Ie(a):n==="intermediateSum"||e.isIntermediateSum?(p[c]=Ie(i),i=0):(a+=n,i+=n),r=Math.min(a,r),o=Math.max(a,o);super.processData.call(this,t),h.stacking||(this.dataMin=r+u,this.dataMax=o)}toYData(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y}pointAttribs(t,e){let i=this.options.upColor;i&&!t.options.color&&Tt(t.y)&&(t.color=t.y>0?i:void 0);let a=se.prototype.pointAttribs.call(this,t,e);return delete a.dashstyle,a}getGraphPath(){return this.graph?.pathArray||[["M",0,0]]}getCrispPath(){let t=this.points.filter(p=>Tt(p.y)),e=this.yAxis,i=t.length,a=this.graph?.strokeWidth()||0,r=this.xAxis.reversed,o=this.yAxis.reversed,n=this.options.stacking,h=[];for(let p=1;p<i;p++){if(!(this.options.connectNulls||Tt(this.data[t[p].index-1].y)))continue;let d=t[p].box,l=t[p-1],u=l.y||0,c=t[p-1].box;if(!d||!c)continue;let m=e.waterfall?.stacks[this.stackKey],x=u>0?-c.height:0;if(m&&c&&d){let f,y=m[p-1];f=ae(n?e.translate(y.connectorThreshold||0,!1,!0,!1,!0)+(o?x:0):c.y+(l.minPointLengthOffset||0),a),h.push(["M",(c.x||0)+(r?0:c.width||0),f],["L",(d.x||0)+(r&&d.width||0),f])}if(c&&h.length&&(!n&&u<0&&!o||u>0&&o)){let f=h[h.length-2];f&&typeof f[2]=="number"&&(f[2]+=c.height||0);let y=h[h.length-1];y&&typeof y[2]=="number"&&(y[2]+=c.height||0)}}return h}drawGraph(){cr.prototype.drawGraph.call(this),this.graph?.animate({d:this.getCrispPath()})}setStackedPoints(t){let e=this.options,i=t.waterfall?.stacks,a=e.threshold||0,r=this.stackKey,o=this.getColumn("x"),n=this.getColumn("y"),h=o.length,p=a,d=p,l,u=0,c=0,m=0,x,f,y,g,A,v,C,X,L=(S,I,b,M)=>{if(l){if(x)for(;b<x;b++)l.stackState[b]+=M;else l.stackState[0]=S,x=l.stackState.length;l.stackState.push(l.stackState[x-1]+I)}};if(t.stacking&&i&&this.reserveSpace()){X=i.changed,(C=i.alreadyChanged)&&0>C.indexOf(r)&&(X=!0),i[r]||(i[r]={});let S=i[r];if(S)for(let I=0;I<h;I++)(!S[v=o[I]]||X)&&(S[v]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:X&&S[v]?S[v].label:void 0}),l=S[v],(A=n[I])>=0?l.posTotal+=A:l.negTotal+=A,g=e.data[I],f=l.absolutePos=l.posTotal,y=l.absoluteNeg=l.negTotal,l.stackTotal=f+y,x=l.stackState.length,g?.isIntermediateSum?(L(m,c,0,m),m=c,c=a,p^=d,d^=p,p^=d):g?.isSum?(L(a,u,x,0),p=a):(L(p,A,0,u),g&&(u+=A,c+=A)),l.stateIndex++,l.threshold=p,p+=l.stackTotal;i.changed=!1,i.alreadyChanged||(i.alreadyChanged=[]),i.alreadyChanged.push(r)}}getExtremes(){let t,e,i=this.options.stacking,a=this.yAxis,r=a.waterfall?.stacks;return i&&r?(t=this.stackedYNeg=[],e=this.stackedYPos=[],i==="overlap"?qi(r[this.stackKey],function(o){t.push(Wi(o.stackState)),e.push(Bi(o.stackState))}):qi(r[this.stackKey],function(o){t.push(o.negTotal+o.threshold),e.push(o.posTotal+o.threshold)}),{dataMin:Wi(t),dataMax:Bi(e)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}Ct.defaultOptions=Gi(se.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),Ct.compose=hr.compose,Fi(Ct.prototype,{pointValKey:"y",showLine:!0,pointClass:dr}),ur(Ct,"afterColumnTranslate",function(){let{options:s,points:t,yAxis:e}=this,i=gr(s.minPointLength,5),a=i/2,r=s.threshold||0,o=s.stacking,n=e.waterfall?.stacks[this.stackKey],h=this.getColumn("y",!0),p=r,d=r,l,u,c,m;for(let x=0;x<t.length;x++){let f=t[x],y=h[x],g=Fi({x:0,y:0,width:0,height:0},f.shapeArgs||{});f.box=g;let A=[0,y],v=f.y||0;if(o){if(n){let L=n[x];o==="overlap"?(u=L.stackState[L.stateIndex--],l=v>=0?u:u-v,oe(L,"absolutePos")&&delete L.absolutePos,oe(L,"absoluteNeg")&&delete L.absoluteNeg):(v>=0?(u=L.threshold+L.posTotal,L.posTotal-=v,l=u):(u=L.threshold+L.negTotal,L.negTotal-=v,l=u-v),!L.posTotal&&Tt(L.absolutePos)&&oe(L,"absolutePos")&&(L.posTotal=L.absolutePos,delete L.absolutePos),!L.negTotal&&Tt(L.absoluteNeg)&&oe(L,"absoluteNeg")&&(L.negTotal=L.absoluteNeg,delete L.absoluteNeg)),f.isSum||(L.connectorThreshold=L.threshold+L.stackTotal),e.reversed?(c=v>=0?l-v:l+v,m=l):(c=l,m=l-v),f.below=c<=r,g.y=e.translate(c,!1,!0,!1,!0),g.height=Math.abs(g.y-e.translate(m,!1,!0,!1,!0));let S=e.waterfall?.dummyStackItem;S&&(S.x=x,S.label=n[x].label,S.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[x],this.stackedYPos[x],void 0,this.xAxis))}}else l=Math.max(d,d+v)+A[0],g.y=e.translate(l,!1,!0,!1,!0),f.isSum?(g.y=e.translate(A[1],!1,!0,!1,!0),g.height=Math.min(e.translate(A[0],!1,!0,!1,!0),e.len)-g.y,f.below=A[1]<=r):f.isIntermediateSum?(v>=0?(c=A[1]+p,m=p):(c=p,m=A[1]+p),e.reversed&&(c^=m,m^=c,c^=m),g.y=e.translate(c,!1,!0,!1,!0),g.height=Math.abs(g.y-Math.min(e.translate(m,!1,!0,!1,!0),e.len)),p+=A[1],f.below=c<=r):(g.height=y>0?e.translate(d,!1,!0,!1,!0)-g.y:e.translate(d,!1,!0,!1,!0)-e.translate(d-y,!1,!0,!1,!0),f.below=(d+=y)<r),g.height<0&&(g.y+=g.height,g.height*=-1);f.plotY=g.y,f.yBottom=g.y+g.height,g.height<=i&&!f.isNull?(g.height=i,g.y-=a,f.yBottom=g.y+g.height,f.plotY=g.y,v<0?f.minPointLengthOffset=-a:f.minPointLengthOffset=a):(f.isNull&&(g.width=0),f.minPointLengthOffset=0);let C=f.plotY+(f.negative?g.height:0);f.below&&(f.plotY+=g.height),f.tooltipPos&&(this.chart.inverted?f.tooltipPos[0]=e.len-C:f.tooltipPos[1]=C),f.isInside=this.isPointInside(f);let X=ae(f.yBottom,this.borderWidth);g.y=ae(g.y,this.borderWidth),g.height=X-g.y,Gi(!0,f.shapeArgs,g)}},{order:2}),z().registerSeriesType("waterfall",Ct);let F=w();F.RadialAxis=Ri,wt.compose(F.Axis,F.Chart,F.Legend),ee.compose(F.Axis,F.Chart,F.Legend),ce.compose(F.Chart,F.Pointer,F.Series),Di.compose(F.Axis,F.Chart,F.Pointer,F.Series,F.Tick,F.Point,z().seriesTypes.areasplinerange,z().seriesTypes.column,z().seriesTypes.line,z().seriesTypes.spline),Ct.compose(F.Axis,F.Chart);let fr=F;return Oe.default})())});export{br as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as X,e as jt}from"./chunk-ZW5NV4UO.js";var Bt=jt((B,Y)=>{(function(E,L){typeof B=="object"&&typeof Y=="object"?Y.exports=L(E._Highcharts,E._Highcharts.AST,E._Highcharts.Chart):typeof define=="function"&&define.amd?define("highcharts/modules/exporting",["highcharts/highcharts"],function(D){return L(D,D.AST,D.Chart)}):typeof B=="object"?B["highcharts/modules/exporting"]=L(E._Highcharts,E._Highcharts.AST,E._Highcharts.Chart):E.Highcharts=L(E.Highcharts,E.Highcharts.AST,E.Highcharts.Chart)})("u"<typeof window?B:window,(E,L,D)=>(()=>{"use strict";var q,W,pt={660:s=>{s.exports=L},944:s=>{s.exports=E},960:s=>{s.exports=D}},Z={};function v(s){var t=Z[s];if(t!==void 0)return t.exports;var e=Z[s]={exports:{}};return pt[s](e,e.exports,v),e.exports}v.n=s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return v.d(t,{a:t}),t},v.d=(s,t)=>{for(var e in t)v.o(t,e)&&!v.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},v.o=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var Q={};v.d(Q,{default:()=>It});var ht=v(944),C=v.n(ht),dt=v(660),G=v.n(dt),ut=v(960),gt=v.n(ut),_=q||(q={});_.compose=function(s){return s.navigation||(s.navigation=new tt(s)),s};class tt{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(o=>{o.call(this.chart,t,e)})}}_.Additions=tt;let ft=q,{isSafari:mt,win:S,win:{document:U}}=C(),{error:yt}=C(),et=S.URL||S.webkitURL||S;function z(s,t){let e=S.navigator,o=U.createElement("a");if(typeof s!="string"&&!(s instanceof String)&&e.msSaveOrOpenBlob)return void e.msSaveOrOpenBlob(s,t);if(s=""+s,e.userAgent.length>1e3)throw Error("Input too long");let n=/Edge\/\d+/.test(e.userAgent);if((mt&&typeof s=="string"&&s.indexOf("data:application/pdf")===0||n||s.length>2e6)&&!(s=(function(i){let r=i.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(r&&r.length>3&&S.atob&&S.ArrayBuffer&&S.Uint8Array&&S.Blob&&et.createObjectURL){let c=S.atob(r[3]),a=new S.ArrayBuffer(c.length),l=new S.Uint8Array(a);for(let d=0;d<l.length;++d)l[d]=c.charCodeAt(d);return et.createObjectURL(new S.Blob([l],{type:r[1]}))}})(s)||""))throw Error("Failed to convert to blob");if(o.download!==void 0)o.href=s,o.download=t,U.body.appendChild(o),o.click(),U.body.removeChild(o);else try{if(!S.open(s,"chart"))throw Error("Failed to open window")}catch{S.location.href=s}}let{isTouchDevice:xt}=C(),wt={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.5.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${C().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen?.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.exporting?.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){await this.exporting?.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){await this.exporting?.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){await this.exporting?.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){await this.exporting?.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:xt?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};(function(s){let t=[];function e(n,i,r,c){return[["M",n,i+2.5],["L",n+r,i+2.5],["M",n,i+c/2+.5],["L",n+r,i+c/2+.5],["M",n,i+c-1.5],["L",n+r,i+c-1.5]]}function o(n,i,r,c){let a=c/3-2;return[].concat(this.circle(r-a,i,a,a),this.circle(r-a,i+a+4,a,a),this.circle(r-a,i+2*(a+4),a,a))}s.compose=function(n){if(t.indexOf(n)===-1){t.push(n);let i=n.prototype.symbols;i.menu=e,i.menuball=o.bind(i)}}})(W||(W={}));let bt=W,{composed:vt}=C(),{addEvent:K,fireEvent:nt,pushUnique:St}=C();function Ct(){this.fullscreen=new it(this)}class it{static compose(t){St(vt,"Fullscreen")&&K(t,"beforeRender",Ct)}constructor(t){this.chart=t,this.isOpen=!1;let e=t.renderTo;!this.browserProps&&(typeof e.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:e.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:e.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:e.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let t=this,e=t.chart,o=e.options.chart;nt(e,"fullscreenClose",void 0,function(){t.isOpen&&t.browserProps&&e.container.ownerDocument instanceof Document&&e.container.ownerDocument[t.browserProps.exitFullscreen](),t.unbindFullscreenEvent&&(t.unbindFullscreenEvent=t.unbindFullscreenEvent()),e.setSize(t.origWidth,t.origHeight,!1),t.origWidth=void 0,t.origHeight=void 0,o.width=t.origWidthOption,o.height=t.origHeightOption,t.origWidthOption=void 0,t.origHeightOption=void 0,t.isOpen=!1,t.setButtonText()})}open(){let t=this,e=t.chart,o=e.options.chart;nt(e,"fullscreenOpen",void 0,function(){if(o&&(t.origWidthOption=o.width,t.origHeightOption=o.height),t.origWidth=e.chartWidth,t.origHeight=e.chartHeight,t.browserProps){let n=K(e.container.ownerDocument,t.browserProps.fullscreenChange,function(){t.isOpen?(t.isOpen=!1,t.close()):(e.setSize(null,null,!1),t.isOpen=!0,t.setButtonText())}),i=K(e,"destroy",n);t.unbindFullscreenEvent=()=>{n(),i()};let r=e.renderTo[t.browserProps.requestFullscreen]();r&&r.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let t=this.chart,e=t.exporting?.divElements,o=t.options.exporting,n=o&&o.buttons&&o.buttons.contextButton.menuItems,i=t.options.lang;if(o?.menuItemDefinitions&&i?.exitFullscreen&&i.viewFullscreen&&n&&e){let r=e[n.indexOf("viewFullscreen")];r&&G().setElementHTML(r,this.isOpen?i.exitFullscreen:o.menuItemDefinitions.viewFullscreen?.textKey||i.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:ot}=C(),{discardElement:Et,objectEach:rt}=C(),$={ajax:function(s){let t={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},e=new XMLHttpRequest;function o(n,i){s.error&&s.error(n,i)}if(!s.url)return!1;e.open((s.type||"get").toUpperCase(),s.url,!0),s.headers?.["Content-Type"]||e.setRequestHeader("Content-Type",t[s.dataType||"json"]||t.text),rt(s.headers,function(n,i){e.setRequestHeader(i,n)}),s.responseType&&(e.responseType=s.responseType),e.onreadystatechange=function(){let n;if(e.readyState===4){if(e.status===200){if(s.responseType!=="blob"&&(n=e.responseText,s.dataType==="json"))try{n=JSON.parse(n)}catch(i){if(i instanceof Error)return o(e,i)}return s.success?.(n,e)}o(e,e.responseText)}},s.data&&typeof s.data!="string"&&(s.data=JSON.stringify(s.data)),e.send(s.data)},getJSON:function(s,t){$.ajax({url:s,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})}};$.post=async function(s,t,e){let o=new ot.FormData;rt(t,function(i,r){o.append(r,i)}),o.append("b64","true");let n=await ot.fetch(s,X({method:"POST",body:o},e));if(n.ok){let i=await n.text(),r=document.createElement("a");r.href=`data:${t.type};base64,${i}`,r.download=t.filename,r.click(),Et(r)}};let{defaultOptions:Ot,setOptions:Tt}=C(),{composed:kt,doc:P,isFirefox:Ft,isMS:I,isSafari:V,SVG_NS:Rt,win:w}=C(),{addEvent:F,clearTimeout:J,createElement:A,css:O,discardElement:st,error:Nt,extend:H,find:Pt,fireEvent:M,isObject:Ht,merge:T,objectEach:Lt,pick:j,pushUnique:At,removeEvent:Mt,splat:Dt,uniqueKey:Ut}=C();G().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),G().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let at=w.URL||w.webkitURL||w;class u{constructor(t,e){this.options={},this.chart=t,this.options=e,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(t){return t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(t,e,o){let n=await u.loadImage(t),i=P.createElement("canvas"),r=i?.getContext("2d");if(r)return i.height=n.height*e,i.width=n.width*e,r.drawImage(n,0,0,i.width,i.height),i.toDataURL(o);throw Error("No canvas found!")}static async fetchCSS(t){let e=await fetch(t).then(n=>n.text()),o=new CSSStyleSheet;return o.replaceSync(e),o}static async handleStyleSheet(t,e){try{for(let o of Array.from(t.cssRules)){if(o instanceof CSSImportRule){let n=await u.fetchCSS(o.href);await u.handleStyleSheet(n,e)}if(o instanceof CSSFontFaceRule){let n=o.cssText;if(t.href){let i=t.href,r=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;n=n.replace(r,(c,a,l)=>{let d=new URL(l,i).href;return`url(${a}${d}${a})`})}e.push(n)}}}catch{if(t.href){let o=await u.fetchCSS(t.href);await u.handleStyleSheet(o,e)}}}static async fetchStyleSheets(){let t=[];for(let e of Array.from(P.styleSheets))await u.handleStyleSheet(e,t);return t}static async inlineFonts(t){let e=await u.fetchStyleSheets(),o=/url\(([^)]+)\)/g,n=[],i=e.join(`
|
|
2
|
+
`),r;for(;r=o.exec(i);){let d=r[1].replace(/['"]/g,"");n.includes(d)||n.push(d)}let c=d=>{let f="",h=new Uint8Array(d);for(let p=0;p<h.byteLength;p++)f+=String.fromCharCode(h[p]);return btoa(f)},a={};for(let d of n)try{let f=await fetch(d),h=f.headers.get("Content-Type")||"",p=c(await f.arrayBuffer());a[d]=`data:${h};base64,${p}`}catch{}i=i.replace(o,(d,f)=>{let h=f.replace(/['"]/g,"");return`url(${a[h]||h})`});let l=document.createElementNS("http://www.w3.org/2000/svg","style");return l.textContent=i,t.append(l),t}static loadImage(t){return new Promise((e,o)=>{let n=new w.Image;n.crossOrigin="Anonymous",n.onload=()=>{setTimeout(()=>{e(n)},u.loadEventDeferDelay)},n.onerror=i=>{o(i)},n.src=t})}static prepareImageOptions(t){let e=t?.type||"image/png",o=t?.libURL||Ot.exporting?.libURL;return{type:e,filename:(t?.filename||"chart")+"."+(e==="image/svg+xml"?"svg":e.split("/")[1]),scale:t?.scale||1,libURL:o?.slice(-1)!=="/"?o+"/":o}}static sanitizeSVG(t,e){let o=t.indexOf("</svg>")+6,n=t.indexOf("<foreignObject")>-1,i=t.substr(o);return t=t.substr(0,o),n?t=t.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />"):i&&e?.exporting?.allowHTML&&(i='<foreignObject x="0" y="0" width="'+e.chart.width+'" height="'+e.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"</body></foreignObject>",t=t.replace("</svg>",i+"</svg>")),t=t.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/\n+/g," ").replace(/ /g,"\xA0").replace(/­/g,"\xAD")}static svgToDataURL(t){let e=w.navigator.userAgent,o=e.indexOf("WebKit")>-1&&0>e.indexOf("Chrome");try{if(!o&&t.indexOf("<foreignObject")===-1)return at.createObjectURL(new w.Blob([t],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}addButton(t){let e,o=this,n=o.chart,i=n.renderer,r=T(n.options.navigation?.buttonOptions,t),c=r.onclick,a=r.menuItems,l=r.symbolSize||12;if(r.enabled===!1||!r.theme)return;let d=n.styledMode?{}:r.theme,f=()=>{};c?f=function(p){p&&p.stopPropagation(),c.call(n,p)}:a&&(f=function(p){p&&p.stopPropagation(),o.contextMenu(h.menuClassName,a,h.translateX||0,h.translateY||0,h.width||0,h.height||0,h),h.setState(2)}),r.text&&r.symbol?d.paddingLeft=j(d.paddingLeft,30):r.text||H(d,{width:r.width,height:r.height,padding:0});let h=i.button(r.text||"",0,0,f,d,void 0,void 0,void 0,void 0,r.useHTML).addClass(t.className||"").attr({title:j(n.options.lang[r._titleKey||r.titleKey],"")});h.menuClassName=t.menuClassName||"highcharts-menu-"+o.btnCount++,r.symbol&&(e=i.symbol(r.symbol,Math.round((r.symbolX||0)-l/2),Math.round((r.symbolY||0)-l/2),l,l,{width:l,height:l}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(h),n.styledMode||e.attr({stroke:r.symbolStroke,fill:r.symbolFill,"stroke-width":r.symbolStrokeWidth||1})),h.add(o.group).align(H(r,{width:h.width,x:j(r.x,o.buttonOffset)}),!0,"spacingBox"),o.buttonOffset+=((h.width||0)+(r.buttonSpacing||0))*(r.align==="right"?-1:1),o.svgElements.push(h,e)}afterPrint(){let t=this.chart;if(!this.printReverseInfo)return;let{childNodes:e,origDisplay:o,resetParams:n}=this.printReverseInfo;this.moveContainers(t.renderTo),[].forEach.call(e,function(i,r){i.nodeType===1&&(i.style.display=o[r]||"")}),this.isPrinting=!1,n&&t.setSize.apply(t,n),delete this.printReverseInfo,u.printingChart=void 0,M(t,"afterPrint")}beforePrint(){let t=this.chart,e=P.body,o=this.options.printMaxWidth,n={childNodes:e.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,t.pointer?.reset(void 0,0),M(t,"beforePrint"),o&&t.chartWidth>o&&(n.resetParams=[t.options.chart.width,void 0,!1],t.setSize(o,void 0,!1)),[].forEach.call(n.childNodes,function(i,r){i.nodeType===1&&(n.origDisplay[r]=i.style.display,i.style.display="none")}),this.moveContainers(e),this.printReverseInfo=n}contextMenu(t,e,o,n,i,r,c){let a=this,l=a.chart,d=l.options.navigation,f=l.chartWidth,h=l.chartHeight,p="cache-"+t,x=Math.max(i,r),b,m=l[p];m||(a.contextMenuEl=l[p]=m=A("div",{className:t},X({position:"absolute",zIndex:1e3,padding:x+"px",pointerEvents:"auto"},l.renderer.style),l.scrollablePlotArea?.fixedDiv||l.container),b=A("ul",{className:"highcharts-menu"},l.styledMode?{}:{listStyle:"none",margin:0,padding:0},m),l.styledMode||O(b,H({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},d?.menuStyle||{})),m.hideMenu=function(){O(m,{display:"none"}),c&&c.setState(0),l.exporting&&(l.exporting.openMenu=!1),O(l.renderTo,{overflow:"hidden"}),O(l.container,{overflow:"hidden"}),J(m.hideTimer),M(l,"exportMenuHidden")},a.events?.push(F(m,"mouseleave",function(){m.hideTimer=w.setTimeout(m.hideMenu,500)}),F(m,"mouseenter",function(){J(m.hideTimer)}),F(P,"mouseup",function(g){l.pointer?.inClass(g.target,t)||m.hideMenu()}),F(m,"click",function(){l.exporting?.openMenu&&m.hideMenu()})),e.forEach(function(g){if(typeof g=="string"&&a.options.menuItemDefinitions?.[g]&&(g=a.options.menuItemDefinitions[g]),Ht(g,!0)){let R;g.separator?R=A("hr",void 0,void 0,b):(g.textKey==="viewData"&&a.isDataTableVisible&&(g.textKey="hideData"),R=A("li",{className:"highcharts-menu-item",onclick:function(N){N&&N.stopPropagation(),m.hideMenu(),typeof g!="string"&&g.onclick&&g.onclick.apply(l,arguments)}},void 0,b),G().setElementHTML(R,g.text||l.options.lang[g.textKey]),l.styledMode||(R.onmouseover=function(){O(this,d?.menuItemHoverStyle||{})},R.onmouseout=function(){O(this,d?.menuItemStyle||{})},O(R,H({cursor:"pointer"},d?.menuItemStyle||{})))),a.divElements.push(R)}}),a.divElements.push(b,m),a.menuHeight=m.offsetHeight,a.menuWidth=m.offsetWidth);let y={display:"block"};o+(a.menuWidth||0)>f?y.right=f-o-i-x+"px":y.left=o-x+"px",n+r+(a.menuHeight||0)>h&&c.alignOptions?.verticalAlign!=="top"?y.bottom=h-n-x+"px":y.top=n+r-x+"px",O(m,y),O(l.renderTo,{overflow:""}),O(l.container,{overflow:""}),l.exporting&&(l.exporting.openMenu=!0),M(l,"exportMenuShown")}destroy(t){let e,o=t?t.target:this.chart,{divElements:n,events:i,svgElements:r}=this;r.forEach((c,a)=>{c&&(c.onclick=c.ontouchstart=null,o[e="cache-"+c.menuClassName]&&delete o[e],r[a]=c.destroy())}),r.length=0,this.group&&(this.group.destroy(),delete this.group),n.forEach(function(c,a){c&&(J(c.hideTimer),Mt(c,"mouseleave"),n[a]=c.onmouseout=c.onmouseover=c.ontouchstart=c.onclick=null,st(c))}),n.length=0,i&&(i.forEach(function(c){c()}),i.length=0)}async downloadSVG(t,e){let o,n={svg:t,exportingOptions:e,exporting:this};if(M(u.prototype,"downloadSVG",n),n.defaultPrevented)return;let{type:i,filename:r,scale:c,libURL:a}=u.prepareImageOptions(e);if(i==="application/pdf")throw Error("Offline exporting logic for PDF type is not found.");if(i==="image/svg+xml"){if(w.MSBlobBuilder!==void 0){let d=new w.MSBlobBuilder;d.append(t),o=d.getBlob("image/svg+xml")}else o=u.svgToDataURL(t);z(o,r)}else{o=u.svgToDataURL(t);try{u.objectURLRevoke=!0;let d=await u.imageToDataURL(o,c,i);z(d,r)}catch(d){if(d.message==="No canvas found!")throw d;if(t.length>1e8)throw Error("Input too long");let f=P.createElement("canvas"),h=f.getContext("2d"),p=t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),x=t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(h&&p&&x){let b=p[1]*c,m=x[1]*c;if(f.width=b,f.height=m,!w.canvg){var l;u.objectURLRevoke=!0,await(l=a+"canvg.js",new Promise((y,g)=>{let R=U.getElementsByTagName("head")[0],N=U.createElement("script");N.type="text/javascript",N.src=l,N.onload=()=>{y()},N.onerror=()=>{let ct=`Error loading script ${l}`;yt(ct),g(Error(ct))},R.appendChild(N)}))}w.canvg.Canvg.fromString(h,t).start(),z(w.navigator.msSaveOrOpenBlob?f.msToBlob():f.toDataURL(i),r)}}finally{if(u.objectURLRevoke)try{at.revokeObjectURL(o)}catch{}}}}async exportChart(t,e){if((t=T(this.options,t)).local)await this.localExport(t,e||{});else{let o=this.getSVGForExport(t,e);t.url&&await $.post(t.url,{filename:t.filename?t.filename.replace(/\//g,"-"):this.getFilename(),type:t.type,width:t.width,scale:t.scale,svg:o},t.fetchOptions)}}async fallbackToServer(t,e){t.fallbackToExportServer===!1?t.error?t.error(t,e):Nt(28,!0):t.type==="application/pdf"&&(t.local=!1,await this.exportChart(t))}getChartHTML(t){let e=this.chart;return t&&this.inlineStyles(),this.resolveCSSVariables(),e.container.innerHTML}getFilename(){let t=this.chart.userOptions.title?.text,e=this.options.filename;return e?e.replace(/\//g,"-"):(typeof t=="string"&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||e.length<5)&&(e="chart"),e)}getSVG(t){let e=this.chart,o,n,i=T(e.options,t);i.plotOptions=T(e.userOptions.plotOptions,t?.plotOptions),i.time=T(e.userOptions.time,t?.time);let r=A("div",void 0,{position:"absolute",top:"-9999em",width:e.chartWidth+"px",height:e.chartHeight+"px"},P.body),c=e.renderTo.style.width,a=e.renderTo.style.height,l=i.exporting?.sourceWidth||i.chart.width||/px$/.test(c)&&parseInt(c,10)||(i.isGantt?800:600),d=i.exporting?.sourceHeight||i.chart.height||/px$/.test(a)&&parseInt(a,10)||400;H(i.chart,{animation:!1,renderTo:r,forExport:!0,renderer:"SVGRenderer",width:l,height:d}),i.exporting&&(i.exporting.enabled=!1),delete i.data,i.series=[],e.series.forEach(function(p){(n=T(p.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:p.visible})).isInternal||i?.series?.push(n)});let f={};e.axes.forEach(function(p){p.userOptions.internalKey||(p.userOptions.internalKey=Ut()),i&&!p.options.isInternal&&(f[p.coll]||(f[p.coll]=!0,i[p.coll]=[]),i[p.coll].push(T(p.userOptions,{visible:p.visible,type:p.type,uniqueNames:p.uniqueNames})))}),i.colorAxis=e.userOptions.colorAxis;let h=new e.constructor(i,e.callback);return t&&["xAxis","yAxis","series"].forEach(function(p){t[p]&&h.update({[p]:t[p]})}),e.axes.forEach(function(p){let x=Pt(h.axes,b=>b.options.internalKey===p.userOptions.internalKey);if(x){let b=p.getExtremes(),m=Dt(t?.[p.coll]||{})[0],y="min"in m?m.min:b.userMin,g="max"in m?m.max:b.userMax;(y!==void 0&&y!==x.min||g!==void 0&&g!==x.max)&&x.setExtremes(y??void 0,g??void 0,!0,!1)}}),o=h.exporting?.getChartHTML(e.styledMode||i.exporting?.applyStyleSheets)||"",M(e,"getSVG",{chartCopy:h}),o=u.sanitizeSVG(o,i),i=void 0,h.destroy(),st(r),o}getSVGForExport(t,e){let o=this.options;return this.getSVG(T({chart:{borderRadius:0}},o.chartOptions,e,{exporting:{sourceWidth:t?.sourceWidth||o.sourceWidth,sourceHeight:t?.sourceHeight||o.sourceHeight}}))}inlineStyles(){let t,e=u.inlineDenylist,o=u.inlineAllowlist,n={},i=A("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},P.body),r=i.contentWindow?.document;r&&r.body.appendChild(r.createElementNS(Rt,"svg")),(function c(a){let l,d,f,h,p,x,b={};if(r&&a.nodeType===1&&u.unstyledElements.indexOf(a.nodeName)===-1){if(l=w.getComputedStyle(a,null),d=a.nodeName==="svg"?{}:w.getComputedStyle(a.parentNode,null),!n[a.nodeName]){t=r.getElementsByTagName("svg")[0],f=r.createElementNS(a.namespaceURI,a.nodeName),t.appendChild(f);let m=w.getComputedStyle(f,null),y={};for(let g in m)g.length<1e3&&typeof m[g]=="string"&&!/^\d+$/.test(g)&&(y[g]=m[g]);n[a.nodeName]=y,a.nodeName==="text"&&delete n.text.fill,t.removeChild(f)}for(let m in l)(Ft||I||V||Object.hasOwnProperty.call(l,m))&&(function(y,g){if(h=p=!1,o.length){for(x=o.length;x--&&!p;)p=o[x].test(g);h=!p}for(g==="transform"&&y==="none"&&(h=!0),x=e.length;x--&&!h;){if(g.length>1e3)throw Error("Input too long");h=e[x].test(g)||typeof y=="function"}!h&&(d[g]!==y||a.nodeName==="svg")&&n[a.nodeName][g]!==y&&(u.inlineToAttributes&&u.inlineToAttributes.indexOf(g)===-1?b[g]=y:y&&a.setAttribute(u.hyphenate(g),y))})(l[m],m);if(O(a,b),a.nodeName==="svg"&&a.setAttribute("stroke-width","1px"),a.nodeName==="text")return;[].forEach.call(a.children||a.childNodes,c)}})(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),i.parentNode.removeChild(i)}async localExport(t,e){let o=this.chart,n,i,r=null,c;if(I&&o.styledMode&&!u.inlineAllowlist.length&&u.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),I&&(t.type==="application/pdf"||o.container.getElementsByTagName("image").length&&t.type!=="image/svg+xml")||t.type==="application/pdf"&&[].some.call(o.container.getElementsByTagName("image"),function(l){let d=l.getAttribute("href");return d!==""&&typeof d=="string"&&d.indexOf("data:")!==0}))return void await this.fallbackToServer(t,Error("Image type not supported for this chart/browser."));let a=F(o,"getSVG",l=>{i=l.chartCopy.options,c=(n=l.chartCopy.container.cloneNode(!0))&&n.getElementsByTagName("image")||[]});try{let l;for(let h of(this.getSVGForExport(t,e),c?Array.from(c):[]))if(r=h.getAttributeNS("http://www.w3.org/1999/xlink","href")){u.objectURLRevoke=!1;let p=await u.imageToDataURL(r,t?.scale||1,t?.type||"image/png");h.setAttributeNS("http://www.w3.org/1999/xlink","href",p)}else h.parentNode.removeChild(h);let d=n?.querySelector("svg");d&&!t.chartOptions?.chart?.style?.fontFamily&&await u.inlineFonts(d);let f=(l=n?.innerHTML,u.sanitizeSVG(l||"",i));if(f.indexOf("<foreignObject")>-1&&t.type!=="image/svg+xml"&&(I||t.type==="application/pdf"))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(f,H({filename:this.getFilename()},t)),f}catch(l){await this.fallbackToServer(t,l)}finally{a()}}moveContainers(t){let e=this.chart,{scrollablePlotArea:o}=e;(o?[o.fixedDiv,o.scrollingContainer]:[e.container]).forEach(function(n){t.appendChild(n)})}print(){let t=this.chart;this.isPrinting||(u.printingChart=t,V||this.beforePrint(),setTimeout(()=>{w.focus(),w.print(),V||setTimeout(()=>{t.exporting?.afterPrint()},1e3)},1))}render(){let t=this,{chart:e,options:o}=t,n=t?.isDirty||!t?.svgElements.length;t.buttonOffset=0,t.isDirty&&t.destroy(),n&&o.enabled!==!1&&(t.events=[],t.group||(t.group=e.renderer.g("exporting-group").attr({zIndex:3}).add()),Lt(o?.buttons,function(i){t.addButton(i)}),t.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(t=>{["color","fill","stop-color","stroke"].forEach(e=>{t.getAttribute(e)?.includes("var(")&&t.setAttribute(e,getComputedStyle(t).getPropertyValue(e)),t.style?.[e]?.includes("var(")&&(t.style[e]=getComputedStyle(t).getPropertyValue(e))})})}update(t,e){this.isDirty=!0,T(!0,this.options,t),j(e,!0)&&this.chart.redraw()}}u.inlineAllowlist=[],u.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],u.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],u.loadEventDeferDelay=150*!!I,u.unstyledElements=["clipPath","defs","desc"],(function(s){function t(n){let i=n.exporting;i&&(i.render(),F(n,"redraw",function(){this.exporting?.render()}),F(n,"destroy",function(){this.exporting?.destroy()}))}function e(){let n=this;n.options.exporting&&(n.exporting=new s(n,n.options.exporting),ft.compose(n).navigation.addUpdate((i,r)=>{n.exporting&&(n.exporting.isDirty=!0,T(!0,n.options.navigation,i),j(r,!0)&&n.redraw())}))}function o({alignTo:n,key:i,textPxLength:r}){let c=this.options.exporting,{align:a,buttonSpacing:l=0,verticalAlign:d,width:f=0}=T(this.options.navigation?.buttonOptions,c?.buttons?.contextButton),h=n.width-r,p=f+l;(c?.enabled??!0)&&i==="title"&&a==="right"&&d==="top"&&h<2*p&&(h<p?n.width-=p:this.title?.alignValue!=="left"&&(n.x-=p-h/2))}s.compose=function(n,i){bt.compose(i),it.compose(n),At(kt,"Exporting")&&(H(gt().prototype,{exportChart:async function(r,c){await this.exporting?.exportChart(r,c)},getChartHTML:function(r){return this.exporting?.getChartHTML(r)},getFilename:function(){return this.exporting?.getFilename()},getSVG:function(r){return this.exporting?.getSVG(r)},print:function(){return this.exporting?.print()}}),n.prototype.callbacks.push(t),F(n,"afterInit",e),F(n,"layOutTitle",o),V&&w.matchMedia("print").addListener(function(r){s.printingChart&&(r.matches?s.printingChart.exporting?.beforePrint():s.printingChart.exporting?.afterPrint())}),Tt(wt))}})(u||(u={}));let lt=u,k=C();k.Exporting=lt,k.HttpUtilities=k.HttpUtilities||$,k.ajax=k.HttpUtilities.ajax,k.getJSON=k.HttpUtilities.getJSON,k.post=k.HttpUtilities.post,lt.compose(k.Chart,k.Renderer);let It=C();return Q.default})())});export default Bt();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as it}from"./chunk-ZW5NV4UO.js";var lt=it((v,O)=>{(function(d,f){typeof v=="object"&&typeof O=="object"?O.exports=f(d._Highcharts,d._Highcharts.SeriesRegistry,d._Highcharts.Color):typeof define=="function"&&define.amd?define("highcharts/modules/solid-gauge",["highcharts/highcharts"],function(x){return f(x,x.SeriesRegistry,x.Color)}):typeof v=="object"?v["highcharts/modules/solid-gauge"]=f(d._Highcharts,d._Highcharts.SeriesRegistry,d._Highcharts.Color):d.Highcharts=f(d.Highcharts,d.Highcharts.SeriesRegistry,d.Highcharts.Color)})("u"<typeof window?v:window,(d,f,x)=>(()=>{"use strict";var b,A,W={512:e=>{e.exports=f},620:e=>{e.exports=x},944:e=>{e.exports=d}},P={};function l(e){var t=P[e];if(t!==void 0)return t.exports;var o=P[e]={exports:{}};return W[e](o,o.exports,l),o.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var S={};l.d(S,{default:()=>at});var F=l(944),p=l.n(F);let{defaultOptions:nt}=p(),{noop:dt}=p(),{addEvent:ht,extend:ct,isObject:G,merge:J,relativeLength:gt}=p(),K={radius:0,scope:"stack",where:void 0};function Q(e,t){return G(e)||(e={radius:e||0}),J(K,t,e)}let U=Q;var X=l(512),T=l.n(X),Y=l(620);let{parse:w}=l.n(Y)(),{merge:Z}=p();(b=A||(A={})).initDataClasses=function(e){let t=this.chart,o=this.legendItem=this.legendItem||{},a=this.options,s=e.dataClasses||[],n,c,i=t.options.chart.colorCount,h=0,r;this.dataClasses=c=[],o.labels=[];for(let g=0,m=s.length;g<m;++g)n=Z(n=s[g]),c.push(n),(t.styledMode||!n.color)&&(a.dataClassColor==="category"?(t.styledMode||(i=(r=t.options.colors||[]).length,n.color=r[h]),n.colorIndex=h,++h===i&&(h=0)):n.color=w(a.minColor).tweenTo(w(a.maxColor),m<2?.5:g/(m-1)))},b.initStops=function(){let e=this.options,t=this.stops=e.stops||[[0,e.minColor||""],[1,e.maxColor||""]];for(let o=0,a=t.length;o<a;++o)t[o].color=w(t[o][1])},b.normalizedValue=function(e){let t=this.max||0,o=this.min||0;return this.logarithmic&&(e=this.logarithmic.log2lin(e)),1-(t-e)/(t-o||1)},b.toColor=function(e,t){let o,a,s,n,c,i,h=this.dataClasses,r=this.stops;if(h){for(i=h.length;i--;)if(a=(c=h[i]).from,s=c.to,(a===void 0||e>=a)&&(s===void 0||e<=s)){n=c.color,t&&(t.dataClass=i,t.colorIndex=c.colorIndex);break}}else{for(o=this.normalizedValue(e),i=r.length;i--&&!(o>r[i][0]););a=r[i]||r[i+1],o=1-((s=r[i+1]||a)[0]-o)/(s[0]-a[0]||1),n=a.color.tweenTo(s.color,o)}return n};let $=A,{extend:tt}=p(),et=function(e){tt(e,$)},{gauge:M,pie:ot}=T().seriesTypes,{clamp:N,extend:st,isNumber:z,merge:rt,pick:H,pInt:D}=p();class V extends M{translate(){let t=this.yAxis;et(t),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(),M.prototype.translate.call(this)}drawPoints(){let t,o=this.yAxis,a=o.center,s=this.options,n=this.chart.renderer,c=s.overshoot,i=s.rounded&&s.borderRadius===void 0,h=z(c)?c/180*Math.PI:0;for(let r of(z(s.threshold)&&(t=o.startAngleRad+o.translate(s.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=H(t,o.startAngleRad),this.points))if(!r.isNull){let g=D(H(r.options.radius,s.radius,100))*a[2]/200,m=D(H(r.options.innerRadius,s.innerRadius,60))*a[2]/200,L=Math.min(o.startAngleRad,o.endAngleRad),q=Math.max(o.startAngleRad,o.endAngleRad),u=r.graphic,y=o.startAngleRad+o.translate(r.y,void 0,void 0,void 0,!0),R,I,C=o.toColor(r.y,r),_=r.getClassName();C==="none"&&(C=r.color||this.color||"none"),C!=="none"&&(r.color=C),y=N(y,L-h,q+h),s.wrap===!1&&(y=N(y,L,q));let B=i?(g-m)/2/g:0,j=Math.min(y,this.thresholdAngleRad)-B,k=Math.max(y,this.thresholdAngleRad)+B;k-j>2*Math.PI&&(k=j+2*Math.PI);let E=i?"50%":0;s.borderRadius&&(E=U(s.borderRadius).radius),r.shapeArgs=R={x:a[0],y:a[1],r:g,innerR:m,start:j,end:k,borderRadius:E},r.startR=g,u?(I=R.d,u.animate(st({fill:C},R)),I&&(R.d=I)):r.graphic=u=n.arc(R).attr({fill:C,"sweep-flag":0}).add(this.group),this.chart.styledMode?this.yAxis?.stops&&(_=_.replace(/highcharts-color-\d/gm,"").trim()):(s.linecap!=="square"&&u.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),u.attr({stroke:s.borderColor||"none","stroke-width":s.borderWidth||0})),u&&u.addClass(_)}}animate(t){t||(this.startAngleRad=this.thresholdAngleRad,ot.prototype.animate.call(this,t))}}V.defaultOptions=rt(M.defaultOptions,{colorByPoint:!0,dataLabels:{y:0}}),T().registerSeriesType("solidgauge",V);let at=p();return S.default})())});export default lt();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e as We}from"./chunk-ZW5NV4UO.js";var _e=We((J,ce)=>{(function(H,X){typeof J=="object"&&typeof ce=="object"?ce.exports=X(H._Highcharts,H._Highcharts.AST,H._Highcharts.Chart):typeof define=="function"&&define.amd?define("highcharts/modules/export-data",["highcharts/highcharts"],function($){return X($,$.AST,$.Chart)}):typeof J=="object"?J["highcharts/modules/export-data"]=X(H._Highcharts,H._Highcharts.AST,H._Highcharts.Chart):H.Highcharts=X(H.Highcharts,H.Highcharts.AST,H.Highcharts.Chart)})("u"<typeof window?J:window,(H,X,$)=>(()=>{"use strict";var ne,ye={660:o=>{o.exports=X},944:o=>{o.exports=H},960:o=>{o.exports=$}},de={};function S(o){var c=de[o];if(c!==void 0)return c.exports;var x=de[o]={exports:{}};return ye[o](x,x.exports,S),x.exports}S.n=o=>{var c=o&&o.__esModule?()=>o.default:()=>o;return S.d(c,{a:c}),c},S.d=(o,c)=>{for(var x in c)S.o(c,x)&&!S.o(o,x)&&Object.defineProperty(o,x,{enumerable:!0,get:c[x]})},S.o=(o,c)=>Object.prototype.hasOwnProperty.call(o,c);var pe={};S.d(pe,{default:()=>Fe});var we=S(944),j=S.n(we);let{isSafari:Te,win:g,win:{document:ie}}=j(),{error:$e}=j(),ue=g.URL||g.webkitURL||g;function ge(o){let c=o.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(c&&c.length>3&&g.atob&&g.ArrayBuffer&&g.Uint8Array&&g.Blob&&ue.createObjectURL){let x=g.atob(c[3]),O=new g.ArrayBuffer(x.length),V=new g.Uint8Array(O);for(let W=0;W<V.length;++W)V[W]=x.charCodeAt(W);return ue.createObjectURL(new g.Blob([V],{type:c[1]}))}}function re(o,c){let x=g.navigator,O=ie.createElement("a");if(typeof o!="string"&&!(o instanceof String)&&x.msSaveOrOpenBlob)return void x.msSaveOrOpenBlob(o,c);if(o=""+o,x.userAgent.length>1e3)throw Error("Input too long");let V=/Edge\/\d+/.test(x.userAgent);if((Te&&typeof o=="string"&&o.indexOf("data:application/pdf")===0||V||o.length>2e6)&&!(o=ge(o)||""))throw Error("Failed to convert to blob");if(O.download!==void 0)O.href=o,O.download=c,ie.body.appendChild(O),O.click(),ie.body.removeChild(O);else try{if(!g.open(o,"chart"))throw Error("Failed to open window")}catch{g.location.href=o}}function fe(o,c){let x=g.navigator,O=g.URL||g.webkitURL||g;try{if(x.msSaveOrOpenBlob&&g.MSBlobBuilder){let V=new g.MSBlobBuilder;return V.append(o),V.getBlob("image/svg+xml")}return O.createObjectURL(new g.Blob(["\uFEFF"+o],{type:c}))}catch{}}var ve=S(660),le=S.n(ve),De=S(960),Se=S.n(De);let Ce={exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:`
|
|
2
|
+
`},menuItemDefinitions:{downloadCSV:{textKey:"downloadCSV",onclick:function(){this.exporting?.downloadCSV()}},downloadXLS:{textKey:"downloadXLS",onclick:function(){this.exporting?.downloadXLS()}},viewData:{textKey:"viewData",onclick:function(){this.exporting?.wrapLoading(this.exporting.toggleDataTable)}}},showExportInProgress:!0,showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",hideData:"Hide data table",exportInProgress:"Exporting..."}},{getOptions:Ee,setOptions:Le}=j(),{composed:Ae,doc:He,win:me}=j(),{addEvent:se,defined:Oe,extend:xe,find:ke,fireEvent:Q,isNumber:Ve,pick:P,pushUnique:Ne}=j();(function(o){function c(){this.wrapLoading(()=>{let i=this.getCSV(!0);re(fe(i,"text/csv")||"data:text/csv,\uFEFF"+encodeURIComponent(i),this.getFilename()+".csv")})}function x(){this.wrapLoading(()=>{let i='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>'+this.getTable(!0)+"</body></html>";re(fe(i,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+me.btoa(unescape(encodeURIComponent(i))),this.getFilename()+".xls")})}function O(i){let l="",r=this.getDataRows(),t=this.options?.csv,a=P(t?.decimalPoint,t?.itemDelimiter!==","&&i?1.1.toLocaleString()[1]:"."),b=P(t?.itemDelimiter,a===","?";":","),p=t?.lineDelimiter;return r.forEach((s,n)=>{let f="",y=s.length;for(;y--;)typeof(f=s[y])=="string"&&(f=`"${f}"`),typeof f=="number"&&a!=="."&&(f=f.toString().replace(".",a)),s[y]=f;s.length=r.length?r[0].length:0,l+=s.join(b),n<r.length-1&&(l+=p)}),l}function V(i){let l,r,t=this.chart,a=t.hasParallelCoordinates,b=t.time,p=this.options?.csv||{},s=t.xAxis,n={},f=[],y=[],N=[],L=t.options.lang.exportData,C=L?.categoryHeader,q=L?.categoryDatetimeHeader,G=function(e,u,v){if(p.columnHeaderFormatter){let D=p.columnHeaderFormatter(e,u,v);if(D!==!1)return D}return!e&&C?C:!e.bindAxes&&q&&C?e.options.title&&e.options.title.text||(e.dateTime?q:C):i?{columnTitle:((v||0)>1?u:e.name)||"",topLevelColumnTitle:e.name}:e.name+((v||0)>1?" ("+u+")":"")},w=function(e,u,v){let D={},Y={};return u.forEach(function(B){let _=(e.keyToAxis&&e.keyToAxis[B]||B)+"Axis",M=Ve(v)?e.chart[_][v]:e[_];D[B]=M&&M.categories||[],Y[B]=M&&M.dateTime}),{categoryMap:D,dateTimeValueAxisMap:Y}},d=function(e,u){let v=e.pointArrayMap||["y"];return e.data.some(D=>D.y!==void 0&&D.name)&&u&&!u.categories&&e.exportKey!=="name"?["x",...v]:v},m=[],E,h,A,k=0,I,F;for(I in t.series.forEach(function(e){let u=e.options.keys,v=e.xAxis,D=u||d(e,v),Y=D.length,B=!e.requireSorting&&{},_=s.indexOf(v),M=w(e,D),be,R;if(e.options.includeInDataExport!==!1&&!e.options.isInternal&&e.visible!==!1){for(ke(m,function(he){return he[0]===_})||m.push([_,k]),R=0;R<Y;)A=G(e,D[R],D.length),N.push(A.columnTitle||A),i&&y.push(A.topLevelColumnTitle||A),R++;be={chart:e.chart,autoIncrement:e.autoIncrement,options:e.options,pointArrayMap:e.pointArrayMap,index:e.index},e.options.data?.forEach(function(he,ee){let T,te,ae,Z={series:be};a&&(M=w(e,D,ee)),e.pointClass.prototype.applyOptions.apply(Z,[he]);let oe=e.data[ee]&&e.data[ee].name;if(T=(Z.x??"")+","+oe,R=0,(!v||e.exportKey==="name"||!a&&v&&v.hasNames&&oe)&&(T=oe),B&&(B[T]&&(T+="|"+ee),B[T]=!0),n[T]){let U=`${T},${n[T].pointers[e.index]}`,z=T;n[T].pointers[e.index]&&(n[U]||(n[U]=[],n[U].xValues=[],n[U].pointers=[]),T=U),n[z].pointers[e.index]+=1}else{n[T]=[],n[T].xValues=[];let U=[];for(let z=0;z<e.chart.series.length;z++)U[z]=0;n[T].pointers=U,n[T].pointers[e.index]=1}for(n[T].x=Z.x,n[T].name=oe,n[T].xValues[_]=Z.x;R<Y;)te=D[R],ae=e.pointClass.prototype.getNestedProperty.apply(Z,[te]),n[T][k+R]=P(M.categoryMap[te][ae],M.dateTimeValueAxisMap[te]?b.dateFormat(p.dateFormat,ae):null,ae),R++}),k+=R}}),n)Object.hasOwnProperty.call(n,I)&&f.push(n[I]);for(h=i?[y,N]:[N],k=m.length;k--;)l=m[k][0],r=m[k][1],E=s[l],f.sort(function(e,u){return e.xValues[l]-u.xValues[l]}),F=G(E),h[0].splice(r,0,F),i&&h[1]&&h[1].splice(r,0,F),f.forEach(function(e){let u=e.name;E&&!Oe(u)&&(E.dateTime?(e.x instanceof Date&&(e.x=e.x.getTime()),u=b.dateFormat(p.dateFormat,e.x)):u=E.categories?P(E.names[e.x],E.categories[e.x],e.x):e.x),e.splice(r,0,u)});return Q(t,"exportData",{dataRows:h=h.concat(f)}),h}function W(i){let l=r=>{if(!r.tagName||r.tagName==="#text")return r.textContent||"";let t=r.attributes,a=`<${r.tagName}`;return t&&Object.keys(t).forEach(b=>{let p=t[b];a+=` ${b}="${p}"`}),a+=">",a+=r.textContent||"",(r.children||[]).forEach(b=>{a+=l(b)}),a+=`</${r.tagName}>`};return l(this.getTableAST(i))}function Ie(i){let l=0,r=[],t=this,a=t.chart,b=a.options,p=i?1.1.toLocaleString()[1]:".",s=P(t.options.useMultiLevelHeaders,!0),n=t.getDataRows(s),f=s?n.shift():null,y=n.shift(),N=function(w,d){let m=w.length;if(d.length!==m)return!1;for(;m--;)if(w[m]!==d[m])return!1;return!0},L=function(w,d,m,E){let h=P(E,""),A="highcharts-text"+(d?" "+d:"");return typeof h=="number"?(h=a.numberFormatter(h,-1,p,w==="th"?"":void 0),A="highcharts-number"):E||(A="highcharts-empty"),{tagName:w,attributes:m=xe({class:A},m),textContent:h}},{tableCaption:C}=t.options||{};C!==!1&&r.push({tagName:"caption",attributes:{class:"highcharts-table-caption"},textContent:typeof C=="string"?C:b.title?.text||b.lang.chartTitle});for(let w=0,d=n.length;w<d;++w)n[w].length>l&&(l=n[w].length);r.push((function(w,d,m){let E=[],h=0,A=m||d&&d.length,k,I=0,F;if(s&&w&&d&&!N(w,d)){let e=[];for(;h<A;++h)if((k=w[h])===w[h+1])++I;else if(I)e.push(L("th","highcharts-table-topheading",{scope:"col",colspan:I+1},k)),I=0;else{k===d[h]?t.options.useRowspanHeaders?(F=2,delete d[h]):(F=1,d[h]=""):F=1;let u=L("th","highcharts-table-topheading",{scope:"col"},k);F>1&&u.attributes&&(u.attributes.valign="top",u.attributes.rowspan=F),e.push(u)}E.push({tagName:"tr",children:e})}if(d){let e=[];for(h=0,A=d.length;h<A;++h)d[h]!==void 0&&e.push(L("th",null,{scope:"col"},d[h]));E.push({tagName:"tr",children:e})}return{tagName:"thead",children:E}})(f,y||[],Math.max(l,y?.length||0)));let q=[];n.forEach(function(w){let d=[];for(let m=0;m<l;m++)d.push(L(m?"td":"th",null,m?{}:{scope:"row"},w[m]));q.push({tagName:"tr",children:d})}),r.push({tagName:"tbody",children:q});let G={tree:{tagName:"table",id:`highcharts-data-table-${a.index}`,children:r}};return Q(a,"afterGetTableAST",G),G.tree}function Be(){this.toggleDataTable(!1)}function Me(i){let l=this.chart,r=(i=P(i,!this.isDataTableVisible))&&!this.dataTableDiv;if(r&&(this.dataTableDiv=He.createElement("div"),this.dataTableDiv.className="highcharts-data-table",l.renderTo.parentNode.insertBefore(this.dataTableDiv,l.renderTo.nextSibling)),this.dataTableDiv){let s=this.dataTableDiv.style,n=s.display;s.display=i?"block":"none",i?(this.dataTableDiv.innerHTML=le().emptyHTML,new(le())([this.getTableAST()]).addToDOM(this.dataTableDiv),Q(l,"afterViewData",{element:this.dataTableDiv,wasHidden:r||n!==s.display})):Q(l,"afterHideData")}this.isDataTableVisible=i;let t=this.divElements,a=this.options,b=a.buttons?.contextButton.menuItems,p=l.options.lang;if(a&&a.menuItemDefinitions&&p&&p.viewData&&p.hideData&&b&&t){let s=t[b.indexOf("viewData")];s&&le().setElementHTML(s,this.isDataTableVisible?p.hideData:p.viewData)}}function Ue(){this.toggleDataTable(!0)}function je(i){let l=this.chart,r=!!this.options.showExportInProgress,t=me.requestAnimationFrame||setTimeout;t(()=>{r&&l.showLoading(l.options.lang.exportInProgress),t(()=>{try{i.call(this)}finally{r&&l.hideLoading()}})})}function Pe(){let i=this.exporting,l=i?.dataTableDiv,r=(t,a)=>t.children[a].textContent;if(l&&i.options.allowTableSorting){let t=l.querySelector("thead tr");t&&t.childNodes.forEach(a=>{let b=l.querySelector("tbody");a.addEventListener("click",function(){let p=[...l.querySelectorAll("tr:not(thead tr)")],s=[...a.parentNode.children];if(i){let n,f;p.sort((n=s.indexOf(a),f=i.ascendingOrderInTable=!i.ascendingOrderInTable,(y,N)=>{let L,C;return L=r(f?y:N,n),C=r(f?N:y,n),L===""||C===""||isNaN(L)||isNaN(C)?L.toString().localeCompare(C):L-C})).forEach(y=>{b?.appendChild(y)}),s.forEach(y=>{["highcharts-sort-ascending","highcharts-sort-descending"].forEach(N=>{y.classList.contains(N)&&y.classList.remove(N)})}),a.classList.add(i.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending")}})})}}function Ke(){this.options?.exporting?.showTable&&!this.options.chart.forExport&&this.exporting?.viewData()}function Xe(){this.exporting?.dataTableDiv?.remove()}o.compose=function(i,l,r){if(!Ne(Ae,"ExportData"))return;xe(Se().prototype,{downloadCSV:function(){return this.exporting?.downloadCSV()},downloadXLS:function(){return this.exporting?.downloadXLS()},getCSV:function(a){return this.exporting?.getCSV(a)},getDataRows:function(a){return this.exporting?.getDataRows(a)},getTable:function(a){return this.exporting?.getTable(a)},getTableAST:function(a){return this.exporting?.getTableAST(a)},hideData:function(){return this.exporting?.hideData()},toggleDataTable:function(a){return this.exporting?.toggleDataTable(a)},viewData:function(){return this.exporting?.viewData()}});let t=l.prototype;if(!t.downloadCSV){se(i,"afterViewData",Pe),se(i,"render",Ke),se(i,"destroy",Xe),t.downloadCSV=c,t.downloadXLS=x,t.getCSV=O,t.getDataRows=V,t.getTable=W,t.getTableAST=Ie,t.hideData=Be,t.toggleDataTable=Me,t.wrapLoading=je,t.viewData=Ue,Le(Ce);let a=Ee().exporting?.buttons?.contextButton?.menuItems;a&&a.push("separator","downloadCSV","downloadXLS","viewData");let{arearange:b,gantt:p,map:s,mapbubble:n,treemap:f,xrange:y}=r.types;b&&(b.prototype.keyToAxis={low:"y",high:"y"}),p&&(p.prototype.exportKey="name",p.prototype.keyToAxis={start:"x",end:"x"}),s&&(s.prototype.exportKey="name"),n&&(n.prototype.exportKey="name"),f&&(f.prototype.exportKey="name"),y&&(y.prototype.keyToAxis={x2:"x"})}}})(ne||(ne={}));let Re=ne,K=j();K.dataURLtoBlob=K.dataURLtoBlob||ge,K.downloadURL=K.downloadURL||re,Re.compose(K.Chart,K.Exporting,K.Series);let Fe=j();return pe.default})())});export default _e();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-5CTM6JVQ.js";import"./chunk-ZW5NV4UO.js";export default a();
|