import{M as ht}from"./entry.783d4ced.js";function ct(P,g){for(var r=0;r<g.length;r++){const f=g[r];if(typeof f!="string"&&!Array.isArray(f)){for(const a in f)if(a!=="default"&&!(a in P)){const l=Object.getOwnPropertyDescriptor(f,a);l&&Object.defineProperty(P,a,l.get?l:{enumerable:!0,get:()=>f[a]})}}}return Object.freeze(Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}))}var Z={exports:{}};(function(P){(function(g){P.exports?(g.default=g,P.exports=g):g(typeof Highcharts<"u"?Highcharts:void 0)})(function(g){var r=g?g._modules:{};function f(a,l,y,b){a.hasOwnProperty(l)||(a[l]=b.apply(null,y),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:a[l]}})))}f(r,"Series/XRange/XRangeSeriesDefaults.js",[r["Core/Utilities.js"]],function(a){let{correctFloat:l,isNumber:y,isObject:b}=a;return{colorByPoint:!0,dataLabels:{formatter:function(){let h=this.point.partialFill;if(b(h)&&(h=h.amount),y(h)&&h>0)return l(100*h)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 0.8em">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}}),f(r,"Series/XRange/XRangePoint.js",[r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(a,l){let{column:{prototype:{pointClass:y}}}=a.seriesTypes,{extend:b}=l;class h extends y{constructor(){super(...arguments),this.options=void 0,this.series=void 0}static getColorByCategory(p,x){let M=p.options.colors||p.chart.options.colors,_=M?M.length:p.chart.options.chart.colorCount,A=x.y%_,k=M&&M[A];return{colorIndex:A,color:k}}resolveColor(){let p=this.series;if(p.options.colorByPoint&&!this.options.color){let x=h.getColorByCategory(p,this);p.chart.styledMode||(this.color=x.color),this.options.colorIndex||(this.colorIndex=x.colorIndex)}else this.color||(this.color=p.color)}init(){return super.init.apply(this,arguments),this.y||(this.y=0),this}setState(){super.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())}getLabelConfig(){let p=super.getLabelConfig.call(this),x=this.series.yAxis.categories;return p.x2=this.x2,p.yCategory=this.yCategory=x&&x[this.y],p.key=this.category||this.name,p}isValid(){return typeof this.x=="number"&&typeof this.x2=="number"}}return b(h.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]}),h}),f(r,"Series/XRange/XRangeSeries.js",[r["Core/Globals.js"],r["Core/Color/Color.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"],r["Series/XRange/XRangeSeriesDefaults.js"],r["Series/XRange/XRangePoint.js"]],function(a,l,y,b,h,et){let{noop:p}=a,{parse:x}=l,{column:M}=y.seriesTypes,{addEvent:_,clamp:A,defined:k,extend:it,find:z,isNumber:N,isObject:H,merge:R,pick:D,relativeLength:st}=b,ot=[];function rt(){let L,t;if(this.isXAxis){for(let e of(L=D(this.dataMax,-Number.MAX_VALUE),this.series))if(e.x2Data)for(let i of e.x2Data)i&&i>L&&(L=i,t=!0);t&&(this.dataMax=L)}}class T extends M{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}static compose(t){b.pushUnique(ot,t)&&_(t,"afterGetSeriesExtremes",rt)}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,o){let n=super.cropData(this.x2Data,e,i,o);return n.xData=t.slice(n.start,n.end),n}findPointIndex(t){let e,{cropStart:i,points:o}=this,{id:n}=t;if(n){let u=z(o,c=>c.id===n);e=u?u.index:void 0}if(e===void 0){let u=z(o,c=>c.x===t.x&&c.x2===t.x2&&!c.touched);e=u?u.index:void 0}return this.cropped&&N(e)&&N(i)&&e>=i&&(e-=i),e}alignDataLabel(t){let e=t.plotX;t.plotX=D(t.dlBox&&t.dlBox.centerX,t.plotX),super.alignDataLabel.apply(this,arguments),t.plotX=e}translatePoint(t){let e=this.xAxis,i=this.yAxis,o=this.columnMetrics,n=this.options,u=n.minPointLength||0,c=(t.shapeArgs&&t.shapeArgs.width||0)/2,v=this.pointXOffset=o.offset,O=D(t.x2,t.x+(t.len||0)),F=n.borderRadius,U=this.chart.plotTop,w=this.chart.plotLeft,m=t.plotX,s=e.translate(O,0,0,0,1),C=Math.abs(s-m),S=this.chart.inverted,at=D(n.borderWidth,1),W=at%2/2,V,X,K=o.offset,B=Math.round(o.width),j,E,Y,G;u&&((V=u-C)<0&&(V=0),m-=V/2,s+=V/2),m=Math.max(m,-10),s=A(s,-10,e.len+10),k(t.options.pointWidth)&&(K-=(Math.ceil(t.options.pointWidth)-B)/2,B=Math.ceil(t.options.pointWidth)),n.pointPlacement&&N(t.plotY)&&i.categories&&(t.plotY=i.translate(t.y,0,1,0,1,n.pointPlacement));let $=Math.floor(Math.min(m,s))+W,nt=Math.floor(Math.max(m,s))+W,J=nt-$,lt=Math.min(st(typeof F=="object"?F.radius:F||0,B),Math.min(J,B)/2),d={x:$,y:Math.floor(t.plotY+K)+W,width:J,height:B,r:lt};t.shapeArgs=d,S?t.tooltipPos[1]+=v+c:t.tooltipPos[0]-=c+v-d.width/2,E=(j=d.x)+d.width,j<0||E>e.len?(j=A(j,0,e.len),Y=(E=A(E,0,e.len))-j,t.dlBox=R(d,{x:j,width:E-j,centerX:Y?Y/2:null})):t.dlBox=null;let I=t.tooltipPos,q=S?1:0,Q=S?0:1,pt=this.columnMetrics?this.columnMetrics.offset:-o.width/2;S?I[q]+=d.width/2:I[q]=A(I[q]+(e.reversed?-1:0)*d.width,e.left-w,e.left+e.len-w-1),I[Q]=A(I[Q]+(S?-1:1)*pt,i.top-U,i.top+i.len-U-1),(X=t.partialFill)&&(H(X)&&(X=X.amount),N(X)||(X=0),t.partShapeArgs=R(d),G=Math.max(Math.round(C*X+t.plotX-m),0),t.clipRectArgs={x:e.reversed?d.x+C-G:d.x,y:d.y,width:G,height:d.height})}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,n=t.shapeType,u=t.shapeArgs,c=t.partShapeArgs,v=t.clipRectArgs,O=t.state,F=i.states[O||"normal"]||{},U=O===void 0?"attr":e,w=this.pointAttribs(t,O),m=D(this.chart.options.chart.animation,F.animation),s=t.graphic,C=t.partialFill;if(t.isNull||t.visible===!1)s&&(t.graphic=s.destroy());else if(s?s.rect[e](u):(t.graphic=s=o.g("point").addClass(t.getClassName()).add(t.group||this.group),s.rect=o[n](R(u)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(s)),c&&(s.partRect?(s.partRect[e](R(c)),s.partialClipRect[e](R(v))):(s.partialClipRect=o.clipRect(v.x,v.y,v.width,v.height),s.partRect=o[n](c).addClass("highcharts-partfill-overlay").add(s).clip(s.partialClipRect))),!this.chart.styledMode&&(s.rect[e](w,m).shadow(i.shadow),c)){H(C)||(C={}),H(i.partialFill)&&(C=R(i.partialFill,C));let S=C.fill||x(w.fill).brighten(-.3).get()||x(t.color||this.color).brighten(-.3).get();w.fill=S,s.partRect[U](w,m).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)}}return T.defaultOptions=R(M.defaultOptions,h),it(T.prototype,{pointClass:et,pointArrayMap:["x2","y"],getExtremesFromAll:!0,parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:y.series.prototype.animate,autoIncrement:p,buildKDTree:p}),y.registerSeriesType("xrange",T),T}),f(r,"masters/modules/xrange.src.js",[r["Core/Globals.js"],r["Series/XRange/XRangeSeries.js"]],function(a,l){l.compose(a.Axis)})})})(Z);var tt=Z.exports;const dt=ht(tt),gt=ct({__proto__:null,default:dt},[tt]);export{gt as x};
