let t,e;/**
 * Highstock JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/stock
 * @requires highcharts
 *
 * Highcharts Stock as a plugin for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */import*as i from"../highcharts.js";import"./broken-axis.js";import"./datagrouping.js";import"./mouse-wheel-zoom.js";var s,o,a,n,r,l,h,d={};d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let p=i.default;var c=d.n(p);let u=i.default.Point;var g=d.n(u);let m=i.default.Series;var x=d.n(m);let{tooltipFormatter:f}=g().prototype,{addEvent:b,arrayMax:v,arrayMin:y,correctFloat:M,defined:A,isArray:w,isNumber:k,isString:S,pick:O}=c();!function(t){function e(t,e,i){!this.isXAxis&&(this.series.forEach(function(i){"compare"===t&&"boolean"!=typeof e?i.setCompare(e,!1):"cumulative"!==t||S(e)||i.setCumulative(e,!1)}),O(i,!0)&&this.chart.redraw())}function i(t){let e=this,{numberFormatter:i}=e.series.chart,s=function(s){t=t.replace("{point."+s+"}",(e[s]>0&&"change"===s?"+":"")+i(e[s],O(e.series.tooltipOptions.changeDecimals,2)))};return A(e.change)&&s("change"),A(e.cumulativeSum)&&s("cumulativeSum"),f.apply(this,[t])}function s(){let t,e=this.options.linkedTo,i=this.chart;if(e){let t=":previous"===e?i.series[this.index-1]:i.get(e);t instanceof x()&&(this.options.compare=O(this.userOptions.compare,t.options.compare))}let s=this.options.compare;("percent"===s||"value"===s||this.options.cumulative)&&(t=new d(this),"percent"===s||"value"===s?t.initCompare(s):t.initCumulative()),this.dataModify=t}function o(t){let e=t.dataExtremes,i=e.activeYData;if(this.dataModify&&e){let t;this.options.compare?t=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&w(i)&&i.length>=2&&(t=d.getCumulativeExtremes(i)),t&&(e.dataMin=y(t),e.dataMax=v(t))}}function a(t,e){this.options.compare=this.userOptions.compare=t,this.update({},O(e,!0)),this.dataModify&&("value"===t||"percent"===t)?this.dataModify.initCompare(t):this.points.forEach(t=>{delete t.change})}function n(){let t=this.getColumn(this.pointArrayMap&&(this.options.pointValKey||this.pointValKey)||"y",!0);if(this.xAxis&&t.length&&this.dataModify){let e=this.getColumn("x",!0),i=this.dataTable.rowCount,s=+(!0!==this.options.compareStart);for(let o=0;o<i-s;o++){let i=t[o];if(k(i)&&0!==i&&e[o+s]>=(this.xAxis.min||0)){this.dataModify.compareValue=i;break}}}}function r(t,e){this.setModifier("compare",t,e)}function l(t,e){t=O(t,!1),this.options.cumulative=this.userOptions.cumulative=t,this.update({},O(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(t=>{delete t.cumulativeSum})}function h(t,e){this.setModifier("cumulative",t,e)}t.compose=function(t,d,p){let c=d.prototype,u=p.prototype,g=t.prototype;return g.setCompare||(g.setCompare=a,g.setCumulative=l,b(t,"afterInit",s),b(t,"afterGetExtremes",o),b(t,"afterProcessData",n)),c.setCompare||(c.setCompare=r,c.setModifier=e,c.setCumulative=h,u.tooltipFormatter=i),t};class d{constructor(t){this.series=t}modifyValue(){return 0}static getCumulativeExtremes(t){let e=1/0,i=-1/0;return t.reduce((t,s)=>{let o=t+s;return e=Math.min(e,o,t),i=Math.max(i,o,t),o}),[e,i]}initCompare(t){this.modifyValue=function(e,i){null===e&&(e=0);let s=this.compareValue;if(void 0!==e&&void 0!==s){if("value"===t?e-=s:e=e/s*100-100*(100!==this.series.options.compareBase),void 0!==i){let t=this.series.points[i];t&&(t.change=e)}return e}return 0}}initCumulative(){this.modifyValue=function(t,e){if(null===t&&(t=0),void 0!==t&&void 0!==e){let i=e>0?this.series.points[e-1]:null;i&&i.cumulativeSum&&(t=M(i.cumulativeSum+t));let s=this.series.points[e],o=s.series.options.cumulativeStart,a=s.x<=this.series.xAxis.max&&s.x>=this.series.xAxis.min;return s&&(!o||a?s.cumulativeSum=t:s.cumulativeSum=void 0),t}return 0}}}t.Additions=d}(o||(o={}));let E=o,C=i.default.Axis;var T=d.n(C);let{isTouchDevice:B}=c(),{addEvent:D,merge:P,pick:R}=c(),z=[];function I(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function L(){let t,e,i,s=this.legend,o=this.navigator;if(o){t=s&&s.options,e=o.xAxis,i=o.yAxis;let{scrollbarHeight:a,scrollButtonSize:n}=o;this.inverted?(o.left=o.opposite?this.chartWidth-a-o.height:this.spacing[3]+a,o.top=this.plotTop+n):(o.left=R(e.left,this.plotLeft+n),o.top=o.navigatorOptions.top||this.chartHeight-o.height-a-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?s.legendHeight+R(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&i&&(this.inverted?e.options.left=i.options.left=o.left:e.options.top=i.options.top=o.top,e.setAxisSize(),i.setAxisSize())}}function W(e){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this),R(e.redraw,!0)&&this.redraw(e.animation))}function X(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this))}function G(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!B&&"x"===this.zooming.type||B&&"x"===this.zooming.pinchType))return!1}function Y(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function N(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(P(!0,this.options.navigator,e),P(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let U=function(e,i){if(c().pushUnique(z,e)){let s=e.prototype;t=i,s.callbacks.push(Y),D(e,"afterAddSeries",I),D(e,"afterSetChartSize",L),D(e,"afterUpdate",W),D(e,"beforeRender",X),D(e,"beforeShowResetZoom",G),D(e,"update",N)}},{isTouchDevice:H}=c(),{addEvent:F,correctFloat:V,defined:_,isNumber:j,pick:Z}=c();function q(){this.navigatorAxis||(this.navigatorAxis=new $(this))}function K(t){let e,i=this.chart,s=i.options,o=s.navigator,a=this.navigatorAxis,n=i.zooming.pinchType,r=s.rangeSelector,l=i.zooming.type;if(this.isXAxis&&(o?.enabled||r?.enabled)){if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||H&&"xy"===n)&&this.options.range){let e=a.previousZoom;_(t.min)?a.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],a.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}class ${static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),F(t,"init",q),F(t,"setExtremes",K))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let o=this.axis,a=(o.pointRange||0)/2,n=Z(i,o.translate(t,!0,!o.horiz)),r=Z(s,o.translate(e,!0,!o.horiz));return _(i)||(n=V(n+a)),_(s)||(r=V(r-a)),j(n)&&j(r)||(n=r=void 0),{min:n,max:r}}}let J=i.default.Color;var Q=d.n(J);let tt=i.default.SeriesRegistry;var te=d.n(tt);let{parse:ti}=Q(),{seriesTypes:ts}=te(),to={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:ti("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===ts.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},{defined:ta,isNumber:tn,pick:tr}=c(),{relativeLength:tl}=c(),th={"navigator-handle":function(t,e,i,s,o={}){var a,n,r,l;let h=o.width?o.width/2:i,d=tl(o.borderRadius||0,Math.min(2*h,s));return[["M",-1.5,(s=o.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5],...(a=-h-1,n=2*h+1,r=s,l={r:d},l?.r?function(t,e,i,s,o){let a=o?.r||0;return[["M",t+a,e],["L",t+i-a,e],["A",a,a,0,0,1,t+i,e+a],["L",t+i,e+s-a],["A",a,a,0,0,1,t+i-a,e+s],["L",t+a,e+s],["A",a,a,0,0,1,t,e+s-a],["L",t,e+a],["A",a,a,0,0,1,t+a,e],["Z"]]}(a,.5,n,r,l):[["M",a,.5],["L",a+n,.5],["L",a+n,.5+r],["L",a,.5+r],["Z"]])]}},td=i.default.RendererRegistry;var tp=d.n(td);let{defined:tc}=c(),tu={setFixedRange:function(t){let e=this.xAxis[0];tc(e.dataMax)&&tc(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}},{defaultOptions:tg}=c(),{composed:tm}=c(),{getRendererType:tx}=tp(),{setFixedRange:tf}=tu,{addEvent:tb,extend:tv,pushUnique:ty}=c();function tM(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let tA=function(t,e,i){$.compose(e),ty(tm,"Navigator")&&(t.prototype.setFixedRange=tf,tv(tx().prototype.symbols,th),tv(tg,{navigator:to}),tb(i,"afterUpdate",tM))},{composed:tw}=c(),{addEvent:tk,correctFloat:tS,defined:tO,pick:tE,pushUnique:tC}=c();!function(t){let e;function i(t){let e=tE(t.options?.min,t.min),i=tE(t.options?.max,t.max);return{axisMin:e,axisMax:i,scrollMin:tO(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??(tO(t.dataMax)?Math.max(i,t.max??-1/0,t.dataMax,t.threshold??-1/0):i)}}function s(){let t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function o(){let t=this;t.options?.scrollbar?.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),tk(t.scrollbar,"changed",function(e){let s,o,{axisMin:a,axisMax:n,scrollMin:r,scrollMax:l}=i(t),h=t.toPixels(r),d=t.toPixels(l)-h;if(tO(a)&&tO(n))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=Math.min(l,t.toValue(h+d*this.to)),o=Math.max(r,t.toValue(h+d*this.from))):(s=Math.min(l,t.toValue(h+d*(1-this.from))),o=Math.max(r,t.toValue(h+d*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(tS(o),tS(s),!0,i,e)}else this.setRange(this.from,this.to)}))}function a(){let t,e,s,{scrollMin:o,scrollMax:a}=i(this),n=this.scrollbar,r=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(n&&l){if(this.horiz)this.opposite||(l[1]+=r),n.position(this.left,this.top+this.height+2+l[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(l[1]+=h),t=1;else{let e;this.opposite&&(l[0]+=r),e=n.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:h):this.opposite?0:h,n.position(e,this.top,this.width,this.height),this.opposite&&(l[0]+=h),t=0}if(l[t]+=n.size+(n.options.margin||0),isNaN(o)||isNaN(a)||!tO(this.min)||!tO(this.max)||tO(this.dataMin)&&this.dataMin===this.dataMax)n.setRange(0,1);else if(this.min===this.max){let t=this.pointRange/(this.dataMax+1);e=t*this.min,s=t*(this.max+1),n.setRange(e,s)}else e=(this.toPixels(this.min)-this.toPixels(o))/(this.toPixels(a)-this.toPixels(o)),s=(this.toPixels(this.max)-this.toPixels(o))/(this.toPixels(a)-this.toPixels(o)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(e,s):n.setRange(1-s,1-e)}}t.compose=function(t,i){tC(tw,"Axis.Scrollbar")&&(e=i,tk(t,"afterGetOffset",s),tk(t,"afterInit",o),tk(t,"afterRender",a))}}(a||(a={}));let tT=a,tB={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:tD}=c(),{composed:tP}=c(),{addEvent:tR,correctFloat:tz,crisp:tI,defined:tL,destroyObjectProperties:tW,extend:tX,fireEvent:tG,merge:tY,pick:tN,pushUnique:tU,removeEvent:tH}=c();class tF{static compose(t){tT.compose(t,tF),tU(tP,"Scrollbar")&&tX(tD,{scrollbar:tB})}static swapXY(t,e){return e&&t.forEach(t=>{let e,i=t.length;for(let s=0;s<i;s+=2)"number"==typeof(e=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=e)}),t}constructor(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,s=this.track.element,o=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this),r=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[i,"mousedown",o],[i.ownerDocument,"mousemove",a],[i.ownerDocument,"mouseup",n],[i,"touchstart",o],[i.ownerDocument,"touchmove",a],[i.ownerDocument,"touchend",n]];r.forEach(function(t){tR.apply(null,t)}),this._events=r}buttonToMaxClick(t){let e=(this.to-this.from)*tN(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),tG(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=tz(this.to-this.from)*tN(this.options.step,.2);this.updatePosition(tz(this.from-e),tz(this.to-e)),tG(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,tW(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,o=this.size,a=e.g().add(this.group);if(i.push(a),s.buttonsEnabled){let n=e.rect().addClass("highcharts-scrollbar-button").add(a);this.chart.styledMode||n.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:o,height:o,r:s.buttonBorderRadius},n.strokeWidth()));let r=e.path(tF.swapXY([["M",o/2+(t?-1:1),o/2-3],["L",o/2+(t?-1:1),o/2+3],["L",o/2+(t?2:-2),o/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]);this.chart.styledMode||r.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=tY(tB,tD.scrollbar,e),this.options.margin=tN(this.options.margin,10),this.chart=i,this.size=tN(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,i=this.chart.pointer?.normalize(t)||t,s=this.options.vertical?"chartY":"chartX",o=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(o[0]+e,o[1]+e),this.hasDragged&&tG(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&tG(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,i,s){let{buttonsEnabled:o,margin:a=0,vertical:n}=this.options,r=this.rendered?"animate":"attr",l=s,h=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=s,this.xOffset=l,this.yOffset=h,n?(this.width=this.yOffset=i=h=this.size,this.xOffset=l=0,this.yOffset=h=o?this.size:0,this.barWidth=s-(o?2*i:0),this.x=t+=a):(this.height=s=this.size,this.xOffset=l=o?this.size:0,this.barWidth=i-(o?2*s:0),this.y=this.y+a),this.group[r]({translateX:t,translateY:this.y}),this.track[r]({width:i,height:s}),this.scrollbarButtons[1][r]({translateX:n?0:i-l,translateY:n?s-h:0})}removeEvents(){this._events.forEach(function(t){tH.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,o=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=o,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(o),s||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let a=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tI(0,a),y:-tI(0,a)}),this.scrollbarGroup=t.g().add(o),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:i-a,width:i-a,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(tF.swapXY([["M",-3,i/4],["L",-3,2*i/3],["M",0,i/4],["L",0,2*i/3],["M",3,i/4],["L",3,2*i/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),s||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-tI(0,this.scrollbarStrokeWidth),-tI(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,o=this.options,a=o.vertical,n=o.minWidth,r=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!tL(r))return;let h=r*Math.min(e,1);i=Math.ceil(r*(t=Math.max(t,0))),this.calculatedWidth=s=tz(h-i),s<n&&(i=(r-n+s)*t,s=n);let d=Math.floor(i+this.xOffset+this.yOffset),p=s/2-.5;this.from=t,this.to=e,a?(this.scrollbarGroup[l]({translateY:d}),this.scrollbar[l]({height:s}),this.scrollbarRifles[l]({translateY:p}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:d}),this.scrollbar[l]({width:s}),this.scrollbarRifles[l]({translateX:p}),this.scrollbarLeft=d,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===o.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return tN(this.options.liveRedraw,c().svg&&!c().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!tL(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,o=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>o?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),tG(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,tY(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=tz(1-tz(e-t)),e=1),t<0&&(e=tz(e-t),t=0),this.from=t,this.to=e}}tF.defaultOptions=tB;let tV=i.default.SVGRenderer;var t_=d.n(tV);let{defaultOptions:tj}=c(),{isTouchDevice:tZ}=c(),{prototype:{symbols:tq}}=t_(),{addEvent:tK,clamp:t$,correctFloat:tJ,defined:tQ,destroyObjectProperties:t0,erase:t1,extend:t2,find:t3,fireEvent:t5,isArray:t6,isNumber:t9,merge:t4,pick:t8,removeEvent:t7,splat:et}=c();function ee(t,...e){let i=[].filter.call(e,t9);if(i.length)return Math[t].apply(0,i)}class ei{static compose(t,e,i){U(t,ei),tA(t,e,i)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,i,s){let o=this.navigatorOptions.handles.height;this.handles[e][s](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-o)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-o/2-1)})}drawOutline(t,e,i,s){let o=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),n=a/2,r=a%2/2,l=this.scrollButtonSize,h=this.size,d=this.top,p=this.height,c=d-n,u=d+p,g=this.left,m,x;i?(m=d+e+r,e=d+t+r,x=[["M",g+p,d-l-r],["L",g+p,m],["L",g,m],["M",g,e],["L",g+p,e],["L",g+p,d+h+l]],o&&x.push(["M",g+p,m-n],["L",g+p,e+n])):(g-=l,t+=g+l-r,e+=g+l-r,x=[["M",g,c],["L",t,c],["L",t,u],["M",e,u],["L",e,c],["L",g+h+2*l,c]],o&&x.push(["M",t-n,c],["L",e+n,c])),this.outline[s]({d:x})}drawMasks(t,e,i,s){let o,a,n,r,l=this.left,h=this.top,d=this.height;i?(n=[l,l,l],r=[h,h+t,h+e],a=[d,d,d],o=[t,e-t,this.size-e]):(n=[l,l+t,l+e],r=[h,h,h],a=[t,e-t,this.size-e],o=[d,d,d]),this.shades.forEach((t,e)=>{t[s]({x:n[e],y:r[e],width:a[e],height:o[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,o=s.inverted,a=s.renderer,n={cursor:o?"ns-resize":"ew-resize"},r=t.navigatorGroup??(t.navigatorGroup=a.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,o)=>{let l=t.shades[o]??(t.shades[o]=a.rect().addClass("highcharts-navigator-mask"+(1===o?"-inside":"-outside")).add(r));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===o&&l.css(n))}),t.outline||(t.outline=a.path().addClass("highcharts-navigator-outline").add(r)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=e.handles,{height:o,width:l}=i;[0,1].forEach(e=>{let h=i.symbols[e];if(t.handles[e]&&t.handles[e].symbolUrl===h){if(!t.handles[e].isImg&&t.handles[e].symbolName!==h){let i=tq[h].call(tq,-l/2-1,0,l,o);t.handles[e].attr({d:i}),t.handles[e].symbolName=h}}else t.handles[e]?.destroy(),t.handles[e]=a.symbol(h,-l/2-1,0,l,o,i),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(r),t.addMouseEvents();s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(o+l)/2}),s.styledMode||t.handles[e].attr({fill:i.backgroundColor,stroke:i.borderColor,"stroke-width":i.lineWidth,width:i.width,height:i.height,x:-l/2-1,y:0}).css(n)})}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if(t4(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),tQ(t.enabled)||s)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(i);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t7(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push(tK(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[i.inverted?"width":"height"]:this.height,[i.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[i.inverted?"width":"height"]:this.height},!1)}e&&i.redraw()}render(t,e,i,s){let o=this.chart,a=this.xAxis,n=a.pointRange||0,r=a.navigatorAxis.fake?o.xAxis[0]:a,l=this.navigatorEnabled,h=this.rendered,d=o.inverted,p=o.xAxis[0].minRange,c=o.xAxis[0].options.maxRange,u=this.scrollButtonSize,g,m,x,f=this.scrollbarHeight,b,v;if(this.hasDragged&&!tQ(i))return;if(this.isDirty&&this.renderElements(),t=tJ(t-n/2),e=tJ(e+n/2),!t9(t)||!t9(e))if(!h)return;else i=0,s=t8(a.width,r.width);this.left=t8(a.left,o.plotLeft+u+(d?o.plotWidth:0));let y=this.size=b=t8(a.len,(d?o.plotHeight:o.plotWidth)-2*u);g=d?f:b+2*u,i=t8(i,a.toPixels(t,!0)),s=t8(s,a.toPixels(e,!0)),t9(i)&&Math.abs(i)!==1/0||(i=0,s=g);let M=a.toValue(i,!0),A=a.toValue(s,!0),w=Math.abs(tJ(A-M));w<p?this.grabbedLeft?i=a.toPixels(A-p-n,!0):this.grabbedRight&&(s=a.toPixels(M+p+n,!0)):tQ(c)&&tJ(w-n)>c&&(this.grabbedLeft?i=a.toPixels(A-c-n,!0):this.grabbedRight&&(s=a.toPixels(M+c+n,!0))),this.zoomedMax=t$(Math.max(i,s),0,y),this.zoomedMin=t$(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,y),this.range=this.zoomedMax-this.zoomedMin,y=Math.round(this.zoomedMax);let k=Math.round(this.zoomedMin);l&&(this.navigatorGroup.attr({visibility:"inherit"}),v=h&&!this.hasDragged?"animate":"attr",this.drawMasks(k,y,d,v),this.drawOutline(k,y,d,v),this.navigatorOptions.handles.enabled&&(this.drawHandle(k,0,d,v),this.drawHandle(y,1,d,v))),this.scrollbar&&(d?(x=this.top-u,m=this.left-f+(l||!r.opposite?0:(r.titleOffset||0)+r.axisTitleMargin),f=b+2*u):(x=this.top+(l?this.height:-f),m=this.left-u),this.scrollbar.position(m,x,g,f),this.scrollbar.setRange(this.zoomedMin/(b||1),this.zoomedMax/(b||1))),this.rendered=!0,this.isDirty=!1,t5(this,"afterRender")}addMouseEvents(){let t=this,e=t.chart,i=e.container,s=[],o,a;t.mouseMoveHandler=o=function(e){t.onMouseMove(e)},t.mouseUpHandler=a=function(e){t.onMouseUp(e)},(s=t.getPartsEvents("mousedown")).push(tK(e.renderTo,"mousemove",o),tK(i.ownerDocument,"mouseup",a),tK(e.renderTo,"touchmove",o),tK(i.ownerDocument,"touchend",a)),s.concat(t.getPartsEvents("touchstart")),t.eventsToUnbind=s,t.series&&t.series[0]&&s.push(tK(t.series[0].xAxis,"foundExtremes",function(){e.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(function(s){e[s].forEach(function(o,a){i.push(tK(o.element,t,function(t){e[s+"Mousedown"](t,a)}))})}),i}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=this.xAxis,o=this.zoomedMin,a=this.size,n=this.range,r=this.left,l=t.chartX,h,d,p,c;i.inverted&&(l=t.chartY,r=this.top),1===e?(this.grabbedCenter=l,this.fixedWidth=n,this.dragOffset=l-o):(c=l-r-n/2,0===e?c=Math.max(0,c):2===e&&c+n>=a&&(c=a-n,this.reversedExtremes?(c-=n,d=this.getUnionExtremes().dataMin):h=this.getUnionExtremes().dataMax),c!==o&&(this.fixedWidth=n,tQ((p=s.navigatorAxis.toFixedRange(c,c+n,d,h)).min)&&t5(this,"setRange",{min:Math.min(p.min,p.max),max:Math.max(p.min,p.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=i.xAxis[0],o=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?s.min:s.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?s.max:s.min),i.setFixedRange(void 0)}onMouseMove(t){let e=this,i=e.chart,s=e.navigatorSize,o=e.range,a=e.dragOffset,n=i.inverted,r=e.left,l;(!t.touches||0!==t.touches[0].pageX)&&(l=(t=i.pointer?.normalize(t)||t).chartX,n&&(r=e.top,l=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,l-r,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,l-r)):e.grabbedCenter&&(e.hasDragged=!0,l<a?l=a:l>s+a-o&&(l=s+a-o),e.render(0,0,l-a,l-a+o)),e.hasDragged&&e.scrollbar&&t8(e.scrollbar.options.liveRedraw,!tZ&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,o,a,n,r=this.chart,l=this.xAxis,h=this.scrollbar,d=t.DOMEvent||t,p=r.inverted,c=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!h||!h.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?o=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(a=this.fixedExtreme),this.zoomedMax===this.size&&(a=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(o=this.reversedExtremes?s.dataMax:s.dataMin),tQ((n=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,o,a)).min)&&t5(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&t9(this.zoomedMin)&&t9(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,p,c),this.outline&&this.drawOutline(i,e,p,c),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,p,c),this.drawHandle(e,1,p,c)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){t7(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&t7(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(t){let e=t.options,i=e.navigator||{},s=i.enabled,o=e.scrollbar||{},a=o.enabled,n=s&&i.height||0,r=a&&o.height||0,l=o.buttonsEnabled&&r||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=r,this.scrollButtonSize=l,this.scrollbarEnabled=a,this.navigatorEnabled=s,this.navigatorOptions=i,this.scrollbarOptions=o,this.setOpposite();let h=this,d=h.baseSeries,p=t.xAxis.length,c=t.yAxis.length,u=d&&d[0]&&d[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,h.navigatorEnabled){let e=this.getXAxisOffsets();h.xAxis=new(T())(t,t4({breaks:u.options.breaks,ordinal:u.options.ordinal,overscroll:u.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:p,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:u.options.ordinal?0:u.options.minPadding,maxPadding:u.options.ordinal?0:u.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:n}:{offsets:e,height:n}),"xAxis"),h.yAxis=new(T())(t,t4(i.yAxis,{alignTicks:!1,offset:0,index:c,isInternal:!0,reversed:t8(i.yAxis&&i.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:n}:{height:n}),"yAxis"),d||i.series.data?h.updateNavigatorSeries(!1):0===t.series.length&&(h.unbindRedraw=tK(t,"beforeRedraw",function(){t.series.length>0&&!h.series&&(h.setBaseSeries(),h.unbindRedraw())})),h.reversedExtremes=t.inverted&&!h.xAxis.reversed||!t.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()}else h.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let s=t.xAxis[0],o=s.getExtremes(),a=s.len-2*l,n=ee("min",s.options.min,o.dataMin),r=ee("max",s.options.max,o.dataMax)-n;return i?e*r/a+n:a*(e-n)/r},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=$.prototype.toFixedRange.bind(h.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=t4(t.options.scrollbar,{vertical:t.inverted});t9(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=h.scrollbar=new tF(t.renderer,e,t),tK(h.scrollbar,"changed",function(t){let e=h.size,i=e*this.to,s=e*this.from;h.hasDragged=h.scrollbar.hasDragged,h.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){h.onMouseUp(t)})})}h.addBaseSeriesEvents(),h.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=t8(t.opposite,!!(!e&&i.inverted))}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.chart.time,o=this.xAxis,a=o.options,n=i.options;return t&&null===i.dataMin||(e={dataMin:t8(s.parse(a?.min),ee("min",s.parse(n.min),i.dataMin,o.dataMin,o.min)),dataMax:t8(s.parse(a?.max),ee("max",s.parse(n.max),i.dataMax,o.dataMax,o.max))}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?t3(i.series,t=>!t.options.isInternal).index:0),(i.series||[]).forEach((e,i)=>{!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&s.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let i=this,s=i.chart,o=i.baseSeries,a={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},n=i.series=(i.series||[]).filter(t=>{let e=t.baseSeries;return!(0>o.indexOf(e))||(e&&(t7(e,"updatedData",i.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),r,l,h=i.navigatorOptions.series,d;o&&o.length&&o.forEach(t=>{let p=t.navigatorSeries,c=t2({color:t.color,visible:t.visible},t6(h)?tj.navigator.series:h);if(p&&!1===i.navigatorOptions.adaptToUpdatedData)return;a.name="Navigator "+o.length,d=(r=t.options||{}).navigatorOptions||{},c.dataLabels=et(c.dataLabels),(l=t4(r,a,c,d)).pointRange=t8(c.pointRange,d.pointRange,tj.plotOptions[l.type||"line"].pointRange);let u=d.data||c.data;i.hasNavigatorData=i.hasNavigatorData||!!u,l.data=u||r.data?.slice(0),p&&p.options?p.update(l,e):(t.navigatorSeries=s.initSeries(l),s.setSortedData(),t.navigatorSeries.baseSeries=t,n.push(t.navigatorSeries))}),(h.data&&!(o&&o.length)||t6(h))&&(i.hasNavigatorData=!1,(h=et(h)).forEach((t,e)=>{a.name="Navigator "+(n.length+1),(l=t4(tj.navigator.series,{color:s.series[e]&&!s.series[e].options.isInternal&&s.series[e].color||s.options.colors[e]||s.options.colors[0]},a,t)).data=t.data,l.data&&(i.hasNavigatorData=!0,n.push(s.initSeries(l)))})),t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(tK(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push(tK(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(tK(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(tK(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push(tK(i,"remove",function(){e&&t1(e,i),this.navigatorSeries&&t.series&&(t1(t.series,this.navigatorSeries),tQ(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.getColumn("x")[0]??t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,i=this.chart.navigator,s=this.getExtremes(),o=s.min,a=s.max,n=s.dataMin,r=s.dataMax,l=a-o,h=i.stickToMin,d=i.stickToMax,p=t8(this.ordinal?.convertOverscroll(this.options.overscroll),0),c=i.series&&i.series[0],u=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(h&&(t=(e=n)+l),d&&(t=r+p,h||(e=Math.max(n,t-l,i.getBaseSeriesMin(c&&c.xData?c.xData[0]:-Number.MAX_VALUE)))),u&&(h||d)&&t9(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=t8(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,null,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,o=s.max,a=s.min,n=s.options.range;return!!(t9(o)&&t9(a))&&(n&&o-i>0?o-i<n:a<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tK(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),tK(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+(this.scrollbar?.options.margin||0)+t.scrollbarHeight:0)+(t.navigatorOptions.margin||0)}),tK(ei,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(t1(this.chart.xAxis,this.xAxis),t1(this.chart.axes,this.xAxis)),this.yAxis&&(t1(this.chart.yAxis,this.yAxis),t1(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{t0(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}}(s=n||(n={})).setLength=function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},s.splice=function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let a=Object.getPrototypeOf(t).constructor,n=t[s?"subarray":"slice"](e,e+i),r=new a(t.length-i+o.length);return r.set(t.subarray(0,e),0),r.set(o,e),r.set(t.subarray(e+i),e+o.length),{removed:n,array:r}},s.convertToNumber=function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}};let{setLength:es,splice:eo}=n,{fireEvent:ea,objectEach:en,uniqueKey:er}=c(),el=class{constructor(t={}){this.autoId=!t.id,this.columns={},this.id=t.id||er(),this.rowCount=0,this.versionTag=er();let e=0;en(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,en(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=es(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;en(this.columns,(s,o)=>{this.columns[o]=eo(s,t,e).array,i=s.length}),this.rowCount=i}ea(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=er()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRow(t,e){return(e||Object.keys(this.columns)).map(e=>this.columns[e]?.[t])}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;en(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||(ea(this,"afterSetColumns"),this.versionTag=er())}setRow(t,e=this.rowCount,i,s){let{columns:o}=this,a=i?this.rowCount+1:e+1,n=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=n.length;t<e;t++){let e=n[t];o[e]||(o[e]=[])}en(o,(n,r)=>{n||s?.addColumns===!1||(n=Array(a)),n&&(i?n=eo(n,e,0,!0,[t[r]??null]).array:n[e]=t[r]??null,o[r]=n)}),a>this.rowCount&&this.applyRowCount(a),s?.silent||(ea(this,"afterSetRows"),this.versionTag=er())}getModified(){return this.modified||this}},{addEvent:eh,correctFloat:ed,css:ep,defined:ec,error:eu,isNumber:eg,pick:em,timeUnits:ex,isString:ef}=c();!function(t){function e(t,i,s,o,a=[],n=0,r){let l={},h=this.options.tickPixelInterval,d=this.chart.time,p=[],c,u,g,m,x,f=0,b=[],v=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!a||a.length<3||void 0===i)return d.getTimeTicks.apply(d,arguments);let y=a.length;for(c=0;c<y;c++){if(x=c&&a[c-1]>s,a[c]<i&&(f=c),c===y-1||a[c+1]-a[c]>5*n||x){if(a[c]>v){for(u=d.getTimeTicks(t,a[f],a[c],o);u.length&&u[0]<=v;)u.shift();u.length&&(v=u[u.length-1]),p.push(b.length),b=b.concat(u)}f=c+1}if(x)break}if(u){if(m=u.info,r&&m.unitRange<=ex.hour){for(f=1,c=b.length-1;f<c;f++)d.dateFormat("%d",b[f])!==d.dateFormat("%d",b[f-1])&&(l[b[f]]="day",g=!0);g&&(l[b[0]]="day"),m.higherRanks=l}m.segmentStarts=p,b.info=m}else eu(12,!1,this.chart);if(r&&ec(h)){let t=b.length,e=[],i=[],o,a,n,r,d,p=t;for(;p--;)a=this.translate(b[p]),n&&(i[p]=n-a),e[p]=n=a;for(i.sort((t,e)=>t-e),(r=i[Math.floor(i.length/2)])<.6*h&&(r=null),p=b[t-1]>s?t-1:t,n=void 0;p--;)d=Math.abs(n-(a=e[p])),n&&d<.8*h&&(null===r||d<.8*r)?(l[b[p]]&&!l[b[p+1]]?(o=p+1,n=a):o=p,b.splice(o,1)):n=a}return b}function i(t){let e=this.ordinal.positions;if(!e)return t;let i=e.length-1,s;return(t<0?t=e[0]:t>i?t=e[i]:(i=Math.floor(t),s=t-i),void 0!==s&&void 0!==e[i])?e[i]+(s?s*(e[i+1]-e[i]):0):t}function s(t){let e=this.ordinal,i=this.old?this.old.min:this.min,s=this.old?this.old.transA:this.transA,o=e.getExtendedPositions();if(o?.length){let a=ed((t-i)*s+this.minPixelPadding),n=ed(e.getIndexOfPoint(a,o)),r=ed(n%1);if(n>=0&&n<=o.length-1){let t=o[Math.floor(n)],e=o[Math.ceil(n)];return o[Math.floor(n)]+r*(e-t)}}return t}function o(e,i){let s=t.Additions.findIndexOf(e,i,!0);if(e[s]===i)return s;let o=(i-e[s])/(e[s+1]-e[s]);return s+o}function a(){this.ordinal||(this.ordinal=new t.Additions(this))}function n(){let{eventArgs:t,options:e}=this;if(this.isXAxis&&ec(e.overscroll)&&0!==e.overscroll&&eg(this.max)&&eg(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.isFullRange=ec(this.dataMin)&&ec(this.dataMax)&&this.max-this.min==this.dataMax-this.dataMin,this.max===this.dataMax&&(t?.trigger!=="pan"||this.isInternal)&&t?.trigger!=="navigator")){let i=this.ordinal.convertOverscroll(e.overscroll);this.max+=i,!this.isInternal&&ec(this.userMin)&&t?.trigger!=="mousewheel"&&(this.min+=i)}}function r(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function l(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function h(t){let e=this.xAxis[0],i=e.ordinal.convertOverscroll(e.options.overscroll),s=t.originalEvent.chartX,o=this.options.chart.panning,a=!1;if(o?.type!=="y"&&e.options.ordinal&&e.series.length&&(!t.touches||t.touches.length<=1)){let o,n,r=this.mouseDownX,l=e.getExtremes(),h=l.dataMin,d=l.dataMax,p=l.min,c=l.max,u=this.hoverPoints,g=e.closestPointRange||e.ordinal?.overscrollPointsRange,m=Math.round((r-s)/(e.translationSlope*(e.ordinal.slope||g))),x=e.ordinal.getExtendedPositions(),f={ordinal:{positions:x,extendedOrdinalPositions:x}},b=e.index2val,v=e.val2lin;if(p<=h&&m<=0||c>=d+i&&m>=0)return void t.preventDefault();f.ordinal.positions?Math.abs(m)>1&&(u&&u.forEach(function(t){t.setState()}),n=f.ordinal.positions,i&&(n=f.ordinal.positions=n.concat(e.ordinal.getOverscrollPositions())),d>n[n.length-1]&&n.push(d),this.setFixedRange(c-p),(o=e.navigatorAxis.toFixedRange(void 0,void 0,b.apply(f,[v.apply(f,[p,!0])+m]),b.apply(f,[v.apply(f,[c,!0])+m]))).min>=Math.min(n[0],p)&&o.max<=Math.max(n[n.length-1],c)+i&&e.setExtremes(o.min,o.max,!0,!1,{trigger:"pan"}),this.mouseDownX=s,ep(this.container,{cursor:"move"})):a=!0}else a=!0;a||o&&/y/.test(o.type)?i&&eg(e.dataMax)&&(e.max=e.dataMax+i):t.preventDefault()}function d(){let t=this.xAxis;t?.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.originalOrdinalRange)}function p(t,e){let i,s=this.ordinal,a=s.positions,n=s.slope,r;if(!a)return t;let l=a.length;if(a[0]<=t&&a[l-1]>=t)i=o(a,t);else{if(r=s.getExtendedPositions?.(),!r?.length)return t;let l=r.length;n||(n=(r[l-1]-r[0])/l);let h=o(r,a[0]);if(t>=r[0]&&t<=r[l-1])i=o(r,t)-h;else{if(!e)return t;i=t<r[0]?-h-(r[0]-t)/n:(t-r[l-1])/n+l-h}}return e?i:n*(i||0)+s.offset}t.compose=function(t,o,c){let u=t.prototype;return u.ordinal2lin||(u.getTimeTicks=e,u.index2val=i,u.lin2val=s,u.val2lin=p,u.ordinal2lin=u.val2lin,eh(t,"afterInit",a),eh(t,"foundExtremes",n),eh(t,"afterSetScale",r),eh(t,"initialAxisTranslation",l),eh(c,"pan",h),eh(c,"touchpan",h),eh(o,"updatedData",d)),t},t.Additions=class{constructor(t){this.index={},this.axis=t}beforeSetTickPositions(){let t=this.axis,e=t.ordinal,i=t.getExtremes(),s=i.min,o=i.max,a=t.brokenAxis?.hasBreaks,n=t.options.ordinal,r=t.options.overscroll&&t.ordinal.convertOverscroll(t.options.overscroll)||0,l,h,d,p,c,u,g,m=[],x=Number.MAX_VALUE,f=!1,b=!1,v=!1;if(n||a){let i=0;if(t.series.forEach(function(t,e){let s=t.getColumn("x",!0);if(h=[],e>0&&"highcharts-navigator-series"!==t.options.id&&s.length>1&&(b=i!==s[1]-s[0]),i=s[1]-s[0],t.boosted&&(v=t.boosted),t.reserveSpace()&&(!1!==t.takeOrdinalPosition||a)&&(l=(m=m.concat(s)).length,m.sort(function(t,e){return t-e}),x=Math.min(x,em(t.closestPointRange,x)),l)){for(e=0;e<l-1;)m[e]!==m[e+1]&&h.push(m[e+1]),e++;h[0]!==m[0]&&h.unshift(m[0]),m=h}}),t.ordinal.originalOrdinalRange||(t.ordinal.originalOrdinalRange=(m.length-1)*x),b&&v&&(m.pop(),m.shift()),(l=m.length)>2){for(d=m[1]-m[0],g=l-1;g--&&!f;)m[g+1]-m[g]!==d&&(f=!0);!t.options.keepOrdinalPadding&&(m[0]-s>d||o-r-m[l-1]>d)&&(f=!0)}else t.options.overscroll&&(2===l?x=m[1]-m[0]:1===l?(x=r,m=[m[0],m[0]+x]):x=e.overscrollPointsRange);f||t.forceOrdinal?(t.options.overscroll&&(e.overscrollPointsRange=x,m=m.concat(e.getOverscrollPositions())),e.positions=m,p=t.ordinal2lin(Math.max(s,m[0]),!0),c=Math.max(t.ordinal2lin(Math.min(o,m[m.length-1]),!0),1),e.slope=u=(o-s)/(c-p),e.offset=s-p*u):(e.overscrollPointsRange=em(t.closestPointRange,e.overscrollPointsRange),e.positions=t.ordinal.slope=e.offset=void 0)}t.isOrdinal=n&&f,e.groupIntervalFactor=null}static findIndexOf(t,e,i){let s=0,o=t.length-1,a;for(;s<o;)t[a=Math.ceil((s+o)/2)]<=e?s=a:o=a-1;return t[s]===e||i?s:-1}getExtendedPositions(t=!0){let e=this,i=e.axis,s=i.constructor.prototype,o=i.chart,a=i.series.reduce((t,e)=>{let i=e.currentDataGrouping;return t+(i?i.count+i.unitName:"raw")},""),n=t?i.ordinal.convertOverscroll(i.options.overscroll):0,r=i.getExtremes(),l,h,d=e.index;return d||(d=e.index={}),!d[a]&&((l={series:[],chart:o,forceOrdinal:!1,getExtremes:function(){return{min:r.dataMin,max:r.dataMax+n}},applyGrouping:s.applyGrouping,getGroupPixelWidth:s.getGroupPixelWidth,getTimeTicks:s.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:s.ordinal2lin,getIndexOfPoint:s.getIndexOfPoint,val2lin:s.val2lin}).ordinal.axis=l,i.series.forEach(i=>{if(!1===i.takeOrdinalPosition)return;h={xAxis:l,chart:o,groupPixelWidth:i.groupPixelWidth,destroyGroupedData:c().noop,getColumn:i.getColumn,applyGrouping:i.applyGrouping,getProcessedData:i.getProcessedData,reserveSpace:i.reserveSpace,visible:i.visible};let s=i.getColumn("x").concat(t?e.getOverscrollPositions():[]);h.dataTable=new el({columns:{x:s}}),h.options={...i.options,dataGrouping:i.currentDataGrouping?{firstAnchor:i.options.dataGrouping?.firstAnchor,anchor:i.options.dataGrouping?.anchor,lastAnchor:i.options.dataGrouping?.firstAnchor,enabled:!0,forced:!0,approximation:"open",units:[[i.currentDataGrouping.unitName,[i.currentDataGrouping.count]]]}:{enabled:!1}},l.series.push(h),i.processData.apply(h)}),l.applyGrouping({hasExtremesChanged:!0}),h?.closestPointRange!==h?.basePointRange&&h.currentDataGrouping&&(l.forceOrdinal=!0),i.ordinal.beforeSetTickPositions.apply({axis:l}),!i.ordinal.originalOrdinalRange&&l.ordinal.originalOrdinalRange&&(i.ordinal.originalOrdinalRange=l.ordinal.originalOrdinalRange),l.ordinal.positions&&(d[a]=l.ordinal.positions)),d[a]}getGroupIntervalFactor(t,e,i){let s=i.getColumn("x",!0),o=s.length,a=[],n,r,l=this.groupIntervalFactor;if(!l){for(r=0;r<o-1;r++)a[r]=s[r+1]-s[r];a.sort(function(t,e){return t-e}),n=a[Math.floor(o/2)],t=Math.max(t,s[0]),e=Math.min(e,s[o-1]),this.groupIntervalFactor=l=o*n/(e-t)}return l}getIndexOfPoint(t,e){let i=this.axis,s=i.min,a=i.minPixelPadding;return o(e,s)+ed((t-a)/(i.translationSlope*(this.slope||i.closestPointRange||this.overscrollPointsRange)))}getOverscrollPositions(){let t=this.axis,e=this.convertOverscroll(t.options.overscroll),i=this.overscrollPointsRange,s=[],o=t.dataMax;if(ec(i))for(;o<t.dataMax+e;)s.push(o+=i);return s}postProcessTickInterval(t){let e=this.axis,i=this.slope,s=e.closestPointRange;return i&&s?e.options.breaks?s||t:t/(i/s):t}convertOverscroll(t=0){let e=this,i=e.axis,s=function(t){return em(e.originalOrdinalRange,ec(i.dataMax)&&ec(i.dataMin)?i.dataMax-i.dataMin:0)*t};if(ef(t)){let e=parseInt(t,10);if(!1===i.isFullRange&&eg(i.min)&&eg(i.max)&&(this.originalOrdinalRange=i.max-i.min),/%$/.test(t))return s(e/100);if(/px/.test(t)){let t=Math.min(e,.9*i.len)/i.len;return s(t/(i.isFullRange?1-t:1))}return 0}return t}}}(r||(r={}));let eb=r,ev={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},ey={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}},{defaultOptions:eM}=c(),{composed:eA}=c(),{addEvent:ew,defined:ek,extend:eS,isNumber:eO,merge:eE,pick:eC,pushUnique:eT}=c(),eB=[];function eD(){let t,e,i=this.range,s=i.type,o=this.max,a=this.chart.time,n=function(t,e){let i=a.toParts(t),o=i.slice();"year"===s?o[0]+=e:o[1]+=e;let n=a.makeTime.apply(a,o),r=a.toParts(n);return"month"===s&&i[1]===r[1]&&1===Math.abs(e)&&(o[0]=i[0],o[1]=i[1],o[2]=0),(n=a.makeTime.apply(a,o))-t};eO(i)?(t=o-i,e=i):i&&(t=o+n(o,-(i.count||1)),this.chart&&this.chart.setFixedRange(o-t));let r=eC(this.dataMin,5e-324);return eO(t)||(t=r),t<=r&&(t=r,void 0===e&&(e=n(t,i.count)),this.newMax=Math.min(t+e,eC(this.dataMax,Number.MAX_VALUE))),eO(o)?!eO(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function eP(){this.rangeSelector?.redrawElements()}function eR(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new e(this))}function ez(){let t=this.rangeSelector;if(t){eO(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);let e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"===e&&(this.extraTopMargin=!0))}}function eI(){let t,e=this.rangeSelector;if(!e)return;let i=this.xAxis[0].getExtremes(),s=this.legend,o=e&&e.options.verticalAlign;eO(i.min)&&e.render(i.min,i.max),s.display&&"top"===o&&o===s.options.verticalAlign&&(t=eE(this.spacingBox),"vertical"===s.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),s.group.placed=!1,s.align(t))}function eL(){for(let t=0,e=eB.length;t<e;++t){let e=eB[t];if(e[0]===this){e[1].forEach(t=>t()),eB.splice(t,1);return}}}function eW(){let t=this.rangeSelector;if(t?.options?.enabled){let{min:e,max:i}=this.xAxis[0].getExtremes();eO(e)&&t.inputGroup&&t.inputGroup.getBBox().width<20&&t.render(e,i);let s=t.getHeight(),o=t.options.verticalAlign;t.options.floating||("bottom"===o?this.marginBottom+=s:"middle"!==o&&(this.plotTop+=s))}}function eX(t){let i=t.options.rangeSelector,s=this.extraBottomMargin,o=this.extraTopMargin,a=this.rangeSelector;if(i&&i.enabled&&!ek(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new e(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,a){let t=i&&i.verticalAlign||a.options&&a.options.verticalAlign;a.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==s||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}let eG=function(t,i,s){if(e=s,eT(eA,"RangeSelector")){let e=i.prototype;t.prototype.minFromRange=eD,ew(i,"afterGetContainer",eR),ew(i,"beforeRender",ez),ew(i,"destroy",eL),ew(i,"getMargins",eW),ew(i,"redraw",eI),ew(i,"update",eX),ew(i,"beforeRedraw",eP),e.callbacks.push(eI),eS(eM,{rangeSelector:ey}),eS(eM.lang,ev)}},eY=i.default.SVGElement;var eN=d.n(eY);let eU=i.default.Templating;var eH=d.n(eU);let{defaultOptions:eF}=c(),{format:eV}=eH(),{addEvent:e_,createElement:ej,css:eZ,defined:eq,destroyObjectProperties:eK,discardElement:e$,extend:eJ,fireEvent:eQ,isNumber:e0,isString:e1,merge:e2,objectEach:e3,pick:e5,splat:e6}=c();function e9(t){let e=e=>RegExp(`%[[a-zA-Z]*${e}`).test(t);if(e1(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";let i=e1(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,s=e1(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&s?"datetime-local":i?"date":s?"time":"text"}class e4{static compose(t,e){eG(t,e,e4)}constructor(t){this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=()=>{let t=0;return this.buttons.forEach(e=>{let i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(t)}clickButton(t,e){let i=this.chart,s=this.buttonOptions[t],o=i.xAxis[0],a=i.scroller&&i.scroller.getUnionExtremes()||o||{},n=s.type,r=s.dataGrouping,l=a.dataMin,h=a.dataMax,d,p=e0(o?.max)?Math.round(Math.min(o.max,h??o.max)):void 0,c,u=s._range,g,m,x,f=!0;if(null!==l&&null!==h){if(this.setSelected(t),r&&(this.forcedDataGrouping=!0,T().prototype.setDataGrouping.call(o||{chart:this.chart},r,!1),this.frozenStates=s.preserveDataGrouping),"month"===n||"year"===n)o?(m={range:s,max:p,chart:i,dataMin:l,dataMax:h},d=o.minFromRange.call(m),e0(m.newMax)&&(p=m.newMax),f=!1):u=s;else if(u)e0(p)&&(p=Math.min((d=Math.max(p-u,l))+u,h),f=!1);else if("ytd"===n)if(o)!o.hasData()||e0(h)&&e0(l)||(l=Number.MAX_VALUE,h=-Number.MAX_VALUE,i.series.forEach(t=>{let e=t.getColumn("x");e.length&&(l=Math.min(e[0],l),h=Math.max(e[e.length-1],h))}),e=!1),e0(h)&&e0(l)&&(d=g=(x=this.getYTDExtremes(h,l)).min,p=x.max);else{this.deferredYTDClick=t;return}else"all"===n&&o&&(i.navigator&&i.navigator.baseSeries[0]&&(i.navigator.baseSeries[0].xAxis.options.range=void 0),d=l,p=h);if(f&&s._offsetMin&&eq(d)&&(d+=s._offsetMin),s._offsetMax&&eq(p)&&(p+=s._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),o)(e0(d)||e0(p))&&(o.setExtremes(d,p,e5(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:s}),i.setFixedRange(s._range));else{c=e6(i.options.xAxis||{})[0];let t=e_(i,"afterCreateAxes",function(){let t=i.xAxis[0];t.range=t.options.range=u,t.min=t.options.min=g});e_(i,"load",function(){let e=i.xAxis[0];i.setFixedRange(s._range),e.options.range=c.range,e.options.min=c.min,t()})}eQ(this,"afterBtnClick")}}setSelected(t){this.selected=this.options.selected=t}init(t){let e=this,i=t.options.rangeSelector,s=t.options.lang,o=i.buttons,a=i.selected,n=function(){let t=e.minInput,i=e.maxInput;t&&t.blur&&eQ(t,"blur"),i&&i.blur&&eQ(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o.map(t=>(t.type&&s.rangeSelector&&(t.text??(t.text=s.rangeSelector[`${t.type}Text`]),t.title??(t.title=s.rangeSelector[`${t.type}Title`])),t.text=eV(t.text,{count:t.count||1}),t.title=eV(t.title,{count:t.count||1}),t)),this.eventsToUnbind=[],this.eventsToUnbind.push(e_(t.container,"mousedown",n)),this.eventsToUnbind.push(e_(t,"resize",n)),o.forEach(e.computeButtonRange),void 0!==a&&o[a]&&this.clickButton(a,!1),this.eventsToUnbind.push(e_(t,"load",function(){t.xAxis&&t.xAxis[0]&&e_(t.xAxis[0],"setExtremes",function(i){e0(this.max)&&e0(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let t=this,e=this.chart,i=this.dropdown,s=this.dropdownLabel,o=e.xAxis[0],a=Math.round(o.max-o.min),n=!o.hasVisibleSeries,r=24*36e5,l=e.scroller&&e.scroller.getUnionExtremes()||o,h=l.dataMin,d=l.dataMax,p=t.getYTDExtremes(d,h),c=p.min,u=p.max,g=t.selected,m=t.options.allButtonsEnabled,x=Array(t.buttonOptions.length).fill(0),f=e0(g),b=t.buttons,v=!1,y=null;t.buttonOptions.forEach((e,i)=>{let s=e._range,l=e.type,p=e.count||1,b=e._offsetMax-e._offsetMin,M=i===g,A=s>d-h,w=s<o.minRange,k=!1,S=s===a;if(M&&A&&(v=!0),o.isOrdinal&&o.ordinal?.positions&&s&&a<s){let t=o.ordinal.positions;t[t.length-1]-t[0]>s&&(S=!0)}else("month"===l||"year"===l)&&a+36e5>=({month:28,year:365})[l]*r*p-b&&a-36e5<=({month:31,year:366})[l]*r*p+b?S=!0:"ytd"===l?(S=u-c+b===a,k=!M):"all"===l&&(S=o.max-o.min>=d-h);let O=!m&&!(v&&"all"===l)&&(A||w||n),E=v&&"all"===l||!k&&S||M&&t.frozenStates;O?x[i]=3:E&&(!f||i===g)&&(y=i)}),null!==y?(x[y]=2,t.setSelected(y),this.dropdown&&(this.dropdown.selectedIndex=y+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),s&&(s.setState(0),s.attr({text:(eF.lang.rangeSelectorZoom||"")+" ▾"})));for(let e=0;e<x.length;e++){let o=x[e],a=b[e];if(a.state!==o&&(a.setState(o),i)){i.options[e+1].disabled=3===o,2===o&&(s&&(s.setState(2),s.attr({text:t.buttonOptions[e].text+" ▾"})),i.selectedIndex=e+1);let a=s.getBBox();eZ(i,{width:`${a.width}px`,height:`${a.height}px`})}}}computeButtonRange(t){let e=t.type,i=t.count||1,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};s[e]?t._range=s[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=e5(t.offsetMin,0),t._offsetMax=e5(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin}getInputValue(t){let e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,s=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===s.timezone,s):0}setInputValue(t,e){let i=this.options,s=this.chart.time,o="min"===t?this.minInput:this.maxInput,a="min"===t?this.minDateBox:this.maxDateBox;if(o){o.setAttribute("type",e9(i.inputDateFormat||"%e %b %Y"));let t=o.getAttribute("data-hc-time"),n=eq(t)?Number(t):void 0;if(eq(e)){let t=n;eq(t)&&o.setAttribute("data-hc-time-previous",t),o.setAttribute("data-hc-time",e),n=e}o.value=s.dateFormat(this.inputTypeFormats[o.type]||i.inputEditDateFormat,n),a&&a.attr({text:s.dateFormat(i.inputDateFormat,n)})}}setInputExtremes(t,e,i){let s="min"===t?this.minInput:this.maxInput;if(s){let t=this.inputTypeFormats[s.type],o=this.chart.time;if(t){let a=o.dateFormat(t,e);s.min!==a&&(s.min=a);let n=o.dateFormat(t,i);s.max!==n&&(s.max=n)}}}showInput(t){let e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){let t="text"===i.type,{translateX:s=0,translateY:o=0}=this.inputGroup,{x:a=0,width:n=0,height:r=0}=e,{inputBoxWidth:l}=this.options;eZ(i,{width:t?n+(l?-2:20)+"px":"auto",height:r-2+"px",border:"2px solid silver"}),t&&l?eZ(i,{left:s+a+"px",top:o+"px"}):eZ(i,{left:Math.min(Math.round(a+s-(i.offsetWidth-n)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:o-(i.offsetHeight-r)/2+"px"})}}hideInput(t){let e="min"===t?this.minInput:this.maxInput;e&&eZ(e,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(t,e,i){return i?.parse(t)||0}drawInput(t){let{chart:e,div:i,inputGroup:s}=this,o=this,a=e.renderer.style||{},n=e.renderer,r=e.options.rangeSelector,l=eF.lang,h="min"===t;function d(t){let{maxInput:i,minInput:s}=o,a=e.xAxis[0],n=e.scroller?.getUnionExtremes()||a,r=n.dataMin,l=n.dataMax,d=e.xAxis[0].getExtremes()[t],p=o.getInputValue(t);e0(p)&&p!==d&&(h&&i&&e0(r)?p>Number(i.getAttribute("data-hc-time"))?p=void 0:p<r&&(p=r):s&&e0(l)&&(p<Number(s.getAttribute("data-hc-time"))?p=void 0:p>l&&(p=l)),void 0!==p&&a.setExtremes(h?p:a.min,h?a.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}let p=l[h?"rangeSelectorFrom":"rangeSelectorTo"]||"",u=n.label(p,0).addClass("highcharts-range-label").attr({padding:2*!!p,height:p?r.inputBoxHeight:0}).add(s),g=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:r.inputBoxWidth,height:r.inputBoxHeight,"text-align":"center"}).on("click",function(){o.showInput(t),o[t+"Input"].focus()});e.styledMode||g.attr({stroke:r.inputBoxBorderColor,"stroke-width":1}),g.add(s);let m=ej("input",{name:t,className:"highcharts-range-selector"},void 0,i);m.setAttribute("type",e9(r.inputDateFormat||"%e %b %Y")),e.styledMode||(u.css(e2(a,r.labelStyle)),g.css(e2({color:"#333333"},a,r.inputStyle)),eZ(m,eJ({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},r.inputStyle))),m.onfocus=()=>{o.showInput(t)},m.onblur=()=>{m===c().doc.activeElement&&d(t),o.hideInput(t),o.setInputValue(t),m.blur()};let x=!1;return m.onchange=()=>{x||(d(t),o.hideInput(t),m.blur())},m.onkeypress=e=>{13===e.keyCode&&d(t)},m.onkeydown=e=>{x=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},m.onkeyup=()=>{x=!1},{dateBox:g,input:m,label:u}}getPosition(){let t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}}getYTDExtremes(t,e){let i=this.chart.time,s=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(s,0))}}createElements(){let t=this.chart,e=t.renderer,i=t.container,s=t.options,o=s.rangeSelector,a=o.inputEnabled,n=e5(s.chart.style?.zIndex,0)+1;!1!==o.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=ej("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),a&&this.createInputs())}createInputs(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);let t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;let e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input}render(t,e){if(!1===this.options.enabled)return;let i=this.chart,s=i.options.rangeSelector;if(s.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(this.maxLabel?.css(s.labelStyle),this.minLabel?.css(s.labelStyle));let o=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(eq(o.dataMin)&&eq(o.dataMax)){let t=i.xAxis[0].minRange||0;this.setInputExtremes("min",o.dataMin,Math.min(o.dataMax,this.getInputValue("max"))-t),this.setInputExtremes("max",Math.max(o.dataMin,this.getInputValue("min"))+t,o.dataMax)}if(this.inputGroup){let t=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(e=>{if(e){let{width:i}=e.getBBox();i&&(e.attr({x:t}),t+=i+s.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(s.labelStyle),this.alignElements(),this.updateButtonStates()}renderButtons(){var t;let{chart:e,options:i}=this,s=eF.lang,o=e.renderer,a=e2(i.buttonTheme),n=a&&a.states;delete a.width,delete a.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);let r=this.dropdown=ej("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),l=e.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=o.button("",0,0,()=>{},e2(a,{"stroke-width":e5(a["stroke-width"],0),width:"auto",paddingLeft:e5(i.buttonTheme.paddingLeft,l?.padding,8),paddingRight:e5(i.buttonTheme.paddingRight,l?.padding,8)}),n&&n.hover,n&&n.select,n&&n.disabled).hide().add(this.group),e_(r,"touchstart",()=>{r.style.fontSize="16px"});let h=c().isMS?"mouseover":"mouseenter",d=c().isMS?"mouseout":"mouseleave";e_(r,h,()=>{eQ(this.dropdownLabel.element,h)}),e_(r,d,()=>{eQ(this.dropdownLabel.element,d)}),e_(r,"change",()=>{eQ(this.buttons[r.selectedIndex-1].element,"click")}),this.zoomText=o.label(s.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),(t=i.buttonTheme)["stroke-width"]??(t["stroke-width"]=0)),ej("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,r),this.createButtons()}createButtons(){let{options:t}=this,e=e2(t.buttonTheme),i=e&&e.states,s=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach((t,e)=>{this.createButton(t,e,s,i)})}createButton(t,e,i,s){let{dropdown:o,buttons:a,chart:n,options:r}=this,l=n.renderer,h=e2(r.buttonTheme);o?.add(ej("option",{textContent:t.title||t.text}),e+2),a[e]=l.button(t.text??"",0,0,i=>{let s,o=t.events&&t.events.click;o&&(s=o.call(t,i)),!1!==s&&this.clickButton(e),this.isActive=!0},h,s&&s.hover,s&&s.select,s&&s.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&a[e].attr("title",t.title)}alignElements(){let{buttonGroup:t,buttons:e,chart:i,group:s,inputGroup:o,options:a,zoomText:n}=this,r=i.options,l=r.exporting&&!1!==r.exporting.enabled&&r.navigation&&r.navigation.buttonOptions,{buttonPosition:h,inputPosition:d,verticalAlign:p}=a,c=(t,e,s)=>l&&this.titleCollision(i)&&"top"===p&&s&&e.y-t.getBBox().height-12<(l.y||0)+(l.height||0)+i.spacing[0]?-40:0,u=i.plotLeft;if(s&&h&&d){let r=h.x-i.spacing[3];if(t){if(this.positionButtons(),!this.initialButtonGroupWidth){let t=0;n&&(t+=n.getBBox().width+5),e.forEach((i,s)=>{t+=i.width||0,s!==e.length-1&&(t+=a.buttonSpacing)}),this.initialButtonGroupWidth=t}u-=i.spacing[3];let o=c(t,h,"right"===h.align||"right"===d.align);this.alignButtonGroup(o),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),s.placed=t.placed=i.hasLoaded}let l=0;a.inputEnabled&&o&&(l=c(o,d,"right"===h.align||"right"===d.align),"left"===d.align?r=u:"right"===d.align&&(r=-Math.max(i.axisOffset[1],-l)),o.align({y:d.y,width:o.getBBox().width,align:d.align,x:d.x+r-2},!0,i.spacingBox),o.placed=i.hasLoaded),this.handleCollision(l),s.align({verticalAlign:p},!0,i.spacingBox);let g=s.alignAttr.translateY,m=s.getBBox().height+20,x=0;if("bottom"===p){let t=i.legend&&i.legend.options;x=g-(m=m+(t&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?i.legend.legendHeight+e5(t.margin,10):0)-20)-(a.floating?0:a.y)-(i.titleOffset?i.titleOffset[2]:0)-10}"top"===p?(a.floating&&(x=0),i.titleOffset&&i.titleOffset[0]&&(x=i.titleOffset[0]),x+=i.margin[0]-i.spacing[0]||0):"middle"===p&&(d.y===h.y?x=g:(d.y||h.y)&&(d.y<0||h.y<0?x-=Math.min(d.y,h.y):x=g-m)),s.translate(a.x,a.y+Math.floor(x));let{minInput:f,maxInput:b,dropdown:v}=this;a.inputEnabled&&f&&b&&(f.style.marginTop=s.translateY+"px",b.style.marginTop=s.translateY+"px"),v&&(v.style.marginTop=s.translateY+"px")}}redrawElements(){let t=this.chart,{inputBoxHeight:e,inputBoxBorderColor:i}=this.options;if(this.maxDateBox?.attr({height:e}),this.minDateBox?.attr({height:e}),t.styledMode||(this.maxDateBox?.attr({stroke:i}),this.minDateBox?.attr({stroke:i})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;let t=this.options.buttons??[],e=Math.min(t.length,this.buttonOptions.length),{dropdown:i,options:s}=this,o=e2(s.buttonTheme),a=o&&o.states,n=o.width||28;if(t.length<this.buttonOptions.length)for(let e=this.buttonOptions.length-1;e>=t.length;e--){let t=this.buttons.pop();t?.destroy(),this.dropdown?.options.remove(e+1)}for(let s=e-1;s>=0;s--){let e=t[s];this.buttons[s].destroy(),i?.options.remove(s+1),this.createButton(e,s,n,a),this.computeButtonRange(e)}if(t.length>this.buttonOptions.length)for(let e=this.buttonOptions.length;e<t.length;e++)this.createButton(t[e],e,n,a),this.computeButtonRange(t[e]);this.buttonOptions=this.options.buttons??[],eq(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}}alignButtonGroup(t,e){let{chart:i,options:s,buttonGroup:o,dropdown:a,dropdownLabel:n}=this,{buttonPosition:r}=s,l=i.plotLeft-i.spacing[3],h=r.x-i.spacing[3],d=i.plotLeft;"right"===r.align?(h+=t-l,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===r.align&&(h-=l/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),a&&eZ(a,{left:d+"px",top:o?.translateY+"px"}),n?.attr({x:d}),o&&o.align({y:r.y,width:e5(e,this.initialButtonGroupWidth),align:r.align,x:h},!0,i.spacingBox)}positionButtons(){let{buttons:t,chart:e,options:i,zoomText:s}=this,o=e.hasLoaded?"animate":"attr",{buttonPosition:a}=i,n=e.plotLeft,r=n;s&&"hidden"!==s.visibility&&(s[o]({x:e5(n+a.x,n)}),r+=a.x+s.getBBox().width+5);for(let e=0,s=this.buttonOptions.length;e<s;++e)"hidden"!==t[e].visibility?(t[e][o]({x:r}),r+=(t[e].width||0)+i.buttonSpacing):t[e][o]({x:n})}handleCollision(t){let{chart:e,buttonGroup:i,inputGroup:s,initialButtonGroupWidth:o}=this,{buttonPosition:a,dropdown:n,inputPosition:r}=this.options,l=()=>{s&&i&&s.attr({translateX:s.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:s.alignAttr.translateY+i.getBBox().height+10})};s&&i?r.align===a.align?(l(),o>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):o-t+s.getBBox().width>e.plotWidth?"responsive"===n||"always"===n?this.collapseButtons():l():this.expandButtons():i&&"responsive"===n&&(o>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===n&&this.collapseButtons(),"never"===n&&this.expandButtons()),this.alignButtonGroup(t)}collapseButtons(){let{buttons:t,zoomText:e}=this;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(t=>void t.hide()),this.showDropdown())}expandButtons(){let{buttons:t,zoomText:e}=this;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(t=>void t.show()),this.positionButtons())}showDropdown(){let{buttonGroup:t,dropdownLabel:e,dropdown:i}=this;t&&i&&(e.show(),eZ(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)}hideDropdown(){let{dropdown:t}=this;t&&(this.dropdownLabel.hide(),eZ(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)}getHeight(){let t=this.options,e=this.group,i=t.inputPosition,s=t.buttonPosition,o=t.y,a=s.y,n=i.y,r=0;if(t.height)return t.height;this.alignElements(),r=e?e.getBBox(!0).height+13+o:0;let l=Math.min(n,a);return(n<0&&a<0||n>0&&a>0)&&(r+=Math.abs(l)),r}titleCollision(t){return!(t.options.title.text||t.options.subtitle.text)}update(t,e=!0){let i=this.chart;if(e2(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),eq(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons||!!t.buttonTheme,e&&this.render()}destroy(){let t=this,e=t.minInput,i=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach(t=>t()),t.eventsToUnbind=void 0),eK(t.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),e3(t,function(e,i){e&&"chart"!==i&&(e instanceof eN()?e.destroy():e instanceof window.HTMLElement&&e$(e),delete t[i]),e!==e4.prototype[i]&&(t[i]=null)},this),this.buttons=[]}}eJ(e4.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});let e8=i.default.Chart;var e7=d.n(e8);let{format:it}=eH(),{getOptions:ie}=c(),{setFixedRange:ii}=tu,{addEvent:is,clamp:io,crisp:ia,defined:ir,extend:il,find:ih,isNumber:id,isString:ip,merge:ic,pick:iu,splat:ig}=c();function im(t,e,i){return"xAxis"===t?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:"yAxis"===t?{labels:{y:-2},opposite:i.opposite??e.opposite??!0,showLastLabel:!!(e.categories||"category"===e.type),title:{text:void 0}}:{}}function ix(t,e){if("xAxis"===t){let t=iu(e.navigator?.enabled,to.enabled,!0),i={type:"datetime",categories:void 0};return t&&(i.startOnTick=!1,i.endOnTick=!1),i}return{}}class ib extends e7(){init(t,e){let i=ie(),s=t.xAxis,o=t.yAxis,a=iu(t.navigator?.enabled,to.enabled,!0);t.xAxis=t.yAxis=void 0;let n=ic({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:a},scrollbar:{enabled:iu(tB.enabled,!0)},rangeSelector:{enabled:iu(ey.enabled,!0)},title:{text:null},tooltip:{split:iu(i.tooltip?.split,!0),crosshairs:!0},legend:{enabled:!1}},t,{isStock:!0});t.xAxis=s,t.yAxis=o,n.xAxis=ig(t.xAxis||{}).map(e=>ic(im("xAxis",e,i.xAxis),e,ix("xAxis",t))),n.yAxis=ig(t.yAxis||{}).map(t=>ic(im("yAxis",t,i.yAxis),t)),super.init(n,e)}createAxis(t,e){return e.axis=ic(im(t,e.axis,ie()[t]),e.axis,ix(t,this.userOptions)),super.createAxis(t,e)}}is(e7(),"update",function(t){let e=t.options;"scrollbar"in e&&this.navigator&&(ic(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({enabled:!!this.navigator.navigatorEnabled}),delete e.scrollbar)}),function(t){function e(t){if(!(this.crosshair?.label?.enabled&&this.cross&&id(this.min)&&id(this.max)))return;let e=this.chart,i=this.logarithmic,s=this.crosshair.label,o=this.horiz,a=this.opposite,n=this.left,r=this.top,l=this.width,h="inside"===this.options.tickPosition,d=!1!==this.crosshair.snap,p=t.e||this.cross?.e,c=t.point,u=this.crossLabel,g,m,x=s.format,f="",b,v=0,y=this.min,M=this.max;i&&(y=i.lin2log(this.min),M=i.lin2log(this.max));let A=o?"center":a?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";!u&&(u=this.crossLabel=e.renderer.label("",0,void 0,s.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(c?.series?c.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:s.align||A,padding:iu(s.padding,8),r:iu(s.borderRadius,3),zIndex:2}).add(this.labelGroup),e.styledMode||u.attr({fill:s.backgroundColor||c?.series?.color||"#666666",stroke:s.borderColor||"","stroke-width":s.borderWidth||0}).css(il({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},s.style||{}))),o?(g=d?(c.plotX||0)+n:p.chartX,m=r+(a?0:this.height)):(g=n+this.offset+(a?l:0),m=d?(c.plotY||0)+r:p.chartY),x||s.formatter||(this.dateTime&&(f="%b %d, %Y"),x="{value"+(f?":"+f:"")+"}");let w=d?this.isXAxis?c.x:c.y:this.toValue(o?p.chartX:p.chartY),k=c?.series?c.series.isPointInside(c):id(w)&&w>y&&w<M,S="";x?S=it(x,{value:w},e):s.formatter&&id(w)&&(S=s.formatter.call(this,w)),u.attr({text:S,x:g,y:m,visibility:k?"inherit":"hidden"});let O=u.getBBox();!id(u.x)||o||a||(g=u.x-O.width/2),id(u.y)&&(o?(h&&!a||!h&&a)&&(m=u.y-O.height):m=u.y-O.height/2),b=o?{left:n,right:n+this.width}:{left:"left"===this.labelAlign?n:0,right:"right"===this.labelAlign?n+this.width:e.chartWidth};let E=u.translateX||0;E<b.left&&(v=b.left-E),E+O.width>=b.right&&(v=-(E+O.width-b.right)),u.attr({x:Math.max(0,g+v),y:Math.max(0,m),anchorX:o?g:this.opposite?0:e.chartWidth,anchorY:o?this.opposite?e.chartHeight:0:m+O.height/2})}function i(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function s(t){let e=this.chart,i=this.options,s=e._labelPanes=e._labelPanes||{},o=i.labels;if(e.options.isStock&&"yAxis"===this.coll){let e=i.top+","+i.height;!s[e]&&o.enabled&&(15===o.distance&&1===this.side&&(o.distance=0),void 0===o.align&&(o.align="right"),s[e]=this,t.align="right",t.preventDefault())}}function o(){let t=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&t._labelPanes&&t._labelPanes[e]===this&&delete t._labelPanes[e]}function a(t){let e=this.isLinked&&!this.series&&this.linkedParent?this.linkedParent.series:this.series,{chart:i,horiz:s}=this,o=i.renderer,a=[],{acrossPanes:n=!0,force:r,translatedValue:l,value:h}=t,d=(this.isXAxis?i.yAxis:i.xAxis)||[];function p(t,e,i){a.push(["M",s?t:e,s?e:t],["L",s?t:i,s?i:t])}let c=[],u,g;if(i.options.isStock&&("xAxis"===this.coll||"yAxis"===this.coll)){let m,x;for(let s of(t.preventDefault(),m="xAxis"===this.coll?"yAxis":"xAxis",x=this.options[m],c=n&&!this.options.isInternal?d.filter(t=>!t.options.isInternal):id(x)?[i[m][x]]:ip(x)?[i.get(x)]:e.map(t=>t[m]),d))if(!s.options.isInternal){let t=s.isXAxis?"yAxis":"xAxis";this===(ir(s.options[t])&&i[t][s.options[t]])&&c.push(s)}for(let t of(u=c.length?[]:[this.isXAxis?i.yAxis[0]:i.xAxis[0]],c))-1!==u.indexOf(t)||ih(u,e=>e.pos===t.pos&&e.len===t.len)||u.push(t);if(id(g=iu(l,this.translate(h||0,void 0,void 0,t.old)))){let t,e=s?g+this.pos:this.pos+this.len-g;if("pass"!==r&&(e<this.pos||e>this.pos+this.len)&&(r?e=io(e,this.pos,this.pos+this.len):t=!0),!t){let t=s?"top":"left",i=s?"height":"width";if(!n&&(this.options[t]||this.options[i]))p(e,this[t],this[t]+this[i]);else for(let t of u)p(e,t.pos,t.pos+t.len)}}t.path=a.length>0?o.crispPolyLine(a,t.lineWidth||1):void 0}}function n(t){if(this.chart.options.isStock){let e;this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(t.plotOptions[this.type]=ic(t.plotOptions[this.type],e))}}function r(){let t=this.chart,e=this.options.dataGrouping;return!1!==this.allowDG&&e&&iu(e.enabled,t.options.isStock)}function l(t,e){for(let i=0;i<t.length;i+=2){let s=t[i],o=t[i+1];ir(s[1])&&s[1]===o[1]&&(s[1]=o[1]=ia(s[1],e)),ir(s[2])&&s[2]===o[2]&&(s[2]=o[2]=ia(s[2],e))}return t}t.compose=function(t,h,d,p){let c=d.prototype;c.forceCropping||(is(h,"afterDrawCrosshair",e),is(h,"afterHideCrosshair",i),is(h,"autoLabelAlign",s),is(h,"destroy",o),is(h,"getPlotLinePath",a),t.prototype.setFixedRange=ii,c.forceCropping=r,is(d,"setOptions",n),p.prototype.crispPolyLine=l)},t.stockChart=function(e,i,s){return new t(e,i,s)}}(ib||(ib={}));let iv=ib,{column:{prototype:{pointClass:iy}}}=te().seriesTypes,{column:iM}=te().seriesTypes,{crisp:iA,extend:iw,merge:ik}=c(),{defaultOptions:iS}=c();class iO extends iM{extendStem(t,e,i){let s=t[0],o=t[1];"number"==typeof s[2]&&(s[2]=Math.max(i+e,s[2])),"number"==typeof o[2]&&(o[2]=Math.min(i-e,o[2]))}getPointPath(t,e){let i=e.strokeWidth(),s=t.series,o=iA(t.plotX||0,i),a=Math.round(t.shapeArgs.width/2),n=[["M",o,Math.round(t.yBottom)],["L",o,Math.round(t.plotHigh)]];if(null!==t.close){let e=iA(t.plotClose,i);n.push(["M",o,e],["L",o+a,e]),s.extendStem(n,i/2,e)}return n}drawSinglePoint(t){let e=t.series,i=e.chart,s,o=t.graphic;void 0!==t.plotY&&(o||(t.graphic=o=i.renderer.path().add(e.group)),i.styledMode||o.attr(e.pointAttribs(t,t.selected&&"select")),s=e.getPointPath(t,o),o[!o?"attr":"animate"]({d:s}).addClass(t.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(t,e){let i=super.pointAttribs.call(this,t,e);return delete i.fill,i}toYData(t){return[t.high,t.low,t.close]}translate(){let t=this,e=t.yAxis,i=this.pointArrayMap&&this.pointArrayMap.slice()||[],s=i.map(t=>`plot${t.charAt(0).toUpperCase()+t.slice(1)}`);s.push("yBottom"),i.push("low"),super.translate.apply(t),t.points.forEach(function(o){i.forEach(function(i,a){let n=o[i];null!==n&&(t.dataModify&&(n=t.dataModify.modifyValue(n)),o[s[a]]=e.toPixels(n,!0))}),o.tooltipPos[1]=o.plotHigh+e.pos-t.chart.plotTop})}}iO.defaultOptions=ik(iM.defaultOptions,{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>{series.chart.options.lang.stockHigh}: {point.high}<br/>{series.chart.options.lang.stockLow}: {point.low}<br/>{series.chart.options.lang.stockClose}: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}),iw(iO.prototype,{pointClass:class extends iy{},animate:null,directTouch:!1,keysAffectYAxis:["low","high"],pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),iw(iS.lang,{stockOpen:"Open",stockHigh:"High",stockLow:"Low",stockClose:"Close"}),te().registerSeriesType("hlc",iO);let{seriesTypes:{hlc:iE}}=te();class iC extends iE.prototype.pointClass{getClassName(){return super.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}resolveUpColor(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)}resolveColor(){super.resolveColor(),this.series.is("heikinashi")||this.resolveUpColor()}getZone(){let t=super.getZone();return this.resolveUpColor(),t}applyOptions(){return super.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this}}let{composed:iT}=c(),{hlc:iB}=te().seriesTypes,{addEvent:iD,crisp:iP,extend:iR,merge:iz,pushUnique:iI}=c();function iL(t){let e=t.options,i=e.dataGrouping;i&&e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(i.approximation="ohlc")}function iW(t){let e=t.options;e.useOhlcData&&"highcharts-navigator-series"!==e.id&&iR(this,{pointValKey:iX.prototype.pointValKey,pointArrayMap:iX.prototype.pointArrayMap,toYData:iX.prototype.toYData})}class iX extends iB{static compose(t){iI(iT,"OHLCSeries")&&(iD(t,"afterSetOptions",iL),iD(t,"init",iW))}getPointPath(t,e){let i=super.getPointPath(t,e),s=e.strokeWidth(),o=iP(t.plotX||0,s),a=Math.round(t.shapeArgs.width/2);if(null!==t.open){let e=iP(t.plotOpen,s);i.push(["M",o,e],["L",o-a,e]),super.extendStem(i,s/2,e)}return i}pointAttribs(t,e){let i=super.pointAttribs.call(this,t,e),s=this.options;return delete i.fill,!t.options.color&&s.upColor&&t.open<t.close&&(i.stroke=s.upColor),i}toYData(t){return[t.open,t.high,t.low,t.close]}}iX.defaultOptions=iz(iB.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>{series.chart.options.lang.stockOpen}: {point.open}<br/>{series.chart.options.lang.stockHigh}: {point.high}<br/>{series.chart.options.lang.stockLow}: {point.low}<br/>{series.chart.options.lang.stockClose}: {point.close}<br/>'}}),iR(iX.prototype,{pointClass:iC,pointArrayMap:["open","high","low","close"]}),te().registerSeriesType("ohlc",iX);let{column:iG,ohlc:iY}=te().seriesTypes,{crisp:iN,merge:iU}=c();class iH extends iY{pointAttribs(t,e){let i=iG.prototype.pointAttribs.call(this,t,e),s=this.options,o=t.open<t.close,a=s.lineColor||this.color,n=t.color||this.color;if(i["stroke-width"]=s.lineWidth,i.fill=t.options.color||o&&s.upColor||n,i.stroke=t.options.lineColor||o&&s.upLineColor||a,e){let t=s.states[e];i.fill=t.color||i.fill,i.stroke=t.lineColor||i.stroke,i["stroke-width"]=t.lineWidth||i["stroke-width"]}return i}drawPoints(){let t=this.points,e=this.chart,i=this.yAxis.reversed;for(let s of t){let t=s.graphic,o,a,n,r,l,h,d,p,c,u=!t;if(void 0!==s.plotY){t||(s.graphic=t=e.renderer.path().add(this.group)),this.chart.styledMode||t.attr(this.pointAttribs(s,s.selected&&"select")).shadow(this.options.shadow);let g=t.strokeWidth();d=iN(s.plotX||0,g),n=Math.min(o=s.plotOpen,a=s.plotClose),r=Math.max(o,a),c=Math.round(s.shapeArgs.width/2),l=i?r!==s.yBottom:Math.round(n)!==Math.round(s.plotHigh||0),h=i?Math.round(n)!==Math.round(s.plotHigh||0):r!==s.yBottom,n=iN(n,g),r=iN(r,g),(p=[]).push(["M",d-c,r],["L",d-c,n],["L",d+c,n],["L",d+c,r],["Z"],["M",d,n],["L",d,l?Math.round(i?s.yBottom:s.plotHigh):n],["M",d,r],["L",d,h?Math.round(i?s.plotHigh:s.yBottom):r]),t[u?"attr":"animate"]({d:p}).addClass(s.getClassName(),!0)}}}}iH.defaultOptions=iU(iY.defaultOptions,{tooltip:iY.defaultOptions.tooltip},{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}),te().registerSeriesType("candlestick",iH);let{column:{prototype:{pointClass:iF}}}=te().seriesTypes,{isNumber:iV}=c(),i_=class extends iF{constructor(){super(...arguments),this.ttBelow=!1}isValid(){return iV(this.y)||void 0===this.y}hasNewShapeType(){let t=this.options.shape||this.series.options.shape;return this.graphic&&t&&t!==this.graphic.symbolKey}};!function(t){let e=[];function i(t,e,i,s,o){let a=o&&o.anchorX||t,n=o&&o.anchorY||e,r=this.circle(a-1,n-1,2,2);return r.push(["M",a,n],["L",t,e+s],["L",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]),r}function s(t,e){t[e+"pin"]=function(i,s,o,a,n){let r,l=n&&n.anchorX,h=n&&n.anchorY;if("circle"===e&&a>o&&(i-=Math.round((a-o)/2),o=a),r=t[e](i,s,o,a,n),l&&h){let n=l;if("circle"===e)n=i+o/2;else{let t=r[0],e=r[1];"M"===t[0]&&"L"===e[0]&&(n=(t[1]+e[1])/2)}let d=s>h?s:s+a;r.push(["M",n,d],["L",l,h]),r=r.concat(t.circle(l-1,h-1,2,2))}return r}}t.compose=function(t){if(-1===e.indexOf(t)){e.push(t);let o=t.prototype.symbols;o.flag=i,s(o,"circle"),s(o,"square")}let o=tp().getRendererType();e.indexOf(o)&&e.push(o)}}(l||(l={}));let ij=l,iZ=i.default.Series.types.column;var iq=d.n(iZ);let{composed:iK}=c(),{prototype:i$}=iq(),{prototype:iJ}=x(),{defined:iQ,pushUnique:i0,stableSort:i1}=c();var i2=h||(h={});function i3(t){return iJ.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,t)}function i5(){i$.translate.apply(this);let t=this,e=t.options,i=t.chart,s=t.points,o=e.onSeries,a=o&&i.get(o),n=a&&a.options.step,r=a&&a.points,l=i.inverted,h=t.xAxis,d=t.yAxis,p=s.length-1,c,u,g=e.onKey||"y",m=r&&r.length,x=0,f,b,v,y,M;if(a&&a.visible&&m){for(x=(a.pointXOffset||0)+(a.barW||0)/2,y=a.currentDataGrouping,b=r[m-1].x+(y?y.totalRange:0),i1(s,(t,e)=>t.x-e.x),g="plot"+g[0].toUpperCase()+g.substr(1);m--&&s[p];)if(f=r[m],(c=s[p]).y=f.y,f.x<=c.x&&void 0!==f[g]){if(c.x<=b&&(c.plotY=f[g],f.x<c.x&&!n&&(v=r[m+1]))&&void 0!==v[g])if(iQ(c.plotX)&&a.is("spline")){let t=[f.plotX||0,f.plotY||0],e=[v.plotX||0,v.plotY||0],i=f.controlPoints?.high||t,s=v.controlPoints?.low||e,o=(o,a)=>Math.pow(1-o,3)*t[a]+3*(1-o)*(1-o)*o*i[a]+3*(1-o)*o*o*s[a]+o*o*o*e[a],a=0,n=1,r;for(let t=0;t<100;t++){let t=(a+n)/2,e=o(t,0);if(null===e)break;if(.25>Math.abs(e-c.plotX)){r=t;break}e<c.plotX?a=t:n=t}iQ(r)&&(c.plotY=o(r,1),c.y=d.toValue(c.plotY,!0))}else M=(c.x-f.x)/(v.x-f.x),c.plotY+=M*(v[g]-f[g]),c.y+=M*(v.y-f.y);if(p--,m++,p<0)break}}s.forEach((e,i)=>{let o;e.plotX+=x,(void 0===e.plotY||l)&&(e.plotX>=0&&e.plotX<=h.len?l?(e.plotY=h.translate(e.x,0,1,0,1),e.plotX=iQ(e.y)?d.translate(e.y,0,0,0,1):0):e.plotY=(h.opposite?0:t.yAxis.len)+h.offset:e.shapeArgs={}),(u=s[i-1])&&u.plotX===e.plotX&&(void 0===u.stackIndex&&(u.stackIndex=0),o=u.stackIndex+1),e.stackIndex=o}),this.onSeries=a}i2.compose=function(t){if(i0(iK,"OnSeries")){let e=t.prototype;e.getPlotBox=i3,e.translate=i5}return t},i2.getPlotBox=i3,i2.translate=i5;let i6=h,{noop:i9}=c(),{distribute:i4}=c(),{series:i8,seriesTypes:{column:i7}}=te(),{addEvent:st,defined:se,extend:si,isNumber:ss,merge:so,objectEach:sa,wrap:sn}=c();class sr extends i7{animate(t){t&&this.setClip()}drawPoints(){let t,e,i,s,o,a,n,r,l,h,d,p=this.points,c=this.chart,u=c.renderer,g=c.inverted,m=this.options,x=m.y,f=this.yAxis,b={},v=[],y=ss(m.borderRadius)?m.borderRadius:0;for(s=p.length;s--;)o=p[s],h=(g?o.plotY:o.plotX)>this.xAxis.len,t=o.plotX,n=o.stackIndex,i=o.options.shape||m.shape,void 0!==(e=o.plotY)&&(e=o.plotY+x-(void 0!==n&&n*m.stackDistance)),o.anchorX=n?void 0:o.plotX,r=n?void 0:o.plotY,d="flag"!==i,a=o.graphic,void 0!==e&&t>=0&&!h?(a&&o.hasNewShapeType()&&(a=a.destroy()),a||(a=o.graphic=u.label("",0,void 0,i,void 0,void 0,m.useHTML).addClass(o.getClassName()).add(this.markerGroup),o.graphic.div&&(o.graphic.div.point=o),a.isNew=!0),a.attr({align:d?"center":"left",width:m.width,height:m.height,"text-align":m.textAlign,r:y}),c.styledMode||a.attr(this.pointAttribs(o)).css(so(m.style,o.style)).shadow(m.shadow),t>0&&(t-=a.strokeWidth()%2),l={y:e,anchorY:r},m.allowOverlapX&&(l.x=t,l.anchorX=o.anchorX),a.attr({text:o.options.title??m.title??"A"})[a.isNew?"attr":"animate"](l),m.allowOverlapX||(b[o.plotX]?b[o.plotX].size=Math.max(b[o.plotX].size,a.width||0):b[o.plotX]={align:.5*!!d,size:a.width||0,target:t,anchorX:t}),o.tooltipPos=[t,e+f.pos-c.plotTop]):a&&(o.graphic=a.destroy());if(!m.allowOverlapX){let t=100;for(let e of(sa(b,function(e){e.plotX=e.anchorX,v.push(e),t=Math.max(e.size,t)}),i4(v,g?f.len:this.xAxis.len,t),p)){let t=e.plotX,i=e.graphic,s=i&&b[t];s&&i&&(se(s.pos)?i[i.isNew?"attr":"animate"]({x:s.pos+(s.align||0)*s.size,anchorX:e.anchorX}).show().isNew=!1:i.hide().isNew=!0)}}m.useHTML&&this.markerGroup&&sn(this.markerGroup,"on",function(t){return eN().prototype.on.apply(t.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let t=this.points;for(let e of(super.drawTracker(),t)){let i=e.graphic;i&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=st(i.element,"mouseover",function(){for(let s of(e.stackIndex>0&&!e.raised&&(e._y=i.y,i.attr({y:e._y-8}),e.raised=!0),t))s!==e&&s.raised&&s.graphic&&(s.graphic.attr({y:s._y}),s.raised=!1)}))}}pointAttribs(t,e){let i=this.options,s=t&&t.color||this.color,o=i.lineColor,a=t&&t.lineWidth,n=t&&t.fillColor||i.fillColor;return e&&(n=i.states[e].fillColor,o=i.states[e].lineColor,a=i.states[e].lineWidth),{fill:n||s,stroke:o||s,"stroke-width":a||i.lineWidth||0}}setClip(){i8.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}sr.compose=ij.compose,sr.defaultOptions=so(i7.defaultOptions,{borderRadius:0,pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd3ff"}},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold"}}),i6.compose(sr),si(sr.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:i_,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:i9,init:i8.prototype.init}),te().registerSeriesType("flags",sr);let sl=c();sl.Navigator=sl.Navigator||ei,sl.OrdinalAxis=sl.OrdinalAxis||eb,sl.RangeSelector=sl.RangeSelector||e4,sl.Scrollbar=sl.Scrollbar||tF,sl.stockChart=sl.stockChart||iv.stockChart,sl.StockChart=sl.StockChart||sl.stockChart,sl.extend(sl.StockChart,iv),E.compose(sl.Series,sl.Axis,sl.Point),sr.compose(sl.Renderer),iX.compose(sl.Series),sl.Navigator.compose(sl.Chart,sl.Axis,sl.Series),sl.OrdinalAxis.compose(sl.Axis,sl.Series,sl.Chart),sl.RangeSelector.compose(sl.Axis,sl.Chart),sl.Scrollbar.compose(sl.Axis),sl.StockChart.compose(sl.Chart,sl.Axis,sl.Series,sl.SVGRenderer);let sh=c();export{sh as default};