highcharts 13.0.2 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +6 -2
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +10 -6
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +2 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +25 -1
- package/es-modules/Accessibility/KeyboardNavigation.js +1 -1
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +13 -3
- package/es-modules/Core/Animation/AnimationUtilities.js +7 -2
- package/es-modules/Core/Animation/Fx.js +1 -0
- package/es-modules/Core/Axis/Axis.js +181 -211
- package/es-modules/Core/Axis/Axis3DComposition.js +13 -15
- package/es-modules/Core/Axis/AxisDefaults.js +9 -8
- package/es-modules/Core/Axis/BrokenAxis.js +5 -4
- package/es-modules/Core/Axis/Color/ColorAxis.js +66 -54
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -0
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +6 -4
- package/es-modules/Core/Axis/DateTimeAxis.js +4 -3
- package/es-modules/Core/Axis/GridAxis.js +17 -13
- package/es-modules/Core/Axis/LogarithmicAxis.js +4 -3
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +3 -4
- package/es-modules/Core/Axis/OrdinalAxis.js +0 -15
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +135 -72
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +72 -124
- package/es-modules/Core/Axis/RadialAxis.js +50 -7
- package/es-modules/Core/Axis/ScrollbarAxis.js +3 -0
- package/es-modules/Core/Axis/Stacking/StackItem.js +49 -75
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +34 -22
- package/es-modules/Core/Axis/Tick.js +95 -92
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +9 -13
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Chart/Chart.js +13 -4
- package/es-modules/Core/Chart/StockChart.js +20 -26
- package/es-modules/Core/Defaults.js +18 -0
- package/es-modules/Core/Globals.js +9 -7
- package/es-modules/Core/Pointer.js +7 -8
- package/es-modules/Core/Renderer/HTML/AST.js +18 -11
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +5 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +1 -0
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +6 -2
- package/es-modules/Core/Series/OverlappingDataLabels.js +41 -32
- package/es-modules/Core/Series/Point.js +14 -11
- package/es-modules/Core/Series/Series.js +21 -10
- package/es-modules/Core/Tooltip.js +35 -40
- package/es-modules/Data/DataCursor.js +3 -2
- package/es-modules/Data/DataTable.js +21 -2
- package/es-modules/Data/DataTableCore.js +28 -4
- package/es-modules/Data/Formula/FormulaParser.js +30 -10
- package/es-modules/Extensions/Annotations/Annotation.js +5 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +4 -13
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -4
- package/es-modules/Extensions/Breadcrumbs/BreadcrumbsDefaults.js +1 -1
- package/es-modules/Extensions/Data.js +4 -2
- package/es-modules/Extensions/DragPanes/DragPanes.js +6 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +9 -4
- package/es-modules/Extensions/ExportData/ExportData.js +24 -4
- package/es-modules/Extensions/Pane/Pane.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +5 -4
- package/es-modules/Extensions/StaticScale.js +13 -11
- package/es-modules/Series/Area/AreaSeriesDefaults.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +1 -1
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeriesDefaults.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +1 -1
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -1
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +6 -3
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js +2 -3
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +1 -1
- package/es-modules/Series/Contour/ContourSeriesDefaults.js +12 -14
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +1 -1
- package/es-modules/Series/Flags/FlagsPoint.js +4 -2
- package/es-modules/Series/Flags/FlagsPointOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSeries.js +8 -7
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +7 -7
- package/es-modules/Series/Flags/FlagsSeriesOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +5 -3
- package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +1 -1
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +1 -7
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/Histogram/HistogramSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +1 -1
- package/es-modules/Series/Item/ItemSeriesDefaults.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +0 -1
- package/es-modules/Series/Map/MapSeriesDefaults.js +1 -1
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +0 -1
- package/es-modules/Series/MapLine/MapLineSeriesDefaults.js +1 -1
- package/es-modules/Series/MapPoint/MapPointSeriesDefaults.js +0 -1
- package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +5 -5
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +0 -1
- package/es-modules/Series/PackedBubble/PackedBubbleChart.js +18 -0
- package/es-modules/Series/PackedBubble/PackedBubbleDataLabelOptions.js +12 -0
- package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +3 -3
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubblePointOptions.js +12 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +20 -20
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesOptions.js +12 -0
- package/es-modules/Series/ParetoSeries/ParetoPoint.js +17 -0
- package/es-modules/Series/ParetoSeries/ParetoPointOptions.js +12 -0
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -3
- package/es-modules/Series/ParetoSeries/ParetoSeriesDefaults.js +1 -1
- package/es-modules/Series/ParetoSeries/ParetoSeriesOptions.js +12 -0
- package/es-modules/Series/PathUtilities.js +3 -1
- package/es-modules/Series/Pictorial/PictorialPointOptions.js +12 -0
- package/es-modules/Series/Pictorial/PictorialSeries.js +5 -25
- package/es-modules/Series/Pictorial/PictorialSeriesDefaults.js +45 -0
- package/es-modules/Series/Pictorial/PictorialSeriesOptions.js +12 -0
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DPoint.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +6 -6
- package/es-modules/Series/PolarComposition.js +22 -21
- package/es-modules/Series/Polygon/PolygonPoint.js +17 -0
- package/es-modules/Series/Polygon/PolygonPointOptions.js +12 -0
- package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +1 -1
- package/es-modules/Series/Polygon/PolygonSeriesOptions.js +12 -0
- package/es-modules/Series/Pyramid/PyramidPoint.js +19 -0
- package/es-modules/Series/Pyramid/PyramidPointOptions.js +14 -0
- package/es-modules/Series/Pyramid/PyramidSeries.js +1 -1
- package/es-modules/Series/Pyramid/PyramidSeriesDefaults.js +1 -1
- package/es-modules/Series/Pyramid/PyramidSeriesOptions.js +14 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DPoint.js +19 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DPointOptions.js +14 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +1 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeriesOptions.js +14 -0
- package/es-modules/Series/Renko/RenkoSeriesDefaults.js +1 -2
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +6 -7
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +1 -1
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +1 -1
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Streamgraph/StreamgraphSeriesDefaults.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeriesDefaults.js +2 -2
- package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +1 -1
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +1 -1
- package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +1 -1
- package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +1 -1
- package/es-modules/Series/Variwide/VariwideComposition.js +11 -8
- package/es-modules/Series/Vector/VectorSeriesDefaults.js +1 -1
- package/es-modules/Series/Venn/VennSeriesDefaults.js +1 -1
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeriesDefaults.js +1 -1
- package/es-modules/Shared/Utilities.js +7 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +0 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +2 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +3 -3
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -3
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +0 -1
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngleIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionInterceptIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopesIndicator.js +0 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +0 -1
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +0 -1
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +0 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +0 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +0 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -3
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +0 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +0 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +0 -1
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +5 -5
- package/es-modules/Stock/Navigator/Navigator.js +1 -5
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +38 -8
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-autoload.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/contour.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data-sorting.src.js +1 -1
- package/es-modules/masters/modules/data-tools.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/flowmap.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/geoheatmap.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/renko.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/standalone-navigator.src.js +1 -1
- package/es-modules/masters/themes/adaptive.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/high-contrast.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +2 -2
- package/esm/highcharts-3d.src.js +38 -61
- package/esm/highcharts-autoload.js +2 -2
- package/esm/highcharts-autoload.src.js +18 -39
- package/esm/highcharts-gantt.js +1 -1
- package/esm/highcharts-gantt.src.js +1 -1
- package/esm/highcharts-more.js +2 -2
- package/esm/highcharts-more.src.js +142 -120
- package/esm/highcharts.js +4 -4
- package/esm/highcharts.src.js +824 -750
- package/esm/highmaps.js +1 -1
- package/esm/highmaps.src.js +1 -1
- package/esm/highstock.js +1 -1
- package/esm/highstock.src.js +1 -1
- package/esm/i18n/fr-FR.js +2 -2
- package/esm/i18n/fr-FR.src.js +17 -38
- package/esm/i18n/nb-NO.js +2 -2
- package/esm/i18n/nb-NO.src.js +17 -38
- package/esm/i18n/zh-CN.js +2 -2
- package/esm/i18n/zh-CN.src.js +17 -38
- package/esm/indicators/acceleration-bands.js +2 -2
- package/esm/indicators/acceleration-bands.src.js +18 -39
- package/esm/indicators/accumulation-distribution.js +2 -2
- package/esm/indicators/accumulation-distribution.src.js +17 -39
- package/esm/indicators/ao.js +2 -2
- package/esm/indicators/ao.src.js +18 -39
- package/esm/indicators/apo.js +2 -2
- package/esm/indicators/apo.src.js +18 -39
- package/esm/indicators/aroon-oscillator.js +2 -2
- package/esm/indicators/aroon-oscillator.src.js +19 -40
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +18 -39
- package/esm/indicators/atr.js +2 -2
- package/esm/indicators/atr.src.js +17 -39
- package/esm/indicators/bollinger-bands.js +2 -2
- package/esm/indicators/bollinger-bands.src.js +17 -39
- package/esm/indicators/cci.js +2 -2
- package/esm/indicators/cci.src.js +17 -39
- package/esm/indicators/chaikin.js +2 -2
- package/esm/indicators/chaikin.src.js +18 -40
- package/esm/indicators/cmf.js +2 -2
- package/esm/indicators/cmf.src.js +17 -39
- package/esm/indicators/cmo.js +2 -2
- package/esm/indicators/cmo.src.js +17 -39
- package/esm/indicators/dema.js +2 -2
- package/esm/indicators/dema.src.js +18 -39
- package/esm/indicators/disparity-index.js +2 -2
- package/esm/indicators/disparity-index.src.js +20 -41
- package/esm/indicators/dmi.js +2 -2
- package/esm/indicators/dmi.src.js +20 -41
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +18 -39
- package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
- package/esm/indicators/ichimoku-kinko-hyo.src.js +18 -40
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +76 -99
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +48 -46
- package/esm/indicators/keltner-channels.js +2 -2
- package/esm/indicators/keltner-channels.src.js +18 -39
- package/esm/indicators/klinger.js +2 -2
- package/esm/indicators/klinger.src.js +17 -38
- package/esm/indicators/macd.js +2 -2
- package/esm/indicators/macd.src.js +17 -39
- package/esm/indicators/mfi.js +2 -2
- package/esm/indicators/mfi.src.js +17 -39
- package/esm/indicators/momentum.js +2 -2
- package/esm/indicators/momentum.src.js +17 -39
- package/esm/indicators/natr.js +2 -2
- package/esm/indicators/natr.src.js +17 -39
- package/esm/indicators/obv.js +2 -2
- package/esm/indicators/obv.src.js +17 -39
- package/esm/indicators/pivot-points.js +2 -2
- package/esm/indicators/pivot-points.src.js +17 -39
- package/esm/indicators/ppo.js +2 -2
- package/esm/indicators/ppo.src.js +18 -39
- package/esm/indicators/price-channel.js +2 -2
- package/esm/indicators/price-channel.src.js +18 -39
- package/esm/indicators/price-envelopes.js +2 -2
- package/esm/indicators/price-envelopes.src.js +17 -39
- package/esm/indicators/psar.js +2 -2
- package/esm/indicators/psar.src.js +17 -39
- package/esm/indicators/regressions.js +2 -2
- package/esm/indicators/regressions.src.js +17 -42
- package/esm/indicators/roc.js +2 -2
- package/esm/indicators/roc.src.js +17 -39
- package/esm/indicators/rsi.js +2 -2
- package/esm/indicators/rsi.src.js +17 -39
- package/esm/indicators/slow-stochastic.js +2 -2
- package/esm/indicators/slow-stochastic.src.js +17 -38
- package/esm/indicators/stochastic.js +2 -2
- package/esm/indicators/stochastic.src.js +20 -41
- package/esm/indicators/supertrend.js +2 -2
- package/esm/indicators/supertrend.src.js +19 -40
- package/esm/indicators/tema.js +2 -2
- package/esm/indicators/tema.src.js +18 -39
- package/esm/indicators/trendline.js +2 -2
- package/esm/indicators/trendline.src.js +17 -39
- package/esm/indicators/trix.js +2 -2
- package/esm/indicators/trix.src.js +18 -39
- package/esm/indicators/volume-by-price.js +2 -2
- package/esm/indicators/volume-by-price.src.js +18 -39
- package/esm/indicators/vwap.js +2 -2
- package/esm/indicators/vwap.src.js +17 -39
- package/esm/indicators/williams-r.js +2 -2
- package/esm/indicators/williams-r.src.js +18 -39
- package/esm/indicators/wma.js +2 -2
- package/esm/indicators/wma.src.js +17 -39
- package/esm/indicators/zigzag.js +2 -2
- package/esm/indicators/zigzag.src.js +17 -39
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +90 -76
- package/esm/modules/annotations-advanced.js +3 -3
- package/esm/modules/annotations-advanced.src.js +36 -58
- package/esm/modules/annotations.js +3 -3
- package/esm/modules/annotations.src.js +36 -58
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +18 -39
- package/esm/modules/arrow-symbols.js +3 -3
- package/esm/modules/arrow-symbols.src.js +17 -38
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +57 -63
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +56 -62
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +21 -41
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +18 -39
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +92 -96
- package/esm/modules/contour.js +3 -3
- package/esm/modules/contour.src.js +29 -52
- package/esm/modules/current-date-indicator.js +2 -2
- package/esm/modules/current-date-indicator.src.js +17 -38
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +18 -39
- package/esm/modules/data-sorting.js +2 -2
- package/esm/modules/data-sorting.src.js +18 -39
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +110 -67
- package/esm/modules/data.js +4 -4
- package/esm/modules/data.src.js +53 -48
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +52 -48
- package/esm/modules/debugger.js +2 -2
- package/esm/modules/debugger.src.js +17 -38
- package/esm/modules/dependency-wheel.js +2 -2
- package/esm/modules/dependency-wheel.src.js +17 -38
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +17 -38
- package/esm/modules/drag-panes.js +2 -2
- package/esm/modules/drag-panes.src.js +22 -46
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +17 -38
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +40 -54
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +18 -39
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +42 -43
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +26 -47
- package/esm/modules/flowmap.js +2 -2
- package/esm/modules/flowmap.src.js +17 -38
- package/esm/modules/full-screen.js +2 -2
- package/esm/modules/full-screen.src.js +17 -38
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +21 -42
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +18 -39
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +84 -104
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +18 -39
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +34 -51
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +20 -41
- package/esm/modules/heikinashi.js +2 -2
- package/esm/modules/heikinashi.src.js +18 -39
- package/esm/modules/histogram-bellcurve.js +2 -2
- package/esm/modules/histogram-bellcurve.src.js +19 -40
- package/esm/modules/hollowcandlestick.js +2 -2
- package/esm/modules/hollowcandlestick.src.js +18 -39
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +19 -40
- package/esm/modules/lollipop.js +2 -2
- package/esm/modules/lollipop.src.js +18 -39
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +64 -63
- package/esm/modules/marker-clusters.js +2 -2
- package/esm/modules/marker-clusters.src.js +49 -46
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +17 -38
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +72 -67
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +24 -45
- package/esm/modules/no-data-to-display.js +2 -2
- package/esm/modules/no-data-to-display.src.js +17 -38
- package/esm/modules/non-cartesian-zoom.js +2 -2
- package/esm/modules/non-cartesian-zoom.src.js +17 -38
- package/esm/modules/offline-exporting.js +2 -2
- package/esm/modules/offline-exporting.src.js +19 -40
- package/esm/modules/organization.js +2 -2
- package/esm/modules/organization.src.js +20 -39
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +24 -44
- package/esm/modules/pareto.js +2 -2
- package/esm/modules/pareto.src.js +21 -42
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +20 -39
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +17 -38
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +71 -65
- package/esm/modules/pointandfigure.js +2 -2
- package/esm/modules/pointandfigure.src.js +47 -44
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +17 -38
- package/esm/modules/pyramid3d.js +2 -2
- package/esm/modules/pyramid3d.src.js +18 -39
- package/esm/modules/renko.js +2 -2
- package/esm/modules/renko.src.js +18 -40
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +24 -46
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +17 -38
- package/esm/modules/series-on-point.js +2 -2
- package/esm/modules/series-on-point.src.js +47 -44
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +18 -39
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +18 -39
- package/esm/modules/static-scale.js +2 -2
- package/esm/modules/static-scale.src.js +30 -49
- package/esm/modules/stock-tools.js +2 -2
- package/esm/modules/stock-tools.src.js +29 -50
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +117 -141
- package/esm/modules/streamgraph.js +2 -2
- package/esm/modules/streamgraph.src.js +18 -39
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +38 -57
- package/esm/modules/textpath.js +2 -2
- package/esm/modules/textpath.src.js +17 -38
- package/esm/modules/tiledwebmap.js +3 -3
- package/esm/modules/tiledwebmap.src.js +19 -40
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +22 -40
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +19 -40
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +23 -42
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +47 -67
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +34 -53
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +19 -40
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +28 -46
- package/esm/modules/vector.js +2 -2
- package/esm/modules/vector.src.js +18 -39
- package/esm/modules/venn.js +2 -2
- package/esm/modules/venn.src.js +18 -39
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +18 -39
- package/esm/modules/wordcloud.js +2 -2
- package/esm/modules/wordcloud.src.js +18 -39
- package/esm/modules/xrange.js +2 -2
- package/esm/modules/xrange.src.js +18 -39
- package/esm/standalone-navigator.js +4 -4
- package/esm/standalone-navigator.src.js +876 -776
- package/esm/themes/adaptive.js +2 -2
- package/esm/themes/adaptive.src.js +17 -38
- package/esm/themes/avocado.js +2 -2
- package/esm/themes/avocado.src.js +17 -38
- package/esm/themes/dark-unica.js +2 -2
- package/esm/themes/dark-unica.src.js +17 -38
- package/esm/themes/grid-light.js +2 -2
- package/esm/themes/grid-light.src.js +17 -38
- package/esm/themes/high-contrast.js +2 -2
- package/esm/themes/high-contrast.src.js +17 -38
- package/esm/themes/sand-signika.js +2 -2
- package/esm/themes/sand-signika.src.js +17 -38
- package/esm/themes/sunset.js +2 -2
- package/esm/themes/sunset.src.js +17 -38
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +43 -66
- package/highcharts-autoload.d.ts +0 -1
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +0 -1
- package/highcharts-autoload.src.js +833 -778
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +895 -839
- package/highcharts-more.d.ts +10 -0
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.d.ts +10 -0
- package/highcharts-more.src.js +147 -125
- package/highcharts.d.ts +2785 -80144
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +2785 -80144
- package/highcharts.src.js +832 -777
- package/highmaps.js +4 -4
- package/highmaps.src.js +915 -845
- package/highstock.js +4 -4
- package/highstock.src.js +903 -874
- package/i18n/fr-FR.js +2 -2
- package/i18n/fr-FR.src.js +26 -37
- package/i18n/nb-NO.js +2 -2
- package/i18n/nb-NO.src.js +26 -37
- package/i18n/zh-CN.js +2 -2
- package/i18n/zh-CN.src.js +26 -37
- package/indicators/acceleration-bands.js +2 -2
- package/indicators/acceleration-bands.src.js +23 -44
- package/indicators/accumulation-distribution.js +2 -2
- package/indicators/accumulation-distribution.src.js +22 -44
- package/indicators/ao.js +2 -2
- package/indicators/ao.src.js +23 -44
- package/indicators/apo.js +2 -2
- package/indicators/apo.src.js +23 -44
- package/indicators/aroon-oscillator.js +2 -2
- package/indicators/aroon-oscillator.src.js +24 -45
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +23 -44
- package/indicators/atr.js +2 -2
- package/indicators/atr.src.js +22 -44
- package/indicators/bollinger-bands.js +2 -2
- package/indicators/bollinger-bands.src.js +22 -44
- package/indicators/cci.js +2 -2
- package/indicators/cci.src.js +22 -44
- package/indicators/chaikin.js +2 -2
- package/indicators/chaikin.src.js +23 -45
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.src.js +22 -44
- package/indicators/cmo.js +2 -2
- package/indicators/cmo.src.js +22 -44
- package/indicators/dema.js +2 -2
- package/indicators/dema.src.js +23 -44
- package/indicators/disparity-index.js +2 -2
- package/indicators/disparity-index.src.js +25 -46
- package/indicators/dmi.js +2 -2
- package/indicators/dmi.src.js +25 -46
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +23 -44
- package/indicators/ichimoku-kinko-hyo.js +2 -2
- package/indicators/ichimoku-kinko-hyo.src.js +23 -45
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +81 -104
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +53 -51
- package/indicators/keltner-channels.js +2 -2
- package/indicators/keltner-channels.src.js +23 -44
- package/indicators/klinger.js +2 -2
- package/indicators/klinger.src.js +22 -43
- package/indicators/macd.js +2 -2
- package/indicators/macd.src.js +22 -44
- package/indicators/mfi.js +2 -2
- package/indicators/mfi.src.js +22 -44
- package/indicators/momentum.js +2 -2
- package/indicators/momentum.src.js +22 -44
- package/indicators/natr.js +2 -2
- package/indicators/natr.src.js +22 -44
- package/indicators/obv.js +2 -2
- package/indicators/obv.src.js +22 -44
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.src.js +22 -44
- package/indicators/ppo.js +2 -2
- package/indicators/ppo.src.js +23 -44
- package/indicators/price-channel.js +2 -2
- package/indicators/price-channel.src.js +23 -44
- package/indicators/price-envelopes.js +2 -2
- package/indicators/price-envelopes.src.js +22 -44
- package/indicators/psar.js +2 -2
- package/indicators/psar.src.js +22 -44
- package/indicators/regressions.js +2 -2
- package/indicators/regressions.src.js +22 -47
- package/indicators/roc.js +2 -2
- package/indicators/roc.src.js +22 -44
- package/indicators/rsi.js +2 -2
- package/indicators/rsi.src.js +22 -44
- package/indicators/slow-stochastic.js +2 -2
- package/indicators/slow-stochastic.src.js +22 -43
- package/indicators/stochastic.js +2 -2
- package/indicators/stochastic.src.js +25 -46
- package/indicators/supertrend.js +2 -2
- package/indicators/supertrend.src.js +24 -45
- package/indicators/tema.js +2 -2
- package/indicators/tema.src.js +23 -44
- package/indicators/trendline.js +2 -2
- package/indicators/trendline.src.js +22 -44
- package/indicators/trix.js +2 -2
- package/indicators/trix.src.js +23 -44
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.src.js +23 -44
- package/indicators/vwap.js +2 -2
- package/indicators/vwap.src.js +22 -44
- package/indicators/williams-r.js +2 -2
- package/indicators/williams-r.src.js +23 -44
- package/indicators/wma.js +2 -2
- package/indicators/wma.src.js +22 -44
- package/indicators/zigzag.js +2 -2
- package/indicators/zigzag.src.js +22 -44
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.js +95 -81
- package/modules/annotations-advanced.js +9 -9
- package/modules/annotations-advanced.src.js +41 -63
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.js +41 -63
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +23 -44
- package/modules/arrow-symbols.js +2 -2
- package/modules/arrow-symbols.src.js +17 -38
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +62 -68
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +61 -67
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +26 -46
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +23 -44
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +97 -101
- package/modules/contour.js +5 -5
- package/modules/contour.src.js +111 -117
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.src.js +17 -38
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +23 -44
- package/modules/data-sorting.js +2 -2
- package/modules/data-sorting.src.js +18 -39
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +110 -67
- package/modules/data.js +4 -4
- package/modules/data.src.js +58 -53
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +57 -53
- package/modules/debugger.js +2 -2
- package/modules/debugger.src.js +17 -38
- package/modules/dependency-wheel.js +2 -2
- package/modules/dependency-wheel.src.js +22 -43
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +22 -43
- package/modules/drag-panes.js +2 -2
- package/modules/drag-panes.src.js +22 -46
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +17 -38
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +45 -59
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +23 -44
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +47 -48
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +31 -52
- package/modules/flowmap.js +2 -2
- package/modules/flowmap.src.js +22 -43
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.src.js +22 -43
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +26 -47
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +23 -44
- package/modules/gantt.js +8 -8
- package/modules/gantt.src.js +93 -113
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.js +23 -44
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +39 -56
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.js +101 -105
- package/modules/heikinashi.js +2 -2
- package/modules/heikinashi.src.js +23 -44
- package/modules/histogram-bellcurve.js +2 -2
- package/modules/histogram-bellcurve.src.js +24 -45
- package/modules/hollowcandlestick.js +2 -2
- package/modules/hollowcandlestick.src.js +23 -44
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +24 -45
- package/modules/lollipop.js +2 -2
- package/modules/lollipop.src.js +23 -44
- package/modules/map.js +4 -4
- package/modules/map.src.js +146 -128
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.src.js +49 -46
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +17 -38
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.js +77 -72
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +29 -50
- package/modules/no-data-to-display.js +2 -2
- package/modules/no-data-to-display.src.js +22 -43
- package/modules/non-cartesian-zoom.js +2 -2
- package/modules/non-cartesian-zoom.src.js +17 -38
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +24 -45
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +25 -44
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +29 -49
- package/modules/pareto.js +2 -2
- package/modules/pareto.src.js +26 -47
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +25 -44
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +17 -38
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +76 -70
- package/modules/pointandfigure.js +2 -2
- package/modules/pointandfigure.src.js +52 -49
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +17 -38
- package/modules/pyramid3d.js +2 -2
- package/modules/pyramid3d.src.js +23 -44
- package/modules/renko.js +2 -2
- package/modules/renko.src.js +23 -45
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +29 -51
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +22 -43
- package/modules/series-on-point.js +2 -2
- package/modules/series-on-point.src.js +52 -49
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +23 -44
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +23 -44
- package/modules/static-scale.js +2 -2
- package/modules/static-scale.src.js +30 -49
- package/modules/stock-tools.js +2 -2
- package/modules/stock-tools.src.js +34 -55
- package/modules/stock.js +6 -6
- package/modules/stock.src.js +132 -154
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +23 -44
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +43 -62
- package/modules/textpath.js +2 -2
- package/modules/textpath.src.js +17 -38
- package/modules/tiledwebmap.js +3 -3
- package/modules/tiledwebmap.src.js +24 -45
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +27 -45
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +24 -45
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +28 -47
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +52 -72
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +39 -58
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +24 -45
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +33 -51
- package/modules/vector.js +2 -2
- package/modules/vector.src.js +23 -44
- package/modules/venn.js +2 -2
- package/modules/venn.src.js +23 -44
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +23 -44
- package/modules/wordcloud.js +2 -2
- package/modules/wordcloud.src.js +23 -44
- package/modules/xrange.js +2 -2
- package/modules/xrange.src.js +23 -44
- package/options/abands.d.ts +183 -8
- package/options/abands.src.d.ts +183 -8
- package/options/ad.d.ts +176 -5
- package/options/ad.src.d.ts +176 -5
- package/options/ao.d.ts +202 -0
- package/options/ao.src.d.ts +202 -0
- package/options/apo.d.ts +178 -8
- package/options/apo.src.d.ts +178 -8
- package/options/arcdiagram.d.ts +785 -0
- package/options/arcdiagram.src.d.ts +785 -0
- package/options/area.d.ts +226 -0
- package/options/area.src.d.ts +226 -0
- package/options/arearange.d.ts +229 -8
- package/options/arearange.src.d.ts +229 -8
- package/options/areaspline.d.ts +1344 -8
- package/options/areaspline.src.d.ts +1344 -8
- package/options/areasplinerange.d.ts +972 -8
- package/options/areasplinerange.src.d.ts +972 -8
- package/options/aroon.d.ts +219 -0
- package/options/aroon.src.d.ts +219 -0
- package/options/aroonoscillator.d.ts +1140 -8
- package/options/aroonoscillator.src.d.ts +1140 -8
- package/options/atr.d.ts +210 -0
- package/options/atr.src.d.ts +210 -0
- package/options/bar.d.ts +183 -10
- package/options/bar.src.d.ts +183 -10
- package/options/bb.d.ts +1232 -0
- package/options/bb.src.d.ts +1232 -0
- package/options/bellcurve.d.ts +1167 -8
- package/options/bellcurve.src.d.ts +1167 -8
- package/options/boxplot.d.ts +163 -10
- package/options/boxplot.src.d.ts +163 -10
- package/options/bubble.d.ts +1005 -8
- package/options/bubble.src.d.ts +1005 -8
- package/options/bullet.d.ts +953 -8
- package/options/bullet.src.d.ts +953 -8
- package/options/candlestick.d.ts +1309 -8
- package/options/candlestick.src.d.ts +1309 -8
- package/options/cci.d.ts +210 -0
- package/options/cci.src.d.ts +210 -0
- package/options/chaikin.d.ts +180 -8
- package/options/chaikin.src.d.ts +180 -8
- package/options/cmf.d.ts +211 -0
- package/options/cmf.src.d.ts +211 -0
- package/options/cmo.d.ts +175 -5
- package/options/cmo.src.d.ts +175 -5
- package/options/column.d.ts +252 -2
- package/options/column.src.d.ts +252 -2
- package/options/columnpyramid.d.ts +1296 -0
- package/options/columnpyramid.src.d.ts +1296 -0
- package/options/columnrange.d.ts +216 -2
- package/options/columnrange.src.d.ts +216 -2
- package/options/contour.d.ts +1148 -0
- package/options/contour.src.d.ts +1148 -0
- package/options/cylinder.d.ts +183 -2
- package/options/cylinder.src.d.ts +183 -2
- package/options/dema.d.ts +1181 -0
- package/options/dema.src.d.ts +1181 -0
- package/options/dependencywheel.d.ts +315 -0
- package/options/dependencywheel.src.d.ts +315 -0
- package/options/disparityindex.d.ts +1157 -8
- package/options/disparityindex.src.d.ts +1157 -8
- package/options/dmi.d.ts +1227 -0
- package/options/dmi.src.d.ts +1227 -0
- package/options/dpo.d.ts +1140 -8
- package/options/dpo.src.d.ts +1140 -8
- package/options/dumbbell.d.ts +286 -0
- package/options/dumbbell.src.d.ts +286 -0
- package/options/ema.d.ts +1156 -5
- package/options/ema.src.d.ts +1156 -5
- package/options/errorbar.d.ts +1286 -0
- package/options/errorbar.src.d.ts +1286 -0
- package/options/flags.d.ts +1269 -8
- package/options/flags.src.d.ts +1269 -8
- package/options/flowmap.d.ts +551 -0
- package/options/flowmap.src.d.ts +551 -0
- package/options/funnel.d.ts +728 -10
- package/options/funnel.src.d.ts +728 -10
- package/options/gantt.d.ts +1011 -0
- package/options/gantt.src.d.ts +1011 -0
- package/options/gauge.d.ts +675 -0
- package/options/gauge.src.d.ts +675 -0
- package/options/geoheatmap.d.ts +585 -8
- package/options/geoheatmap.src.d.ts +585 -8
- package/options/heatmap.d.ts +1054 -8
- package/options/heatmap.src.d.ts +1054 -8
- package/options/heikinashi.d.ts +178 -10
- package/options/heikinashi.src.d.ts +178 -10
- package/options/histogram.d.ts +1226 -0
- package/options/histogram.src.d.ts +1226 -0
- package/options/hlc.d.ts +223 -2
- package/options/hlc.src.d.ts +223 -2
- package/options/hollowcandlestick.d.ts +1335 -0
- package/options/hollowcandlestick.src.d.ts +1335 -0
- package/options/ikh.d.ts +228 -5
- package/options/ikh.src.d.ts +228 -5
- package/options/item.d.ts +217 -8
- package/options/item.src.d.ts +217 -8
- package/options/keltnerchannels.d.ts +1220 -0
- package/options/keltnerchannels.src.d.ts +1220 -0
- package/options/klinger.d.ts +1162 -0
- package/options/klinger.src.d.ts +1162 -0
- package/options/line.d.ts +1377 -8
- package/options/line.src.d.ts +1377 -8
- package/options/linearregression.d.ts +199 -5
- package/options/linearregression.src.d.ts +199 -5
- package/options/linearregressionangle.d.ts +1157 -5
- package/options/linearregressionangle.src.d.ts +1157 -5
- package/options/linearregressionintercept.d.ts +240 -0
- package/options/linearregressionintercept.src.d.ts +240 -0
- package/options/linearregressionslope.d.ts +240 -0
- package/options/linearregressionslope.src.d.ts +240 -0
- package/options/lollipop.d.ts +949 -0
- package/options/lollipop.src.d.ts +949 -0
- package/options/macd.d.ts +254 -0
- package/options/macd.src.d.ts +254 -0
- package/options/map.d.ts +150 -8
- package/options/map.src.d.ts +150 -8
- package/options/mapbubble.d.ts +1016 -8
- package/options/mapbubble.src.d.ts +1016 -8
- package/options/mapline.d.ts +994 -0
- package/options/mapline.src.d.ts +994 -0
- package/options/mappoint.d.ts +1105 -1
- package/options/mappoint.src.d.ts +1105 -1
- package/options/mfi.d.ts +181 -5
- package/options/mfi.src.d.ts +181 -5
- package/options/momentum.d.ts +215 -0
- package/options/momentum.src.d.ts +215 -0
- package/options/natr.d.ts +170 -5
- package/options/natr.src.d.ts +170 -5
- package/options/networkgraph.d.ts +365 -0
- package/options/networkgraph.src.d.ts +365 -0
- package/options/obv.d.ts +170 -5
- package/options/obv.src.d.ts +170 -5
- package/options/ohlc.d.ts +183 -7
- package/options/ohlc.src.d.ts +183 -7
- package/options/organization.d.ts +808 -0
- package/options/organization.src.d.ts +808 -0
- package/options/packedbubble.d.ts +877 -8
- package/options/packedbubble.src.d.ts +877 -8
- package/options/pareto.d.ts +1028 -0
- package/options/pareto.src.d.ts +1028 -0
- package/options/pc.d.ts +183 -8
- package/options/pc.src.d.ts +183 -8
- package/options/pictorial.d.ts +202 -2
- package/options/pictorial.src.d.ts +202 -2
- package/options/pie.d.ts +196 -8
- package/options/pie.src.d.ts +196 -8
- package/options/pivotpoints.d.ts +1199 -0
- package/options/pivotpoints.src.d.ts +1199 -0
- package/options/pointandfigure.d.ts +980 -0
- package/options/pointandfigure.src.d.ts +980 -0
- package/options/polygon.d.ts +234 -0
- package/options/polygon.src.d.ts +234 -0
- package/options/ppo.d.ts +1156 -8
- package/options/ppo.src.d.ts +1156 -8
- package/options/priceenvelopes.d.ts +1229 -0
- package/options/priceenvelopes.src.d.ts +1229 -0
- package/options/psar.d.ts +1156 -5
- package/options/psar.src.d.ts +1156 -5
- package/options/pyramid.d.ts +837 -2
- package/options/pyramid.src.d.ts +837 -2
- package/options/renko.d.ts +247 -10
- package/options/renko.src.d.ts +247 -10
- package/options/roc.d.ts +1215 -0
- package/options/roc.src.d.ts +1215 -0
- package/options/rsi.d.ts +1157 -5
- package/options/rsi.src.d.ts +1157 -5
- package/options/sankey.d.ts +276 -8
- package/options/sankey.src.d.ts +276 -8
- package/options/scatter.d.ts +3043 -1018
- package/options/scatter.src.d.ts +3043 -1018
- package/options/series.d.ts +175 -0
- package/options/series.src.d.ts +175 -0
- package/options/slowstochastic.d.ts +183 -0
- package/options/slowstochastic.src.d.ts +183 -0
- package/options/sma.d.ts +211 -0
- package/options/sma.src.d.ts +211 -0
- package/options/solidgauge.d.ts +218 -0
- package/options/solidgauge.src.d.ts +218 -0
- package/options/spline.d.ts +230 -0
- package/options/spline.src.d.ts +230 -0
- package/options/stochastic.d.ts +1170 -8
- package/options/stochastic.src.d.ts +1170 -8
- package/options/streamgraph.d.ts +1345 -8
- package/options/streamgraph.src.d.ts +1345 -8
- package/options/sunburst.d.ts +286 -9
- package/options/sunburst.src.d.ts +286 -9
- package/options/supertrend.d.ts +1208 -0
- package/options/supertrend.src.d.ts +1208 -0
- package/options/tema.d.ts +1140 -8
- package/options/tema.src.d.ts +1140 -8
- package/options/tiledwebmap.d.ts +164 -0
- package/options/tiledwebmap.src.d.ts +164 -0
- package/options/tilemap.d.ts +687 -0
- package/options/tilemap.src.d.ts +687 -0
- package/options/timeline.d.ts +282 -0
- package/options/timeline.src.d.ts +282 -0
- package/options/treegraph.d.ts +982 -0
- package/options/treegraph.src.d.ts +982 -0
- package/options/treemap.d.ts +1396 -22
- package/options/treemap.src.d.ts +1396 -22
- package/options/trendline.d.ts +211 -0
- package/options/trendline.src.d.ts +211 -0
- package/options/trix.d.ts +178 -8
- package/options/trix.src.d.ts +178 -8
- package/options/variablepie.d.ts +686 -8
- package/options/variablepie.src.d.ts +686 -8
- package/options/variwide.d.ts +178 -2
- package/options/variwide.src.d.ts +178 -2
- package/options/vbp.d.ts +576 -0
- package/options/vbp.src.d.ts +576 -0
- package/options/vector.d.ts +660 -0
- package/options/vector.src.d.ts +660 -0
- package/options/venn.d.ts +654 -0
- package/options/venn.src.d.ts +654 -0
- package/options/vwap.d.ts +1157 -5
- package/options/vwap.src.d.ts +1157 -5
- package/options/waterfall.d.ts +1254 -8
- package/options/waterfall.src.d.ts +1254 -8
- package/options/williamsr.d.ts +209 -0
- package/options/williamsr.src.d.ts +209 -0
- package/options/windbarb.d.ts +222 -2
- package/options/windbarb.src.d.ts +222 -2
- package/options/wma.d.ts +1156 -5
- package/options/wma.src.d.ts +1156 -5
- package/options/wordcloud.d.ts +682 -0
- package/options/wordcloud.src.d.ts +682 -0
- package/options/xrange.d.ts +1168 -0
- package/options/xrange.src.d.ts +1168 -0
- package/options/zigzag.d.ts +1197 -0
- package/options/zigzag.src.d.ts +1197 -0
- package/package.json +1 -1
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +884 -803
- package/themes/adaptive.js +2 -2
- package/themes/adaptive.src.js +22 -43
- package/themes/avocado.js +2 -2
- package/themes/avocado.src.js +17 -38
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +17 -38
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +17 -38
- package/themes/high-contrast.js +2 -2
- package/themes/high-contrast.src.js +17 -38
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +17 -38
- package/themes/sunset.js +2 -2
- package/themes/sunset.src.js +17 -38
package/esm/modules/stock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let t,e;/**
|
|
2
|
-
* Highstock JS v13.0
|
|
2
|
+
* Highstock JS v13.1.0 (2026-09-18)
|
|
3
3
|
* @module highcharts/modules/stock
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
*
|
|
@@ -10,4 +10,4 @@ let t,e;/**
|
|
|
10
10
|
*
|
|
11
11
|
* A commercial license may be required depending on use,
|
|
12
12
|
* see www.highcharts.com/license
|
|
13
|
-
*/import*as i from"../highcharts.js";import"./broken-axis.js";import"./datagrouping.js";import"./mouse-wheel-zoom.js";let s={};s.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var o=e[i++],r=e[i++];s.o(t,o)?0===r&&i++:0===r?Object.defineProperty(t,o,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,o,{enumerable:!0,get:r})}else for(var o in e)s.o(e,o)&&!s.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=i.default;var r,a,n,l,h,d,p=s.n(o);let c=i.default.Point;var u=s.n(c);let g=i.default.Series;var m=s.n(g);let{tooltipFormatter:x}=u().prototype;!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||(0,o.isString)(e)||i.setCumulative(e,!1)}),(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],e.series.tooltipOptions.changeDecimals??2))};return(0,o.defined)(e.change)&&s("change"),(0,o.defined)(e.cumulativeSum)&&s("cumulativeSum"),x.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 m()&&(this.options.compare=this.userOptions.compare??t.options.compare)}let s=this.options.compare;("percent"===s||"value"===s||this.options.cumulative)&&(t=new p(this),"percent"===s||"value"===s?t.initCompare(s):t.initCumulative()),this.dataModify=t}function r(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&&(0,o.isArray)(i)&&i.length>=2&&(t=p.getCumulativeExtremes(i)),t&&(e.dataMin=(0,o.arrayMin)(t),e.dataMax=(0,o.arrayMax)(t))}}function a(t,e){this.options.compare=this.userOptions.compare=t,this.update({},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 r=0;r<i-s;r++){let i=t[r];if((0,o.isNumber)(i)&&0!==i&&e[r+s]>=(this.xAxis.min||0)){this.dataModify.compareValue=i;break}}}}function l(t,e){this.setModifier("compare",t,e)}function h(t,e){t=t??!1,this.options.cumulative=this.userOptions.cumulative=t,this.update({},e??!0),this.dataModify?this.dataModify.initCumulative():this.points.forEach(t=>{delete t.cumulativeSum})}function d(t,e){this.setModifier("cumulative",t,e)}t.compose=function(t,p,c){let u=p.prototype,g=c.prototype,m=t.prototype;return m.setCompare||(m.setCompare=a,m.setCumulative=h,(0,o.addEvent)(t,"afterInit",s),(0,o.addEvent)(t,"afterGetExtremes",r),(0,o.addEvent)(t,"afterProcessData",n)),u.setCompare||(u.setCompare=l,u.setModifier=e,u.setCumulative=d,g.tooltipFormatter=i),t};class p{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/Math.abs(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=(0,o.correctFloat)(i.cumulativeSum+t));let s=this.series.points[e],r=s.series.options.cumulativeStart,a=s.x<=this.series.xAxis.max&&s.x>=this.series.xAxis.min;return s&&(!r||a?s.cumulativeSum=t:s.cumulativeSum=void 0),t}return 0}}}t.Additions=p}(r||(r={}));let f=r,b=i.default.Axis;var v=s.n(b);let{isTouchDevice:y}=p(),M=[];function A(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function E(){let t,e,i,s=this.legend,o=this.navigator;if(o){t=s&&s.options,e=o.xAxis,i=o.yAxis;let{scrollbarHeight:r,scrollButtonSize:a}=o;this.inverted?(o.left=o.opposite?this.chartWidth-r-o.height:this.spacing[3]+r,o.top=this.plotTop+a):(o.left=e.left??this.plotLeft+a,o.top=o.navigatorOptions.top||this.chartHeight-o.height-r-(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+(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),(e.redraw??!0)&&this.redraw(e.animation))}function S(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this))}function k(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!y&&"x"===this.zooming.type||y&&"x"===this.zooming.pinchType))return!1}function O(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function T(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&((0,o.merge)(!0,this.options.navigator,e),(0,o.merge)(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let C=function(e,i){if((0,o.pushUnique)(M,e)){let s=e.prototype;t=i,s.callbacks.push(O),(0,o.addEvent)(e,"afterAddSeries",A),(0,o.addEvent)(e,"afterSetChartSize",E),(0,o.addEvent)(e,"afterUpdate",w),(0,o.addEvent)(e,"beforeRender",S),(0,o.addEvent)(e,"beforeShowResetZoom",k),(0,o.addEvent)(e,"update",T)}},{isTouchDevice:B}=p();function D(){this.navigatorAxis||(this.navigatorAxis=new R(this))}function P(t){let e,i=this.chart,s=i.options,r=s.navigator,a=this.navigatorAxis,n=i.zooming.pinchType,l=s.rangeSelector,h=i.zooming.type;if(this.isXAxis&&(r?.enabled||l?.enabled)){if("y"===h&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===h||B&&"xy"===n)&&this.options.range){let e=a.previousZoom;(0,o.defined)(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 R{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),(0,o.addEvent)(t,"init",D),(0,o.addEvent)(t,"setExtremes",P))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let r=this.axis,a=(r.pointRange||0)/2,n=i??r.translate(t,!0,!r.horiz),l=s??r.translate(e,!0,!r.horiz);return(0,o.defined)(i)||(n=(0,o.correctFloat)(n+a)),(0,o.defined)(s)||(l=(0,o.correctFloat)(l-a)),(0,o.isNumber)(n)&&(0,o.isNumber)(l)||(n=l=void 0),{min:n,max:l}}}let L=i.default.SeriesRegistry;var z=s.n(L);let{seriesTypes:I}=z(),N={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"var(--highcharts-neutral-color-5)",borderColor:"var(--highcharts-neutral-color-40)"},maskFill:"color-mix(in srgb, var(--highcharts-highlight-color-60) 30%, transparent)",outlineColor:"var(--highcharts-neutral-color-40)",outlineWidth:1,series:{type:void 0===I.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:"var(--highcharts-neutral-color-10)",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"var(--highcharts-neutral-color-100)",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}},{defaultOptions:W}=p(),{noop:X}=p(),G={radius:0,scope:"stack",where:void 0},F={"navigator-handle":function(t,e,i,s,r={}){var a,n,l,h,d;let p=r.width?r.width/2:i,c=(0,o.relativeLength)((a=r.borderRadius,!(0,o.isObject)(a)&&(a={radius:a||0}),(0,o.merge)(G,void 0,a)).radius,Math.min(2*p,s));return[["M",-1.5,(s=r.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5],...(n=-p-1,l=2*p+1,h=s,d={r:c},d?.r?function(t,e,i,s,o){let r=o?.r||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}(n,.5,l,h,d):[["M",n,.5],["L",n+l,.5],["L",n+l,.5+h],["L",n,.5+h],["Z"]])]}},U=i.default.SVGRenderer;var Y=s.n(U);let H={setFixedRange:function(t){let e=this.xAxis[0];(0,o.defined)(e.dataMax)&&(0,o.defined)(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}},{defaultOptions:V}=p(),{composed:_}=p(),{setFixedRange:j}=H;function q(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let K=function(t,e,i){R.compose(e),(0,o.pushUnique)(_,"Navigator")&&(t.prototype.setFixedRange=j,(0,o.extend)(Y().prototype.symbols,F),(0,o.extend)(V,{navigator:N}),(0,o.addEvent)(i,"afterUpdate",q))},{composed:Z}=p();!function(t){let e;function i(t){let e=t.options?.min??t.min,i=t.options?.max??t.max;return{axisMin:e,axisMax:i,scrollMin:(0,o.defined)(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??((0,o.defined)(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 r(){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),(0,o.addEvent)(t.scrollbar,"changed",function(e){let s,r,{axisMin:a,axisMax:n,scrollMin:l,scrollMax:h}=i(t),d=t.toPixels(l),p=t.toPixels(h)-d;if((0,o.defined)(a)&&(0,o.defined)(n))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=Math.min(h,t.toValue(d+p*this.to)),r=Math.max(l,t.toValue(d+p*this.from))):(s=Math.min(h,t.toValue(d+p*(1-this.from))),r=Math.max(l,t.toValue(d+p*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes((0,o.correctFloat)(r),(0,o.correctFloat)(s),!0,i,e)}else this.setRange(this.from,this.to)}))}function a(){let t,e,s,{scrollMin:r,scrollMax:a}=i(this),n=this.scrollbar,l=(this.axisTitleMargin||0)+(this.titleOffset||0),h=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(n&&h){if(this.horiz)this.opposite||(h[1]+=l),n.position(this.left,this.top+this.height+2+h[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(h[1]+=d),t=1;else{let e;this.opposite&&(h[0]+=l),e=n.options.opposite?this.left+this.width+2+h[0]-(this.opposite?0:d):this.opposite?0:d,n.position(e,this.top,this.width,this.height),this.opposite&&(h[0]+=d),t=0}if(h[t]+=n.size+(n.options.margin||0),isNaN(r)||isNaN(a)||!(0,o.defined)(this.min)||!(0,o.defined)(this.max)||(0,o.defined)(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(r))/(this.toPixels(a)-this.toPixels(r)),s=(this.toPixels(this.max)-this.toPixels(r))/(this.toPixels(a)-this.toPixels(r)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(e,s):n.setRange(1-s,1-e)}}t.compose=function(t,i){(0,o.pushUnique)(Z,"Axis.Scrollbar")&&(e=i,(0,o.addEvent)(t,"afterGetOffset",s),(0,o.addEvent)(t,"afterInit",r),(0,o.addEvent)(t,"afterRender",a))}}(a||(a={}));let $=a,J={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"var(--highcharts-neutral-color-20)",barBorderWidth:0,barBorderColor:"var(--highcharts-neutral-color-20)",buttonArrowColor:"var(--highcharts-neutral-color-80)",buttonBackgroundColor:"var(--highcharts-neutral-color-10)",buttonBorderColor:"var(--highcharts-neutral-color-20)",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"var(--highcharts-neutral-color-20)",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:Q}=p(),{composed:tt}=p();class te{static compose(t){$.compose(t,te),(0,o.pushUnique)(tt,"Scrollbar")&&(0,o.extend)(Q,{scrollbar:J})}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,r=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this),l=[[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",r],[i.ownerDocument,"mousemove",a],[i.ownerDocument,"mouseup",n],[i,"touchstart",r],[i.ownerDocument,"touchmove",a],[i.ownerDocument,"touchend",n]];l.forEach(function(t){o.addEvent.apply(null,t)}),this._events=l}buttonToMaxClick(t){let e=(this.to-this.from)*(this.options.step??.2);this.updatePosition(this.from+e,this.to+e),(0,o.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=(0,o.correctFloat)(this.to-this.from)*(this.options.step??.2);this.updatePosition((0,o.correctFloat)(this.from-e),(0,o.correctFloat)(this.to-e)),(0,o.fireEvent)(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,(0,o.destroyObjectProperties)(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,o=this.size,r=e.g().add(this.group);if(i.push(r),s.buttonsEnabled){let a=e.rect().addClass("highcharts-scrollbar-button").add(r);this.chart.styledMode||a.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:o,height:o,r:s.buttonBorderRadius},a.strokeWidth()));let n=e.path(te.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||n.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=(0,o.merge)(J,Q.scrollbar,e),this.options.margin=this.options.margin??10,this.chart=i,this.size=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",r=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(r[0]+e,r[1]+e),this.hasDragged&&(0,o.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&(0,o.fireEvent)(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:r=0,vertical:a}=this.options,n=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,a?(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+=r):(this.height=s=this.size,this.xOffset=l=o?this.size:0,this.barWidth=i-(o?2*s:0),this.y=this.y+r),this.group[n]({translateX:t,translateY:this.y}),this.track[n]({width:i,height:s}),this.scrollbarButtons[1][n]({translateX:a?0:i-l,translateY:a?s-h:0})}removeEvents(){this._events.forEach(function(t){o.removeEvent.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,r=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=r,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(r),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:-(0,o.crisp)(0,a),y:-(0,o.crisp)(0,a)}),this.scrollbarGroup=t.g().add(r),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(te.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(-(0,o.crisp)(0,this.scrollbarStrokeWidth),-(0,o.crisp)(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,r=this.options,a=r.vertical,n=r.minWidth,l=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!(0,o.defined)(l))return;let d=l*Math.min(e,1);i=Math.ceil(l*(t=Math.max(t,0))),this.calculatedWidth=s=(0,o.correctFloat)(d-i),s<n&&(i=(l-n+s)*t,s=n);let p=Math.floor(i+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=e,a?(this.scrollbarGroup[h]({translateY:p}),this.scrollbar[h]({height:s}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=p,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:p}),this.scrollbar[h]({width:s}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=p,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return(this.options.liveRedraw??(p().svg&&!p().isTouchDevice&&!this.chart.boosted))||"mouseup"===t||"touchend"===t||!(0,o.defined)(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,r=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>r?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),(0,o.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,(0,o.merge)(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=(0,o.correctFloat)(1-(0,o.correctFloat)(e-t)),e=1),t<0&&(e=(0,o.correctFloat)(e-t),t=0),this.from=t,this.to=e}}te.defaultOptions=J;let{defaultOptions:ti}=p(),{isTouchDevice:ts}=p();function to(t,...e){let i=[].filter.call(e,o.isNumber);if(i.length)return Math[t].apply(0,i)}class tr{static compose(t,e,i){C(t,tr),K(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,r=this.outline.strokeWidth(),a=r/2,n=r%2/2,l=this.scrollButtonSize,h=this.size,d=this.top,p=this.height,c=d-a,u=d+p,g=this.left,m,x;i?(m=d+e+n,e=d+t+n,x=[["M",g+p,d-l-n],["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-a],["L",g+p,e+a])):(g-=l,t+=g+l-n,e+=g+l-n,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-a,c],["L",e+a,c])),this.outline[s]({d:x})}drawMasks(t,e,i,s){let o,r,a,n,l=this.left,h=this.top,d=this.height;i?(a=[l,l,l],n=[h,h+t,h+e],r=[d,d,d],o=[t,e-t,this.size-e]):(a=[l,l+t,l+e],n=[h,h,h],r=[t,e-t,this.size-e],o=[d,d,d]),this.shades.forEach((t,e)=>{t[s]({x:a[e],y:n[e],width:r[e],height:o[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,o=s.inverted,r=s.renderer,a={cursor:o?"ns-resize":"ew-resize"},n=t.navigatorGroup??(t.navigatorGroup=r.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,o)=>{let l=t.shades[o]??(t.shades[o]=r.rect().addClass("highcharts-navigator-mask"+(1===o?"-inside":"-outside")).add(n));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===o&&l.css(a))}),t.outline||(t.outline=r.path().addClass("highcharts-navigator-outline").add(n)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=!1,o=e.handles,{height:l,width:h}=o;[0,1].forEach(e=>{let d=o.symbols[e];(i=i||t.handles[e]?.symbolName!==d)&&(t.handles[e]?.destroy(),t.handles[e]=r.symbol(d,-h/2-1,0,h,l,o),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(n)),s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-h/2),rotationOriginY:(l+h)/2}),s.styledMode||t.handles[e].attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.lineWidth,width:o.width,height:o.height,x:-h/2-1,y:0}).css(a)}),i&&(t.partsEventsToUnbind?.forEach(t=>{t()}),t.partsEventsToUnbind=[...t.getPartsEvents("mousedown"),...t.getPartsEvents("touchstart")])}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if((0,o.merge)(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),(0,o.defined)(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=>{(0,o.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push((0,o.addEvent)(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 r=this.chart,a=this.xAxis,n=a.pointRange||0,l=a.navigatorAxis.fake?r.xAxis[0]:a,h=this.navigatorEnabled,d=this.rendered,p=r.inverted,c=r.xAxis[0].minRange,u=r.xAxis[0].options.maxRange,g=this.scrollButtonSize,m,x,f,b=this.scrollbarHeight,v,y;if(this.hasDragged&&!(0,o.defined)(i))return;if(this.isDirty&&this.renderElements(),t=(0,o.correctFloat)(t-n/2),e=(0,o.correctFloat)(e+n/2),!(0,o.isNumber)(t)||!(0,o.isNumber)(e))if(!d)return;else i=0,s=a.width??l.width;this.left=a.left??r.plotLeft+g+(p?r.plotWidth:0);let M=this.size=v=a.len??(p?r.plotHeight:r.plotWidth)-2*g;m=p?b:v+2*g,i=i??a.toPixels(t,!0),s=s??a.toPixels(e,!0),(0,o.isNumber)(i)&&Math.abs(i)!==1/0||(i=0,s=m);let A=a.toValue(i,!0),E=a.toValue(s,!0),w=Math.abs((0,o.correctFloat)(E-A));(0,o.defined)(c)&&w<c?this.grabbedLeft?i=a.toPixels(E-c-n,!0):this.grabbedRight&&(s=a.toPixels(A+c+n,!0)):(0,o.defined)(u)&&(0,o.correctFloat)(w-n)>u&&(this.grabbedLeft?i=a.toPixels(E-u-n,!0):this.grabbedRight&&(s=a.toPixels(A+u+n,!0))),this.zoomedMax=(0,o.clamp)(Math.max(i,s),0,M),this.zoomedMin=(0,o.clamp)(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);let S=Math.round(this.zoomedMin);h&&(this.navigatorGroup.attr({visibility:"inherit"}),y=d&&!this.hasDragged?"animate":"attr",this.drawMasks(S,M,p,y),this.drawOutline(S,M,p,y),this.navigatorOptions.handles?.enabled&&(this.drawHandle(S,0,p,y),this.drawHandle(M,1,p,y))),this.scrollbar&&(p?(f=this.top-g,x=this.left-b+(h||!l.opposite?0:(l.titleOffset||0)+l.axisTitleMargin),b=v+2*g):(f=this.top+(h?this.height:-b),x=this.left-g),this.scrollbar.position(x,f,m,b),this.scrollbar.setRange(this.zoomedMin/(v||1),this.zoomedMax/(v||1))),this.rendered=!0,this.isDirty=!1,(0,o.fireEvent)(this,"afterRender")}addMouseEvents(){let t,e,i=this,s=i.chart,r=s.container,a=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},a.push((0,o.addEvent)(s.renderTo,"mousemove",t),(0,o.addEvent)(r.ownerDocument,"mouseup",e),(0,o.addEvent)(s.renderTo,"touchmove",t),(0,o.addEvent)(r.ownerDocument,"touchend",e)),i.eventsToUnbind=a,i.series&&i.series[0]&&a.push((0,o.addEvent)(i.series[0].xAxis,"foundExtremes",function(){s.navigator?.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(s=>{e[s].forEach(function(r,a){i.push((0,o.addEvent)(r.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,r=this.zoomedMin,a=this.size,n=this.range,l=this.left,h=t.chartX,d,p,c,u;i.inverted&&(h=t.chartY,l=this.top),1===e?(this.grabbedCenter=h,this.fixedWidth=n,this.dragOffset=h-r):(u=h-l-n/2,0===e?u=Math.max(0,u):2===e&&u+n>=a&&(u=a-n,this.reversedExtremes?(u-=n,p=this.getUnionExtremes()?.dataMin):d=this.getUnionExtremes()?.dataMax),u!==r&&(this.fixedWidth=n,c=s.navigatorAxis.toFixedRange(u,u+n,p,d),(0,o.defined)(c.min)&&(0,o.fireEvent)(this,"setRange",{min:Math.min(c.min,c.max),max:Math.max(c.min,c.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,r=e.dragOffset,a=i.inverted,n=e.left,l;(!t.touches||0!==t.touches[0].pageX)&&(l=(t=i.pointer?.normalize(t)||t).chartX,a&&(n=e.top,l=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,l-n,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,l-n)):e.grabbedCenter&&r&&(e.hasDragged=!0,l<r?l=r:l>s+r-o&&(l=s+r-o),e.render(0,0,l-r,l-r+o)),e.hasDragged&&(e.scrollbarOptions?.liveRedraw??(!ts&&!this.chart.boosted))&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,r,a,n,l=this.chart,h=this.xAxis,d=this.scrollbar,p=t.DOMEvent||t,c=l.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(a=this.fixedExtreme),this.zoomedMax===this.size&&(a=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?s.dataMax:s.dataMin),n=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,a),(0,o.defined)(n.min)&&(0,o.fireEvent)(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:p}})),"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&&(0,o.isNumber)(this.zoomedMin)&&(0,o.isNumber)(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,u),this.outline&&this.drawOutline(i,e,c,u),this.navigatorOptions.handles?.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,u),this.drawHandle(e,1,c,u)))}removeEvents(){this.eventsToUnbind?.forEach(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){(0,o.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&(0,o.removeEvent)(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,r=e.scrollbar||{},a=r.enabled,n=s&&i.height||0,l=a&&r.height||0,h=r.buttonsEnabled&&l||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=l,this.scrollButtonSize=h,this.scrollbarEnabled=a,this.navigatorEnabled=!!s,this.navigatorOptions=i,this.scrollbarOptions=r,this.setOpposite();let d=this,p=d.baseSeries,c=t.xAxis.length,u=t.yAxis.length,g=p&&p[0]&&p[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,d.navigatorEnabled){let e=this.getXAxisOffsets();d.xAxis=new(v())(t,(0,o.merge)({breaks:g.options.breaks,ordinal:g.options.ordinal,overscroll:g.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:c,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:g.options.ordinal?0:g.options.minPadding,maxPadding:g.options.ordinal?0:g.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:n}:{offsets:e,height:n}),"xAxis"),d.yAxis=new(v())(t,(0,o.merge)(i.yAxis,{alignTicks:!1,offset:0,index:u,isInternal:!0,reversed:(i.yAxis&&i.yAxis.reversed)??(t.yAxis[0]&&t.yAxis[0].reversed)??!1,zoomEnabled:!1},t.inverted?{width:n}:{height:n}),"yAxis"),d.xAxis.clippable=!1,d.yAxis.clippable=!1,p||i.series?.data||i.series?.dataTable?d.updateNavigatorSeries(!1):0===t.series.length&&(d.unbindRedraw=(0,o.addEvent)(t,"beforeRedraw",function(){t.series.length>0&&!d.series&&(d.setBaseSeries(),d.unbindRedraw?.())})),d.reversedExtremes=t.inverted&&!d.xAxis.reversed||!t.inverted&&d.xAxis.reversed,d.renderElements(),d.addMouseEvents()}else d.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let s=t.xAxis[0],o=s.getExtremes(),r=s.len-2*h,a=to("min",s.options.min,o.dataMin),n=to("max",s.options.max,o.dataMax)-a;return i?e*n/r+a:r*(e-a)/n},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},d.xAxis.navigatorAxis.axis=d.xAxis,d.xAxis.navigatorAxis.toFixedRange=R.prototype.toFixedRange.bind(d.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=(0,o.merge)(t.options.scrollbar,{vertical:t.inverted});(0,o.isNumber)(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=d.scrollbar=new te(t.renderer,e,t),(0,o.addEvent)(d.scrollbar,"changed",function(t){let e=d.size,i=e*this.to,s=e*this.from;d.hasDragged=d.scrollbar?.hasDragged,d.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){d.onMouseUp(t)})})}d.addBaseSeriesEvents(),d.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=t.opposite??!!(!e&&i.inverted)}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.chart.time,o=this.xAxis,r=o.options,a=i.options;return t&&null===i.dataMin||(e={dataMin:s.parse(r?.min)??to("min",s.parse(a.min),i.dataMin,o.dataMin,o.min),dataMax:s.parse(r?.max)??to("max",s.parse(a.max),i.dataMax,o.dataMax,o.max)}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options.navigator?.baseSeries||(i.series.length?(0,o.find)(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,r=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!(e&&0>r.indexOf(e))||(e&&((0,o.removeEvent)(e,"updatedData",i.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),l,h,d=i.navigatorOptions.series,p;if(r&&r.length&&r.forEach(t=>{let c=t.navigatorSeries,u=(0,o.extend)({color:t.color,visible:t.visible},(0,o.isArray)(d)?ti.navigator.series:d);if(c&&!1===i.navigatorOptions.adaptToUpdatedData)return;a.name="Navigator "+r.length,p=(l=t.options||{}).navigatorOptions||{},u.dataLabels=(0,o.splat)(u.dataLabels),(h=(0,o.merge)(l,a,u,p)).pointRange=u.pointRange??p.pointRange??ti.plotOptions[h.type||"line"]?.pointRange;let g=p.data||u.data,m=p.dataTable||u.dataTable;i.hasNavigatorData=i.hasNavigatorData||!!g||!!m,h.data=g||l.data?.slice(0),h.dataTable=m||l.dataTable,c&&c.options?c.update(h,e):(t.navigatorSeries=s.initSeries(h),(0,o.fireEvent)(t.navigatorSeries,"afterUpdate"),t.navigatorSeries.baseSeries=t,n.push(t.navigatorSeries))}),(d?.data||d?.dataTable)&&!(r&&r.length)||(0,o.isArray)(d)){let t=s.options.colors||[];i.hasNavigatorData=!1,(d=(0,o.splat)(d)).forEach((e,r)=>{a.name="Navigator "+(n.length+1),(h=(0,o.merge)(ti.navigator?.series,{color:s.series[r]&&!s.series[r].options.isInternal&&s.series[r].color||t[r]||t[0]},a,e)).data=e.data,h.dataTable=e.dataTable,(h.data||h.dataTable)&&(i.hasNavigatorData=!0,n.push(s.initSeries(h)))})}t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push((0,o.addEvent)(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push((0,o.addEvent)(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push((0,o.addEvent)(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push((0,o.addEvent)(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push((0,o.addEvent)(i,"remove",function(){e&&(0,o.erase)(e,i),this.navigatorSeries&&t.series&&((0,o.erase)(t.series,this.navigatorSeries),(0,o.defined)(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(),r=s.min,a=s.max,n=s.dataMin,l=s.dataMax,h=a-r,d=i?.stickToMin,p=i?.stickToMax,c=this.ordinal?.convertOverscroll(this.options.overscroll)??0,u=i.series&&i.series[0],g=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(t=(e=n)+h),p&&(t=l+c,d||(e=Math.max(n,t-h,i.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),g&&(d||p)&&(0,o.isNumber)(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=(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||this.options.dataTable,!1,void 0,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,r=s.max,a=s.min,n=s.options.range;return!!((0,o.isNumber)(r)&&(0,o.isNumber)(a))&&(n&&r-i>0?r-i<n:a<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push((0,o.addEvent)(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)}),(0,o.addEvent)(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)}),(0,o.addEvent)(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&((0,o.erase)(this.chart.xAxis,this.xAxis),(0,o.erase)(this.chart.axes,this.xAxis)),this.yAxis&&((0,o.erase)(this.chart.yAxis,this.yAxis),(0,o.erase)(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=>{(0,o.destroyObjectProperties)(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}}let{setLength:ta,splice:tn}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[s?"subarray":"slice"](e,e+i),n=new r(t.length-i+o.length);return n.set(t.subarray(0,e),0),n.set(o,e),n.set(t.subarray(e+i),e+o.length),{removed:a,array:n}}},tl=class{constructor(t={}){this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,o.uniqueKey)(),this.rowCount=0,this.versionTag=(0,o.uniqueKey)();let e=0;(0,o.objectEach)(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,(0,o.objectEach)(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=ta(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;(0,o.objectEach)(this.columns,(s,o)=>{this.columns[o]=tn(s,t,e).array,i=s.length}),this.rowCount=i}(0,o.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,o.uniqueKey)()}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),{})}getRowObject(t,e){let i={},s=this.columns;for(let o of(e??(e=Object.keys(this.columns)),e))i[o]=s[o]?.[t];return i}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;(0,o.objectEach)(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||((0,o.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,o.uniqueKey)())}setRow(t,e=this.rowCount,i,s){var r;let{columns:a}=this,n=i?this.rowCount+1:e+1,l=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=l.length;t<e;t++)a[r=l[t]]||(a[r]=Array(this.rowCount));(0,o.objectEach)(a,(s,o)=>{s&&(i?s=tn(s,e,0,!0,[t[o]]).array:s[e]=o in t?t[o]:s[e],a[o]=s)}),this.applyRowCount(Math.max(n,this.rowCount)),s?.silent||((0,o.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,o.uniqueKey)())}getModified(){return this.modified||this}};!function(t){function e(t,i,s,r,a=[],n=0,l){let h={},d=this.options.tickPixelInterval,p=this.chart.time,c=[],u,g,m,x,f,b=0,v=[],y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!a||a.length<3||void 0===i)return p.getTimeTicks.apply(p,arguments);let M=a.length;for(u=0;u<M;u++){if(f=u&&a[u-1]>s,a[u]<i&&(b=u),u===M-1||a[u+1]-a[u]>5*n||f){if(a[u]>y){for(g=p.getTimeTicks(t,a[b],a[u],r);g.length&&g[0]<=y;)g.shift();g.length&&(y=g[g.length-1]),c.push(v.length),v=v.concat(g)}b=u+1}if(f)break}if(g){if(x=g.info,l&&x.unitRange<=o.timeUnits.hour){for(b=1,u=v.length-1;b<u;b++)p.dateFormat("%d",v[b])!==p.dateFormat("%d",v[b-1])&&(h[v[b]]="day",m=!0);m&&(h[v[0]]="day"),x.boundaryTicks=h}x.segmentStarts=c,v.info=x}else(0,o.error)(12,!1,this.chart);if(l&&(0,o.defined)(d)){let t=v.length,e=[],i=[],o,r,a,n,l,p=t;for(;p--;)r=this.translate(v[p]),a&&(i[p]=a-r),e[p]=a=r;for(i.sort((t,e)=>t-e),(n=i[Math.floor(i.length/2)])<.6*d&&(n=null),p=v[t-1]>s?t-1:t,a=void 0;p--;)l=Math.abs(a-(r=e[p])),a&&l<.8*d&&(null===n||l<.8*n)?(h[v[p]]&&!h[v[p+1]]?(o=p+1,a=r):o=p,v.splice(o,1)):a=r}return v}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,r=e.getExtendedPositions();if(r?.length){let a=(0,o.correctFloat)((t-i)*s+this.minPixelPadding),n=(0,o.correctFloat)(e.getIndexOfPoint(a,r)),l=(0,o.correctFloat)(n%1);if(n>=0&&n<=r.length-1){let t=r[Math.floor(n)],e=r[Math.ceil(n)];return r[Math.floor(n)]+l*(e-t)}}return t}function r(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&&(0,o.defined)(e.overscroll)&&0!==e.overscroll&&(0,o.isNumber)(this.max)&&(0,o.isNumber)(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.isFullRange=(0,o.defined)(this.dataMin)&&(0,o.defined)(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&&(0,o.defined)(this.userMin)&&t?.trigger!=="mousewheel"&&(this.min+=i)}}function l(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function h(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function d(t){let e=this.xAxis[0],i=e.ordinal.convertOverscroll(e.options.overscroll),s=t.originalEvent.chartX,r=this.options.chart.panning,a=!1;if(r?.type!=="y"&&e.options.ordinal&&e.series.length&&(!t.touches||t.touches.length<=1)){let n,l,h=this.mouseDownX,d=e.getExtremes(),p=d.dataMin,c=d.dataMax,u=d.min,g=d.max,m=this.hoverPoints,x=e.closestPointRange||e.ordinal?.overscrollPointsRange,f=Math.round((h-s)/(e.translationSlope*(e.ordinal.slope||x))),b=e.ordinal.getExtendedPositions(),v={ordinal:{positions:b,extendedOrdinalPositions:b}},y=e.index2val,M=e.val2lin;if(u<=p&&f<=0||g>=c+i&&f>=0)if(!(r&&/y/.test(r.type)))return void t.preventDefault();else a=!0;else v.ordinal.positions?Math.abs(f)>1&&(m&&m.forEach(function(t){t.setState()}),l=v.ordinal.positions,i&&(l=v.ordinal.positions=l.concat(e.ordinal.getOverscrollPositions())),c>l[l.length-1]&&l.push(c),this.setFixedRange(g-u),(n=e.navigatorAxis.toFixedRange(void 0,void 0,y.apply(v,[M.apply(v,[u,!0])+f]),y.apply(v,[M.apply(v,[g,!0])+f]))).min>=Math.min(l[0],u)&&n.max<=Math.max(l[l.length-1],g)+i&&e.setExtremes(n.min,n.max,!0,!1,{trigger:"pan"}),this.mouseDownX=s,(0,o.css)(this.container,{cursor:"move"})):a=!0}else a=!0;a||r&&/y/.test(r.type)?i&&(0,o.isNumber)(e.dataMax)&&(e.max=e.dataMax+i):t.preventDefault()}function c(){let t=this.xAxis;t?.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.originalOrdinalRange)}function u(t,e){let i,s=this.ordinal,o=s.positions,a=s.slope,n;if(!o)return t;let l=o.length;if(o[0]<=t&&o[l-1]>=t)i=r(o,t);else{if(n=s.getExtendedPositions?.(),!n?.length)return t;let l=n.length;a||(a=(n[l-1]-n[0])/l);let h=r(n,o[0]);if(t>=n[0]&&t<=n[l-1])i=r(n,t)-h;else{if(!e)return t;i=t<n[0]?-h-(n[0]-t)/a:(t-n[l-1])/a+l-h}}return e?i:a*(i||0)+s.offset}t.compose=function(t,r,p){let g=t.prototype;return g.ordinal2lin||(g.getTimeTicks=e,g.index2val=i,g.lin2val=s,g.val2lin=u,g.ordinal2lin=g.val2lin,(0,o.addEvent)(t,"afterInit",a),(0,o.addEvent)(t,"foundExtremes",n),(0,o.addEvent)(t,"afterSetScale",l),(0,o.addEvent)(t,"initialAxisTranslation",h),(0,o.addEvent)(p,"pan",d),(0,o.addEvent)(p,"touchpan",d),(0,o.addEvent)(r,"updatedData",c)),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,r=t.brokenAxis?.hasBreaks,a=t.options.ordinal,n=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(a||r){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||r)&&(l=(m=m.concat(s)).length,m.sort(function(t,e){return t-e}),x=Math.min(x,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-n-m[l-1]>d)&&(f=!0)}else t.options.overscroll&&(2===l?x=m[1]-m[0]:1===l?(x=n,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=t.closestPointRange??e.overscrollPointsRange,e.positions=t.ordinal.slope=e.offset=void 0)}t.isOrdinal=a&&f,e.groupIntervalFactor=null}static findIndexOf(t,e,i){let s=0,o=t.length-1,r;for(;s<o;)t[r=Math.ceil((s+o)/2)]<=e?s=r:o=r-1;return t[s]===e||i?s:-1}getExtendedPositions(t=!0){let e=this,i=e.axis,s=i.constructor.prototype,o=i.chart,r=i.series.reduce((t,e)=>{let i=e.currentDataGrouping;return t+(i?i.count+i.unitName:"raw")},""),a=t?i.ordinal.convertOverscroll(i.options.overscroll):0,n=i.getExtremes(),l,h,d=e.index;return d||(d=e.index={}),!d[r]&&((l={series:[],chart:o,forceOrdinal:!1,getExtremes:function(){return{min:n.dataMin,max:n.dataMax+a}},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:p().noop,getColumn:i.getColumn,getX:p().noop,applyGrouping:i.applyGrouping,getProcessedData:i.getProcessedData,reserveSpace:i.reserveSpace,visible:i.visible};let s=i.getColumn("x"),r=(Array.isArray(s)?s:Array.from(s)).concat(t?e.getOverscrollPositions():[]);h.dataTable=new tl({columns:{x:r}}),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[r]=l.ordinal.positions)),d[r]}getGroupIntervalFactor(t,e,i){let s=i.getColumn("x",!0),o=s.length,r=[],a,n,l=this.groupIntervalFactor;if(!l){for(n=0;n<o-1;n++)r[n]=s[n+1]-s[n];r.sort(function(t,e){return t-e}),a=r[Math.floor(o/2)],t=Math.max(t,s[0]),e=Math.min(e,s[o-1]),this.groupIntervalFactor=l=o*a/(e-t)}return l}getIndexOfPoint(t,e){let i=this.axis,s=i.min,a=i.minPixelPadding,n=r(e,s),l=i.translationSlope*(this.slope||i.closestPointRange||this.overscrollPointsRange);return n+(0,o.correctFloat)((t-a)/l)}getOverscrollPositions(){let t=this.axis,e=this.convertOverscroll(t.options.overscroll),i=this.overscrollPointsRange,s=[],r=t.dataMax;if((0,o.defined)(i))for(;r<t.dataMax+e;)s.push(r+=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(e.originalOrdinalRange??((0,o.defined)(i.dataMax)&&(0,o.defined)(i.dataMin)?i.dataMax-i.dataMin:0))*t};if((0,o.isString)(t)){let e=parseInt(t,10);if(!1===i.isFullRange&&(0,o.isNumber)(i.min)&&(0,o.isNumber)(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}}}(n||(n={}));let th=n,td={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"}},tp={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:"var(--highcharts-highlight-color-80)",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},{defaultOptions:tc}=p(),{composed:tu}=p(),tg=[];function tm(){let t,e,i=this.range,s=i.type,r=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 r=a.makeTime.apply(a,o),n=a.toParts(r);return"month"===s&&i[1]===n[1]&&1===Math.abs(e)&&(o[0]=i[0],o[1]=i[1],o[2]=0),(r=a.makeTime.apply(a,o))-t};(0,o.isNumber)(i)?(t=r-i,e=i):i&&(t=r+n(r,-(i.count||1)),this.chart&&this.chart.setFixedRange(r-t));let l=this.dataMin??5e-324;return(0,o.isNumber)(t)||(t=l),t<=l&&(t=l,void 0===e&&(e=n(t,i.count)),this.newMax=Math.min(t+e,this.dataMax??Number.MAX_VALUE)),(0,o.isNumber)(r)?!(0,o.isNumber)(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function tx(){this.rangeSelector?.redrawElements()}function tf(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new e(this))}function tb(){let t=this.rangeSelector;if(t){(0,o.isNumber)(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 tv(){let t,e=this.rangeSelector;if(!e)return;let i=this.xAxis[0].getExtremes(),s=this.legend,r=e&&e.options.verticalAlign;(0,o.isNumber)(i.min)&&e.render(i.min,i.max),s?.display&&"top"===r&&r===s.options.verticalAlign&&(t=(0,o.merge)(this.spacingBox),"vertical"===s.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),s.group.placed=!1,s.align(t))}function ty(){for(let t=0,e=tg.length;t<e;++t){let e=tg[t];if(e[0]===this){e[1].forEach(t=>t()),tg.splice(t,1);return}}}function tM(){let t=this.rangeSelector;if(t?.options?.enabled){let{min:e,max:i}=this.xAxis[0].getExtremes();(0,o.isNumber)(e)&&t.inputGroup&&t.inputGroup.getBBox().width<20&&t.render(e,i);let s=t.getHeight(),r=t.options.verticalAlign;t.options.floating||("bottom"===r?this.marginBottom+=s:"middle"!==r&&(this.plotTop+=s))}}function tA(t){let i=t.options.rangeSelector,s=this.extraBottomMargin,r=this.extraTopMargin,a=this.rangeSelector;if(i&&i.enabled&&!(0,o.defined)(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!==r)&&(this.isDirtyBox=!0)}}let tE=function(t,i,s){if(e=s,(0,o.pushUnique)(tu,"RangeSelector")){let e=i.prototype;t.prototype.minFromRange=tm,(0,o.addEvent)(i,"afterGetContainer",tf),(0,o.addEvent)(i,"beforeRender",tb),(0,o.addEvent)(i,"destroy",ty),(0,o.addEvent)(i,"getMargins",tM),(0,o.addEvent)(i,"redraw",tv),(0,o.addEvent)(i,"update",tA),(0,o.addEvent)(i,"beforeRedraw",tx),e.callbacks.push(tv),(0,o.extend)(tc,{rangeSelector:tp}),(0,o.extend)(tc.lang,td)}},tw=i.default.SVGElement;var tS=s.n(tw);let tk=i.default.Templating;var tO=s.n(tk);let{defaultOptions:tT}=p(),{format:tC}=tO();function tB(t){let e=e=>RegExp(`%[[a-zA-Z]*${e}`).test(t);if((0,o.isString)(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";let i=(0,o.isString)(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,s=(0,o.isString)(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 tD{static compose(t,e){tE(t,e,tD)}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],r=i.xAxis[0],a=i.scroller&&i.scroller.getUnionExtremes()||r||{},n=s.type,l=s.dataGrouping,h=a.dataMin,d=a.dataMax,p,c=(0,o.isNumber)(r?.max)?Math.round(Math.min(r.max,d??r.max)):void 0,u,g=s._range,m,x,f,b=!0;if(null!==h&&null!==d){if(this.setSelected(t),l&&(this.forcedDataGrouping=!0,v().prototype.setDataGrouping.call(r||{chart:this.chart},l,!1),this.frozenStates=s.preserveDataGrouping),"month"===n||"year"===n)r?(x={range:s,max:c,chart:i,dataMin:h,dataMax:d},p=r.minFromRange.call(x),(0,o.isNumber)(x.newMax)&&(c=x.newMax),b=!1):g=s;else if(g)(0,o.isNumber)(c)&&(c=Math.min((p=Math.max(c-g,h))+g,d),b=!1);else if("ytd"===n)if(r)!r.hasData()||(0,o.isNumber)(d)&&(0,o.isNumber)(h)||(h=Number.MAX_VALUE,d=-Number.MAX_VALUE,i.series.forEach(t=>{let e=t.getColumn("x");e.length&&(h=Math.min(e[0],h),d=Math.max(e[e.length-1],d))}),e=!1),(0,o.isNumber)(d)&&(0,o.isNumber)(h)&&(p=m=(f=this.getYTDExtremes(d,h)).min,c=f.max);else{this.deferredYTDClick=t;return}else"all"===n&&r&&(i.navigator&&i.navigator.baseSeries[0]&&(i.navigator.baseSeries[0].xAxis.options.range=void 0),p=h,c=d);if(b&&s._offsetMin&&(0,o.defined)(p)&&(p+=s._offsetMin),s._offsetMax&&(0,o.defined)(c)&&(c+=s._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),r)((0,o.isNumber)(p)||(0,o.isNumber)(c))&&(r.setExtremes(p,c,e??!0,void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:s}),i.setFixedRange(s._range));else{u=(0,o.splat)(i.options.xAxis||{})[0];let t=(0,o.addEvent)(i,"afterCreateAxes",function(){let t=i.xAxis[0];t.range=t.options.range=g,t.min=t.options.min=m});(0,o.addEvent)(i,"load",function(){let e=i.xAxis[0];i.setFixedRange(s._range),e.options.range=u.range,e.options.min=u.min,t()})}(0,o.fireEvent)(this,"afterBtnClick")}}setSelected(t){this.selected=this.options.selected=t}init(t){let e=this,i=t.options.rangeSelector,s=t.options.lang,r=i.buttons,a=i.selected,n=function(){let t=e.minInput,i=e.maxInput;t&&t.blur&&(0,o.fireEvent)(t,"blur"),i&&i.blur&&(0,o.fireEvent)(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=r.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=tC(t.text,{count:t.count||1}),t.title=tC(t.title,{count:t.count||1}),t)),this.eventsToUnbind=[],this.eventsToUnbind.push((0,o.addEvent)(t.container,"mousedown",n)),this.eventsToUnbind.push((0,o.addEvent)(t,"resize",n)),r.forEach(e.computeButtonRange),void 0!==a&&r[a]&&this.clickButton(a,!1),this.eventsToUnbind.push((0,o.addEvent)(t,"load",function(){t.xAxis&&t.xAxis[0]&&(0,o.addEvent)(t.xAxis[0],"setExtremes",function(i){(0,o.isNumber)(this.max)&&(0,o.isNumber)(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,r=e.xAxis[0],a=Math.round(r.max-r.min),n=!r.hasVisibleSeries,l=24*36e5,h=e.scroller&&e.scroller.getUnionExtremes()||r,d=h.dataMin,p=h.dataMax,c=t.getYTDExtremes(p,d),u=c.min,g=c.max,m=t.selected,x=t.options.allButtonsEnabled,f=Array(t.buttonOptions.length).fill(0),b=(0,o.isNumber)(m),v=t.buttons,y=!1,M=null;t.buttonOptions.forEach((e,i)=>{let s=e._range,o=e.type,h=e.count||1,c=e._offsetMax-e._offsetMin,v=i===m,A=s>p-d,E=s<r.minRange,w=!1,S=s===a;if(v&&A&&(y=!0),r.isOrdinal&&r.ordinal?.positions&&s&&a<s){let t=r.ordinal.positions;t[t.length-1]-t[0]>s&&(S=!0)}else("month"===o||"year"===o)&&a+36e5>=({month:28,year:365})[o]*l*h-c&&a-36e5<=({month:31,year:366})[o]*l*h+c?S=!0:"ytd"===o?(S=g-u+c===a,w=!v):"all"===o&&(S=r.max-r.min>=p-d);let k=!x&&!(y&&"all"===o)&&(A||E||n),O=y&&"all"===o||!w&&S||v&&t.frozenStates;k?f[i]=3:O&&(!b||i===m)&&(M=i)}),null!==M?(f[M]=2,t.setSelected(M),this.dropdown&&(this.dropdown.selectedIndex=M+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),s&&(s.setState(0),s.attr({text:(tT.lang.rangeSelectorZoom||"")+" ▾"})));for(let e=0;e<f.length;e++){let r=f[e],a=v[e];if(a.state!==r&&(a.setState(r),i)){i.options[e+1].disabled=3===r,2===r&&(s&&(s.setState(2),s.attr({text:t.buttonOptions[e].text+" ▾"})),i.selectedIndex=e+1);let a=s.getBBox();(0,o.css)(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=t.offsetMin??0,t._offsetMax=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,r="min"===t?this.minInput:this.maxInput,a="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",tB(i.inputDateFormat||"%e %b %Y"));let t=r.getAttribute("data-hc-time"),n=(0,o.defined)(t)?Number(t):void 0;if((0,o.defined)(e)){let t=n;(0,o.defined)(t)&&r.setAttribute("data-hc-time-previous",t),r.setAttribute("data-hc-time",e),n=e}r.value=s.dateFormat(this.inputTypeFormats[r.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 r=o.dateFormat(t,e);s.min!==r&&(s.min=r);let a=o.dateFormat(t,i);s.max!==a&&(s.max=a)}}}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:r=0}=this.inputGroup,{x:a=0,width:n=0,height:l=0}=e,{inputBoxWidth:h}=this.options;(0,o.css)(i,{width:t?n+(h?-2:20)+"px":"auto",height:l-2+"px",border:"2px solid silver"}),t&&h?(0,o.css)(i,{left:s+a+"px",top:r+"px"}):(0,o.css)(i,{left:Math.min(Math.round(a+s-(i.offsetWidth-n)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:r-(i.offsetHeight-l)/2+"px"})}}hideInput(t){let e="min"===t?this.minInput:this.maxInput;e&&(0,o.css)(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,r=this,a=e.renderer.style||{},n=e.renderer,l=e.options.rangeSelector,h=tT.lang,d="min"===t;function c(t){let{maxInput:i,minInput:s}=r,a=e.xAxis[0],n=e.scroller?.getUnionExtremes()||a,l=n.dataMin,h=n.dataMax,p=e.xAxis[0].getExtremes()[t],c=r.getInputValue(t);(0,o.isNumber)(c)&&c!==p&&(d&&i&&(0,o.isNumber)(l)?c>Number(i.getAttribute("data-hc-time"))?c=void 0:c<l&&(c=l):s&&(0,o.isNumber)(h)&&(c<Number(s.getAttribute("data-hc-time"))?c=void 0:c>h&&(c=h)),void 0!==c&&a.setExtremes(d?c:a.min,d?a.max:c,void 0,void 0,{trigger:"rangeSelectorInput"}))}let u=h[d?"rangeSelectorFrom":"rangeSelectorTo"]||"",g=n.label(u,0).addClass("highcharts-range-label").attr({padding:2*!!u,height:u?l.inputBoxHeight:0}).add(s),m=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:l.inputBoxWidth,height:l.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||m.attr({stroke:l.inputBoxBorderColor,"stroke-width":1}),m.add(s);let x=(0,o.createElement)("input",{name:t,className:"highcharts-range-selector"},void 0,i);x.setAttribute("type",tB(l.inputDateFormat||"%e %b %Y")),e.styledMode||(g.css((0,o.merge)(a,l.labelStyle)),m.css((0,o.merge)({color:"var(--highcharts-neutral-color-80)"},a,l.inputStyle)),(0,o.css)(x,(0,o.extend)({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"},l.inputStyle))),x.onfocus=()=>{r.showInput(t)},x.onblur=()=>{x===p().doc.activeElement&&c(t),r.hideInput(t),r.setInputValue(t),x.blur()};let f=!1;return x.onchange=()=>{f||(c(t),r.hideInput(t),x.blur())},x.onkeypress=e=>{13===e.keyCode&&c(t)},x.onkeydown=e=>{f=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&c(t)},x.onkeyup=()=>{f=!1},{dateBox:m,input:x,label:g}}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,r=s.rangeSelector,a=r.inputEnabled,n=(s.chart.style?.zIndex??0)+1;!1!==r.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=(0,o.createElement)("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 r=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if((0,o.defined)(r.dataMin)&&(0,o.defined)(r.dataMax)){let t=i.xAxis[0].minRange||0;this.setInputExtremes("min",r.dataMin,Math.min(r.dataMax,this.getInputValue("max"))-t),this.setInputExtremes("max",Math.max(r.dataMin,this.getInputValue("min"))+t,r.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=tT.lang,r=e.renderer,a=(0,o.merge)(i.buttonTheme),n=a&&a.states;delete a.width,delete a.states,this.buttonGroup=r.g("range-selector-buttons").add(this.group);let l=this.dropdown=(0,o.createElement)("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),h=e.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=r.button("",0,0,()=>{},(0,o.merge)(a,{"stroke-width":a["stroke-width"]??0,width:"auto",paddingLeft:i.buttonTheme.paddingLeft??h?.padding??8,paddingRight:i.buttonTheme.paddingRight??h?.padding??8}),n&&n.hover,n&&n.select,n&&n.disabled).hide().add(this.group),(0,o.addEvent)(l,"touchstart",()=>{l.style.fontSize="16px"});let d=p().isMS?"mouseover":"mouseenter",c=p().isMS?"mouseout":"mouseleave";(0,o.addEvent)(l,d,()=>{(0,o.fireEvent)(this.dropdownLabel.element,d)}),(0,o.addEvent)(l,c,()=>{(0,o.fireEvent)(this.dropdownLabel.element,c)}),(0,o.addEvent)(l,"change",()=>{let t=this.buttons[l.selectedIndex-1];(0,o.fireEvent)(t.element,"click")}),this.zoomText=r.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)),(0,o.createElement)("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,l),this.createButtons()}createButtons(){let{options:t}=this,e=(0,o.merge)(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:r,buttons:a,chart:n,options:l}=this,h=n.renderer,d=(0,o.merge)(l.buttonTheme);r?.add((0,o.createElement)("option",{textContent:t.title||t.text}),e+2),a[e]=h.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},d,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:r,zoomText:a}=this,n=i.options,l=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,{buttonPosition:h,inputPosition:d,verticalAlign:p}=r,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 n=h.x-i.spacing[3];if(t){if(this.positionButtons(),!this.initialButtonGroupWidth){let t=0;a&&(t+=a.getBBox().width+5),e.forEach((i,s)=>{t+=i.width||0,s!==e.length-1&&(t+=r.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;r.inputEnabled&&o&&(l=c(o,d,"right"===h.align||"right"===d.align),"left"===d.align?n=u:"right"===d.align&&(n=-Math.max(i.axisOffset[1],-l)),o.align({y:d.y,width:o.getBBox().width,align:d.align,x:d.x+n-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+(t.margin??10):0)-20)-(r.floating?0:r.y)-(i.titleOffset?i.titleOffset[2]:0)-10}"top"===p?(r.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(r.x,r.y+Math.floor(x));let{minInput:f,maxInput:b,dropdown:v}=this;r.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,r=(0,o.merge)(s.buttonTheme),a=r&&r.states,n=r.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??[],(0,o.defined)(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}}alignButtonGroup(t,e){let{chart:i,options:s,buttonGroup:r,dropdown:a,dropdownLabel:n}=this,{buttonPosition:l}=s,h=i.plotLeft-i.spacing[3],d=l.x-i.spacing[3],p=i.plotLeft;"right"===l.align?(d+=t-h,this.hasVisibleDropdown&&(p=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===l.align&&(d-=h/2,this.hasVisibleDropdown&&(p=i.chartWidth/2-this.maxButtonWidth())),a&&(0,o.css)(a,{left:p+"px",top:r?.translateY+"px"}),n?.attr({x:p}),r&&r.align({y:l.y,width:e??this.initialButtonGroupWidth,align:l.align,x:d},!0,i.spacingBox)}positionButtons(){let{buttons:t,chart:e,options:i,zoomText:s}=this,o=e.hasLoaded?"animate":"attr",{buttonPosition:r}=i,a=e.plotLeft,n=a;s&&"hidden"!==s.visibility&&(s[o]({x:a+(r.x??0)}),n+=r.x+s.getBBox().width+5);for(let e=0,s=this.buttonOptions.length;e<s;++e)"hidden"!==t[e].visibility?(t[e][o]({x:n}),n+=(t[e].width||0)+i.buttonSpacing):t[e][o]({x:a})}handleCollision(t){let{chart:e,buttonGroup:i,inputGroup:s,initialButtonGroupWidth:o}=this,{buttonPosition:r,dropdown:a,inputPosition:n}=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?n.align===r.align?(l(),o>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):o-t+s.getBBox().width>e.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():l():this.expandButtons():i&&"responsive"===a&&(o>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&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(),(0,o.css)(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)}hideDropdown(){let{dropdown:t}=this;t&&(this.dropdownLabel.hide(),(0,o.css)(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)}getHeight(){let t=this.options,e=this.group,i=t.inputPosition,s=t.buttonPosition,o=t.y,r=s.y,a=i.y,n=0;if(t.height)return t.height;this.alignElements(),n=e?e.getBBox(!0).height+13+o:0;let l=Math.min(a,r);return(a<0&&r<0||a>0&&r>0)&&(n+=Math.abs(l)),n}titleCollision(t){return!(t.options.title.text||t.options.subtitle.text)}update(t,e=!0){let i=this.chart;if((0,o.merge)(!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),(0,o.defined)(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),(0,o.destroyObjectProperties)(t.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),(0,o.objectEach)(t,function(e,i){e&&"chart"!==i&&(e instanceof tS()?e.destroy():e instanceof window.HTMLElement&&(0,o.discardElement)(e),delete t[i]),e!==tD.prototype[i]&&(t[i]=null)},this),this.buttons=[]}}(0,o.extend)(tD.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});let tP=i.default.Chart;var tR=s.n(tP);let{format:tL}=tO(),{getOptions:tz}=p(),{setFixedRange:tI}=H;function tN(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 tW(t,e){if("xAxis"===t){let t=e.navigator?.enabled??N.enabled??!0,i={type:"datetime",categories:void 0};return t&&(i.startOnTick=!1,i.endOnTick=!1),i}return{}}class tX extends tR(){init(t,e){let i=tz(),s=t.xAxis,r=t.yAxis,a=t.navigator?.enabled??N.enabled??!0;t.xAxis=t.yAxis=void 0;let n=(0,o.merge)({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:a},scrollbar:{enabled:J.enabled??!0},rangeSelector:{enabled:tp.enabled??!0},title:{text:null},tooltip:{split:i.tooltip?.split??!0,crosshairs:!0},legend:{enabled:!1}},t,{isStock:!0});t.xAxis=s,t.yAxis=r,n.xAxis=(0,o.splat)(t.xAxis||{}).map(e=>(0,o.merge)(tN("xAxis",e,i.xAxis),e,tW("xAxis",t))),n.yAxis=(0,o.splat)(t.yAxis||{}).map(t=>(0,o.merge)(tN("yAxis",t,i.yAxis),t)),super.init(n,e)}createAxis(t,e){return e.axis=(0,o.merge)(tN(t,e.axis,tz()[t]),e.axis,tW(t,this.userOptions)),super.createAxis(t,e)}}(0,o.addEvent)(tR(),"update",function(t){let e=t.options;"scrollbar"in e&&this.navigator&&((0,o.merge)(!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&&(0,o.isNumber)(this.min)&&(0,o.isNumber)(this.max)))return;let e=this.chart,i=this.logarithmic,s=this.crosshair.label,r=this.horiz,a=this.opposite,n=this.left,l=this.top,h=this.width,d="inside"===this.options.tickPosition,p=!1!==this.crosshair.snap,c=t.e||this.cross?.e,u=t.point,g=this.crossLabel,m,x,f=s.format,b="",v,y=0,M=this.min,A=this.max;i&&(M=i.lin2log(this.min),A=i.lin2log(this.max));let E=r?"center":a?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";!g&&(g=this.crossLabel=e.renderer.label("",0,void 0,s.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(u?.series?u.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:s.align||E,padding:s.padding??8,r:s.borderRadius??3,zIndex:2}).add(this.labelGroup),e.styledMode||g.attr({fill:s.backgroundColor||u?.series?.color||"var(--highcharts-neutral-color-60)",stroke:s.borderColor||"","stroke-width":s.borderWidth||0}).css((0,o.extend)({color:"var(--highcharts-background-color)",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},s.style||{}))),r?(m=p?(u.plotX||0)+n:c.chartX,x=l+(a?0:this.height)):(m=n+this.offset+(a?h:0),x=p?(u.plotY||0)+l:c.chartY),f||s.formatter||(this.dateTime&&(b="%b %d, %Y"),f="{value"+(b?":"+b:"")+"}");let w=p?this.isXAxis?u.x:u.y:this.toValue(r?c.chartX:c.chartY),S=u?.series?u.series.isPointInside(u):(0,o.isNumber)(w)&&w>M&&w<A,k="";f?k=tL(f,{value:w},e):s.formatter&&(0,o.isNumber)(w)&&(k=s.formatter.call(this,w,this)),g.attr({text:k,x:m,y:x,visibility:S?"inherit":"hidden"});let O=g.getBBox();!(0,o.isNumber)(g.x)||r||a||(m=g.x-O.width/2),(0,o.isNumber)(g.y)&&(r?(d&&!a||!d&&a)&&(x=g.y-O.height):x=g.y-O.height/2),v=r?{left:n,right:n+this.width}:{left:"left"===this.labelAlign?n:0,right:"right"===this.labelAlign?n+this.width:e.chartWidth};let T=g.translateX||0;T<v.left&&(y=v.left-T),T+O.width>=v.right&&(y=-(T+O.width-v.right)),g.attr({x:Math.max(0,m+y),y:Math.max(0,x),anchorX:r?m:this.opposite?0:e.chartWidth,anchorY:r?this.opposite?e.chartHeight:0:x+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 r(){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.options,i=this.isLinked&&!this.series&&this.linkedParent?this.linkedParent.series:this.series,{chart:s,horiz:r}=this,a=s.renderer,n=[],{acrossPanes:l=!0,force:h,translatedValue:d,value:p}=t,c=(this.isXAxis?s.yAxis:s.xAxis)||[],u=r?"top":"left",g=r?"height":"width",m=(0,o.defined)(e[u])||(0,o.defined)(e[g]);function x(t,e,i){n.push(["M",r?t:e,r?e:t],["L",r?t:i,r?i:t])}let f=[],b,v;if((s.options.isStock||m)&&("xAxis"===this.coll||"yAxis"===this.coll)){let y,M;for(let r of(t.preventDefault(),M=e[y="xAxis"===this.coll?"yAxis":"xAxis"],f=l&&!e.isInternal?c.filter(t=>!t.options.isInternal):(0,o.isNumber)(M)?[s[y][M]]:(0,o.isString)(M)?[s.get(M)]:i.map(t=>t[y]),c))if(!r.options.isInternal){let t=r.isXAxis?"yAxis":"xAxis";this===((0,o.defined)(r.options[t])&&s[t][r.options[t]])&&f.push(r)}for(let t of(b=f.length?[]:[this.isXAxis?s.yAxis[0]:s.xAxis[0]],f))-1!==b.indexOf(t)||(0,o.find)(b,e=>e.pos===t.pos&&e.len===t.len)||b.push(t);if(v=d??this.translate(p||0,void 0,void 0,t.old),(0,o.isNumber)(v)){let t,e=r?v+this.pos:this.pos+this.len-v;if("pass"!==h&&(e<this.pos||e>this.pos+this.len)&&(h?e=(0,o.clamp)(e,this.pos,this.pos+this.len):t=!0),!t)if(m&&this[g]>0&&!l)x(e,this[u],this[u]+this[g]);else for(let t of b)x(e,t.pos,t.pos+t.len)}t.path=n.length>0?a.crispPolyLine(n,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]=(0,o.merge)(t.plotOptions[this.type],e))}}function l(){let t=this.chart,e=this.options.dataGrouping;return!1!==this.allowDG&&e&&(e.enabled??t.options.isStock)}function h(t,e){for(let i=0;i<t.length;i+=2){let s=t[i],r=t[i+1];(0,o.defined)(s[1])&&s[1]===r[1]&&(s[1]=r[1]=(0,o.crisp)(s[1],e)),(0,o.defined)(s[2])&&s[2]===r[2]&&(s[2]=r[2]=(0,o.crisp)(s[2],e))}return t}t.compose=function(t,d,p,c){let u=p.prototype;u.forceCropping||((0,o.addEvent)(d,"afterDrawCrosshair",e),(0,o.addEvent)(d,"afterHideCrosshair",i),(0,o.addEvent)(d,"autoLabelAlign",s),(0,o.addEvent)(d,"destroy",r),(0,o.addEvent)(d,"getPlotLinePath",a),t.prototype.setFixedRange=tI,u.forceCropping=l,(0,o.addEvent)(p,"setOptions",n),c.prototype.crispPolyLine=h)},t.stockChart=function(e,i,s){let o=new t(e,i,s);return o.promise??o}}(tX||(tX={}));let tG=tX,{column:{prototype:{pointClass:tF}}}=z().seriesTypes,tU=class extends tF{getOrigin({x:t=0},e={}){let i=e.d,s=t-(this.plotX||0);return i?{d:i.map(t=>{let e=t.slice();return"number"==typeof e[1]&&(e[1]+=s),e})}:e}},{composed:tY}=p();(l||(l={})).compose=function(t){if((0,o.pushUnique)(tY,"Series.FinancialSymbols")){let e=t.prototype.symbols,i=(t,e,i,s,o)=>{let r=Math.round(t+i/2),a=Math.round(e+s*(o?.3:.5)),n=[["M",r,e],["L",r,e+s],["M",r,a],["L",t+i,a]];if(o){let i=Math.round(e+.7*s);n.push(["M",t,i],["L",r,i])}return n};e.hlc=(t,e,s,o)=>i(t,e,s,o),e.ohlc=(t,e,s,o)=>i(t,e,s,o,!0),e.candlestick=(t,i,s,o)=>{let r=Math.round(t+s/2),a=Math.round(i+.25*o),n=Math.round(i+.75*o),l=[["M",r,i],["L",r,a],["M",r,n],["L",r,i+o]];return e.rect&&l.push(...e.rect(t,a,s,n-a)),l}}};let tH=l,{column:tV}=z().seriesTypes,{defaultOptions:t_}=p();class tj extends tV{static compose(t,e){tH.compose(e)}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){let e=t.series,i=e.borderWidth,s=(0,o.crisp)(t.plotX||0,i),r=Math.round(t.shapeArgs.width/2),a=[["M",s,Math.round(t.yBottom)],["L",s,Math.round(t.plotHigh)]];if(null!==t.close){let n=(0,o.crisp)(t.plotClose,i);a.push(["M",s,n],["L",s+r,n]),e.extendStem(a,i/2,n)}return a}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(t,e){let i=super.pointAttribs.call(this,t,e);return t&&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)}`),o=t.options.lineWidth??1;s.push("yBottom"),i.push("low"),super.translate.apply(t),t.borderWidth=o,t.points.concat(t.condemnedPoints).forEach(o=>{i.forEach(function(i,r){let a=o[i];null!==a&&(t.dataModify&&(a=t.dataModify.modifyValue(a)),o[s[r]]=e.toPixels(a,!0))});let{x:r=0,y:a=0,width:n=0,height:l=0}=o.shapeArgs||{};o.dlBox={x:r,y:a,width:n,height:l},o.shapeType="path",o.shapeArgs={d:t.getPointPath(o)},o.tooltipPos[1]=o.plotHigh+e.pos-t.chart.plotTop})}}tj.defaultOptions=(0,o.merge)(tV.defaultOptions,{legendSymbol:"hlc",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}),(0,o.extend)(tj.prototype,{pointClass:tU,animate:null,directTouch:!1,keysAffectYAxis:["low","high"],pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),(0,o.extend)(t_.lang,{stockOpen:"Open",stockHigh:"High",stockLow:"Low",stockClose:"Close"}),z().registerSeriesType("hlc",tj);let{seriesTypes:{hlc:tq}}=z();class tK extends tq.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:tZ}=p(),{hlc:t$}=z().seriesTypes;function tJ(t){let e=t.options,i=e.dataGrouping;i&&!i.approximation&&e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(i.approximation="ohlc")}function tQ(t){let e=t.options;e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(0,o.extend)(this,{pointValKey:t0.prototype.pointValKey,pointArrayMap:t0.prototype.pointArrayMap,toYData:t0.prototype.toYData})}class t0 extends t${static compose(t){(0,o.pushUnique)(tZ,"OHLCSeries")&&((0,o.addEvent)(t,"afterSetOptions",tJ),(0,o.addEvent)(t,"init",tQ))}getPointPath(t){let e=super.getPointPath(t),i=this.borderWidth,s=(0,o.crisp)(t.plotX||0,i),r=Math.round(t.shapeArgs.width/2);if(null!==t.open){let a=(0,o.crisp)(t.plotOpen,i);e.push(["M",s,a],["L",s-r,a]),super.extendStem(e,i/2,a)}return e}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||0)<(t?.close||0)&&(i.stroke=s.upColor),i}toYData(t){return[t.open,t.high,t.low,t.close]}}t0.defaultOptions=(0,o.merge)(t$.defaultOptions,{legendSymbol:"ohlc",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/>'}}),(0,o.extend)(t0.prototype,{pointClass:tK,pointArrayMap:["open","high","low","close"]}),z().registerSeriesType("ohlc",t0);let{column:t1,ohlc:t2}=z().seriesTypes;class t5 extends t2{pointAttribs(t,e){let i=t1.prototype.pointAttribs.call(this,t,e),s=this.options,o=(t?.open||0)<(t?.close||0),r=s.lineColor||this.color,a=t?.color||this.color;if(i["stroke-width"]=s.lineWidth,i.fill=t?.options.color||o&&s.upColor||a,i.stroke=t?.options.lineColor||o&&s.upLineColor||r,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}getPointPath(t){let e=this.borderWidth,i=(0,o.crisp)(t.plotX||0,e),s=t.plotOpen,r=t.plotClose,a=Math.min(s,r),n=Math.max(s,r),l=Math.round(t.shapeArgs.width/2),h=this.yAxis.reversed,d=h?n!==t.yBottom:Math.round(a)!==Math.round(t.plotHigh||0),p=h?Math.round(a)!==Math.round(t.plotHigh||0):n!==t.yBottom,c=(0,o.crisp)(a,e),u=(0,o.crisp)(n,e),g=[];return g.push(["M",i-l,u],["L",i-l,c],["L",i+l,c],["L",i+l,u],["Z"],["M",i,c],["L",i,d?Math.round(h?t.yBottom:t.plotHigh):c],["M",i,u],["L",i,p?Math.round(h?t.plotHigh:t.yBottom):u]),g}}t5.defaultOptions=(0,o.merge)(t2.defaultOptions,{tooltip:t2.defaultOptions.tooltip},{states:{hover:{lineWidth:2}},threshold:null,legendSymbol:"candlestick",lineColor:"var(--highcharts-neutral-color-100)",lineWidth:1,upColor:"var(--highcharts-background-color)",stickyTracking:!0}),z().registerSeriesType("candlestick",t5);let{column:{prototype:{pointClass:t3}}}=z().seriesTypes,t6=class extends t3{constructor(){super(...arguments),this.ttBelow=!1}isValid(){return(0,o.isNumber)(this.y)||void 0===this.y}hasNewShapeType(){let t=this.options.shape||this.series.options.shape;return this.graphic&&t&&t!==this.graphic.symbolKey}},{composed:t8}=p();function t4(t,e,i,s,o){let r=o&&o.anchorX||t,a=o&&o.anchorY||e,n=this.circle(r-1,a-1,2,2);return n.push(["M",r,a],["L",t,e+s],["L",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]),n}function t7(t,e){t[e+"pin"]=function(i,s,o,r,a){let n,l=a&&a.anchorX,h=a&&a.anchorY;if("circle"===e&&r>o&&(i-=Math.round((r-o)/2),o=r),n=t[e](i,s,o,r,a),l&&h){let a=l;if("circle"===e)a=i+o/2;else{let t=n[0],e=n[1];"M"===t[0]&&"L"===e[0]&&(a=(t[1]+e[1])/2)}let d=s>h?s:s+r;n.push(["M",a,d],["L",l,h]),n=n.concat(t.circle(l-1,h-1,2,2))}return n}}(h||(h={})).compose=function(t){if((0,o.pushUnique)(t8,"Series.Flags")){let e=t.prototype.symbols;e.flag=t4,t7(e,"circle"),t7(e,"square"),e["flag-icon"]=function(t,e,i,s){return t4.call(this,t,e,i,Math.round(.6*s),{anchorX:Math.round(t),anchorY:Math.round(e+s)})}}};let t9=h,et=i.default.Series.types.column;var ee=s.n(et);let{composed:ei}=p(),{prototype:es}=ee(),{prototype:eo}=m();var er=d||(d={});function ea(t){return eo.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,t)}function en(){es.translate.apply(this);let t=this,e=t.options,i=t.chart,s=t.points,r=e.onSeries,a=r&&i.get(r),n=a&&a.options.step,l=a&&a.points,h=i.inverted,d=t.xAxis,p=t.yAxis,c=s.length-1,u,g,m=e.onKey||"y",x=l&&l.length,f=0,b,v,y,M,A;if(a&&a.visible&&x){for(f=(a.pointXOffset||0)+(a.barW||0)/2,M=a.currentDataGrouping,v=l[x-1].x+(M?M.totalRange:0),(0,o.stableSort)(s,(t,e)=>t.x-e.x),m="plot"+m[0].toUpperCase()+m.substr(1);x--&&s[c];)if(b=l[x],(u=s[c]).y=b.y,b.x<=u.x&&void 0!==b[m]){if(u.x<=v&&(u.plotY=b[m],b.x<u.x&&!n&&(y=l[x+1]))&&void 0!==y[m])if((0,o.defined)(u.plotX)&&a.is("spline")){let t=[b.plotX||0,b.plotY||0],e=[y.plotX||0,y.plotY||0],i=b.controlPoints?.high||t,s=y.controlPoints?.low||e,r=(o,r)=>Math.pow(1-o,3)*t[r]+3*(1-o)*(1-o)*o*i[r]+3*(1-o)*o*o*s[r]+o*o*o*e[r],a=0,n=1,l;for(let t=0;t<100;t++){let t=(a+n)/2,e=r(t,0);if(null===e)break;if(.25>Math.abs(e-u.plotX)){l=t;break}e<u.plotX?a=t:n=t}(0,o.defined)(l)&&(u.plotY=r(l,1),u.y=p.toValue(u.plotY,!0))}else A=(u.x-b.x)/(y.x-b.x),u.plotY+=A*(y[m]-b[m]),u.y+=A*(y.y-b.y);if(c--,x++,c<0)break}}s.forEach((e,i)=>{let r;e.plotX+=f,(void 0===e.plotY||h)&&(e.plotX>=0&&e.plotX<=d.len?h?(e.plotY=d.translate(e.x,0,1,0,1),e.plotX=(0,o.defined)(e.y)?p.translate(e.y,0,0,0,1):0):e.plotY=(d.opposite?0:t.yAxis.len)+d.offset:e.shapeArgs={}),(g=s[i-1])&&g.plotX===e.plotX&&(void 0===g.stackIndex&&(g.stackIndex=0),r=g.stackIndex+1),e.stackIndex=r}),this.onSeries=a}er.compose=function(t){if((0,o.pushUnique)(ei,"OnSeries")){let e=t.prototype;e.getPlotBox=ea,e.translate=en}return t},er.getPlotBox=ea,er.translate=en;let el=d,{noop:eh}=p(),{distribute:ed}=p(),{series:ep,seriesTypes:{column:ec}}=z();class eu extends ec{animate(t){t&&this.setClip()}drawPoints(){let t,e,i,s,r,a,n,l,h,d,p,c=this.points,u=this.chart,g=u.renderer,m=u.inverted,x=this.options,f=x.y,b=this.yAxis,v={},y=[],M=(0,o.isNumber)(x.borderRadius)?x.borderRadius:0;for(s=c.length;s--;)r=c[s],d=(m?r.plotY:r.plotX)>this.xAxis.len,t=r.plotX,n=r.stackIndex,i=r.options.shape||x.shape,void 0!==(e=r.plotY)&&(e=r.plotY+f-(void 0!==n&&n*x.stackDistance)),r.anchorX=n?void 0:r.plotX,l=n?void 0:r.plotY,p="flag"!==i,a=r.graphic,void 0!==e&&t>=0&&!d?(a&&r.hasNewShapeType()&&(a=a.destroy()),a||(a=r.graphic=g.label("",0,void 0,i,void 0,void 0,x.useHTML).addClass(r.getClassName()).add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),a.isNew=!0),a.attr({align:p?"center":"left",width:x.width,height:x.height,"text-align":x.textAlign,r:M}),u.styledMode||a.attr(this.pointAttribs(r)).css((0,o.merge)(x.style,r.style)).shadow(x.shadow),t>0&&(t-=a.strokeWidth()%2),h={y:e,anchorY:l},x.allowOverlapX&&(h.x=t,h.anchorX=r.anchorX),a.attr({text:r.options.title??x.title??"A"})[a.isNew?"attr":"animate"](h),x.allowOverlapX||(v[r.plotX]?v[r.plotX].size=Math.max(v[r.plotX].size,a.width||0):v[r.plotX]={align:.5*!!p,size:a.width||0,target:t,anchorX:t}),r.tooltipPos=[t,e+b.pos-u.plotTop]):a&&(r.graphic=a.destroy());if(!x.allowOverlapX){let t=100;for(let e of((0,o.objectEach)(v,function(e){e.plotX=e.anchorX,y.push(e),t=Math.max(e.size,t)}),ed(y,m?b.len:this.xAxis.len,t),c)){let t=e.plotX,i=e.graphic,s=i&&v[t];s&&i&&((0,o.defined)(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)}}x.useHTML&&this.markerGroup&&(0,o.wrap)(this.markerGroup,"on",function(t){return tS().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=(0,o.addEvent)(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?.color||this.color,o=i.lineColor,r=t?.lineWidth,a=t?.fillColor||i.fillColor;return e&&(a=i.states?.[e]?.fillColor,o=i.states?.[e]?.lineColor,r=i.states?.[e]?.lineWidth),{fill:a||s,stroke:o||s,"stroke-width":r||i.lineWidth||0}}setClip(){ep.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}eu.compose=t9.compose,eu.defaultOptions=(0,o.merge)(ec.defaultOptions,{borderRadius:0,legendSymbol:"flag-icon",pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"var(--highcharts-background-color)",lineWidth:1,states:{hover:{lineColor:"var(--highcharts-neutral-color-100)",fillColor:"var(--highcharts-highlight-color-20)"}},style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",fontWeight:"bold"}}),el.compose(eu),(0,o.extend)(eu.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:t6,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:eh,init:ep.prototype.init}),z().registerSeriesType("flags",eu);let eg=p();eg.Navigator=eg.Navigator||tr,eg.OrdinalAxis=eg.OrdinalAxis||th,eg.RangeSelector=eg.RangeSelector||tD,eg.Scrollbar=eg.Scrollbar||te,eg.stockChart=tG.stockChart,eg.StockChart=eg.StockChart||eg.stockChart,(0,o.extend)(eg.StockChart,tG),f.compose(eg.Series,eg.Axis,eg.Point),tj.compose(eg.Series,eg.SVGRenderer),eu.compose(eg.Renderer),t0.compose(eg.Series),eg.Navigator.compose(eg.Chart,eg.Axis,eg.Series),eg.OrdinalAxis.compose(eg.Axis,eg.Series,eg.Chart),eg.RangeSelector.compose(eg.Axis,eg.Chart),eg.Scrollbar.compose(eg.Axis),eg.StockChart.compose(eg.Chart,eg.Axis,eg.Series,eg.SVGRenderer);let em=p();export{em as default};
|
|
13
|
+
*/import*as i from"../highcharts.js";import"./broken-axis.js";import"./datagrouping.js";import"./mouse-wheel-zoom.js";let s={};s.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=i.default;var r,a,n,l,h,d,p=s.n(o);let c=i.default.Point;var u=s.n(c);let g=i.default.Series;var m=s.n(g);let{tooltipFormatter:x}=u().prototype;!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||(0,o.isString)(e)||i.setCumulative(e,!1)}),(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],e.series.tooltipOptions.changeDecimals??2))};return(0,o.defined)(e.change)&&s("change"),(0,o.defined)(e.cumulativeSum)&&s("cumulativeSum"),x.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 m()&&(this.options.compare=this.userOptions.compare??t.options.compare)}let s=this.options.compare;("percent"===s||"value"===s||this.options.cumulative)&&(t=new p(this),"percent"===s||"value"===s?t.initCompare(s):t.initCumulative()),this.dataModify=t}function r(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&&(0,o.isArray)(i)&&i.length>=2&&(t=p.getCumulativeExtremes(i)),t&&(e.dataMin=(0,o.arrayMin)(t),e.dataMax=(0,o.arrayMax)(t))}}function a(t,e){this.options.compare=this.userOptions.compare=t,this.update({},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 r=0;r<i-s;r++){let i=t[r];if((0,o.isNumber)(i)&&0!==i&&e[r+s]>=(this.xAxis.min||0)){this.dataModify.compareValue=i;break}}}}function l(t,e){this.setModifier("compare",t,e)}function h(t,e){t=t??!1,this.options.cumulative=this.userOptions.cumulative=t,this.update({},e??!0),this.dataModify?this.dataModify.initCumulative():this.points.forEach(t=>{delete t.cumulativeSum})}function d(t,e){this.setModifier("cumulative",t,e)}t.compose=function(t,p,c){let u=p.prototype,g=c.prototype,m=t.prototype;return m.setCompare||(m.setCompare=a,m.setCumulative=h,(0,o.addEvent)(t,"afterInit",s),(0,o.addEvent)(t,"afterGetExtremes",r),(0,o.addEvent)(t,"afterProcessData",n)),u.setCompare||(u.setCompare=l,u.setModifier=e,u.setCumulative=d,g.tooltipFormatter=i),t};class p{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/Math.abs(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=(0,o.correctFloat)(i.cumulativeSum+t));let s=this.series.points[e],r=s.series.options.cumulativeStart,a=s.x<=this.series.xAxis.max&&s.x>=this.series.xAxis.min;return s&&(!r||a?s.cumulativeSum=t:s.cumulativeSum=void 0),t}return 0}}}t.Additions=p}(r||(r={}));let f=r,b=i.default.Axis;var v=s.n(b);let{isTouchDevice:y}=p(),M=[];function A(){this.navigator&&this.navigator.setBaseSeries(void 0,!1)}function E(){let t,e,i,s=this.legend,o=this.navigator;if(o){t=s&&s.options,e=o.xAxis,i=o.yAxis;let{scrollbarHeight:r,scrollButtonSize:a}=o;this.inverted?(o.left=o.opposite?this.chartWidth-r-o.height:this.spacing[3]+r,o.top=this.plotTop+a):(o.left=e.left??this.plotLeft+a,o.top=o.navigatorOptions.top||this.chartHeight-o.height-r-(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+(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),(e.redraw??!0)&&this.redraw(e.animation))}function S(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this))}function k(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!y&&"x"===this.zooming.type||y&&"x"===this.zooming.pinchType))return!1}function O(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function T(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&((0,o.merge)(!0,this.options.navigator,e),(0,o.merge)(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let C=function(e,i){if((0,o.pushUnique)(M,e)){let s=e.prototype;t=i,s.callbacks.push(O),(0,o.addEvent)(e,"afterAddSeries",A),(0,o.addEvent)(e,"afterDrillUp",A),(0,o.addEvent)(e,"afterSetChartSize",E),(0,o.addEvent)(e,"afterUpdate",w),(0,o.addEvent)(e,"beforeRender",S),(0,o.addEvent)(e,"beforeShowResetZoom",k),(0,o.addEvent)(e,"update",T)}},{composed:B,isTouchDevice:D}=p();function P(){this.navigatorAxis||(this.navigatorAxis=new L(this))}function R(t){let e,i=this.chart,s=i.options,r=s.navigator,a=this.navigatorAxis,n=i.zooming.pinchType,l=s.rangeSelector,h=i.zooming.type;if(this.isXAxis&&(r?.enabled||l?.enabled)){if("y"===h&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===h||D&&"xy"===n)&&this.options.range){let e=a.previousZoom;(0,o.defined)(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 L{static compose(t){(0,o.pushUnique)(B,"Axis.Navigator")&&((0,o.addEvent)(t,"init",P),(0,o.addEvent)(t,"setExtremes",R))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let r=this.axis,a=(r.pointRange||0)/2,n=i??r.translate(t,!0,!r.horiz),l=s??r.translate(e,!0,!r.horiz);return(0,o.defined)(i)||(n=(0,o.correctFloat)(n+a)),(0,o.defined)(s)||(l=(0,o.correctFloat)(l-a)),(0,o.isNumber)(n)&&(0,o.isNumber)(l)||(n=l=void 0),{min:n,max:l}}}let z=i.default.SeriesRegistry;var I=s.n(z);let{seriesTypes:N}=I(),W={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"var(--highcharts-neutral-color-5)",borderColor:"var(--highcharts-neutral-color-40)"},maskFill:"color-mix(in srgb, var(--highcharts-highlight-color-60) 30%, transparent)",outlineColor:"var(--highcharts-neutral-color-40)",outlineWidth:1,series:{type:void 0===N.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:"var(--highcharts-neutral-color-10)",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"var(--highcharts-neutral-color-100)",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}},{defaultOptions:X}=p(),{noop:G}=p(),F={radius:0,scope:"stack",where:void 0},U={"navigator-handle":function(t,e,i,s,r={}){var a,n,l,h,d;let p=r.width?r.width/2:i,c=(0,o.relativeLength)((a=r.borderRadius,!(0,o.isObject)(a)&&(a={radius:a||0}),(0,o.merge)(F,void 0,a)).radius,Math.min(2*p,s));return[["M",-1.5,(s=r.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5],...(n=-p-1,l=2*p+1,h=s,d={r:c},d?.r?function(t,e,i,s,o){let r=o?.r||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}(n,.5,l,h,d):[["M",n,.5],["L",n+l,.5],["L",n+l,.5+h],["L",n,.5+h],["Z"]])]}},Y=i.default.SVGRenderer;var H=s.n(Y);let V={setFixedRange:function(t){let e=this.xAxis[0];(0,o.defined)(e.dataMax)&&(0,o.defined)(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}},{defaultOptions:_}=p(),{composed:j}=p(),{setFixedRange:q}=V;function K(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let Z=function(t,e,i){L.compose(e),(0,o.pushUnique)(j,"Navigator")&&(t.prototype.setFixedRange=q,(0,o.extend)(H().prototype.symbols,U),(0,o.extend)(_,{navigator:W}),(0,o.addEvent)(i,"afterUpdate",K))},{composed:$}=p();!function(t){let e;function i(t){let e=t.options?.min??t.min,i=t.options?.max??t.max;return{axisMin:e,axisMax:i,scrollMin:(0,o.defined)(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??((0,o.defined)(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 r(){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),(0,o.addEvent)(t.scrollbar,"changed",function(e){let s,r,{axisMin:a,axisMax:n,scrollMin:l,scrollMax:h}=i(t),d=t.toPixels(l),p=t.toPixels(h)-d;if((0,o.defined)(a)&&(0,o.defined)(n))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=Math.min(h,t.toValue(d+p*this.to)),r=Math.max(l,t.toValue(d+p*this.from))):(s=Math.min(h,t.toValue(d+p*(1-this.from))),r=Math.max(l,t.toValue(d+p*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes((0,o.correctFloat)(r),(0,o.correctFloat)(s),!0,i,e)}else this.setRange(this.from,this.to)})):t.scrollbar&&(t.scrollbar=t.scrollbar.destroy())}function a(){let t,e,s,{scrollMin:r,scrollMax:a}=i(this),n=this.scrollbar,l=(this.axisTitleMargin||0)+(this.titleOffset||0),h=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(n&&h){if(this.horiz)this.opposite||(h[1]+=l),n.position(this.left,this.top+this.height+2+h[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(h[1]+=d),t=1;else{let e;this.opposite&&(h[0]+=l),e=n.options.opposite?this.left+this.width+2+h[0]-(this.opposite?0:d):this.opposite?0:d,n.position(e,this.top,this.width,this.height),this.opposite&&(h[0]+=d),t=0}if(h[t]+=n.size+(n.options.margin||0),isNaN(r)||isNaN(a)||!(0,o.defined)(this.min)||!(0,o.defined)(this.max)||(0,o.defined)(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(r))/(this.toPixels(a)-this.toPixels(r)),s=(this.toPixels(this.max)-this.toPixels(r))/(this.toPixels(a)-this.toPixels(r)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(e,s):n.setRange(1-s,1-e)}}t.compose=function(t,i){(0,o.pushUnique)($,"Axis.Scrollbar")&&(e=i,(0,o.addEvent)(t,"afterGetOffset",s),(0,o.addEvent)(t,"afterInit",r),(0,o.addEvent)(t,"afterRender",a))}}(a||(a={}));let J=a,Q={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"var(--highcharts-neutral-color-20)",barBorderWidth:0,barBorderColor:"var(--highcharts-neutral-color-20)",buttonArrowColor:"var(--highcharts-neutral-color-80)",buttonBackgroundColor:"var(--highcharts-neutral-color-10)",buttonBorderColor:"var(--highcharts-neutral-color-20)",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"var(--highcharts-neutral-color-20)",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:tt}=p(),{composed:te}=p();class ti{static compose(t){J.compose(t,ti),(0,o.pushUnique)(te,"Scrollbar")&&(0,o.extend)(tt,{scrollbar:Q})}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,r=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this),l=[[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",r],[i.ownerDocument,"mousemove",a],[i.ownerDocument,"mouseup",n],[i,"touchstart",r],[i.ownerDocument,"touchmove",a],[i.ownerDocument,"touchend",n]];l.forEach(function(t){o.addEvent.apply(null,t)}),this._events=l}buttonToMaxClick(t){let e=(this.to-this.from)*(this.options.step??.2);this.updatePosition(this.from+e,this.to+e),(0,o.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=(0,o.correctFloat)(this.to-this.from)*(this.options.step??.2);this.updatePosition((0,o.correctFloat)(this.from-e),(0,o.correctFloat)(this.to-e)),(0,o.fireEvent)(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,(0,o.destroyObjectProperties)(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,o=this.size,r=e.g().add(this.group);if(i.push(r),s.buttonsEnabled){let a=e.rect().addClass("highcharts-scrollbar-button").add(r);this.chart.styledMode||a.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:o,height:o,r:s.buttonBorderRadius},a.strokeWidth()));let n=e.path(ti.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||n.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=(0,o.merge)(Q,tt.scrollbar,e),this.options.margin=this.options.margin??10,this.chart=i,this.size=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",r=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(r[0]+e,r[1]+e),this.hasDragged&&(0,o.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&(0,o.fireEvent)(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:r=0,vertical:a}=this.options,n=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,a?(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+=r):(this.height=s=this.size,this.xOffset=l=o?this.size:0,this.barWidth=i-(o?2*s:0),this.y=this.y+r),this.group[n]({translateX:t,translateY:this.y}),this.track[n]({width:i,height:s}),this.scrollbarButtons[1][n]({translateX:a?0:i-l,translateY:a?s-h:0})}removeEvents(){this._events.forEach(function(t){o.removeEvent.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,r=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=r,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(r),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:-(0,o.crisp)(0,a),y:-(0,o.crisp)(0,a)}),this.scrollbarGroup=t.g().add(r),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(ti.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(-(0,o.crisp)(0,this.scrollbarStrokeWidth),-(0,o.crisp)(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,r=this.options,a=r.vertical,n=r.minWidth,l=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!(0,o.defined)(l))return;let d=l*Math.min(e,1);i=Math.ceil(l*(t=Math.max(t,0))),this.calculatedWidth=s=(0,o.correctFloat)(d-i),s<n&&(i=(l-n+s)*t,s=n);let p=Math.floor(i+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=e,a?(this.scrollbarGroup[h]({translateY:p}),this.scrollbar[h]({height:s}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=p,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:p}),this.scrollbar[h]({width:s}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=p,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return(this.options.liveRedraw??(p().svg&&!p().isTouchDevice&&!this.chart.boosted))||"mouseup"===t||"touchend"===t||!(0,o.defined)(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,r=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>r?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),(0,o.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,(0,o.merge)(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=(0,o.correctFloat)(1-(0,o.correctFloat)(e-t)),e=1),t<0&&(e=(0,o.correctFloat)(e-t),t=0),this.from=t,this.to=e}}ti.defaultOptions=Q;let{defaultOptions:ts}=p(),{isTouchDevice:to}=p();function tr(t,...e){let i=[].filter.call(e,o.isNumber);if(i.length)return Math[t].apply(0,i)}let ta=class t{static compose(e,i,s){C(e,t),Z(e,i,s)}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,r=this.outline.strokeWidth(),a=r/2,n=r%2/2,l=this.scrollButtonSize,h=this.size,d=this.top,p=this.height,c=d-a,u=d+p,g=this.left,m,x;i?(m=d+e+n,e=d+t+n,x=[["M",g+p,d-l-n],["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-a],["L",g+p,e+a])):(g-=l,t+=g+l-n,e+=g+l-n,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-a,c],["L",e+a,c])),this.outline[s]({d:x})}drawMasks(t,e,i,s){let o,r,a,n,l=this.left,h=this.top,d=this.height;i?(a=[l,l,l],n=[h,h+t,h+e],r=[d,d,d],o=[t,e-t,this.size-e]):(a=[l,l+t,l+e],n=[h,h,h],r=[t,e-t,this.size-e],o=[d,d,d]),this.shades.forEach((t,e)=>{t[s]({x:a[e],y:n[e],width:r[e],height:o[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,o=s.inverted,r=s.renderer,a={cursor:o?"ns-resize":"ew-resize"},n=t.navigatorGroup??(t.navigatorGroup=r.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,o)=>{let l=t.shades[o]??(t.shades[o]=r.rect().addClass("highcharts-navigator-mask"+(1===o?"-inside":"-outside")).add(n));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===o&&l.css(a))}),t.outline||(t.outline=r.path().addClass("highcharts-navigator-outline").add(n)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=!1,o=e.handles,{height:l,width:h}=o;[0,1].forEach(e=>{let d=o.symbols[e];(i=i||t.handles[e]?.symbolName!==d)&&(t.handles[e]?.destroy(),t.handles[e]=r.symbol(d,-h/2-1,0,h,l,o),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(n)),s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-h/2),rotationOriginY:(l+h)/2}),s.styledMode||t.handles[e].attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.lineWidth,width:o.width,height:o.height,x:-h/2-1,y:0}).css(a)}),i&&(t.partsEventsToUnbind?.forEach(t=>{t()}),t.partsEventsToUnbind=[...t.getPartsEvents("mousedown"),...t.getPartsEvents("touchstart")])}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if((0,o.merge)(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),(0,o.defined)(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=>{(0,o.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push((0,o.addEvent)(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 r=this.chart,a=this.xAxis,n=a.pointRange||0,l=a.navigatorAxis.fake?r.xAxis[0]:a,h=this.navigatorEnabled,d=this.rendered,p=r.inverted,c=r.xAxis[0].minRange,u=r.xAxis[0].options.maxRange,g=this.scrollButtonSize,m,x,f,b=this.scrollbarHeight,v,y;if(this.hasDragged&&!(0,o.defined)(i))return;if(this.isDirty&&this.renderElements(),t=(0,o.correctFloat)(t-n/2),e=(0,o.correctFloat)(e+n/2),!(0,o.isNumber)(t)||!(0,o.isNumber)(e))if(!d)return;else i=0,s=a.width??l.width;this.left=a.left??r.plotLeft+g+(p?r.plotWidth:0);let M=this.size=v=a.len??(p?r.plotHeight:r.plotWidth)-2*g;m=p?b:v+2*g,i=i??a.toPixels(t,!0),s=s??a.toPixels(e,!0),(0,o.isNumber)(i)&&1/0!==Math.abs(i)||(i=0,s=m);let A=a.toValue(i,!0),E=a.toValue(s,!0),w=Math.abs((0,o.correctFloat)(E-A));(0,o.defined)(c)&&w<c?this.grabbedLeft?i=a.toPixels(E-c-n,!0):this.grabbedRight&&(s=a.toPixels(A+c+n,!0)):(0,o.defined)(u)&&(0,o.correctFloat)(w-n)>u&&(this.grabbedLeft?i=a.toPixels(E-u-n,!0):this.grabbedRight&&(s=a.toPixels(A+u+n,!0))),this.zoomedMax=(0,o.clamp)(Math.max(i,s),0,M),this.zoomedMin=(0,o.clamp)(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);let S=Math.round(this.zoomedMin);h&&(this.navigatorGroup.attr({visibility:"inherit"}),y=d&&!this.hasDragged?"animate":"attr",this.drawMasks(S,M,p,y),this.drawOutline(S,M,p,y),this.navigatorOptions.handles?.enabled&&(this.drawHandle(S,0,p,y),this.drawHandle(M,1,p,y))),this.scrollbar&&(p?(f=this.top-g,x=this.left-b+(h||!l.opposite?0:(l.titleOffset||0)+l.axisTitleMargin),b=v+2*g):(f=this.top+(h?this.height:-b),x=this.left-g),this.scrollbar.position(x,f,m,b),this.scrollbar.setRange(this.zoomedMin/(v||1),this.zoomedMax/(v||1))),this.rendered=!0,this.isDirty=!1,(0,o.fireEvent)(this,"afterRender")}addMouseEvents(){let t,e,i=this,s=i.chart,r=s.container,a=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},a.push((0,o.addEvent)(s.renderTo,"mousemove",t),(0,o.addEvent)(r.ownerDocument,"mouseup",e),(0,o.addEvent)(s.renderTo,"touchmove",t),(0,o.addEvent)(r.ownerDocument,"touchend",e)),i.eventsToUnbind=a,i.series&&i.series[0]&&a.push((0,o.addEvent)(i.series[0].xAxis,"foundExtremes",function(){s.navigator?.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(s=>{e[s].forEach(function(r,a){i.push((0,o.addEvent)(r.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,r=this.zoomedMin,a=this.size,n=this.range,l=this.left,h=t.chartX,d,p,c,u;i.inverted&&(h=t.chartY,l=this.top),1===e?(this.grabbedCenter=h,this.fixedWidth=n,this.dragOffset=h-r):(u=h-l-n/2,0===e?u=Math.max(0,u):2===e&&u+n>=a&&(u=a-n,this.reversedExtremes?(u-=n,p=this.getUnionExtremes()?.dataMin):d=this.getUnionExtremes()?.dataMax),u!==r&&(this.fixedWidth=n,c=s.navigatorAxis.toFixedRange(u,u+n,p,d),(0,o.defined)(c.min)&&(0,o.fireEvent)(this,"setRange",{min:Math.min(c.min,c.max),max:Math.max(c.min,c.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,r=e.dragOffset,a=i.inverted,n=e.left,l;(!t.touches||0!==t.touches[0].pageX)&&(l=(t=i.pointer?.normalize(t)||t).chartX,a&&(n=e.top,l=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,l-n,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,l-n)):e.grabbedCenter&&r&&(e.hasDragged=!0,l<r?l=r:l>s+r-o&&(l=s+r-o),e.render(0,0,l-r,l-r+o)),e.hasDragged&&(e.scrollbarOptions?.liveRedraw??(!to&&!this.chart.boosted))&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,r,a,n,l=this.chart,h=this.xAxis,d=this.scrollbar,p=t.DOMEvent||t,c=l.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(a=this.fixedExtreme),this.zoomedMax===this.size&&(a=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?s.dataMax:s.dataMin),n=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,a),(0,o.defined)(n.min)&&(0,o.fireEvent)(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:p}})),"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&&(0,o.isNumber)(this.zoomedMin)&&(0,o.isNumber)(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,u),this.outline&&this.drawOutline(i,e,c,u),this.navigatorOptions.handles?.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,u),this.drawHandle(e,1,c,u)))}removeEvents(){this.eventsToUnbind?.forEach(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){(0,o.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&(0,o.removeEvent)(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,r=e.scrollbar||{},a=r.enabled,n=s&&i.height||0,l=a&&r.height||0,h=r.buttonsEnabled&&l||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=l,this.scrollButtonSize=h,this.scrollbarEnabled=a,this.navigatorEnabled=!!s,this.navigatorOptions=i,this.scrollbarOptions=r,this.setOpposite();let d=this,p=d.baseSeries,c=t.xAxis.length,u=t.yAxis.length,g=p&&p[0]&&p[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,d.navigatorEnabled){let e=this.getXAxisOffsets();d.xAxis=new(v())(t,(0,o.merge)({breaks:g.options.breaks,ordinal:g.options.ordinal,overscroll:g.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:c,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:g.options.ordinal?0:g.options.minPadding,maxPadding:g.options.ordinal?0:g.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:n}:{offsets:e,height:n}),"xAxis"),d.yAxis=new(v())(t,(0,o.merge)(i.yAxis,{alignTicks:!1,offset:0,index:u,isInternal:!0,reversed:(i.yAxis&&i.yAxis.reversed)??(t.yAxis[0]&&t.yAxis[0].reversed)??!1,zoomEnabled:!1},t.inverted?{width:n}:{height:n}),"yAxis"),d.xAxis.clippable=!1,d.yAxis.clippable=!1,p||i.series?.data||i.series?.dataTable?d.updateNavigatorSeries(!1):0===t.series.length&&(d.unbindRedraw=(0,o.addEvent)(t,"beforeRedraw",function(){t.series.length>0&&!d.series&&(d.setBaseSeries(),d.unbindRedraw?.())})),d.reversedExtremes=t.inverted&&!d.xAxis.reversed||!t.inverted&&d.xAxis.reversed,d.renderElements(),d.addMouseEvents()}else d.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let s=t.xAxis[0],o=s.getExtremes(),r=s.len-2*h,a=tr("min",s.options.min,o.dataMin),n=tr("max",s.options.max,o.dataMax)-a;return i?e*n/r+a:r*(e-a)/n},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},d.xAxis.navigatorAxis.axis=d.xAxis,d.xAxis.navigatorAxis.toFixedRange=L.prototype.toFixedRange.bind(d.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=(0,o.merge)(t.options.scrollbar,{vertical:t.inverted});(0,o.isNumber)(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=d.scrollbar=new ti(t.renderer,e,t),(0,o.addEvent)(d.scrollbar,"changed",function(t){let e=d.size,i=e*this.to,s=e*this.from;d.hasDragged=d.scrollbar?.hasDragged,d.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){d.onMouseUp(t)})})}d.addBaseSeriesEvents(),d.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=t.opposite??!!(!e&&i.inverted)}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.chart.time,o=this.xAxis,r=o.options,a=i.options;return t&&null===i.dataMin||(e={dataMin:s.parse(r?.min)??tr("min",s.parse(a.min),i.dataMin,o.dataMin,o.min),dataMax:s.parse(r?.max)??tr("max",s.parse(a.max),i.dataMax,o.dataMax,o.max)}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options.navigator?.baseSeries||(i.series.length?(0,o.find)(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,r=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!(e&&0>r.indexOf(e))||(e&&((0,o.removeEvent)(e,"updatedData",i.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),l,h,d=i.navigatorOptions.series,p;if(r&&r.length&&r.forEach(t=>{let c=t.navigatorSeries,u=(0,o.extend)({color:t.color,visible:t.visible},(0,o.isArray)(d)?ts.navigator.series:d);if(c&&!1===i.navigatorOptions.adaptToUpdatedData)return;a.name="Navigator "+r.length,p=(l=t.options||{}).navigatorOptions||{},u.dataLabels=(0,o.splat)(u.dataLabels),(h=(0,o.merge)(l,a,u,p)).pointRange=u.pointRange??p.pointRange??ts.plotOptions[h.type||"line"]?.pointRange;let g=p.data||u.data,m=p.dataTable||u.dataTable;i.hasNavigatorData=i.hasNavigatorData||!!g||!!m,h.data=g||l.data?.slice(0),h.dataTable=m||l.dataTable,c&&c.options?c.update(h,e):(t.navigatorSeries=s.initSeries(h),(0,o.fireEvent)(t.navigatorSeries,"afterUpdate"),t.navigatorSeries.baseSeries=t,n.push(t.navigatorSeries))}),(d?.data||d?.dataTable)&&!(r&&r.length)||(0,o.isArray)(d)){let t=s.options.colors||[];i.hasNavigatorData=!1,(d=(0,o.splat)(d)).forEach((e,r)=>{a.name="Navigator "+(n.length+1),(h=(0,o.merge)(ts.navigator?.series,{color:s.series[r]&&!s.series[r].options.isInternal&&s.series[r].color||t[r]||t[0]},a,e)).data=e.data,h.dataTable=e.dataTable,(h.data||h.dataTable)&&(i.hasNavigatorData=!0,n.push(s.initSeries(h)))})}t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push((0,o.addEvent)(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push((0,o.addEvent)(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push((0,o.addEvent)(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push((0,o.addEvent)(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push((0,o.addEvent)(i,"remove",function(){e&&(0,o.erase)(e,i),this.navigatorSeries&&t.series&&((0,o.erase)(t.series,this.navigatorSeries),(0,o.defined)(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(),r=s.min,a=s.max,n=s.dataMin,l=s.dataMax,h=a-r,d=i?.stickToMin,p=i?.stickToMax,c=this.ordinal?.convertOverscroll(this.options.overscroll)??0,u=i.series&&i.series[0],g=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(t=(e=n)+h),p&&(t=l+c,d||(e=Math.max(n,t-h,i.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),g&&(d||p)&&(0,o.isNumber)(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=(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||this.options.dataTable,!1,void 0,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,r=s.max,a=s.min,n=s.options.range;return!!((0,o.isNumber)(r)&&(0,o.isNumber)(a))&&(n&&r-i>0?r-i<n:a<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push((0,o.addEvent)(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)}),(0,o.addEvent)(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)}),(0,o.addEvent)(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&((0,o.erase)(this.chart.xAxis,this.xAxis),(0,o.erase)(this.chart.axes,this.xAxis)),this.yAxis&&((0,o.erase)(this.chart.yAxis,this.yAxis),(0,o.erase)(this.chart.axes,this.yAxis)),(0,o.destroyObjectProperties)(this.series||[]),["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=>{(0,o.destroyObjectProperties)(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}},{setLength:tn,splice:tl}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[s?"subarray":"slice"](e,e+i),n=new r(t.length-i+o.length);return n.set(t.subarray(0,e),0),n.set(o,e),n.set(t.subarray(e+i),e+o.length),{removed:a,array:n}}},th=class{constructor(t={}){this.isDataTable=!0;let e=this.isPollutingKey(t.id)?void 0:t.id;this.autoId=!e,this.columns={},this.id=e||(0,o.uniqueKey)(),this.rowCount=0,this.versionTag=(0,o.uniqueKey)();let i=0;(0,o.objectEach)(t.columns||{},(t,e)=>{"__proto__"!==e&&"constructor"!==e&&(this.columns[e]=t.slice(),i=Math.max(i,t.length))}),this.applyRowCount(i)}isPollutingKey(t){return"__proto__"===t||"constructor"===t}applyRowCount(t){this.rowCount=t,(0,o.objectEach)(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=tn(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;(0,o.objectEach)(this.columns,(s,o)=>{this.columns[o]=tl(s,t,e).array,i=s.length}),this.rowCount=i}(0,o.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,o.uniqueKey)()}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),{})}getRowObject(t,e){let i={},s=this.columns;for(let o of(e??(e=Object.keys(this.columns)),e))i[o]=s[o]?.[t];return i}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;(0,o.objectEach)(t,(t,e)=>{"__proto__"!==e&&"constructor"!==e&&(this.columns[e]=t.slice(),s=t.length)}),this.applyRowCount(s),i?.silent||((0,o.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,o.uniqueKey)())}setRow(t,e=this.rowCount,i,s){let{columns:r}=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];this.isPollutingKey(e)||Object.hasOwnProperty.call(r,e)||(r[e]=Array(this.rowCount))}(0,o.objectEach)(r,(s,o)=>{s&&(i?s=tl(s,e,0,!0,[t[o]]).array:s[e]=o in t?t[o]:s[e],r[o]=s)}),this.applyRowCount(Math.max(a,this.rowCount)),s?.silent||((0,o.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,o.uniqueKey)())}getModified(){return this.modified||this}};!function(t){function e(t,i,s,r,a=[],n=0,l){let h={},d=this.options.tickPixelInterval,p=this.chart.time,c=[],u,g,m,x,f,b=0,v=[],y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!a||a.length<3||void 0===i)return p.getTimeTicks.apply(p,arguments);let M=a.length;for(u=0;u<M;u++){if(f=u&&a[u-1]>s,a[u]<i&&(b=u),u===M-1||a[u+1]-a[u]>5*n||f){if(a[u]>y){for(g=p.getTimeTicks(t,a[b],a[u],r);g.length&&g[0]<=y;)g.shift();g.length&&(y=g[g.length-1]),c.push(v.length),v=v.concat(g)}b=u+1}if(f)break}if(g){if(x=g.info,l&&x.unitRange<=o.timeUnits.hour){for(u=v.length-1,b=1;b<u;b++)p.dateFormat("%d",v[b])!==p.dateFormat("%d",v[b-1])&&(h[v[b]]="day",m=!0);m&&(h[v[0]]="day"),x.boundaryTicks=h}x.segmentStarts=c,v.info=x}else(0,o.error)(12,!1,this.chart);if(l&&(0,o.defined)(d)){let t=v.length,e=[],i=[],o,r,a,n,l,p=t;for(;p--;)r=this.translate(v[p]),a&&(i[p]=a-r),e[p]=a=r;for(i.sort((t,e)=>t-e),(n=i[Math.floor(i.length/2)])<.6*d&&(n=null),p=v[t-1]>s?t-1:t,a=void 0;p--;)l=Math.abs(a-(r=e[p])),a&&l<.8*d&&(null===n||l<.8*n)?(h[v[p]]&&!h[v[p+1]]?(o=p+1,a=r):o=p,v.splice(o,1)):a=r}return v}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,r=e.getExtendedPositions();if(r?.length){let a=(0,o.correctFloat)((t-i)*s+this.minPixelPadding),n=(0,o.correctFloat)(e.getIndexOfPoint(a,r)),l=(0,o.correctFloat)(n%1);if(n>=0&&n<=r.length-1){let t=r[Math.floor(n)],e=r[Math.ceil(n)];return r[Math.floor(n)]+l*(e-t)}}return t}function r(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&&(0,o.defined)(e.overscroll)&&0!==e.overscroll&&(0,o.isNumber)(this.max)&&(0,o.isNumber)(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.isFullRange=(0,o.defined)(this.dataMin)&&(0,o.defined)(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&&(0,o.defined)(this.userMin)&&t?.trigger!=="mousewheel"&&(this.min+=i)}}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,r=this.options.chart.panning,a=!1;if(r?.type!=="y"&&e.options.ordinal&&e.series.length&&(!t.touches||t.touches.length<=1)){let n,l,h=this.mouseDownX,d=e.getExtremes(),p=d.dataMin,c=d.dataMax,u=d.min,g=d.max,m=this.hoverPoints,x=e.closestPointRange||e.ordinal?.overscrollPointsRange,f=Math.round((h-s)/(e.translationSlope*(e.ordinal.slope||x))),b=e.ordinal.getExtendedPositions(),v={ordinal:{positions:b,extendedOrdinalPositions:b}},y=e.index2val,M=e.val2lin;if(u<=p&&f<=0||g>=c+i&&f>=0)if(!(r&&/y/.test(r.type)))return void t.preventDefault();else a=!0;else v.ordinal.positions?Math.abs(f)>1&&(m&&m.forEach(function(t){t.setState()}),l=v.ordinal.positions,i&&(l=v.ordinal.positions=l.concat(e.ordinal.getOverscrollPositions())),c>l[l.length-1]&&l.push(c),this.setFixedRange(g-u),(n=e.navigatorAxis.toFixedRange(void 0,void 0,y.apply(v,[M.apply(v,[u,!0])+f]),y.apply(v,[M.apply(v,[g,!0])+f]))).min>=Math.min(l[0],u)&&n.max<=Math.max(l[l.length-1],g)+i&&e.setExtremes(n.min,n.max,!0,!1,{trigger:"pan"}),this.mouseDownX=s,(0,o.css)(this.container,{cursor:"move"})):a=!0}else a=!0;a||r&&/y/.test(r.type)?i&&(0,o.isNumber)(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 c(t,e){let i,s=this.ordinal,o=s.positions,a=s.slope,n;if(!o)return t;let l=o.length;if(o[0]<=t&&o[l-1]>=t)i=r(o,t);else{if(n=s.getExtendedPositions?.(),!n?.length)return t;let l=n.length;a||(a=(n[l-1]-n[0])/l);let h=r(n,o[0]);if(t>=n[0]&&t<=n[l-1])i=r(n,t)-h;else{if(!e)return t;i=t<n[0]?-h-(n[0]-t)/a:(t-n[l-1])/a+l-h}}return e?i:a*(i||0)+s.offset}t.compose=function(t,r,p){let u=t.prototype;return u.ordinal2lin||(u.getTimeTicks=e,u.index2val=i,u.lin2val=s,u.val2lin=c,u.ordinal2lin=u.val2lin,(0,o.addEvent)(t,"afterInit",a),(0,o.addEvent)(t,"foundExtremes",n),(0,o.addEvent)(t,"initialAxisTranslation",l),(0,o.addEvent)(p,"pan",h),(0,o.addEvent)(p,"touchpan",h),(0,o.addEvent)(r,"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,r=t.brokenAxis?.hasBreaks,a=t.options.ordinal,n=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(a||r){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||r)&&(l=(m=m.concat(s)).length,m.sort(function(t,e){return t-e}),x=Math.min(x,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-n-m[l-1]>d)&&(f=!0)}else t.options.overscroll&&(2===l?x=m[1]-m[0]:1===l?(x=n,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=t.closestPointRange??e.overscrollPointsRange,e.positions=t.ordinal.slope=e.offset=void 0)}t.isOrdinal=a&&f,e.groupIntervalFactor=null}static findIndexOf(t,e,i){let s=0,o=t.length-1,r;for(;s<o;)t[r=Math.ceil((s+o)/2)]<=e?s=r:o=r-1;return t[s]===e||i?s:-1}getExtendedPositions(t=!0){let e=this,i=e.axis,s=i.constructor.prototype,o=i.chart,r=i.series.reduce((t,e)=>{let i=e.currentDataGrouping;return t+(i?i.count+i.unitName:"raw")},""),a=t?i.ordinal.convertOverscroll(i.options.overscroll):0,n=i.getExtremes(),l,h,d=e.index;return d||(d=e.index={}),!d[r]&&((l={series:[],chart:o,forceOrdinal:!1,getExtremes:function(){return{min:n.dataMin,max:n.dataMax+a}},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:p().noop,getColumn:i.getColumn,getX:p().noop,applyGrouping:i.applyGrouping,getProcessedData:i.getProcessedData,reserveSpace:i.reserveSpace,visible:i.visible};let s=i.getColumn("x"),r=(Array.isArray(s)?s:Array.from(s)).concat(t?e.getOverscrollPositions():[]);h.dataTable=new th({columns:{x:r}}),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[r]=l.ordinal.positions)),d[r]}getGroupIntervalFactor(t,e,i){let s=i.getColumn("x",!0),o=s.length,r=[],a,n,l=this.groupIntervalFactor;if(!l){for(n=0;n<o-1;n++)r[n]=s[n+1]-s[n];r.sort(function(t,e){return t-e}),a=r[Math.floor(o/2)],t=Math.max(t,s[0]),e=Math.min(e,s[o-1]),this.groupIntervalFactor=l=o*a/(e-t)}return l}getIndexOfPoint(t,e){let i=this.axis,s=i.min,a=i.minPixelPadding,n=r(e,s),l=i.translationSlope*(this.slope||i.closestPointRange||this.overscrollPointsRange);return n+(0,o.correctFloat)((t-a)/l)}getOverscrollPositions(){let t=this.axis,e=this.convertOverscroll(t.options.overscroll),i=this.overscrollPointsRange,s=[],r=t.dataMax;if((0,o.defined)(i))for(;r<t.dataMax+e;)s.push(r+=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(e.originalOrdinalRange??((0,o.defined)(i.dataMax)&&(0,o.defined)(i.dataMin)?i.dataMax-i.dataMin:0))*t};if((0,o.isString)(t)){let e=parseInt(t,10);if(!1===i.isFullRange&&(0,o.isNumber)(i.min)&&(0,o.isNumber)(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}}}(n||(n={}));let td=n,tp={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"}},tc={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:"var(--highcharts-highlight-color-80)",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},{defaultOptions:tu}=p(),{composed:tg}=p(),tm=[];function tx(){let t,e,i=this.range,s=i.type,r=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 r=a.makeTime.apply(a,o),n=a.toParts(r);return"month"===s&&i[1]===n[1]&&1===Math.abs(e)&&(o[0]=i[0],o[1]=i[1],o[2]=0),(r=a.makeTime.apply(a,o))-t};(0,o.isNumber)(i)?(t=r-i,e=i):i&&(t=r+n(r,-(i.count||1)),this.chart&&this.chart.setFixedRange(r-t));let l=this.dataMin??5e-324;return(0,o.isNumber)(t)||(t=l),t<=l&&(t=l,void 0===e&&(e=n(t,i.count)),this.newMax=Math.min(t+e,this.dataMax??Number.MAX_VALUE)),(0,o.isNumber)(r)?!(0,o.isNumber)(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function tf(){this.rangeSelector?.redrawElements()}function tb(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new e(this))}function tv(){let t=this.rangeSelector;if(t){(0,o.isNumber)(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 ty(){let t,e=this.rangeSelector;if(!e)return;let i=this.xAxis[0].getExtremes(),s=this.legend,r=e&&e.options.verticalAlign;(0,o.isNumber)(i.min)&&e.render(i.min,i.max),s?.display&&"top"===r&&r===s.options.verticalAlign&&(t=(0,o.merge)(this.spacingBox),"vertical"===s.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),s.group.placed=!1,s.align(t))}function tM(){for(let t=0,e=tm.length;t<e;++t){let e=tm[t];if(e[0]===this){e[1].forEach(t=>t()),tm.splice(t,1);return}}}function tA(){let t=this.rangeSelector;if(t?.options?.enabled){let{min:e,max:i}=this.xAxis[0].getExtremes();(0,o.isNumber)(e)&&t.inputGroup&&t.inputGroup.getBBox().width<20&&t.render(e,i);let s=t.getHeight(),r=t.options.verticalAlign;t.options.floating||("bottom"===r?this.marginBottom+=s:"middle"!==r&&(this.plotTop+=s))}}function tE(t){let i=t.options.rangeSelector,s=this.extraBottomMargin,r=this.extraTopMargin,a=this.rangeSelector;if(i&&i.enabled&&!(0,o.defined)(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new e(this)),this.extraBottomMargin=void 0,this.extraTopMargin=void 0,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!==r)&&(this.isDirtyBox=!0)}}let tw=function(t,i,s){if(e=s,(0,o.pushUnique)(tg,"RangeSelector")){let e=i.prototype;t.prototype.minFromRange=tx,(0,o.addEvent)(i,"afterGetContainer",tb),(0,o.addEvent)(i,"beforeRender",tv),(0,o.addEvent)(i,"destroy",tM),(0,o.addEvent)(i,"getMargins",tA),(0,o.addEvent)(i,"redraw",ty),(0,o.addEvent)(i,"update",tE),(0,o.addEvent)(i,"beforeRedraw",tf),e.callbacks.push(ty),(0,o.extend)(tu,{rangeSelector:tc}),(0,o.extend)(tu.lang,tp)}},tS=i.default.SVGElement;var tk=s.n(tS);let tO=i.default.Templating;var tT=s.n(tO);let{defaultOptions:tC}=p(),{format:tB}=tT();function tD(t){let e=e=>RegExp(`%[[a-zA-Z]*${e}`).test(t);if((0,o.isString)(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";let i=(0,o.isString)(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,s=(0,o.isString)(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 tP{static compose(t,e){tw(t,e,tP)}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],r=i.xAxis[0],a=i.scroller&&i.scroller.getUnionExtremes()||r||{},n=s.type,l=s.dataGrouping,h=a.dataMin,d=a.dataMax,p,c=(0,o.isNumber)(r?.max)?Math.round(Math.min(r.max,d??r.max)):void 0,u,g=s._range,m,x,f,b=!0;if(null!==h&&null!==d){if(this.setSelected(t),l&&(this.forcedDataGrouping=!0,v().prototype.setDataGrouping.call(r||{chart:this.chart},l,!1),this.frozenStates=s.preserveDataGrouping),"month"===n||"year"===n)r?(x={range:s,max:c,chart:i,dataMin:h,dataMax:d},p=r.minFromRange.call(x),(0,o.isNumber)(x.newMax)&&(c=x.newMax),b=!1):g=s;else if(g)(0,o.isNumber)(c)&&(c=Math.min((p=Math.max(c-g,h))+g,d),b=!1);else if("ytd"===n)if(r)!r.hasData()||(0,o.isNumber)(d)&&(0,o.isNumber)(h)||(h=Number.MAX_VALUE,d=-Number.MAX_VALUE,i.series.forEach(t=>{let e=t.getColumn("x");e.length&&(h=Math.min(e[0],h),d=Math.max(e[e.length-1],d))}),e=!1),(0,o.isNumber)(d)&&(0,o.isNumber)(h)&&(p=m=(f=this.getYTDExtremes(d,h)).min,c=f.max);else{this.deferredYTDClick=t;return}else"all"===n&&r&&(i.navigator&&i.navigator.baseSeries[0]&&(i.navigator.baseSeries[0].xAxis.options.range=void 0),p=h,c=d);if(b&&s._offsetMin&&(0,o.defined)(p)&&(p+=s._offsetMin),s._offsetMax&&(0,o.defined)(c)&&(c+=s._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),r)((0,o.isNumber)(p)||(0,o.isNumber)(c))&&(r.setExtremes(p,c,e??!0,void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:s}),i.setFixedRange(s._range));else{u=(0,o.splat)(i.options.xAxis||{})[0];let t=(0,o.addEvent)(i,"afterCreateAxes",function(){let t=i.xAxis[0];t.range=t.options.range=g,t.min=t.options.min=m});(0,o.addEvent)(i,"load",function(){let e=i.xAxis[0];i.setFixedRange(s._range),e.options.range=u.range,e.options.min=u.min,t()})}(0,o.fireEvent)(this,"afterBtnClick")}}setSelected(t){this.selected=this.options.selected=t}init(t){let e=this,i=t.options.rangeSelector,s=t.options.lang,r=i.buttons,a=i.selected,n=function(){let t=e.minInput,i=e.maxInput;t&&t.blur&&(0,o.fireEvent)(t,"blur"),i&&i.blur&&(0,o.fireEvent)(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=r.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=tB(t.text,{count:t.count||1}),t.title=tB(t.title,{count:t.count||1}),t)),this.eventsToUnbind=[],this.eventsToUnbind.push((0,o.addEvent)(t.container,"mousedown",n)),this.eventsToUnbind.push((0,o.addEvent)(t,"resize",n)),r.forEach(e.computeButtonRange),void 0!==a&&r[a]&&this.clickButton(a,!1),this.eventsToUnbind.push((0,o.addEvent)(t,"load",function(){t.xAxis&&t.xAxis[0]&&(0,o.addEvent)(t.xAxis[0],"setExtremes",function(i){(0,o.isNumber)(this.max)&&(0,o.isNumber)(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,r=e.xAxis[0],a=Math.round(r.max-r.min),n=!r.hasVisibleSeries,l=e.scroller&&e.scroller.getUnionExtremes()||r,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=(0,o.isNumber)(g),b=t.buttons,v=!1,y=null;t.buttonOptions.forEach((e,i)=>{let s=e._range,o=e.type,l=e.count||1,p=e._offsetMax-e._offsetMin,b=i===g,M=s>d-h,A=s<r.minRange,E=!1,w=s===a;if(b&&M&&(v=!0),r.isOrdinal&&r.ordinal?.positions&&s&&a<s){let t=r.ordinal.positions;t[t.length-1]-t[0]>s&&(w=!0)}else("month"===o||"year"===o)&&a+36e5>=864e5*({month:28,year:365})[o]*l-p&&a-36e5<=864e5*({month:31,year:366})[o]*l+p?w=!0:"ytd"===o?(w=u-c+p===a,E=!b):"all"===o&&(w=r.max-r.min>=d-h);let S=!m&&!(v&&"all"===o)&&(M||A||n),k=v&&"all"===o||!E&&w||b&&t.frozenStates;S?x[i]=3:k&&(!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:(tC.lang.rangeSelectorZoom||"")+" ▾"})));for(let e=0;e<x.length;e++){let r=x[e],a=b[e];if(a.state!==r&&(a.setState(r),i)){i.options[e+1].disabled=3===r,2===r&&(s&&(s.setState(2),s.attr({text:t.buttonOptions[e].text+" ▾"})),i.selectedIndex=e+1);let a=s.getBBox();(0,o.css)(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=t.offsetMin??0,t._offsetMax=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,r="min"===t?this.minInput:this.maxInput,a="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",tD(i.inputDateFormat||"%e %b %Y"));let t=r.getAttribute("data-hc-time"),n=(0,o.defined)(t)?Number(t):void 0;if((0,o.defined)(e)){let t=n;(0,o.defined)(t)&&r.setAttribute("data-hc-time-previous",t),r.setAttribute("data-hc-time",e),n=e}r.value=s.dateFormat(this.inputTypeFormats[r.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 r=o.dateFormat(t,e);s.min!==r&&(s.min=r);let a=o.dateFormat(t,i);s.max!==a&&(s.max=a)}}}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:r=0}=this.inputGroup,{x:a=0,width:n=0,height:l=0}=e,{inputBoxWidth:h}=this.options;(0,o.css)(i,{width:t?n+(h?-2:20)+"px":"auto",height:l-2+"px",border:"2px solid silver"}),t&&h?(0,o.css)(i,{left:s+a+"px",top:r+"px"}):(0,o.css)(i,{left:Math.min(Math.round(a+s-(i.offsetWidth-n)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:r-(i.offsetHeight-l)/2+"px"})}}hideInput(t){let e="min"===t?this.minInput:this.maxInput;e&&(0,o.css)(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,r=this,a=e.renderer.style||{},n=e.renderer,l=e.options.rangeSelector,h=tC.lang,d="min"===t;function c(t){let{maxInput:i,minInput:s}=r,a=e.xAxis[0],n=e.scroller?.getUnionExtremes()||a,l=n.dataMin,h=n.dataMax,p=e.xAxis[0].getExtremes()[t],c=r.getInputValue(t);(0,o.isNumber)(c)&&c!==p&&(d&&i&&(0,o.isNumber)(l)?c>Number(i.getAttribute("data-hc-time"))?c=void 0:c<l&&(c=l):s&&(0,o.isNumber)(h)&&(c<Number(s.getAttribute("data-hc-time"))?c=void 0:c>h&&(c=h)),void 0!==c&&a.setExtremes(d?c:a.min,d?a.max:c,void 0,void 0,{trigger:"rangeSelectorInput"}))}let u=h[d?"rangeSelectorFrom":"rangeSelectorTo"]||"",g=n.label(u,0).addClass("highcharts-range-label").attr({padding:2*!!u,height:u?l.inputBoxHeight:0}).add(s),m=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:l.inputBoxWidth,height:l.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||m.attr({stroke:l.inputBoxBorderColor,"stroke-width":1}),m.add(s);let x=(0,o.createElement)("input",{name:t,className:"highcharts-range-selector"},void 0,i);x.setAttribute("type",tD(l.inputDateFormat||"%e %b %Y")),e.styledMode||(g.css((0,o.merge)(a,l.labelStyle)),m.css((0,o.merge)({color:"var(--highcharts-neutral-color-80)"},a,l.inputStyle)),(0,o.css)(x,(0,o.extend)({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"},l.inputStyle))),x.onfocus=()=>{r.showInput(t)},x.onblur=()=>{x===p().doc.activeElement&&c(t),r.hideInput(t),r.setInputValue(t),x.blur()};let f=!1;return x.onchange=()=>{f||(c(t),r.hideInput(t),x.blur())},x.onkeypress=e=>{13===e.keyCode&&c(t)},x.onkeydown=e=>{f=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&c(t)},x.onkeyup=()=>{f=!1},{dateBox:m,input:x,label:g}}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,r=s.rangeSelector,a=r.inputEnabled,n=(s.chart.style?.zIndex??0)+1;!1!==r.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=(0,o.createElement)("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 r=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if((0,o.defined)(r.dataMin)&&(0,o.defined)(r.dataMax)){let t=i.xAxis[0].minRange||0;this.setInputExtremes("min",r.dataMin,Math.min(r.dataMax,this.getInputValue("max"))-t),this.setInputExtremes("max",Math.max(r.dataMin,this.getInputValue("min"))+t,r.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=tC.lang,r=e.renderer,a=(0,o.merge)(i.buttonTheme),n=a&&a.states;delete a.width,delete a.states,this.buttonGroup=r.g("range-selector-buttons").add(this.group);let l=this.dropdown=(0,o.createElement)("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),h=e.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=r.button("",0,0,()=>{},(0,o.merge)(a,{"stroke-width":a["stroke-width"]??0,width:"auto",paddingLeft:i.buttonTheme.paddingLeft??h?.padding??8,paddingRight:i.buttonTheme.paddingRight??h?.padding??8}),n&&n.hover,n&&n.select,n&&n.disabled).hide().add(this.group),(0,o.addEvent)(l,"touchstart",()=>{l.style.fontSize="16px"});let d=p().isMS?"mouseover":"mouseenter",c=p().isMS?"mouseout":"mouseleave";(0,o.addEvent)(l,d,()=>{(0,o.fireEvent)(this.dropdownLabel.element,d)}),(0,o.addEvent)(l,c,()=>{(0,o.fireEvent)(this.dropdownLabel.element,c)}),(0,o.addEvent)(l,"change",()=>{let t=this.buttons[l.selectedIndex-1];(0,o.fireEvent)(t.element,"click")}),this.zoomText=r.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)),(0,o.createElement)("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,l),this.createButtons()}createButtons(){let{options:t}=this,e=(0,o.merge)(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:r,buttons:a,chart:n,options:l}=this,h=n.renderer,d=(0,o.merge)(l.buttonTheme);r?.add((0,o.createElement)("option",{textContent:t.title||t.text}),e+2),a[e]=h.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},d,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:r,zoomText:a}=this,n=i.options,l=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,{buttonPosition:h,inputPosition:d,verticalAlign:p}=r,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 n=h.x-i.spacing[3];if(t){if(this.positionButtons(),!this.initialButtonGroupWidth){let t=0;a&&(t+=a.getBBox().width+5),e.forEach((i,s)=>{t+=i.width||0,s!==e.length-1&&(t+=r.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;r.inputEnabled&&o&&(l=c(o,d,"right"===h.align||"right"===d.align),"left"===d.align?n=u:"right"===d.align&&(n=-Math.max(i.axisOffset[1],-l)),o.align({y:d.y,width:o.getBBox().width,align:d.align,x:d.x+n-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+(t.margin??10):0)-20)-(r.floating?0:r.y)-(i.titleOffset?i.titleOffset[2]:0)-10}"top"===p?(r.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(r.x,r.y+Math.floor(x));let{minInput:f,maxInput:b,dropdown:v}=this;r.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,r=(0,o.merge)(s.buttonTheme),a=r&&r.states,n=r.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??[],(0,o.defined)(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}}alignButtonGroup(t,e){let{chart:i,options:s,buttonGroup:r,dropdown:a,dropdownLabel:n}=this,{buttonPosition:l}=s,h=i.plotLeft-i.spacing[3],d=l.x-i.spacing[3],p=i.plotLeft;"right"===l.align?(d+=t-h,this.hasVisibleDropdown&&(p=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===l.align&&(d-=h/2,this.hasVisibleDropdown&&(p=i.chartWidth/2-this.maxButtonWidth())),a&&(0,o.css)(a,{left:p+"px",top:r?.translateY+"px"}),n?.attr({x:p}),r&&r.align({y:l.y,width:e??this.initialButtonGroupWidth,align:l.align,x:d},!0,i.spacingBox)}positionButtons(){let{buttons:t,chart:e,options:i,zoomText:s}=this,o=e.hasLoaded?"animate":"attr",{buttonPosition:r}=i,a=e.plotLeft,n=a;s&&"hidden"!==s.visibility&&(s[o]({x:a+(r.x??0)}),n+=r.x+s.getBBox().width+5);for(let e=0,s=this.buttonOptions.length;e<s;++e)"hidden"!==t[e].visibility?(t[e][o]({x:n}),n+=(t[e].width||0)+i.buttonSpacing):t[e][o]({x:a})}handleCollision(t){let{chart:e,buttonGroup:i,inputGroup:s,initialButtonGroupWidth:o}=this,{buttonPosition:r,dropdown:a,inputPosition:n}=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?n.align===r.align?(l(),o>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):o-t+s.getBBox().width>e.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():l():this.expandButtons():i&&"responsive"===a&&(o>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&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(),(0,o.css)(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)}hideDropdown(){let{dropdown:t}=this;t&&(this.dropdownLabel.hide(),(0,o.css)(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)}getHeight(){let t=this.options,e=this.group,i=t.inputPosition,s=t.buttonPosition,o=t.y,r=s.y,a=i.y,n=0;if(t.height)return t.height;this.alignElements(),n=e?e.getBBox(!0).height+13+o:0;let l=Math.min(a,r);return(a<0&&r<0||a>0&&r>0)&&(n+=Math.abs(l)),n}titleCollision(t){return!(t.options.title.text||t.options.subtitle.text)}update(t,e=!0){let i=this.chart;if((0,o.merge)(!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),(0,o.defined)(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),(0,o.destroyObjectProperties)(t.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),(0,o.objectEach)(t,function(e,i){e&&"chart"!==i&&(e instanceof tk()?e.destroy():e instanceof window.HTMLElement&&(0,o.discardElement)(e),delete t[i]),e!==tP.prototype[i]&&(t[i]=null)},this),this.buttons=[]}}(0,o.extend)(tP.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});let tR=i.default.Chart;var tL=s.n(tR);let{format:tz}=tT(),{getOptions:tI}=p(),{setFixedRange:tN}=V;function tW(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 tX(t,e){if("xAxis"===t){let t=e.navigator?.enabled??W.enabled??!0,i={type:"datetime",categories:void 0};return t&&(i.startOnTick=!1,i.endOnTick=!1),i}return{}}class tG extends tL(){init(t,e){let i=tI(),s=t.xAxis,r=t.yAxis,a=t.navigator?.enabled??W.enabled??!0;t.xAxis=t.yAxis=void 0;let n=(0,o.merge)({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:a},scrollbar:{enabled:Q.enabled??!0},rangeSelector:{enabled:tc.enabled??!0},title:{text:null},tooltip:{split:i.tooltip?.split??!0,crosshairs:!0},legend:{enabled:!1}},t,{isStock:!0});t.xAxis=s,t.yAxis=r,n.xAxis=(0,o.splat)(t.xAxis||{}).map(e=>(0,o.merge)(tW("xAxis",e,i.xAxis),e,tX("xAxis",t))),n.yAxis=(0,o.splat)(t.yAxis||{}).map(t=>(0,o.merge)(tW("yAxis",t,i.yAxis),t)),super.init(n,e)}createAxis(t,e){return e.axis=(0,o.merge)(tW(t,e.axis,tI()[t]),e.axis,tX(t,this.userOptions)),super.createAxis(t,e)}}(0,o.addEvent)(tL(),"update",function(t){let e=t.options;"scrollbar"in e&&this.navigator&&((0,o.merge)(!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&&(0,o.isNumber)(this.min)&&(0,o.isNumber)(this.max)))return;let e=this.chart,i=this.logarithmic,s=this.crosshair.label,r=this.horiz,a=this.opposite,n=this.left,l=this.top,h=this.width,d="inside"===this.options.tickPosition,p=!1!==this.crosshair.snap,c=t.e||this.cross?.e,u=t.point,g=this.crossLabel,m,x,f=s.format,b="",v,y=0,M=this.min,A=this.max;i&&(M=i.lin2log(this.min),A=i.lin2log(this.max));let E=r?"center":a?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";!g&&(g=this.crossLabel=e.renderer.label("",0,void 0,s.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(u?.series?u.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:s.align||E,padding:s.padding??8,r:s.borderRadius??3,zIndex:2}).add(this.labelGroup),e.styledMode||g.attr({fill:s.backgroundColor||u?.series?.color||"var(--highcharts-neutral-color-60)",stroke:s.borderColor||"","stroke-width":s.borderWidth||0}).css((0,o.extend)({color:"var(--highcharts-background-color)",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},s.style||{}))),r?(m=p?(u.plotX||0)+n:c.chartX,x=l+(a?0:this.height)):(m=n+this.offset+(a?h:0),x=p?(u.plotY||0)+l:c.chartY),f||s.formatter||(this.dateTime&&(b="%b %d, %Y"),f="{value"+(b?":"+b:"")+"}");let w=p?this.isXAxis?u.x:u.y:this.toValue(r?c.chartX:c.chartY),S=u?.series?u.series.isPointInside(u):(0,o.isNumber)(w)&&w>M&&w<A,k="";f?k=tz(f,{value:w},e):s.formatter&&(0,o.isNumber)(w)&&(k=s.formatter.call(this,w,this)),g.attr({text:k,x:m,y:x,visibility:S?"inherit":"hidden"});let O=g.getBBox();!(0,o.isNumber)(g.x)||r||a||(m=g.x-O.width/2),(0,o.isNumber)(g.y)&&(r?(d&&!a||!d&&a)&&(x=g.y-O.height):x=g.y-O.height/2),v=r?{left:n,right:n+this.width}:{left:"left"===this.labelAlign?n:0,right:"right"===this.labelAlign?n+this.width:e.chartWidth};let T=g.translateX||0;T<v.left&&(y=v.left-T),T+O.width>=v.right&&(y=-(T+O.width-v.right)),g.attr({x:Math.max(0,m+y),y:Math.max(0,x),anchorX:r?m:this.opposite?0:e.chartWidth,anchorY:r?this.opposite?e.chartHeight:0:x+O.height/2})}function i(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function s(t){let e=this,i=e.chart,s=e.options,o=s.labels;i.options.isStock&&"yAxis"===e.coll&&(()=>{let t=!1;for(let o of i.yAxis){if(o===e&&!t)return!0;o!==e&&o.options.top===s.top&&o.options.height===s.height&&(t=!0)}return!1})()&&o.enabled&&(t.align="right",t.preventDefault())}function r(t){let e=this.options,i=!this.series&&this.linkedParent?this.linkedParent.series:this.series,{chart:s,horiz:r}=this,a=s.renderer,n=[],{acrossPanes:l=!0,force:h,translatedValue:d,value:p}=t,c=(this.isXAxis?s.yAxis:s.xAxis)||[],u=r?"top":"left",g=r?"height":"width",m=(0,o.defined)(e[u])||(0,o.defined)(e[g]);function x(t,e,i){n.push(["M",r?t:e,r?e:t],["L",r?t:i,r?i:t])}let f=[],b,v;if((s.options.isStock||m)&&("xAxis"===this.coll||"yAxis"===this.coll)){let y,M;for(let r of(t.preventDefault(),M=e[y="xAxis"===this.coll?"yAxis":"xAxis"],f=l&&!e.isInternal?c.filter(t=>!t.options.isInternal):(0,o.isNumber)(M)?[s[y][M]]:(0,o.isString)(M)?[s.get(M)]:i.map(t=>t[y]),c))if(!r.options.isInternal){let t=r.isXAxis?"yAxis":"xAxis";this===((0,o.defined)(r.options[t])&&s[t][r.options[t]])&&f.push(r)}for(let t of(b=f.length?[]:[this.isXAxis?s.yAxis[0]:s.xAxis[0]],f))-1!==b.indexOf(t)||(0,o.find)(b,e=>e.pos===t.pos&&e.len===t.len)||b.push(t);if(v=d??this.translate(p||0,void 0,void 0,t.old),(0,o.isNumber)(v)){let t,e=r?v+this.pos:this.pos+this.len-v;if("pass"!==h&&(e<this.pos||e>this.pos+this.len)&&(h?e=(0,o.clamp)(e,this.pos,this.pos+this.len):t=!0),!t)if(m&&this[g]>0&&!l)x(e,this[u],this[u]+this[g]);else for(let t of b)x(e,t.pos,t.pos+t.len)}t.path=n.length>0?a.crispPolyLine(n,t.lineWidth||1):void 0}}function a(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]=(0,o.merge)(t.plotOptions[this.type],e))}}function n(){let t=this.chart,e=this.options.dataGrouping;return!1!==this.allowDG&&e&&(e.enabled??t.options.isStock)}function l(t,e){for(let i=0;i<t.length;i+=2){let s=t[i],r=t[i+1];(0,o.defined)(s[1])&&s[1]===r[1]&&(s[1]=r[1]=(0,o.crisp)(s[1],e)),(0,o.defined)(s[2])&&s[2]===r[2]&&(s[2]=r[2]=(0,o.crisp)(s[2],e))}return t}t.compose=function(t,h,d,p){let c=d.prototype;c.forceCropping||((0,o.addEvent)(h,"afterDrawCrosshair",e),(0,o.addEvent)(h,"afterHideCrosshair",i),(0,o.addEvent)(h,"autoLabelAlign",s),(0,o.addEvent)(h,"getPlotLinePath",r),t.prototype.setFixedRange=tN,c.forceCropping=n,(0,o.addEvent)(d,"setOptions",a),p.prototype.crispPolyLine=l)},t.stockChart=function(e,i,s){let o=new t(e,i,s);return o.promise??o}}(tG||(tG={}));let tF=tG,{column:{prototype:{pointClass:tU}}}=I().seriesTypes,tY=class extends tU{getOrigin({x:t=0},e={}){let i=e.d,s=t-(this.plotX||0);return i?{d:i.map(t=>{let e=t.slice();return"number"==typeof e[1]&&(e[1]+=s),e})}:e}},{composed:tH}=p();(l||(l={})).compose=function(t){if((0,o.pushUnique)(tH,"Series.FinancialSymbols")){let e=t.prototype.symbols,i=(t,e,i,s,o)=>{let r=Math.round(t+i/2),a=Math.round(e+s*(o?.3:.5)),n=[["M",r,e],["L",r,e+s],["M",r,a],["L",t+i,a]];if(o){let i=Math.round(e+.7*s);n.push(["M",t,i],["L",r,i])}return n};e.hlc=(t,e,s,o)=>i(t,e,s,o),e.ohlc=(t,e,s,o)=>i(t,e,s,o,!0),e.candlestick=(t,i,s,o)=>{let r=Math.round(t+s/2),a=Math.round(i+.25*o),n=Math.round(i+.75*o),l=[["M",r,i],["L",r,a],["M",r,n],["L",r,i+o]];return e.rect&&l.push(...e.rect(t,a,s,n-a)),l}}};let tV=l,{column:t_}=I().seriesTypes,{defaultOptions:tj}=p();class tq extends t_{static compose(t,e){tV.compose(e)}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){let e=t.series,i=e.borderWidth,s=(0,o.crisp)(t.plotX||0,i),r=Math.round(t.shapeArgs.width/2),a=[["M",s,Math.round(t.yBottom)],["L",s,Math.round(t.plotHigh)]];if(null!==t.close){let n=(0,o.crisp)(t.plotClose,i);a.push(["M",s,n],["L",s+r,n]),e.extendStem(a,i/2,n)}return a}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(t,e){let i=super.pointAttribs.call(this,t,e);return t&&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)}`),o=t.options.lineWidth??1;s.push("yBottom"),i.push("low"),super.translate.apply(t),t.borderWidth=o,t.points.concat(t.condemnedPoints).forEach(o=>{i.forEach(function(i,r){let a=o[i];null!==a&&(t.dataModify&&(a=t.dataModify.modifyValue(a)),o[s[r]]=e.toPixels(a,!0))});let{x:r=0,y:a=0,width:n=0,height:l=0}=o.shapeArgs||{};o.dlBox={x:r,y:a,width:n,height:l},o.shapeType="path",o.shapeArgs={d:t.getPointPath(o)},o.tooltipPos[1]=o.plotHigh+e.pos-t.chart.plotTop})}}tq.defaultOptions=(0,o.merge)(t_.defaultOptions,{legendSymbol:"hlc",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}),(0,o.extend)(tq.prototype,{pointClass:tY,animate:null,directTouch:!1,keysAffectYAxis:["low","high"],pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),(0,o.extend)(tj.lang,{stockOpen:"Open",stockHigh:"High",stockLow:"Low",stockClose:"Close"}),I().registerSeriesType("hlc",tq);let{seriesTypes:{hlc:tK}}=I();class tZ extends tK.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:t$}=p(),{hlc:tJ}=I().seriesTypes;function tQ(t){let e=t.options,i=e.dataGrouping;i&&!i.approximation&&e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(i.approximation="ohlc")}function t0(t){let e=t.options;e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(0,o.extend)(this,{pointValKey:t1.prototype.pointValKey,pointArrayMap:t1.prototype.pointArrayMap,toYData:t1.prototype.toYData})}class t1 extends tJ{static compose(t){(0,o.pushUnique)(t$,"OHLCSeries")&&((0,o.addEvent)(t,"afterSetOptions",tQ),(0,o.addEvent)(t,"init",t0))}getPointPath(t){let e=super.getPointPath(t),i=this.borderWidth,s=(0,o.crisp)(t.plotX||0,i),r=Math.round(t.shapeArgs.width/2);if(null!==t.open){let a=(0,o.crisp)(t.plotOpen,i);e.push(["M",s,a],["L",s-r,a]),super.extendStem(e,i/2,a)}return e}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||0)<(t?.close||0)&&(i.stroke=s.upColor),i}toYData(t){return[t.open,t.high,t.low,t.close]}}t1.defaultOptions=(0,o.merge)(tJ.defaultOptions,{legendSymbol:"ohlc",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/>'}}),(0,o.extend)(t1.prototype,{pointClass:tZ,pointArrayMap:["open","high","low","close"]}),I().registerSeriesType("ohlc",t1);let{column:t2,ohlc:t5}=I().seriesTypes;class t3 extends t5{pointAttribs(t,e){let i=t2.prototype.pointAttribs.call(this,t,e),s=this.options,o=(t?.open||0)<(t?.close||0),r=s.lineColor||this.color,a=t?.color||this.color;if(i["stroke-width"]=s.lineWidth,i.fill=t?.options.color||o&&s.upColor||a,i.stroke=t?.options.lineColor||o&&s.upLineColor||r,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}getPointPath(t){let e=this.borderWidth,i=(0,o.crisp)(t.plotX||0,e),s=t.plotOpen,r=t.plotClose,a=Math.min(s,r),n=Math.max(s,r),l=Math.round(t.shapeArgs.width/2),h=this.yAxis.reversed,d=h?n!==t.yBottom:Math.round(a)!==Math.round(t.plotHigh||0),p=h?Math.round(a)!==Math.round(t.plotHigh||0):n!==t.yBottom,c=(0,o.crisp)(a,e),u=(0,o.crisp)(n,e),g=[];return g.push(["M",i-l,u],["L",i-l,c],["L",i+l,c],["L",i+l,u],["Z"],["M",i,c],["L",i,d?Math.round(h?t.yBottom:t.plotHigh):c],["M",i,u],["L",i,p?Math.round(h?t.plotHigh:t.yBottom):u]),g}}t3.defaultOptions=(0,o.merge)(t5.defaultOptions,{tooltip:t5.defaultOptions.tooltip},{states:{hover:{lineWidth:2}},threshold:null,legendSymbol:"candlestick",lineColor:"var(--highcharts-neutral-color-100)",lineWidth:1,upColor:"var(--highcharts-background-color)",stickyTracking:!0}),I().registerSeriesType("candlestick",t3);let{column:{prototype:{pointClass:t6}}}=I().seriesTypes,t8=class extends t6{constructor(){super(...arguments),this.ttBelow=!1}isValid(){return(0,o.isNumber)(this.y)||void 0===this.y}hasNewShapeType(){let t=this.options.shape||this.series.options.shape;return this.graphic&&t&&t!==this.graphic.symbolKey}},{composed:t4}=p();function t7(t,e,i,s,o){let r=o&&o.anchorX||t,a=o&&o.anchorY||e,n=this.circle(r-1,a-1,2,2);return n.push(["M",r,a],["L",t,e+s],["L",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]),n}function t9(t,e){t[e+"pin"]=function(i,s,o,r,a){let n,l=a&&a.anchorX,h=a&&a.anchorY;if("circle"===e&&r>o&&(i-=Math.round((r-o)/2),o=r),n=t[e](i,s,o,r,a),l&&h){let a=l;if("circle"===e)a=i+o/2;else{let t=n[0],e=n[1];"M"===t[0]&&"L"===e[0]&&(a=(t[1]+e[1])/2)}let d=s>h?s:s+r;n.push(["M",a,d],["L",l,h]),n=n.concat(t.circle(l-1,h-1,2,2))}return n}}(h||(h={})).compose=function(t){if((0,o.pushUnique)(t4,"Series.Flags")){let e=t.prototype.symbols;e.flag=t7,t9(e,"circle"),t9(e,"square"),e["flag-icon"]=function(t,e,i,s){return t7.call(this,t,e,i,Math.round(.6*s),{anchorX:Math.round(t),anchorY:Math.round(e+s)})}}};let et=h,ee=i.default.Series.types.column;var ei=s.n(ee);let{composed:es}=p(),{prototype:eo}=ei(),{prototype:er}=m();var ea=d||(d={});function en(t){return er.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,t)}function el(){eo.translate.apply(this);let t=this,e=t.options,i=t.chart,s=t.points,r=e.onSeries,a=r&&i.get(r),n=a&&a.options.step,l=a&&a.points,h=i.inverted,d=t.xAxis,p=t.yAxis,c=s.length-1,u,g,m=e.onKey||"y",x=l&&l.length,f=0,b,v,y,M,A;if(a&&a.visible&&x){for(f=(a.pointXOffset||0)+(a.barW||0)/2,M=a.currentDataGrouping,v=l[x-1].x+(M?M.totalRange:0),(0,o.stableSort)(s,(t,e)=>t.x-e.x),m="plot"+m[0].toUpperCase()+m.substr(1);x--&&s[c];)if(b=l[x],(u=s[c]).y=b.y,b.x<=u.x&&void 0!==b[m]){if(u.x<=v&&(u.plotY=b[m],b.x<u.x&&!n&&(y=l[x+1]))&&void 0!==y[m])if((0,o.defined)(u.plotX)&&a.is("spline")){let t=[b.plotX||0,b.plotY||0],e=[y.plotX||0,y.plotY||0],i=b.controlPoints?.high||t,s=y.controlPoints?.low||e,r=(o,r)=>Math.pow(1-o,3)*t[r]+3*(1-o)*(1-o)*o*i[r]+3*(1-o)*o*o*s[r]+o*o*o*e[r],a=0,n=1,l;for(let t=0;t<100;t++){let t=(a+n)/2,e=r(t,0);if(null===e)break;if(.25>Math.abs(e-u.plotX)){l=t;break}e<u.plotX?a=t:n=t}(0,o.defined)(l)&&(u.plotY=r(l,1),u.y=p.toValue(u.plotY,!0))}else A=(u.x-b.x)/(y.x-b.x),u.plotY+=A*(y[m]-b[m]),u.y+=A*(y.y-b.y);if(c--,x++,c<0)break}}s.forEach((e,i)=>{let r;e.plotX+=f,(void 0===e.plotY||h)&&(e.plotX>=0&&e.plotX<=d.len?h?(e.plotY=d.translate(e.x,0,1,0,1),e.plotX=(0,o.defined)(e.y)?p.translate(e.y,0,0,0,1):0):e.plotY=(d.opposite?0:t.yAxis.len)+d.offset:e.shapeArgs={}),(g=s[i-1])&&g.plotX===e.plotX&&(void 0===g.stackIndex&&(g.stackIndex=0),r=g.stackIndex+1),e.stackIndex=r}),this.onSeries=a}ea.compose=function(t){if((0,o.pushUnique)(es,"OnSeries")){let e=t.prototype;e.getPlotBox=en,e.translate=el}return t},ea.getPlotBox=en,ea.translate=el;let eh=d,{noop:ed}=p(),{distribute:ep}=p(),{series:ec,seriesTypes:{column:eu}}=I();class eg extends eu{animate(t){t&&this.setClip()}drawPoints(){let t,e,i,s,r,a,n,l,h,d,p,c=this.points,u=this.chart,g=u.renderer,m=u.inverted,x=this.options,f=x.y,b=this.yAxis,v={},y=[],M=(0,o.isNumber)(x.borderRadius)?x.borderRadius:0;for(s=c.length;s--;)r=c[s],d=(m?r.plotY:r.plotX)>this.xAxis.len,t=r.plotX,n=r.stackIndex,i=r.options.shape||x.shape,void 0!==(e=r.plotY)&&(e=r.plotY+f-(void 0!==n&&n*x.stackDistance)),r.anchorX=n?void 0:r.plotX,l=n?void 0:r.plotY,p="flag"!==i,a=r.graphic,void 0!==e&&t>=0&&!d?(a&&r.hasNewShapeType()&&(a=a.destroy()),a||(a=r.graphic=g.label("",0,void 0,i,void 0,void 0,x.useHTML).addClass(r.getClassName()).add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),a.isNew=!0),a.attr({align:p?"center":"left",width:x.width,height:x.height,"text-align":x.textAlign,r:M}),u.styledMode||a.attr(this.pointAttribs(r)).css((0,o.merge)(x.style,r.style)).shadow(x.shadow),t>0&&(t-=a.strokeWidth()%2),h={y:e,anchorY:l},x.allowOverlapX&&(h.x=t,h.anchorX=r.anchorX),a.attr({text:r.options.title??x.title??"A"})[a.isNew?"attr":"animate"](h),x.allowOverlapX||(v[r.plotX]?v[r.plotX].size=Math.max(v[r.plotX].size,a.width||0):v[r.plotX]={align:.5*!!p,size:a.width||0,target:t,anchorX:t}),r.tooltipPos=[t,e+b.pos-u.plotTop]):a&&(r.graphic=a.destroy());if(!x.allowOverlapX){let t=100;for(let e of((0,o.objectEach)(v,function(e){e.plotX=e.anchorX,y.push(e),t=Math.max(e.size,t)}),ep(y,m?b.len:this.xAxis.len,t),c)){let t=e.plotX,i=e.graphic,s=i&&v[t];s&&i&&((0,o.defined)(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)}}x.useHTML&&this.markerGroup&&(0,o.wrap)(this.markerGroup,"on",function(t){return tk().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=(0,o.addEvent)(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?.color||this.color,o=i.lineColor,r=t?.lineWidth,a=t?.fillColor||i.fillColor;return e&&(a=i.states?.[e]?.fillColor,o=i.states?.[e]?.lineColor,r=i.states?.[e]?.lineWidth),{fill:a||s,stroke:o||s,"stroke-width":r||i.lineWidth||0}}setClip(){ec.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}eg.compose=et.compose,eg.defaultOptions=(0,o.merge)(eu.defaultOptions,{borderRadius:0,legendSymbol:"flag-icon",pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"var(--highcharts-background-color)",lineWidth:1,states:{hover:{lineColor:"var(--highcharts-neutral-color-100)",fillColor:"var(--highcharts-highlight-color-20)"}},style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",fontWeight:"bold"}}),eh.compose(eg),(0,o.extend)(eg.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:t8,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:ed,init:ec.prototype.init}),I().registerSeriesType("flags",eg);let em=p();em.Navigator=em.Navigator||ta,em.OrdinalAxis=em.OrdinalAxis||td,em.RangeSelector=em.RangeSelector||tP,em.Scrollbar=em.Scrollbar||ti,em.stockChart=tF.stockChart,em.StockChart=em.StockChart||em.stockChart,(0,o.extend)(em.StockChart,tF),f.compose(em.Series,em.Axis,em.Point),tq.compose(em.Series,em.SVGRenderer),eg.compose(em.Renderer),t1.compose(em.Series),em.Navigator.compose(em.Chart,em.Axis,em.Series),em.OrdinalAxis.compose(em.Axis,em.Series,em.Chart),em.RangeSelector.compose(em.Axis,em.Chart),em.Scrollbar.compose(em.Axis),em.StockChart.compose(em.Chart,em.Axis,em.Series,em.SVGRenderer);let ex=p();export{ex as default};
|