highcharts 9.3.1 → 9.3.2

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.
Files changed (752) hide show
  1. package/bower.json +1 -1
  2. package/css/annotations/popup.css +1 -1
  3. package/css/highcharts.css +2 -2
  4. package/css/highcharts.scss +1 -1
  5. package/css/stocktools/gui.css +1 -1
  6. package/css/themes/dark-unica.css +2 -2
  7. package/css/themes/grid-light.css +2 -2
  8. package/css/themes/sand-signika.css +2 -2
  9. package/es-modules/Accessibility/A11yI18n.js +1 -5
  10. package/es-modules/Accessibility/Accessibility.js +11 -5
  11. package/es-modules/Accessibility/AccessibilityComponent.js +1 -1
  12. package/es-modules/Accessibility/Components/AnnotationsA11y.js +9 -5
  13. package/es-modules/Accessibility/Components/ContainerComponent.js +1 -1
  14. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -19
  15. package/es-modules/Accessibility/Components/LegendComponent.js +176 -86
  16. package/es-modules/Accessibility/Components/MenuComponent.js +1 -10
  17. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +10 -13
  18. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +15 -6
  19. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +8 -4
  20. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -41
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +20 -31
  23. package/es-modules/Accessibility/Components/ZoomComponent.js +135 -57
  24. package/es-modules/Accessibility/FocusBorder.js +0 -5
  25. package/es-modules/Accessibility/HighContrastMode.js +2 -1
  26. package/es-modules/Accessibility/KeyboardNavigation.js +5 -4
  27. package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -5
  28. package/es-modules/Accessibility/Options/LangOptions.js +3 -3
  29. package/es-modules/Accessibility/ProxyElement.js +12 -6
  30. package/es-modules/Accessibility/ProxyProvider.js +0 -3
  31. package/es-modules/Accessibility/Utils/Announcer.js +2 -2
  32. package/es-modules/Accessibility/Utils/ChartUtilities.js +17 -32
  33. package/es-modules/Accessibility/Utils/HTMLUtilities.js +0 -12
  34. package/es-modules/Core/Animation/Fx.js +5 -14
  35. package/es-modules/Core/Axis/Axis.js +42 -68
  36. package/es-modules/Core/Axis/Axis3D.js +10 -4
  37. package/es-modules/Core/Axis/BrokenAxis.js +17 -11
  38. package/es-modules/Core/Axis/Color/ColorAxis.js +7 -4
  39. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
  40. package/es-modules/Core/Axis/DateTimeAxis.js +3 -14
  41. package/es-modules/Core/Axis/GridAxis.js +26 -16
  42. package/es-modules/Core/Axis/NavigatorAxis.js +0 -5
  43. package/es-modules/Core/Axis/OrdinalAxis.js +83 -79
  44. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +0 -5
  45. package/es-modules/Core/Axis/RadialAxis.js +7 -28
  46. package/es-modules/Core/Axis/ScrollbarAxis.js +18 -10
  47. package/es-modules/Core/Axis/StackingAxis.js +2 -1
  48. package/es-modules/Core/Axis/Tick.js +2 -4
  49. package/es-modules/Core/Axis/TreeGridAxis.js +26 -17
  50. package/es-modules/Core/Axis/TreeGridTick.js +4 -1
  51. package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
  52. package/es-modules/Core/Axis/ZAxis.js +1 -1
  53. package/es-modules/Core/Chart/Chart.js +42 -44
  54. package/es-modules/Core/Chart/Chart3D.js +23 -10
  55. package/es-modules/Core/Chart/GanttChart.js +4 -4
  56. package/es-modules/Core/Chart/MapChart.js +3 -3
  57. package/es-modules/Core/Chart/StockChart.js +10 -23
  58. package/es-modules/Core/DefaultOptions.js +3 -2
  59. package/es-modules/Core/Geometry/CircleUtilities.js +2 -1
  60. package/es-modules/Core/Globals.js +1 -1
  61. package/es-modules/Core/HttpUtilities.js +5 -4
  62. package/es-modules/Core/Legend/Legend.js +12 -13
  63. package/es-modules/Core/Navigator.js +34 -22
  64. package/es-modules/Core/Pointer.js +13 -9
  65. package/es-modules/Core/Renderer/HTML/AST.js +27 -14
  66. package/es-modules/Core/Renderer/HTML/HTMLElement.js +4 -2
  67. package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +8 -6
  68. package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
  69. package/es-modules/Core/Renderer/SVG/SVGElement.js +8 -16
  70. package/es-modules/Core/Renderer/SVG/SVGLabel.js +17 -8
  71. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -12
  72. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +12 -5
  73. package/es-modules/Core/Renderer/SVG/TextBuilder.js +16 -10
  74. package/es-modules/Core/Responsive.js +2 -3
  75. package/es-modules/Core/Scrollbar.js +14 -12
  76. package/es-modules/Core/Series/DataLabel.js +17 -12
  77. package/es-modules/Core/Series/Point.js +17 -16
  78. package/es-modules/Core/Series/Series.js +44 -73
  79. package/es-modules/Core/Series/SeriesDefaults.js +5 -4
  80. package/es-modules/Core/Time.js +14 -11
  81. package/es-modules/Core/Tooltip.js +19 -36
  82. package/es-modules/Core/Utilities.js +5 -17
  83. package/es-modules/Data/DataConverter.js +0 -6
  84. package/es-modules/Data/DataSeriesConverter.js +9 -5
  85. package/es-modules/Data/DataTable.js +2 -1
  86. package/es-modules/Data/Modifiers/DataModifier.js +1 -1
  87. package/es-modules/Data/Parsers/CSVParser.js +3 -2
  88. package/es-modules/Data/Parsers/GoogleSheetsParser.js +5 -2
  89. package/es-modules/Data/Stores/CSVStore.js +2 -2
  90. package/es-modules/Data/Stores/DataStore.js +1 -1
  91. package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
  92. package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
  93. package/es-modules/Extensions/Annotations/Annotations.js +11 -10
  94. package/es-modules/Extensions/Annotations/ControlPoint.js +0 -2
  95. package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +1 -1
  96. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +1 -1
  97. package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +1 -1
  98. package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +3 -6
  99. package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -2
  100. package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +1 -1
  101. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +6 -3
  102. package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +0 -1
  103. package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +5 -4
  104. package/es-modules/Extensions/Annotations/NavigationBindings.js +34 -29
  105. package/es-modules/Extensions/Annotations/Popup.js +40 -32
  106. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
  107. package/es-modules/Extensions/Annotations/Types/ElliottWave.js +1 -1
  108. package/es-modules/Extensions/Annotations/Types/Measure.js +15 -11
  109. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +2 -1
  110. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +8 -4
  111. package/es-modules/Extensions/Annotations/Types/Tunnel.js +10 -5
  112. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -9
  113. package/es-modules/Extensions/Boost/BoostUtils.js +0 -6
  114. package/es-modules/Extensions/Boost/WGLRenderer.js +16 -12
  115. package/es-modules/Extensions/Boost/WGLShader.js +9 -8
  116. package/es-modules/Extensions/Boost/WGLVBuffer.js +4 -7
  117. package/es-modules/Extensions/Data.js +4 -48
  118. package/es-modules/Extensions/DataGrouping.js +22 -15
  119. package/es-modules/Extensions/DraggablePoints.js +7 -8
  120. package/es-modules/Extensions/Drilldown.js +9 -4
  121. package/es-modules/Extensions/ExportData.js +6 -5
  122. package/es-modules/Extensions/Exporting/Exporting.js +23 -37
  123. package/es-modules/Extensions/FullScreen.js +4 -3
  124. package/es-modules/Extensions/GeoJSON.js +3 -3
  125. package/es-modules/Extensions/MarkerClusters.js +3 -1
  126. package/es-modules/Extensions/Math3D.js +4 -4
  127. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +23 -24
  128. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  129. package/es-modules/Extensions/Oldie/Oldie.js +13 -77
  130. package/es-modules/Extensions/Oldie/VMLAxis3D.js +5 -1
  131. package/es-modules/Extensions/OverlappingDataLabels.js +10 -6
  132. package/es-modules/Extensions/Pane.js +6 -6
  133. package/es-modules/Extensions/ParallelCoordinates.js +5 -3
  134. package/es-modules/Extensions/PatternFill.js +17 -11
  135. package/es-modules/Extensions/Polar.js +6 -3
  136. package/es-modules/Extensions/PriceIndication.js +2 -1
  137. package/es-modules/Extensions/RangeSelector.js +19 -55
  138. package/es-modules/Extensions/ScrollablePlotArea.js +2 -2
  139. package/es-modules/Extensions/SeriesLabel.js +1 -1
  140. package/es-modules/Extensions/Sonification/ChartSonify.js +32 -26
  141. package/es-modules/Extensions/Sonification/Instrument.js +12 -15
  142. package/es-modules/Extensions/Sonification/PointSonify.js +12 -8
  143. package/es-modules/Extensions/Sonification/SeriesSonify.js +33 -18
  144. package/es-modules/Extensions/Sonification/SignalHandler.js +4 -6
  145. package/es-modules/Extensions/Sonification/Sonification.js +1 -1
  146. package/es-modules/Extensions/Sonification/SonificationUtilities.js +11 -7
  147. package/es-modules/Extensions/Sonification/Timeline.js +2 -7
  148. package/es-modules/Extensions/Sonification/TimelineEvent.js +0 -1
  149. package/es-modules/Extensions/Sonification/TimelinePath.js +8 -8
  150. package/es-modules/Extensions/Stacking.js +5 -23
  151. package/es-modules/Extensions/Themes/BrandDark.js +293 -0
  152. package/es-modules/Extensions/Themes/BrandLight.js +259 -0
  153. package/es-modules/Extensions/Themes/DarkUnica.js +4 -2
  154. package/es-modules/Extensions/Themes/Grid.js +4 -2
  155. package/es-modules/Extensions/Themes/GridLight.js +4 -2
  156. package/es-modules/Gantt/Connection.js +2 -2
  157. package/es-modules/Gantt/Pathfinder.js +6 -5
  158. package/es-modules/Gantt/PathfinderAlgorithms.js +12 -12
  159. package/es-modules/Maps/MapNavigation.js +6 -7
  160. package/es-modules/Maps/MapPointer.js +2 -1
  161. package/es-modules/Maps/MapSymbols.js +23 -3
  162. package/es-modules/Maps/MapViewOptionsDefault.js +1 -1
  163. package/es-modules/Series/Area/AreaSeries.js +13 -13
  164. package/es-modules/Series/Area3DSeries.js +4 -2
  165. package/es-modules/Series/AreaRange/AreaRangeSeries.js +24 -12
  166. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -1
  167. package/es-modules/Series/Bubble/BubbleLegendItem.js +2 -12
  168. package/es-modules/Series/Candlestick/CandlestickSeries.js +0 -1
  169. package/es-modules/Series/ColorMapMixin.js +84 -0
  170. package/es-modules/Series/Column/ColumnSeries.js +16 -14
  171. package/es-modules/Series/Column3D/Column3DComposition.js +1 -2
  172. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +5 -2
  173. package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
  174. package/es-modules/Series/Cylinder/CylinderComposition.js +36 -4
  175. package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +1 -1
  176. package/es-modules/Series/Dumbbell/DumbbellPoint.js +0 -1
  177. package/es-modules/Series/Dumbbell/DumbbellSeries.js +0 -3
  178. package/es-modules/Series/Flags/FlagsSymbols.js +2 -2
  179. package/es-modules/Series/Funnel3D/Funnel3DComposition.js +14 -8
  180. package/es-modules/Series/Funnel3D/Funnel3DSeries.js +2 -1
  181. package/es-modules/Series/Gantt/GanttPoint.js +1 -1
  182. package/es-modules/Series/Gantt/GanttSeries.js +3 -1
  183. package/es-modules/Series/HLC/HLCSeries.js +1 -6
  184. package/es-modules/Series/Heatmap/HeatmapPoint.js +10 -10
  185. package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -10
  186. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +8 -6
  187. package/es-modules/Series/Histogram/HistogramSeries.js +4 -4
  188. package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +1 -4
  189. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +19 -20
  190. package/es-modules/Series/Item/ItemSeries.js +4 -5
  191. package/es-modules/Series/Map/MapPoint.js +6 -0
  192. package/es-modules/Series/Map/MapSeries.js +24 -25
  193. package/es-modules/Series/MapLine/MapLineSeries.js +0 -4
  194. package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -4
  195. package/es-modules/Series/Networkgraph/Integrations.js +8 -22
  196. package/es-modules/Series/Networkgraph/Networkgraph.js +1 -5
  197. package/es-modules/Series/Networkgraph/QuadTree.js +1 -3
  198. package/es-modules/Series/NodesComposition.js +2 -1
  199. package/es-modules/Series/OHLC/OHLCPoint.js +0 -1
  200. package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
  201. package/es-modules/Series/Organization/OrganizationSeries.js +4 -2
  202. package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +1 -0
  203. package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
  204. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +2 -4
  205. package/es-modules/Series/Pie/PiePoint.js +2 -2
  206. package/es-modules/Series/Pie/PieSeries.js +1 -1
  207. package/es-modules/Series/Pie3D/Pie3DComposition.js +2 -1
  208. package/es-modules/Series/Pie3D/Pie3DPoint.js +2 -1
  209. package/es-modules/Series/Pie3D/Pie3DSeries.js +1 -1
  210. package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +2 -1
  211. package/es-modules/Series/Sankey/SankeySeries.js +3 -2
  212. package/es-modules/Series/SolidGauge/SolidGaugeComposition.js +3 -1
  213. package/es-modules/Series/Spline/SplineSeries.js +0 -8
  214. package/es-modules/Series/Sunburst/SunburstSeries.js +2 -2
  215. package/es-modules/Series/Sunburst/SunburstUtilities.js +3 -2
  216. package/es-modules/Series/Tilemap/TilemapPoint.js +0 -2
  217. package/es-modules/Series/Tilemap/TilemapShapes.js +0 -7
  218. package/es-modules/Series/TreeUtilities.js +2 -2
  219. package/es-modules/Series/Treemap/TreemapSeries.js +18 -21
  220. package/es-modules/Series/Variwide/VariwideSeries.js +5 -1
  221. package/es-modules/Series/Venn/VennSeries.js +6 -9
  222. package/es-modules/Series/Venn/VennUtils.js +8 -7
  223. package/es-modules/Series/Waterfall/WaterfallSeries.js +6 -3
  224. package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
  225. package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -10
  226. package/es-modules/Series/XRange/XRangePoint.js +6 -12
  227. package/es-modules/Series/XRange/XRangeSeries.js +4 -20
  228. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +12 -0
  229. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -0
  230. package/es-modules/Stock/Indicators/BB/BBIndicator.js +12 -0
  231. package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +35 -15
  232. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +9 -5
  233. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +2 -1
  234. package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +6 -6
  235. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +12 -0
  236. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -3
  237. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +30 -12
  238. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
  239. package/es-modules/Stock/Indicators/MultipleLinesComposition.js +70 -6
  240. package/es-modules/Stock/Indicators/PC/PCIndicator.js +11 -0
  241. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -1
  242. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +2 -1
  243. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -3
  244. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
  245. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -3
  246. package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +19 -7
  247. package/es-modules/Stock/StockToolsBindings.js +13 -6
  248. package/es-modules/Stock/StockToolsGui.js +34 -23
  249. package/es-modules/masters/highcharts-3d.src.js +1 -1
  250. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  251. package/es-modules/masters/highcharts-more.src.js +1 -1
  252. package/es-modules/masters/highcharts.src.js +1 -1
  253. package/es-modules/masters/highmaps.src.js +1 -1
  254. package/es-modules/masters/highstock.src.js +1 -1
  255. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  256. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  257. package/es-modules/masters/indicators/ao.src.js +1 -1
  258. package/es-modules/masters/indicators/apo.src.js +1 -1
  259. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  260. package/es-modules/masters/indicators/aroon.src.js +1 -1
  261. package/es-modules/masters/indicators/atr.src.js +1 -1
  262. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  263. package/es-modules/masters/indicators/cci.src.js +1 -1
  264. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  265. package/es-modules/masters/indicators/cmf.src.js +1 -1
  266. package/es-modules/masters/indicators/cmo.src.js +1 -1
  267. package/es-modules/masters/indicators/dema.src.js +1 -1
  268. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  269. package/es-modules/masters/indicators/dmi.src.js +1 -1
  270. package/es-modules/masters/indicators/dpo.src.js +1 -1
  271. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  272. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  273. package/es-modules/masters/indicators/indicators.src.js +1 -1
  274. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  275. package/es-modules/masters/indicators/klinger.src.js +1 -1
  276. package/es-modules/masters/indicators/macd.src.js +1 -1
  277. package/es-modules/masters/indicators/mfi.src.js +1 -1
  278. package/es-modules/masters/indicators/momentum.src.js +1 -1
  279. package/es-modules/masters/indicators/natr.src.js +1 -1
  280. package/es-modules/masters/indicators/obv.src.js +1 -1
  281. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  282. package/es-modules/masters/indicators/ppo.src.js +1 -1
  283. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  284. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  285. package/es-modules/masters/indicators/psar.src.js +1 -1
  286. package/es-modules/masters/indicators/regressions.src.js +1 -1
  287. package/es-modules/masters/indicators/roc.src.js +1 -1
  288. package/es-modules/masters/indicators/rsi.src.js +1 -1
  289. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  290. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  291. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  292. package/es-modules/masters/indicators/tema.src.js +1 -1
  293. package/es-modules/masters/indicators/trendline.src.js +1 -1
  294. package/es-modules/masters/indicators/trix.src.js +1 -1
  295. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  296. package/es-modules/masters/indicators/vwap.src.js +1 -1
  297. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  298. package/es-modules/masters/indicators/wma.src.js +1 -1
  299. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  300. package/es-modules/masters/modules/accessibility.src.js +2 -2
  301. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  302. package/es-modules/masters/modules/annotations.src.js +1 -1
  303. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  304. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  305. package/es-modules/masters/modules/boost.src.js +1 -1
  306. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  307. package/es-modules/masters/modules/bullet.src.js +1 -1
  308. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  309. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  310. package/es-modules/masters/modules/cylinder.src.js +1 -1
  311. package/es-modules/masters/modules/data.src.js +1 -1
  312. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  313. package/es-modules/masters/modules/debugger.src.js +1 -1
  314. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  315. package/es-modules/masters/modules/dotplot.src.js +1 -1
  316. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  317. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  318. package/es-modules/masters/modules/drilldown.src.js +1 -1
  319. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  320. package/es-modules/masters/modules/export-data.src.js +1 -1
  321. package/es-modules/masters/modules/exporting.src.js +1 -1
  322. package/es-modules/masters/modules/full-screen.src.js +1 -1
  323. package/es-modules/masters/modules/funnel.src.js +1 -1
  324. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  325. package/es-modules/masters/modules/gantt.src.js +1 -1
  326. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  327. package/es-modules/masters/modules/heatmap.src.js +1 -1
  328. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  329. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  330. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  331. package/es-modules/masters/modules/item-series.src.js +1 -1
  332. package/es-modules/masters/modules/lollipop.src.js +1 -1
  333. package/es-modules/masters/modules/map.src.js +1 -1
  334. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  335. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  336. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  337. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  338. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  339. package/es-modules/masters/modules/oldie.src.js +1 -1
  340. package/es-modules/masters/modules/organization.src.js +1 -1
  341. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  342. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  343. package/es-modules/masters/modules/pareto.src.js +1 -1
  344. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  345. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  346. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  347. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  348. package/es-modules/masters/modules/sankey.src.js +1 -1
  349. package/es-modules/masters/modules/series-label.src.js +1 -1
  350. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  351. package/es-modules/masters/modules/sonification.src.js +1 -1
  352. package/es-modules/masters/modules/static-scale.src.js +1 -1
  353. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  354. package/es-modules/masters/modules/stock.src.js +1 -1
  355. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  356. package/es-modules/masters/modules/sunburst.src.js +1 -1
  357. package/es-modules/masters/modules/tilemap.src.js +1 -1
  358. package/es-modules/masters/modules/timeline.src.js +1 -1
  359. package/es-modules/masters/modules/treegrid.src.js +1 -1
  360. package/es-modules/masters/modules/treemap.src.js +1 -1
  361. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  362. package/es-modules/masters/modules/variwide.src.js +1 -1
  363. package/es-modules/masters/modules/vector.src.js +1 -1
  364. package/es-modules/masters/modules/venn.src.js +1 -1
  365. package/es-modules/masters/modules/windbarb.src.js +1 -1
  366. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  367. package/es-modules/masters/modules/xrange.src.js +1 -1
  368. package/es-modules/masters/themes/avocado.src.js +1 -1
  369. package/es-modules/masters/themes/brand-dark.src.js +14 -0
  370. package/es-modules/masters/themes/brand-light.src.js +14 -0
  371. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  372. package/es-modules/masters/themes/dark-green.src.js +1 -1
  373. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  374. package/es-modules/masters/themes/gray.src.js +1 -1
  375. package/es-modules/masters/themes/grid-light.src.js +1 -1
  376. package/es-modules/masters/themes/grid.src.js +1 -1
  377. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  378. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  379. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  380. package/es-modules/masters/themes/skies.src.js +1 -1
  381. package/es-modules/masters/themes/sunset.src.js +1 -1
  382. package/highcharts-3d.js +1 -1
  383. package/highcharts-3d.js.map +1 -1
  384. package/highcharts-3d.src.js +65 -35
  385. package/highcharts-gantt.js +799 -799
  386. package/highcharts-gantt.js.map +1 -1
  387. package/highcharts-gantt.src.js +589 -698
  388. package/highcharts-more.js +1 -1
  389. package/highcharts-more.js.map +1 -1
  390. package/highcharts-more.src.js +73 -103
  391. package/highcharts.d.ts +5586 -1709
  392. package/highcharts.js +577 -577
  393. package/highcharts.js.map +1 -1
  394. package/highcharts.src.d.ts +5586 -1709
  395. package/highcharts.src.js +391 -486
  396. package/highmaps.js +723 -723
  397. package/highmaps.js.map +1 -1
  398. package/highmaps.src.js +552 -656
  399. package/highstock.js +782 -782
  400. package/highstock.js.map +1 -1
  401. package/highstock.src.js +612 -731
  402. package/indicators/acceleration-bands.d.ts +17 -1
  403. package/indicators/acceleration-bands.js +11 -10
  404. package/indicators/acceleration-bands.js.map +1 -1
  405. package/indicators/acceleration-bands.src.d.ts +17 -1
  406. package/indicators/acceleration-bands.src.js +88 -6
  407. package/indicators/accumulation-distribution.js +1 -1
  408. package/indicators/accumulation-distribution.src.js +1 -1
  409. package/indicators/ao.js +1 -1
  410. package/indicators/ao.src.js +1 -1
  411. package/indicators/apo.js +1 -1
  412. package/indicators/apo.src.js +1 -1
  413. package/indicators/aroon-oscillator.d.ts +17 -1
  414. package/indicators/aroon-oscillator.js +10 -9
  415. package/indicators/aroon-oscillator.js.map +1 -1
  416. package/indicators/aroon-oscillator.src.d.ts +17 -1
  417. package/indicators/aroon-oscillator.src.js +76 -6
  418. package/indicators/aroon.d.ts +17 -1
  419. package/indicators/aroon.js +11 -9
  420. package/indicators/aroon.js.map +1 -1
  421. package/indicators/aroon.src.d.ts +17 -1
  422. package/indicators/aroon.src.js +77 -6
  423. package/indicators/atr.js +1 -1
  424. package/indicators/atr.src.js +1 -1
  425. package/indicators/bollinger-bands.d.ts +17 -1
  426. package/indicators/bollinger-bands.js +12 -10
  427. package/indicators/bollinger-bands.js.map +1 -1
  428. package/indicators/bollinger-bands.src.d.ts +17 -1
  429. package/indicators/bollinger-bands.src.js +88 -6
  430. package/indicators/cci.js +1 -1
  431. package/indicators/cci.src.js +1 -1
  432. package/indicators/chaikin.js +1 -1
  433. package/indicators/chaikin.src.js +1 -1
  434. package/indicators/cmf.js +1 -1
  435. package/indicators/cmf.js.map +1 -1
  436. package/indicators/cmf.src.js +36 -16
  437. package/indicators/cmo.js +1 -1
  438. package/indicators/cmo.src.js +1 -1
  439. package/indicators/dema.js +1 -1
  440. package/indicators/dema.src.js +1 -1
  441. package/indicators/disparity-index.js +1 -1
  442. package/indicators/disparity-index.js.map +1 -1
  443. package/indicators/disparity-index.src.js +3 -2
  444. package/indicators/dmi.js +12 -11
  445. package/indicators/dmi.js.map +1 -1
  446. package/indicators/dmi.src.js +85 -11
  447. package/indicators/dpo.js +1 -1
  448. package/indicators/dpo.src.js +1 -1
  449. package/indicators/ichimoku-kinko-hyo.js +1 -1
  450. package/indicators/ichimoku-kinko-hyo.js.map +1 -1
  451. package/indicators/ichimoku-kinko-hyo.src.js +7 -7
  452. package/indicators/indicators-all.d.ts +17 -1
  453. package/indicators/indicators-all.js +198 -197
  454. package/indicators/indicators-all.js.map +1 -1
  455. package/indicators/indicators-all.src.d.ts +17 -1
  456. package/indicators/indicators-all.src.js +246 -65
  457. package/indicators/indicators.js +1 -1
  458. package/indicators/indicators.js.map +1 -1
  459. package/indicators/indicators.src.js +3 -4
  460. package/indicators/keltner-channels.d.ts +17 -1
  461. package/indicators/keltner-channels.js +11 -10
  462. package/indicators/keltner-channels.js.map +1 -1
  463. package/indicators/keltner-channels.src.d.ts +17 -1
  464. package/indicators/keltner-channels.src.js +88 -6
  465. package/indicators/klinger.js +14 -12
  466. package/indicators/klinger.js.map +1 -1
  467. package/indicators/klinger.src.js +84 -9
  468. package/indicators/macd.js +1 -1
  469. package/indicators/macd.js.map +1 -1
  470. package/indicators/macd.src.js +2 -2
  471. package/indicators/mfi.js +1 -1
  472. package/indicators/mfi.src.js +1 -1
  473. package/indicators/momentum.js +1 -1
  474. package/indicators/momentum.src.js +1 -1
  475. package/indicators/natr.js +1 -1
  476. package/indicators/natr.src.js +1 -1
  477. package/indicators/obv.js +1 -1
  478. package/indicators/obv.src.js +1 -1
  479. package/indicators/pivot-points.js +1 -1
  480. package/indicators/pivot-points.js.map +1 -1
  481. package/indicators/pivot-points.src.js +3 -2
  482. package/indicators/ppo.js +1 -1
  483. package/indicators/ppo.src.js +1 -1
  484. package/indicators/price-channel.d.ts +17 -1
  485. package/indicators/price-channel.js +11 -9
  486. package/indicators/price-channel.js.map +1 -1
  487. package/indicators/price-channel.src.d.ts +17 -1
  488. package/indicators/price-channel.src.js +87 -6
  489. package/indicators/price-envelopes.js +1 -1
  490. package/indicators/price-envelopes.src.js +1 -1
  491. package/indicators/psar.js +1 -1
  492. package/indicators/psar.src.js +1 -1
  493. package/indicators/regressions.js +1 -1
  494. package/indicators/regressions.js.map +1 -1
  495. package/indicators/regressions.src.js +31 -13
  496. package/indicators/roc.js +1 -1
  497. package/indicators/roc.src.js +1 -1
  498. package/indicators/rsi.js +1 -1
  499. package/indicators/rsi.js.map +1 -1
  500. package/indicators/rsi.src.js +3 -2
  501. package/indicators/slow-stochastic.js +1 -1
  502. package/indicators/slow-stochastic.src.js +1 -1
  503. package/indicators/stochastic.d.ts +17 -1
  504. package/indicators/stochastic.js +12 -10
  505. package/indicators/stochastic.js.map +1 -1
  506. package/indicators/stochastic.src.d.ts +17 -1
  507. package/indicators/stochastic.src.js +79 -7
  508. package/indicators/supertrend.js +1 -1
  509. package/indicators/supertrend.src.js +1 -1
  510. package/indicators/tema.js +1 -1
  511. package/indicators/tema.src.js +1 -1
  512. package/indicators/trendline.js +1 -1
  513. package/indicators/trendline.src.js +1 -1
  514. package/indicators/trix.js +1 -1
  515. package/indicators/trix.src.js +1 -1
  516. package/indicators/volume-by-price.js +1 -1
  517. package/indicators/volume-by-price.src.js +4 -4
  518. package/indicators/vwap.js +1 -1
  519. package/indicators/vwap.js.map +1 -1
  520. package/indicators/vwap.src.js +20 -8
  521. package/indicators/williams-r.js +1 -1
  522. package/indicators/williams-r.src.js +1 -1
  523. package/indicators/wma.js +1 -1
  524. package/indicators/wma.src.js +1 -1
  525. package/indicators/zigzag.js +1 -1
  526. package/indicators/zigzag.src.js +1 -1
  527. package/modules/accessibility.d.ts +0 -35
  528. package/modules/accessibility.js +225 -222
  529. package/modules/accessibility.js.map +1 -1
  530. package/modules/accessibility.src.d.ts +0 -35
  531. package/modules/accessibility.src.js +503 -418
  532. package/modules/annotations-advanced.js +128 -128
  533. package/modules/annotations-advanced.js.map +1 -1
  534. package/modules/annotations-advanced.src.js +152 -124
  535. package/modules/annotations.js +122 -122
  536. package/modules/annotations.js.map +1 -1
  537. package/modules/annotations.src.js +112 -100
  538. package/modules/arrow-symbols.js +1 -1
  539. package/modules/arrow-symbols.src.js +1 -1
  540. package/modules/boost-canvas.js +1 -1
  541. package/modules/boost-canvas.src.js +1 -1
  542. package/modules/boost.js +1 -1
  543. package/modules/boost.js.map +1 -1
  544. package/modules/boost.src.js +33 -43
  545. package/modules/broken-axis.js +1 -1
  546. package/modules/broken-axis.js.map +1 -1
  547. package/modules/broken-axis.src.js +18 -12
  548. package/modules/bullet.js +1 -1
  549. package/modules/bullet.src.js +1 -1
  550. package/modules/coloraxis.js +1 -1
  551. package/modules/coloraxis.js.map +1 -1
  552. package/modules/coloraxis.src.js +11 -8
  553. package/modules/current-date-indicator.js +1 -1
  554. package/modules/current-date-indicator.src.js +1 -1
  555. package/modules/cylinder.js +1 -1
  556. package/modules/cylinder.js.map +1 -1
  557. package/modules/cylinder.src.js +37 -5
  558. package/modules/data.d.ts +6 -6
  559. package/modules/data.js +31 -31
  560. package/modules/data.js.map +1 -1
  561. package/modules/data.src.d.ts +6 -6
  562. package/modules/data.src.js +10 -53
  563. package/modules/datagrouping.js +2 -2
  564. package/modules/datagrouping.js.map +1 -1
  565. package/modules/datagrouping.src.js +23 -16
  566. package/modules/debugger.js +1 -1
  567. package/modules/debugger.src.js +1 -1
  568. package/modules/dependency-wheel.js +3 -3
  569. package/modules/dependency-wheel.js.map +1 -1
  570. package/modules/dependency-wheel.src.js +2 -2
  571. package/modules/dotplot.js +1 -1
  572. package/modules/dotplot.src.js +1 -1
  573. package/modules/drag-panes.js +1 -1
  574. package/modules/drag-panes.src.js +1 -1
  575. package/modules/draggable-points.js +1 -1
  576. package/modules/draggable-points.js.map +1 -1
  577. package/modules/draggable-points.src.js +8 -9
  578. package/modules/drilldown.js +1 -1
  579. package/modules/drilldown.js.map +1 -1
  580. package/modules/drilldown.src.js +10 -5
  581. package/modules/dumbbell.js +1 -1
  582. package/modules/dumbbell.js.map +1 -1
  583. package/modules/dumbbell.src.js +1 -5
  584. package/modules/export-data.js +19 -19
  585. package/modules/export-data.js.map +1 -1
  586. package/modules/export-data.src.js +7 -6
  587. package/modules/exporting.js +1 -1
  588. package/modules/exporting.js.map +1 -1
  589. package/modules/exporting.src.js +33 -45
  590. package/modules/full-screen.js +1 -1
  591. package/modules/full-screen.js.map +1 -1
  592. package/modules/full-screen.src.js +5 -4
  593. package/modules/funnel.js +1 -1
  594. package/modules/funnel.src.js +1 -1
  595. package/modules/funnel3d.js +1 -1
  596. package/modules/funnel3d.js.map +1 -1
  597. package/modules/funnel3d.src.js +17 -10
  598. package/modules/gantt.js +1 -1
  599. package/modules/gantt.js.map +1 -1
  600. package/modules/gantt.src.js +199 -213
  601. package/modules/grid-axis.js +1 -1
  602. package/modules/grid-axis.js.map +1 -1
  603. package/modules/grid-axis.src.js +27 -19
  604. package/modules/heatmap.js +39 -39
  605. package/modules/heatmap.js.map +1 -1
  606. package/modules/heatmap.src.js +88 -112
  607. package/modules/heikinashi.js +1 -1
  608. package/modules/heikinashi.js.map +1 -1
  609. package/modules/heikinashi.src.js +9 -7
  610. package/modules/histogram-bellcurve.js +1 -1
  611. package/modules/histogram-bellcurve.js.map +1 -1
  612. package/modules/histogram-bellcurve.src.js +7 -6
  613. package/modules/hollowcandlestick.js +1 -1
  614. package/modules/hollowcandlestick.js.map +1 -1
  615. package/modules/hollowcandlestick.src.js +21 -25
  616. package/modules/item-series.js +6 -6
  617. package/modules/item-series.js.map +1 -1
  618. package/modules/item-series.src.js +6 -6
  619. package/modules/lollipop.js +1 -1
  620. package/modules/lollipop.src.js +1 -1
  621. package/modules/map.d.ts +2 -0
  622. package/modules/map.js +144 -144
  623. package/modules/map.js.map +1 -1
  624. package/modules/map.src.d.ts +2 -0
  625. package/modules/map.src.js +162 -171
  626. package/modules/marker-clusters.js +1 -1
  627. package/modules/marker-clusters.js.map +1 -1
  628. package/modules/marker-clusters.src.js +4 -2
  629. package/modules/networkgraph.js +1 -1
  630. package/modules/networkgraph.js.map +1 -1
  631. package/modules/networkgraph.src.js +13 -36
  632. package/modules/no-data-to-display.js +1 -1
  633. package/modules/no-data-to-display.src.js +1 -1
  634. package/modules/offline-exporting.js +18 -18
  635. package/modules/offline-exporting.js.map +1 -1
  636. package/modules/offline-exporting.src.js +27 -32
  637. package/modules/oldie-polyfills.js +1 -1
  638. package/modules/oldie-polyfills.src.js +1 -1
  639. package/modules/oldie.js +2 -2
  640. package/modules/oldie.js.map +1 -1
  641. package/modules/oldie.src.js +19 -79
  642. package/modules/organization.js +1 -1
  643. package/modules/organization.js.map +1 -1
  644. package/modules/organization.src.js +5 -3
  645. package/modules/overlapping-datalabels.js +1 -1
  646. package/modules/overlapping-datalabels.src.js +1 -1
  647. package/modules/parallel-coordinates.js +1 -1
  648. package/modules/parallel-coordinates.js.map +1 -1
  649. package/modules/parallel-coordinates.src.js +6 -4
  650. package/modules/pareto.js +1 -1
  651. package/modules/pareto.src.js +1 -1
  652. package/modules/pathfinder.js +1 -1
  653. package/modules/pathfinder.js.map +1 -1
  654. package/modules/pathfinder.src.js +21 -20
  655. package/modules/pattern-fill.js +1 -1
  656. package/modules/pattern-fill.js.map +1 -1
  657. package/modules/pattern-fill.src.js +18 -12
  658. package/modules/price-indicator.js +1 -1
  659. package/modules/price-indicator.js.map +1 -1
  660. package/modules/price-indicator.src.js +3 -2
  661. package/modules/pyramid3d.js +1 -1
  662. package/modules/pyramid3d.js.map +1 -1
  663. package/modules/pyramid3d.src.js +3 -2
  664. package/modules/sankey.js +1 -1
  665. package/modules/sankey.js.map +1 -1
  666. package/modules/sankey.src.js +8 -6
  667. package/modules/series-label.js +1 -1
  668. package/modules/series-label.js.map +1 -1
  669. package/modules/series-label.src.js +2 -2
  670. package/modules/solid-gauge.js +1 -1
  671. package/modules/solid-gauge.js.map +1 -1
  672. package/modules/solid-gauge.src.js +17 -2
  673. package/modules/sonification.js +53 -53
  674. package/modules/sonification.js.map +1 -1
  675. package/modules/sonification.src.js +121 -103
  676. package/modules/static-scale.js +1 -1
  677. package/modules/static-scale.src.js +1 -1
  678. package/modules/stock-tools.js +66 -66
  679. package/modules/stock-tools.js.map +1 -1
  680. package/modules/stock-tools.src.js +119 -96
  681. package/modules/stock.js +3 -3
  682. package/modules/stock.js.map +1 -1
  683. package/modules/stock.src.js +222 -246
  684. package/modules/streamgraph.js +1 -1
  685. package/modules/streamgraph.src.js +1 -1
  686. package/modules/sunburst.js +60 -61
  687. package/modules/sunburst.js.map +1 -1
  688. package/modules/sunburst.src.js +83 -113
  689. package/modules/tilemap.js +1 -1
  690. package/modules/tilemap.js.map +1 -1
  691. package/modules/tilemap.src.js +1 -10
  692. package/modules/timeline.js +1 -1
  693. package/modules/timeline.src.js +1 -1
  694. package/modules/treegrid.js +1 -1
  695. package/modules/treegrid.js.map +1 -1
  696. package/modules/treegrid.src.js +76 -50
  697. package/modules/treemap.js +41 -41
  698. package/modules/treemap.js.map +1 -1
  699. package/modules/treemap.src.js +78 -109
  700. package/modules/variable-pie.js +1 -1
  701. package/modules/variable-pie.src.js +1 -1
  702. package/modules/variwide.js +1 -1
  703. package/modules/variwide.js.map +1 -1
  704. package/modules/variwide.src.js +7 -3
  705. package/modules/vector.js +1 -1
  706. package/modules/vector.src.js +1 -1
  707. package/modules/venn.js +1 -1
  708. package/modules/venn.js.map +1 -1
  709. package/modules/venn.src.js +17 -18
  710. package/modules/windbarb.js +1 -1
  711. package/modules/windbarb.src.js +1 -1
  712. package/modules/wordcloud.js +1 -1
  713. package/modules/wordcloud.js.map +1 -1
  714. package/modules/wordcloud.src.js +9 -13
  715. package/modules/xrange.js +1 -1
  716. package/modules/xrange.js.map +1 -1
  717. package/modules/xrange.src.js +11 -33
  718. package/package.json +1 -1
  719. package/themes/avocado.js +1 -1
  720. package/themes/avocado.src.js +1 -1
  721. package/themes/brand-dark.js +15 -0
  722. package/themes/brand-dark.js.map +1 -0
  723. package/themes/brand-dark.src.js +328 -0
  724. package/themes/brand-light.js +15 -0
  725. package/themes/brand-light.js.map +1 -0
  726. package/themes/brand-light.src.js +294 -0
  727. package/themes/dark-blue.js +1 -1
  728. package/themes/dark-blue.src.js +1 -1
  729. package/themes/dark-green.js +1 -1
  730. package/themes/dark-green.src.js +1 -1
  731. package/themes/dark-unica.js +1 -1
  732. package/themes/dark-unica.js.map +1 -1
  733. package/themes/dark-unica.src.js +5 -3
  734. package/themes/gray.js +1 -1
  735. package/themes/gray.src.js +1 -1
  736. package/themes/grid-light.js +1 -1
  737. package/themes/grid-light.js.map +1 -1
  738. package/themes/grid-light.src.js +5 -3
  739. package/themes/grid.js +1 -1
  740. package/themes/grid.js.map +1 -1
  741. package/themes/grid.src.js +5 -3
  742. package/themes/high-contrast-dark.js +1 -1
  743. package/themes/high-contrast-dark.src.js +1 -1
  744. package/themes/high-contrast-light.js +1 -1
  745. package/themes/high-contrast-light.src.js +1 -1
  746. package/themes/sand-signika.js +1 -1
  747. package/themes/sand-signika.src.js +1 -1
  748. package/themes/skies.js +1 -1
  749. package/themes/skies.src.js +1 -1
  750. package/themes/sunset.js +1 -1
  751. package/themes/sunset.src.js +1 -1
  752. package/es-modules/Series/ColorMapComposition.js +0 -109
package/highmaps.js CHANGED
@@ -1,735 +1,735 @@
1
1
  /*
2
- Highmaps JS v9.3.1 (2021-11-05)
2
+ Highmaps JS v9.3.2 (2021-11-29)
3
3
 
4
4
  (c) 2011-2021 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- 'use strict';(function(Z,F){"object"===typeof module&&module.exports?(F["default"]=F,module.exports=Z.document?F(Z):F):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return F(Z)}):(Z.Highcharts&&Z.Highcharts.error(16,!0),Z.Highcharts=F(Z))})("undefined"!==typeof window?window:this,function(Z){function F(x,b,A,B){x.hasOwnProperty(b)||(x[b]=B.apply(null,A))}var b={};F(b,"Core/Globals.js",[],function(){var x="undefined"!==typeof Z?Z:"undefined"!==typeof window?window:
9
- {},b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="9.3.1";b.win=x;b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=
10
- /(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var x=!1;if(!b.isMS){var u=Object.defineProperty({},"passive",{get:function(){x=!0}});b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",
11
- b.noop,u),b.win.removeEventListener("testPassive",b.noop,u))}return x}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});F(b,"Core/Utilities.js",[b["Core/Globals.js"]],function(b){function x(a,c,l,f){var I=c?"Highcharts error":"Highcharts warning";32===a&&(a=I+": Deprecated member");var q=m(a),e=q?I+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();if("undefined"!==typeof f){var P="";q&&(e+="?");p(f,function(a,d){P+="\n - "+d+": "+a;
12
- q&&(e+=encodeURI(d)+"="+encodeURI(a))});e+=P}n(b,"displayError",{chart:l,code:a,message:e,params:f},function(){if(c)throw Error(e);d.console&&-1===x.messages.indexOf(e)&&console.warn(e)});x.messages.push(e)}function A(a,d){var c={};p(a,function(l,f){if(w(a[f],!0)&&!a.nodeType&&d[f])l=A(a[f],d[f]),Object.keys(l).length&&(c[f]=l);else if(w(a[f])||a[f]!==d[f])c[f]=a[f]});return c}function B(a,d){return parseInt(a,d||10)}function v(a){return"string"===typeof a}function E(a){a=Object.prototype.toString.call(a);
13
- return"[object Array]"===a||"[object Array Iterator]"===a}function w(a,d){return!!a&&"object"===typeof a&&(!d||!E(a))}function k(a){return w(a)&&"number"===typeof a.nodeType}function r(a){var d=a&&a.constructor;return!(!w(a,!0)||k(a)||!d||!d.name||"Object"===d.name)}function m(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function h(a){return"undefined"!==typeof a&&null!==a}function a(a,d,c){var f;v(d)?h(c)?a.setAttribute(d,c):a&&a.getAttribute&&((f=a.getAttribute(d))||"class"!==
14
- d||(f=a.getAttribute(d+"Name"))):p(d,function(d,c){h(d)?a.setAttribute(c,d):a.removeAttribute(c)});return f}function c(a,d){var c;a||(a={});for(c in d)a[c]=d[c];return a}function e(){for(var a=arguments,d=a.length,c=0;c<d;c++){var f=a[c];if("undefined"!==typeof f&&null!==f)return f}}function g(a,d){b.isMS&&!b.svg&&d&&"undefined"!==typeof d.opacity&&(d.filter="alpha(opacity="+100*d.opacity+")");c(a.style,d)}function C(a,d,f,l,e){a=q.createElement(a);d&&c(a,d);e&&g(a,{padding:"0",border:"none",margin:"0"});
15
- f&&g(a,f);l&&l.appendChild(a);return a}function y(a,d){return 1E14<a?a:parseFloat(a.toPrecision(d||14))}function t(a,c,f){var l=b.getStyle||t;if("width"===c)return c=Math.min(a.offsetWidth,a.scrollWidth),f=a.getBoundingClientRect&&a.getBoundingClientRect().width,f<c&&f>=c-1&&(c=Math.floor(f)),Math.max(0,c-(l(a,"padding-left",!0)||0)-(l(a,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(l(a,"padding-top",!0)||0)-(l(a,"padding-bottom",!0)||0));d.getComputedStyle||
16
- x(27,!0);if(a=d.getComputedStyle(a,void 0)){var q=a.getPropertyValue(c);e(f,"opacity"!==c)&&(q=B(q))}return q}function p(a,d,c){for(var f in a)Object.hasOwnProperty.call(a,f)&&d.call(c||a[f],a[f],f,a)}function D(a,d,c){function f(d,c){var f=a.removeEventListener||b.removeEventListenerPolyfill;f&&f.call(a,d,c,!1)}function l(c){var l;if(a.nodeName){if(d){var q={};q[d]=!0}else q=c;p(q,function(a,d){if(c[d])for(l=c[d].length;l--;)f(d,c[d][l].fn)})}}var q="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(q,
17
- "hcEvents")){var e=q.hcEvents;d?(q=e[d]||[],c?(e[d]=q.filter(function(a){return c!==a.fn}),f(d,c)):(l(e),e[d]=[])):(l(e),delete q.hcEvents)}}function n(a,d,f,l){f=f||{};if(q.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==b)){var e=q.createEvent("Events");e.initEvent(d,!0,!0);f=c(e,f);a.dispatchEvent?a.dispatchEvent(f):a.fireEvent(d,f)}else if(a.hcEvents){f.target||c(f,{preventDefault:function(){f.defaultPrevented=!0},target:a,type:d});e=[];for(var p=a,n=!1;p.hcEvents;)Object.hasOwnProperty.call(p,
18
- "hcEvents")&&p.hcEvents[d]&&(e.length&&(n=!0),e.unshift.apply(e,p.hcEvents[d])),p=Object.getPrototypeOf(p);n&&e.sort(function(a,d){return a.order-d.order});e.forEach(function(d){!1===d.fn.call(a,f)&&f.preventDefault()})}l&&!f.defaultPrevented&&l.call(a,f)}var f=b.charts,q=b.doc,d=b.win;(x||(x={})).messages=[];var z;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var l=Array.prototype.find?function(a,d){return a.find(d)}:function(a,d){var c,f=a.length;for(c=0;c<f;c++)if(d(a[c],c))return a[c]};
19
- p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,d){b[d]=function(c){var f;x(32,!1,void 0,(f={},f["Highcharts."+d]="use Array."+a,f));return Array.prototype[a].apply(c,[].slice.call(arguments,1))}});var G,K=function(){var a=Math.random().toString(36).substring(2,9)+"-",d=0;return function(){return"highcharts-"+(G?"":a)+d++}}();d.jQuery&&(d.jQuery.fn.highcharts=function(){var d=[].slice.call(arguments);if(this[0])return d[0]?(new (b[v(d[0])?d.shift():"Chart"])(this[0],
20
- d[0],d[1]),this):f[a(this[0],"data-highcharts-chart")]});l={addEvent:function(a,d,c,f){void 0===f&&(f={});var l="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(l,"hcEvents")||(l.hcEvents={});l=l.hcEvents;b.Point&&a instanceof b.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var e=a.addEventListener||b.addEventListenerPolyfill;e&&e.call(a,d,c,b.supportsPassiveEvents?{passive:void 0===f.passive?-1!==d.indexOf("touch"):f.passive,capture:!1}:!1);l[d]||(l[d]=[]);
21
- l[d].push({fn:c,order:"number"===typeof f.order?f.order:Infinity});l[d].sort(function(a,d){return a.order-d.order});return function(){D(a,d,c)}},arrayMax:function(a){for(var d=a.length,c=a[0];d--;)a[d]>c&&(c=a[d]);return c},arrayMin:function(a){for(var d=a.length,c=a[0];d--;)a[d]<c&&(c=a[d]);return c},attr:a,clamp:function(a,d,c){return a>d?a<c?a:c:d},cleanRecursively:A,clearTimeout:function(a){h(a)&&clearTimeout(a)},correctFloat:y,createElement:C,css:g,defined:h,destroyObjectProperties:function(a,
22
- d){p(a,function(c,f){c&&c!==d&&c.destroy&&c.destroy();delete a[f]})},discardElement:function(a){z||(z=C("div"));a&&z.appendChild(a);z.innerHTML=""},erase:function(a,d){for(var c=a.length;c--;)if(a[c]===d){a.splice(c,1);break}},error:x,extend:c,extendClass:function(a,d){var f=function(){};f.prototype=new a;c(f.prototype,d);return f},find:l,fireEvent:n,getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:function(a,c){for(a=a.split(".");a.length&&h(c);){var f=
23
- a.shift();if("undefined"===typeof f||"__proto__"===f)return;c=c[f];if(!h(c)||"function"===typeof c||"number"===typeof c.nodeType||c===d)return}return c},getStyle:t,inArray:function(a,d,c){x(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(a,c)},isArray:E,isClass:r,isDOMElement:k,isFunction:function(a){return"function"===typeof a},isNumber:m,isObject:w,isString:v,keys:function(a){x(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:function(){var a,
24
- d=arguments,c={},f=function(a,d){"object"!==typeof a&&(a={});p(d,function(c,l){"__proto__"!==l&&"constructor"!==l&&(!w(c,!0)||r(c)||k(c)?a[l]=d[l]:a[l]=f(a[l]||{},c))});return a};!0===d[0]&&(c=d[1],d=Array.prototype.slice.call(d,2));var l=d.length;for(a=0;a<l;a++)c=f(c,d[a]);return c},normalizeTickInterval:function(a,d,c,f,l){var q=a;c=e(c,1);var p=a/c;d||(d=l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===f&&(1===c?d=d.filter(function(a){return 0===a%1}):.1>=c&&(d=[1/c])));for(f=0;f<d.length&&
25
- !(q=d[f],l&&q*c>=a||!l&&p<=(d[f]+(d[f+1]||d[f]))/2);f++);return q=y(q*c,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(a){var c=q.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(d.pageYOffset||c.scrollTop)-(c.clientTop||0),left:a.left+(d.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:a.width,height:a.height}},pad:function(a,d,c){return Array((d||2)+1-String(a).replace("-","").length).join(c||"0")+
26
- a},pick:e,pInt:B,relativeLength:function(a,d,c){return/%$/.test(a)?d*parseFloat(a)/100+(c||0):parseFloat(a)},removeEvent:D,splat:function(a){return E(a)?a:[a]},stableSort:function(a,d){var c=a.length,f,l;for(l=0;l<c;l++)a[l].safeI=l;a.sort(function(a,c){f=d(a,c);return 0===f?a.safeI-c.safeI:f});for(l=0;l<c;l++)delete a[l].safeI},syncTimeout:function(a,d,c){if(0<d)return setTimeout(a,d,c);a.call(0,c);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
27
- year:314496E5},uniqueKey:K,useSerialIds:function(a){return G=e(a,G)},wrap:function(a,d,c){var f=a[d];a[d]=function(){var a=Array.prototype.slice.call(arguments),d=arguments,l=this;l.proceed=function(){f.apply(l,arguments.length?arguments:d)};a.unshift(f);a=c.apply(this,a);l.proceed=null;return a}}};"";return l});F(b,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,
28
- 10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});F(b,"Core/Color/Color.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u){var x=u.isNumber,B=u.merge,v=u.pInt;u=function(){function u(w){this.rgba=[NaN,NaN,NaN,NaN];this.input=w;var k=b.Color;if(k&&k!==u)return new k(w);if(!(this instanceof u))return new u(w);this.init(w)}u.parse=function(b){return b?
29
- new u(b):u.None};u.prototype.init=function(b){var k;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(a){return new u(a[1])});else if("string"===typeof b){this.input=b=u.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var r=b.length;var m=parseInt(b.substr(1),16);7===r?k=[(m&16711680)>>16,(m&65280)>>8,m&255,1]:4===r&&(k=[(m&3840)>>4|(m&3840)>>8,(m&240)>>4|m&240,(m&15)<<4|m&15,1])}if(!k)for(m=u.parsers.length;m--&&!k;){var h=u.parsers[m];(r=h.regex.exec(b))&&(k=h.parse(r))}}k&&
30
- (this.rgba=k)};u.prototype.get=function(b){var k=this.input,r=this.rgba;if("object"===typeof k&&"undefined"!==typeof this.stops){var m=B(k);m.stops=[].slice.call(m.stops);this.stops.forEach(function(h,a){m.stops[a]=[m.stops[a][0],h.get(b)]});return m}return r&&x(r[0])?"rgb"===b||!b&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===b?""+r[3]:"rgba("+r.join(",")+")":k};u.prototype.brighten=function(b){var k=this.rgba;if(this.stops)this.stops.forEach(function(m){m.brighten(b)});else if(x(b)&&0!==b)for(var r=
31
- 0;3>r;r++)k[r]+=v(255*b),0>k[r]&&(k[r]=0),255<k[r]&&(k[r]=255);return this};u.prototype.setOpacity=function(b){this.rgba[3]=b;return this};u.prototype.tweenTo=function(b,k){var r=this.rgba,m=b.rgba;if(!x(r[0])||!x(m[0]))return b.input||"none";b=1!==m[3]||1!==r[3];return(b?"rgba(":"rgb(")+Math.round(m[0]+(r[0]-m[0])*(1-k))+","+Math.round(m[1]+(r[1]-m[1])*(1-k))+","+Math.round(m[2]+(r[2]-m[2])*(1-k))+(b?","+(m[3]+(r[3]-m[3])*(1-k)):"")+")"};u.names={white:"#ffffff",black:"#000000"};u.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
32
- parse:function(b){return[v(b[1]),v(b[2]),v(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[v(b[1]),v(b[2]),v(b[3]),1]}}];u.None=new u("");return u}();"";return u});F(b,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});F(b,"Core/Time.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u){var x=b.win,B=u.defined,v=
33
- u.error,E=u.extend,w=u.isObject,k=u.merge,r=u.objectEach,m=u.pad,h=u.pick,a=u.splat,c=u.timeUnits,e=b.isSafari&&x.Intl&&x.Intl.DateTimeFormat.prototype.formatRange,g=b.isSafari&&x.Intl&&!x.Intl.DateTimeFormat.prototype.formatRange;u=function(){function C(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=x.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}C.prototype.get=function(a,c){if(this.variableTimezone||this.timezoneOffset){var e=c.getTime(),g=e-this.getTimezoneOffset(c);
34
- c.setTime(g);a=c["getUTC"+a]();c.setTime(e);return a}return this.useUTC?c["getUTC"+a]():c["get"+a]()};C.prototype.set=function(a,c,p){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(c)%36E5)return c["setUTC"+a](p);var g=this.getTimezoneOffset(c);g=c.getTime()-g;c.setTime(g);c["setUTC"+a](p);a=this.getTimezoneOffset(c);g=c.getTime()+a;return c.setTime(g)}return this.useUTC||e&&"FullYear"===a?c["setUTC"+a](p):c["set"+a](p)};
35
- C.prototype.update=function(a){var c=h(a&&a.useUTC,!0);this.options=a=k(!0,this.options||{},a);this.Date=a.Date||x.Date||Date;this.timezoneOffset=(this.useUTC=c)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=c&&!(!a.getTimezoneOffset&&!a.timezone)};C.prototype.makeTime=function(a,c,e,D,n,f){if(this.useUTC){var q=this.Date.UTC.apply(0,arguments);var d=this.getTimezoneOffset(q);q+=d;var p=this.getTimezoneOffset(q);d!==p?q+=p-d:d-36E5!==this.getTimezoneOffset(q-
36
- 36E5)||g||(q-=36E5)}else q=(new this.Date(a,c,h(e,1),h(D,0),h(n,0),h(f,0))).getTime();return q};C.prototype.timezoneOffsetFunction=function(){var a=this,c=this.options,e=c.moment||x.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(c.timezone){if(e)return function(a){return 6E4*-e.tz(a,c.timezone).utcOffset()};v(25)}return this.useUTC&&c.getTimezoneOffset?function(a){return 6E4*c.getTimezoneOffset(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||
37
- 0)}};C.prototype.dateFormat=function(a,c,e){if(!B(c)||isNaN(c))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=h(a,"%Y-%m-%d %H:%M:%S");var p=this,n=new this.Date(c),f=this.get("Hours",n),q=this.get("Day",n),d=this.get("Date",n),g=this.get("Month",n),l=this.get("FullYear",n),t=b.defaultOptions.lang,y=t&&t.weekdays,C=t&&t.shortWeekdays;n=E({a:C?C[q]:y[q].substr(0,3),A:y[q],d:m(d),e:m(d,2," "),w:q,b:t.shortMonths[g],B:t.months[g],m:m(g+1),o:g+1,y:l.toString().substr(2,2),Y:l,H:m(f),
38
- k:f,I:m(f%12||12),l:f%12||12,M:m(this.get("Minutes",n)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:m(n.getSeconds()),L:m(Math.floor(c%1E3),3)},b.dateFormats);r(n,function(d,f){for(;-1!==a.indexOf("%"+f);)a=a.replace("%"+f,"function"===typeof d?d.call(p,c):d)});return e?a.substr(0,1).toUpperCase()+a.substr(1):a};C.prototype.resolveDTLFormat=function(c){return w(c,!0)?c:(c=a(c),{main:c[0],from:c[1],to:c[2]})};C.prototype.getTimeTicks=function(a,e,p,g){var n=this,f=[],q={},d=new n.Date(e),z=a.unitRange,l=a.count||
39
- 1,D;g=h(g,1);if(B(e)){n.set("Milliseconds",d,z>=c.second?0:l*Math.floor(n.get("Milliseconds",d)/l));z>=c.second&&n.set("Seconds",d,z>=c.minute?0:l*Math.floor(n.get("Seconds",d)/l));z>=c.minute&&n.set("Minutes",d,z>=c.hour?0:l*Math.floor(n.get("Minutes",d)/l));z>=c.hour&&n.set("Hours",d,z>=c.day?0:l*Math.floor(n.get("Hours",d)/l));z>=c.day&&n.set("Date",d,z>=c.month?1:Math.max(1,l*Math.floor(n.get("Date",d)/l)));if(z>=c.month){n.set("Month",d,z>=c.year?0:l*Math.floor(n.get("Month",d)/l));var t=n.get("FullYear",
40
- d)}z>=c.year&&n.set("FullYear",d,t-t%l);z===c.week&&(t=n.get("Day",d),n.set("Date",d,n.get("Date",d)-t+g+(t<g?-7:0)));t=n.get("FullYear",d);g=n.get("Month",d);var y=n.get("Date",d),C=n.get("Hours",d);e=d.getTime();!n.variableTimezone&&n.useUTC||!B(p)||(D=p-e>4*c.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(p));e=d.getTime();for(d=1;e<p;)f.push(e),e=z===c.year?n.makeTime(t+d*l,0):z===c.month?n.makeTime(t,g+d*l):!D||z!==c.day&&z!==c.week?D&&z===c.hour&&1<l?n.makeTime(t,g,y,C+d*l):e+z*l:n.makeTime(t,
41
- g,y+d*l*(z===c.day?1:7)),d++;f.push(e);z<=c.hour&&1E4>f.length&&f.forEach(function(a){0===a%18E5&&"000000000"===n.dateFormat("%H%M%S%L",a)&&(q[a]="day")})}f.info=E(a,{higherRanks:q,totalRange:z*l});return f};C.prototype.getDateFormat=function(a,e,p,g){var n=this.dateFormat("%m-%d %H:%M:%S.%L",e),f={millisecond:15,second:12,minute:9,hour:6,day:3},q="millisecond";for(d in c){if(a===c.week&&+this.dateFormat("%w",e)===p&&"00:00:00.000"===n.substr(6)){var d="week";break}if(c[d]>a){d=q;break}if(f[d]&&n.substr(f[d])!==
42
- "01-01 00:00:00.000".substr(f[d]))break;"week"!==d&&(q=d)}if(d)var z=this.resolveDTLFormat(g[d]).main;return z};return C}();"";return u});F(b,"Core/DefaultOptions.js",[b["Core/Chart/ChartDefaults.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palettes.js"],b["Core/Time.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E){u=u.parse;var x=E.merge,k={colors:B.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
8
+ 'use strict';(function(Y,G){"object"===typeof module&&module.exports?(G["default"]=G,module.exports=Y.document?G(Y):G):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return G(Y)}):(Y.Highcharts&&Y.Highcharts.error(16,!0),Y.Highcharts=G(Y))})("undefined"!==typeof window?window:this,function(Y){function G(v,b,A,E){v.hasOwnProperty(b)||(v[b]=E.apply(null,A))}var b={};G(b,"Core/Globals.js",[],function(){var v="undefined"!==typeof Y?Y:"undefined"!==typeof window?window:
9
+ {},b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="9.3.2";b.win=v;b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=
10
+ /(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var v=!1;if(!b.isMS){var p=Object.defineProperty({},"passive",{get:function(){v=!0}});b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",
11
+ b.noop,p),b.win.removeEventListener("testPassive",b.noop,p))}return v}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});G(b,"Core/Utilities.js",[b["Core/Globals.js"]],function(b){function v(c,l,a,f){var F=l?"Highcharts error":"Highcharts warning";32===c&&(c=F+": Deprecated member");var d=n(c),m=d?F+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof f){var e="";d&&(m+="?");r(f,function(c,F){e+="\n - "+F+": "+c;
12
+ d&&(m+=encodeURI(F)+"="+encodeURI(c))});m+=e}z(b,"displayError",{chart:a,code:c,message:m,params:f},function(){if(l)throw Error(m);y.console&&-1===v.messages.indexOf(m)&&console.warn(m)});v.messages.push(m)}function A(c,l){var F={};r(c,function(a,f){if(B(c[f],!0)&&!c.nodeType&&l[f])a=A(c[f],l[f]),Object.keys(a).length&&(F[f]=a);else if(B(c[f])||c[f]!==l[f])F[f]=c[f]});return F}function E(c,f){return parseInt(c,f||10)}function w(c){return"string"===typeof c}function D(c){c=Object.prototype.toString.call(c);
13
+ return"[object Array]"===c||"[object Array Iterator]"===c}function B(c,f){return!!c&&"object"===typeof c&&(!f||!D(c))}function k(c){return B(c)&&"number"===typeof c.nodeType}function t(c){var f=c&&c.constructor;return!(!B(c,!0)||k(c)||!f||!f.name||"Object"===f.name)}function n(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function h(c){return"undefined"!==typeof c&&null!==c}function d(c,f,l){var a;w(f)?h(l)?c.setAttribute(f,l):c&&c.getAttribute&&((a=c.getAttribute(f))||"class"!==
14
+ f||(a=c.getAttribute(f+"Name"))):r(f,function(f,l){h(f)?c.setAttribute(l,f):c.removeAttribute(l)});return a}function a(c,f){var l;c||(c={});for(l in f)c[l]=f[l];return c}function e(){for(var c=arguments,f=c.length,l=0;l<f;l++){var a=c[l];if("undefined"!==typeof a&&null!==a)return a}}function g(c,f){b.isMS&&!b.svg&&f&&"undefined"!==typeof f.opacity&&(f.filter="alpha(opacity="+100*f.opacity+")");a(c.style,f)}function x(c,f){return 1E14<c?c:parseFloat(c.toPrecision(f||14))}function C(c,f,l){var a=b.getStyle||
15
+ C;if("width"===f)return f=Math.min(c.offsetWidth,c.scrollWidth),l=c.getBoundingClientRect&&c.getBoundingClientRect().width,l<f&&l>=f-1&&(f=Math.floor(l)),Math.max(0,f-(a(c,"padding-left",!0)||0)-(a(c,"padding-right",!0)||0));if("height"===f)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(a(c,"padding-top",!0)||0)-(a(c,"padding-bottom",!0)||0));y.getComputedStyle||v(27,!0);if(c=y.getComputedStyle(c,void 0)){var d=c.getPropertyValue(f);e(l,"opacity"!==f)&&(d=E(d))}return d}function r(c,f,
16
+ l){for(var a in c)Object.hasOwnProperty.call(c,a)&&f.call(l||c[a],c[a],a,c)}function q(c,f,l){function a(f,l){var a=c.removeEventListener||b.removeEventListenerPolyfill;a&&a.call(c,f,l,!1)}function d(l){var d;if(c.nodeName){if(f){var m={};m[f]=!0}else m=l;r(m,function(c,f){if(l[f])for(d=l[f].length;d--;)a(f,l[f][d].fn)})}}var m="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(m,"hcEvents")){var F=m.hcEvents;f?(m=F[f]||[],l?(F[f]=m.filter(function(c){return l!==c.fn}),a(f,l)):(d(F),
17
+ F[f]=[])):(d(F),delete m.hcEvents)}}function z(c,l,d,m){d=d||{};if(f.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==b)){var F=f.createEvent("Events");F.initEvent(l,!0,!0);d=a(F,d);c.dispatchEvent?c.dispatchEvent(d):c.fireEvent(l,d)}else if(c.hcEvents){d.target||a(d,{preventDefault:function(){d.defaultPrevented=!0},target:c,type:l});F=[];for(var e=c,q=!1;e.hcEvents;)Object.hasOwnProperty.call(e,"hcEvents")&&e.hcEvents[l]&&(F.length&&(q=!0),F.unshift.apply(F,e.hcEvents[l])),e=Object.getPrototypeOf(e);
18
+ q&&F.sort(function(c,f){return c.order-f.order});F.forEach(function(f){!1===f.fn.call(c,d)&&d.preventDefault()})}m&&!d.defaultPrevented&&m.call(c,d)}var m=b.charts,f=b.doc,y=b.win;(v||(v={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,f){return c.find(f)}:function(c,f){var l,a=c.length;for(l=0;l<a;l++)if(f(c[l],l))return c[l]};r({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,f){b[f]=function(l){var a;
19
+ v(32,!1,void 0,(a={},a["Highcharts."+f]="use Array."+c,a));return Array.prototype[c].apply(l,[].slice.call(arguments,1))}});var u,l=function(){var c=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(u?"":c)+f++}}();y.jQuery&&(y.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (b[w(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):m[d(this[0],"data-highcharts-chart")]});c={addEvent:function(c,f,l,a){void 0===a&&(a={});
20
+ var d="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(d,"hcEvents")||(d.hcEvents={});d=d.hcEvents;b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var m=c.addEventListener||b.addEventListenerPolyfill;m&&m.call(c,f,l,b.supportsPassiveEvents?{passive:void 0===a.passive?-1!==f.indexOf("touch"):a.passive,capture:!1}:!1);d[f]||(d[f]=[]);d[f].push({fn:l,order:"number"===typeof a.order?a.order:Infinity});d[f].sort(function(c,f){return c.order-
21
+ f.order});return function(){q(c,f,l)}},arrayMax:function(c){for(var f=c.length,l=c[0];f--;)c[f]>l&&(l=c[f]);return l},arrayMin:function(c){for(var f=c.length,l=c[0];f--;)c[f]<l&&(l=c[f]);return l},attr:d,clamp:function(c,f,l){return c>f?c<l?c:l:f},cleanRecursively:A,clearTimeout:function(c){h(c)&&clearTimeout(c)},correctFloat:x,createElement:function(c,l,d,m,e){c=f.createElement(c);l&&a(c,l);e&&g(c,{padding:"0",border:"none",margin:"0"});d&&g(c,d);m&&m.appendChild(c);return c},css:g,defined:h,destroyObjectProperties:function(c,
22
+ f){r(c,function(l,a){l&&l!==f&&l.destroy&&l.destroy();delete c[a]})},discardElement:function(c){c&&c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,f){for(var l=c.length;l--;)if(c[l]===f){c.splice(l,1);break}},error:v,extend:a,extendClass:function(c,f){var l=function(){};l.prototype=new c;a(l.prototype,f);return l},find:c,fireEvent:z,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,f){for(c=c.split(".");c.length&&h(f);){var l=
23
+ c.shift();if("undefined"===typeof l||"__proto__"===l)return;f=f[l];if(!h(f)||"function"===typeof f||"number"===typeof f.nodeType||f===y)return}return f},getStyle:C,inArray:function(c,f,l){v(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return f.indexOf(c,l)},isArray:D,isClass:t,isDOMElement:k,isFunction:function(c){return"function"===typeof c},isNumber:n,isObject:B,isString:w,keys:function(c){v(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,
24
+ f=arguments,l={},a=function(c,f){"object"!==typeof c&&(c={});r(f,function(l,d){"__proto__"!==d&&"constructor"!==d&&(!B(l,!0)||t(l)||k(l)?c[d]=f[d]:c[d]=a(c[d]||{},l))});return c};!0===f[0]&&(l=f[1],f=Array.prototype.slice.call(f,2));var d=f.length;for(c=0;c<d;c++)l=a(l,f[c]);return l},normalizeTickInterval:function(c,f,l,a,d){var m=c;l=e(l,1);var q=c/l;f||(f=d?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===a&&(1===l?f=f.filter(function(c){return 0===c%1}):.1>=l&&(f=[1/l])));for(a=0;a<f.length&&
25
+ !(m=f[a],d&&m*l>=c||!d&&q<=(f[a]+(f[a+1]||f[a]))/2);a++);return m=x(m*l,-Math.round(Math.log(.001)/Math.LN10))},objectEach:r,offset:function(c){var l=f.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(y.pageYOffset||l.scrollTop)-(l.clientTop||0),left:c.left+(y.pageXOffset||l.scrollLeft)-(l.clientLeft||0),width:c.width,height:c.height}},pad:function(c,f,l){return Array((f||2)+1-String(c).replace("-","").length).join(l||"0")+
26
+ c},pick:e,pInt:E,relativeLength:function(c,f,l){return/%$/.test(c)?f*parseFloat(c)/100+(l||0):parseFloat(c)},removeEvent:q,splat:function(c){return D(c)?c:[c]},stableSort:function(c,f){var l=c.length,a,d;for(d=0;d<l;d++)c[d].safeI=d;c.sort(function(c,l){a=f(c,l);return 0===a?c.safeI-l.safeI:a});for(d=0;d<l;d++)delete c[d].safeI},syncTimeout:function(c,f,l){if(0<f)return setTimeout(c,f,l);c.call(0,l);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
27
+ year:314496E5},uniqueKey:l,useSerialIds:function(c){return u=e(c,u)},wrap:function(c,f,l){var a=c[f];c[f]=function(){var c=Array.prototype.slice.call(arguments),f=arguments,d=this;d.proceed=function(){a.apply(d,arguments.length?arguments:f)};c.unshift(a);c=l.apply(this,c);d.proceed=null;return c}}};"";return c});G(b,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,
28
+ 10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});G(b,"Core/Color/Color.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p){var v=p.isNumber,E=p.merge,w=p.pInt;p=function(){function p(v){this.rgba=[NaN,NaN,NaN,NaN];this.input=v;var k=b.Color;if(k&&k!==p)return new k(v);if(!(this instanceof p))return new p(v);this.init(v)}p.parse=function(b){return b?
29
+ new p(b):p.None};p.prototype.init=function(b){var k;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(d){return new p(d[1])});else if("string"===typeof b){this.input=b=p.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var t=b.length;var n=parseInt(b.substr(1),16);7===t?k=[(n&16711680)>>16,(n&65280)>>8,n&255,1]:4===t&&(k=[(n&3840)>>4|(n&3840)>>8,(n&240)>>4|n&240,(n&15)<<4|n&15,1])}if(!k)for(n=p.parsers.length;n--&&!k;){var h=p.parsers[n];(t=h.regex.exec(b))&&(k=h.parse(t))}}k&&
30
+ (this.rgba=k)};p.prototype.get=function(b){var k=this.input,t=this.rgba;if("object"===typeof k&&"undefined"!==typeof this.stops){var n=E(k);n.stops=[].slice.call(n.stops);this.stops.forEach(function(h,d){n.stops[d]=[n.stops[d][0],h.get(b)]});return n}return t&&v(t[0])?"rgb"===b||!b&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===b?""+t[3]:"rgba("+t.join(",")+")":k};p.prototype.brighten=function(b){var k=this.rgba;if(this.stops)this.stops.forEach(function(n){n.brighten(b)});else if(v(b)&&0!==b)for(var t=
31
+ 0;3>t;t++)k[t]+=w(255*b),0>k[t]&&(k[t]=0),255<k[t]&&(k[t]=255);return this};p.prototype.setOpacity=function(b){this.rgba[3]=b;return this};p.prototype.tweenTo=function(b,k){var t=this.rgba,n=b.rgba;if(!v(t[0])||!v(n[0]))return b.input||"none";b=1!==n[3]||1!==t[3];return(b?"rgba(":"rgb(")+Math.round(n[0]+(t[0]-n[0])*(1-k))+","+Math.round(n[1]+(t[1]-n[1])*(1-k))+","+Math.round(n[2]+(t[2]-n[2])*(1-k))+(b?","+(n[3]+(t[3]-n[3])*(1-k)):"")+")"};p.names={white:"#ffffff",black:"#000000"};p.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
32
+ parse:function(b){return[w(b[1]),w(b[2]),w(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[w(b[1]),w(b[2]),w(b[3]),1]}}];p.None=new p("");return p}();"";return p});G(b,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});G(b,"Core/Time.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p){var v=b.win,E=p.defined,w=
33
+ p.error,D=p.extend,B=p.isObject,k=p.merge,t=p.objectEach,n=p.pad,h=p.pick,d=p.splat,a=p.timeUnits,e=b.isSafari&&v.Intl&&v.Intl.DateTimeFormat.prototype.formatRange,g=b.isSafari&&v.Intl&&!v.Intl.DateTimeFormat.prototype.formatRange;p=function(){function x(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=v.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}x.prototype.get=function(a,d){if(this.variableTimezone||this.timezoneOffset){var e=d.getTime(),g=e-this.getTimezoneOffset(d);
34
+ d.setTime(g);a=d["getUTC"+a]();d.setTime(e);return a}return this.useUTC?d["getUTC"+a]():d["get"+a]()};x.prototype.set=function(a,d,q){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+a](q);var g=this.getTimezoneOffset(d);g=d.getTime()-g;d.setTime(g);d["setUTC"+a](q);a=this.getTimezoneOffset(d);g=d.getTime()+a;return d.setTime(g)}return this.useUTC||e&&"FullYear"===a?d["setUTC"+a](q):d["set"+a](q)};
35
+ x.prototype.update=function(a){var d=h(a&&a.useUTC,!0);this.options=a=k(!0,this.options||{},a);this.Date=a.Date||v.Date||Date;this.timezoneOffset=(this.useUTC=d)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};x.prototype.makeTime=function(a,d,e,z,m,f){if(this.useUTC){var q=this.Date.UTC.apply(0,arguments);var c=this.getTimezoneOffset(q);q+=c;var u=this.getTimezoneOffset(q);c!==u?q+=u-c:c-36E5!==this.getTimezoneOffset(q-
36
+ 36E5)||g||(q-=36E5)}else q=(new this.Date(a,d,h(e,1),h(z,0),h(m,0),h(f,0))).getTime();return q};x.prototype.timezoneOffsetFunction=function(){var a=this,d=this.options,e=d.getTimezoneOffset,g=d.moment||v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(d.timezone){if(g)return function(a){return 6E4*-g.tz(a,d.timezone).utcOffset()};w(25)}return this.useUTC&&e?function(a){return 6E4*e(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};x.prototype.dateFormat=
37
+ function(a,d,e){if(!E(d)||isNaN(d))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=h(a,"%Y-%m-%d %H:%M:%S");var q=this,m=new this.Date(d),f=this.get("Hours",m),g=this.get("Day",m),c=this.get("Date",m),u=this.get("Month",m),l=this.get("FullYear",m),r=b.defaultOptions.lang,C=r&&r.weekdays,x=r&&r.shortWeekdays;m=D({a:x?x[g]:C[g].substr(0,3),A:C[g],d:n(c),e:n(c,2," "),w:g,b:r.shortMonths[u],B:r.months[u],m:n(u+1),o:u+1,y:l.toString().substr(2,2),Y:l,H:n(f),k:f,I:n(f%12||12),l:f%
38
+ 12||12,M:n(this.get("Minutes",m)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:n(m.getSeconds()),L:n(Math.floor(d%1E3),3)},b.dateFormats);t(m,function(c,f){for(;-1!==a.indexOf("%"+f);)a=a.replace("%"+f,"function"===typeof c?c.call(q,d):c)});return e?a.substr(0,1).toUpperCase()+a.substr(1):a};x.prototype.resolveDTLFormat=function(a){return B(a,!0)?a:(a=d(a),{main:a[0],from:a[1],to:a[2]})};x.prototype.getTimeTicks=function(d,e,q,g){var m=this,f=[],y={},c=new m.Date(e),u=d.unitRange,l=d.count||1,z;g=h(g,1);if(E(e)){m.set("Milliseconds",
39
+ c,u>=a.second?0:l*Math.floor(m.get("Milliseconds",c)/l));u>=a.second&&m.set("Seconds",c,u>=a.minute?0:l*Math.floor(m.get("Seconds",c)/l));u>=a.minute&&m.set("Minutes",c,u>=a.hour?0:l*Math.floor(m.get("Minutes",c)/l));u>=a.hour&&m.set("Hours",c,u>=a.day?0:l*Math.floor(m.get("Hours",c)/l));u>=a.day&&m.set("Date",c,u>=a.month?1:Math.max(1,l*Math.floor(m.get("Date",c)/l)));if(u>=a.month){m.set("Month",c,u>=a.year?0:l*Math.floor(m.get("Month",c)/l));var r=m.get("FullYear",c)}u>=a.year&&m.set("FullYear",
40
+ c,r-r%l);u===a.week&&(r=m.get("Day",c),m.set("Date",c,m.get("Date",c)-r+g+(r<g?-7:0)));r=m.get("FullYear",c);g=m.get("Month",c);var C=m.get("Date",c),x=m.get("Hours",c);e=c.getTime();!m.variableTimezone&&m.useUTC||!E(q)||(z=q-e>4*a.month||m.getTimezoneOffset(e)!==m.getTimezoneOffset(q));e=c.getTime();for(c=1;e<q;)f.push(e),e=u===a.year?m.makeTime(r+c*l,0):u===a.month?m.makeTime(r,g+c*l):!z||u!==a.day&&u!==a.week?z&&u===a.hour&&1<l?m.makeTime(r,g,C,x+c*l):e+u*l:m.makeTime(r,g,C+c*l*(u===a.day?1:7)),
41
+ c++;f.push(e);u<=a.hour&&1E4>f.length&&f.forEach(function(c){0===c%18E5&&"000000000"===m.dateFormat("%H%M%S%L",c)&&(y[c]="day")})}f.info=D(d,{higherRanks:y,totalRange:u*l});return f};x.prototype.getDateFormat=function(d,e,q,g){var m=this.dateFormat("%m-%d %H:%M:%S.%L",e),f={millisecond:15,second:12,minute:9,hour:6,day:3},y="millisecond";for(c in a){if(d===a.week&&+this.dateFormat("%w",e)===q&&"00:00:00.000"===m.substr(6)){var c="week";break}if(a[c]>d){c=y;break}if(f[c]&&m.substr(f[c])!=="01-01 00:00:00.000".substr(f[c]))break;
42
+ "week"!==c&&(y=c)}if(c)var u=this.resolveDTLFormat(g[c]).main;return u};return x}();"";return p});G(b,"Core/DefaultOptions.js",[b["Core/Chart/ChartDefaults.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palettes.js"],b["Core/Time.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D){p=p.parse;var v=D.merge,k={colors:E.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
43
43
  shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
44
44
  caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},
45
45
  itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",
46
- minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:u("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,
47
- style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};k.chart.styledMode=!1;"";var r=new v(x(k.global,k.time));b={defaultOptions:k,defaultTime:r,getOptions:function(){return k},setOptions:function(m){x(!0,k,m);if(m.time||m.global)A.time?A.time.update(x(k.global,k.time,
48
- m.global,m.time)):A.time=r;return k}};"";return b});F(b,"Core/Animation/Fx.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A){var x=b.parse,v=u.win,E=A.isNumber,w=A.objectEach;return function(){function k(k,m,h){this.pos=NaN;this.options=m;this.elem=k;this.prop=h}k.prototype.dSetter=function(){var k=this.paths,m=k&&k[0];k=k&&k[1];var h=this.now||0,a=[];if(1!==h&&m&&k)if(m.length===k.length&&1>h)for(var c=0;c<k.length;c++){for(var e=m[c],g=k[c],C=[],y=0;y<g.length;y++){var t=
49
- e[y],p=g[y];E(t)&&E(p)&&("A"!==g[0]||4!==y&&5!==y)?C[y]=t+h*(p-t):C[y]=p}a.push(C)}else a=k;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};k.prototype.update=function(){var k=this.elem,m=this.prop,h=this.now,a=this.options.step;if(this[m+"Setter"])this[m+"Setter"]();else k.attr?k.element&&k.attr(m,h,null,!0):k.style[m]=h+this.unit;a&&a.call(k,h,this)};k.prototype.run=function(b,m,h){var a=this,c=a.options,e=function(c){return e.stopped?!1:a.step(c)},g=v.requestAnimationFrame||function(a){setTimeout(a,
50
- 13)},C=function(){for(var a=0;a<k.timers.length;a++)k.timers[a]()||k.timers.splice(a--,1);k.timers.length&&g(C)};b!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=b,this.end=m,this.unit=h,this.now=this.start,this.pos=0,e.elem=this.elem,e.prop=this.prop,e()&&1===k.timers.push(e)&&g(C)):(delete c.curAnim[this.prop],c.complete&&0===Object.keys(c.curAnim).length&&c.complete.call(this.elem))};k.prototype.step=function(k){var m=+new Date,h=this.options,a=this.elem,c=h.complete,
51
- e=h.duration,g=h.curAnim;if(a.attr&&!a.element)k=!1;else if(k||m>=e+this.startTime){this.now=this.end;this.pos=1;this.update();var C=g[this.prop]=!0;w(g,function(a){!0!==a&&(C=!1)});C&&c&&c.call(a);k=!1}else this.pos=h.easing((m-this.startTime)/e),this.now=this.start+(this.end-this.start)*this.pos,this.update(),k=!0;return k};k.prototype.initPath=function(k,m,h){function a(a,c){for(;a.length<D;){var f=a[0],d=c[D-a.length];d&&"M"===f[0]&&(a[0]="C"===d[0]?["C",f[1],f[2],f[1],f[2],f[1],f[2]]:["L",f[1],
52
- f[2]]);a.unshift(f);C&&(f=a.pop(),a.push(a[a.length-1],f))}}function c(a,c){for(;a.length<D;)if(c=a[Math.floor(a.length/y)-1].slice(),"C"===c[0]&&(c[1]=c[5],c[2]=c[6]),C){var f=a[Math.floor(a.length/y)].slice();a.splice(a.length/2,0,c,f)}else a.push(c)}var e=k.startX,g=k.endX;h=h.slice();var C=k.isArea,y=C?2:1;m=m&&m.slice();if(!m)return[h,h];if(e&&g&&g.length){for(k=0;k<e.length;k++)if(e[k]===g[0]){var t=k;break}else if(e[0]===g[g.length-e.length+k]){t=k;var p=!0;break}else if(e[e.length-1]===g[g.length-
53
- e.length+k]){t=e.length-k;break}"undefined"===typeof t&&(m=[])}if(m.length&&E(t)){var D=h.length+t*y;p?(a(m,h),c(h,m)):(a(h,m),c(m,h))}return[m,h]};k.prototype.fillSetter=function(){k.prototype.strokeSetter.apply(this,arguments)};k.prototype.strokeSetter=function(){this.elem.attr(this.prop,x(this.start).tweenTo(x(this.end),this.pos),null,!0)};k.timers=[];return k}()});F(b,"Core/Animation/AnimationUtilities.js",[b["Core/Animation/Fx.js"],b["Core/Utilities.js"]],function(b,u){function x(a){return r(a)?
54
- m({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function B(a,e){for(var c=b.timers.length;c--;)b.timers[c].elem!==a||e&&e!==b.timers[c].prop||(b.timers[c].stopped=!0)}var v=u.defined,E=u.getStyle,w=u.isArray,k=u.isNumber,r=u.isObject,m=u.merge,h=u.objectEach,a=u.pick;return{animate:function(a,e,g){var c,y="",t,p;if(!r(g)){var D=arguments;g={duration:D[2],easing:D[3],complete:D[4]}}k(g.duration)||(g.duration=400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;
55
- g.curAnim=m(e);h(e,function(n,f){B(a,f);p=new b(a,g,f);t=void 0;"d"===f&&w(e.d)?(p.paths=p.initPath(a,a.pathArray,e.d),p.toD=e.d,c=0,t=1):a.attr?c=a.attr(f):(c=parseFloat(E(a,f))||0,"opacity"!==f&&(y="px"));t||(t=n);"string"===typeof t&&t.match("px")&&(t=t.replace(/px/g,""));p.run(c,t,y)})},animObject:x,getDeferredAnimation:function(a,e,g){var c=x(e),h=0,t=0;(g?[g]:a.series).forEach(function(a){a=x(a.options.animation);h=e&&v(e.defer)?c.defer:Math.max(h,a.duration+a.defer);t=Math.min(c.duration,a.duration)});
56
- a.renderer.forExport&&(h=0);return{defer:Math.max(0,h-t),duration:Math.min(h,t)}},setAnimation:function(c,e){e.renderer.globalAnimation=a(c,e.options.chart.animation,!0)},stop:B}});F(b,"Core/Renderer/HTML/AST.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u){var x=b.SVG_NS,B=u.attr,v=u.createElement,E=u.discardElement,w=u.error,k=u.isString,r=u.objectEach,m=u.splat;try{var h=!!(new DOMParser).parseFromString("","text/html")}catch(a){h=!1}u=function(){function a(a){this.nodes="string"===
57
- typeof a?this.parseMarkup(a):a}a.filterUserAttributes=function(c){r(c,function(e,g){var h=!0;-1===a.allowedAttributes.indexOf(g)&&(h=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(g)&&(h=k(e)&&a.allowedReferences.some(function(a){return 0===e.indexOf(a)}));h||(w("Highcharts warning: Invalid attribute '"+g+"' in config"),delete c[g])});return c};a.setElementHTML=function(c,e){c.innerHTML="";e&&(new a(e)).addToDOM(c)};a.prototype.addToDOM=function(c){function e(c,h){var g;m(c).forEach(function(c){var p=
58
- c.tagName,D=c.textContent?b.doc.createTextNode(c.textContent):void 0;if(p)if("#text"===p)var n=D;else if(-1!==a.allowedTags.indexOf(p)){p=b.doc.createElementNS("svg"===p?x:h.namespaceURI||x,p);var f=c.attributes||{};r(c,function(a,d){"tagName"!==d&&"attributes"!==d&&"children"!==d&&"textContent"!==d&&(f[d]=a)});B(p,a.filterUserAttributes(f));D&&p.appendChild(D);e(c.children||[],p);n=p}else w("Highcharts warning: Invalid tagName '"+p+"' in config");n&&h.appendChild(n);g=n});return g}return e(this.nodes,
59
- c)};a.prototype.parseMarkup=function(a){var c=[];a=a.trim();if(h)a=(new DOMParser).parseFromString(a,"text/html");else{var g=v("div");g.innerHTML=a;a={body:g}}var k=function(a,c){var e=a.nodeName.toLowerCase(),g={tagName:e};"#text"===e&&(g.textContent=a.textContent||"");if(e=a.attributes){var n={};[].forEach.call(e,function(a){n[a.name]=a.value});g.attributes=n}if(a.childNodes.length){var f=[];[].forEach.call(a.childNodes,function(a){k(a,f)});f.length&&(g.children=f)}c.push(g)};[].forEach.call(a.body.childNodes,
60
- function(a){return k(a,c)});g&&E(g);return c};a.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
- a.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");a.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");return a}();"";return u});F(b,"Core/FormatUtilities.js",[b["Core/DefaultOptions.js"],
62
- b["Core/Utilities.js"]],function(b,u){function x(m,h,a,c){m=+m||0;h=+h;var e=B.lang,g=(m.toString().split(".")[1]||"").split("e")[0].length,C=m.toString().split("e"),y=h;if(-1===h)h=Math.min(g,20);else if(!w(h))h=2;else if(h&&C[1]&&0>C[1]){var t=h+ +C[1];0<=t?(C[0]=(+C[0]).toExponential(t).split("e")[0],h=t):(C[0]=C[0].split(".")[0]||0,m=20>h?(C[0]*Math.pow(10,C[1])).toFixed(h):0,C[1]=0)}t=(Math.abs(C[1]?C[0]:m)+Math.pow(10,-Math.max(h,g)-1)).toFixed(h);g=String(r(t));var p=3<g.length?g.length%3:
63
- 0;a=k(a,e.decimalPoint);c=k(c,e.thousandsSep);m=(0>m?"-":"")+(p?g.substr(0,p)+c:"");m=0>+C[1]&&!y?"0":m+g.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+c);h&&(m+=a+t.slice(-h));C[1]&&0!==+m&&(m+="e"+C[1]);return m}var B=b.defaultOptions,v=b.defaultTime,E=u.getNestedProperty,w=u.isNumber,k=u.pick,r=u.pInt;return{dateFormat:function(k,h,a){return v.dateFormat(k,h,a)},format:function(k,h,a){var c="{",e=!1,g=/f$/,C=/\.([0-9])/,y=B.lang,t=a&&a.time||v;a=a&&a.numberFormatter||x;for(var p=[];k;){var D=k.indexOf(c);
64
- if(-1===D)break;var n=k.slice(0,D);if(e){n=n.split(":");c=E(n.shift()||"",h);if(n.length&&"number"===typeof c)if(n=n.join(":"),g.test(n)){var f=parseInt((n.match(C)||["","-1"])[1],10);null!==c&&(c=a(c,f,y.decimalPoint,-1<n.indexOf(",")?y.thousandsSep:""))}else c=t.dateFormat(n,c);p.push(c)}else p.push(n);k=k.slice(D+1);c=(e=!e)?"}":"{"}p.push(k);return p.join("")},numberFormat:x}});F(b,"Core/Renderer/RendererUtilities.js",[b["Core/Utilities.js"]],function(b){var x=b.clamp,A=b.pick,B=b.stableSort,
65
- v;(function(b){function w(k,b,m){var h=k,a=h.reducedLen||b,c=function(a,c){return(c.rank||0)-(a.rank||0)},e=function(a,c){return a.target-c.target},g,C=!0,y=[],t=0;for(g=k.length;g--;)t+=k[g].size;if(t>a){B(k,c);for(t=g=0;t<=a;)t+=k[g].size,g++;y=k.splice(g-1,k.length)}B(k,e);for(k=k.map(function(a){return{size:a.size,targets:[a.target],align:A(a.align,.5)}});C;){for(g=k.length;g--;)a=k[g],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=x(c-a.size*a.align,0,b-a.size);g=k.length;
66
- for(C=!1;g--;)0<g&&k[g-1].pos+k[g-1].size>k[g].pos&&(k[g-1].size+=k[g].size,k[g-1].targets=k[g-1].targets.concat(k[g].targets),k[g-1].align=.5,k[g-1].pos+k[g-1].size>b&&(k[g-1].pos=b-k[g-1].size),k.splice(g,1),C=!0)}h.push.apply(h,y);g=0;k.some(function(a){var c=0;return(a.targets||[]).some(function(){h[g].pos=a.pos+c;if("undefined"!==typeof m&&Math.abs(h[g].pos-h[g].target)>m)return h.slice(0,g+1).forEach(function(a){return delete a.pos}),h.reducedLen=(h.reducedLen||b)-.1*b,h.reducedLen>.1*b&&w(h,
67
- b,m),!0;c+=h[g].size;g++;return!1})});B(h,e);return h}b.distribute=w})(v||(v={}));return v});F(b,"Core/Renderer/SVG/SVGElement.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=b.animate,w=b.animObject,k=b.stop,r=B.deg2rad,m=B.doc,h=B.noop,a=B.svg,c=B.SVG_NS,e=B.win,g=v.addEvent,C=v.attr,y=v.createElement,t=v.css,p=v.defined,D=v.erase,n=v.extend,f=v.fireEvent,q=v.isArray,d=v.isFunction,
68
- z=v.isNumber,l=v.isString,G=v.merge,K=v.objectEach,I=v.pick,H=v.pInt,N=v.syncTimeout,aa=v.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=c;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(a){a=I(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a};b.prototype._defaultSetter=
69
- function(a,c,d){d.setAttribute(c,a)};b.prototype.add=function(a){var c=this.renderer,d=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var f=this.zIndexSetter();f||(a?a.element:c.box).appendChild(d);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(a,c){var d=c?"":this.attr("class")||"";a=(a||"").split(/ /g).reduce(function(a,c){-1===
70
- d.indexOf(c)&&a.push(c);return a},d?[d]:[]).join(" ");a!==d&&this.attr("class",a);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(a,c,d){var f={},e=this.renderer,q=e.alignedObjects,p,n,g;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!d||l(d))this.alignTo=p=d||"renderer",D(q,this),q.push(this),d=void 0}else a=this.alignOptions,c=this.alignByTranslate,p=this.alignTo;d=I(d,e[p],"scrollablePlotBox"===p?
71
- e.plotBox:void 0,e);p=a.align;var z=a.verticalAlign;e=(d.x||0)+(a.x||0);q=(d.y||0)+(a.y||0);"right"===p?n=1:"center"===p&&(n=2);n&&(e+=(d.width-(a.width||0))/n);f[c?"translateX":"x"]=Math.round(e);"bottom"===z?g=1:"middle"===z&&(g=2);g&&(q+=(d.height-(a.height||0))/g);f[c?"translateY":"y"]=Math.round(q);this[this.placed?"animate":"attr"](f);this.placed=!0;this.alignAttr=f;return this};b.prototype.alignSetter=function(a){var d={left:"start",center:"middle",right:"end"};d[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",
72
- d[a]))};b.prototype.animate=function(a,d,c){var f=this,l=w(I(d,this.renderer.globalAnimation,!0));d=l.defer;I(m.hidden,m.msHidden,m.webkitHidden,!1)&&(l.duration=0);0!==l.duration?(c&&(l.complete=c),N(function(){f.element&&x(f,a,l)},d)):(this.attr(a,void 0,c),K(a,function(a,d){l.step&&l.step.call(this,a,{prop:d,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(a){var d=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));
73
- var f=a.split(" ");a=f[f.length-1];if((f=f[0])&&"none"!==f&&B.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(a,d,c){return 2*Number(d)+c});this.removeTextOutline();var l=m.createElementNS(c,"tspan");C(l,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":f,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(a){var d=a.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(a){return d.removeAttribute(a)});
74
- l.appendChild(d)});var e=m.createElementNS(c,"tspan");e.textContent="\u200b";["x","y"].forEach(function(a){var c=d.getAttribute(a);c&&e.setAttribute(a,c)});l.appendChild(e);d.insertBefore(l,d.firstChild)}};b.prototype.attr=function(a,d,c,f){var l=this.element,e=this.symbolCustomAttribs,q,p=this,n,g;if("string"===typeof a&&"undefined"!==typeof d){var z=a;a={};a[z]=d}"string"===typeof a?p=(this[a+"Getter"]||this._defaultGetter).call(this,a,l):(K(a,function(d,c){n=!1;f||k(this,c);this.symbolName&&-1!==
75
- e.indexOf(c)&&(q||(this.symbolAttr(a),q=!0),n=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);n||(g=this[c+"Setter"]||this._defaultSetter,g.call(this,d,c,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d,g))},this),this.afterSetters());c&&c.call(this);return p};b.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")};b.prototype.crisp=function(a,d){d=d||a.strokeWidth||
76
- 0;var c=Math.round(d)%2/2;a.x=Math.floor(a.x||this.x||0)+c;a.y=Math.floor(a.y||this.y||0)+c;a.width=Math.floor((a.width||this.width||0)-2*c);a.height=Math.floor((a.height||this.height||0)-2*c);p(a.strokeWidth)&&(a.strokeWidth=d);return a};b.prototype.complexColor=function(a,d,c){var l=this.renderer,e,n,g,z,h,P,b,t,D,k,y=[],C;f(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?n="radialGradient":a.linearGradient&&(n="linearGradient");if(n){g=a[n];h=l.gradients;P=a.stops;D=c.radialReference;
77
- q(g)&&(a[n]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===n&&D&&!p(g.gradientUnits)&&(z=g,g=G(g,l.getRadialAttr(D,z),{gradientUnits:"userSpaceOnUse"}));K(g,function(a,d){"id"!==d&&y.push(d,a)});K(P,function(a){y.push(a)});y=y.join(",");if(h[y])k=h[y].attr("id");else{g.id=k=aa();var f=h[y]=l.createElement(n).attr(g).add(l.defs);f.radAttr=z;f.stops=[];P.forEach(function(a){0===a[1].indexOf("rgba")?(e=A.parse(a[1]),b=e.get("rgb"),t=e.get("a")):(b=a[1],t=1);a=
78
- l.createElement("stop").attr({offset:a[0],"stop-color":b,"stop-opacity":t}).add(f);f.stops.push(a)})}C="url("+l.url+"#"+k+")";c.setAttribute(d,C);c.gradient=y;a.toString=function(){return C}}})};b.prototype.css=function(d){var c=this.styles,f={},l=this.element,e=["textOutline","textOverflow","width"],q="",g=!c;d&&d.color&&(d.fill=d.color);c&&K(d,function(a,d){c&&c[d]!==a&&(f[d]=a,g=!0)});if(g){c&&(d=n(c,f));if(d)if(null===d.width||"auto"===d.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&
79
- d.width)var p=this.textWidth=H(d.width);this.styles=d;p&&!a&&this.renderer.forExport&&delete d.width;if(l.namespaceURI===this.SVG_NS){var z=function(a,d){return"-"+d.toLowerCase()};K(d,function(a,d){-1===e.indexOf(d)&&(q+=d.replace(/([A-Z])/g,z)+":"+a+";")});q&&C(l,"style",q)}else t(l,d);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),d&&d.textOutline&&this.applyTextOutline(d.textOutline))}return this};b.prototype.dashstyleSetter=function(a){var d=this["stroke-width"];"inherit"===
80
- d&&(d=1);if(a=a&&a.toLowerCase()){var c=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=c.length;a--;)c[a]=""+H(c[a])*I(d,NaN);a=c.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};b.prototype.destroy=function(){var a=this,d=a.element||{},c=a.renderer,f=d.ownerSVGElement,l=c.isSVG&&
81
- "SPAN"===d.nodeName&&a.parentGroup||void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;k(a);if(a.clipPath&&f){var e=a.clipPath;[].forEach.call(f.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(e.element.id)&&a.removeAttribute("clip-path")});a.clipPath=e.destroy()}if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(d);for(c.styledMode||a.destroyShadows();l&&l.div&&0===l.div.childNodes.length;)d=
82
- l.parentGroup,a.safeRemoveChild(l.div),delete l.div,l=d;a.alignTo&&D(c.alignedObjects,a);K(a,function(d,c){a[c]&&a[c].parentGroup===a&&a[c].destroy&&a[c].destroy();delete a[c]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(a,d){var c=a.getElementsByTagName("text")[0];if(c){if(c.removeAttribute("dx"),c.removeAttribute("dy"),d.element.setAttribute("id",""),this.textPathWrapper&&
83
- c.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)c.appendChild(a[0]);c.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};b.prototype.dSetter=function(a,d,c){q(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,d,c){return d&&d.join?
84
- (c?a+" ":"")+d.join(" "):(d||"").toString()},""));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[d]!==a&&(c.setAttribute(d,a),this[d]=a)};b.prototype.fadeOut=function(a){var d=this;d.animate({opacity:0},{duration:I(a,150),complete:function(){d.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(a,d,c){"string"===typeof a?c.setAttribute(d,a):a&&this.complexColor(a,d,c)};b.prototype.getBBox=function(a,c){var f=this.renderer,l=this.element,e=this.styles,q=this.textStr,g=f.cache,z=f.cacheKeys,h=l.namespaceURI===
85
- this.SVG_NS;c=I(c,this.rotation,0);var D=f.styledMode?l&&b.prototype.getStyle.call(l,"font-size"):e&&e.fontSize,k;if(p(q)){var y=q.toString();-1===y.indexOf("<")&&(y=y.replace(/[0-9]/g,"0"));y+=["",c,D,this.textWidth,e&&e.textOverflow,e&&e.fontWeight].join()}y&&!a&&(k=g[y]);if(!k){if(h||f.forExport){try{var G=this.fakeTS&&function(a){var d=l.querySelector(".highcharts-text-outline");d&&t(d,{display:a})};d(G)&&G("none");k=l.getBBox?n({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight};d(G)&&
86
- G("")}catch(W){""}if(!k||0>k.width)k={width:0,height:0}}else k=this.htmlGetBBox();f.isSVG&&(a=k.width,f=k.height,h&&(k.height=f={"11px,17":14,"13px,20":16}[e&&e.fontSize+","+Math.round(f)]||f),c&&(e=c*r,k.width=Math.abs(f*Math.sin(e))+Math.abs(a*Math.cos(e)),k.height=Math.abs(f*Math.cos(e))+Math.abs(a*Math.sin(e))));if(y&&(""===q||0<k.height)){for(;250<z.length;)delete g[z.shift()];g[y]||z.push(y);g[y]=k}}return k};b.prototype.getStyle=function(a){return e.getComputedStyle(this.element||this,"").getPropertyValue(a)};
87
- b.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)};b.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};b.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};b.prototype.init=function(a,d){this.element="span"===d?y(d):m.createElementNS(this.SVG_NS,d);this.renderer=a;f(this,"afterInit")};b.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};b.prototype.on=function(a,d){var c=
88
- this.onEvents;if(c[a])c[a]();c[a]=g(this.element,a,d);return this};b.prototype.opacitySetter=function(a,d,c){this.opacity=a=Number(Number(a).toFixed(3));c.setAttribute(d,a)};b.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(l(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};b.prototype.safeRemoveChild=function(a){var d=
89
- a.parentNode;d&&d.removeChild(a)};b.prototype.setRadialReference=function(a){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(a,d.radAttr));return this};b.prototype.setTextPath=function(a,d){var c=this.element,f=this.text?this.text.element:c,l={textAnchor:"text-anchor"},q=!1,g=this.textPathWrapper,n=!g;d=G(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d);var b=u.filterUserAttributes(d.attributes);
90
- if(a&&d&&d.enabled){g&&null===g.element.parentNode?(n=!0,g=g.destroy()):g&&this.removeTextOutline.call(g.parentGroup);this.options&&this.options.padding&&(b.dx=-this.options.padding);g||(this.textPathWrapper=g=this.renderer.createElement("textPath"),q=!0);var t=g.element;(d=a.element.getAttribute("id"))||a.element.setAttribute("id",d=aa());if(n)for(f.setAttribute("y",0),z(b.dx)&&f.setAttribute("x",-b.dx),a=[].slice.call(f.childNodes),n=0;n<a.length;n++){var k=a[n];k.nodeType!==e.Node.TEXT_NODE&&"tspan"!==
91
- k.nodeName||t.appendChild(k)}q&&g&&g.add({element:f});t.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+d);p(b.dy)&&(t.parentNode.setAttribute("dy",b.dy),delete b.dy);p(b.dx)&&(t.parentNode.setAttribute("dx",b.dx),delete b.dx);K(b,function(a,d){t.setAttribute(l[d]||d,a)});c.removeAttribute("transform");this.removeTextOutline.call(g);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=h}else g&&(delete this.updateTransform,
92
- delete this.applyTextOutline,this.destroyTextPath(c,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(a,d,c){var f=[],l=this.element,e=this.oldShadowOptions,q={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},g=!1,p;!0===a?p=q:"object"===typeof a&&(p=n(q,a));p&&(p&&e&&K(p,function(a,d){a!==e[d]&&(g=!0)}),g&&this.destroyShadows(),this.oldShadowOptions=
93
- p);if(!p)this.destroyShadows();else if(!this.shadows){var z=p.opacity/p.width;var h=this.parentInverted?"translate("+p.offsetY+", "+p.offsetX+")":"translate("+p.offsetX+", "+p.offsetY+")";for(q=1;q<=p.width;q++){var b=l.cloneNode(!1);var t=2*p.width+1-2*q;C(b,{stroke:a.color||"#000000","stroke-opacity":z*q,"stroke-width":t,transform:h,fill:"none"});b.setAttribute("class",(b.getAttribute("class")||"")+" highcharts-shadow");c&&(C(b,"height",Math.max(C(b,"height")-t,0)),b.cutHeight=t);d?d.element.appendChild(b):
94
- l.parentNode&&l.parentNode.insertBefore(b,l);f.push(b)}this.shadows=f}return this};b.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};b.prototype.strokeSetter=function(a,d,c){this[d]=a;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===a&&this.hasStroke?(c.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
95
- (c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),d=0;if(a.indexOf("px")===a.length-2)d=H(a);else if(""!==a){var f=m.createElementNS(c,"rect");C(f,{width:a,"stroke-width":0});this.element.parentNode.appendChild(f);d=f.getBBox().width;f.parentNode.removeChild(f)}return d};b.prototype.symbolAttr=function(a){var d=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(c){d[c]=
96
- I(a[c],d[c])});d.attr({d:d.renderer.symbols[d.symbolName](d.x,d.y,d.width,d.height,d)})};b.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(a){var d=this.element,c=d.getElementsByTagName("title")[0]||m.createElementNS(this.SVG_NS,"title");d.insertBefore?d.insertBefore(c,d.firstChild):d.appendChild(c);c.textContent=String(I(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
97
- ">")};b.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};b.prototype.translate=function(a,d){return this.attr({translateX:a,translateY:d})};b.prototype.updateShadows=function(a,d,c){var f=this.shadows;if(f)for(var l=f.length;l--;)c.call(f[l],"height"===a?Math.max(d-(f[l].cutHeight||0),0):"d"===a?this.d:d,a,f[l])};b.prototype.updateTransform=function(){var a=this.scaleX,d=this.scaleY,c=this.inverted,f=this.rotation,l=this.matrix,e=this.element,q=this.translateX||
98
- 0,g=this.translateY||0;c&&(q+=this.width,g+=this.height);q=["translate("+q+","+g+")"];p(l)&&q.push("matrix("+l.join(",")+")");c?q.push("rotate(90) scale(-1,1)"):f&&q.push("rotate("+f+" "+I(this.rotationOriginX,e.getAttribute("x"),0)+" "+I(this.rotationOriginY,e.getAttribute("y")||0)+")");(p(a)||p(d))&&q.push("scale("+I(a,1)+" "+I(d,1)+")");q.length&&e.setAttribute("transform",q.join(" "))};b.prototype.visibilitySetter=function(a,d,c){"inherit"===a?c.removeAttribute(d):this[d]!==a&&c.setAttribute(d,
99
- a);this[d]=a};b.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};b.prototype.zIndexSetter=function(a,d){var c=this.renderer,f=this.parentGroup,l=(f||c).element||c.box,e=this.element;c=l===c.box;var q=!1;var g=this.added;var n;p(a)?(e.setAttribute("data-z-index",a),a=+a,this[d]===a&&(g=!1)):p(this[d])&&e.removeAttribute("data-z-index");this[d]=a;if(g){(a=this.zIndex)&&f&&(f.handleZ=!0);d=l.childNodes;for(n=d.length-1;0<=
100
- n&&!q;n--){f=d[n];g=f.getAttribute("data-z-index");var z=!p(g);if(f!==e)if(0>a&&z&&!c&&!n)l.insertBefore(e,d[n]),q=!0;else if(H(g)<=a||z&&(!p(a)||0<=a))l.insertBefore(e,d[n+1]||null),q=!0}q||(l.insertBefore(e,d[c?3:0]||null),q=!0)}return q};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=
101
- b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(a,d){this[d]=a;this.doTransform=!0};"";return b});F(b,"Core/Renderer/RendererRegistry.js",[b["Core/Globals.js"]],function(b){var x;(function(x){x.rendererTypes={};var u;x.getRendererType=function(b){void 0===b&&(b=u);return x.rendererTypes[b]||x.rendererTypes[u]};x.registerRendererType=function(v,E,w){x.rendererTypes[v]=E;if(!u||w)u=v,b.Renderer=E}})(x||(x={}));return x});F(b,"Core/Renderer/SVG/SVGLabel.js",
102
- [b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),B=u.defined,v=u.extend,E=u.isNumber,w=u.merge,k=u.pick,r=u.removeEvent;
103
- return function(m){function h(a,c,e,g,b,k,t,p,D,n){var f=m.call(this)||this;f.paddingLeftSetter=f.paddingSetter;f.paddingRightSetter=f.paddingSetter;f.init(a,"g");f.textStr=c;f.x=e;f.y=g;f.anchorX=k;f.anchorY=t;f.baseline=D;f.className=n;f.addClass("button"===n?"highcharts-no-tooltip":"highcharts-label");n&&f.addClass("highcharts-"+n);f.text=a.text(void 0,0,0,p).attr({zIndex:1});var q;"string"===typeof b&&((q=/^url\((.*?)\)$/.test(b))||f.renderer.symbols[b])&&(f.symbolKey=b);f.bBox=h.emptyBBox;f.padding=
104
- 3;f.baselineOffset=0;f.needsBox=a.styledMode||q;f.deferredAttr={};f.alignFactor=0;return f}x(h,m);h.prototype.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==this.alignFactor&&(this.alignFactor=a,this.bBox&&E(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(a,c){this.anchorX=a;this.boxAttr(c,Math.round(a)-this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(a,c){this.anchorY=a;this.boxAttr(c,a-this.ySetting)};h.prototype.boxAttr=function(a,
105
- c){this.box?this.box.attr(a,c):this.deferredAttr[a]=c};h.prototype.css=function(a){if(a){var c={};a=w(a);h.textProps.forEach(function(e){"undefined"!==typeof a[e]&&(c[e]=a[e],delete a[e])});this.text.css(c);var e="width"in c;"fontSize"in c||"fontWeight"in c?this.updateTextPadding():e&&this.updateBoxSize()}return b.prototype.css.call(this,a)};h.prototype.destroy=function(){r(this.element,"mouseenter");r(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
106
- b.prototype.destroy.call(this)};h.prototype.fillSetter=function(a,c){a&&(this.needsBox=!0);this.fill=a;this.boxAttr(c,a)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a=this.padding,c=k(this.paddingLeft,a);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-a}};h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],
107
- 10):0)%2/2};h.prototype.heightSetter=function(a){this.heightSetting=a};h.prototype.onAdd=function(){var a=this.textStr;this.text.add(this);this.attr({text:B(a)?a:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};h.prototype.paddingSetter=function(a,c){E(a)?a!==this[c]&&(this[c]=a,this.updateTextPadding()):this[c]=void 0};h.prototype.rSetter=function(a,c){this.boxAttr(c,a)};h.prototype.shadow=function(a){a&&!this.renderer.styledMode&&(this.updateBoxSize(),
108
- this.box&&this.box.shadow(a));return this};h.prototype.strokeSetter=function(a,c){this.stroke=a;this.boxAttr(c,a)};h.prototype["stroke-widthSetter"]=function(a,c){a&&(this.needsBox=!0);this["stroke-width"]=a;this.boxAttr(c,a)};h.prototype["text-alignSetter"]=function(a){this.textAlign=a};h.prototype.textSetter=function(a){"undefined"!==typeof a&&this.text.attr({text:a});this.updateTextPadding()};h.prototype.updateBoxSize=function(){var a=this.text.element.style,c={},e=this.padding,g=this.bBox=E(this.widthSetting)&&
109
- E(this.heightSetting)&&!this.textAlign||!B(this.text.textStr)?h.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||g.height||0)+2*e;a=this.renderer.fontMetrics(a&&a.fontSize,this.text);this.baselineOffset=e+Math.min((this.text.firstLineMetrics||a).b,g.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&(this.box||(e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),e.addClass(("button"===
110
- this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)),e=this.getCrispAdjust(),c.x=e,c.y=(this.baseline?-this.baselineOffset:0)+e,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr(v(c,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=function(){var a=this.text;this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,e=k(this.paddingLeft,this.padding);B(this.widthSetting)&&this.bBox&&
111
- ("center"===this.textAlign||"right"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(e!==a.x||c!==a.y)a.attr("x",e),a.hasBoxWidthChanged&&(this.bBox=a.getBBox(!0)),"undefined"!==typeof c&&a.attr("y",c);a.x=e;a.y=c};h.prototype.widthSetter=function(a){this.widthSetting=E(a)?a:void 0};h.prototype.getPaddedWidth=function(){var a=this.padding,c=k(this.paddingLeft,a);a=k(this.paddingRight,a);return(this.widthSetting||this.bBox.width||0)+c+a};h.prototype.xSetter=
112
- function(a){this.x=a;this.alignFactor&&(a-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(a);this.attr("translateX",this.xSetting)};h.prototype.ySetter=function(a){this.ySetting=this.y=Math.round(a);this.attr("translateY",this.ySetting)};h.emptyBBox={width:0,height:0,x:0,y:0};h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return h}(b)});F(b,"Core/Renderer/SVG/Symbols.js",
113
- [b["Core/Utilities.js"]],function(b){function x(b,r,m,h,a){var c=[];if(a){var e=a.start||0,g=w(a.r,m);m=w(a.r,h||m);var k=(a.end||0)-.001;h=a.innerR;var y=w(a.open,.001>Math.abs((a.end||0)-e-2*Math.PI)),t=Math.cos(e),p=Math.sin(e),D=Math.cos(k),n=Math.sin(k);e=w(a.longArc,.001>k-e-Math.PI?0:1);c.push(["M",b+g*t,r+m*p],["A",g,m,0,e,w(a.clockwise,1),b+g*D,r+m*n]);v(h)&&c.push(y?["M",b+h*D,r+h*n]:["L",b+h*D,r+h*n],["A",h,h,0,e,v(a.clockwise)?1-a.clockwise:0,b+h*t,r+h*p]);y||c.push(["Z"])}return c}function A(b,
114
- r,m,h,a){return a&&a.r?B(b,r,m,h,a):[["M",b,r],["L",b+m,r],["L",b+m,r+h],["L",b,r+h],["Z"]]}function B(b,r,m,h,a){a=a&&a.r||0;return[["M",b+a,r],["L",b+m-a,r],["C",b+m,r,b+m,r,b+m,r+a],["L",b+m,r+h-a],["C",b+m,r+h,b+m,r+h,b+m-a,r+h],["L",b+a,r+h],["C",b,r+h,b,r+h,b,r+h-a],["L",b,r+a],["C",b,r,b,r,b+a,r]]}var v=b.defined,E=b.isNumber,w=b.pick;return{arc:x,callout:function(b,r,m,h,a){var c=Math.min(a&&a.r||0,m,h),e=c+6,g=a&&a.anchorX;a=a&&a.anchorY||0;var k=B(b,r,m,h,{r:c});if(!E(g))return k;b+g>=m?
115
- a>r+e&&a<r+h-e?k.splice(3,1,["L",b+m,a-6],["L",b+m+6,a],["L",b+m,a+6],["L",b+m,r+h-c]):k.splice(3,1,["L",b+m,h/2],["L",g,a],["L",b+m,h/2],["L",b+m,r+h-c]):0>=b+g?a>r+e&&a<r+h-e?k.splice(7,1,["L",b,a+6],["L",b-6,a],["L",b,a-6],["L",b,r+c]):k.splice(7,1,["L",b,h/2],["L",g,a],["L",b,h/2],["L",b,r+c]):a&&a>h&&g>b+e&&g<b+m-e?k.splice(5,1,["L",g+6,r+h],["L",g,r+h+6],["L",g-6,r+h],["L",b+c,r+h]):a&&0>a&&g>b+e&&g<b+m-e&&k.splice(1,1,["L",g-6,r],["L",g,r-6],["L",g+6,r],["L",m-c,r]);return k},circle:function(b,
116
- r,m,h){return x(b+m/2,r+h/2,m/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,r,m,h){return[["M",b+m/2,r],["L",b+m,r+h/2],["L",b+m/2,r+h],["L",b,r+h/2],["Z"]]},rect:A,roundedRect:B,square:A,triangle:function(b,r,m,h){return[["M",b+m/2,r],["L",b+m,r+h],["L",b,r+h],["Z"]]},"triangle-down":function(b,r,m,h){return[["M",b,r],["L",b+m,r],["L",b+m/2,r+h],["Z"]]}}});F(b,"Core/Renderer/SVG/TextBuilder.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,
117
- u,A){var x=u.doc,v=u.SVG_NS,E=u.win,w=A.attr,k=A.isString,r=A.objectEach,m=A.pick;return function(){function h(a){var c=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=c&&c.lineHeight;this.textOutline=c&&c.textOutline;this.ellipsis=!(!c||"ellipsis"!==c.textOverflow);this.noWrap=!(!c||"nowrap"!==c.whiteSpace);this.fontSize=c&&c.fontSize}h.prototype.buildSVG=function(){var a=this.svgElement,c=a.element,e=a.renderer,g=m(a.textStr,"").toString(),h=-1!==g.indexOf("<"),
118
- y=c.childNodes;e=this.width&&!a.added&&e.box;var t=/<br.*?>/g,p=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(p!==a.textCache){a.textCache=p;delete a.actualWidth;for(p=y.length;p--;)c.removeChild(y[p]);h||this.ellipsis||this.width||-1!==g.indexOf(" ")&&(!this.noWrap||t.test(g))?""!==g&&(e&&e.appendChild(c),g=new b(g),this.modifyTree(g.nodes),g.addToDOM(a.element),this.modifyDOM(),this.ellipsis&&-1!==(c.textContent||"").indexOf("\u2026")&&a.attr("title",
119
- this.unescapeEntities(a.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(c)):c.appendChild(x.createTextNode(this.unescapeEntities(g)));k(this.textOutline)&&a.applyTextOutline&&a.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var a=this,c=this.svgElement,e=w(c.element,"x");c.firstLineMetrics=void 0;for(var g;g=c.element.firstChild;)if(/^[\s\u200B]*$/.test(g.textContent||" "))c.element.removeChild(g);else break;[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"),function(g,
120
- b){g.nextSibling&&g.previousSibling&&(0===b&&1===g.previousSibling.nodeType&&(c.firstLineMetrics=c.renderer.fontMetrics(void 0,g.previousSibling)),w(g,{dy:a.getLineHeight(g.nextSibling),x:e}))});var b=this.width||0;if(b){var h=function(g,h){var n=g.textContent||"",f=n.replace(/([^\^])-/g,"$1- ").split(" "),q=!a.noWrap&&(1<f.length||1<c.element.childNodes.length),d=a.getLineHeight(h),p=0,l=c.actualWidth;if(a.ellipsis)n&&a.truncate(g,n,void 0,0,Math.max(0,b-parseInt(a.fontSize||12,10)),function(a,d){return a.substring(0,
121
- d)+"\u2026"});else if(q){n=[];for(q=[];h.firstChild&&h.firstChild!==g;)q.push(h.firstChild),h.removeChild(h.firstChild);for(;f.length;)f.length&&!a.noWrap&&0<p&&(n.push(g.textContent||""),g.textContent=f.join(" ").replace(/- /g,"-")),a.truncate(g,void 0,f,0===p?l||0:0,b,function(a,d){return f.slice(0,d).join(" ").replace(/- /g,"-")}),l=c.actualWidth,p++;q.forEach(function(a){h.insertBefore(a,g)});n.forEach(function(a){h.insertBefore(x.createTextNode(a),g);a=x.createElementNS(v,"tspan");a.textContent=
122
- "\u200b";w(a,{dy:d,x:e});h.insertBefore(a,g)})}},t=function(a){[].slice.call(a.childNodes).forEach(function(e){e.nodeType===E.Node.TEXT_NODE?h(e,a):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(c.actualWidth=0),t(e))})};t(c.element)}};h.prototype.getLineHeight=function(a){var c;a=a.nodeType===E.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(c=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),
123
- 10):this.renderer.fontMetrics(c,a||this.svgElement.element).h};h.prototype.modifyTree=function(a){var c=this,e=function(g,b){var h=g.tagName,t=c.renderer.styledMode,p=g.attributes||{};if("b"===h||"strong"===h)t?p["class"]="highcharts-strong":p.style="font-weight:bold;"+(p.style||"");else if("i"===h||"em"===h)t?p["class"]="highcharts-emphasized":p.style="font-style:italic;"+(p.style||"");k(p.style)&&(p.style=p.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(p["class"]="highcharts-br",g.textContent=
124
- "\u200b",(b=a[b+1])&&b.textContent&&(b.textContent=b.textContent.replace(/^ +/gm,"")));"#text"!==h&&"a"!==h&&(g.tagName="tspan");g.attributes=p;g.children&&g.children.filter(function(a){return"#text"!==a.tagName}).forEach(e)};a.forEach(e)};h.prototype.truncate=function(a,c,e,g,b,h){var t=this.svgElement,p=t.renderer,D=t.rotation,n=[],f=e?1:0,q=(c||e||"").length,d=q,z,l=function(d,f){f=f||d;var l=a.parentNode;if(l&&"undefined"===typeof n[f])if(l.getSubStringLength)try{n[f]=g+l.getSubStringLength(0,
125
- e?f+1:f)}catch(N){""}else p.getSpanWidth&&(a.textContent=h(c||e,d),n[f]=g+p.getSpanWidth(t,a));return n[f]};t.rotation=0;var y=l(a.textContent.length);if(g+y>b){for(;f<=q;)d=Math.ceil((f+q)/2),e&&(z=h(e,d)),y=l(d,z&&z.length-1),f===q?f=q+1:y>b?q=d-1:f=d;0===q?a.textContent="":c&&q===c.length-1||(a.textContent=z||h(c||e,d))}e&&e.splice(0,d);t.actualWidth=y;t.rotation=D};h.prototype.unescapeEntities=function(a,c){r(this.renderer.escapes,function(e,g){c&&-1!==c.indexOf(e)||(a=a.toString().replace(new RegExp(e,
126
- "g"),g))});return a};return h}()});F(b,"Core/Renderer/SVG/SVGRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGLabel.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Renderer/SVG/TextBuilder.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r){var m=A.charts,h=A.deg2rad,a=A.doc,c=A.isFirefox,e=A.isMS,g=A.isWebKit,C=A.noop,y=A.SVG_NS,t=A.symbolSizes,p=A.win,
127
- D=r.addEvent,n=r.attr,f=r.createElement,q=r.css,d=r.defined,z=r.destroyObjectProperties,l=r.extend,G=r.isArray,K=r.isNumber,I=r.isObject,H=r.isString,N=r.merge,x=r.pick,Q=r.pInt,S=r.uniqueKey,X;A=function(){function y(a,d,c,f,l,e,q){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,d,c,f,l,e,q)}y.prototype.init=function(d,f,l,e,g,
128
- b,z){var h=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),t=h.element;z||h.css(this.getStyle(e));d.appendChild(t);n(d,"dir","ltr");-1===d.innerHTML.indexOf("xmlns")&&n(t,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=t;this.boxWrapper=h;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 9.3.1"));this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=g;this.styledMode=
129
- z;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(f,l,!1);var y;c&&d.getBoundingClientRect&&(f=function(){q(d,{left:0,top:0});y=d.getBoundingClientRect();q(d,{left:Math.ceil(y.left)-y.left+"px",top:Math.ceil(y.top)-y.top+"px"})},f(),this.unSubPixelFix=D(p,"resize",f))};y.prototype.definition=function(a){return(new b([a])).addToDOM(this.defs.element)};y.prototype.getReferenceURL=function(){if((c||g)&&a.getElementsByTagName("base").length){if(!d(X)){var f=S();f=(new b([{tagName:"svg",
130
- attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:f},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+f+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);q(f,{position:"fixed",top:0,left:0,zIndex:9E5});var l=a.elementFromPoint(6,6);X="hitme"===(l&&l.id);a.body.removeChild(f)}if(X)return p.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
131
- "\\$1").replace(/ /g,"%20")}return""};y.prototype.getStyle=function(a){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)};y.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};y.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};y.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();z(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());
132
- this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};y.prototype.createElement=function(a){var d=new this.Element;d.init(this,a);return d};y.prototype.getRadialAttr=function(a,d){return{cx:a[0]-a[2]/2+(d.cx||0)*a[2],cy:a[1]-a[2]/2+(d.cy||0)*a[2],r:(d.r||0)*a[2]}};y.prototype.buildText=function(a){(new k(a)).buildSVG()};y.prototype.getContrast=function(a){a=u.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"};y.prototype.button=function(a,d,
133
- c,f,q,g,n,p,z,h){var t=this.label(a,d,c,z,void 0,void 0,h,void 0,"button"),y=this.styledMode,k=0,G=q?N(q):{};a=G&&G.style||{};G=b.filterUserAttributes(G);t.attr(N({padding:8,r:2},G));if(!y){G=N({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:a},G);var m=G.style;delete G.style;g=N(G,{fill:"#e6e6e6"},b.filterUserAttributes(g||{}));var L=g.style;delete g.style;n=N(G,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(n||
134
- {}));var C=n.style;delete n.style;p=N(G,{style:{color:"#cccccc"}},b.filterUserAttributes(p||{}));var P=p.style;delete p.style}D(t.element,e?"mouseover":"mouseenter",function(){3!==k&&t.setState(1)});D(t.element,e?"mouseout":"mouseleave",function(){3!==k&&t.setState(k)});t.setState=function(a){1!==a&&(t.state=k=a);t.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);y||t.attr([G,g,n,p][a||0]).css([m,L,C,P][a||
135
- 0])};y||t.attr(G).css(l({cursor:"default"},m));return t.on("touchstart",function(a){return a.stopPropagation()}).on("click",function(a){3!==k&&f.call(t,a)})};y.prototype.crispLine=function(a,c,f){void 0===f&&(f="round");var l=a[0],e=a[1];d(l[1])&&l[1]===e[1]&&(l[1]=e[1]=Math[f](l[1])-c%2/2);d(l[2])&&l[2]===e[2]&&(l[2]=e[2]=Math[f](l[2])+c%2/2);return a};y.prototype.path=function(a){var d=this.styledMode?{}:{fill:"none"};G(a)?d.d=a:I(a)&&l(d,a);return this.createElement("path").attr(d)};y.prototype.circle=
136
- function(a,d,c){a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:d,r:c};d=this.createElement("circle");d.xSetter=d.ySetter=function(a,d,c){c.setAttribute("c"+d,a)};return d.attr(a)};y.prototype.arc=function(a,d,c,f,l,e){I(a)?(f=a,d=f.y,c=f.r,a=f.x):f={innerR:f,start:l,end:e};a=this.symbol("arc",a,d,c,c,f);a.r=c;return a};y.prototype.rect=function(a,d,c,f,l,e){l=I(a)?a.r:l;var q=this.createElement("rect");a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:d,width:Math.max(c,0),height:Math.max(f,0)};this.styledMode||
137
- ("undefined"!==typeof e&&(a["stroke-width"]=e,a=q.crisp(a)),a.fill="none");l&&(a.r=l);q.rSetter=function(a,d,c){q.r=a;n(c,{rx:a,ry:a})};q.rGetter=function(){return q.r||0};return q.attr(a)};y.prototype.setSize=function(a,d,c){this.width=a;this.height=d;this.boxWrapper.animate({width:a,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:x(c,!0)?void 0:0});this.alignElements()};y.prototype.g=function(a){var d=this.createElement("g");return a?d.attr({"class":"highcharts-"+
138
- a}):d};y.prototype.image=function(a,d,c,f,l,e){var q={preserveAspectRatio:"none"},g=function(a,d){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",d):a.setAttribute("hc-svg-href",d)};K(d)&&(q.x=d);K(c)&&(q.y=c);K(f)&&(q.width=f);K(l)&&(q.height=l);var b=this.createElement("image").attr(q);d=function(d){g(b.element,a);e.call(b,d)};e?(g(b.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),c=new p.Image,D(c,"load",d),c.src=a,c.complete&&d({})):
139
- g(b.element,a);return b};y.prototype.symbol=function(c,e,g,b,n,p){var z=this,h=/^url\((.*?)\)$/,y=h.test(c),D=!y&&(this.symbols[c]?c:"circle"),G=D&&this.symbols[D],k;if(G){"number"===typeof e&&(k=G.call(this.symbols,Math.round(e||0),Math.round(g||0),b||0,n||0,p));var C=this.path(k);z.styledMode||C.attr("fill","none");l(C,{symbolName:D||void 0,x:e,y:g,width:b,height:n});p&&l(C,p)}else if(y){var L=c.match(h)[1];var P=C=this.image(L);P.imgwidth=x(t[L]&&t[L].width,p&&p.width);P.imgheight=x(t[L]&&t[L].height,
140
- p&&p.height);var K=function(a){return a.attr({width:a.width,height:a.height})};["width","height"].forEach(function(a){P[a+"Setter"]=function(a,c){var f=this["img"+c];this[c]=a;d(f)&&(p&&"within"===p.backgroundSize&&this.width&&this.height&&(f=Math.round(f*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(c,f),this.alignByTranslate||(a=((this[c]||0)-f)/2,this.attr("width"===c?{translateX:a}:{translateY:a})))}});d(e)&&P.attr({x:e,y:g});P.isImg=!0;
141
- d(P.imgwidth)&&d(P.imgheight)?K(P):(P.attr({width:0,height:0}),f("img",{onload:function(){var d=m[z.chartIndex];0===this.width&&(q(this,{position:"absolute",top:"-999em"}),a.body.appendChild(this));t[L]={width:this.width,height:this.height};P.imgwidth=this.width;P.imgheight=this.height;P.element&&K(P);this.parentNode&&this.parentNode.removeChild(this);z.imgCount--;if(!z.imgCount&&d&&!d.hasLoaded)d.onload()},src:L}),this.imgCount++)}return C};y.prototype.clipRect=function(a,d,c,f){var l=S()+"-",e=
142
- this.createElement("clipPath").attr({id:l}).add(this.defs);a=this.rect(a,d,c,f,0).add(e);a.id=l;a.clipPath=e;a.count=0;return a};y.prototype.text=function(a,c,f,l){var e={};if(l&&(this.allowHTML||!this.forExport))return this.html(a,c,f);e.x=Math.round(c||0);f&&(e.y=Math.round(f));d(a)&&(e.text=a);a=this.createElement("text").attr(e);if(!l||this.forExport&&!this.allowHTML)a.xSetter=function(a,d,c){for(var f=c.getElementsByTagName("tspan"),l=c.getAttribute(d),e=0,q;e<f.length;e++)q=f[e],q.getAttribute(d)===
143
- l&&q.setAttribute(d,a);c.setAttribute(d,a)};return a};y.prototype.fontMetrics=function(a,d){a=!this.styledMode&&/px/.test(a)||!p.getComputedStyle?a||d&&d.style&&d.style.fontSize||this.style&&this.style.fontSize:d&&v.prototype.getStyle.call(d,"font-size");a=/px/.test(a)?Q(a):12;d=24>a?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}};y.prototype.rotCorr=function(a,d,c){var f=a;d&&c&&(f=Math.max(f*Math.cos(d*h),4));return{x:-a/3*Math.sin(d*h),y:f}};y.prototype.pathToSegments=function(a){for(var d=
144
- [],c=[],f={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<a.length;l++)H(c[0])&&K(a[l])&&c.length===f[c[0].toUpperCase()]&&a.splice(l,0,c[0].replace("M","L").replace("m","l")),"string"===typeof a[l]&&(c.length&&d.push(c.slice(0)),c.length=0),c.push(a[l]);d.push(c.slice(0));return d};y.prototype.label=function(a,d,c,f,l,e,q,g,b){return new E(this,a,d,c,f,l,e,q,g,b)};y.prototype.alignElements=function(){this.alignedObjects.forEach(function(a){return a.align()})};return y}();l(A.prototype,{Element:v,SVG_NS:y,
145
- escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:w,draw:C});B.registerRendererType("svg",A,!0);"";return A});F(b,"Core/Renderer/HTML/HTMLElement.js",[b["Core/Globals.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,
146
- e){function b(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),v=b.isFirefox,E=b.isMS,w=b.isWebKit,k=b.win,r=A.css,m=A.defined,h=A.extend,a=A.pick,c=A.pInt;return function(e){function b(){return null!==e&&e.apply(this,arguments)||this}x(b,e);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a);var c=b.prototype,e=a.prototype;e.getSpanCorrection=c.getSpanCorrection;e.htmlCss=c.htmlCss;e.htmlGetBBox=c.htmlGetBBox;
147
- e.htmlUpdateTransform=c.htmlUpdateTransform;e.setSpanRotation=c.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,c,e){this.xCorr=-a*e;this.yCorr=-c};b.prototype.htmlCss=function(c){var e="SPAN"===this.element.tagName&&c&&"width"in c,b=a(e&&c.width,void 0);if(e){delete c.width;this.textWidth=b;var g=!0}c&&"ellipsis"===c.textOverflow&&(c.whiteSpace="nowrap",c.overflow="hidden");this.styles=h(this.styles,c);r(this.element,c);g&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=
148
- function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};b.prototype.htmlUpdateTransform=function(){if(this.added){var a=this.renderer,e=this.element,b=this.translateX||0,g=this.translateY||0,h=this.x||0,n=this.y||0,f=this.textAlign||"left",q={left:0,center:.5,right:1}[f],d=this.styles;d=d&&d.whiteSpace;r(e,{marginLeft:b,marginTop:g});!a.styledMode&&this.shadows&&this.shadows.forEach(function(a){r(a,{marginLeft:b+1,marginTop:g+1})});this.inverted&&
149
- [].forEach.call(e.childNodes,function(d){a.invertChild(d,e)});if("SPAN"===e.tagName){var z=this.rotation,l=this.textWidth&&c(this.textWidth),G=[z,f,e.innerHTML,this.textWidth,this.textAlign].join(),k=void 0;k=!1;if(l!==this.oldTextWidth){if(this.textPxLength)var I=this.textPxLength;else r(e,{width:"",whiteSpace:d||"nowrap"}),I=e.offsetWidth;(l>this.oldTextWidth||I>l)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(r(e,{width:I>l||z?l+"px":"auto",display:"block",whiteSpace:d||
150
- "normal"}),this.oldTextWidth=l,k=!0)}this.hasBoxWidthChanged=k;G!==this.cTT&&(k=a.fontMetrics(e.style.fontSize,e).b,!m(z)||z===(this.oldRotation||0)&&f===this.oldAlign||this.setSpanRotation(z,q,k),this.getSpanCorrection(!m(z)&&this.textPxLength||e.offsetWidth,k,q,z,f));r(e,{left:h+(this.xCorr||0)+"px",top:n+(this.yCorr||0)+"px"});this.cTT=G;this.oldRotation=z;this.oldAlign=f}}else this.alignOnAdd=!0};b.prototype.setSpanRotation=function(a,c,e){var b={},g=E&&!/Edge/.test(k.navigator.userAgent)?"-ms-transform":
151
- w?"-webkit-transform":v?"MozTransform":k.opera?"-o-transform":void 0;g&&(b[g]=b.transform="rotate("+a+"deg)",b[g+(v?"Origin":"-origin")]=b.transformOrigin=100*c+"% "+e+"px",r(this.element,b))};b.composedClasses=[];return b}(u)});F(b,"Core/Renderer/HTML/HTMLRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||
152
- {__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),E=B.attr,w=B.createElement,k=B.extend,r=B.pick;return function(m){function h(){return null!==m&&m.apply(this,arguments)||this}x(h,m);h.compose=function(a){-1===h.composedClasses.indexOf(a)&&(h.composedClasses.push(a),a.prototype.html=
153
- h.prototype.html);return a};h.prototype.html=function(a,c,e){var g=this.createElement("span"),h=g.element,y=g.renderer,t=y.isSVG,p=function(a,c){["opacity","visibility"].forEach(function(f){a[f+"Setter"]=function(e,d,b){var l=a.div?a.div.style:c;u.prototype[f+"Setter"].call(this,e,d,b);l&&(l[d]=e)}});a.addedSetters=!0};g.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,b.setElementHTML(this.element,r(a,"")),this.textStr=a,g.doTransform=!0)};t&&p(g,g.element.style);
154
- g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(a,c){"align"===c?g.alignValue=g.textAlign=a:g[c]=a;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:a,x:Math.round(c),y:Math.round(e)}).css({position:"absolute"});y.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});h.style.whiteSpace="nowrap";g.css=g.htmlCss;t&&(g.add=function(a){var c=y.box.parentNode,f=[];if(this.parentGroup=a){var e=
155
- a.div;if(!e){for(;a;)f.push(a),a=a.parentGroup;f.reverse().forEach(function(a){function d(d,c){a[c]=d;"translateX"===c?q.left=d+"px":q.top=d+"px";a.doTransform=!0}var l=E(a.element,"class"),b=a.styles||{};e=a.div=a.div||w("div",l?{className:l}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents,visibility:a.visibility},e||c);var q=e.style;k(a,{classSetter:function(a){return function(d){this.element.setAttribute("class",
156
- d);a.className=d}}(e),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:a.onEvents},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||p(a)})}}else e=c;e.appendChild(h);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};h.composedClasses=[];return h}(A)});F(b,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",
157
- range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,
158
- minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",
159
- lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",
160
- textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||(b={}));return b});F(b,"Core/Foundation.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,A=b.isFunction,B=b.objectEach,v=b.removeEvent,
161
- E;(function(b){b.registerEventOptions=function(b,r){b.eventOptions=b.eventOptions||{};B(r.events,function(k,h){b.eventOptions[h]!==k&&(b.eventOptions[h]&&(v(b,h,b.eventOptions[h]),delete b.eventOptions[h]),A(k)&&(b.eventOptions[h]=k,x(b,h,k)))})}})(E||(E={}));return E});F(b,"Core/Axis/Tick.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A){var x=u.deg2rad,v=A.clamp,E=A.correctFloat,w=A.defined,k=A.destroyObjectProperties,r=A.extend,m=A.fireEvent,h=A.isNumber,
162
- a=A.merge,c=A.objectEach,e=A.pick;u=function(){function g(a,c,e,b,g){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=c;this.type=e||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;m(this,"init");e||b||this.addLabel()}g.prototype.addLabel=function(){var a=this,c=a.axis,g=c.options,p=c.chart,k=c.categories,n=c.logarithmic,f=c.names,q=a.pos,d=e(a.options&&a.options.labels,g.labels),z=c.tickPositions,l=q===z[0],G=q===z[z.length-1],K=
163
- (!d.step||1===d.step)&&1===c.tickInterval;z=z.info;var I=a.label,H;k=this.parameters.category||(k?e(k[q],f[q],q):q);n&&h(k)&&(k=E(n.lin2log(k)));if(c.dateTime)if(z){var N=p.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&z.higherRanks[q]||z.unitName]);var x=N.main}else h(k)&&(x=c.dateTime.getXDateFormat(k,g.dateTimeLabelFormats||{}));a.isFirst=l;a.isLast=G;var u={axis:c,chart:p,dateTimeLabelFormat:x,isFirst:l,isLast:G,pos:q,tick:a,tickPositionInfo:z,value:k};m(this,"labelFormat",u);var v=function(a){return d.formatter?
164
- d.formatter.call(a,a):d.format?(a.text=c.defaultLabelFormatter.call(a),b.format(d.format,a,p)):c.defaultLabelFormatter.call(a,a)};g=v.call(u,u);var A=N&&N.list;a.shortenLabel=A?function(){for(H=0;H<A.length;H++)if(r(u,{dateTimeLabelFormat:A[H]}),I.attr({text:v.call(u,u)}),I.getBBox().width<c.getSlotWidth(a)-2*d.padding)return;I.attr({text:""})}:void 0;K&&c._addedPlotLB&&a.moveLabel(g,d);w(I)||a.movedLabel?I&&I.textStr!==g&&!K&&(!I.textWidth||d.style.width||I.styles.width||I.css({width:null}),I.attr({text:g}),
165
- I.textPxLength=I.getBBox().width):(a.label=I=a.createLabel({x:0,y:0},g,d),a.rotation=0)};g.prototype.createLabel=function(c,e,b){var g=this.axis,h=g.chart;if(c=w(e)&&b.enabled?h.renderer.text(e,c.x,c.y,b.useHTML).add(g.labelGroup):null)h.styledMode||c.css(a(b.style)),c.textPxLength=c.getBBox().width;return c};g.prototype.destroy=function(){k(this,this.axis)};g.prototype.getPosition=function(a,c,e,b){var g=this.axis,n=g.chart,f=b&&n.oldChartHeight||n.chartHeight;a={x:a?E(g.translate(c+e,null,null,
166
- b)+g.transB):g.left+g.offset+(g.opposite?(b&&n.oldChartWidth||n.chartWidth)-g.right-g.left:0),y:a?f-g.bottom+g.offset-(g.opposite?g.height:0):E(f-g.translate(c+e,null,null,b)-g.transB)};a.y=v(a.y,-1E5,1E5);m(this,"afterGetPosition",{pos:a});return a};g.prototype.getLabelPosition=function(a,c,e,b,g,n,f,q){var d=this.axis,p=d.transA,l=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,h=d.staggerLines,t=d.tickRotCorr||{x:0,y:0},k=b||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?
167
- .5:1),y={},D=g.y;w(D)||(D=0===d.side?e.rotation?-8:-e.getBBox().height:2===d.side?t.y+8:Math.cos(e.rotation*x)*(t.y-e.getBBox(!1,0).height/2));a=a+g.x+k+t.x-(n&&b?n*p*(l?-1:1):0);c=c+D-(n&&!b?n*p*(l?1:-1):0);h&&(e=f/(q||1)%h,d.opposite&&(e=h-e-1),c+=d.labelOffset/h*e);y.x=a;y.y=Math.round(c);m(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:n,index:f});return y};g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g.prototype.getMarkPath=
168
- function(a,c,e,b,g,n){return n.crispLine([["M",a,c],["L",a+(g?0:-e),c+(g?e:0)]],b)};g.prototype.handleOverflow=function(a){var c=this.axis,b=c.options.labels,g=a.x,h=c.chart.chartWidth,n=c.chart.spacing,f=e(c.labelLeft,Math.min(c.pos,n[3]));n=e(c.labelRight,Math.max(c.isRadial?0:c.pos+c.len,h-n[1]));var q=this.label,d=this.rotation,z={left:0,center:.5,right:1}[c.labelAlign||q.attr("align")],l=q.getBBox().width,k=c.getSlotWidth(this),m={},I=k,H=1,r;if(d||"justify"!==b.overflow)0>d&&g-z*l<f?r=Math.round(g/
169
- Math.cos(d*x)-f):0<d&&g+z*l>n&&(r=Math.round((h-g)/Math.cos(d*x)));else if(h=g+(1-z)*l,g-z*l<f?I=a.x+I*(1-z)-f:h>n&&(I=n-a.x+I*z,H=-1),I=Math.min(k,I),I<k&&"center"===c.labelAlign&&(a.x+=H*(k-I-z*(k-Math.min(l,I)))),l>I||c.autoRotation&&(q.styles||{}).width)r=I;r&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(r)+"px",(b.style||{}).textOverflow||(m.textOverflow="ellipsis"),q.css(m)))};g.prototype.moveLabel=function(a,e){var b=this,g=b.label,h=b.axis,n=h.reversed,f=!1;g&&g.textStr===a?
170
- (b.movedLabel=g,f=!0,delete b.label):c(h.ticks,function(d){f||d.isNew||d===b||!d.label||d.label.textStr!==a||(b.movedLabel=d.label,f=!0,d.labelPos=b.movedLabel.xy,delete d.label)});if(!f&&(b.labelPos||g)){var q=b.labelPos||g.xy;g=h.horiz?n?0:h.width+h.left:q.x;h=h.horiz?q.y:n?h.width+h.left:0;b.movedLabel=b.createLabel({x:g,y:h},a,e);b.movedLabel&&b.movedLabel.attr({opacity:0})}};g.prototype.render=function(a,c,b){var g=this.axis,h=g.horiz,n=this.pos,f=e(this.tickmarkOffset,g.tickmarkOffset);n=this.getPosition(h,
171
- n,f,c);f=n.x;var q=n.y;g=h&&f===g.pos+g.len||!h&&q===g.pos?-1:1;h=e(b,this.label&&this.label.newOpacity,1);b=e(b,1);this.isActive=!0;this.renderGridLine(c,b,g);this.renderMark(n,b,g);this.renderLabel(n,c,h,a);this.isNew=!1;m(this,"afterRender")};g.prototype.renderGridLine=function(a,c,b){var g=this.axis,h=g.options,n={},f=this.pos,q=this.type,d=e(this.tickmarkOffset,g.tickmarkOffset),z=g.chart.renderer,l=this.gridLine,k=h.gridLineWidth,t=h.gridLineColor,m=h.gridLineDashStyle;"minor"===this.type&&
172
- (k=h.minorGridLineWidth,t=h.minorGridLineColor,m=h.minorGridLineDashStyle);l||(g.chart.styledMode||(n.stroke=t,n["stroke-width"]=k||0,n.dashstyle=m),q||(n.zIndex=1),a&&(c=0),this.gridLine=l=z.path().attr(n).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(g.gridGroup));if(l&&(b=g.getPlotLinePath({value:f+d,lineWidth:l.strokeWidth()*b,force:"pass",old:a})))l[a||this.isNew?"attr":"animate"]({d:b,opacity:c})};g.prototype.renderMark=function(a,c,b){var g=this.axis,h=g.options,n=g.chart.renderer,f=
173
- this.type,q=g.tickSize(f?f+"Tick":"tick"),d=a.x;a=a.y;var z=e(h["minor"!==f?"tickWidth":"minorTickWidth"],!f&&g.isXAxis?1:0);h=h["minor"!==f?"tickColor":"minorTickColor"];var l=this.mark,k=!l;q&&(g.opposite&&(q[0]=-q[0]),l||(this.mark=l=n.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||l.attr({stroke:h,"stroke-width":z})),l[k?"attr":"animate"]({d:this.getMarkPath(d,a,q[0],l.strokeWidth()*b,g.horiz,n),opacity:c}))};g.prototype.renderLabel=function(a,c,b,g){var p=
174
- this.axis,n=p.horiz,f=p.options,q=this.label,d=f.labels,z=d.step;p=e(this.tickmarkOffset,p.tickmarkOffset);var l=a.x;a=a.y;var k=!0;q&&h(l)&&(q.xy=a=this.getLabelPosition(l,a,q,n,d,p,g,z),this.isFirst&&!this.isLast&&!f.showFirstLabel||this.isLast&&!this.isFirst&&!f.showLastLabel?k=!1:!n||d.step||d.rotation||c||0===b||this.handleOverflow(a),z&&g%z&&(k=!1),k&&h(a.y)?(a.opacity=b,q[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(q.attr("y",-9999),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=
175
- function(){var a=this.label,c=this.axis,e=c.reversed;if(a&&!this.isNew){var b=c.horiz?e?c.left:c.width+c.left:a.xy.x;e=c.horiz?a.xy.y:e?c.width+c.top:c.top;a.animate({x:b,y:e,opacity:0},void 0,a.destroy);delete this.label}c.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return u});F(b,"Core/Axis/Axis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/AxisDefaults.js"],b["Core/Color/Color.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],
176
- b["Core/Axis/Tick.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k){var r=b.animObject,m=B.defaultOptions,h=v.registerEventOptions,a=E.deg2rad,c=k.arrayMax,e=k.arrayMin,g=k.clamp,C=k.correctFloat,y=k.defined,t=k.destroyObjectProperties,p=k.erase,D=k.error,n=k.extend,f=k.fireEvent,q=k.getMagnitude,d=k.isArray,z=k.isNumber,l=k.isString,G=k.merge,K=k.normalizeTickInterval,I=k.objectEach,H=k.pick,N=k.relativeLength,x=k.removeEvent,Q=k.splat,S=k.syncTimeout;b=function(){function b(a,c){this.zoomEnabled=
177
- this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=
178
- this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,c)}b.prototype.init=function(a,c){var d=c.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");f(this,"init",{userOptions:c});this.opposite=H(c.opposite,this.opposite);this.side=H(c.side,
179
- this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var l=this.options,b=l.labels,e=l.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=H(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled;this.hasNames="category"===e||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=y(l.linkedTo);this.ticks=
180
- {};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;c=H(l.crosshair,Q(a.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===c?{}:c;-1===a.axes.indexOf(this)&&(d?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&d&&"undefined"===typeof this.reversed&&
181
- (this.reversed=!0);this.labelRotation=z(b.rotation)?b.rotation:void 0;h(this,l);f(this,"afterInit")};b.prototype.setOptions=function(a){this.options=G(u.defaultXAxisOptions,"yAxis"===this.coll&&u.defaultYAxisOptions,[u.defaultTopAxisOptions,u.defaultRightAxisOptions,u.defaultBottomAxisOptions,u.defaultLeftAxisOptions][this.side],G(m[this.coll],a));f(this,"afterSetOptions",{userOptions:a})};b.prototype.defaultLabelFormatter=function(a){var c=this.axis;a=this.chart.numberFormatter;var d=z(this.value)?
182
- this.value:NaN,f=c.chart.time,l=this.dateTimeLabelFormat,b=m.lang,e=b.numericSymbols;b=b.numericSymbolMagnitude||1E3;var g=c.logarithmic?Math.abs(d):c.tickInterval,q=e&&e.length;if(c.categories)var n=""+this.value;else if(l)n=f.dateFormat(l,d);else if(q&&1E3<=g)for(;q--&&"undefined"===typeof n;)c=Math.pow(b,q+1),g>=c&&0===10*d%c&&null!==e[q]&&0!==d&&(n=a(d/c,-1)+e[q]);"undefined"===typeof n&&(n=1E4<=Math.abs(d)?a(d,-1):a(d,-1,void 0,""));return n};b.prototype.getSeriesExtremes=function(){var a=this,
183
- c=a.chart,d;f(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(f){if(f.visible||!c.options.chart.ignoreHiddenSeries){var l=f.options,b=l.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=b&&(b=null);if(a.isXAxis){if(l=f.xData,l.length){l=a.logarithmic?l.filter(a.validatePositiveValue):l;d=f.getXExtremes(l);var e=d.min;var g=d.max;z(e)||e instanceof Date||
184
- (l=l.filter(z),d=f.getXExtremes(l),e=d.min,g=d.max);l.length&&(a.dataMin=Math.min(H(a.dataMin,e),e),a.dataMax=Math.max(H(a.dataMax,g),g))}}else if(f=f.applyExtremes(),z(f.dataMin)&&(e=f.dataMin,a.dataMin=Math.min(H(a.dataMin,e),e)),z(f.dataMax)&&(g=f.dataMax,a.dataMax=Math.max(H(a.dataMax,g),g)),y(b)&&(a.threshold=b),!l.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});f(this,"afterGetSeriesExtremes")};b.prototype.translate=function(a,c,d,f,l,b){var e=this.linkedParent||this,g=f&&e.old?
185
- e.old.min:e.min,q=e.minPixelPadding;l=(e.isOrdinal||e.brokenAxis&&e.brokenAxis.hasBreaks||e.logarithmic&&l)&&e.lin2val;var n=1,h=0;f=f&&e.old?e.old.transA:e.transA;f||(f=e.transA);d&&(n*=-1,h=e.len);e.reversed&&(n*=-1,h-=n*(e.sector||e.len));c?(a=(a*n+h-q)/f+g,l&&(a=e.lin2val(a))):(l&&(a=e.val2lin(a)),a=z(g)?n*(a-g)*f+h+n*q+(z(b)?f*b:0):void 0);return a};b.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};b.prototype.toValue=function(a,c){return this.translate(a-
186
- (c?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(a){function c(a,c,d){if("pass"!==m&&a<c||a>d)m?a=g(a,c,d):r=!0;return a}var d=this,l=d.chart,e=d.left,b=d.top,q=a.old,n=a.value,h=a.lineWidth,p=q&&l.oldChartHeight||l.chartHeight,k=q&&l.oldChartWidth||l.chartWidth,t=d.transB,G=a.translatedValue,m=a.force,y,D,K,I,r;a={value:n,lineWidth:h,old:q,force:m,acrossPanes:a.acrossPanes,translatedValue:G};f(this,"getPlotLinePath",a,function(a){G=H(G,d.translate(n,null,null,q));G=g(G,
187
- -1E5,1E5);y=K=Math.round(G+t);D=I=Math.round(p-G-t);z(G)?d.horiz?(D=b,I=p-d.bottom,y=K=c(y,e,e+d.width)):(y=e,K=k-d.right,D=I=c(D,b,b+d.height)):(r=!0,m=!1);a.path=r&&!m?null:l.renderer.crispLine([["M",y,D],["L",K,I]],h||1)});return a.path};b.prototype.getLinearTickPositions=function(a,c,d){var f=C(Math.floor(c/a)*a);d=C(Math.ceil(d/a)*a);var l=[],e;C(f+a)===f&&(e=20);if(this.single)return[c];for(c=f;c<=d;){l.push(c);c=C(c+a,e);if(c===b)break;var b=c}return l};b.prototype.getMinorTickInterval=function(){var a=
188
- this.options;return!0===a.minorTicks?H(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};b.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,d=this.minorTickInterval,f=this.pointRangePadding||0,l=this.min-f;f=this.max+f;var e=f-l,b=[];if(e&&e/d<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(a,c,f){c&&b.push.apply(b,g.getLogTickPositions(d,f[c-1],f[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=
189
- b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(d),l,f,a.startOfWeek));else for(a=l+(c[0]-l)%d;a<=f&&a!==b[0];a+=d)b.push(a)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var a=this.options,d=this.logarithmic,f=this.min,l=this.max,b=0,g,q,n,h;this.isXAxis&&"undefined"===typeof this.minRange&&!d&&(y(a.min)||y(a.max)||y(a.floor)||y(a.ceiling)?this.minRange=null:(this.series.forEach(function(a){n=a.xData;h=a.xIncrement?1:n.length-1;if(1<n.length)for(g=
190
- h;0<g;g--)if(q=n[g]-n[g-1],!b||q<b)b=q}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(l-f<this.minRange){var z=this.dataMax-this.dataMin>=this.minRange;var p=this.minRange;var k=(p-l+f)/2;k=[f-k,H(a.min,f-k)];z&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=c(k);l=[f+p,H(a.max,f+p)];z&&(l[2]=d?d.log2lin(this.dataMax):this.dataMax);l=e(l);l-f<p&&(k[0]=l-p,k[1]=H(a.min,l-p),f=c(k))}this.min=f;this.max=l};b.prototype.getClosest=function(){var a;this.categories?
191
- a=1:this.series.forEach(function(c){var d=c.closestPointRange,f=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&y(d)&&f&&(a=y(a)?Math.min(a,d):d)});return a};b.prototype.nameToX=function(a){var c=d(this.categories),f=c?this.categories:this.names,l=a.options.x;a.series.requireSorting=!1;y(l)||(l=this.options.uniqueNames?c?f.indexOf(a.name):H(f.keys[a.name],-1):a.series.autoIncrement());if(-1===l){if(!c)var b=f.length}else b=l;"undefined"!==typeof b&&(this.names[b]=a.name,this.names.keys[a.name]=
192
- b);return b};b.prototype.updateNames=function(){var a=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)a.max=Math.max(a.max,c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(d,f){if(d&&d.options&&"undefined"!==typeof d.name){var l=a.nameToX(d);"undefined"!==typeof l&&l!==d.x&&(d.x=l,c.xData[f]=l)}})}))};b.prototype.setAxisTranslation=
193
- function(){var a=this,c=a.max-a.min,d=a.linkedParent,b=!!a.categories,e=a.isXAxis,g=a.axisPointRange||0,q=0,n=0,h=a.transA;if(e||b||g){var z=a.getClosest();d?(q=d.minPointOffset,n=d.pointRangePadding):a.series.forEach(function(c){var d=b?1:e?H(c.options.pointRange,z,0):a.axisPointRange||0,f=c.options.pointPlacement;g=Math.max(g,d);if(!a.single||b)c=c.is("xrange")?!e:e,q=Math.max(q,c&&l(f)?0:d/2),n=Math.max(n,c&&"on"===f?0:d)});d=a.ordinal&&a.ordinal.slope&&z?a.ordinal.slope/z:1;a.minPointOffset=q*=
194
- d;a.pointRangePadding=n*=d;a.pointRange=Math.min(g,a.single&&b?1:c);e&&(a.closestPointRange=z)}a.translationSlope=a.transA=h=a.staticScale||a.len/(c+n||1);a.transB=a.horiz?a.left:a.bottom;a.minPixelPadding=h*q;f(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(a){var c=this.chart,d=this.logarithmic,l=this.options,b=this.isXAxis,e=this.isLinked,g=l.tickPixelInterval,n=this.categories,h=this.softThreshold,p=l.maxPadding,
195
- k=l.minPadding,G=z(l.tickInterval)&&0<=l.tickInterval?l.tickInterval:void 0,t=z(this.threshold)?this.threshold:null;this.dateTime||n||e||this.getTickAmount();var m=H(this.userMin,l.min);var I=H(this.userMax,l.max);if(e){this.linkedParent=c[this.coll][l.linkedTo];var r=this.linkedParent.getExtremes();this.min=H(r.min,r.dataMin);this.max=H(r.max,r.dataMax);l.type!==this.linkedParent.options.type&&D(11,1,c)}else{if(h&&y(t))if(this.dataMin>=t)r=t,k=0;else if(this.dataMax<=t){var N=t;p=0}this.min=H(m,
196
- r,this.dataMin);this.max=H(I,N,this.dataMax)}d&&(this.positiveValuesOnly&&!a&&0>=Math.min(this.min,H(this.dataMin,this.min))&&D(10,1,c),this.min=C(d.log2lin(this.min),16),this.max=C(d.log2lin(this.max),16));this.range&&y(this.max)&&(this.userMin=this.min=m=Math.max(this.dataMin,this.minFromRange()),this.userMax=I=this.max,this.range=null);f(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(n||this.axisPointRange||this.stacking&&this.stacking.usePercentage||
197
- e)&&y(this.min)&&y(this.max)&&(c=this.max-this.min)&&(!y(m)&&k&&(this.min-=c*k),!y(I)&&p&&(this.max+=c*p));z(this.userMin)||(z(l.softMin)&&l.softMin<this.min&&(this.min=m=l.softMin),z(l.floor)&&(this.min=Math.max(this.min,l.floor)));z(this.userMax)||(z(l.softMax)&&l.softMax>this.max&&(this.max=I=l.softMax),z(l.ceiling)&&(this.max=Math.min(this.max,l.ceiling)));h&&y(this.dataMin)&&(t=t||0,!y(m)&&this.min<t&&this.dataMin>=t?this.min=this.options.minRange?Math.min(t,this.max-this.minRange):t:!y(I)&&
198
- this.max>t&&this.dataMax<=t&&(this.max=this.options.minRange?Math.max(t,this.min+this.minRange):t));z(this.min)&&z(this.max)&&!this.chart.polar&&this.min>this.max&&(y(this.options.min)?this.max=this.min:y(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:e&&this.linkedParent&&!G&&g===this.linkedParent.options.tickPixelInterval?G=this.linkedParent.tickInterval:H(G,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-
199
- 1,1):void 0,n?1:(this.max-this.min)*g/Math.max(this.len,g));if(b&&!a){var P=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(a){a.forceCrop=a.forceCropping&&a.forceCropping();a.processData(P)});f(this,"postProcessData",{hasExtemesChanged:P})}this.setAxisTranslation();f(this,"initialAxisTranslation");this.pointRange&&!G&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));a=H(l.minTickInterval,this.dateTime&&!this.series.some(function(a){return a.noSharedTooltip})?
200
- this.closestPointRange:0);!G&&this.tickInterval<a&&(this.tickInterval=a);this.dateTime||this.logarithmic||G||(this.tickInterval=K(this.tickInterval,void 0,q(this.tickInterval),H(l.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var a=this.options,c=a.tickPositions,d=this.getMinorTickInterval(),l=this.hasVerticalPanning(),b="colorAxis"===this.coll,
201
- e=(b||!l)&&a.startOnTick;l=(b||!l)&&a.endOnTick;b=a.tickPositioner;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&y(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=c&&c.slice();!d&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?
202
- d=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(d=[this.min,this.max],D(19,!1,this.chart)),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,b&&(b=b.apply(this,
203
- [this.min,this.max])))&&(this.tickPositions=d=b);this.paddedTicks=d.slice(0);this.trimTicks(d,e,l);this.isLinked||(this.single&&2>d.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),c||b||this.adjustTickAmount());f(this,"afterSetTickPositions")};b.prototype.trimTicks=function(a,c,d){var l=a[0],b=a[a.length-1],e=!this.isOrdinal&&this.minPointOffset||0;f(this,"trimTicks");if(!this.isLinked){if(c&&-Infinity!==
204
- l)this.min=l;else for(;this.min-e>a[0];)a.shift();if(d)this.max=b;else for(;this.max+e<a[a.length-1];)a.pop();0===a.length&&y(l)&&!this.options.tickPositions&&a.push((b+l)/2)}};b.prototype.alignToOthers=function(){var a={},c=this.options,d;!1!==this.chart.options.chart.alignTicks&&c.alignTicks&&!1!==c.startOnTick&&!1!==c.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(c){var f=c.options;f=[c.horiz?f.left:f.top,f.width,f.height,f.pane].join();c.series.length&&(a[f]?d=!0:a[f]=1)});
205
- return d};b.prototype.getTickAmount=function(){var a=this.options,c=a.tickPixelInterval,d=a.tickAmount;!y(a.tickInterval)&&!d&&this.len<c&&!this.isRadial&&!this.logarithmic&&a.startOnTick&&a.endOnTick&&(d=2);!d&&this.alignToOthers()&&(d=Math.ceil(this.len/c)+1);4>d&&(this.finalTickAmt=d,d=5);this.tickAmount=d};b.prototype.adjustTickAmount=function(){var a=this.options,c=this.tickInterval,d=this.tickPositions,f=this.tickAmount,l=this.finalTickAmt,b=d&&d.length,e=H(this.threshold,this.softThreshold?
206
- 0:null);if(this.hasData()&&z(this.min)&&z(this.max)){if(b<f){for(;d.length<f;)d.length%2||this.min===e?d.push(C(d[d.length-1]+c)):d.unshift(C(d[0]-c));this.transA*=(b-1)/(f-1);this.min=a.startOnTick?d[0]:Math.min(this.min,d[0]);this.max=a.endOnTick?d[d.length-1]:Math.max(this.max,d[d.length-1])}else b>f&&(this.tickInterval*=2,this.setTickPositions());if(y(l)){for(c=a=d.length;c--;)(3===l&&1===c%2||2>=l&&0<c&&c<a-1)&&d.splice(c,1);this.finalTickAmt=void 0}}};b.prototype.setScale=function(){var a=!1,
207
- c=!1;this.series.forEach(function(d){a=a||d.isDirtyData||d.isDirty;c=c||d.xAxis&&d.xAxis.isDirty||!1});this.setAxisSize();var d=this.len!==(this.old&&this.old.len);d||a||c||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=d||this.min!==(this.old&&this.old.min)||this.max!==
208
- (this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();a&&this.panningState&&(this.panningState.isDirty=!0);f(this,"afterSetScale")};b.prototype.setExtremes=function(a,c,d,l,b){var e=this,g=e.chart;d=H(d,!0);e.series.forEach(function(a){delete a.kdTree});b=n(b,{min:a,max:c});f(e,"setExtremes",b,function(){e.userMin=a;e.userMax=c;e.eventArgs=b;d&&g.redraw(l)})};b.prototype.zoom=function(a,d){var c=this,l=this.dataMin,b=this.dataMax,e=this.options,g=Math.min(l,H(e.min,l)),q=Math.max(b,
209
- H(e.max,b));a={newMin:a,newMax:d};f(this,"zoom",a,function(a){var d=a.newMin,f=a.newMax;if(d!==c.min||f!==c.max)c.allowZoomOutside||(y(l)&&(d<g&&(d=g),d>q&&(d=q)),y(b)&&(f<g&&(f=g),f>q&&(f=q))),c.displayBtn="undefined"!==typeof d||"undefined"!==typeof f,c.setExtremes(d,f,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};b.prototype.setAxisSize=function(){var a=this.chart,d=this.options,c=d.offsets||[0,0,0,0],f=this.horiz,l=this.width=Math.round(N(H(d.width,a.plotWidth-c[3]+c[1]),a.plotWidth)),
210
- b=this.height=Math.round(N(H(d.height,a.plotHeight-c[0]+c[2]),a.plotHeight)),e=this.top=Math.round(N(H(d.top,a.plotTop+c[0]),a.plotHeight,a.plotTop));d=this.left=Math.round(N(H(d.left,a.plotLeft+c[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-b-e;this.right=a.chartWidth-l-d;this.len=Math.max(f?l:b,0);this.pos=f?d:e};b.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?C(a.lin2log(this.min)):this.min,max:a?C(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,
211
- userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(a){var d=this.logarithmic,c=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null===a||-Infinity===a?a=c:Infinity===a?a=d:c>a?a=c:d<a&&(a=d);return this.translate(a,0,1,0,1)};b.prototype.autoLabelAlign=function(a){var d=(H(a,0)-90*this.side+720)%360;a={align:"center"};f(this,"autoLabelAlign",a,function(a){15<d&&165>d?a.align="right":195<d&&345>d&&(a.align="left")});return a.align};b.prototype.tickSize=function(a){var d=
212
- this.options,c=H(d["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0),l=d["tick"===a?"tickLength":"minorTickLength"];if(c&&l){"inside"===d[a+"Position"]&&(l=-l);var b=[l,c]}a={tickSize:b};f(this,"afterTickSize",a);return a.tickSize};b.prototype.labelMetrics=function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};b.prototype.unsquish=function(){var d=
213
- this.options.labels,c=this.horiz,f=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/f),b=d.rotation,e=this.labelMetrics(),g=Math.max(this.max-this.min,0),q=function(a){var d=a/(l||1);d=1<d?Math.ceil(d):1;d*f>g&&Infinity!==a&&Infinity!==l&&g&&(d=Math.ceil(g/f));return C(d*f)},n=f,h,p,k=Number.MAX_VALUE;if(c){if(!d.staggerLines&&!d.step)if(z(b))var t=[b];else l<d.autoRotationLimit&&(t=d.autoRotation);t&&t.forEach(function(d){if(d===b||d&&-90<=d&&90>=d){p=q(Math.abs(e.h/Math.sin(a*
214
- d)));var c=p+Math.abs(d/360);c<k&&(k=c,h=d,n=p)}})}else d.step||(n=q(e.h));this.autoRotation=t;this.labelRotation=H(h,z(b)?b:0);return n};b.prototype.getSlotWidth=function(a){var d=this.chart,c=this.horiz,f=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),b=d.margin[3];if(a&&z(a.slotWidth))return a.slotWidth;if(c&&2>f.step)return f.rotation?0:(this.staggerLines||1)*this.len/l;if(!c){a=f.style.width;if(void 0!==a)return parseInt(String(a),10);if(b)return b-d.spacing[3]}return.33*
215
- d.chartWidth};b.prototype.renderUnsquish=function(){var a=this.chart,d=a.renderer,c=this.tickPositions,f=this.ticks,b=this.options.labels,e=b.style,g=this.horiz,q=this.getSlotWidth(),n=Math.max(1,Math.round(q-2*b.padding)),h={},z=this.labelMetrics(),p=e.textOverflow,k=0;l(b.rotation)||(h.rotation=b.rotation||0);c.forEach(function(a){a=f[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>k&&(k=a.label.textPxLength)});this.maxLabelLength=k;if(this.autoRotation)k>n&&k>z.h?h.rotation=
216
- this.labelRotation:this.labelRotation=0;else if(q){var t=n;if(!p){var G="clip";for(n=c.length;!g&&n--;){var m=c[n];if(m=f[m].label)m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>q&&m.css({width:q+"px"}),m.getBBox().height>this.len/c.length-(z.h-z.f)&&(m.specificTextOverflow="ellipsis")}}}h.rotation&&(t=k>.5*a.chartHeight?.33*a.chartHeight:k,p||(G="ellipsis"));if(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))h.align=this.labelAlign;c.forEach(function(a){var d=
217
- (a=f[a])&&a.label,c=e.width,l={};d&&(d.attr(h),a.shortenLabel?a.shortenLabel():t&&!c&&"nowrap"!==e.whiteSpace&&(t<d.textPxLength||"SPAN"===d.element.tagName)?(l.width=t+"px",p||(l.textOverflow=d.specificTextOverflow||G),d.css(l)):d.styles&&d.styles.width&&!l.width&&!c&&d.css({width:null}),delete d.specificTextOverflow,a.rotation=h.rotation)},this);this.tickRotCorr=d.rotCorr(z.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(a){return a.hasData()})||
218
- this.options.showEmpty&&y(this.min)&&y(this.max)};b.prototype.addTitle=function(a){var d=this.chart.renderer,c=this.horiz,f=this.opposite,l=this.options.title,b=this.chart.styledMode,e;this.axisTitle||((e=l.textAlign)||(e=(c?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[l.align]),this.axisTitle=d.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation,align:e}).addClass("highcharts-axis-title"),b||this.axisTitle.css(G(l.style)),this.axisTitle.add(this.axisGroup),
219
- this.axisTitle.isNew=!0);b||l.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[a?"show":"hide"](a)};b.prototype.generateTick=function(a){var d=this.ticks;d[a]?d[a].addLabel():d[a]=new w(this,a)};b.prototype.getOffset=function(){var a=this,d=this,c=d.chart,l=d.horiz,b=d.options,e=d.side,g=d.ticks,q=d.tickPositions,n=d.coll,h=d.axisParent,z=c.renderer,p=c.inverted&&!d.isZAxis?[1,0,3,2][e]:e,k=d.hasData(),t=b.title,G=b.labels,m=c.axisOffset;c=c.clipOffset;var D=[-1,
220
- 1,1,-1][e],K=b.className,r,C=0,N=0,x=0;d.showAxis=r=k||b.showEmpty;d.staggerLines=d.horiz&&G.staggerLines||void 0;if(!d.axisGroup){var w=function(d,c,f){return z.g(d).attr({zIndex:f}).addClass("highcharts-"+n.toLowerCase()+c+" "+(a.isRadial?"highcharts-radial-axis"+c+" ":"")+(K||"")).add(h)};d.gridGroup=w("grid","-grid",b.gridZIndex);d.axisGroup=w("axis","",b.zIndex);d.labelGroup=w("axis-labels","-labels",G.zIndex)}k||d.isLinked?(q.forEach(function(a){d.generateTick(a)}),d.renderUnsquish(),d.reserveSpaceDefault=
221
- 0===e||2===e||{1:"left",3:"right"}[e]===d.labelAlign,H(G.reserveSpace,"center"===d.labelAlign?!0:null,d.reserveSpaceDefault)&&q.forEach(function(a){x=Math.max(g[a].getLabelSize(),x)}),d.staggerLines&&(x*=d.staggerLines),d.labelOffset=x*(d.opposite?-1:1)):I(g,function(a,d){a.destroy();delete g[d]});if(t&&t.text&&!1!==t.enabled&&(d.addTitle(r),r&&!1!==t.reserveSpace)){d.titleOffset=C=d.axisTitle.getBBox()[l?"height":"width"];var u=t.offset;N=y(u)?0:H(t.margin,l?5:10)}d.renderLine();d.offset=D*H(b.offset,
222
- m[e]?m[e]+(b.margin||0):0);d.tickRotCorr=d.tickRotCorr||{x:0,y:0};t=0===e?-d.labelMetrics().h:2===e?d.tickRotCorr.y:0;k=Math.abs(x)+N;x&&(k=k-t+D*(l?H(G.y,d.tickRotCorr.y+8*D):G.x));d.axisTitleMargin=H(u,k);d.getMaxLabelDimensions&&(d.maxLabelDimensions=d.getMaxLabelDimensions(g,q));"colorAxis"!==n&&(l=this.tickSize("tick"),m[e]=Math.max(m[e],(d.axisTitleMargin||0)+C+D*d.offset,k,q&&q.length&&l?l[0]+D*d.offset:0),b=!d.axisLine||b.offset?0:2*Math.floor(d.axisLine.strokeWidth()/2),c[p]=Math.max(c[p],
223
- b));f(this,"afterGetOffset")};b.prototype.getLinePath=function(a){var d=this.chart,c=this.opposite,f=this.offset,l=this.horiz,b=this.left+(c?this.width:0)+f;f=d.chartHeight-this.bottom-(c?this.height:0)+f;c&&(a*=-1);return d.renderer.crispLine([["M",l?this.left:b,l?f:this.top],["L",l?d.chartWidth-this.right:b,l?f:d.chartHeight-this.bottom]],a)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||
224
- this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var a=this.horiz,d=this.left,c=this.top,l=this.len,b=this.options.title,e=a?d:c,g=this.opposite,q=this.offset,n=b.x,h=b.y,z=this.axisTitle,p=this.chart.renderer.fontMetrics(b.style.fontSize,z);z=Math.max(z.getBBox(null,0).height-p.h-1,0);l={low:e+(a?0:l),middle:e+l/2,high:e+(a?l:0)}[b.align];d=(a?c+this.height:d)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+[-z,z,
225
- p.f,-z][this.side];a={x:a?l+n:d+(g?this.width:0)+q+n,y:a?d+h-(g?this.height:0)+q:l+h};f(this,"afterGetTitlePosition",{titlePosition:a});return a};b.prototype.renderMinorTick=function(a,d){var c=this.minorTicks;c[a]||(c[a]=new w(this,a,"minor"));d&&c[a].isNew&&c[a].render(null,!0);c[a].render(null,!1,1)};b.prototype.renderTick=function(a,d,c){var f=this.ticks;if(!this.isLinked||a>=this.min&&a<=this.max||this.grid&&this.grid.isColumn)f[a]||(f[a]=new w(this,a)),c&&f[a].isNew&&f[a].render(d,!0,-1),f[a].render(d)};
226
- b.prototype.render=function(){var a=this,d=a.chart,c=a.logarithmic,l=a.options,b=a.isLinked,e=a.tickPositions,g=a.axisTitle,q=a.ticks,n=a.minorTicks,h=a.alternateBands,p=l.stackLabels,k=l.alternateGridColor,t=a.tickmarkOffset,G=a.axisLine,m=a.showAxis,y=r(d.renderer.globalAnimation),D,K;a.labelEdge.length=0;a.overlap=!1;[q,n,h].forEach(function(a){I(a,function(a){a.isActive=!1})});if(a.hasData()||b){var H=a.chart.hasRendered&&a.old&&z(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(d){a.renderMinorTick(d,
227
- H)});e.length&&(e.forEach(function(d,c){a.renderTick(d,c,H)}),t&&(0===a.min||a.single)&&(q[-1]||(q[-1]=new w(a,-1,null,!0)),q[-1].render(-1)));k&&e.forEach(function(f,l){K="undefined"!==typeof e[l+1]?e[l+1]+t:a.max-t;0===l%2&&f<a.max&&K<=a.max+(d.polar?-t:t)&&(h[f]||(h[f]=new E.PlotLineOrBand(a)),D=f+t,h[f].options={from:c?c.lin2log(D):D,to:c?c.lin2log(K):K,color:k,className:"highcharts-alternate-grid"},h[f].render(),h[f].isActive=!0)});a._addedPlotLB||(a._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||
228
- []).forEach(function(d){a.addPlotBandOrLine(d)}))}[q,n,h].forEach(function(a){var c=[],f=y.duration;I(a,function(a,d){a.isActive||(a.render(d,!1,0),a.isActive=!1,c.push(d))});S(function(){for(var d=c.length;d--;)a[c[d]]&&!a[c[d]].isActive&&(a[c[d]].destroy(),delete a[c[d]])},a!==h&&d.hasRendered&&f?f:0)});G&&(G[G.isPlaced?"animate":"attr"]({d:this.getLinePath(G.strokeWidth())}),G.isPlaced=!0,G[m?"show":"hide"](m));g&&m&&(l=a.getTitlePosition(),z(l.y)?(g[g.isNew?"attr":"animate"](l),g.isNew=!1):(g.attr("y",
229
- -9999),g.isNew=!0));p&&p.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;f(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(a){var d=this,c=d.plotLinesAndBands,
230
- l=this.eventOptions;f(this,"destroy",{keepEvents:a});a||x(d);[d.ticks,d.minorTicks,d.alternateBands].forEach(function(a){t(a)});if(c)for(a=c.length;a--;)c[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){d[a]&&(d[a]=d[a].destroy())});for(var b in d.plotLinesAndBandsGroups)d.plotLinesAndBandsGroups[b]=d.plotLinesAndBandsGroups[b].destroy();I(d,function(a,c){-1===d.getKeepProps().indexOf(c)&&delete d[c]});this.eventOptions=l};b.prototype.drawCrosshair=
231
- function(a,d){var c=this.crosshair,l=H(c&&c.snap,!0),b=this.chart,e,g=this.cross;f(this,"drawCrosshair",{e:a,point:d});a||(a=this.cross&&this.cross.e);if(c&&!1!==(y(d)||!l)){l?y(d)&&(e=H("colorAxis"!==this.coll?d.crosshairPos:null,this.isXAxis?d.plotX:this.len-d.plotY)):e=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);if(y(e)){var q={value:d&&(this.isXAxis?d.x:H(d.stackY,d.y)),translatedValue:e};b.polar&&n(q,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:d});q=this.getPlotLinePath(q)||
232
- null}if(!y(q)){this.hideCrosshair();return}l=this.categories&&!this.isRadial;g||(this.cross=g=b.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+(c.className||"")).attr({zIndex:H(c.zIndex,2)}).add(),b.styledMode||(g.attr({stroke:c.color||(l?A.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":H(c.width,1)}).css({"pointer-events":"none"}),c.dashStyle&&g.attr({dashstyle:c.dashStyle})));g.show().attr({d:q});l&&!c.width&&g.attr({"stroke-width":this.transA});
233
- this.cross.e=a}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:a,point:d})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();f(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var a=this.chart.options.chart.panning;return!!(a&&a.enabled&&/y/.test(a.type))};b.prototype.validatePositiveValue=function(a){return z(a)&&0<a};b.prototype.update=function(a,d){var c=this.chart;a=G(this.userOptions,a);this.destroy(!0);this.init(c,a);c.isDirtyBox=!0;H(d,!0)&&c.redraw()};
234
- b.prototype.remove=function(a){for(var d=this.chart,c=this.coll,f=this.series,l=f.length;l--;)f[l]&&f[l].remove(!1);p(d.axes,this);p(d[c],this);d[c].forEach(function(a,d){a.options.index=a.userOptions.index=d});this.destroy();d.isDirtyBox=!0;H(a,!0)&&d.redraw()};b.prototype.setTitle=function(a,d){this.update({title:a},d)};b.prototype.setCategories=function(a,d){this.update({categories:a},d)};b.defaultOptions=u.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");
235
- return b}();"";return b});F(b,"Core/Axis/DateTimeAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,A=b.getMagnitude,B=b.normalizeTickInterval,v=b.timeUnits,E;(function(b){function k(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("dateTime"),a.prototype.getTimeTicks=k,x(a,"init",
236
- r));return a};var h=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,b){var c=b||[["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]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];b=c[c.length-1];var e=v[b[0]],h=b[1],k;for(k=0;k<c.length&&!(b=c[k],e=v[b[0]],h=b[1],c[k+1]&&a<=(e*h[h.length-1]+v[c[k+1][0]])/2);k++);e===v.year&&a<5*e&&(h=[1,2,5]);a=B(a/e,h,"year"===b[0]?
237
- Math.max(A(a/e),1):1);return{unitRange:e,count:a,unitName:b[0]}};a.prototype.getXDateFormat=function(a,b){var c=this.axis;return c.closestPointRange?c.chart.time.getDateFormat(c.closestPointRange,a,c.options.startOfWeek,b)||b.year:b.day};return a}();b.Additions=h})(E||(E={}));return E});F(b,"Core/Axis/LogarithmicAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,A=b.getMagnitude,B=b.normalizeTickInterval,v=b.pick,E;(function(b){function k(a){var c=this.logarithmic;"logarithmic"!==a.userOptions.type?
238
- this.logarithmic=void 0:c||(this.logarithmic=new h(this))}function r(){var a=this.logarithmic;a&&(this.lin2val=function(c){return a.lin2log(c)},this.val2lin=function(c){return a.log2lin(c)})}var m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("logarithmic"),x(a,"init",k),x(a,"afterInit",r));return a};var h=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,b,g,h){var c=this.axis,e=c.len,p=c.options,k=[];h||(this.minorAutoInterval=void 0);if(.5<=
239
- a)a=Math.round(a),k=c.getLinearTickPositions(a,b,g);else if(.08<=a){var n=Math.floor(b),f,q=p=void 0;for(e=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];n<g+1&&!q;n++){var d=e.length;for(f=0;f<d&&!q;f++){var z=this.log2lin(this.lin2log(n)*e[f]);z>b&&(!h||p<=g)&&"undefined"!==typeof p&&k.push(p);p>g&&(q=!0);p=z}}}else b=this.lin2log(b),g=this.lin2log(g),a=h?c.getMinorTickInterval():p.tickInterval,a=v("auto"===a?null:a,this.minorAutoInterval,p.tickPixelInterval/(h?5:1)*(g-b)/((h?e/c.tickPositions.length:
240
- e)||1)),a=B(a,void 0,A(a)),k=c.getLinearTickPositions(a,b,g).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(c.tickInterval=a);return k};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();b.Additions=h})(E||(E={}));return E});F(b,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.erase,A=b.extend,B=b.isNumber,v;(function(b){var w=[],k;b.compose=function(b,h){k||(k=b);-1===
241
- w.indexOf(h)&&(w.push(h),A(h.prototype,r.prototype));return h};var r=function(){function b(){}b.prototype.getPlotBandPath=function(b,a,c){void 0===c&&(c=this.options);var e=this.getPlotLinePath({value:a,force:!0,acrossPanes:c.acrossPanes}),g=[],h=this.horiz;a=!B(this.min)||!B(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:c.acrossPanes});c=1;if(b&&e){if(a){var k=b.toString()===e.toString();c=0}for(a=0;a<b.length;a+=2){var t=b[a],p=b[a+
242
- 1],m=e[a],n=e[a+1];"M"!==t[0]&&"L"!==t[0]||"M"!==p[0]&&"L"!==p[0]||"M"!==m[0]&&"L"!==m[0]||"M"!==n[0]&&"L"!==n[0]||(h&&m[1]===t[1]?(m[1]+=c,n[1]+=c):h||m[2]!==t[2]||(m[2]+=c,n[2]+=c),g.push(["M",t[1],t[2]],["L",p[1],p[2]],["L",n[1],n[2]],["L",m[1],m[2]],["Z"]));g.isFlat=k}}return g};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,"plotLines")};b.prototype.addPlotBandOrLine=function(b,a){var c=this,
243
- e=this.userOptions,g=new k(this,b);this.visible&&(g=g.render());if(g){this._addedPlotLB||(this._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(a){c.addPlotBandOrLine(a)}));if(a){var h=e[a]||[];h.push(b);e[a]=h}this.plotLinesAndBands.push(g)}return g};b.prototype.removePlotBandOrLine=function(b){var a=this.plotLinesAndBands,c=this.options,e=this.userOptions;if(a){for(var g=a.length;g--;)a[g].id===b&&a[g].destroy();[c.plotLines||[],e.plotLines||[],c.plotBands||[],e.plotBands||
244
- []].forEach(function(a){for(g=a.length;g--;)(a[g]||{}).id===b&&x(a,a[g])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(v||(v={}));return v});F(b,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[b["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],b["Core/Utilities.js"]],function(b,u){var x=u.arrayMax,B=u.arrayMin,v=u.defined,E=u.destroyObjectProperties,w=u.erase,k=u.fireEvent,r=u.merge,m=u.objectEach,
245
- h=u.pick;u=function(){function a(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)}a.compose=function(c){return b.compose(a,c)};a.prototype.render=function(){k(this,"render");var a=this,b=a.axis,g=b.horiz,C=b.logarithmic,y=a.options,t=y.color,p=h(y.zIndex,0),D=y.events,n={},f=b.chart.renderer,q=y.label,d=a.label,z=y.to,l=y.from,G=y.value,K=a.svgElem,I=[],H=v(l)&&v(z);I=v(G);var N=!K,x={"class":"highcharts-plot-"+(H?"band ":"line ")+(y.className||"")},w=H?"bands":"lines";C&&(l=C.log2lin(l),z=C.log2lin(z),
246
- G=C.log2lin(G));b.chart.styledMode||(I?(x.stroke=t||"#999999",x["stroke-width"]=h(y.width,1),y.dashStyle&&(x.dashstyle=y.dashStyle)):H&&(x.fill=t||"#e6ebf5",y.borderWidth&&(x.stroke=y.borderColor,x["stroke-width"]=y.borderWidth)));n.zIndex=p;w+="-"+p;(C=b.plotLinesAndBandsGroups[w])||(b.plotLinesAndBandsGroups[w]=C=f.g("plot-"+w).attr(n).add());N&&(a.svgElem=K=f.path().attr(x).add(C));if(I)I=b.getPlotLinePath({value:G,lineWidth:K.strokeWidth(),acrossPanes:y.acrossPanes});else if(H)I=b.getPlotBandPath(l,
247
- z,y);else return;!a.eventsAdded&&D&&(m(D,function(d,c){K.on(c,function(d){D[c].apply(a,[d])})}),a.eventsAdded=!0);(N||!K.d)&&I&&I.length?K.attr({d:I}):K&&(I?(K.show(!0),K.animate({d:I})):K.d&&(K.hide(),d&&(a.label=d=d.destroy())));q&&(v(q.text)||v(q.formatter))&&I&&I.length&&0<b.width&&0<b.height&&!I.isFlat?(q=r({align:g&&H&&"center",x:g?!H&&4:10,verticalAlign:!g&&H&&"middle",y:g?H?16:10:H?6:-4,rotation:g&&!H&&90},q),this.renderLabel(q,I,H,p)):d&&d.hide();return a};a.prototype.renderLabel=function(a,
248
- b,g,h){var c=this.axis,e=c.chart.renderer,p=this.label;p||(this.label=p=e.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(g?"band":"line")+"-label "+(a.className||""),zIndex:h}).add(),c.chart.styledMode||p.css(r({textOverflow:"ellipsis"},a.style)));h=b.xBounds||[b[0][1],b[1][1],g?b[2][1]:b[0][1]];b=b.yBounds||[b[0][2],b[1][2],g?b[2][2]:b[0][2]];g=B(h);e=B(b);p.align(a,!1,{x:g,y:e,width:x(h)-g,height:x(b)-e});p.alignValue&&"left"!==
249
- p.alignValue||p.css({width:(90===p.rotation?c.height-(p.alignAttr.y-c.top):c.width-(p.alignAttr.x-c.left))+"px"});p.show(!0)};a.prototype.getLabelText=function(a){return v(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){w(this.axis.plotLinesAndBands,this);delete this.axis;E(this)};return a}();"";"";return u});F(b,"Core/Tooltip.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],
250
- function(b,u,A,B,v){var x=b.format,w=u.doc,k=A.distribute,r=v.addEvent,m=v.clamp,h=v.css,a=v.defined,c=v.discardElement,e=v.extend,g=v.fireEvent,C=v.isArray,y=v.isNumber,t=v.isString,p=v.merge,D=v.pick,n=v.splat,f=v.syncTimeout;b=function(){function b(a,c){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,c)}b.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",
251
- attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};b.prototype.bodyFormatter=function(a){return a.map(function(a){var d=a.series.tooltipOptions;return(d[(a.point.formatPrefix||
252
- "point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,d[(a.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(a){this.chart.series.forEach(function(d){var c=d&&d.tt;c&&(!c.isActive||a?d.tt=c.destroy():c.isActive=!1)})};b.prototype.defaultFormatter=function(a){var d=this.points||n(this);var c=[a.tooltipFooterHeaderFormatter(d[0])];c=c.concat(a.bodyFormatter(d));c.push(a.tooltipFooterHeaderFormatter(d[0],!0));return c};b.prototype.destroy=function(){this.label&&(this.label=
253
- this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),c(this.container));v.clearTimeout(this.hideTimer);v.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(a,c){var d=this.chart,b=d.pointer,f=d.inverted,e=d.plotTop,g=d.plotLeft,q,h,p=0,z=0;a=n(a);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=b.normalize(c)),b=[c.chartX-g,c.chartY-e]):a[0].tooltipPos?b=a[0].tooltipPos:(a.forEach(function(a){q=
254
- a.series.yAxis;h=a.series.xAxis;p+=a.plotX||0;z+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;h&&q&&(f?(p+=e+d.plotHeight-h.len-h.pos,z+=g+d.plotWidth-q.len-q.pos):(p+=h.pos-g,z+=q.pos-e))}),p/=a.length,z/=a.length,b=[f?d.plotWidth-z:p,f?d.plotHeight-p:z],this.shared&&1<a.length&&c&&(f?b[0]=c.chartX-g:b[1]=c.chartY-e));return b.map(Math.round)};b.prototype.getLabel=function(){var d=this,c=this.chart.styledMode,b=this.options,f=this.split&&this.allowShared,e="tooltip"+(a(b.className)?" "+b.className:
255
- ""),g=b.style.pointerEvents||(!this.followPointer&&b.stickOnContact?"auto":"none"),q=function(){d.inContact=!0},n=function(a){var c=d.chart.hoverSeries;d.inContact=d.shouldStickOnContact()&&d.chart.pointer.inClass(a.relatedTarget,"highcharts-tooltip");if(!d.inContact&&c&&c.onMouseOut)c.onMouseOut()},p,k=this.chart.renderer;if(d.label){var t=!d.label.hasClass("highcharts-label");(f&&!t||!f&&t)&&d.destroy()}if(!this.label){if(this.outside){t=this.chart.options.chart.style;var m=B.getRendererType();
256
- this.container=p=u.doc.createElement("div");p.className="highcharts-tooltip-container";h(p,{position:"absolute",top:"1px",pointerEvents:g,zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)});r(p,"mouseenter",q);r(p,"mouseleave",n);u.doc.body.appendChild(p);this.renderer=k=new m(p,0,0,t,void 0,void 0,k.styledMode)}f?this.label=k.g(e):(this.label=k.label("",0,0,b.shape,void 0,void 0,b.useHTML,void 0,e).attr({padding:b.padding,r:b.borderRadius}),c||this.label.attr({fill:b.backgroundColor,
257
- "stroke-width":b.borderWidth}).css(b.style).css({pointerEvents:g}).shadow(b.shadow));c&&b.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(d.outside&&!d.split){var y=this.label,D=y.xSetter,C=y.ySetter;y.xSetter=function(a){D.call(y,d.distance);p.style.left=a+"px"};y.ySetter=function(a){C.call(y,d.distance);p.style.top=a+"px"}}this.label.on("mouseenter",q).on("mouseleave",n).attr({zIndex:8}).add()}return this.label};b.prototype.getPosition=function(a,
258
- c,b){var d=this.chart,f=this.distance,l={},e=d.inverted&&b.h||0,g=this.outside,q=g?w.documentElement.clientWidth-2*f:d.chartWidth,n=g?Math.max(w.body.scrollHeight,w.documentElement.scrollHeight,w.body.offsetHeight,w.documentElement.offsetHeight,w.documentElement.clientHeight):d.chartHeight,h=d.pointer.getChartPosition(),p=function(l){var e="x"===l;return[l,e?q:n,e?a:c].concat(g?[e?a*h.scaleX:c*h.scaleY,e?h.left-f+(b.plotX+d.plotLeft)*h.scaleX:h.top-f+(b.plotY+d.plotTop)*h.scaleY,0,e?q:n]:[e?a:c,e?
259
- b.plotX+d.plotLeft:b.plotY+d.plotTop,e?d.plotLeft:d.plotTop,e?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},z=p("y"),k=p("x"),t;p=!!b.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(p=!p);var m=!this.followPointer&&D(b.ttBelow,!d.inverted===p),y=function(a,d,c,b,q,n,p){var z=g?"y"===a?f*h.scaleY:f*h.scaleX:f,k=(c-b)/2,t=b<q-f,G=q+f+b<d,y=q-z-c+k;q=q+z-k;if(m&&G)l[a]=q;else if(!m&&t)l[a]=y;else if(t)l[a]=Math.min(p-b,0>y-e?y:y-e);else if(G)l[a]=Math.max(n,q+
260
- e+c>d?q:q+e);else return!1},r=function(a,d,c,b,e){var g;e<f||e>d-f?g=!1:l[a]=e<c/2?1:e>d-b/2?d-b-2:e-c/2;return g},L=function(a){var d=z;z=k;k=d;t=a},C=function(){!1!==y.apply(0,z)?!1!==r.apply(0,k)||t||(L(!0),C()):t?l.x=l.y=0:(L(!0),C())};(d.inverted||1<this.len)&&L();C();return l};b.prototype.hide=function(a){var d=this;v.clearTimeout(this.hideTimer);a=D(a,this.options.hideDelay);this.isHidden||(this.hideTimer=f(function(){d.getLabel().fadeOut(a?void 0:a);d.isHidden=!0},a))};b.prototype.init=function(a,
261
- c){this.chart=a;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!a.inverted&&!a.polar;this.shared=c.shared||this.split;this.outside=D(c.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(a,c,b,f){var d=this,l=d.now,g=!1!==d.options.animation&&
262
- !d.isHidden&&(1<Math.abs(a-l.x)||1<Math.abs(c-l.y)),q=d.followPointer||1<d.len;e(l,{x:g?(2*l.x+a)/3:a,y:g?(l.y+c)/2:c,anchorX:q?void 0:g?(2*l.anchorX+b)/3:b,anchorY:q?void 0:g?(l.anchorY+f)/2:f});d.getLabel().attr(l);d.drawTracker();g&&(v.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){d&&d.move(a,c,b,f)},32))};b.prototype.refresh=function(a,c){var d=this.chart,b=this.options,f=n(a),e=f[0],q=[],h=b.formatter||this.defaultFormatter,p=this.shared,k=d.styledMode,z={};if(b.enabled){v.clearTimeout(this.hideTimer);
263
- this.allowShared=!(!C(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&e.series.tooltipOptions.followPointer;a=this.getAnchor(a,c);var t=a[0],m=a[1];p&&this.allowShared?(d.pointer.applyInactiveState(f),f.forEach(function(a){a.setState("hover");q.push(a.getLabelConfig())}),z={x:e.category,y:e.y},z.points=q):z=e.getLabelConfig();this.len=q.length;h=h.call(z,this);p=e.series;this.distance=D(p.tooltipOptions.distance,16);if(!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,
264
- f);else{var y=t,r=m;c&&d.pointer.isDirectTouch&&(y=c.chartX-d.plotLeft,r=c.chartY-d.plotTop);if(d.polar||!1===p.options.clip||f.some(function(a){return a.series.shouldShowTooltip(y,r)}))c=this.getLabel(),b.style.width&&!k||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:h&&h.join?h.join(""):h}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+D(e.colorIndex,p.colorIndex)),k||c.attr({stroke:b.borderColor||e.color||p.color||"#666666"}),this.updatePosition({plotX:t,
265
- plotY:m,negative:e.negative,ttBelow:e.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}g(this,"refresh")}};b.prototype.renderSplit=function(a,c){function d(a,d,c,f,l){void 0===l&&(l=!0);c?(d=W?0:F,a=m(a-f/2,R.left,R.right-f-(b.outside?O:0))):(d-=da,a=l?a-f-E:a+E,a=m(a,l?a:R.left,R.right));return{x:a,y:d}}var b=this,f=b.chart,g=b.chart,q=g.chartWidth,n=g.chartHeight,h=g.plotHeight,p=g.plotLeft,z=g.plotTop,y=g.pointer,r=g.scrollablePixelsY;
266
- r=void 0===r?0:r;var C=g.scrollablePixelsX,x=g.scrollingContainer;x=void 0===x?{scrollLeft:0,scrollTop:0}:x;var u=x.scrollLeft;x=x.scrollTop;var v=g.styledMode,E=b.distance,L=b.options,T=b.options.positioner,R=b.outside&&"number"!==typeof C?w.documentElement.getBoundingClientRect():{left:u,right:u+q,top:x,bottom:x+n},A=b.getLabel(),B=this.renderer||f.renderer,W=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=y.getChartPosition();var O=f.left;f=f.top;var da=z+x,ea=0,F=h-r;t(a)&&(a=[!1,a]);a=a.slice(0,c.length+
267
- 1).reduce(function(a,f,l){if(!1!==f&&""!==f){l=c[l-1]||{isHeader:!0,plotX:c[0].plotX,plotY:h,series:{}};var e=l.isHeader,g=e?b:l.series;f=f.toString();var q=g.tt,n=l.isHeader;var k=l.series;var t="highcharts-color-"+D(l.colorIndex,k.colorIndex,"none");q||(q={padding:L.padding,r:L.borderRadius},v||(q.fill=L.backgroundColor,q["stroke-width"]=L.borderWidth),q=B.label("",0,0,L[n?"headerShape":"shape"],void 0,void 0,L.useHTML).addClass((n?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+t).attr(q).add(A));
268
- q.isActive=!0;q.attr({text:f});v||q.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||l.color||k.color||"#333333"});g=g.tt=q;n=g.getBBox();f=n.width+g.strokeWidth();e&&(ea=n.height,F+=ea,W&&(da-=ea));k=l.plotX;k=void 0===k?0:k;t=l.plotY;t=void 0===t?0:t;q=l.series;if(l.isHeader){k=p+k;var y=z+h/2}else{var G=q.xAxis,r=q.yAxis;k=G.pos+m(k,-E,G.len+E);q.shouldShowTooltip(0,r.pos-z+t,{ignoreX:!0})&&(y=r.pos+t)}k=m(k,R.left-E,R.right+E);"number"===typeof y?(n=n.height+1,t=T?T.call(b,f,n,l):d(k,
269
- y,e,f),a.push({align:T?0:void 0,anchorX:k,anchorY:y,boxWidth:f,point:l,rank:D(t.rank,e?1:0),size:n,target:t.y,tt:g,x:t.x})):g.isActive=!1}return a},[]);!T&&a.some(function(a){var d=(b.outside?O:0)+a.anchorX;return d<R.left&&d+a.boxWidth<R.right?!0:d<O-R.left+a.boxWidth&&R.right-d>d})&&(a=a.map(function(a){var c=d(a.anchorX,a.anchorY,a.point.isHeader,a.boxWidth,!1);return e(a,{target:c.y,x:c.x})}));b.cleanSplit();k(a,F);var ba=O,fa=O;a.forEach(function(a){var d=a.x,c=a.boxWidth;a=a.isHeader;a||(b.outside&&
270
- O+d<ba&&(ba=O+d),!a&&b.outside&&ba+c>fa&&(fa=O+d))});a.forEach(function(a){var d=a.x,c=a.anchorX,f=a.pos,l=a.point.isHeader;f={visibility:"undefined"===typeof f?"hidden":"inherit",x:d,y:f+da,anchorX:c,anchorY:a.anchorY};if(b.outside&&d<c){var e=O-ba;0<e&&(l||(f.x=d+e,f.anchorX=c+e),l&&(f.x=(fa-ba)/2,f.anchorX=c+e))}a.tt.attr(f)});a=b.container;r=b.renderer;b.outside&&a&&r&&(g=A.getBBox(),r.setSize(g.width+g.x,g.height+g.y,!1),a.style.left=ba+"px",a.style.top=f+"px")};b.prototype.drawTracker=function(){if(this.followPointer||
271
- !this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,c=this.label,b=this.shared?a.hoverPoints:a.hoverPoint;if(c&&b){var f={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var e=c.getBBox();b[0]+=a.plotLeft-c.translateX;b[1]+=a.plotTop-c.translateY;f.x=Math.min(0,b[0]);f.y=Math.min(0,b[1]);f.width=0>b[0]?Math.max(Math.abs(b[0]),e.width-b[0]):Math.max(Math.abs(b[0]),e.width);f.height=0>b[1]?Math.max(Math.abs(b[1]),e.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),e.height);
272
- this.tracker?this.tracker.attr(f):(this.tracker=c.renderer.rect(f).addClass("highcharts-tracker").add(c),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};b.prototype.tooltipFooterHeaderFormatter=function(a,c){var d=a.series,b=d.tooltipOptions,f=d.xAxis,e=f&&f.dateTime;f={isFooter:c,
273
- labelConfig:a};var q=b.xDateFormat,n=b[c?"footerFormat":"headerFormat"];g(this,"headerFormatter",f,function(c){e&&!q&&y(a.key)&&(q=e.getXDateFormat(a.key,b.dateTimeLabelFormats));e&&q&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(a){n=n.replace("{point."+a+"}","{point."+a+":"+q+"}")});d.chart.styledMode&&(n=this.styledModeFormat(n));c.text=x(n,{point:a,series:d},this.chart)});return f.text};b.prototype.update=function(a){this.destroy();p(!0,this.chart.options.tooltip.userOptions,a);
274
- this.init(this.chart,p(!0,this.options,a))};b.prototype.updatePosition=function(a){var d=this.chart,c=this.options,b=d.pointer,f=this.getLabel();b=b.getChartPosition();var e=(c.positioner||this.getPosition).call(this,f.width,f.height,a),g=a.plotX+d.plotLeft;a=a.plotY+d.plotTop;if(this.outside){c=c.borderWidth+2*this.distance;this.renderer.setSize(f.width+c,f.height+c,!1);if(1!==b.scaleX||1!==b.scaleY)h(this.container,{transform:"scale("+b.scaleX+", "+b.scaleY+")"}),g*=b.scaleX,a*=b.scaleY;g+=b.left-
275
- e.x;a+=b.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),g,a)};return b}();"";return b});F(b,"Core/Series/Point.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/FormatUtilities.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=u.animObject,w=A.defaultOptions,k=B.format,r=v.addEvent,m=v.defined,h=v.erase,a=v.extend,c=v.fireEvent,e=v.getNestedProperty,g=v.isArray,C=v.isFunction,y=v.isNumber,t=v.isObject,p=v.merge,D=v.objectEach,
276
- n=v.pick,f=v.syncTimeout,q=v.removeEvent,d=v.uniqueKey;u=function(){function z(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}z.prototype.animateBeforeDestroy=function(){var d=this,c={x:d.startXPos,opacity:0},b=d.getGraphicalProps();b.singular.forEach(function(a){d[a]=d[a].animate("dataLabel"===a?{x:d[a].startXPos,y:d[a].startYPos,
277
- opacity:0}:c)});b.plural.forEach(function(c){d[c].forEach(function(c){c.element&&c.animate(a({x:d.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};z.prototype.applyOptions=function(d,c){var b=this.series,f=b.options.pointValKey||b.pointValKey;d=z.prototype.optionsToObject.call(this,d);a(this,d);this.options=this.options?a(this.options,d):d;d.group&&delete this.group;d.dataLabels&&delete this.dataLabels;f&&(this.y=z.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=
278
- n(this.isValid&&!this.isValid(),null===this.x||!y(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&b.xAxis&&b.xAxis.hasNames&&(this.x=b.xAxis.nameToX(this));"undefined"===typeof this.x&&b?this.x="undefined"===typeof c?b.autoIncrement():c:y(d.x)&&b.options.relativeXValue&&(this.x=b.autoIncrement(d.x));return this};z.prototype.destroy=function(){function a(){if(d.graphic||d.dataLabel||d.dataLabels)q(d),d.destroyElements();for(n in d)d[n]=null}var d=
279
- this,c=d.series,b=c.chart;c=c.options.dataSorting;var e=b.hoverPoints,g=x(d.series.chart.renderer.globalAnimation),n;d.legendItem&&b.legend.destroyItem(d);e&&(d.setState(),h(e,d),e.length||(b.hoverPoints=null));if(d===b.hoverPoint)d.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),f(a,g.duration)):a();b.pointCount--};z.prototype.destroyElements=function(a){var d=this;a=d.getGraphicalProps(a);a.singular.forEach(function(a){d[a]=d[a].destroy()});a.plural.forEach(function(a){d[a].forEach(function(a){a.element&&
280
- a.destroy()});delete d[a]})};z.prototype.firePointEvent=function(a,d,b){var f=this,e=this.series.options;(e.point.events[a]||f.options&&f.options.events&&f.options.events[a])&&f.importEvents();"click"===a&&e.allowPointSelect&&(b=function(a){f.select&&f.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});c(f,a,d,b)};z.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
281
- ("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};z.prototype.getGraphicalProps=function(a){var d=this,c=[],b={singular:[],plural:[]},f;a=a||{graphic:1,dataLabel:1};a.graphic&&c.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&c.push("dataLabel","dataLabelUpper","connector");for(f=c.length;f--;){var e=c[f];d[e]&&
282
- b.singular.push(e)}["dataLabel","connector"].forEach(function(c){var f=c+"s";a[c]&&d[f]&&b.plural.push(f)});return b};z.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};z.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?e(a,this.options):this[a]};z.prototype.getZone=function(){var a=this.series,
283
- d=a.zones;a=a.zoneAxis||"y";var c,b=0;for(c=d[b];this[a]>=c.value;)c=d[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};z.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};z.prototype.init=function(a,b,f){this.series=a;this.applyOptions(b,f);this.id=m(this.id)?this.id:d();this.resolveColor();a.chart.pointCount++;c(this,"afterInit");
284
- return this};z.prototype.optionsToObject=function(a){var d=this.series,c=d.options.keys,b=c||d.pointArrayMap||["y"],f=b.length,e={},l=0,q=0;if(y(a)||null===a)e[b[0]]=a;else if(g(a))for(!c&&a.length>f&&(d=typeof a[0],"string"===d?e.name=a[0]:"number"===d&&(e.x=a[0]),l++);q<f;)c&&"undefined"===typeof a[l]||(0<b[q].indexOf(".")?z.prototype.setNestedProperty(e,a[l],b[q]):e[b[q]]=a[l]),l++,q++;else"object"===typeof a&&(e=a,a.dataLabels&&(d._hasPointLabels=!0),a.marker&&(d._hasPointMarkers=!0));return e};
285
- z.prototype.resolveColor=function(){var a=this.series,d=a.chart.styledMode;var c=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!d){c=a.options.colors||a.chart.options.colors;var b=c[a.colorCounter];c=c.length}d=a.colorCounter;a.colorCounter++;a.colorCounter===c&&(a.colorCounter=0)}else d||(b=a.color),d=a.colorIndex;this.colorIndex=n(this.options.colorIndex,d);this.color=n(this.options.color,b)};z.prototype.setNestedProperty=function(a,d,c){c.split(".").reduce(function(a,
286
- c,b,f){a[c]=f.length-1===b?d:t(a[c],!0)?a[c]:{};return a[c]},a);return a};z.prototype.tooltipFormatter=function(a){var d=this.series,c=d.tooltipOptions,b=n(c.valueDecimals,""),f=c.valuePrefix||"",e=c.valueSuffix||"";d.chart.styledMode&&(a=d.chart.tooltip.styledModeFormat(a));(d.pointArrayMap||["y"]).forEach(function(d){d="{point."+d;if(f||e)a=a.replace(RegExp(d+"}","g"),f+d+"}"+e);a=a.replace(RegExp(d+"}","g"),d+":,."+b+"f}")});return k(a,{point:this,series:this.series},d.chart)};z.prototype.update=
287
- function(a,d,c,b){function f(){e.applyOptions(a);var b=g&&e.hasDummyGraphic;b=null===e.y?!b:b;g&&b&&(e.graphic=g.destroy(),delete e.hasDummyGraphic);t(a,!0)&&(g&&g.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(e.graphic=g.destroy()),a&&a.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));p=e.index;l.updateParallelArrays(e,p);h.data[p]=t(h.data[p],!0)||t(a,!0)?e.options:n(a,h.data[p]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&
288
- l.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===h.legendType&&(q.isDirtyLegend=!0);d&&q.redraw(c)}var e=this,l=e.series,g=e.graphic,q=l.chart,h=l.options,p;d=n(d,!0);!1===b?f():e.firePointEvent("update",{options:a},f)};z.prototype.remove=function(a,d){this.series.removePoint(this.series.data.indexOf(this),a,d)};z.prototype.select=function(a,d){var c=this,b=c.series,f=b.chart;this.selectedStaging=a=n(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:d},function(){c.selected=c.options.selected=
289
- a;b.options.data[b.data.indexOf(c)]=c.options;c.setState(a&&"select");d||f.getSelectedPoints().forEach(function(a){var d=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[d.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&d.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging};z.prototype.onMouseOver=function(a){var d=this.series.chart,c=d.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,d.inverted);c.runPointActions(a,
290
- this)};z.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};z.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,d=p(a.series.options.point,a.options).events;a.events=d;D(d,function(d,c){C(d)&&r(a,c,d)});this.hasImportedEvents=!0}};z.prototype.setState=function(d,f){var e=this.series,l=this.state,g=e.options.states[d||
291
- "normal"]||{},q=w.plotOptions[e.type].marker&&e.options.marker,h=q&&!1===q.enabled,p=q&&q.states&&q.states[d||"normal"]||{},k=!1===p.enabled,z=this.marker||{},t=e.chart,m=q&&e.markerAttribs,r=e.halo,D,G=e.stateMarkerGraphic;d=d||"";if(!(d===this.state&&!f||this.selected&&"select"!==d||!1===g.enabled||d&&(k||h&&!1===p.enabled)||d&&z.states&&z.states[d]&&!1===z.states[d].enabled)){this.state=d;m&&(D=e.markerAttribs(this,d));if(this.graphic&&!this.hasDummyGraphic){l&&this.graphic.removeClass("highcharts-point-"+
292
- l);d&&this.graphic.addClass("highcharts-point-"+d);if(!t.styledMode){var C=e.pointAttribs(this,d);var L=n(t.options.chart.animation,g.animation);e.options.inactiveOtherPoints&&y(C.opacity)&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:C.opacity},L)}),this.connector&&this.connector.animate({opacity:C.opacity},L));this.graphic.animate(C,L)}D&&this.graphic.animate(D,n(t.options.chart.animation,p.animation,q.animation));G&&G.hide()}else{if(d&&p){l=z.symbol||e.symbol;G&&G.currentSymbol!==
293
- l&&(G=G.destroy());if(D)if(G)G[f?"animate":"attr"]({x:D.x,y:D.y});else l&&(e.stateMarkerGraphic=G=t.renderer.symbol(l,D.x,D.y,D.width,D.height).add(e.markerGroup),G.currentSymbol=l);!t.styledMode&&G&&"inactive"!==this.state&&G.attr(e.pointAttribs(this,d))}G&&(G[d&&this.isInside?"show":"hide"](),G.element.point=this,G.addClass(this.getClassName(),!0))}g=g.halo;D=(G=this.graphic||G)&&G.visibility||"inherit";g&&g.size&&G&&"hidden"!==D&&!this.isCluster?(r||(e.halo=r=t.renderer.path().add(G.parentGroup)),
294
- r.show()[f?"animate":"attr"]({d:this.haloPath(g.size)}),r.attr({"class":"highcharts-halo highcharts-color-"+n(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:D,zIndex:-1}),r.point=this,t.styledMode||r.attr(a({fill:this.color||e.color,"fill-opacity":g.opacity},b.filterUserAttributes(g.attributes||{})))):r&&r.point&&r.point.haloPath&&r.animate({d:r.point.haloPath(0)},null,r.hide);c(this,"afterSetState",{state:d})}};z.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
295
- a,this.plotY-a,2*a,2*a)};return z}();"";return u});F(b,"Core/Pointer.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Tooltip.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=b.parse,E=u.charts,w=u.noop,k=B.addEvent,r=B.attr,m=B.css,h=B.defined,a=B.extend,c=B.find,e=B.fireEvent,g=B.isNumber,C=B.isObject,y=B.objectEach,t=B.offset,p=B.pick,D=B.splat;b=function(){function b(a,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
296
- !1;this.options=c;this.init(a,c)}b.prototype.applyInactiveState=function(a){var c=[],d;(a||[]).forEach(function(a){d=a.series;c.push(d);d.linkedParent&&c.push(d.linkedParent);d.linkedSeries&&(c=c.concat(d.linkedSeries));d.navigatorSeries&&c.push(d.navigatorSeries)});this.chart.series.forEach(function(a){-1===c.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});
297
- this.eventsToUnbind=[];u.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);y(a,function(c,d){a[d]=void 0})};b.prototype.drag=function(a){var c=this.chart,d=c.options.chart,b=this.zoomHor,f=this.zoomVert,e=c.plotLeft,g=c.plotTop,h=c.plotWidth,n=c.plotHeight,p=this.mouseDownX||0,k=this.mouseDownY||0,t=C(d.panning)?d.panning&&d.panning.enabled:d.panning,
298
- m=d.panKey&&a[d.panKey+"Key"],y=a.chartX,r=a.chartY,D=this.selectionMarker;if(!D||!D.touch)if(y<e?y=e:y>e+h&&(y=e+h),r<g?r=g:r>g+n&&(r=g+n),this.hasDragged=Math.sqrt(Math.pow(p-y,2)+Math.pow(k-r,2)),10<this.hasDragged){var w=c.isInsidePlot(p-e,k-g,{visiblePlotOnly:!0});!c.hasCartesianSeries&&!c.mapView||!this.zoomX&&!this.zoomY||!w||m||D||(this.selectionMarker=D=c.renderer.rect(e,g,b?1:h,f?1:n,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),c.styledMode||D.attr({fill:d.selectionMarkerFill||
299
- x("#335cad").setOpacity(.25).get()}));D&&b&&(b=y-p,D.attr({width:Math.abs(b),x:(0<b?0:b)+p}));D&&f&&(b=r-k,D.attr({height:Math.abs(b),y:(0<b?0:b)+k}));w&&!D&&t&&c.pan(a,d.panning)}};b.prototype.dragStart=function(a){var c=this.chart;c.mouseIsDown=a.type;c.cancelClick=!1;c.mouseDownX=this.mouseDownX=a.chartX;c.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(c){var b=this,d=this.chart,f=this.hasPinched;if(this.selectionMarker){var l=this.selectionMarker,n=l.attr?l.attr("x"):l.x,p=l.attr?
300
- l.attr("y"):l.y,k=l.attr?l.attr("width"):l.width,t=l.attr?l.attr("height"):l.height,y={originalEvent:c,xAxis:[],yAxis:[],x:n,y:p,width:k,height:t},r=!!d.mapView;if(this.hasDragged||f)d.axes.forEach(function(a){if(a.zoomEnabled&&h(a.min)&&(f||b[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&g(n)&&g(p)){var d=a.horiz,e="touchend"===c.type?a.minPixelPadding:0,l=a.toValue((d?n:p)+e);d=a.toValue((d?n+k:p+t)-e);y[a.coll].push({axis:a,min:Math.min(l,d),max:Math.max(l,d)});r=!0}}),r&&e(d,"selection",y,function(c){d.zoom(a(c,
301
- f?{animation:!1}:null))});g(d.index)&&(this.selectionMarker=this.selectionMarker.destroy());f&&this.scaleGroups()}d&&g(d.index)&&(m(d.container,{cursor:d._cursor}),d.cancelClick=10<this.hasDragged,d.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,c,d){var b=this.chart,f=b.hoverPoint;b=b.tooltip;if(f&&b&&b.isStickyOnContact())return f;var e;a.forEach(function(a){var b=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=
302
- a.searchPoint(d,b);if((b=C(a,!0)&&a.series)&&!(b=!C(e,!0))){b=e.distX-a.distX;var f=e.dist-a.dist,l=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&c?b:0!==f?f:0!==l?l:e.series.index>a.series.index?-1:1)}b&&(e=a)});return e};b.prototype.getChartCoordinatesFromPoint=function(a,c){var d=a.series,b=d.xAxis;d=d.yAxis;var f=a.shapeArgs;if(b&&d){var e=p(a.clientX,a.plotX),q=a.plotY||0;a.isNode&&f&&g(f.x)&&g(f.y)&&(e=f.x,q=f.y);return c?{chartX:d.len+d.pos-q,chartY:b.len+
303
- b.pos-e}:{chartX:e+b.pos,chartY:q+d.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=t(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var d=a.offsetWidth;a=a.offsetHeight;2<d&&2<a&&(this.chartPosition.scaleX=c.width/d,this.chartPosition.scaleY=c.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var c={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(d){c[d.isXAxis?
304
- "xAxis":"yAxis"].push({axis:d,value:d.toValue(a[d.horiz?"chartX":"chartY"])})});return c};b.prototype.getHoverData=function(a,b,d,g,l,h){var f=[];g=!(!g||!a);var q={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:l};e(this,"beforeGetHoverData",q);var n=b&&!b.stickyTracking?[b]:d.filter(function(a){return q.filter?q.filter(a):a.visible&&!(!l&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&a.stickyTracking});var k=g||!h?a:this.findNearestKDPoint(n,l,h);b=k&&k.series;k&&(l&&!b.noSharedTooltip?
305
- (n=d.filter(function(a){return q.filter?q.filter(a):a.visible&&!(!l&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),n.forEach(function(a){var d=c(a.points,function(a){return a.x===k.x&&!a.isNull});C(d)&&(a.chart.isBoosting&&(d=a.getPoint(d)),f.push(d))})):f.push(k));q={hoverPoint:k};e(this,"afterGetHoverData",q);return{hoverPoint:q.hoverPoint,hoverSeries:b,hoverPoints:f}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var c;a&&!c;)c=a.point,a=a.parentNode;return c};
306
- b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var c=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!c||!a||c.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+c.index)&&this.inClass(a,"highcharts-tracker")))c.onMouseOut()};b.prototype.inClass=function(a,c){for(var d;a;){if(d=r(a,"class")){if(-1!==d.indexOf(c))return!0;if(-1!==d.indexOf("highcharts-container"))return!1}a=a.parentNode}};b.prototype.init=function(a,c){this.options=
307
- c;this.chart=a;this.runChartClick=!(!c.chart.events||!c.chart.events.click);this.pinchDown=[];this.lastValidTouch={};A&&(a.tooltip=new A(a,c.tooltip),this.followTouchMove=p(c.tooltip.followTouchMove,!0));this.setDOMEvents()};b.prototype.normalize=function(c,b){var d=c.touches,f=d?d.length?d.item(0):p(d.changedTouches,c.changedTouches)[0]:c;b||(b=this.getChartPosition());d=f.pageX-b.left;f=f.pageY-b.top;d/=b.scaleX;f/=b.scaleY;return a(c,{chartX:Math.round(d),chartY:Math.round(f)})};b.prototype.onContainerClick=
308
- function(c){var b=this.chart,d=b.hoverPoint;c=this.normalize(c);var f=b.plotLeft,g=b.plotTop;b.cancelClick||(d&&this.inClass(c.target,"highcharts-tracker")?(e(d.series,"click",a(c,{point:d})),b.hoverPoint&&d.firePointEvent("click",c)):(a(c,this.getCoordinates(c)),b.isInsidePlot(c.chartX-f,c.chartY-g,{visiblePlotOnly:!0})&&e(b,"click",c)))};b.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(u.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
309
- if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var c=E[p(b.hoverChartIndex,-1)],d=this.chart.tooltip;d&&d.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),c&&(a.relatedTarget||a.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=void 0),d&&!d.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
310
- b.prototype.onContainerMouseMove=function(a){var c=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var c=E[p(b.hoverChartIndex,
311
- -1)];c&&c.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=function(a){var c=this.chart,d=this.chartPosition;a=this.normalize(a,d);var b=c.tooltip;!d||b&&b.isStickyOnContact()||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||
312
- this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var c=E[p(b.hoverChartIndex,-1)];c&&c.pointer.drop(a)};b.prototype.pinch=function(c){var b=this,d=b.chart,f=b.pinchDown,g=c.touches||[],h=g.length,n=b.lastValidTouch,k=b.hasZoom,t={},m=1===h&&(b.inClass(c.target,"highcharts-tracker")&&d.runTrackerClick||b.runChartClick),y={},r=b.selectionMarker;1<h?b.initiated=!0:1===h&&this.followTouchMove&&(b.initiated=!1);k&&b.initiated&&!m&&!1!==c.cancelable&&
313
- c.preventDefault();[].map.call(g,function(a){return b.normalize(a)});"touchstart"===c.type?([].forEach.call(g,function(a,c){f[c]={chartX:a.chartX,chartY:a.chartY}}),n.x=[f[0].chartX,f[1]&&f[1].chartX],n.y=[f[0].chartY,f[1]&&f[1].chartY],d.axes.forEach(function(a){if(a.zoomEnabled){var c=d.bounds[a.horiz?"h":"v"],b=a.minPixelPadding,f=a.toPixels(Math.min(p(a.options.min,a.dataMin),a.dataMin)),e=a.toPixels(Math.max(p(a.options.max,a.dataMax),a.dataMax)),g=Math.max(f,e);c.min=Math.min(a.pos,Math.min(f,
314
- e)-b);c.max=Math.max(a.pos+a.len,g+b)}}),b.res=!0):b.followTouchMove&&1===h?this.runPointActions(b.normalize(c)):f.length&&(e(d,"touchpan",{originalEvent:c},function(){r||(b.selectionMarker=r=a({destroy:w,touch:!0},d.plotBox));b.pinchTranslate(f,g,t,r,y,n);b.hasPinched=k;b.scaleGroups(t,y)}),b.res&&(b.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,c,d,b,e,g){this.zoomHor&&this.pinchTranslateDirection(!0,a,c,d,b,e,g);this.zoomVert&&this.pinchTranslateDirection(!1,a,c,d,b,e,g)};b.prototype.pinchTranslateDirection=
315
- function(a,c,d,b,e,g,h,n){var f=this.chart,l=a?"x":"y",q=a?"X":"Y",p="chart"+q,k=a?"width":"height",t=f["plot"+(a?"Left":"Top")],m=f.inverted,z=f.bounds[a?"h":"v"],y=1===c.length,r=c[0][p],D=!y&&c[1][p];c=function(){"number"===typeof I&&20<Math.abs(r-D)&&(x=n||Math.abs(w-I)/Math.abs(r-D));G=(t-w)/x+r;C=f["plot"+(a?"Width":"Height")]/x};var C,G,x=n||1,w=d[0][p],I=!y&&d[1][p];c();d=G;if(d<z.min){d=z.min;var u=!0}else d+C>z.max&&(d=z.max-C,u=!0);u?(w-=.8*(w-h[l][0]),"number"===typeof I&&(I-=.8*(I-h[l][1])),
316
- c()):h[l]=[w,I];m||(g[l]=G-t,g[k]=C);g=m?1/x:x;e[k]=C;e[l]=d;b[m?a?"scaleY":"scaleX":"scale"+q]=x;b["translate"+q]=g*t+(w-g*r)};b.prototype.reset=function(a,c){var d=this.chart,b=d.hoverSeries,e=d.hoverPoint,f=d.hoverPoints,g=d.tooltip,h=g&&g.shared?f:e;a&&h&&D(h).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)g&&h&&D(h).length&&(g.refresh(h),g.shared&&f?f.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,
317
- a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):e&&(e.setState(e.state,!0),d.axes.forEach(function(a){a.crosshair&&e.series[a.coll]===a&&a.drawCrosshair(null,e)})));else{if(e)e.onMouseOut();f&&f.forEach(function(a){a.setState()});if(b)b.onMouseOut();g&&g.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}};b.prototype.runPointActions=function(a,e){var d=this.chart,
318
- f=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,g=f?f.shared:!1,h=e||d.hoverPoint,n=h&&h.series||d.hoverSeries;e=this.getHoverData(h,n,d.series,(!a||"touchmove"!==a.type)&&(!!e||n&&n.directTouch&&this.isDirectTouch),g,a);h=e.hoverPoint;n=e.hoverSeries;var q=e.hoverPoints;e=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split;g=g&&n&&!n.noSharedTooltip;if(h&&(h!==d.hoverPoint||f&&f.isHidden)){(d.hoverPoints||[]).forEach(function(a){-1===q.indexOf(a)&&a.setState()});if(d.hoverSeries!==
319
- n)n.onMouseOver();this.applyInactiveState(q);(q||[]).forEach(function(a){a.setState("hover")});d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut");if(!h.series)return;d.hoverPoints=q;d.hoverPoint=h;h.firePointEvent("mouseOver");f&&f.refresh(g?q:h,a)}else e&&f&&!f.isHidden&&(h=f.getAnchor([{}],a),d.isInsidePlot(h[0],h[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=k(d.container.ownerDocument,"mousemove",function(a){var c=E[b.hoverChartIndex];
320
- if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));d.axes.forEach(function(b){var e=p((b.crosshair||{}).snap,!0),f;e&&((f=d.hoverPoint)&&f.series[b.coll]===b||(f=c(q,function(a){return a.series[b.coll]===b})));f||!e?b.drawCrosshair(a,f):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,c){var d=this.chart;d.series.forEach(function(b){var e=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||d.mapView)&&(b.group.attr(e),b.markerGroup&&(b.markerGroup.attr(e),
321
- b.markerGroup.clip(c?d.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(e))});d.clipRect.attr(c||d.clipBox)};b.prototype.setDOMEvents=function(){var a=this,c=this.chart.container,d=c.ownerDocument;c.onmousedown=this.onContainerMouseDown.bind(this);c.onmousemove=this.onContainerMouseMove.bind(this);c.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(k(c,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(k(c,"mouseleave",this.onContainerMouseLeave.bind(this)));
322
- b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=k(d,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(k(e,"scroll",function(){delete a.chartPosition})),e=e.parentElement;u.hasTouch&&(this.eventsToUnbind.push(k(c,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(k(c,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=
323
- k(d,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,c=u.charts[p(b.hoverChartIndex,-1)];if(c&&c!==a)c.pointer.onContainerMouseLeave({relatedTarget:!0});c&&c.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,c){var d=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0}))&&!d.openMenu){c&&this.runPointActions(a);
324
- if("touchmove"===a.type){c=this.pinchDown;var e=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1}p(e,!0)&&this.pinch(a)}else c&&this.reset();else 2===a.touches.length&&this.pinch(a)};b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var c=this.chart,d=c.options.chart;c=c.inverted;var b=d.zoomType||"";/touch/.test(a.type)&&(b=p(d.pinchType,b));this.zoomX=
325
- a=/x/.test(b);this.zoomY=d=/y/.test(b);this.zoomHor=a&&!c||d&&c;this.zoomVert=d&&!c||a&&c;this.hasZoom=a||d};return b}();"";return b});F(b,"Core/MSPointer.js",[b["Core/Globals.js"],b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,u,A){function x(){var a=[];a.item=function(a){return this[a]};c(g,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function v(a,c,b,e){var g=w[u.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!g||
326
- (g=g.pointer,e(a),g[c]({type:b,target:a.currentTarget,preventDefault:r,touches:x()}))}var E=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),w=b.charts,k=b.doc,r=b.noop,m=b.win,h=A.addEvent,a=A.css,
327
- c=A.objectEach,e=A.removeEvent,g={},C=!!m.PointerEvent;return function(c){function t(){return null!==c&&c.apply(this,arguments)||this}E(t,c);t.isRequired=function(){return!(b.hasTouch||!m.PointerEvent&&!m.MSPointerEvent)};t.prototype.batchMSEvents=function(a){a(this.chart.container,C?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,C?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(k,C?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};t.prototype.destroy=
328
- function(){this.batchMSEvents(e);c.prototype.destroy.call(this)};t.prototype.init=function(b,e){c.prototype.init.call(this,b,e);this.hasZoom&&a(b.container,{"-ms-touch-action":"none","touch-action":"none"})};t.prototype.onContainerPointerDown=function(a){v(a,"onContainerTouchStart","touchstart",function(a){g[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};t.prototype.onContainerPointerMove=function(a){v(a,"onContainerTouchMove","touchmove",function(a){g[a.pointerId]={pageX:a.pageX,
329
- pageY:a.pageY};g[a.pointerId].target||(g[a.pointerId].target=a.currentTarget)})};t.prototype.onDocumentPointerUp=function(a){v(a,"onDocumentTouchEnd","touchend",function(a){delete g[a.pointerId]})};t.prototype.setDOMEvents=function(){c.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return t}(u)});F(b,"Core/Legend/Legend.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Point.js"],b["Core/Renderer/RendererUtilities.js"],
330
- b["Core/Utilities.js"]],function(b,u,A,B,v,E){var x=b.animObject,k=b.setAnimation,r=u.format;b=A.isFirefox;var m=A.marginNames;A=A.win;var h=v.distribute,a=E.addEvent,c=E.createElement,e=E.css,g=E.defined,C=E.discardElement,y=E.find,t=E.fireEvent,p=E.isNumber,D=E.merge,n=E.pick,f=E.relativeLength,q=E.stableSort,d=E.syncTimeout;v=E.wrap;E=function(){function b(a,c){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=
331
- this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,c)}b.prototype.init=function(c,d){this.chart=c;this.setOptions(d);d.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),
332
- this.proximate?this.unchartrender=a(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(a){var c=n(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=D(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=n(a.symbolWidth,
333
- 16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(a,c){var d=this.chart;this.setOptions(D(!0,this.options,a));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;n(c,!0)&&d.redraw();t(this,"afterUpdate")};b.prototype.colorizeItem=function(a,c){a.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color;
334
- d=c?d.itemStyle.color:g;var l=c?a.color||g:g,h=a.options&&a.options.marker,n={fill:l};b&&b.css({fill:d,color:d});e&&e.attr({stroke:l});f&&(h&&f.isMarker&&(n=a.pointAttribs(),c||(n.stroke=n.fill=g)),f.attr(n))}t(this,"afterColorizeItem",{item:a,visible:c})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(a){var c=this,d=this.options,b=d.symbolPadding,e=!d.rtl,f=a._legendItemPos;d=
335
- f[0];f=f[1];var l=a.checkbox,h=a.legendGroup;h&&h.element&&(b={translateX:e?d:this.legendWidth-d-2*b-4,translateY:f},e=function(){t(c,"afterPositionItem",{item:a})},g(h.translateY)?h.animate(b,void 0,e):(h.attr(b),e()));l&&(l.x=d,l.y=f)};b.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});c&&C(a.checkbox)};b.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem",
336
- "legendGroup"].forEach(a,c)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};b.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,d=this.titleHeight;if(a){var b=a.translateY;this.allItems.forEach(function(f){var g=f.checkbox;if(g){var l=b+d+g.y+(this.scrollOffset||0)+3;e(g,{left:a.translateX+f.checkboxOffset+g.x-20+"px",top:l+"px",display:this.proximate||l>b-6&&l<b+c-6?"":"none"})}},this)}};
337
- b.prototype.renderTitle=function(){var a=this.options,c=this.padding,d=a.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),b=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(a){var c=
338
- this.options;a.legendItem.attr({text:c.labelFormat?r(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};b.prototype.renderItem=function(a){var c=this.chart,d=c.renderer,b=this.options,e=this.symbolWidth,f=b.symbolPadding||0,g=this.itemStyle,l=this.itemHiddenStyle,h="horizontal"===b.layout?n(b.itemDistance,20):0,q=!b.rtl,p=!a.series,k=!p&&a.series.drawLegendSymbol?a.series:a,t=k.options,m=this.createCheckboxForItem&&t&&t.showCheckbox,r=b.useHTML,y=a.options.className,z=a.legendItem;t=e+f+h+(m?
339
- 20:0);z||(a.legendGroup=d.g("legend-item").addClass("highcharts-"+k.type+"-series highcharts-color-"+a.colorIndex+(y?" "+y:"")+(p?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=z=d.text("",q?e+f:-f,this.baseline||0,r),c.styledMode||z.css(D(a.visible?g:l)),z.attr({align:q?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(c.styledMode?12:g.fontSize,z),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,z.attr("y",this.baseline),
340
- this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=n(b.symbolWidth,Math.max(this.symbolHeight,16)),t=this.symbolWidth+f+h+(m?20:0),q&&z.attr("x",this.symbolWidth+f))),k.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,z,r));m&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&g.width||z.css({width:(b.itemWidth||this.widthOption||c.spacingBox.width)-t+"px"});this.setText(a);c=z.getBBox();
341
- a.itemWidth=a.checkboxOffset=b.itemWidth||a.legendItemWidth||c.width+t;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};b.prototype.layoutItem=function(a){var c=this.options,d=this.padding,b="horizontal"===c.layout,e=a.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,l=b?n(c.itemDistance,20):0,h=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:
342
- a.itemWidth;b&&this.itemX-d+c>h&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=g+this.itemY+f;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=c:(this.itemY+=g+e+f,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(a.checkbox?0:l):c)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var d=c&&
343
- c.options;c&&n(d.showInLegend,g(d.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===d.legendType?c.data:c)))});t(this,"afterGetAllItems",{allItems:a});return a};b.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,c){var d=this.chart,b=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,
344
- l){f.test(e)&&!g(a[l])&&(d[m[l]]=Math.max(d[m[l]],d.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*b[l%2?"x":"y"]+n(b.margin,12)+c[l]+(d.titleOffset[l]||0)))})};b.prototype.proximatePositions=function(){var a=this.chart,c=[],d="left"===this.options.align;this.allItems.forEach(function(b){var e;var f=d;if(b.yAxis){b.xAxis.options.reversed&&(f=!f);b.points&&(e=y(f?b.points:b.points.slice(0).reverse(),function(a){return p(a.plotY)}));f=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;
345
- var g=b.yAxis.top-a.plotTop;b.visible?(e=e?e.plotY:b.yAxis.height,e+=g-.3*f):e=g+b.yAxis.height;c.push({target:e,size:f,item:b})}},this);h(c,a.plotHeight).forEach(function(c){c.item._legendItemPos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};b.prototype.render=function(){var a=this.chart,c=a.renderer,d=this.options,b=this.padding,e=this.getAllItems(),g=this.group,h=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=f(d.width,a.spacingBox.width-
346
- b);var n=a.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2);this.maxLegendWidth=this.widthOption||n;g||(this.group=g=c.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(g),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();q(e,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=n=!!e.length;
347
- this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+b;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=b;h||(this.box=h=c.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(g),h.isNew=!0);a.styledMode||h.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<e&&
348
- 0<p&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:e,height:p},h.strokeWidth())),h.isNew=!1);h[n?"show":"hide"]();a.styledMode&&"none"===g.getStyle("display")&&(e=p=0);this.legendWidth=e;this.legendHeight=p;n&&this.align();this.proximate||this.positionItems();t(this,"afterRender")};b.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var c=this.chart,d=this.options,b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?b+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
349
- 0<c.titleOffset[2]&&(b-=c.titleOffset[2]);b!==a.y&&(a=D(a,{y:b}));this.group.align(D(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var c=this,d=this.chart,b=d.renderer,e=this.options,f=e.y,g="top"===e.verticalAlign,h=this.padding,l=e.maxHeight,p=e.navigation,q=n(p.animation,!0),k=p.arrowSize||12,t=this.pages,m=this.allItems,r=function(a){"number"===typeof a?x.attr({height:a}):x&&(c.clipRect=x.destroy(),
350
- c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+h+"px,9999px,"+(h+a)+"px,0)":"auto")},z=function(a){c[a]=b.circle(0,0,1.3*k).translate(k/2,k/2).add(C);d.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]},y,D;f=d.spacingBox.height+(g?-f:f)-h;var C=this.nav,x=this.clipRect;"horizontal"!==e.layout||"middle"===e.verticalAlign||e.floating||(f/=2);l&&(f=Math.min(f,l));t.length=0;a&&0<f&&a>f&&!1!==p.enabled?(this.clipHeight=y=Math.max(f-20-this.titleHeight-
351
- h,0),this.currentPage=n(this.currentPage,1),this.fullHeight=a,m.forEach(function(a,c){var d=a._legendItemPos[1],b=Math.round(a.legendItem.getBBox().height),e=t.length;if(!e||d-t[e-1]>y&&(D||d)!==t[e-1])t.push(D||d),e++;a.pageIx=e-1;D&&(m[c-1].pageIx=e-1);c===m.length-1&&d+b-t[e-1]>y&&b<=y&&(t.push(d),a.pageIx=e);d!==D&&(D=d)}),x||(x=c.clipRect=b.clipRect(0,h,9999,0),c.contentGroup.clip(x)),r(y),C||(this.nav=C=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,k,k).add(C),z("upTracker").on("click",
352
- function(){c.scroll(-1,q)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(p.style),this.pager.add(C),this.down=b.symbol("triangle-down",0,0,k,k).add(C),z("downTracker").on("click",function(){c.scroll(1,q)})),c.scroll(0),a=f):C&&(r(),this.nav=C.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};b.prototype.scroll=function(a,c){var b=this,e=this.chart,f=this.pages,g=f.length,h=this.clipHeight,l=this.options.navigation,p=this.pager,
353
- q=this.padding,m=this.currentPage+a;m>g&&(m=g);0<m&&("undefined"!==typeof c&&k(c,e),this.nav.attr({translateX:q,translateY:h+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===m?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),p.attr({text:m+"/"+g}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":m===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},
354
- this),e.styledMode||(this.up.attr({fill:1===m?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===m?"default":"pointer"}),this.down.attr({fill:m===g?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:m===g?"default":"pointer"})),this.scrollOffset=-f[m-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=m,this.positionCheckboxes(),a=x(n(c,e.renderer.globalAnimation,!0)),d(function(){t(b,"afterScroll",{currentPage:m})},a.duration))};b.prototype.setItemEvents=
355
- function(a,c,d){var b=this,e=b.chart.renderer.boxWrapper,f=a instanceof B,g="highcharts-legend-"+(f?"point":"series")+"-active",h=b.chart.styledMode,l=function(c){b.allItems.forEach(function(d){a!==d&&[d].concat(d.linkedSeries||[]).forEach(function(a){a.setState(c,!f)})})};(d?[c,a.legendSymbol]:[a.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){a.visible&&l("inactive");a.setState("hover");a.visible&&e.addClass(g);h||c.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||
356
- c.css(D(a.visible?b.itemStyle:b.itemHiddenStyle));l("");e.removeClass(g);a.setState()}).on("click",function(c){var d=function(){a.setVisible&&a.setVisible();l(a.visible?"inactive":"")};e.removeClass(g);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,d):t(a,"legendItemClick",c,d)})})};b.prototype.createCheckboxForItem=function(d){d.checkbox=c("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,
357
- this.chart.container);a(d.checkbox,"click",function(a){t(d.series||d,"checkboxClick",{checked:a.target.checked,item:d},function(){d.select()})})};return b}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||b)&&v(E.prototype,"positionItem",function(a,c){var d=this,b=function(){c._legendItemPos&&a.call(d,c)};b();d.bubbleLegend||setTimeout(b)});"";return E});F(b,"Core/Series/SeriesRegistry.js",[b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],
358
- function(b,u,A,B){var x=u.defaultOptions,E=B.error,w=B.extendClass,k=B.merge,r;(function(m){function h(a,c){var b=x.plotOptions||{},g=c.defaultOptions;c.prototype.pointClass||(c.prototype.pointClass=A);c.prototype.type=a;g&&(b[a]=g);m.seriesTypes[a]=c}m.seriesTypes=b.seriesTypes;m.getSeries=function(a,c){void 0===c&&(c={});var b=a.options.chart;b=c.type||b.type||b.defaultSeriesType||"";var g=m.seriesTypes[b];m||E(17,!0,a,{missingModuleFor:b});b=new g;"function"===typeof b.init&&b.init(a,c);return b};
359
- m.registerSeriesType=h;m.seriesType=function(a,c,b,g,r){var e=x.plotOptions||{};c=c||"";e[a]=k(e[c],b);h(a,w(m.seriesTypes[c]||function(){},g));m.seriesTypes[a].prototype.type=a;r&&(m.seriesTypes[a].prototype.pointClass=w(A,r));return m.seriesTypes[a]}})(r||(r={}));return r});F(b,"Core/Chart/Chart.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/FormatUtilities.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/Legend.js"],b["Core/MSPointer.js"],b["Core/DefaultOptions.js"],
360
- b["Core/Pointer.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Time.js"],b["Core/Utilities.js"],b["Core/Renderer/HTML/AST.js"]],function(b,u,A,B,v,E,w,k,r,m,h,a,c,e,g){var C=b.animate,y=b.animObject,t=b.setAnimation,p=A.numberFormat,D=B.registerEventOptions,n=v.charts,f=v.doc,q=v.marginNames,d=v.svg,z=v.win,l=k.defaultOptions,x=k.defaultTime,K=h.seriesTypes,I=e.addEvent,H=e.attr,N=e.cleanRecursively,aa=e.createElement,Q=
361
- e.css,S=e.defined,X=e.discardElement,F=e.erase,J=e.error,ca=e.extend,ha=e.find,M=e.fireEvent,Y=e.getStyle,L=e.isArray,T=e.isNumber,R=e.isObject,V=e.isString,U=e.merge,W=e.objectEach,O=e.pick,da=e.pInt,ea=e.relativeLength,ia=e.removeEvent,ba=e.splat,fa=e.syncTimeout,ja=e.uniqueKey;b=function(){function b(a,c,d){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=
362
- this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,c,d)}b.chart=function(a,c,d){return new b(a,c,d)};b.prototype.getArgs=function(a,c,d){V(a)||a.nodeName?(this.renderTo=a,this.init(c,d)):this.init(a,c)};b.prototype.init=
363
- function(a,d){var b=a.plotOptions||{};M(this,"init",{args:arguments},function(){var e=U(l,a),f=e.chart;W(e.plotOptions,function(a,c){R(a)&&(a.tooltip=b[c]&&U(b[c].tooltip)||void 0)});e.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new c(a.time):v.time;
364
- this.numberFormatter=f.numberFormatter||p;this.styledMode=f.styledMode;this.hasCartesianSeries=f.showAxes;this.index=n.length;n.push(this);v.chartCount++;D(this,f);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;M(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var c=this.options.chart;c=a.type||c.type||c.defaultSeriesType;var d=K[c];d||J(17,!0,this,{missingModuleFor:c});c=new d;"function"===typeof c.init&&c.init(this,a);return c};b.prototype.setSeriesData=
365
- function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var d=c.length;a<d;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=function(a,c,d){void 0===
366
- d&&(d={});var b=this.inverted,e=this.plotBox,f=this.plotLeft,g=this.plotTop,h=this.scrollablePlotBox,l=0;var n=0;d.visiblePlotOnly&&this.scrollingContainer&&(n=this.scrollingContainer,l=n.scrollLeft,n=n.scrollTop);var p=d.series;e=d.visiblePlotOnly&&h||e;h=d.inverted?c:a;c=d.inverted?a:c;a={x:h,y:c,isInsidePlot:!0};if(!d.ignoreX){var q=p&&(b?p.yAxis:p.xAxis)||{pos:f,len:Infinity};h=d.paneCoordinates?q.pos+h:f+h;h>=Math.max(l+f,q.pos)&&h<=Math.min(l+f+e.width,q.pos+q.len)||(a.isInsidePlot=!1)}!d.ignoreY&&
367
- a.isInsidePlot&&(b=p&&(b?p.xAxis:p.yAxis)||{pos:g,len:Infinity},d=d.paneCoordinates?b.pos+c:g+c,d>=Math.max(n+g,b.pos)&&d<=Math.min(n+g+e.height,b.pos+b.len)||(a.isInsidePlot=!1));M(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){M(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,b=this.pointer,e=this.legend,f=this.userOptions.legend,g=this.renderer,h=g.isHidden(),l=[],n=this.isDirtyBox,p=this.isDirtyLegend;this.setResponsive&&
368
- this.setResponsive(!1);t(this.hasRendered?a:!1,this);h&&this.temporaryDisplay();this.layOutTitles();for(a=d.length;a--;){var q=d[a];if(q.options.stacking||q.options.centerInCategory){var k=!0;if(q.isDirty){var m=!0;break}}}if(m)for(a=d.length;a--;)q=d[a],q.options.stacking&&(q.isDirty=!0);d.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),p=!0):f&&(f.labelFormatter||f.labelFormat)&&(p=!0));a.isDirtyData&&M(a,"updatedData")});p&&e&&
369
- e.options.enabled&&(e.render(),this.isDirtyLegend=!1);k&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(n=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,l.push(function(){M(a,"afterSetExtremes",ca(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||k)&&a.redraw()});n&&this.drawChartBox();M(this,"predraw");d.forEach(function(a){(n||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});b&&b.reset(!0);
370
- g.draw();M(this,"redraw");M(this,"render");h&&this.temporaryDisplay(!0);l.forEach(function(a){a.call()})};b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var d=this.series,b=ha(this.axes,c)||ha(this.series,c),e=0;!b&&e<d.length;e++)b=ha(d[e].points||[],c);return b};b.prototype.getAxes=function(){var a=this,c=this.options,d=c.xAxis=ba(c.xAxis||{});c=c.yAxis=ba(c.yAxis||{});M(this,"getAxes");d.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,
371
- c){a.index=c});d.concat(c).forEach(function(c){new u(a,c)});M(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){O(c.selectedStaging,c.selected)&&a.push(c)});return a},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,d){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",
372
- void 0);this.layOutTitles(d)};b.prototype.applyDescription=function(a,c){var d=this,b="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};b=this.options[a]=U(!this.styledMode&&{style:b},this.options[a],c);var e=this[a];e&&c&&(this[a]=e=e.destroy());b&&!e&&(e=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+a,zIndex:b.zIndex||4}).add(),e.update=function(c){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},
373
- this.styledMode||e.css(b.style),this[a]=e)};b.prototype.layOutTitles=function(a){var c=[0,0,0],d=this.renderer,b=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var e=this[a],f=this.options[a],g=f.verticalAlign||"top";a="title"===a?"top"===g?-3:0:"top"===g?c[0]+2:0;var h;if(e){this.styledMode||(h=f.style&&f.style.fontSize);h=d.fontMetrics(h,e).b;e.css({width:(f.width||b.width+(f.widthAdjust||0))+"px"});var l=Math.round(e.getBBox(f.useHTML).height);e.align(ca({y:"bottom"===g?h:a+
374
- h,height:l},f),!1,"spacingBox");f.floating||("top"===g?c[0]=Math.ceil(c[0]+l):"bottom"===g&&(c[2]=Math.ceil(c[2]+l)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var e=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;M(this,"afterLayOutTitles");!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&O(a,!0)&&
375
- this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var d=this.renderTo;S(c)||(this.containerWidth=Y(d,"width"));S(a)||(this.containerHeight=Y(d,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ea(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(Q(c,c.hcOrigStyle),delete c.hcOrigStyle),
376
- c.hcOrigDetached&&(f.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){f.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,f.body.appendChild(c));if("none"===Y(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),Q(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===f.body)break}};b.prototype.setClassName=
377
- function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var c=this.options,b=c.chart,e=ja(),g,h=this.renderTo;h||(this.renderTo=h=b.renderTo);V(h)&&(this.renderTo=h=f.getElementById(h));h||J(13,!0,this);var l=da(H(h,"data-highcharts-chart"));T(l)&&n[l]&&n[l].hasRendered&&n[l].destroy();H(h,"data-highcharts-chart",this.index);h.innerHTML="";b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();l=this.chartWidth;var p=this.chartHeight;
378
- Q(h,{overflow:"hidden"});this.styledMode||(g=ca({position:"relative",overflow:"hidden",width:l+"px",height:p+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=e=aa("div",{id:e},g,h);this._cursor=e.style.cursor;this.renderer=new (b.renderer||!d?m.getRendererType(b.renderer):a)(e,l,p,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);t(void 0,
379
- this);this.setClassName(b.className);if(this.styledMode)for(var q in c.defs)this.renderer.definition(c.defs[q]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;M(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,d=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!S(d[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+c[0]));b[2]&&!S(d[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,
380
- c);M(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=this,c=a.axisOffset=[0,0,0,0],d=a.colorAxis,b=a.margin,e=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?e(a.axes):d&&d.length&&e(d);q.forEach(function(d,e){S(b[e])||(a[d]+=c[e])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,d=c.options.chart,b=c.renderTo,g=S(d.width)&&S(d.height),h=d.width||Y(b,"width");d=d.height||Y(b,"height");b=a?a.target:z;delete c.pointer.chartPosition;
381
- if(!g&&!c.isPrinting&&h&&d&&(b===z||b===f)){if(h!==c.containerWidth||d!==c.containerHeight)e.clearTimeout(c.reflowTimeout),c.reflowTimeout=fa(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=d}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=I(z,"resize",function(a){c.options&&c.reflow(a)}),I(this,"destroy",this.unbindReflow))};b.prototype.setSize=
382
- function(a,c,d){var b=this,e=b.renderer;b.isResizing+=1;t(d,b);d=e.globalAnimation;b.oldChartHeight=b.chartHeight;b.oldChartWidth=b.chartWidth;"undefined"!==typeof a&&(b.options.chart.width=a);"undefined"!==typeof c&&(b.options.chart.height=c);b.getChartSize();b.styledMode||(d?C:Q)(b.container,{width:b.chartWidth+"px",height:b.chartHeight+"px"},d);b.setChartSize(!0);e.setSize(b.chartWidth,b.chartHeight,d);b.axes.forEach(function(a){a.isDirty=!0;a.setScale()});b.isDirtyLegend=!0;b.isDirtyBox=!0;b.layOutTitles();
383
- b.getMargins();b.redraw(d);b.oldChartHeight=null;M(b,"resize");fa(function(){b&&M(b,"endResize",null,function(){--b.isResizing})},y(d).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,d=this.renderer,b=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,l,n,p,q;this.plotLeft=l=Math.round(this.plotLeft);this.plotTop=n=Math.round(this.plotTop);this.plotWidth=p=Math.max(0,Math.round(b-l-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(e-
384
- n-this.marginBottom));this.plotSizeX=c?q:p;this.plotSizeY=c?p:q;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:g[3],y:g[0],width:b-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=d.plotBox={x:l,y:n,width:p,height:q};c=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(c,h[3])/2);e=Math.ceil(Math.max(c,h[0])/2);this.clipBox={x:b,y:e,width:Math.floor(this.plotSizeX-Math.max(c,h[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,h[2])/2-e))};a||(this.axes.forEach(function(a){a.setAxisSize();
385
- a.setAxisTranslation()}),d.alignElements());M(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){M(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(d){var b=c[d],e=R(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,f){a[d][f]=O(c[d+b],e[f])})});q.forEach(function(c,d){a[c]=O(a.margin[d],a.spacing[d])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,
386
- d=this.chartWidth,b=this.chartHeight,e=this.styledMode,f=this.plotBGImage,g=a.backgroundColor,h=a.plotBackgroundColor,l=a.plotBackgroundImage,n=this.plotLeft,p=this.plotTop,q=this.plotWidth,k=this.plotHeight,t=this.plotBox,m=this.clipRect,r=this.clipBox,z=this.chartBackground,y=this.plotBackground,D=this.plotBorder,C,L="animate";z||(this.chartBackground=z=c.rect().addClass("highcharts-background").add(),L="attr");if(e)var x=C=z.strokeWidth();else{x=a.borderWidth||0;C=x+(a.shadow?8:0);g={fill:g||"none"};
387
- if(x||z["stroke-width"])g.stroke=a.borderColor,g["stroke-width"]=x;z.attr(g).shadow(a.shadow)}z[L]({x:C/2,y:C/2,width:d-C-x%2,height:b-C-x%2,r:a.borderRadius});L="animate";y||(L="attr",this.plotBackground=y=c.rect().addClass("highcharts-plot-background").add());y[L](t);e||(y.attr({fill:h||"none"}).shadow(a.plotShadow),l&&(f?(l!==f.attr("href")&&f.attr("href",l),f.animate(t)):this.plotBGImage=c.image(l,n,p,q,k).add()));m?m.animate({width:r.width,height:r.height}):this.clipRect=c.clipRect(r);L="animate";
388
- D||(L="attr",this.plotBorder=D=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e||D.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});D[L](D.crisp({x:n,y:p,width:q,height:k},-D.strokeWidth()));this.isDirtyBox=!1;M(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,c=a.options.chart,d=a.options.series,b,e,f;["inverted","angular","polar"].forEach(function(g){e=K[c.type||c.defaultSeriesType];f=c[g]||e&&e.prototype[g];for(b=d&&
389
- d.length;!f&&b--;)(e=K[d[b].type])&&e.prototype[g]&&(f=!0);a[g]=f})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var d=c.options.linkedTo;V(d)&&(d=":previous"===d?a.series[c.index-1]:a.get(d))&&d.linkedParent!==c&&(d.linkedSeries.push(c),c.linkedParent=d,d.enabledDataSorting&&c.setDataSortingOptions(),c.visible=O(c.options.visible,d.options.visible,c.visible))});M(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
390
- a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(d){var b=ca(c.style,d.style),e=da(b.left)+a.plotLeft,f=da(b.top)+a.plotTop+12;delete b.left;delete b.top;a.renderer.text(d.html,e,f).attr({zIndex:2}).css(b).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,d=this.renderer,b=this.options,e=function(a){a.forEach(function(a){a.visible&&a.render()})},f=0;this.setTitle();this.legend=new E(this,b.legend);this.getStacks&&
391
- this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var h=1.1<b/this.plotWidth,l=1.05<g/this.plotHeight;if(h||l)a.forEach(function(a){(a.horiz&&h||!a.horiz&&l)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?e(a):c&&c.length&&e(c);
392
- this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(a){var c=this,d=U(!0,this.options.credits,a);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(z.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),c.styledMode||
393
- this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,d=a.series,b=a.container,e=b&&b.parentNode,f;M(a,"destroy");a.renderer.forExport?F(n,a):n[a.index]=void 0;v.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ia(a);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=d.length;f--;)d[f]=
394
- d[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var d=a[c];d&&d.destroy&&(a[c]=d.destroy())});b&&(b.innerHTML="",ia(b),e&&X(b));W(a,function(c,d){delete a[d]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();
395
- (L(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();M(a,"beforeRender");r&&(w.isRequired()?a.pointer=new w(a,c):a.pointer=new r(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);M(this,"load");M(this,"render");S(this.index)&&this.setReflow(this.options.chart.reflow);
396
- this.hasLoaded=!0};b.prototype.addSeries=function(a,c,d){var b=this,e;a&&(c=O(c,!0),M(b,"addSeries",{options:a},function(){e=b.initSeries(a);b.isDirtyLegend=!0;b.linkSeries();e.enabledDataSorting&&e.setData(a.data,!1);M(b,"afterAddSeries",{series:e});c&&b.redraw(d)}));return e};b.prototype.addAxis=function(a,c,d,b){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:d,animation:b})};b.prototype.addColorAxis=function(a,c,d){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:d})};b.prototype.createAxis=
397
- function(a,c){a=new u(this,U(c.axis,{index:this[a].length,isX:"xAxis"===a}));O(c.redraw,!0)&&this.redraw(c.animation);return a};b.prototype.showLoading=function(a){var c=this,d=c.options,b=d.loading,e=function(){f&&Q(f,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},f=c.loadingDiv,h=c.loadingSpan;f||(c.loadingDiv=f=aa("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));h||(c.loadingSpan=h=aa("span",{className:"highcharts-loading-inner"},
398
- null,f),I(c,"redraw",e));f.className="highcharts-loading";g.setElementHTML(h,O(a,d.lang.loading,""));c.styledMode||(Q(f,ca(b.style,{zIndex:10})),Q(h,b.labelStyle),c.loadingShown||(Q(f,{opacity:0,display:""}),C(f,{opacity:b.style.opacity||.5},{duration:b.showDuration||0})));c.loadingShown=!0;e()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||C(c,{opacity:0},{duration:a.loading.hideDuration||100,
399
- complete:function(){Q(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,d,b,e){var f=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=a.isResponsiveOptions,l=[],n,p;M(f,"update",{options:a});h||f.setResponsive(!1,!0);a=N(a,f.options);f.userOptions=U(f.userOptions,a);var q=a.chart;if(q){U(!0,f.options.chart,q);"className"in q&&f.setClassName(q.className);"reflow"in q&&f.setReflow(q.reflow);if("inverted"in q||"polar"in q||"type"in
400
- q){f.propFromSeries();var k=!0}"alignTicks"in q&&(k=!0);"events"in q&&D(this,q);W(q,function(a,c){-1!==f.propsRequireUpdateSeries.indexOf("chart."+c)&&(n=!0);-1!==f.propsRequireDirtyBox.indexOf(c)&&(f.isDirtyBox=!0);-1!==f.propsRequireReflow.indexOf(c)&&(h?f.isDirtyBox=!0:p=!0)});!f.styledMode&&q.style&&f.renderer.setStyle(f.options.chart.style||{})}!f.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===x&&(this.time=new c(a.time)),U(!0,f.options.time,a.time));W(a,function(c,
401
- d){if(f[d]&&"function"===typeof f[d].update)f[d].update(c,!1);else if("function"===typeof f[g[d]])f[g[d]](c);else"colors"!==d&&-1===f.collectionsWithUpdate.indexOf(d)&&U(!0,f.options[d],a[d]);"chart"!==d&&-1!==f.propsRequireUpdateSeries.indexOf(d)&&(n=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var d=[];f[c].forEach(function(a,c){a.options.isInternal||d.push(O(a.options.index,c))});ba(a[c]).forEach(function(a,e){var g=S(a.id),h;g&&(h=f.get(a.id));!h&&f[c]&&(h=f[c][d?d[e]:e])&&g&&
402
- S(h.options.id)&&(h=void 0);h&&h.coll===c&&(h.update(a,!1),b&&(h.touched=!0));!h&&b&&f.collectionsWithInit[c]&&(f.collectionsWithInit[c][0].apply(f,[a].concat(f.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});b&&f[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:l.push(a)})}});l.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});k&&f.axes.forEach(function(a){a.update({},!1)});n&&f.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);k=q&&
403
- q.width;q=q&&(V(q.height)?ea(q.height,k||f.chartWidth):q.height);p||T(k)&&k!==f.chartWidth||T(q)&&q!==f.chartHeight?f.setSize(k,q,e):O(d,!0)&&f.redraw(e);M(f,"afterUpdate",{options:a,redraw:d,animation:e})};b.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,d=l.lang,b=c.options.chart.resetZoomButton,
404
- e=b.theme,f=e.states,g="chart"===b.relativeTo||"spacingBox"===b.relativeTo?null:"scrollablePlotBox";M(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(d.resetZoom,null,null,a,e,f&&f.hover).attr({align:b.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,!1,g)});M(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){M(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,d=c.pointer,
405
- b=c.inverted?d.mouseDownX:d.mouseDownY,e=!1,f;!a||a.resetSelection?(c.axes.forEach(function(a){f=a.zoom()}),d.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var g=a.axis,h=c.inverted?g.left:g.top,l=c.inverted?h+g.width:h+g.height,n=g.isXAxis,q=!1;if(!n&&b>=h&&b<=l||n||!S(b))q=!0;d[n?"zoomX":"zoomY"]&&q&&(f=g.zoom(a.min,a.max),g.displayBtn&&(e=!0))});var g=c.resetZoomButton;e&&!g?c.showResetZoom():!e&&R(g)&&(c.resetZoomButton=g.destroy());f&&c.redraw(O(c.options.chart.animation,a&&a.animation,
406
- 100>c.pointCount))};b.prototype.pan=function(a,c){var d=this,b=d.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var e=d.options.chart,f=d.options.mapNavigation&&d.options.mapNavigation.enabled;e&&e.panning&&(e.panning=c);var g=c.type,h;M(this,"pan",{originalEvent:a},function(){b&&b.forEach(function(a){a.setState()});var c=d.xAxis;"xy"===g?c=c.concat(d.yAxis):"y"===g&&(c=d.yAxis);var e={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var b=c.horiz,l=a[b?"chartX":
407
- "chartY"];b=b?"mouseDownX":"mouseDownY";var n=d[b],q=c.minPointOffset||0,p=c.reversed&&!d.inverted||!c.reversed&&d.inverted?-1:1,k=c.getExtremes(),t=c.toValue(n-l,!0)+q*p,m=c.toValue(n+c.len-l,!0)-(q*p||c.isXAxis&&c.pointRangePadding||0),r=m<t;p=c.hasVerticalPanning();n=r?m:t;t=r?t:m;var z=c.panningState;!p||c.isXAxis||z&&!z.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);z||(z={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});T(c.dataMin)&&T(c.dataMax)&&
408
- (z.startMin=Math.min(O(a.options.threshold,Infinity),c.dataMin,z.startMin),z.startMax=Math.max(O(a.options.threshold,-Infinity),c.dataMax,z.startMax))});p=Math.min(O(z&&z.startMin,k.dataMin),q?k.min:c.toValue(c.toPixels(k.min)-c.minPixelPadding));m=Math.max(O(z&&z.startMax,k.dataMax),q?k.max:c.toValue(c.toPixels(k.max)+c.minPixelPadding));c.panningState=z;c.isOrdinal||(q=p-n,0<q&&(t+=q,n=p),q=t-m,0<q&&(t=m,n-=q),c.series.length&&n!==k.min&&t!==k.max&&n>=p&&t<=m&&(c.setExtremes(n,t,!1,!1,{trigger:"pan"}),
409
- d.resetZoomButton||f||n===p||t===m||!g.match("y")||(d.showResetZoom(),c.displayBtn=!1),h=!0),e[b]=l)}});W(e,function(a,c){d[c]=a});h&&d.redraw(!1);Q(d.container,{cursor:"move"})})};return b}();ca(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
410
- propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});F(b,"Core/Legend/LegendSymbol.js",[b["Core/Utilities.js"]],function(b){var x=b.merge,A=b.pick,B;(function(b){b.drawLineMarker=function(b){var w=this.options,k=b.symbolWidth,r=b.symbolHeight,m=r/2,h=this.chart.renderer,
411
- a=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var c={},e=w.marker;this.chart.styledMode||(c={"stroke-width":w.lineWidth||0},w.dashStyle&&(c.dashstyle=w.dashStyle));this.legendLine=h.path([["M",0,b],["L",k,b]]).addClass("highcharts-graph").attr(c).add(a);e&&!1!==e.enabled&&k&&(w=Math.min(A(e.radius,m),m),0===this.symbol.indexOf("url")&&(e=x(e,{width:r,height:r}),w=0),this.legendSymbol=k=h.symbol(this.symbol,k/2-w,b-w,2*w,2*w,e).addClass("highcharts-point").add(a),k.isMarker=!0)};b.drawRectangle=
412
- function(b,x){var k=b.symbolHeight,r=b.options.squareSymbol;x.legendSymbol=this.chart.renderer.rect(r?(b.symbolWidth-k)/2:0,b.baseline-k+1,r?k:b.symbolWidth,k,A(b.options.symbolRadius,k/2)).addClass("highcharts-point").attr({zIndex:3}).add(x.legendGroup)}})(B||(B={}));return B});F(b,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},
46
+ minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:p("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,
47
+ style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};k.chart.styledMode=!1;"";var t=new w(v(k.global,k.time));b={defaultOptions:k,defaultTime:t,getOptions:function(){return k},setOptions:function(n){v(!0,k,n);if(n.time||n.global)A.time?A.time.update(v(k.global,k.time,
48
+ n.global,n.time)):A.time=t;return k}};"";return b});G(b,"Core/Animation/Fx.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p,A){var v=b.parse,w=p.win,D=A.isNumber,B=A.objectEach;return function(){function k(k,n,h){this.pos=NaN;this.options=n;this.elem=k;this.prop=h}k.prototype.dSetter=function(){var k=this.paths,n=k&&k[0];k=k&&k[1];var h=this.now||0,d=[];if(1!==h&&n&&k)if(n.length===k.length&&1>h)for(var a=0;a<k.length;a++){for(var e=n[a],g=k[a],x=[],C=0;C<g.length;C++){var r=
49
+ e[C],q=g[C];D(r)&&D(q)&&("A"!==g[0]||4!==C&&5!==C)?x[C]=r+h*(q-r):x[C]=q}d.push(x)}else d=k;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};k.prototype.update=function(){var k=this.elem,n=this.prop,h=this.now,d=this.options.step;if(this[n+"Setter"])this[n+"Setter"]();else k.attr?k.element&&k.attr(n,h,null,!0):k.style[n]=h+this.unit;d&&d.call(k,h,this)};k.prototype.run=function(b,n,h){var d=this,a=d.options,e=function(a){return e.stopped?!1:d.step(a)},g=w.requestAnimationFrame||function(a){setTimeout(a,
50
+ 13)},x=function(){for(var a=0;a<k.timers.length;a++)k.timers[a]()||k.timers.splice(a--,1);k.timers.length&&g(x)};b!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=b,this.end=n,this.unit=h,this.now=this.start,this.pos=0,e.elem=this.elem,e.prop=this.prop,e()&&1===k.timers.push(e)&&g(x)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))};k.prototype.step=function(k){var n=+new Date,h=this.options,d=this.elem,a=h.complete,
51
+ e=h.duration,g=h.curAnim;if(d.attr&&!d.element)k=!1;else if(k||n>=e+this.startTime){this.now=this.end;this.pos=1;this.update();var x=g[this.prop]=!0;B(g,function(a){!0!==a&&(x=!1)});x&&a&&a.call(d);k=!1}else this.pos=h.easing((n-this.startTime)/e),this.now=this.start+(this.end-this.start)*this.pos,this.update(),k=!0;return k};k.prototype.initPath=function(k,n,h){function d(a,f){for(;a.length<z;){var d=a[0],c=f[z-a.length];c&&"M"===d[0]&&(a[0]="C"===c[0]?["C",d[1],d[2],d[1],d[2],d[1],d[2]]:["L",d[1],
52
+ d[2]]);a.unshift(d);x&&(d=a.pop(),a.push(a[a.length-1],d))}}function a(a,f){for(;a.length<z;)if(f=a[Math.floor(a.length/C)-1].slice(),"C"===f[0]&&(f[1]=f[5],f[2]=f[6]),x){var d=a[Math.floor(a.length/C)].slice();a.splice(a.length/2,0,f,d)}else a.push(f)}var e=k.startX,g=k.endX;h=h.slice();var x=k.isArea,C=x?2:1;n=n&&n.slice();if(!n)return[h,h];if(e&&g&&g.length){for(k=0;k<e.length;k++)if(e[k]===g[0]){var r=k;break}else if(e[0]===g[g.length-e.length+k]){r=k;var q=!0;break}else if(e[e.length-1]===g[g.length-
53
+ e.length+k]){r=e.length-k;break}"undefined"===typeof r&&(n=[])}if(n.length&&D(r)){var z=h.length+r*C;q?(d(n,h),a(h,n)):(d(h,n),a(n,h))}return[n,h]};k.prototype.fillSetter=function(){k.prototype.strokeSetter.apply(this,arguments)};k.prototype.strokeSetter=function(){this.elem.attr(this.prop,v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)};k.timers=[];return k}()});G(b,"Core/Animation/AnimationUtilities.js",[b["Core/Animation/Fx.js"],b["Core/Utilities.js"]],function(b,p){function v(a){return t(a)?
54
+ n({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function E(a,d){for(var e=b.timers.length;e--;)b.timers[e].elem!==a||d&&d!==b.timers[e].prop||(b.timers[e].stopped=!0)}var w=p.defined,D=p.getStyle,B=p.isArray,k=p.isNumber,t=p.isObject,n=p.merge,h=p.objectEach,d=p.pick;return{animate:function(a,d,g){var e,C="",r,q;if(!t(g)){var z=arguments;g={duration:z[2],easing:z[3],complete:z[4]}}k(g.duration)||(g.duration=400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;
55
+ g.curAnim=n(d);h(d,function(m,f){E(a,f);q=new b(a,g,f);r=void 0;"d"===f&&B(d.d)?(q.paths=q.initPath(a,a.pathArray,d.d),q.toD=d.d,e=0,r=1):a.attr?e=a.attr(f):(e=parseFloat(D(a,f))||0,"opacity"!==f&&(C="px"));r||(r=m);"string"===typeof r&&r.match("px")&&(r=r.replace(/px/g,""));q.run(e,r,C)})},animObject:v,getDeferredAnimation:function(a,d,g){var e=v(d),h=0,r=0;(g?[g]:a.series).forEach(function(a){a=v(a.options.animation);h=d&&w(d.defer)?e.defer:Math.max(h,a.duration+a.defer);r=Math.min(e.duration,a.duration)});
56
+ a.renderer.forExport&&(h=0);return{defer:Math.max(0,h-r),duration:Math.min(h,r)}},setAnimation:function(a,e){e.renderer.globalAnimation=d(a,e.options.chart.animation,!0)},stop:E}});G(b,"Core/Renderer/HTML/AST.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p){var v=b.SVG_NS,E=p.attr,w=p.createElement,D=p.error,B=p.isFunction,k=p.isString,t=p.objectEach,n=p.splat,h=(p=b.win.trustedTypes)&&B(p.createPolicy)&&p.createPolicy("highcharts",{createHTML:function(a){return a}}),d=h?h.createHTML(""):
57
+ "";try{var a=!!(new DOMParser).parseFromString(d,"text/html")}catch(e){a=!1}B=function(){function e(a){this.nodes="string"===typeof a?this.parseMarkup(a):a}e.filterUserAttributes=function(a){t(a,function(d,g){var r=!0;-1===e.allowedAttributes.indexOf(g)&&(r=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(g)&&(r=k(d)&&e.allowedReferences.some(function(a){return 0===d.indexOf(a)}));r||(D("Highcharts warning: Invalid attribute '"+g+"' in config"),delete a[g])});return a};e.setElementHTML=
58
+ function(a,d){a.innerHTML=e.emptyHTML;d&&(new e(d)).addToDOM(a)};e.prototype.addToDOM=function(a){function d(a,g){var q;n(a).forEach(function(a){var m=a.tagName,f=a.textContent?b.doc.createTextNode(a.textContent):void 0;if(m)if("#text"===m)var y=f;else if(-1!==e.allowedTags.indexOf(m)){m=b.doc.createElementNS("svg"===m?v:g.namespaceURI||v,m);var c=a.attributes||{};t(a,function(a,f){"tagName"!==f&&"attributes"!==f&&"children"!==f&&"textContent"!==f&&(c[f]=a)});E(m,e.filterUserAttributes(c));f&&m.appendChild(f);
59
+ d(a.children||[],m);y=m}else D("Highcharts warning: Invalid tagName "+m+" in config");y&&g.appendChild(y);q=y});return q}return d(this.nodes,a)};e.prototype.parseMarkup=function(d){var e=[];d=d.trim();if(a)d=(new DOMParser).parseFromString(h?h.createHTML(d):d,"text/html");else{var g=w("div");g.innerHTML=d;d={body:g}}var r=function(a,d){var m=a.nodeName.toLowerCase(),f={tagName:m};"#text"===m&&(f.textContent=a.textContent||"");if(m=a.attributes){var e={};[].forEach.call(m,function(c){e[c.name]=c.value});
60
+ f.attributes=e}if(a.childNodes.length){var c=[];[].forEach.call(a.childNodes,function(a){r(a,c)});c.length&&(f.children=c)}d.push(f)};[].forEach.call(d.body.childNodes,function(a){return r(a,e)});return e};e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
+ e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");e.emptyHTML=d;return e}();"";return B});G(b,"Core/FormatUtilities.js",
62
+ [b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,p){function v(n,h,d,a){n=+n||0;h=+h;var e=E.lang,g=(n.toString().split(".")[1]||"").split("e")[0].length,x=n.toString().split("e"),C=h;if(-1===h)h=Math.min(g,20);else if(!B(h))h=2;else if(h&&x[1]&&0>x[1]){var r=h+ +x[1];0<=r?(x[0]=(+x[0]).toExponential(r).split("e")[0],h=r):(x[0]=x[0].split(".")[0]||0,n=20>h?(x[0]*Math.pow(10,x[1])).toFixed(h):0,x[1]=0)}r=(Math.abs(x[1]?x[0]:n)+Math.pow(10,-Math.max(h,g)-1)).toFixed(h);g=String(t(r));
63
+ var q=3<g.length?g.length%3:0;d=k(d,e.decimalPoint);a=k(a,e.thousandsSep);n=(0>n?"-":"")+(q?g.substr(0,q)+a:"");n=0>+x[1]&&!C?"0":n+g.substr(q).replace(/(\d{3})(?=\d)/g,"$1"+a);h&&(n+=d+r.slice(-h));x[1]&&0!==+n&&(n+="e"+x[1]);return n}var E=b.defaultOptions,w=b.defaultTime,D=p.getNestedProperty,B=p.isNumber,k=p.pick,t=p.pInt;return{dateFormat:function(k,h,d){return w.dateFormat(k,h,d)},format:function(k,h,d){var a="{",e=!1,g=/f$/,x=/\.([0-9])/,C=E.lang,r=d&&d.time||w;d=d&&d.numberFormatter||v;for(var q=
64
+ [];k;){var z=k.indexOf(a);if(-1===z)break;var m=k.slice(0,z);if(e){m=m.split(":");a=D(m.shift()||"",h);if(m.length&&"number"===typeof a)if(m=m.join(":"),g.test(m)){var f=parseInt((m.match(x)||["","-1"])[1],10);null!==a&&(a=d(a,f,C.decimalPoint,-1<m.indexOf(",")?C.thousandsSep:""))}else a=r.dateFormat(m,a);q.push(a)}else q.push(m);k=k.slice(z+1);a=(e=!e)?"}":"{"}q.push(k);return q.join("")},numberFormat:v}});G(b,"Core/Renderer/RendererUtilities.js",[b["Core/Utilities.js"]],function(b){var v=b.clamp,
65
+ A=b.pick,E=b.stableSort,w;(function(b){function p(k,b,n){var h=k,d=h.reducedLen||b,a=function(a,d){return(d.rank||0)-(a.rank||0)},e=function(a,d){return a.target-d.target},g,x=!0,C=[],r=0;for(g=k.length;g--;)r+=k[g].size;if(r>d){E(k,a);for(r=g=0;r<=d;)r+=k[g].size,g++;C=k.splice(g-1,k.length)}E(k,e);for(k=k.map(function(a){return{size:a.size,targets:[a.target],align:A(a.align,.5)}});x;){for(g=k.length;g--;)d=k[g],a=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=v(a-d.size*d.align,
66
+ 0,b-d.size);g=k.length;for(x=!1;g--;)0<g&&k[g-1].pos+k[g-1].size>k[g].pos&&(k[g-1].size+=k[g].size,k[g-1].targets=k[g-1].targets.concat(k[g].targets),k[g-1].align=.5,k[g-1].pos+k[g-1].size>b&&(k[g-1].pos=b-k[g-1].size),k.splice(g,1),x=!0)}h.push.apply(h,C);g=0;k.some(function(a){var d=0;return(a.targets||[]).some(function(){h[g].pos=a.pos+d;if("undefined"!==typeof n&&Math.abs(h[g].pos-h[g].target)>n)return h.slice(0,g+1).forEach(function(a){return delete a.pos}),h.reducedLen=(h.reducedLen||b)-.1*
67
+ b,h.reducedLen>.1*b&&p(h,b,n),!0;d+=h[g].size;g++;return!1})});E(h,e);return h}b.distribute=p})(w||(w={}));return w});G(b,"Core/Renderer/SVG/SVGElement.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p,A,E,w){var v=b.animate,B=b.animObject,k=b.stop,t=E.deg2rad,n=E.doc,h=E.noop,d=E.svg,a=E.SVG_NS,e=E.win,g=w.addEvent,x=w.attr,C=w.createElement,r=w.css,q=w.defined,z=w.erase,m=w.extend,f=w.fireEvent,
68
+ y=w.isArray,c=w.isFunction,u=w.isNumber,l=w.isString,F=w.merge,K=w.objectEach,H=w.pick,I=w.pInt,Z=w.syncTimeout,Q=w.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(c){c=H(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};
69
+ b.prototype._defaultSetter=function(c,a,f){f.setAttribute(a,c)};b.prototype.add=function(c){var a=this.renderer,f=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var d=this.zIndexSetter();d||(c?c.element:a.box).appendChild(f);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(c,a){var f=a?"":this.attr("class")||"";c=(c||"").split(/ /g).reduce(function(c,
70
+ a){-1===f.indexOf(a)&&c.push(a);return c},f?[f]:[]).join(" ");c!==f&&this.attr("class",c);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(c,a,f){var d={},e=this.renderer,m=e.alignedObjects,g,q,u;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!f||l(f))this.alignTo=g=f||"renderer",z(m,this),m.push(this),f=void 0}else c=this.alignOptions,a=this.alignByTranslate,g=this.alignTo;f=H(f,e[g],"scrollablePlotBox"===
71
+ g?e.plotBox:void 0,e);g=c.align;var y=c.verticalAlign;e=(f.x||0)+(c.x||0);m=(f.y||0)+(c.y||0);"right"===g?q=1:"center"===g&&(q=2);q&&(e+=(f.width-(c.width||0))/q);d[a?"translateX":"x"]=Math.round(e);"bottom"===y?u=1:"middle"===y&&(u=2);u&&(m+=(f.height-(c.height||0))/u);d[a?"translateY":"y"]=Math.round(m);this[this.placed?"animate":"attr"](d);this.placed=!0;this.alignAttr=d;return this};b.prototype.alignSetter=function(c){var a={left:"start",center:"middle",right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",
72
+ a[c]))};b.prototype.animate=function(c,a,f){var d=this,l=B(H(a,this.renderer.globalAnimation,!0));a=l.defer;H(n.hidden,n.msHidden,n.webkitHidden,!1)&&(l.duration=0);0!==l.duration?(f&&(l.complete=f),Z(function(){d.element&&v(d,c,l)},a)):(this.attr(c,void 0,f),K(c,function(c,a){l.step&&l.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(c){var f=this.element;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(f.style.fill)));
73
+ var d=c.split(" ");c=d[d.length-1];if((d=d[0])&&"none"!==d&&E.svg){this.fakeTS=!0;this.ySetter=this.xSetter;d=d.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,f){return 2*Number(a)+f});this.removeTextOutline();var l=n.createElementNS(a,"tspan");x(l,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":d,"stroke-linejoin":"round"});[].forEach.call(f.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});
74
+ l.appendChild(a)});var e=n.createElementNS(a,"tspan");e.textContent="\u200b";["x","y"].forEach(function(c){var a=f.getAttribute(c);a&&e.setAttribute(c,a)});l.appendChild(e);f.insertBefore(l,f.firstChild)}};b.prototype.attr=function(c,a,f,d){var l=this.element,e=this.symbolCustomAttribs,m,g=this,q,u;if("string"===typeof c&&"undefined"!==typeof a){var y=c;c={};c[y]=a}"string"===typeof c?g=(this[c+"Getter"]||this._defaultGetter).call(this,c,l):(K(c,function(a,f){q=!1;d||k(this,f);this.symbolName&&-1!==
75
+ e.indexOf(f)&&(m||(this.symbolAttr(c),m=!0),q=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);q||(u=this[f+"Setter"]||this._defaultSetter,u.call(this,a,f,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,a,u))},this),this.afterSetters());f&&f.call(this);return g};b.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+")":"none")};b.prototype.crisp=function(c,a){a=a||c.strokeWidth||
76
+ 0;var f=Math.round(a)%2/2;c.x=Math.floor(c.x||this.x||0)+f;c.y=Math.floor(c.y||this.y||0)+f;c.width=Math.floor((c.width||this.width||0)-2*f);c.height=Math.floor((c.height||this.height||0)-2*f);q(c.strokeWidth)&&(c.strokeWidth=a);return c};b.prototype.complexColor=function(c,a,d){var l=this.renderer,e,m,g,u,r,h,b,da,z,k,x=[],C;f(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?m="radialGradient":c.linearGradient&&(m="linearGradient");if(m){g=c[m];r=l.gradients;h=c.stops;z=
77
+ d.radialReference;y(g)&&(c[m]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===m&&z&&!q(g.gradientUnits)&&(u=g,g=F(g,l.getRadialAttr(z,u),{gradientUnits:"userSpaceOnUse"}));K(g,function(c,a){"id"!==a&&x.push(a,c)});K(h,function(c){x.push(c)});x=x.join(",");if(r[x])k=r[x].attr("id");else{g.id=k=Q();var f=r[x]=l.createElement(m).attr(g).add(l.defs);f.radAttr=u;f.stops=[];h.forEach(function(c){0===c[1].indexOf("rgba")?(e=A.parse(c[1]),b=e.get("rgb"),da=e.get("a")):
78
+ (b=c[1],da=1);c=l.createElement("stop").attr({offset:c[0],"stop-color":b,"stop-opacity":da}).add(f);f.stops.push(c)})}C="url("+l.url+"#"+k+")";d.setAttribute(a,C);d.gradient=x;c.toString=function(){return C}}})};b.prototype.css=function(c){var a=this.styles,f={},l=this.element,e=["textOutline","textOverflow","width"],g="",q=!a;c&&c.color&&(c.fill=c.color);a&&K(c,function(c,d){a&&a[d]!==c&&(f[d]=c,q=!0)});if(q){a&&(c=m(a,f));if(c)if(null===c.width||"auto"===c.width)delete this.textWidth;else if("text"===
79
+ l.nodeName.toLowerCase()&&c.width)var u=this.textWidth=I(c.width);this.styles=c;u&&!d&&this.renderer.forExport&&delete c.width;if(l.namespaceURI===this.SVG_NS){var y=function(c,a){return"-"+a.toLowerCase()};K(c,function(c,a){-1===e.indexOf(a)&&(g+=a.replace(/([A-Z])/g,y)+":"+c+";")});g&&x(l,"style",g)}else r(l,c);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c&&c.textOutline&&this.applyTextOutline(c.textOutline))}return this};b.prototype.dashstyleSetter=function(c){var a=
80
+ this["stroke-width"];"inherit"===a&&(a=1);if(c=c&&c.toLowerCase()){var f=c.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=f.length;c--;)f[c]=""+I(f[c])*H(a,NaN);c=f.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};b.prototype.destroy=function(){var c=this,a=c.element||{},f=c.renderer,
81
+ d=a.ownerSVGElement,l=f.isSVG&&"SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null;k(c);if(c.clipPath&&d){var e=c.clipPath;[].forEach.call(d.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(e.element.id)&&c.removeAttribute("clip-path")});c.clipPath=e.destroy()}if(c.stops){for(d=0;d<c.stops.length;d++)c.stops[d].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(a);for(f.styledMode||c.destroyShadows();l&&
82
+ l.div&&0===l.div.childNodes.length;)a=l.parentGroup,c.safeRemoveChild(l.div),delete l.div,l=a;c.alignTo&&z(f.alignedObjects,c);K(c,function(a,f){c[f]&&c[f].parentGroup===c&&c[f].destroy&&c[f].destroy();delete c[f]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(c,a){var f=c.getElementsByTagName("text")[0];if(f){if(f.removeAttribute("dx"),f.removeAttribute("dy"),a.element.setAttribute("id",
83
+ ""),this.textPathWrapper&&f.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)f.appendChild(c[0]);f.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};b.prototype.dSetter=function(c,a,f){y(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,
84
+ a,f){return a&&a.join?(f?c+" ":"")+a.join(" "):(a||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[a]!==c&&(f.setAttribute(a,c),this[a]=c)};b.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:H(c,150),complete:function(){a.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(c,a,f){"string"===typeof c?f.setAttribute(a,c):c&&this.complexColor(c,a,f)};b.prototype.getBBox=function(a,f){var d=this.renderer,l=this.element,e=this.styles,g=this.textStr,u=d.cache,
85
+ y=d.cacheKeys,h=l.namespaceURI===this.SVG_NS;f=H(f,this.rotation,0);var z=d.styledMode?l&&b.prototype.getStyle.call(l,"font-size"):e&&e.fontSize,k;if(q(g)){var F=g.toString();-1===F.indexOf("<")&&(F=F.replace(/[0-9]/g,"0"));F+=["",f,z,this.textWidth,e&&e.textOverflow,e&&e.fontWeight].join()}F&&!a&&(k=u[F]);if(!k){if(h||d.forExport){try{var x=this.fakeTS&&function(c){var a=l.querySelector(".highcharts-text-outline");a&&r(a,{display:c})};c(x)&&x("none");k=l.getBBox?m({},l.getBBox()):{width:l.offsetWidth,
86
+ height:l.offsetHeight};c(x)&&x("")}catch(V){""}if(!k||0>k.width)k={width:0,height:0}}else k=this.htmlGetBBox();d.isSVG&&(a=k.width,d=k.height,h&&(k.height=d={"11px,17":14,"13px,20":16}[(z||"")+","+Math.round(d)]||d),f&&(h=f*t,k.width=Math.abs(d*Math.sin(h))+Math.abs(a*Math.cos(h)),k.height=Math.abs(d*Math.cos(h))+Math.abs(a*Math.sin(h))));if(F&&(""===g||0<k.height)){for(;250<y.length;)delete u[y.shift()];u[F]||y.push(F);u[F]=k}}return k};b.prototype.getStyle=function(c){return e.getComputedStyle(this.element||
87
+ this,"").getPropertyValue(c)};b.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};b.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};b.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};b.prototype.init=function(c,a){this.element="span"===a?C(a):n.createElementNS(this.SVG_NS,a);this.renderer=c;f(this,"afterInit")};b.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};
88
+ b.prototype.on=function(c,a){var f=this.onEvents;if(f[c])f[c]();f[c]=g(this.element,c,a);return this};b.prototype.opacitySetter=function(c,a,f){this.opacity=c=Number(Number(c).toFixed(3));f.setAttribute(a,c)};b.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(l(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};
89
+ b.prototype.safeRemoveChild=function(c){var a=c.parentNode;a&&a.removeChild(c)};b.prototype.setRadialReference=function(c){var a=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(c,a.radAttr));return this};b.prototype.setTextPath=function(c,a){var f=this.element,d=this.text?this.text.element:f,l={textAnchor:"text-anchor"},m=!1,g=this.textPathWrapper,y=!g;a=F(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",
90
+ textAnchor:"middle"}},a);var r=p.filterUserAttributes(a.attributes);if(c&&a&&a.enabled){g&&null===g.element.parentNode?(y=!0,g=g.destroy()):g&&this.removeTextOutline.call(g.parentGroup);this.options&&this.options.padding&&(r.dx=-this.options.padding);g||(this.textPathWrapper=g=this.renderer.createElement("textPath"),m=!0);var z=g.element;(a=c.element.getAttribute("id"))||c.element.setAttribute("id",a=Q());if(y)for(d.setAttribute("y",0),u(r.dx)&&d.setAttribute("x",-r.dx),c=[].slice.call(d.childNodes),
91
+ y=0;y<c.length;y++){var b=c[y];b.nodeType!==e.Node.TEXT_NODE&&"tspan"!==b.nodeName||z.appendChild(b)}m&&g&&g.add({element:d});z.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+a);q(r.dy)&&(z.parentNode.setAttribute("dy",r.dy),delete r.dy);q(r.dx)&&(z.parentNode.setAttribute("dx",r.dx),delete r.dx);K(r,function(c,a){z.setAttribute(l[a]||a,c)});f.removeAttribute("transform");this.removeTextOutline.call(g);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});
92
+ this.applyTextOutline=this.updateTransform=h}else g&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(f,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(c,a,f){var d=[],l=this.element,e=this.oldShadowOptions,g={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},q=!1,u;!0===c?u=g:"object"===typeof c&&(u=m(g,c));
93
+ u&&(u&&e&&K(u,function(c,a){c!==e[a]&&(q=!0)}),q&&this.destroyShadows(),this.oldShadowOptions=u);if(!u)this.destroyShadows();else if(!this.shadows){var y=u.opacity/u.width;var r=this.parentInverted?"translate("+u.offsetY+", "+u.offsetX+")":"translate("+u.offsetX+", "+u.offsetY+")";for(g=1;g<=u.width;g++){var h=l.cloneNode(!1);var z=2*u.width+1-2*g;x(h,{stroke:c.color||"#000000","stroke-opacity":y*g,"stroke-width":z,transform:r,fill:"none"});h.setAttribute("class",(h.getAttribute("class")||"")+" highcharts-shadow");
94
+ f&&(x(h,"height",Math.max(x(h,"height")-z,0)),h.cutHeight=z);a?a.element.appendChild(h):l.parentNode&&l.parentNode.insertBefore(h,l);d.push(h)}this.shadows=d}return this};b.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};b.prototype.strokeSetter=function(c,a,f){this[a]=c;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",f),f.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===a&&0===c&&this.hasStroke?
95
+ (f.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(f.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),f=0;if(c.indexOf("px")===c.length-2)f=I(c);else if(""!==c){var d=n.createElementNS(a,"rect");x(d,{width:c,"stroke-width":0});this.element.parentNode.appendChild(d);f=d.getBBox().width;d.parentNode.removeChild(d)}return f};
96
+ b.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(f){a[f]=H(c[f],a[f])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};b.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(c){var a=this.element,f=a.getElementsByTagName("title")[0]||n.createElementNS(this.SVG_NS,"title");
97
+ a.insertBefore?a.insertBefore(f,a.firstChild):a.appendChild(f);f.textContent=String(H(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};b.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};b.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};b.prototype.updateShadows=function(c,a,f){var d=this.shadows;if(d)for(var l=d.length;l--;)f.call(d[l],"height"===c?Math.max(a-(d[l].cutHeight||0),0):"d"===c?this.d:a,c,
98
+ d[l])};b.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,f=this.inverted,d=this.rotation,l=this.matrix,e=this.element,m=this.translateX||0,g=this.translateY||0;f&&(m+=this.width,g+=this.height);m=["translate("+m+","+g+")"];q(l)&&m.push("matrix("+l.join(",")+")");f?m.push("rotate(90) scale(-1,1)"):d&&m.push("rotate("+d+" "+H(this.rotationOriginX,e.getAttribute("x"),0)+" "+H(this.rotationOriginY,e.getAttribute("y")||0)+")");(q(c)||q(a))&&m.push("scale("+H(c,1)+" "+H(a,1)+")");m.length&&
99
+ e.setAttribute("transform",m.join(" "))};b.prototype.visibilitySetter=function(c,a,f){"inherit"===c?f.removeAttribute(a):this[a]!==c&&f.setAttribute(a,c);this[a]=c};b.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};b.prototype.zIndexSetter=function(c,a){var f=this.renderer,d=this.parentGroup,l=(d||f).element||f.box,e=this.element;f=l===f.box;var m=!1;var g=this.added;var u;q(c)?(e.setAttribute("data-z-index",c),c=+c,
100
+ this[a]===c&&(g=!1)):q(this[a])&&e.removeAttribute("data-z-index");this[a]=c;if(g){(c=this.zIndex)&&d&&(d.handleZ=!0);a=l.childNodes;for(u=a.length-1;0<=u&&!m;u--){d=a[u];g=d.getAttribute("data-z-index");var y=!q(g);if(d!==e)if(0>c&&y&&!f&&!u)l.insertBefore(e,a[u]),m=!0;else if(I(g)<=c||y&&(!q(c)||0<=c))l.insertBefore(e,a[u+1]||null),m=!0}m||(l.insertBefore(e,a[f?3:0]||null),m=!0)}return m};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;
101
+ b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});G(b,"Core/Renderer/RendererRegistry.js",[b["Core/Globals.js"]],function(b){var v;(function(v){v.rendererTypes={};var p;v.getRendererType=function(b){void 0===b&&(b=p);return v.rendererTypes[b]||
102
+ v.rendererTypes[p]};v.registerRendererType=function(w,D,B){v.rendererTypes[w]=D;if(!p||B)p=w,b.Renderer=D}})(v||(v={}));return v});G(b,"Core/Renderer/SVG/SVGLabel.js",[b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__extends||function(){var b=function(h,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return b(h,d)};return function(h,d){function a(){this.constructor=
103
+ h}b(h,d);h.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),E=p.defined,w=p.extend,D=p.isNumber,B=p.merge,k=p.pick,t=p.removeEvent;return function(n){function h(d,a,e,g,b,k,r,q,z,m){var f=n.call(this)||this;f.paddingLeftSetter=f.paddingSetter;f.paddingRightSetter=f.paddingSetter;f.init(d,"g");f.textStr=a;f.x=e;f.y=g;f.anchorX=k;f.anchorY=r;f.baseline=z;f.className=m;f.addClass("button"===m?"highcharts-no-tooltip":"highcharts-label");m&&f.addClass("highcharts-"+m);f.text=d.text(void 0,
104
+ 0,0,q).attr({zIndex:1});var y;"string"===typeof b&&((y=/^url\((.*?)\)$/.test(b))||f.renderer.symbols[b])&&(f.symbolKey=b);f.bBox=h.emptyBBox;f.padding=3;f.baselineOffset=0;f.needsBox=d.styledMode||y;f.deferredAttr={};f.alignFactor=0;return f}v(h,n);h.prototype.alignSetter=function(d){d={left:0,center:.5,right:1}[d];d!==this.alignFactor&&(this.alignFactor=d,this.bBox&&D(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(d,a){this.anchorX=d;this.boxAttr(a,Math.round(d)-
105
+ this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(d,a){this.anchorY=d;this.boxAttr(a,d-this.ySetting)};h.prototype.boxAttr=function(d,a){this.box?this.box.attr(d,a):this.deferredAttr[d]=a};h.prototype.css=function(d){if(d){var a={};d=B(d);h.textProps.forEach(function(e){"undefined"!==typeof d[e]&&(a[e]=d[e],delete d[e])});this.text.css(a);var e="width"in a;"fontSize"in a||"fontWeight"in a?this.updateTextPadding():e&&this.updateBoxSize()}return b.prototype.css.call(this,d)};
106
+ h.prototype.destroy=function(){t(this.element,"mouseenter");t(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());b.prototype.destroy.call(this)};h.prototype.fillSetter=function(d,a){d&&(this.needsBox=!0);this.fill=d;this.boxAttr(a,d)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d=this.padding,a=k(this.paddingLeft,d);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-
107
+ d}};h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};h.prototype.heightSetter=function(d){this.heightSetting=d};h.prototype.onAdd=function(){var d=this.textStr;this.text.add(this);this.attr({text:E(d)?d:"",x:this.x,y:this.y});this.box&&E(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};h.prototype.paddingSetter=function(d,a){D(d)?d!==this[a]&&(this[a]=d,this.updateTextPadding()):
108
+ this[a]=void 0};h.prototype.rSetter=function(d,a){this.boxAttr(a,d)};h.prototype.shadow=function(d){d&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d));return this};h.prototype.strokeSetter=function(d,a){this.stroke=d;this.boxAttr(a,d)};h.prototype["stroke-widthSetter"]=function(d,a){d&&(this.needsBox=!0);this["stroke-width"]=d;this.boxAttr(a,d)};h.prototype["text-alignSetter"]=function(d){this.textAlign=d};h.prototype.textSetter=function(d){"undefined"!==typeof d&&this.text.attr({text:d});
109
+ this.updateTextPadding()};h.prototype.updateBoxSize=function(){var d=this.text.element.style,a={},e=this.padding,g=this.bBox=D(this.widthSetting)&&D(this.heightSetting)&&!this.textAlign||!E(this.text.textStr)?h.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||g.height||0)+2*e;d=this.renderer.fontMetrics(d&&d.fontSize,this.text);this.baselineOffset=e+Math.min((this.text.firstLineMetrics||d).b,g.height||Infinity);this.heightSetting&&(this.baselineOffset+=
110
+ (this.heightSetting-d.h)/2);this.needsBox&&(this.box||(e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)),e=this.getCrispAdjust(),a.x=e,a.y=(this.baseline?-this.baselineOffset:0)+e,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(w(a,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=
111
+ function(){var d=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,e=k(this.paddingLeft,this.padding);E(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(e!==d.x||a!==d.y)d.attr("x",e),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),"undefined"!==typeof a&&d.attr("y",a);d.x=e;d.y=a};h.prototype.widthSetter=function(d){this.widthSetting=D(d)?d:void 0};h.prototype.getPaddedWidth=
112
+ function(){var d=this.padding,a=k(this.paddingLeft,d);d=k(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+a+d};h.prototype.xSetter=function(d){this.x=d;this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(d);this.attr("translateX",this.xSetting)};h.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d);this.attr("translateY",this.ySetting)};h.emptyBBox={width:0,height:0,x:0,y:0};h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");
113
+ return h}(b)});G(b,"Core/Renderer/SVG/Symbols.js",[b["Core/Utilities.js"]],function(b){function v(b,t,n,h,d){var a=[];if(d){var e=d.start||0,g=B(d.r,n);n=B(d.r,h||n);var k=(d.end||0)-.001;h=d.innerR;var C=B(d.open,.001>Math.abs((d.end||0)-e-2*Math.PI)),r=Math.cos(e),q=Math.sin(e),z=Math.cos(k),m=Math.sin(k);e=B(d.longArc,.001>k-e-Math.PI?0:1);a.push(["M",b+g*r,t+n*q],["A",g,n,0,e,B(d.clockwise,1),b+g*z,t+n*m]);w(h)&&a.push(C?["M",b+h*z,t+h*m]:["L",b+h*z,t+h*m],["A",h,h,0,e,w(d.clockwise)?1-d.clockwise:
114
+ 0,b+h*r,t+h*q]);C||a.push(["Z"])}return a}function A(b,t,n,h,d){return d&&d.r?E(b,t,n,h,d):[["M",b,t],["L",b+n,t],["L",b+n,t+h],["L",b,t+h],["Z"]]}function E(b,t,n,h,d){d=d&&d.r||0;return[["M",b+d,t],["L",b+n-d,t],["C",b+n,t,b+n,t,b+n,t+d],["L",b+n,t+h-d],["C",b+n,t+h,b+n,t+h,b+n-d,t+h],["L",b+d,t+h],["C",b,t+h,b,t+h,b,t+h-d],["L",b,t+d],["C",b,t,b,t,b+d,t]]}var w=b.defined,D=b.isNumber,B=b.pick;return{arc:v,callout:function(b,t,n,h,d){var a=Math.min(d&&d.r||0,n,h),e=a+6,g=d&&d.anchorX;d=d&&d.anchorY||
115
+ 0;var x=E(b,t,n,h,{r:a});if(!D(g))return x;b+g>=n?d>t+e&&d<t+h-e?x.splice(3,1,["L",b+n,d-6],["L",b+n+6,d],["L",b+n,d+6],["L",b+n,t+h-a]):x.splice(3,1,["L",b+n,h/2],["L",g,d],["L",b+n,h/2],["L",b+n,t+h-a]):0>=b+g?d>t+e&&d<t+h-e?x.splice(7,1,["L",b,d+6],["L",b-6,d],["L",b,d-6],["L",b,t+a]):x.splice(7,1,["L",b,h/2],["L",g,d],["L",b,h/2],["L",b,t+a]):d&&d>h&&g>b+e&&g<b+n-e?x.splice(5,1,["L",g+6,t+h],["L",g,t+h+6],["L",g-6,t+h],["L",b+a,t+h]):d&&0>d&&g>b+e&&g<b+n-e&&x.splice(1,1,["L",g-6,t],["L",g,t-6],
116
+ ["L",g+6,t],["L",n-a,t]);return x},circle:function(b,t,n,h){return v(b+n/2,t+h/2,n/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,t,n,h){return[["M",b+n/2,t],["L",b+n,t+h/2],["L",b+n/2,t+h],["L",b,t+h/2],["Z"]]},rect:A,roundedRect:E,square:A,triangle:function(b,t,n,h){return[["M",b+n/2,t],["L",b+n,t+h],["L",b,t+h],["Z"]]},"triangle-down":function(b,t,n,h){return[["M",b,t],["L",b+n,t],["L",b+n/2,t+h],["Z"]]}}});G(b,"Core/Renderer/SVG/TextBuilder.js",[b["Core/Renderer/HTML/AST.js"],
117
+ b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p,A){var v=p.doc,w=p.SVG_NS,D=p.win,B=A.attr,k=A.isString,t=A.objectEach,n=A.pick;return function(){function h(d){var a=d.styles;this.renderer=d.renderer;this.svgElement=d;this.width=d.textWidth;this.textLineHeight=a&&a.lineHeight;this.textOutline=a&&a.textOutline;this.ellipsis=!(!a||"ellipsis"!==a.textOverflow);this.noWrap=!(!a||"nowrap"!==a.whiteSpace);this.fontSize=a&&a.fontSize}h.prototype.buildSVG=function(){var d=this.svgElement,a=d.element,
118
+ e=d.renderer,g=n(d.textStr,"").toString(),h=-1!==g.indexOf("<"),C=a.childNodes;e=this.width&&!d.added&&e.box;var r=/<br.*?>/g,q=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(q!==d.textCache){d.textCache=q;delete d.actualWidth;for(q=C.length;q--;)a.removeChild(C[q]);h||this.ellipsis||this.width||-1!==g.indexOf(" ")&&(!this.noWrap||r.test(g))?""!==g&&(e&&e.appendChild(a),g=new b(g),this.modifyTree(g.nodes),g.addToDOM(d.element),this.modifyDOM(),
119
+ this.ellipsis&&-1!==(a.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(a)):a.appendChild(v.createTextNode(this.unescapeEntities(g)));k(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var d=this,a=this.svgElement,e=B(a.element,"x");a.firstLineMetrics=void 0;for(var g;g=a.element.firstChild;)if(/^[\s\u200B]*$/.test(g.textContent||" "))a.element.removeChild(g);else break;
120
+ [].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(g,b){g.nextSibling&&g.previousSibling&&(0===b&&1===g.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0,g.previousSibling)),B(g,{dy:d.getLineHeight(g.nextSibling),x:e}))});var b=this.width||0;if(b){var h=function(g,h){var m=g.textContent||"",f=m.replace(/([^\^])-/g,"$1- ").split(" "),q=!d.noWrap&&(1<f.length||1<a.element.childNodes.length),c=d.getLineHeight(h),u=0,l=a.actualWidth;if(d.ellipsis)m&&d.truncate(g,
121
+ m,void 0,0,Math.max(0,b-parseInt(d.fontSize||12,10)),function(c,a){return c.substring(0,a)+"\u2026"});else if(q){m=[];for(q=[];h.firstChild&&h.firstChild!==g;)q.push(h.firstChild),h.removeChild(h.firstChild);for(;f.length;)f.length&&!d.noWrap&&0<u&&(m.push(g.textContent||""),g.textContent=f.join(" ").replace(/- /g,"-")),d.truncate(g,void 0,f,0===u?l||0:0,b,function(c,a){return f.slice(0,a).join(" ").replace(/- /g,"-")}),l=a.actualWidth,u++;q.forEach(function(c){h.insertBefore(c,g)});m.forEach(function(a){h.insertBefore(v.createTextNode(a),
122
+ g);a=v.createElementNS(w,"tspan");a.textContent="\u200b";B(a,{dy:c,x:e});h.insertBefore(a,g)})}},r=function(d){[].slice.call(d.childNodes).forEach(function(e){e.nodeType===D.Node.TEXT_NODE?h(e,d):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(a.actualWidth=0),r(e))})};r(a.element)}};h.prototype.getLineHeight=function(d){var a;d=d.nodeType===D.Node.TEXT_NODE?d.parentElement:d;this.renderer.styledMode||(a=d&&/(px|em)$/.test(d.style.fontSize)?d.style.fontSize:this.fontSize||this.renderer.style.fontSize||
123
+ 12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(a,d||this.svgElement.element).h};h.prototype.modifyTree=function(d){var a=this,e=function(g,b){var h=g.attributes;h=void 0===h?{}:h;var r=g.children,q=g.tagName,z=a.renderer.styledMode;if("b"===q||"strong"===q)z?h["class"]="highcharts-strong":h.style="font-weight:bold;"+(h.style||"");else if("i"===q||"em"===q)z?h["class"]="highcharts-emphasized":h.style="font-style:italic;"+(h.style||"");k(h.style)&&
124
+ (h.style=h.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===q?(h["class"]="highcharts-br",g.textContent="\u200b",(b=d[b+1])&&b.textContent&&(b.textContent=b.textContent.replace(/^ +/gm,""))):"a"===q&&r&&r.some(function(a){return"#text"===a.tagName})&&(g.children=[{children:r,tagName:"tspan"}]);"#text"!==q&&"a"!==q&&(g.tagName="tspan");g.attributes=h;r&&r.filter(function(a){return"#text"!==a.tagName}).forEach(e)};d.forEach(e)};h.prototype.truncate=function(d,a,e,g,b,h){var r=this.svgElement,
125
+ q=r.renderer,z=r.rotation,m=[],f=e?1:0,y=(a||e||"").length,c=y,u,l=function(c,f){f=f||c;var l=d.parentNode;if(l&&"undefined"===typeof m[f])if(l.getSubStringLength)try{m[f]=g+l.getSubStringLength(0,e?f+1:f)}catch(Z){""}else q.getSpanWidth&&(d.textContent=h(a||e,c),m[f]=g+q.getSpanWidth(r,d));return m[f]};r.rotation=0;var F=l(d.textContent.length);if(g+F>b){for(;f<=y;)c=Math.ceil((f+y)/2),e&&(u=h(e,c)),F=l(c,u&&u.length-1),f===y?f=y+1:F>b?y=c-1:f=c;0===y?d.textContent="":a&&y===a.length-1||(d.textContent=
126
+ u||h(a||e,c))}e&&e.splice(0,c);r.actualWidth=F;r.rotation=z};h.prototype.unescapeEntities=function(d,a){t(this.renderer.escapes,function(e,g){a&&-1!==a.indexOf(e)||(d=d.toString().replace(new RegExp(e,"g"),g))});return d};return h}()});G(b,"Core/Renderer/SVG/SVGRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGLabel.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Renderer/SVG/TextBuilder.js"],
127
+ b["Core/Utilities.js"]],function(b,p,A,E,w,D,B,k,t){var n=A.charts,h=A.deg2rad,d=A.doc,a=A.isFirefox,e=A.isMS,g=A.isWebKit,x=A.noop,C=A.SVG_NS,r=A.symbolSizes,q=A.win,z=t.addEvent,m=t.attr,f=t.createElement,y=t.css,c=t.defined,u=t.destroyObjectProperties,l=t.extend,F=t.isArray,K=t.isNumber,H=t.isObject,I=t.isString,v=t.merge,Q=t.pick,O=t.pInt,R=t.uniqueKey,T;A=function(){function x(c,a,f,d,l,e,m){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=
128
+ this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,a,f,d,l,e,m)}x.prototype.init=function(c,f,l,e,g,b,u){var h=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),r=h.element;u||h.css(this.getStyle(e));c.appendChild(r);m(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&m(r,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=r;this.boxWrapper=h;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.3.2"));
129
+ this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=g;this.styledMode=u;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(f,l,!1);var x;a&&c.getBoundingClientRect&&(f=function(){y(c,{left:0,top:0});x=c.getBoundingClientRect();y(c,{left:Math.ceil(x.left)-x.left+"px",top:Math.ceil(x.top)-x.top+"px"})},f(),this.unSubPixelFix=z(q,"resize",f))};x.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};x.prototype.getReferenceURL=
130
+ function(){if((a||g)&&d.getElementsByTagName("base").length){if(!c(T)){var f=R();f=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:f},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+f+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(d.body);y(f,{position:"fixed",top:0,left:0,zIndex:9E5});var l=d.elementFromPoint(6,6);T="hitme"===(l&&l.id);
131
+ d.body.removeChild(f)}if(T)return q.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};x.prototype.getStyle=function(c){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};x.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};x.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};x.prototype.destroy=function(){var c=this.defs;this.box=
132
+ null;this.boxWrapper=this.boxWrapper.destroy();u(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};x.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};x.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};x.prototype.buildText=function(c){(new k(c)).buildSVG()};x.prototype.getContrast=function(c){c=p.parse(c).rgba;
133
+ c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};x.prototype.button=function(c,a,f,d,m,g,u,q,h,y){var r=this.label(c,a,f,h,void 0,void 0,y,void 0,"button"),x=this.styledMode,F=0,C=m?v(m):{};c=C&&C.style||{};C=b.filterUserAttributes(C);r.attr(v({padding:8,r:2},C));if(!x){C=v({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:c},C);var n=C.style;delete C.style;g=v(C,{fill:"#e6e6e6"},b.filterUserAttributes(g||
134
+ {}));var H=g.style;delete g.style;u=v(C,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(u||{}));var k=u.style;delete u.style;q=v(C,{style:{color:"#cccccc"}},b.filterUserAttributes(q||{}));var M=q.style;delete q.style}z(r.element,e?"mouseover":"mouseenter",function(){3!==F&&r.setState(1)});z(r.element,e?"mouseout":"mouseleave",function(){3!==F&&r.setState(F)});r.setState=function(c){1!==c&&(r.state=F=c);r.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+
135
+ ["normal","hover","pressed","disabled"][c||0]);x||r.attr([C,g,u,q][c||0]).css([n,H,k,M][c||0])};x||r.attr(C).css(l({cursor:"default"},n));return r.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==F&&d.call(r,c)})};x.prototype.crispLine=function(a,f,d){void 0===d&&(d="round");var l=a[0],e=a[1];c(l[1])&&l[1]===e[1]&&(l[1]=e[1]=Math[d](l[1])-f%2/2);c(l[2])&&l[2]===e[2]&&(l[2]=e[2]=Math[d](l[2])+f%2/2);return a};x.prototype.path=function(c){var a=this.styledMode?{}:
136
+ {fill:"none"};F(c)?a.d=c:H(c)&&l(a,c);return this.createElement("path").attr(a)};x.prototype.circle=function(c,a,f){c=H(c)?c:"undefined"===typeof c?{}:{x:c,y:a,r:f};a=this.createElement("circle");a.xSetter=a.ySetter=function(c,a,f){f.setAttribute("c"+a,c)};return a.attr(c)};x.prototype.arc=function(c,a,f,d,l,e){H(c)?(d=c,a=d.y,f=d.r,c=d.x):d={innerR:d,start:l,end:e};c=this.symbol("arc",c,a,f,f,d);c.r=f;return c};x.prototype.rect=function(c,a,f,d,l,e){l=H(c)?c.r:l;var g=this.createElement("rect");
137
+ c=H(c)?c:"undefined"===typeof c?{}:{x:c,y:a,width:Math.max(f,0),height:Math.max(d,0)};this.styledMode||("undefined"!==typeof e&&(c["stroke-width"]=e,c=g.crisp(c)),c.fill="none");l&&(c.r=l);g.rSetter=function(c,a,f){g.r=c;m(f,{rx:c,ry:c})};g.rGetter=function(){return g.r||0};return g.attr(c)};x.prototype.setSize=function(c,a,f){this.width=c;this.height=a;this.boxWrapper.animate({width:c,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Q(f,
138
+ !0)?void 0:0});this.alignElements()};x.prototype.g=function(c){var a=this.createElement("g");return c?a.attr({"class":"highcharts-"+c}):a};x.prototype.image=function(c,a,f,d,l,e){var m={preserveAspectRatio:"none"},g=function(c,a){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",a):c.setAttribute("hc-svg-href",a)};K(a)&&(m.x=a);K(f)&&(m.y=f);K(d)&&(m.width=d);K(l)&&(m.height=l);var b=this.createElement("image").attr(m);a=function(a){g(b.element,c);e.call(b,a)};e?(g(b.element,
139
+ "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f=new q.Image,z(f,"load",a),f.src=c,f.complete&&a({})):g(b.element,c);return b};x.prototype.symbol=function(a,e,m,g,b,u){var q=this,h=/^url\((.*?)\)$/,z=h.test(a),x=!z&&(this.symbols[a]?a:"circle"),F=x&&this.symbols[x],C;if(F){"number"===typeof e&&(C=F.call(this.symbols,Math.round(e||0),Math.round(m||0),g||0,b||0,u));var H=this.path(C);q.styledMode||H.attr("fill","none");l(H,{symbolName:x||void 0,x:e,y:m,width:g,height:b});
140
+ u&&l(H,u)}else if(z){var k=a.match(h)[1];var M=H=this.image(k);M.imgwidth=Q(r[k]&&r[k].width,u&&u.width);M.imgheight=Q(r[k]&&r[k].height,u&&u.height);var da=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(a){M[a+"Setter"]=function(a,f){var d=this["img"+f];this[f]=a;c(d)&&(u&&"within"===u.backgroundSize&&this.width&&this.height&&(d=Math.round(d*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(f,d),
141
+ this.alignByTranslate||(a=((this[f]||0)-d)/2,this.attr("width"===f?{translateX:a}:{translateY:a})))}});c(e)&&M.attr({x:e,y:m});M.isImg=!0;c(M.imgwidth)&&c(M.imgheight)?da(M):(M.attr({width:0,height:0}),f("img",{onload:function(){var c=n[q.chartIndex];0===this.width&&(y(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this));r[k]={width:this.width,height:this.height};M.imgwidth=this.width;M.imgheight=this.height;M.element&&da(M);this.parentNode&&this.parentNode.removeChild(this);q.imgCount--;
142
+ if(!q.imgCount&&c&&!c.hasLoaded)c.onload()},src:k}),this.imgCount++)}return H};x.prototype.clipRect=function(c,a,f,d){var l=R()+"-",e=this.createElement("clipPath").attr({id:l}).add(this.defs);c=this.rect(c,a,f,d,0).add(e);c.id=l;c.clipPath=e;c.count=0;return c};x.prototype.text=function(a,f,d,l){var e={};if(l&&(this.allowHTML||!this.forExport))return this.html(a,f,d);e.x=Math.round(f||0);d&&(e.y=Math.round(d));c(a)&&(e.text=a);a=this.createElement("text").attr(e);if(!l||this.forExport&&!this.allowHTML)a.xSetter=
143
+ function(c,a,f){for(var d=f.getElementsByTagName("tspan"),l=f.getAttribute(a),e=0,m;e<d.length;e++)m=d[e],m.getAttribute(a)===l&&m.setAttribute(a,c);f.setAttribute(a,c)};return a};x.prototype.fontMetrics=function(c,a){c=!this.styledMode&&/px/.test(c)||!q.getComputedStyle?c||a&&a.style&&a.style.fontSize||this.style&&this.style.fontSize:a&&w.prototype.getStyle.call(a,"font-size");c=/px/.test(c)?O(c):12;a=24>c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};x.prototype.rotCorr=function(c,a,
144
+ f){var d=c;a&&f&&(d=Math.max(d*Math.cos(a*h),4));return{x:-c/3*Math.sin(a*h),y:d}};x.prototype.pathToSegments=function(c){for(var a=[],f=[],d={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<c.length;l++)I(f[0])&&K(c[l])&&f.length===d[f[0].toUpperCase()]&&c.splice(l,0,f[0].replace("M","L").replace("m","l")),"string"===typeof c[l]&&(f.length&&a.push(f.slice(0)),f.length=0),f.push(c[l]);a.push(f.slice(0));return a};x.prototype.label=function(c,a,f,d,l,e,m,g,b){return new D(this,c,a,f,d,l,e,m,g,b)};x.prototype.alignElements=
145
+ function(){this.alignedObjects.forEach(function(c){return c.align()})};return x}();l(A.prototype,{Element:w,SVG_NS:C,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:B,draw:x});E.registerRendererType("svg",A,!0);"";return A});G(b,"Core/Renderer/HTML/HTMLElement.js",[b["Core/Globals.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof
146
+ Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function g(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),w=b.isFirefox,D=b.isMS,B=b.isWebKit,k=b.win,t=A.css,n=A.defined,h=A.extend,d=A.pick,a=A.pInt;return function(e){function g(){return null!==e&&e.apply(this,arguments)||this}v(g,e);g.compose=function(a){if(-1===g.composedClasses.indexOf(a)){g.composedClasses.push(a);
147
+ var d=g.prototype,e=a.prototype;e.getSpanCorrection=d.getSpanCorrection;e.htmlCss=d.htmlCss;e.htmlGetBBox=d.htmlGetBBox;e.htmlUpdateTransform=d.htmlUpdateTransform;e.setSpanRotation=d.setSpanRotation}return a};g.prototype.getSpanCorrection=function(a,d,e){this.xCorr=-a*e;this.yCorr=-d};g.prototype.htmlCss=function(a){var e="SPAN"===this.element.tagName&&a&&"width"in a,g=d(e&&a.width,void 0);if(e){delete a.width;this.textWidth=g;var b=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow=
148
+ "hidden");this.styles=h(this.styles,a);t(this.element,a);b&&this.htmlUpdateTransform();return this};g.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};g.prototype.htmlUpdateTransform=function(){if(this.added){var d=this.renderer,e=this.element,g=this.translateX||0,b=this.translateY||0,h=this.x||0,m=this.y||0,f=this.textAlign||"left",y={left:0,center:.5,right:1}[f],c=this.styles;c=c&&c.whiteSpace;t(e,{marginLeft:g,marginTop:b});
149
+ !d.styledMode&&this.shadows&&this.shadows.forEach(function(c){t(c,{marginLeft:g+1,marginTop:b+1})});this.inverted&&[].forEach.call(e.childNodes,function(c){d.invertChild(c,e)});if("SPAN"===e.tagName){var u=this.rotation,l=this.textWidth&&a(this.textWidth),F=[u,f,e.innerHTML,this.textWidth,this.textAlign].join(),k=void 0;k=!1;if(l!==this.oldTextWidth){if(this.textPxLength)var H=this.textPxLength;else t(e,{width:"",whiteSpace:c||"nowrap"}),H=e.offsetWidth;(l>this.oldTextWidth||H>l)&&(/[ \-]/.test(e.textContent||
150
+ e.innerText)||"ellipsis"===e.style.textOverflow)&&(t(e,{width:H>l||u?l+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=l,k=!0)}this.hasBoxWidthChanged=k;F!==this.cTT&&(k=d.fontMetrics(e.style.fontSize,e).b,!n(u)||u===(this.oldRotation||0)&&f===this.oldAlign||this.setSpanRotation(u,y,k),this.getSpanCorrection(!n(u)&&this.textPxLength||e.offsetWidth,k,y,u,f));t(e,{left:h+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=F;this.oldRotation=u;this.oldAlign=f}}else this.alignOnAdd=
151
+ !0};g.prototype.setSpanRotation=function(a,d,e){var g={},b=D&&!/Edge/.test(k.navigator.userAgent)?"-ms-transform":B?"-webkit-transform":w?"MozTransform":k.opera?"-o-transform":void 0;b&&(g[b]=g.transform="rotate("+a+"deg)",g[b+(w?"Origin":"-origin")]=g.transformOrigin=100*d+"% "+e+"px",t(this.element,g))};g.composedClasses=[];return g}(p)});G(b,"Core/Renderer/HTML/HTMLRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],
152
+ function(b,p,A,E){var v=this&&this.__extends||function(){var b=function(h,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return b(h,d)};return function(h,d){function a(){this.constructor=h}b(h,d);h.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),D=E.attr,B=E.createElement,k=E.extend,t=E.pick;return function(n){function h(){return null!==n&&n.apply(this,arguments)||this}
153
+ v(h,n);h.compose=function(d){-1===h.composedClasses.indexOf(d)&&(h.composedClasses.push(d),d.prototype.html=h.prototype.html);return d};h.prototype.html=function(d,a,e){var g=this.createElement("span"),h=g.element,n=g.renderer,r=n.isSVG,q=function(a,d){["opacity","visibility"].forEach(function(f){a[f+"Setter"]=function(e,c,m){var l=a.div?a.div.style:d;p.prototype[f+"Setter"].call(this,e,c,m);l&&(l[c]=e)}});a.addedSetters=!0};g.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,
154
+ b.setElementHTML(this.element,t(a,"")),this.textStr=a,g.doTransform=!0)};r&&q(g,g.element.style);g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(a,d){"align"===d?g.alignValue=g.textAlign=a:g[d]=a;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:d,x:Math.round(a),y:Math.round(e)}).css({position:"absolute"});n.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});h.style.whiteSpace="nowrap";
155
+ g.css=g.htmlCss;r&&(g.add=function(a){var d=n.box.parentNode,f=[];if(this.parentGroup=a){var e=a.div;if(!e){for(;a;)f.push(a),a=a.parentGroup;f.reverse().forEach(function(c){function a(a,f){c[f]=a;"translateX"===f?b.left=a+"px":b.top=a+"px";c.doTransform=!0}var l=D(c.element,"class"),m=c.styles||{};e=c.div=c.div||B("div",l?{className:l}:void 0,{position:"absolute",left:(c.translateX||0)+"px",top:(c.translateY||0)+"px",display:c.display,opacity:c.opacity,cursor:m.cursor,pointerEvents:m.pointerEvents,
156
+ visibility:c.visibility},e||d);var b=e.style;k(c,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(e),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:c.onEvents},arguments);return c},translateXSetter:a,translateYSetter:a});c.addedSetters||q(c)})}}else e=d;e.appendChild(h);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};h.composedClasses=[];return h}(A)});G(b,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions=
157
+ {alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,
158
+ rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,
159
+ style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",
160
+ formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||
161
+ (b={}));return b});G(b,"Core/Foundation.js",[b["Core/Utilities.js"]],function(b){var v=b.addEvent,A=b.isFunction,E=b.objectEach,w=b.removeEvent,D;(function(b){b.registerEventOptions=function(b,t){b.eventOptions=b.eventOptions||{};E(t.events,function(k,h){b.eventOptions[h]!==k&&(b.eventOptions[h]&&(w(b,h,b.eventOptions[h]),delete b.eventOptions[h]),A(k)&&(b.eventOptions[h]=k,v(b,h,k)))})}})(D||(D={}));return D});G(b,"Core/Axis/Tick.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],
162
+ function(b,p,A){var v=p.deg2rad,w=A.clamp,D=A.correctFloat,B=A.defined,k=A.destroyObjectProperties,t=A.extend,n=A.fireEvent,h=A.isNumber,d=A.merge,a=A.objectEach,e=A.pick;p=function(){function g(a,d,e,b,g){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=e||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;n(this,"init");e||b||this.addLabel()}g.prototype.addLabel=function(){var a=this,d=a.axis,g=d.options,q=d.chart,z=d.categories,
163
+ m=d.logarithmic,f=d.names,y=a.pos,c=e(a.options&&a.options.labels,g.labels),u=d.tickPositions,l=y===u[0],F=y===u[u.length-1],k=(!c.step||1===c.step)&&1===d.tickInterval;u=u.info;var H=a.label,I;z=this.parameters.category||(z?e(z[y],f[y],y):y);m&&h(z)&&(z=D(m.lin2log(z)));if(d.dateTime)if(u){var v=q.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&u.higherRanks[y]||u.unitName]);var p=v.main}else h(z)&&(p=d.dateTime.getXDateFormat(z,g.dateTimeLabelFormats||{}));a.isFirst=l;a.isLast=F;var w={axis:d,
164
+ chart:q,dateTimeLabelFormat:p,isFirst:l,isLast:F,pos:y,tick:a,tickPositionInfo:u,value:z};n(this,"labelFormat",w);var A=function(a){return c.formatter?c.formatter.call(a,a):c.format?(a.text=d.defaultLabelFormatter.call(a),b.format(c.format,a,q)):d.defaultLabelFormatter.call(a,a)};g=A.call(w,w);var E=v&&v.list;a.shortenLabel=E?function(){for(I=0;I<E.length;I++)if(t(w,{dateTimeLabelFormat:E[I]}),H.attr({text:A.call(w,w)}),H.getBBox().width<d.getSlotWidth(a)-2*c.padding)return;H.attr({text:""})}:void 0;
165
+ k&&d._addedPlotLB&&a.moveLabel(g,c);B(H)||a.movedLabel?H&&H.textStr!==g&&!k&&(!H.textWidth||c.style.width||H.styles.width||H.css({width:null}),H.attr({text:g}),H.textPxLength=H.getBBox().width):(a.label=H=a.createLabel({x:0,y:0},g,c),a.rotation=0)};g.prototype.createLabel=function(a,e,b){var g=this.axis,h=g.chart;if(a=B(e)&&b.enabled?h.renderer.text(e,a.x,a.y,b.useHTML).add(g.labelGroup):null)h.styledMode||a.css(d(b.style)),a.textPxLength=a.getBBox().width;return a};g.prototype.destroy=function(){k(this,
166
+ this.axis)};g.prototype.getPosition=function(a,d,e,b){var g=this.axis,m=g.chart,f=b&&m.oldChartHeight||m.chartHeight;a={x:a?D(g.translate(d+e,null,null,b)+g.transB):g.left+g.offset+(g.opposite?(b&&m.oldChartWidth||m.chartWidth)-g.right-g.left:0),y:a?f-g.bottom+g.offset-(g.opposite?g.height:0):D(f-g.translate(d+e,null,null,b)-g.transB)};a.y=w(a.y,-1E5,1E5);n(this,"afterGetPosition",{pos:a});return a};g.prototype.getLabelPosition=function(a,d,e,g,b,m,f,h){var c=this.axis,u=c.transA,l=c.isLinked&&c.linkedParent?
167
+ c.linkedParent.reversed:c.reversed,q=c.staggerLines,y=c.tickRotCorr||{x:0,y:0},r=g||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),k={},z=b.y;B(z)||(z=0===c.side?e.rotation?-8:-e.getBBox().height:2===c.side?y.y+8:Math.cos(e.rotation*v)*(y.y-e.getBBox(!1,0).height/2));a=a+b.x+r+y.x-(m&&g?m*u*(l?-1:1):0);d=d+z-(m&&!g?m*u*(l?1:-1):0);q&&(e=f/(h||1)%q,c.opposite&&(e=q-e-1),d+=c.labelOffset/q*e);k.x=a;k.y=Math.round(d);n(this,"afterGetLabelPosition",{pos:k,tickmarkOffset:m,index:f});
168
+ return k};g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g.prototype.getMarkPath=function(a,d,e,g,b,m){return m.crispLine([["M",a,d],["L",a+(b?0:-e),d+(b?e:0)]],g)};g.prototype.handleOverflow=function(a){var d=this.axis,g=d.options.labels,b=a.x,h=d.chart.chartWidth,m=d.chart.spacing,f=e(d.labelLeft,Math.min(d.pos,m[3]));m=e(d.labelRight,Math.max(d.isRadial?0:d.pos+d.len,h-m[1]));var y=this.label,c=this.rotation,u={left:0,center:.5,right:1}[d.labelAlign||
169
+ y.attr("align")],l=y.getBBox().width,F=d.getSlotWidth(this),k={},H=F,n=1,x;if(c||"justify"!==g.overflow)0>c&&b-u*l<f?x=Math.round(b/Math.cos(c*v)-f):0<c&&b+u*l>m&&(x=Math.round((h-b)/Math.cos(c*v)));else if(h=b+(1-u)*l,b-u*l<f?H=a.x+H*(1-u)-f:h>m&&(H=m-a.x+H*u,n=-1),H=Math.min(F,H),H<F&&"center"===d.labelAlign&&(a.x+=n*(F-H-u*(F-Math.min(l,H)))),l>H||d.autoRotation&&(y.styles||{}).width)x=H;x&&(this.shortenLabel?this.shortenLabel():(k.width=Math.floor(x)+"px",(g.style||{}).textOverflow||(k.textOverflow=
170
+ "ellipsis"),y.css(k)))};g.prototype.moveLabel=function(d,e){var g=this,b=g.label,h=g.axis,m=h.reversed,f=!1;b&&b.textStr===d?(g.movedLabel=b,f=!0,delete g.label):a(h.ticks,function(c){f||c.isNew||c===g||!c.label||c.label.textStr!==d||(g.movedLabel=c.label,f=!0,c.labelPos=g.movedLabel.xy,delete c.label)});if(!f&&(g.labelPos||b)){var y=g.labelPos||b.xy;b=h.horiz?m?0:h.width+h.left:y.x;h=h.horiz?y.y:m?h.width+h.left:0;g.movedLabel=g.createLabel({x:b,y:h},d,e);g.movedLabel&&g.movedLabel.attr({opacity:0})}};
171
+ g.prototype.render=function(a,d,g){var b=this.axis,h=b.horiz,m=this.pos,f=e(this.tickmarkOffset,b.tickmarkOffset);m=this.getPosition(h,m,f,d);f=m.x;var y=m.y;b=h&&f===b.pos+b.len||!h&&y===b.pos?-1:1;h=e(g,this.label&&this.label.newOpacity,1);g=e(g,1);this.isActive=!0;this.renderGridLine(d,g,b);this.renderMark(m,g,b);this.renderLabel(m,d,h,a);this.isNew=!1;n(this,"afterRender")};g.prototype.renderGridLine=function(a,d,g){var b=this.axis,h=b.options,m={},f=this.pos,y=this.type,c=e(this.tickmarkOffset,
172
+ b.tickmarkOffset),u=b.chart.renderer,l=this.gridLine,F=h.gridLineWidth,r=h.gridLineColor,k=h.gridLineDashStyle;"minor"===this.type&&(F=h.minorGridLineWidth,r=h.minorGridLineColor,k=h.minorGridLineDashStyle);l||(b.chart.styledMode||(m.stroke=r,m["stroke-width"]=F||0,m.dashstyle=k),y||(m.zIndex=1),a&&(d=0),this.gridLine=l=u.path().attr(m).addClass("highcharts-"+(y?y+"-":"")+"grid-line").add(b.gridGroup));if(l&&(g=b.getPlotLinePath({value:f+c,lineWidth:l.strokeWidth()*g,force:"pass",old:a})))l[a||this.isNew?
173
+ "attr":"animate"]({d:g,opacity:d})};g.prototype.renderMark=function(a,d,g){var b=this.axis,h=b.options,m=b.chart.renderer,f=this.type,y=b.tickSize(f?f+"Tick":"tick"),c=a.x;a=a.y;var u=e(h["minor"!==f?"tickWidth":"minorTickWidth"],!f&&b.isXAxis?1:0);h=h["minor"!==f?"tickColor":"minorTickColor"];var l=this.mark,F=!l;y&&(b.opposite&&(y[0]=-y[0]),l||(this.mark=l=m.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(b.axisGroup),b.chart.styledMode||l.attr({stroke:h,"stroke-width":u})),l[F?"attr":"animate"]({d:this.getMarkPath(c,
174
+ a,y[0],l.strokeWidth()*g,b.horiz,m),opacity:d}))};g.prototype.renderLabel=function(a,d,b,g){var q=this.axis,m=q.horiz,f=q.options,y=this.label,c=f.labels,u=c.step;q=e(this.tickmarkOffset,q.tickmarkOffset);var l=a.x;a=a.y;var F=!0;y&&h(l)&&(y.xy=a=this.getLabelPosition(l,a,y,m,c,q,g,u),this.isFirst&&!this.isLast&&!f.showFirstLabel||this.isLast&&!this.isFirst&&!f.showLastLabel?F=!1:!m||c.step||c.rotation||d||0===b||this.handleOverflow(a),u&&g%u&&(F=!1),F&&h(a.y)?(a.opacity=b,y[this.isNewLabel?"attr":
175
+ "animate"](a),this.isNewLabel=!1):(y.attr("y",-9999),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=function(){var a=this.label,d=this.axis,e=d.reversed;if(a&&!this.isNew){var b=d.horiz?e?d.left:d.width+d.left:a.xy.x;e=d.horiz?a.xy.y:e?d.width+d.top:d.top;a.animate({x:b,y:e,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return p});G(b,"Core/Axis/Axis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/AxisDefaults.js"],
176
+ b["Core/Color/Color.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Axis/Tick.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D,B,k){var t=b.animObject,n=E.defaultOptions,h=w.registerEventOptions,d=D.deg2rad,a=k.arrayMax,e=k.arrayMin,g=k.clamp,x=k.correctFloat,C=k.defined,r=k.destroyObjectProperties,q=k.erase,z=k.error,m=k.extend,f=k.fireEvent,y=k.getMagnitude,c=k.isArray,u=k.isNumber,l=k.isString,F=k.merge,K=k.normalizeTickInterval,H=k.objectEach,I=k.pick,v=
177
+ k.relativeLength,Q=k.removeEvent,O=k.splat,R=k.syncTimeout;b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=
178
+ this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var d=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||
179
+ (d?"xAxis":"yAxis");f(this,"init",{userOptions:a});this.opposite=I(a.opposite,this.opposite);this.side=I(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var l=this.options,b=l.labels,e=l.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=I(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled;this.hasNames="category"===e||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys=
180
+ {});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=C(l.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;a=I(l.crosshair,O(c.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(d?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),
181
+ c[this.coll].push(this));this.series=this.series||[];c.inverted&&!this.isZAxis&&d&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=u(b.rotation)?b.rotation:void 0;h(this,l);f(this,"afterInit")};b.prototype.setOptions=function(c){this.options=F(p.defaultXAxisOptions,"yAxis"===this.coll&&p.defaultYAxisOptions,[p.defaultTopAxisOptions,p.defaultRightAxisOptions,p.defaultBottomAxisOptions,p.defaultLeftAxisOptions][this.side],F(n[this.coll],c));f(this,"afterSetOptions",{userOptions:c})};
182
+ b.prototype.defaultLabelFormatter=function(c){var a=this.axis;c=this.chart.numberFormatter;var d=u(this.value)?this.value:NaN,f=a.chart.time,l=this.dateTimeLabelFormat,b=n.lang,e=b.numericSymbols;b=b.numericSymbolMagnitude||1E3;var g=a.logarithmic?Math.abs(d):a.tickInterval,m=e&&e.length;if(a.categories)var h=""+this.value;else if(l)h=f.dateFormat(l,d);else if(m&&1E3<=g)for(;m--&&"undefined"===typeof h;)a=Math.pow(b,m+1),g>=a&&0===10*d%a&&null!==e[m]&&0!==d&&(h=c(d/a,-1)+e[m]);"undefined"===typeof h&&
183
+ (h=1E4<=Math.abs(d)?c(d,-1):c(d,-1,void 0,""));return h};b.prototype.getSeriesExtremes=function(){var c=this,a=c.chart,d;f(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(f){if(f.visible||!a.options.chart.ignoreHiddenSeries){var l=f.options,b=l.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=b&&(b=null);if(c.isXAxis){if(l=f.xData,l.length){l=c.logarithmic?
184
+ l.filter(c.validatePositiveValue):l;d=f.getXExtremes(l);var e=d.min;var g=d.max;u(e)||e instanceof Date||(l=l.filter(u),d=f.getXExtremes(l),e=d.min,g=d.max);l.length&&(c.dataMin=Math.min(I(c.dataMin,e),e),c.dataMax=Math.max(I(c.dataMax,g),g))}}else if(f=f.applyExtremes(),u(f.dataMin)&&(e=f.dataMin,c.dataMin=Math.min(I(c.dataMin,e),e)),u(f.dataMax)&&(g=f.dataMax,c.dataMax=Math.max(I(c.dataMax,g),g)),C(b)&&(c.threshold=b),!l.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});f(this,"afterGetSeriesExtremes")};
185
+ b.prototype.translate=function(c,a,d,f,l,b){var e=this.linkedParent||this,g=f&&e.old?e.old.min:e.min,m=e.minPixelPadding;l=(e.isOrdinal||e.brokenAxis&&e.brokenAxis.hasBreaks||e.logarithmic&&l)&&e.lin2val;var h=1,y=0;f=f&&e.old?e.old.transA:e.transA;f||(f=e.transA);d&&(h*=-1,y=e.len);e.reversed&&(h*=-1,y-=h*(e.sector||e.len));a?(c=(c*h+y-m)/f+g,l&&(c=e.lin2val(c))):(l&&(c=e.val2lin(c)),c=u(g)?h*(c-g)*f+y+h*m+(u(b)?f*b:0):void 0);return c};b.prototype.toPixels=function(c,a){return this.translate(c,
186
+ !1,!this.horiz,null,!0)+(a?0:this.pos)};b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,d){if("pass"!==n&&c<a||c>d)n?c=g(c,a,d):C=!0;return c}var d=this,l=d.chart,e=d.left,b=d.top,m=c.old,h=c.value,y=c.lineWidth,q=m&&l.oldChartHeight||l.chartHeight,F=m&&l.oldChartWidth||l.chartWidth,k=d.transB,r=c.translatedValue,n=c.force,H,z,x,K,C;c={value:h,lineWidth:y,old:m,force:n,acrossPanes:c.acrossPanes,
187
+ translatedValue:r};f(this,"getPlotLinePath",c,function(c){r=I(r,d.translate(h,null,null,m));r=g(r,-1E5,1E5);H=x=Math.round(r+k);z=K=Math.round(q-r-k);u(r)?d.horiz?(z=b,K=q-d.bottom,H=x=a(H,e,e+d.width)):(H=e,x=F-d.right,z=K=a(z,b,b+d.height)):(C=!0,n=!1);c.path=C&&!n?null:l.renderer.crispLine([["M",H,z],["L",x,K]],y||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,d){var f=x(Math.floor(a/c)*c);d=x(Math.ceil(d/c)*c);var l=[],e;x(f+c)===f&&(e=20);if(this.single)return[a];for(a=f;a<=
188
+ d;){l.push(a);a=x(a+c,e);if(a===b)break;var b=a}return l};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?I(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,d=this.minorTickInterval,f=this.pointRangePadding||0,l=this.min-f;f=this.max+f;var e=f-l,b=[];if(e&&e/d<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(c,a,f){a&&b.push.apply(b,
189
+ g.getLogTickPositions(d,f[a-1],f[a],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(d),l,f,c.startOfWeek));else for(c=l+(a[0]-l)%d;c<=f&&c!==b[0];c+=d)b.push(c)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var c=this.options,d=this.logarithmic,f=this.min,l=this.max,b=0,g,m,h,u;this.isXAxis&&"undefined"===typeof this.minRange&&!d&&(C(c.min)||C(c.max)||C(c.floor)||C(c.ceiling)?
190
+ this.minRange=null:(this.series.forEach(function(c){h=c.xData;u=c.xIncrement?1:h.length-1;if(1<h.length)for(g=u;0<g;g--)if(m=h[g]-h[g-1],!b||m<b)b=m}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(l-f<this.minRange){var y=this.dataMax-this.dataMin>=this.minRange;var q=this.minRange;var F=(q-l+f)/2;F=[f-F,I(c.min,f-F)];y&&(F[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=a(F);l=[f+q,I(c.max,f+q)];y&&(l[2]=d?d.log2lin(this.dataMax):this.dataMax);l=e(l);l-f<q&&
191
+ (F[0]=l-q,F[1]=I(c.min,l-q),f=a(F))}this.min=f;this.max=l};b.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(a){var d=a.closestPointRange,f=a.visible||!a.chart.options.chart.ignoreHiddenSeries;!a.noSharedTooltip&&C(d)&&f&&(c=C(c)?Math.min(c,d):d)});return c};b.prototype.nameToX=function(a){var d=c(this.categories),f=d?this.categories:this.names,l=a.options.x;a.series.requireSorting=!1;C(l)||(l=this.options.uniqueNames?d?f.indexOf(a.name):I(f.keys[a.name],-1):
192
+ a.series.autoIncrement());if(-1===l){if(!d)var e=f.length}else e=l;"undefined"!==typeof e&&(this.names[e]=a.name,this.names.keys[a.name]=e);return e};b.prototype.updateNames=function(){var c=this,a=this.names;0<a.length&&(Object.keys(a.keys).forEach(function(c){delete a.keys[c]}),a.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)c.max=Math.max(c.max,a.xData.length-1),a.processData(),a.generatePoints();a.data.forEach(function(d,
193
+ f){if(d&&d.options&&"undefined"!==typeof d.name){var l=c.nameToX(d);"undefined"!==typeof l&&l!==d.x&&(d.x=l,a.xData[f]=l)}})}))};b.prototype.setAxisTranslation=function(){var c=this,a=c.max-c.min,d=c.linkedParent,e=!!c.categories,b=c.isXAxis,g=c.axisPointRange||0,m=0,h=0,u=c.transA;if(b||e||g){var y=c.getClosest();d?(m=d.minPointOffset,h=d.pointRangePadding):c.series.forEach(function(a){var d=e?1:b?I(a.options.pointRange,y,0):c.axisPointRange||0,f=a.options.pointPlacement;g=Math.max(g,d);if(!c.single||
194
+ e)a=a.is("xrange")?!b:b,m=Math.max(m,a&&l(f)?0:d/2),h=Math.max(h,a&&"on"===f?0:d)});d=c.ordinal&&c.ordinal.slope&&y?c.ordinal.slope/y:1;c.minPointOffset=m*=d;c.pointRangePadding=h*=d;c.pointRange=Math.min(g,c.single&&e?1:a);b&&(c.closestPointRange=y)}c.translationSlope=c.transA=u=c.staticScale||c.len/(a+h||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=u*m;f(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(c){var a=
195
+ this.chart,d=this.logarithmic,l=this.options,e=this.isXAxis,b=this.isLinked,g=l.tickPixelInterval,m=this.categories,h=this.softThreshold,q=l.maxPadding,F=l.minPadding,r=u(l.tickInterval)&&0<=l.tickInterval?l.tickInterval:void 0,k=u(this.threshold)?this.threshold:null;this.dateTime||m||b||this.getTickAmount();var n=I(this.userMin,l.min);var H=I(this.userMax,l.max);if(b){this.linkedParent=a[this.coll][l.linkedTo];var t=this.linkedParent.getExtremes();this.min=I(t.min,t.dataMin);this.max=I(t.max,t.dataMax);
196
+ l.type!==this.linkedParent.options.type&&z(11,1,a)}else{if(h&&C(k))if(this.dataMin>=k)t=k,F=0;else if(this.dataMax<=k){var v=k;q=0}this.min=I(n,t,this.dataMin);this.max=I(H,v,this.dataMax)}d&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,I(this.dataMin,this.min))&&z(10,1,a),this.min=x(d.log2lin(this.min),16),this.max=x(d.log2lin(this.max),16));this.range&&C(this.max)&&(this.userMin=this.min=n=Math.max(this.dataMin,this.minFromRange()),this.userMax=H=this.max,this.range=null);f(this,"foundExtremes");
197
+ this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(m||this.axisPointRange||this.stacking&&this.stacking.usePercentage||b)&&C(this.min)&&C(this.max)&&(a=this.max-this.min)&&(!C(n)&&F&&(this.min-=a*F),!C(H)&&q&&(this.max+=a*q));u(this.userMin)||(u(l.softMin)&&l.softMin<this.min&&(this.min=n=l.softMin),u(l.floor)&&(this.min=Math.max(this.min,l.floor)));u(this.userMax)||(u(l.softMax)&&l.softMax>this.max&&(this.max=H=l.softMax),u(l.ceiling)&&(this.max=Math.min(this.max,l.ceiling)));h&&
198
+ C(this.dataMin)&&(k=k||0,!C(n)&&this.min<k&&this.dataMin>=k?this.min=this.options.minRange?Math.min(k,this.max-this.minRange):k:!C(H)&&this.max>k&&this.dataMax<=k&&(this.max=this.options.minRange?Math.max(k,this.min+this.minRange):k));u(this.min)&&u(this.max)&&!this.chart.polar&&this.min>this.max&&(C(this.options.min)?this.max=this.min:C(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:b&&this.linkedParent&&
199
+ !r&&g===this.linkedParent.options.tickPixelInterval?r=this.linkedParent.tickInterval:I(r,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g));if(e&&!c){var p=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(p)});f(this,"postProcessData",{hasExtemesChanged:p})}this.setAxisTranslation();f(this,"initialAxisTranslation");
200
+ this.pointRange&&!r&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));c=I(l.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!r&&this.tickInterval<c&&(this.tickInterval=c);this.dateTime||this.logarithmic||r||(this.tickInterval=K(this.tickInterval,void 0,y(this.tickInterval),I(l.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};
201
+ b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,d=this.getMinorTickInterval(),l=this.hasVerticalPanning(),e="colorAxis"===this.coll,b=(e||!l)&&c.startOnTick;l=(e||!l)&&c.endOnTick;e=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&C(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==
202
+ c.allowDecimals);this.tickPositions=d=a&&a.slice();!d&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?d=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,
203
+ this.max):(d=[this.min,this.max],z(19,!1,this.chart)),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=d=e);this.paddedTicks=d.slice(0);this.trimTicks(d,b,l);this.isLinked||(this.single&&2>d.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||e||this.adjustTickAmount());f(this,"afterSetTickPositions")};
204
+ b.prototype.trimTicks=function(c,a,d){var l=c[0],e=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;f(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==l)this.min=l;else for(;this.min-b>c[0];)c.shift();if(d)this.max=e;else for(;this.max+b<c[c.length-1];)c.pop();0===c.length&&C(l)&&!this.options.tickPositions&&c.push((e+l)/2)}};b.prototype.alignToOthers=function(){var c={},a=this.options,d;!1!==this.chart.options.chart.alignTicks&&a.alignTicks&&!1!==a.startOnTick&&!1!==a.endOnTick&&!this.logarithmic&&
205
+ this.chart[this.coll].forEach(function(a){var f=a.options;f=[a.horiz?f.left:f.top,f.width,f.height,f.pane].join();a.series.length&&(c[f]?d=!0:c[f]=1)});return d};b.prototype.getTickAmount=function(){var c=this.options,a=c.tickPixelInterval,d=c.tickAmount;!C(c.tickInterval)&&!d&&this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(d=2);!d&&this.alignToOthers()&&(d=Math.ceil(this.len/a)+1);4>d&&(this.finalTickAmt=d,d=5);this.tickAmount=d};b.prototype.adjustTickAmount=function(){var c=
206
+ this.options,a=this.tickInterval,d=this.tickPositions,f=this.tickAmount,l=this.finalTickAmt,e=d&&d.length,b=I(this.threshold,this.softThreshold?0:null);if(this.hasData()&&u(this.min)&&u(this.max)){if(e<f){for(;d.length<f;)d.length%2||this.min===b?d.push(x(d[d.length-1]+a)):d.unshift(x(d[0]-a));this.transA*=(e-1)/(f-1);this.min=c.startOnTick?d[0]:Math.min(this.min,d[0]);this.max=c.endOnTick?d[d.length-1]:Math.max(this.max,d[d.length-1])}else e>f&&(this.tickInterval*=2,this.setTickPositions());if(C(l)){for(a=
207
+ c=d.length;a--;)(3===l&&1===a%2||2>=l&&0<a&&a<c-1)&&d.splice(a,1);this.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(d){c=c||d.isDirtyData||d.isDirty;a=a||d.xAxis&&d.xAxis.isDirty||!1});this.setAxisSize();var d=this.len!==(this.old&&this.old.len);d||c||a||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=
208
+ !1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=d||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);f(this,"afterSetScale")};b.prototype.setExtremes=function(c,a,d,l,e){var b=this,g=b.chart;d=I(d,!0);b.series.forEach(function(c){delete c.kdTree});e=m(e,{min:c,max:a});f(b,"setExtremes",e,function(){b.userMin=c;b.userMax=a;b.eventArgs=e;d&&g.redraw(l)})};
209
+ b.prototype.zoom=function(c,a){var d=this,l=this.dataMin,e=this.dataMax,b=this.options,g=Math.min(l,I(b.min,l)),m=Math.max(e,I(b.max,e));c={newMin:c,newMax:a};f(this,"zoom",c,function(c){var a=c.newMin,f=c.newMax;if(a!==d.min||f!==d.max)d.allowZoomOutside||(C(l)&&(a<g&&(a=g),a>m&&(a=m)),C(e)&&(f<g&&(f=g),f>m&&(f=m))),d.displayBtn="undefined"!==typeof a||"undefined"!==typeof f,d.setExtremes(a,f,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,
210
+ a=this.options,d=a.offsets||[0,0,0,0],f=this.horiz,l=this.width=Math.round(v(I(a.width,c.plotWidth-d[3]+d[1]),c.plotWidth)),e=this.height=Math.round(v(I(a.height,c.plotHeight-d[0]+d[2]),c.plotHeight)),b=this.top=Math.round(v(I(a.top,c.plotTop+d[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(v(I(a.left,c.plotLeft+d[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-e-b;this.right=c.chartWidth-l-a;this.len=Math.max(f?l:e,0);this.pos=f?a:b};b.prototype.getExtremes=function(){var c=this.logarithmic;
211
+ return{min:c?x(c.lin2log(this.min)):this.min,max:c?x(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,d=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=d:Infinity===c?c=a:d>c?c=d:a<c&&(c=a);return this.translate(c,0,1,0,1)};b.prototype.autoLabelAlign=function(c){var a=(I(c,0)-90*this.side+720)%360;c={align:"center"};f(this,"autoLabelAlign",
212
+ c,function(c){15<a&&165>a?c.align="right":195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,d=I(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),l=a["tick"===c?"tickLength":"minorTickLength"];if(d&&l){"inside"===a[c+"Position"]&&(l=-l);var e=[l,d]}c={tickSize:e};f(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics=function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,
213
+ this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,a=this.horiz,f=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/f),e=c.rotation,b=this.labelMetrics(),g=Math.max(this.max-this.min,0),m=function(c){var a=c/(l||1);a=1<a?Math.ceil(a):1;a*f>g&&Infinity!==c&&Infinity!==l&&g&&(a=Math.ceil(g/f));return x(a*f)},h=f,y,q,F=Number.MAX_VALUE;if(a){if(!c.staggerLines&&!c.step)if(u(e))var k=[e];else l<c.autoRotationLimit&&(k=c.autoRotation);k&&
214
+ k.forEach(function(c){if(c===e||c&&-90<=c&&90>=c){q=m(Math.abs(b.h/Math.sin(d*c)));var a=q+Math.abs(c/360);a<F&&(F=a,y=c,h=q)}})}else c.step||(h=m(b.h));this.autoRotation=k;this.labelRotation=I(y,u(e)?e:0);return h};b.prototype.getSlotWidth=function(c){var a=this.chart,d=this.horiz,f=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),e=a.margin[3];if(c&&u(c.slotWidth))return c.slotWidth;if(d&&2>f.step)return f.rotation?0:(this.staggerLines||1)*this.len/l;if(!d){c=f.style.width;
215
+ if(void 0!==c)return parseInt(String(c),10);if(e)return e-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,d=this.tickPositions,f=this.ticks,e=this.options.labels,b=e.style,g=this.horiz,m=this.getSlotWidth(),h=Math.max(1,Math.round(m-2*e.padding)),u={},y=this.labelMetrics(),q=b.textOverflow,F=0;l(e.rotation)||(u.rotation=e.rotation||0);d.forEach(function(c){c=f[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>F&&(F=c.label.textPxLength)});
216
+ this.maxLabelLength=F;if(this.autoRotation)F>h&&F>y.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(m){var k=h;if(!q){var r="clip";for(h=d.length;!g&&h--;){var n=d[h];if(n=f[n].label)n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>m&&n.css({width:m+"px"}),n.getBBox().height>this.len/d.length-(y.h-y.f)&&(n.specificTextOverflow="ellipsis")}}}u.rotation&&(k=F>.5*c.chartHeight?.33*c.chartHeight:F,q||(r="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))u.align=
217
+ this.labelAlign;d.forEach(function(c){var a=(c=f[c])&&c.label,d=b.width,l={};a&&(a.attr(u),c.shortenLabel?c.shortenLabel():k&&!d&&"nowrap"!==b.whiteSpace&&(k<a.textPxLength||"SPAN"===a.element.tagName)?(l.width=k+"px",q||(l.textOverflow=a.specificTextOverflow||r),a.css(l)):a.styles&&a.styles.width&&!l.width&&!d&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=u.rotation)},this);this.tickRotCorr=a.rotCorr(y.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||
218
+ this.options.showEmpty&&C(this.min)&&C(this.max)};b.prototype.addTitle=function(c){var a=this.chart.renderer,d=this.horiz,f=this.opposite,l=this.options.title,e=this.chart.styledMode,b;this.axisTitle||((b=l.textAlign)||(b=(d?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[l.align]),this.axisTitle=a.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation,align:b}).addClass("highcharts-axis-title"),e||this.axisTitle.css(F(l.style)),this.axisTitle.add(this.axisGroup),
219
+ this.axisTitle.isNew=!0);e||l.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};b.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new B(this,c)};b.prototype.getOffset=function(){var c=this,a=this,d=a.chart,l=a.horiz,e=a.options,b=a.side,g=a.ticks,m=a.tickPositions,h=a.coll,u=a.axisParent,y=d.renderer,q=d.inverted&&!a.isZAxis?[1,0,3,2][b]:b,F=a.hasData(),k=e.title,r=e.labels,n=d.axisOffset;d=d.clipOffset;var z=[-1,
220
+ 1,1,-1][b],x=e.className,K,t=0,v=0,p=0;a.showAxis=K=F||e.showEmpty;a.staggerLines=a.horiz&&r.staggerLines||void 0;if(!a.axisGroup){var B=function(a,d,f){return y.g(a).attr({zIndex:f}).addClass("highcharts-"+h.toLowerCase()+d+" "+(c.isRadial?"highcharts-radial-axis"+d+" ":"")+(x||"")).add(u)};a.gridGroup=B("grid","-grid",e.gridZIndex);a.axisGroup=B("axis","",e.zIndex);a.labelGroup=B("axis-labels","-labels",r.zIndex)}F||a.isLinked?(m.forEach(function(c){a.generateTick(c)}),a.renderUnsquish(),a.reserveSpaceDefault=
221
+ 0===b||2===b||{1:"left",3:"right"}[b]===a.labelAlign,I(r.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&m.forEach(function(c){p=Math.max(g[c].getLabelSize(),p)}),a.staggerLines&&(p*=a.staggerLines),a.labelOffset=p*(a.opposite?-1:1)):H(g,function(c,a){c.destroy();delete g[a]});if(k&&k.text&&!1!==k.enabled&&(a.addTitle(K),K&&!1!==k.reserveSpace)){a.titleOffset=t=a.axisTitle.getBBox()[l?"height":"width"];var Z=k.offset;v=C(Z)?0:I(k.margin,l?5:10)}a.renderLine();a.offset=z*I(e.offset,
222
+ n[b]?n[b]+(e.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};k=0===b?-a.labelMetrics().h:2===b?a.tickRotCorr.y:0;F=Math.abs(p)+v;p&&(F=F-k+z*(l?I(r.y,a.tickRotCorr.y+8*z):r.x));a.axisTitleMargin=I(Z,F);a.getMaxLabelDimensions&&(a.maxLabelDimensions=a.getMaxLabelDimensions(g,m));"colorAxis"!==h&&(l=this.tickSize("tick"),n[b]=Math.max(n[b],(a.axisTitleMargin||0)+t+z*a.offset,F,m&&m.length&&l?l[0]+z*a.offset:0),e=!a.axisLine||e.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2),d[q]=Math.max(d[q],
223
+ e));f(this,"afterGetOffset")};b.prototype.getLinePath=function(c){var a=this.chart,d=this.opposite,f=this.offset,l=this.horiz,e=this.left+(d?this.width:0)+f;f=a.chartHeight-this.bottom-(d?this.height:0)+f;d&&(c*=-1);return a.renderer.crispLine([["M",l?this.left:e,l?f:this.top],["L",l?a.chartWidth-this.right:e,l?f:a.chartHeight-this.bottom]],c)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||
224
+ this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,d=this.top,l=this.len,e=this.options.title,b=c?a:d,g=this.opposite,m=this.offset,h=e.x,u=e.y,y=this.axisTitle,q=this.chart.renderer.fontMetrics(e.style.fontSize,y);y=Math.max(y.getBBox(null,0).height-q.h-1,0);l={low:b+(c?0:l),middle:b+l/2,high:b+(c?l:0)}[e.align];a=(c?d+this.height:a)+(c?1:-1)*(g?-1:1)*this.axisTitleMargin+[-y,y,
225
+ q.f,-y][this.side];c={x:c?l+h:a+(g?this.width:0)+m+h,y:c?a+u-(g?this.height:0)+m:l+u};f(this,"afterGetTitlePosition",{titlePosition:c});return c};b.prototype.renderMinorTick=function(c,a){var d=this.minorTicks;d[c]||(d[c]=new B(this,c,"minor"));a&&d[c].isNew&&d[c].render(null,!0);d[c].render(null,!1,1)};b.prototype.renderTick=function(c,a,d){var f=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)f[c]||(f[c]=new B(this,c)),d&&f[c].isNew&&f[c].render(a,!0,-1),f[c].render(a)};
226
+ b.prototype.render=function(){var c=this,a=c.chart,d=c.logarithmic,l=c.options,e=c.isLinked,b=c.tickPositions,g=c.axisTitle,m=c.ticks,h=c.minorTicks,y=c.alternateBands,q=l.stackLabels,F=l.alternateGridColor,k=c.tickmarkOffset,r=c.axisLine,n=c.showAxis,z=t(a.renderer.globalAnimation),x,K;c.labelEdge.length=0;c.overlap=!1;[m,h,y].forEach(function(c){H(c,function(c){c.isActive=!1})});if(c.hasData()||e){var C=c.chart.hasRendered&&c.old&&u(c.old.min);c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(a){c.renderMinorTick(a,
227
+ C)});b.length&&(b.forEach(function(a,d){c.renderTick(a,d,C)}),k&&(0===c.min||c.single)&&(m[-1]||(m[-1]=new B(c,-1,null,!0)),m[-1].render(-1)));F&&b.forEach(function(f,l){K="undefined"!==typeof b[l+1]?b[l+1]+k:c.max-k;0===l%2&&f<c.max&&K<=c.max+(a.polar?-k:k)&&(y[f]||(y[f]=new D.PlotLineOrBand(c)),x=f+k,y[f].options={from:d?d.lin2log(x):x,to:d?d.lin2log(K):K,color:F,className:"highcharts-alternate-grid"},y[f].render(),y[f].isActive=!0)});c._addedPlotLB||(c._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||
228
+ []).forEach(function(a){c.addPlotBandOrLine(a)}))}[m,h,y].forEach(function(c){var d=[],f=z.duration;H(c,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,d.push(a))});R(function(){for(var a=d.length;a--;)c[d[a]]&&!c[d[a]].isActive&&(c[d[a]].destroy(),delete c[d[a]])},c!==y&&a.hasRendered&&f?f:0)});r&&(r[r.isPlaced?"animate":"attr"]({d:this.getLinePath(r.strokeWidth())}),r.isPlaced=!0,r[n?"show":"hide"](n));g&&n&&(l=c.getTitlePosition(),u(l.y)?(g[g.isNew?"attr":"animate"](l),g.isNew=!1):(g.attr("y",
229
+ -9999),g.isNew=!0));q&&q.enabled&&c.stacking&&c.stacking.renderStackTotals();c.old={len:c.len,max:c.max,min:c.min,transA:c.transA,userMax:c.userMax,userMin:c.userMin};c.isDirty=!1;f(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(c){var a=this,d=a.plotLinesAndBands,
230
+ l=this.eventOptions;f(this,"destroy",{keepEvents:c});c||Q(a);[a.ticks,a.minorTicks,a.alternateBands].forEach(function(c){r(c)});if(d)for(c=d.length;c--;)d[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){a[c]&&(a[c]=a[c].destroy())});for(var e in a.plotLinesAndBandsGroups)a.plotLinesAndBandsGroups[e]=a.plotLinesAndBandsGroups[e].destroy();H(a,function(c,d){-1===a.getKeepProps().indexOf(d)&&delete a[d]});this.eventOptions=l};b.prototype.drawCrosshair=
231
+ function(c,a){var d=this.crosshair,l=I(d&&d.snap,!0),e=this.chart,b,g=this.cross;f(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(d&&!1!==(C(a)||!l)){l?C(a)&&(b=I("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-a.plotY)):b=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(C(b)){var h={value:a&&(this.isXAxis?a.x:I(a.stackY,a.y)),translatedValue:b};e.polar&&m(h,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});h=this.getPlotLinePath(h)||
232
+ null}if(!C(h)){this.hideCrosshair();return}l=this.categories&&!this.isRadial;g||(this.cross=g=e.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+(d.className||"")).attr({zIndex:I(d.zIndex,2)}).add(),e.styledMode||(g.attr({stroke:d.color||(l?A.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":I(d.width,1)}).css({"pointer-events":"none"}),d.dashStyle&&g.attr({dashstyle:d.dashStyle})));g.show().attr({d:h});l&&!d.width&&g.attr({"stroke-width":this.transA});
233
+ this.cross.e=c}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:c,point:a})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();f(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};b.prototype.validatePositiveValue=function(c){return u(c)&&0<c};b.prototype.update=function(c,a){var d=this.chart;c=F(this.userOptions,c);this.destroy(!0);this.init(d,c);d.isDirtyBox=!0;I(a,!0)&&d.redraw()};
234
+ b.prototype.remove=function(c){for(var a=this.chart,d=this.coll,f=this.series,l=f.length;l--;)f[l]&&f[l].remove(!1);q(a.axes,this);q(a[d],this);a[d].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;I(c,!0)&&a.redraw()};b.prototype.setTitle=function(c,a){this.update({title:c},a)};b.prototype.setCategories=function(c,a){this.update({categories:c},a)};b.defaultOptions=p.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");
235
+ return b}();"";return b});G(b,"Core/Axis/DateTimeAxis.js",[b["Core/Utilities.js"]],function(b){var v=b.addEvent,A=b.getMagnitude,E=b.normalizeTickInterval,w=b.timeUnits,D;(function(b){function k(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function t(d){"datetime"!==d.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var n=[];b.compose=function(d){-1===n.indexOf(d)&&(n.push(d),d.keepProps.push("dateTime"),d.prototype.getTimeTicks=k,v(d,"init",
236
+ t));return d};var h=function(){function d(a){this.axis=a}d.prototype.normalizeTimeTickInterval=function(a,d){var e=d||[["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]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];d=e[e.length-1];var b=w[d[0]],h=d[1],k;for(k=0;k<e.length&&!(d=e[k],b=w[d[0]],h=d[1],e[k+1]&&a<=(b*h[h.length-1]+w[e[k+1][0]])/2);k++);b===w.year&&a<5*b&&(h=[1,2,5]);a=E(a/b,h,"year"===d[0]?
237
+ Math.max(A(a/b),1):1);return{unitRange:b,count:a,unitName:d[0]}};d.prototype.getXDateFormat=function(a,d){var b=this.axis;return b.closestPointRange?b.chart.time.getDateFormat(b.closestPointRange,a,b.options.startOfWeek,d)||d.year:d.day};return d}();b.Additions=h})(D||(D={}));return D});G(b,"Core/Axis/LogarithmicAxis.js",[b["Core/Utilities.js"]],function(b){var v=b.addEvent,A=b.getMagnitude,E=b.normalizeTickInterval,w=b.pick,D;(function(b){function k(d){var a=this.logarithmic;"logarithmic"!==d.userOptions.type?
238
+ this.logarithmic=void 0:a||(this.logarithmic=new h(this))}function t(){var d=this.logarithmic;d&&(this.lin2val=function(a){return d.lin2log(a)},this.val2lin=function(a){return d.log2lin(a)})}var n=[];b.compose=function(d){-1===n.indexOf(d)&&(n.push(d),d.keepProps.push("logarithmic"),v(d,"init",k),v(d,"afterInit",t));return d};var h=function(){function d(a){this.axis=a}d.prototype.getLogTickPositions=function(a,d,b,h){var e=this.axis,g=e.len,q=e.options,k=[];h||(this.minorAutoInterval=void 0);if(.5<=
239
+ a)a=Math.round(a),k=e.getLinearTickPositions(a,d,b);else if(.08<=a){var m=Math.floor(d),f,y=q=void 0;for(g=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];m<b+1&&!y;m++){var c=g.length;for(f=0;f<c&&!y;f++){var u=this.log2lin(this.lin2log(m)*g[f]);u>d&&(!h||q<=b)&&"undefined"!==typeof q&&k.push(q);q>b&&(y=!0);q=u}}}else d=this.lin2log(d),b=this.lin2log(b),a=h?e.getMinorTickInterval():q.tickInterval,a=w("auto"===a?null:a,this.minorAutoInterval,q.tickPixelInterval/(h?5:1)*(b-d)/((h?g/e.tickPositions.length:
240
+ g)||1)),a=E(a,void 0,A(a)),k=e.getLinearTickPositions(a,d,b).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(e.tickInterval=a);return k};d.prototype.lin2log=function(a){return Math.pow(10,a)};d.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return d}();b.Additions=h})(D||(D={}));return D});G(b,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[b["Core/Utilities.js"]],function(b){var v=b.erase,A=b.extend,E=b.isNumber,w;(function(b){var p=[],k;b.compose=function(b,h){k||(k=b);-1===
241
+ p.indexOf(h)&&(p.push(h),A(h.prototype,t.prototype));return h};var t=function(){function b(){}b.prototype.getPlotBandPath=function(b,d,a){void 0===a&&(a=this.options);var e=this.getPlotLinePath({value:d,force:!0,acrossPanes:a.acrossPanes}),g=[],h=this.horiz;d=!E(this.min)||!E(this.max)||b<this.min&&d<this.min||b>this.max&&d>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:a.acrossPanes});a=1;if(b&&e){if(d){var k=b.toString()===e.toString();a=0}for(d=0;d<b.length;d+=2){var r=b[d],q=b[d+
242
+ 1],n=e[d],m=e[d+1];"M"!==r[0]&&"L"!==r[0]||"M"!==q[0]&&"L"!==q[0]||"M"!==n[0]&&"L"!==n[0]||"M"!==m[0]&&"L"!==m[0]||(h&&n[1]===r[1]?(n[1]+=a,m[1]+=a):h||n[2]!==r[2]||(n[2]+=a,m[2]+=a),g.push(["M",r[1],r[2]],["L",q[1],q[2]],["L",m[1],m[2]],["L",n[1],n[2]],["Z"]));g.isFlat=k}}return g};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,"plotLines")};b.prototype.addPlotBandOrLine=function(b,d){var a=this,
243
+ e=this.userOptions,g=new k(this,b);this.visible&&(g=g.render());if(g){this._addedPlotLB||(this._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(d){a.addPlotBandOrLine(d)}));if(d){var h=e[d]||[];h.push(b);e[d]=h}this.plotLinesAndBands.push(g)}return g};b.prototype.removePlotBandOrLine=function(b){var d=this.plotLinesAndBands,a=this.options,e=this.userOptions;if(d){for(var g=d.length;g--;)d[g].id===b&&d[g].destroy();[a.plotLines||[],e.plotLines||[],a.plotBands||[],e.plotBands||
244
+ []].forEach(function(a){for(g=a.length;g--;)(a[g]||{}).id===b&&v(a,a[g])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(w||(w={}));return w});G(b,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[b["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],b["Core/Utilities.js"]],function(b,p){var v=p.arrayMax,E=p.arrayMin,w=p.defined,D=p.destroyObjectProperties,B=p.erase,k=p.fireEvent,t=p.merge,n=p.objectEach,
245
+ h=p.pick;p=function(){function d(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}d.compose=function(a){return b.compose(d,a)};d.prototype.render=function(){k(this,"render");var a=this,d=a.axis,b=d.horiz,x=d.logarithmic,C=a.options,r=C.color,q=h(C.zIndex,0),z=C.events,m={},f=d.chart.renderer,y=C.label,c=a.label,u=C.to,l=C.from,F=C.value,K=a.svgElem,H=[],I=w(l)&&w(u);H=w(F);var v=!K,p={"class":"highcharts-plot-"+(I?"band ":"line ")+(C.className||"")},B=I?"bands":"lines";x&&(l=x.log2lin(l),u=x.log2lin(u),
246
+ F=x.log2lin(F));d.chart.styledMode||(H?(p.stroke=r||"#999999",p["stroke-width"]=h(C.width,1),C.dashStyle&&(p.dashstyle=C.dashStyle)):I&&(p.fill=r||"#e6ebf5",C.borderWidth&&(p.stroke=C.borderColor,p["stroke-width"]=C.borderWidth)));m.zIndex=q;B+="-"+q;(x=d.plotLinesAndBandsGroups[B])||(d.plotLinesAndBandsGroups[B]=x=f.g("plot-"+B).attr(m).add());v&&(a.svgElem=K=f.path().attr(p).add(x));if(H)H=d.getPlotLinePath({value:F,lineWidth:K.strokeWidth(),acrossPanes:C.acrossPanes});else if(I)H=d.getPlotBandPath(l,
247
+ u,C);else return;!a.eventsAdded&&z&&(n(z,function(c,d){K.on(d,function(c){z[d].apply(a,[c])})}),a.eventsAdded=!0);(v||!K.d)&&H&&H.length?K.attr({d:H}):K&&(H?(K.show(!0),K.animate({d:H})):K.d&&(K.hide(),c&&(a.label=c=c.destroy())));y&&(w(y.text)||w(y.formatter))&&H&&H.length&&0<d.width&&0<d.height&&!H.isFlat?(y=t({align:b&&I&&"center",x:b?!I&&4:10,verticalAlign:!b&&I&&"middle",y:b?I?16:10:I?6:-4,rotation:b&&!I&&90},y),this.renderLabel(y,H,I,q)):c&&c.hide();return a};d.prototype.renderLabel=function(a,
248
+ d,b,h){var e=this.axis,g=e.chart.renderer,q=this.label;q||(this.label=q=g.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(b?"band":"line")+"-label "+(a.className||""),zIndex:h}).add(),e.chart.styledMode||q.css(t({textOverflow:"ellipsis"},a.style)));h=d.xBounds||[d[0][1],d[1][1],b?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],b?d[2][2]:d[0][2]];b=E(h);g=E(d);q.align(a,!1,{x:b,y:g,width:v(h)-b,height:v(d)-g});q.alignValue&&"left"!==
249
+ q.alignValue||q.css({width:(90===q.rotation?e.height-(q.alignAttr.y-e.top):e.width-(q.alignAttr.x-e.left))+"px"});q.show(!0)};d.prototype.getLabelText=function(a){return w(a.formatter)?a.formatter.call(this):a.text};d.prototype.destroy=function(){B(this.axis.plotLinesAndBands,this);delete this.axis;D(this)};return d}();"";"";return p});G(b,"Core/Tooltip.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],
250
+ function(b,p,A,E,w){var v=b.format,B=p.doc,k=A.distribute,t=w.addEvent,n=w.clamp,h=w.css,d=w.defined,a=w.discardElement,e=w.extend,g=w.fireEvent,x=w.isArray,C=w.isNumber,r=w.isString,q=w.merge,z=w.pick,m=w.splat,f=w.syncTimeout;b=function(){function b(c,a){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=c;this.init(c,a)}b.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",
251
+ attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};b.prototype.bodyFormatter=function(c){return c.map(function(c){var a=c.series.tooltipOptions;return(a[(c.point.formatPrefix||
252
+ "point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,a[(c.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(c){this.chart.series.forEach(function(a){var d=a&&a.tt;d&&(!d.isActive||c?a.tt=d.destroy():d.isActive=!1)})};b.prototype.defaultFormatter=function(c){var a=this.points||m(this);var d=[c.tooltipFooterHeaderFormatter(a[0])];d=d.concat(c.bodyFormatter(a));d.push(c.tooltipFooterHeaderFormatter(a[0],!0));return d};b.prototype.destroy=function(){this.label&&(this.label=
253
+ this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container));w.clearTimeout(this.hideTimer);w.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(c,a){var d=this.chart,f=d.pointer,b=d.inverted,e=d.plotTop,g=d.plotLeft,h,u,y=0,q=0;c=m(c);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=f.normalize(a)),f=[a.chartX-g,a.chartY-e]):c[0].tooltipPos?f=c[0].tooltipPos:(c.forEach(function(c){h=
254
+ c.series.yAxis;u=c.series.xAxis;y+=c.plotX||0;q+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;u&&h&&(b?(y+=e+d.plotHeight-u.len-u.pos,q+=g+d.plotWidth-h.len-h.pos):(y+=u.pos-g,q+=h.pos-e))}),y/=c.length,q/=c.length,f=[b?d.plotWidth-q:y,b?d.plotHeight-y:q],this.shared&&1<c.length&&a&&(b?f[0]=a.chartX-g:f[1]=a.chartY-e));return f.map(Math.round)};b.prototype.getLabel=function(){var c=this,a=this.chart.styledMode,f=this.options,b=this.split&&this.allowShared,e="tooltip"+(d(f.className)?" "+f.className:
255
+ ""),g=f.style.pointerEvents||(!this.followPointer&&f.stickOnContact?"auto":"none"),m=function(){c.inContact=!0},y=function(a){var d=c.chart.hoverSeries;c.inContact=c.shouldStickOnContact()&&c.chart.pointer.inClass(a.relatedTarget,"highcharts-tooltip");if(!c.inContact&&d&&d.onMouseOut)d.onMouseOut()},q,k=this.chart.renderer;if(c.label){var r=!c.label.hasClass("highcharts-label");(b&&!r||!b&&r)&&c.destroy()}if(!this.label){if(this.outside){r=this.chart.options.chart.style;var n=E.getRendererType();
256
+ this.container=q=p.doc.createElement("div");q.className="highcharts-tooltip-container";h(q,{position:"absolute",top:"1px",pointerEvents:g,zIndex:Math.max(this.options.style.zIndex||0,(r&&r.zIndex||0)+3)});t(q,"mouseenter",m);t(q,"mouseleave",y);p.doc.body.appendChild(q);this.renderer=k=new n(q,0,0,r,void 0,void 0,k.styledMode)}b?this.label=k.g(e):(this.label=k.label("",0,0,f.shape,void 0,void 0,f.useHTML,void 0,e).attr({padding:f.padding,r:f.borderRadius}),a||this.label.attr({fill:f.backgroundColor,
257
+ "stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:g}).shadow(f.shadow));a&&f.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var z=this.label,x=z.xSetter,C=z.ySetter;z.xSetter=function(a){x.call(z,c.distance);q.style.left=a+"px"};z.ySetter=function(a){C.call(z,c.distance);q.style.top=a+"px"}}this.label.on("mouseenter",m).on("mouseleave",y).attr({zIndex:8}).add()}return this.label};b.prototype.getPosition=function(c,
258
+ a,d){var f=this.chart,l=this.distance,b={},e=f.inverted&&d.h||0,g=this.outside,m=g?B.documentElement.clientWidth-2*l:f.chartWidth,h=g?Math.max(B.body.scrollHeight,B.documentElement.scrollHeight,B.body.offsetHeight,B.documentElement.offsetHeight,B.documentElement.clientHeight):f.chartHeight,u=f.pointer.getChartPosition(),y=function(b){var e="x"===b;return[b,e?m:h,e?c:a].concat(g?[e?c*u.scaleX:a*u.scaleY,e?u.left-l+(d.plotX+f.plotLeft)*u.scaleX:u.top-l+(d.plotY+f.plotTop)*u.scaleY,0,e?m:h]:[e?c:a,e?
259
+ d.plotX+f.plotLeft:d.plotY+f.plotTop,e?f.plotLeft:f.plotTop,e?f.plotLeft+f.plotWidth:f.plotTop+f.plotHeight])},q=y("y"),k=y("x"),r;y=!!d.negative;!f.polar&&f.hoverSeries&&f.hoverSeries.yAxis&&f.hoverSeries.yAxis.reversed&&(y=!y);var n=!this.followPointer&&z(d.ttBelow,!f.inverted===y),x=function(c,a,d,f,m,h,y){var q=g?"y"===c?l*u.scaleY:l*u.scaleX:l,k=(d-f)/2,F=f<m-l,r=m+l+f<a,H=m-q-d+k;m=m+q-k;if(n&&r)b[c]=m;else if(!n&&F)b[c]=H;else if(F)b[c]=Math.min(y-f,0>H-e?H:H-e);else if(r)b[c]=Math.max(h,m+
260
+ e+d>a?m:m+e);else return!1},t=function(c,a,d,f,e){var g;e<l||e>a-l?g=!1:b[c]=e<d/2?1:e>a-f/2?a-f-2:e-d/2;return g},C=function(c){var a=q;q=k;k=a;r=c},v=function(){!1!==x.apply(0,q)?!1!==t.apply(0,k)||r||(C(!0),v()):r?b.x=b.y=0:(C(!0),v())};(f.inverted||1<this.len)&&C();v();return b};b.prototype.hide=function(c){var a=this;w.clearTimeout(this.hideTimer);c=z(c,this.options.hideDelay);this.isHidden||(this.hideTimer=f(function(){a.getLabel().fadeOut(c?void 0:c);a.isHidden=!0},c))};b.prototype.init=function(c,
261
+ a){this.chart=c;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!c.inverted&&!c.polar;this.shared=a.shared||this.split;this.outside=z(a.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(c,a,d,f){var l=this,b=l.now,g=!1!==l.options.animation&&
262
+ !l.isHidden&&(1<Math.abs(c-b.x)||1<Math.abs(a-b.y)),m=l.followPointer||1<l.len;e(b,{x:g?(2*b.x+c)/3:c,y:g?(b.y+a)/2:a,anchorX:m?void 0:g?(2*b.anchorX+d)/3:d,anchorY:m?void 0:g?(b.anchorY+f)/2:f});l.getLabel().attr(b);l.drawTracker();g&&(w.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){l&&l.move(c,a,d,f)},32))};b.prototype.refresh=function(c,a){var d=this.chart,f=this.options,b=m(c),e=b[0],h=[],u=f.formatter||this.defaultFormatter,y=this.shared,q=d.styledMode,k={};if(f.enabled){w.clearTimeout(this.hideTimer);
263
+ this.allowShared=!(!x(c)&&c.series&&c.series.noSharedTooltip);this.followPointer=!this.split&&e.series.tooltipOptions.followPointer;c=this.getAnchor(c,a);var r=c[0],n=c[1];y&&this.allowShared?(d.pointer.applyInactiveState(b),b.forEach(function(c){c.setState("hover");h.push(c.getLabelConfig())}),k={x:e.category,y:e.y},k.points=h):k=e.getLabelConfig();this.len=h.length;u=u.call(k,this);y=e.series;this.distance=z(y.tooltipOptions.distance,16);if(!1===u)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(u,
264
+ b);else{var t=r,C=n;a&&d.pointer.isDirectTouch&&(t=a.chartX-d.plotLeft,C=a.chartY-d.plotTop);if(d.polar||!1===y.options.clip||b.some(function(c){return c.series.shouldShowTooltip(t,C)}))a=this.getLabel(),f.style.width&&!q||a.css({width:this.chart.spacingBox.width+"px"}),a.attr({text:u&&u.join?u.join(""):u}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+z(e.colorIndex,y.colorIndex)),q||a.attr({stroke:f.borderColor||e.color||y.color||"#666666"}),this.updatePosition({plotX:r,
265
+ plotY:n,negative:e.negative,ttBelow:e.ttBelow,h:c[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}g(this,"refresh")}};b.prototype.renderSplit=function(c,a){function d(c,a,d,b,l){void 0===l&&(l=!0);d?(a=V?0:G,c=n(c-b/2,P.left,P.right-b-(f.outside?N:0))):(a-=ca,c=l?c-b-D:c+D,c=n(c,l?c:P.left,P.right));return{x:c,y:a}}var f=this,b=f.chart,g=f.chart,m=g.chartWidth,h=g.chartHeight,u=g.plotHeight,y=g.plotLeft,q=g.plotTop,x=g.pointer,t=g.scrollablePixelsY;
266
+ t=void 0===t?0:t;var C=g.scrollablePixelsX,v=g.scrollingContainer;v=void 0===v?{scrollLeft:0,scrollTop:0}:v;var p=v.scrollLeft;v=v.scrollTop;var w=g.styledMode,D=f.distance,M=f.options,A=f.options.positioner,P=f.outside&&"number"!==typeof C?B.documentElement.getBoundingClientRect():{left:p,right:p+m,top:v,bottom:v+h},E=f.getLabel(),S=this.renderer||b.renderer,V=!(!b.xAxis[0]||!b.xAxis[0].opposite);b=x.getChartPosition();var N=b.left;b=b.top;var ca=q+v,ea=0,G=u-t;r(c)&&(c=[!1,c]);c=c.slice(0,a.length+
267
+ 1).reduce(function(c,b,l){if(!1!==b&&""!==b){l=a[l-1]||{isHeader:!0,plotX:a[0].plotX,plotY:u,series:{}};var e=l.isHeader,g=e?f:l.series;b=b.toString();var m=g.tt,h=l.isHeader;var k=l.series;var r="highcharts-color-"+z(l.colorIndex,k.colorIndex,"none");m||(m={padding:M.padding,r:M.borderRadius},w||(m.fill=M.backgroundColor,m["stroke-width"]=M.borderWidth),m=S.label("",0,0,M[h?"headerShape":"shape"],void 0,void 0,M.useHTML).addClass((h?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+r).attr(m).add(E));
268
+ m.isActive=!0;m.attr({text:b});w||m.css(M.style).shadow(M.shadow).attr({stroke:M.borderColor||l.color||k.color||"#333333"});g=g.tt=m;h=g.getBBox();b=h.width+g.strokeWidth();e&&(ea=h.height,G+=ea,V&&(ca-=ea));k=l.plotX;k=void 0===k?0:k;r=l.plotY;r=void 0===r?0:r;m=l.series;if(l.isHeader){k=y+k;var F=q+u/2}else{var H=m.xAxis,x=m.yAxis;k=H.pos+n(k,-D,H.len+D);m.shouldShowTooltip(0,x.pos-q+r,{ignoreX:!0})&&(F=x.pos+r)}k=n(k,P.left-D,P.right+D);"number"===typeof F?(h=h.height+1,r=A?A.call(f,b,h,l):d(k,
269
+ F,e,b),c.push({align:A?0:void 0,anchorX:k,anchorY:F,boxWidth:b,point:l,rank:z(r.rank,e?1:0),size:h,target:r.y,tt:g,x:r.x})):g.isActive=!1}return c},[]);!A&&c.some(function(c){var a=(f.outside?N:0)+c.anchorX;return a<P.left&&a+c.boxWidth<P.right?!0:a<N-P.left+c.boxWidth&&P.right-a>a})&&(c=c.map(function(c){var a=d(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return e(c,{target:a.y,x:a.x})}));f.cleanSplit();k(c,G);var aa=N,fa=N;c.forEach(function(c){var a=c.x,d=c.boxWidth;c=c.isHeader;c||(f.outside&&
270
+ N+a<aa&&(aa=N+a),!c&&f.outside&&aa+d>fa&&(fa=N+a))});c.forEach(function(c){var a=c.x,d=c.anchorX,b=c.pos,l=c.point.isHeader;b={visibility:"undefined"===typeof b?"hidden":"inherit",x:a,y:b+ca,anchorX:d,anchorY:c.anchorY};if(f.outside&&a<d){var e=N-aa;0<e&&(l||(b.x=a+e,b.anchorX=d+e),l&&(b.x=(fa-aa)/2,b.anchorX=d+e))}c.tt.attr(b)});c=f.container;t=f.renderer;f.outside&&c&&t&&(g=E.getBBox(),t.setSize(g.width+g.x,g.height+g.y,!1),c.style.left=aa+"px",c.style.top=b+"px")};b.prototype.drawTracker=function(){if(this.followPointer||
271
+ !this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var c=this.chart,a=this.label,d=this.shared?c.hoverPoints:c.hoverPoint;if(a&&d){var f={x:0,y:0,width:0,height:0};d=this.getAnchor(d);var b=a.getBBox();d[0]+=c.plotLeft-a.translateX;d[1]+=c.plotTop-a.translateY;f.x=Math.min(0,d[0]);f.y=Math.min(0,d[1]);f.width=0>d[0]?Math.max(Math.abs(d[0]),b.width-d[0]):Math.max(Math.abs(d[0]),b.width);f.height=0>d[1]?Math.max(Math.abs(d[1]),b.height-Math.abs(d[1])):Math.max(Math.abs(d[1]),b.height);
272
+ this.tracker?this.tracker.attr(f):(this.tracker=a.renderer.rect(f).addClass("highcharts-tracker").add(a),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};b.prototype.tooltipFooterHeaderFormatter=function(c,a){var d=c.series,f=d.tooltipOptions,b=d.xAxis,e=b&&b.dateTime;b={isFooter:a,
273
+ labelConfig:c};var m=f.xDateFormat,h=f[a?"footerFormat":"headerFormat"];g(this,"headerFormatter",b,function(a){e&&!m&&C(c.key)&&(m=e.getXDateFormat(c.key,f.dateTimeLabelFormats));e&&m&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(c){h=h.replace("{point."+c+"}","{point."+c+":"+m+"}")});d.chart.styledMode&&(h=this.styledModeFormat(h));a.text=v(h,{point:c,series:d},this.chart)});return b.text};b.prototype.update=function(c){this.destroy();q(!0,this.chart.options.tooltip.userOptions,c);
274
+ this.init(this.chart,q(!0,this.options,c))};b.prototype.updatePosition=function(c){var a=this.chart,d=this.options,f=a.pointer,b=this.getLabel();f=f.getChartPosition();var e=(d.positioner||this.getPosition).call(this,b.width,b.height,c),g=c.plotX+a.plotLeft;c=c.plotY+a.plotTop;if(this.outside){d=d.borderWidth+2*this.distance;this.renderer.setSize(b.width+d,b.height+d,!1);if(1!==f.scaleX||1!==f.scaleY)h(this.container,{transform:"scale("+f.scaleX+", "+f.scaleY+")"}),g*=f.scaleX,c*=f.scaleY;g+=f.left-
275
+ e.x;c+=f.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),g,c)};return b}();"";return b});G(b,"Core/Series/Point.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/FormatUtilities.js"],b["Core/Utilities.js"]],function(b,p,A,E,w){var v=p.animObject,B=A.defaultOptions,k=E.format,t=w.addEvent,n=w.defined,h=w.erase,d=w.extend,a=w.fireEvent,e=w.getNestedProperty,g=w.isArray,x=w.isFunction,C=w.isNumber,r=w.isObject,q=w.merge,z=w.objectEach,
276
+ m=w.pick,f=w.syncTimeout,y=w.removeEvent,c=w.uniqueKey;p=function(){function u(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}u.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},f=c.getGraphicalProps();f.singular.forEach(function(d){c[d]=c[d].animate("dataLabel"===d?{x:c[d].startXPos,y:c[d].startYPos,
277
+ opacity:0}:a)});f.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(d({x:c.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};u.prototype.applyOptions=function(c,a){var f=this.series,b=f.options.pointValKey||f.pointValKey;c=u.prototype.optionsToObject.call(this,c);d(this,c);this.options=this.options?d(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;b&&(this.y=u.prototype.getNestedProperty.call(this,b));this.formatPrefix=(this.isNull=
278
+ m(this.isValid&&!this.isValid(),null===this.x||!C(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&f.xAxis&&f.xAxis.hasNames&&(this.x=f.xAxis.nameToX(this));"undefined"===typeof this.x&&f?this.x="undefined"===typeof a?f.autoIncrement():a:C(c.x)&&f.options.relativeXValue&&(this.x=f.autoIncrement(c.x));return this};u.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)y(a),a.destroyElements();for(m in a)a[m]=null}var a=
279
+ this,d=a.series,b=d.chart;d=d.options.dataSorting;var e=b.hoverPoints,g=v(a.series.chart.renderer.globalAnimation),m;a.legendItem&&b.legend.destroyItem(a);e&&(a.setState(),h(e,a),e.length||(b.hoverPoints=null));if(a===b.hoverPoint)a.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),f(c,g.duration)):c();b.pointCount--};u.prototype.destroyElements=function(c){var a=this;c=a.getGraphicalProps(c);c.singular.forEach(function(c){a[c]=a[c].destroy()});c.plural.forEach(function(c){a[c].forEach(function(c){c.element&&
280
+ c.destroy()});delete a[c]})};u.prototype.firePointEvent=function(c,d,f){var b=this,l=this.series.options;(l.point.events[c]||b.options&&b.options.events&&b.options.events[c])&&b.importEvents();"click"===c&&l.allowPointSelect&&(f=function(c){b.select&&b.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});a(b,c,d,f)};u.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
281
+ ("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};u.prototype.getGraphicalProps=function(c){var a=this,d=[],f={singular:[],plural:[]},b;c=c||{graphic:1,dataLabel:1};c.graphic&&d.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&d.push("dataLabel","dataLabelUpper","connector");for(b=d.length;b--;){var l=d[b];a[l]&&
282
+ f.singular.push(l)}["dataLabel","connector"].forEach(function(d){var b=d+"s";c[d]&&a[b]&&f.plural.push(b)});return f};u.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};u.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?e(c,this.options):this[c]};u.prototype.getZone=function(){var c=this.series,
283
+ a=c.zones;c=c.zoneAxis||"y";var d,f=0;for(d=a[f];this[c]>=d.value;)d=a[++f];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};u.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};u.prototype.init=function(d,f,b){this.series=d;this.applyOptions(f,b);this.id=n(this.id)?this.id:c();this.resolveColor();d.chart.pointCount++;a(this,"afterInit");
284
+ return this};u.prototype.optionsToObject=function(c){var a=this.series,d=a.options.keys,f=d||a.pointArrayMap||["y"],b=f.length,l={},e=0,m=0;if(C(c)||null===c)l[f[0]]=c;else if(g(c))for(!d&&c.length>b&&(a=typeof c[0],"string"===a?l.name=c[0]:"number"===a&&(l.x=c[0]),e++);m<b;)d&&"undefined"===typeof c[e]||(0<f[m].indexOf(".")?u.prototype.setNestedProperty(l,c[e],f[m]):l[f[m]]=c[e]),e++,m++;else"object"===typeof c&&(l=c,c.dataLabels&&(a._hasPointLabels=!0),c.marker&&(a._hasPointMarkers=!0));return l};
285
+ u.prototype.resolveColor=function(){var c=this.series,a=c.chart.styledMode;var d=c.chart.options.chart.colorCount;delete this.nonZonedColor;if(c.options.colorByPoint){if(!a){d=c.options.colors||c.chart.options.colors;var f=d[c.colorCounter];d=d.length}a=c.colorCounter;c.colorCounter++;c.colorCounter===d&&(c.colorCounter=0)}else a||(f=c.color),a=c.colorIndex;this.colorIndex=m(this.options.colorIndex,a);this.color=m(this.options.color,f)};u.prototype.setNestedProperty=function(c,a,d){d.split(".").reduce(function(c,
286
+ d,f,b){c[d]=b.length-1===f?a:r(c[d],!0)?c[d]:{};return c[d]},c);return c};u.prototype.tooltipFormatter=function(c){var a=this.series,d=a.tooltipOptions,f=m(d.valueDecimals,""),b=d.valuePrefix||"",l=d.valueSuffix||"";a.chart.styledMode&&(c=a.chart.tooltip.styledModeFormat(c));(a.pointArrayMap||["y"]).forEach(function(a){a="{point."+a;if(b||l)c=c.replace(RegExp(a+"}","g"),b+a+"}"+l);c=c.replace(RegExp(a+"}","g"),a+":,."+f+"f}")});return k(c,{point:this,series:this.series},a.chart)};u.prototype.update=
287
+ function(c,a,d,f){function b(){e.applyOptions(c);var f=g&&e.hasDummyGraphic;f=null===e.y?!f:f;g&&f&&(e.graphic=g.destroy(),delete e.hasDummyGraphic);r(c,!0)&&(g&&g.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(e.graphic=g.destroy()),c&&c.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));u=e.index;l.updateParallelArrays(e,u);y.data[u]=r(y.data[u],!0)||r(c,!0)?e.options:m(c,y.data[u]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&
288
+ l.hasCartesianSeries&&(h.isDirtyBox=!0);"point"===y.legendType&&(h.isDirtyLegend=!0);a&&h.redraw(d)}var e=this,l=e.series,g=e.graphic,h=l.chart,y=l.options,u;a=m(a,!0);!1===f?b():e.firePointEvent("update",{options:c},b)};u.prototype.remove=function(c,a){this.series.removePoint(this.series.data.indexOf(this),c,a)};u.prototype.select=function(c,a){var d=this,f=d.series,b=f.chart;this.selectedStaging=c=m(c,!d.selected);d.firePointEvent(c?"select":"unselect",{accumulate:a},function(){d.selected=d.options.selected=
289
+ c;f.options.data[f.data.indexOf(d)]=d.options;d.setState(c&&"select");a||b.getSelectedPoints().forEach(function(c){var a=c.series;c.selected&&c!==d&&(c.selected=c.options.selected=!1,a.options.data[a.data.indexOf(c)]=c.options,c.setState(b.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),c.firePointEvent("unselect"))})});delete this.selectedStaging};u.prototype.onMouseOver=function(c){var a=this.series.chart,d=a.pointer;c=c?d.normalize(c):d.getChartCoordinatesFromPoint(this,a.inverted);d.runPointActions(c,
290
+ this)};u.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};u.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=this,a=q(c.series.options.point,c.options).events;c.events=a;z(a,function(a,d){x(a)&&t(c,d,a)});this.hasImportedEvents=!0}};u.prototype.setState=function(c,f){var e=this.series,l=this.state,g=e.options.states[c||
291
+ "normal"]||{},h=B.plotOptions[e.type].marker&&e.options.marker,y=h&&!1===h.enabled,u=h&&h.states&&h.states[c||"normal"]||{},q=!1===u.enabled,k=this.marker||{},r=e.chart,n=h&&e.markerAttribs,z=e.halo,x,F=e.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!f||this.selected&&"select"!==c||!1===g.enabled||c&&(q||y&&!1===u.enabled)||c&&k.states&&k.states[c]&&!1===k.states[c].enabled)){this.state=c;n&&(x=e.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){l&&this.graphic.removeClass("highcharts-point-"+
292
+ l);c&&this.graphic.addClass("highcharts-point-"+c);if(!r.styledMode){var t=e.pointAttribs(this,c);var M=m(r.options.chart.animation,g.animation);e.options.inactiveOtherPoints&&C(t.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:t.opacity},M)}),this.connector&&this.connector.animate({opacity:t.opacity},M));this.graphic.animate(t,M)}x&&this.graphic.animate(x,m(r.options.chart.animation,u.animation,h.animation));F&&F.hide()}else{if(c&&u){l=k.symbol||e.symbol;F&&F.currentSymbol!==
293
+ l&&(F=F.destroy());if(x)if(F)F[f?"animate":"attr"]({x:x.x,y:x.y});else l&&(e.stateMarkerGraphic=F=r.renderer.symbol(l,x.x,x.y,x.width,x.height).add(e.markerGroup),F.currentSymbol=l);!r.styledMode&&F&&"inactive"!==this.state&&F.attr(e.pointAttribs(this,c))}F&&(F[c&&this.isInside?"show":"hide"](),F.element.point=this,F.addClass(this.getClassName(),!0))}g=g.halo;x=(F=this.graphic||F)&&F.visibility||"inherit";g&&g.size&&F&&"hidden"!==x&&!this.isCluster?(z||(e.halo=z=r.renderer.path().add(F.parentGroup)),
294
+ z.show()[f?"animate":"attr"]({d:this.haloPath(g.size)}),z.attr({"class":"highcharts-halo highcharts-color-"+m(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:x,zIndex:-1}),z.point=this,r.styledMode||z.attr(d({fill:this.color||e.color,"fill-opacity":g.opacity},b.filterUserAttributes(g.attributes||{})))):z&&z.point&&z.point.haloPath&&z.animate({d:z.point.haloPath(0)},null,z.hide);a(this,"afterSetState",{state:c})}};u.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
295
+ c,this.plotY-c,2*c,2*c)};return u}();"";return p});G(b,"Core/Pointer.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Tooltip.js"],b["Core/Utilities.js"]],function(b,p,A,E){var v=b.parse,D=p.charts,B=p.noop,k=E.addEvent,t=E.attr,n=E.css,h=E.defined,d=E.extend,a=E.find,e=E.fireEvent,g=E.isNumber,x=E.isObject,C=E.objectEach,r=E.offset,q=E.pick,z=E.splat;b=function(){function b(a,d){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
296
+ !1;this.options=d;this.init(a,d)}b.prototype.applyInactiveState=function(a){var d=[],c;(a||[]).forEach(function(a){c=a.series;d.push(c);c.linkedParent&&d.push(c.linkedParent);c.linkedSeries&&(d=d.concat(c.linkedSeries));c.navigatorSeries&&d.push(c.navigatorSeries)});this.chart.series.forEach(function(c){-1===d.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});
297
+ this.eventsToUnbind=[];p.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);C(a,function(d,c){a[c]=void 0})};b.prototype.drag=function(a){var d=this.chart,c=d.options.chart,f=this.zoomHor,b=this.zoomVert,e=d.plotLeft,g=d.plotTop,m=d.plotWidth,h=d.plotHeight,q=this.mouseDownX||0,k=this.mouseDownY||0,r=x(c.panning)?c.panning&&c.panning.enabled:c.panning,
298
+ n=c.panKey&&a[c.panKey+"Key"],z=a.chartX,t=a.chartY,C=this.selectionMarker;if(!C||!C.touch)if(z<e?z=e:z>e+m&&(z=e+m),t<g?t=g:t>g+h&&(t=g+h),this.hasDragged=Math.sqrt(Math.pow(q-z,2)+Math.pow(k-t,2)),10<this.hasDragged){var p=d.isInsidePlot(q-e,k-g,{visiblePlotOnly:!0});!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!p||n||C||(this.selectionMarker=C=d.renderer.rect(e,g,f?1:m,b?1:h,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||C.attr({fill:c.selectionMarkerFill||
299
+ v("#335cad").setOpacity(.25).get()}));C&&f&&(f=z-q,C.attr({width:Math.abs(f),x:(0<f?0:f)+q}));C&&b&&(f=t-k,C.attr({height:Math.abs(f),y:(0<f?0:f)+k}));p&&!C&&r&&d.pan(a,c.panning)}};b.prototype.dragStart=function(a){var d=this.chart;d.mouseIsDown=a.type;d.cancelClick=!1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(a){var f=this,c=this.chart,b=this.hasPinched;if(this.selectionMarker){var l=this.selectionMarker,m=l.attr?l.attr("x"):l.x,q=l.attr?
300
+ l.attr("y"):l.y,k=l.attr?l.attr("width"):l.width,r=l.attr?l.attr("height"):l.height,z={originalEvent:a,xAxis:[],yAxis:[],x:m,y:q,width:k,height:r},x=!!c.mapView;if(this.hasDragged||b)c.axes.forEach(function(c){if(c.zoomEnabled&&h(c.min)&&(b||f[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&g(m)&&g(q)){var d=c.horiz,e="touchend"===a.type?c.minPixelPadding:0,l=c.toValue((d?m:q)+e);d=c.toValue((d?m+k:q+r)-e);z[c.coll].push({axis:c,min:Math.min(l,d),max:Math.max(l,d)});x=!0}}),x&&e(c,"selection",z,function(a){c.zoom(d(a,
301
+ b?{animation:!1}:null))});g(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());b&&this.scaleGroups()}c&&g(c.index)&&(n(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,d,c){var f=this.chart,b=f.hoverPoint;f=f.tooltip;if(b&&f&&f.isStickyOnContact())return b;var e;a.forEach(function(a){var f=!(a.noSharedTooltip&&d)&&0>a.options.findNearestPointBy.indexOf("y");a=
302
+ a.searchPoint(c,f);if((f=x(a,!0)&&a.series)&&!(f=!x(e,!0))){f=e.distX-a.distX;var b=e.dist-a.dist,l=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);f=0<(0!==f&&d?f:0!==b?b:0!==l?l:e.series.index>a.series.index?-1:1)}f&&(e=a)});return e};b.prototype.getChartCoordinatesFromPoint=function(a,d){var c=a.series,f=c.xAxis;c=c.yAxis;var b=a.shapeArgs;if(f&&c){var e=q(a.clientX,a.plotX),m=a.plotY||0;a.isNode&&b&&g(b.x)&&g(b.y)&&(e=b.x,m=b.y);return d?{chartX:c.len+c.pos-m,chartY:f.len+
303
+ f.pos-e}:{chartX:e+f.pos,chartY:m+c.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,d=r(a);this.chartPosition={left:d.left,top:d.top,scaleX:1,scaleY:1};var c=a.offsetWidth;a=a.offsetHeight;2<c&&2<a&&(this.chartPosition.scaleX=d.width/c,this.chartPosition.scaleY=d.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){d[c.isXAxis?
304
+ "xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return d};b.prototype.getHoverData=function(d,b,c,g,l,m){var f=[];g=!(!g||!d);var h={chartX:m?m.chartX:void 0,chartY:m?m.chartY:void 0,shared:l};e(this,"beforeGetHoverData",h);var k=b&&!b.stickyTracking?[b]:c.filter(function(c){return h.filter?h.filter(c):c.visible&&!(!l&&c.directTouch)&&q(c.options.enableMouseTracking,!0)&&c.stickyTracking});var u=g||!m?d:this.findNearestKDPoint(k,l,m);b=u&&u.series;u&&(l&&!b.noSharedTooltip?
305
+ (k=c.filter(function(c){return h.filter?h.filter(c):c.visible&&!(!l&&c.directTouch)&&q(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),k.forEach(function(c){var d=a(c.points,function(c){return c.x===u.x&&!c.isNull});x(d)&&(c.chart.isBoosting&&(d=c.getPoint(d)),f.push(d))})):f.push(u));h={hoverPoint:u};e(this,"afterGetHoverData",h);return{hoverPoint:h.hoverPoint,hoverSeries:b,hoverPoints:f}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};
306
+ b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!d||!a||d.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+d.index)&&this.inClass(a,"highcharts-tracker")))d.onMouseOut()};b.prototype.inClass=function(a,d){for(var c;a;){if(c=t(a,"class")){if(-1!==c.indexOf(d))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}};b.prototype.init=function(a,d){this.options=
307
+ d;this.chart=a;this.runChartClick=!(!d.chart.events||!d.chart.events.click);this.pinchDown=[];this.lastValidTouch={};A&&(a.tooltip=new A(a,d.tooltip),this.followTouchMove=q(d.tooltip.followTouchMove,!0));this.setDOMEvents()};b.prototype.normalize=function(a,b){var c=a.touches,f=c?c.length?c.item(0):q(c.changedTouches,a.changedTouches)[0]:a;b||(b=this.getChartPosition());c=f.pageX-b.left;f=f.pageY-b.top;c/=b.scaleX;f/=b.scaleY;return d(a,{chartX:Math.round(c),chartY:Math.round(f)})};b.prototype.onContainerClick=
308
+ function(a){var f=this.chart,c=f.hoverPoint;a=this.normalize(a);var b=f.plotLeft,l=f.plotTop;f.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(e(c.series,"click",d(a,{point:c})),f.hoverPoint&&c.firePointEvent("click",a)):(d(a,this.getCoordinates(a)),f.isInsidePlot(a.chartX-b,a.chartY-l,{visiblePlotOnly:!0})&&e(f,"click",a)))};b.prototype.onContainerMouseDown=function(a){var d=1===((a.buttons||a.button)&1);a=this.normalize(a);if(p.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
309
+ if("undefined"===typeof a.button||d)this.zoomOption(a),d&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var d=D[q(b.hoverChartIndex,-1)],c=this.chart.tooltip;c&&c.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),c&&!c.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
310
+ b.prototype.onContainerMouseMove=function(a){var d=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===d.mouseIsDown||this.touchSelect(a))&&this.drag(a);d.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var d=D[q(b.hoverChartIndex,
311
+ -1)];d&&d.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=function(a){var d=this.chart,c=this.chartPosition;a=this.normalize(a,c);var b=d.tooltip;!c||b&&b.isStickyOnContact()||d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||
312
+ this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var d=D[q(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.pinch=function(a){var b=this,c=b.chart,f=b.pinchDown,l=a.touches||[],g=l.length,m=b.lastValidTouch,h=b.hasZoom,k={},r=1===g&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),n={},z=b.selectionMarker;1<g?b.initiated=!0:1===g&&this.followTouchMove&&(b.initiated=!1);h&&b.initiated&&!r&&!1!==a.cancelable&&
313
+ a.preventDefault();[].map.call(l,function(c){return b.normalize(c)});"touchstart"===a.type?([].forEach.call(l,function(c,a){f[a]={chartX:c.chartX,chartY:c.chartY}}),m.x=[f[0].chartX,f[1]&&f[1].chartX],m.y=[f[0].chartY,f[1]&&f[1].chartY],c.axes.forEach(function(a){if(a.zoomEnabled){var d=c.bounds[a.horiz?"h":"v"],b=a.minPixelPadding,f=a.toPixels(Math.min(q(a.options.min,a.dataMin),a.dataMin)),e=a.toPixels(Math.max(q(a.options.max,a.dataMax),a.dataMax)),l=Math.max(f,e);d.min=Math.min(a.pos,Math.min(f,
314
+ e)-b);d.max=Math.max(a.pos+a.len,l+b)}}),b.res=!0):b.followTouchMove&&1===g?this.runPointActions(b.normalize(a)):f.length&&(e(c,"touchpan",{originalEvent:a},function(){z||(b.selectionMarker=z=d({destroy:B,touch:!0},c.plotBox));b.pinchTranslate(f,l,k,z,n,m);b.hasPinched=h;b.scaleGroups(k,n)}),b.res&&(b.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,d,c,b,e,g){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,c,b,e,g);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,c,b,e,g)};b.prototype.pinchTranslateDirection=
315
+ function(a,d,c,b,e,g,m,h){var f=this.chart,l=a?"x":"y",q=a?"X":"Y",k="chart"+q,u=a?"width":"height",r=f["plot"+(a?"Left":"Top")],n=f.inverted,y=f.bounds[a?"h":"v"],z=1===d.length,x=d[0][k],t=!z&&d[1][k];d=function(){"number"===typeof p&&20<Math.abs(x-t)&&(H=h||Math.abs(v-p)/Math.abs(x-t));F=(r-v)/H+x;C=f["plot"+(a?"Width":"Height")]/H};var C,F,H=h||1,v=c[0][k],p=!z&&c[1][k];d();c=F;if(c<y.min){c=y.min;var B=!0}else c+C>y.max&&(c=y.max-C,B=!0);B?(v-=.8*(v-m[l][0]),"number"===typeof p&&(p-=.8*(p-m[l][1])),
316
+ d()):m[l]=[v,p];n||(g[l]=F-r,g[u]=C);g=n?1/H:H;e[u]=C;e[l]=c;b[n?a?"scaleY":"scaleX":"scale"+q]=H;b["translate"+q]=g*r+(v-g*x)};b.prototype.reset=function(a,d){var c=this.chart,b=c.hoverSeries,f=c.hoverPoint,e=c.hoverPoints,g=c.tooltip,m=g&&g.shared?e:f;a&&m&&z(m).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)g&&m&&z(m).length&&(g.refresh(m),g.shared&&e?e.forEach(function(c){c.setState(c.state,!0);c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,
317
+ c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):f&&(f.setState(f.state,!0),c.axes.forEach(function(c){c.crosshair&&f.series[c.coll]===c&&c.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();e&&e.forEach(function(c){c.setState()});if(b)b.onMouseOut();g&&g.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};b.prototype.runPointActions=function(d,e){var c=this.chart,
318
+ f=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,l=f?f.shared:!1,g=e||c.hoverPoint,m=g&&g.series||c.hoverSeries;e=this.getHoverData(g,m,c.series,(!d||"touchmove"!==d.type)&&(!!e||m&&m.directTouch&&this.isDirectTouch),l,d);g=e.hoverPoint;m=e.hoverSeries;var h=e.hoverPoints;e=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;l=l&&m&&!m.noSharedTooltip;if(g&&(g!==c.hoverPoint||f&&f.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===h.indexOf(c)&&c.setState()});if(c.hoverSeries!==
319
+ m)m.onMouseOver();this.applyInactiveState(h);(h||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!g.series)return;c.hoverPoints=h;c.hoverPoint=g;g.firePointEvent("mouseOver");f&&f.refresh(l?h:g,d)}else e&&f&&!f.isHidden&&(g=f.getAnchor([{}],d),c.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=k(c.container.ownerDocument,"mousemove",function(c){var a=D[b.hoverChartIndex];
320
+ if(a)a.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(b){var f=q((b.crosshair||{}).snap,!0),e;f&&((e=c.hoverPoint)&&e.series[b.coll]===b||(e=a(h,function(c){return c.series[b.coll]===b})));e||!f?b.drawCrosshair(d,e):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(b){var f=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||c.mapView)&&(b.group.attr(f),b.markerGroup&&(b.markerGroup.attr(f),
321
+ b.markerGroup.clip(d?c.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(f))});c.clipRect.attr(d||c.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container,c=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(k(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(k(d,"mouseleave",this.onContainerMouseLeave.bind(this)));
322
+ b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=k(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(k(e,"scroll",function(){delete a.chartPosition})),e=e.parentElement;p.hasTouch&&(this.eventsToUnbind.push(k(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(k(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=
323
+ k(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,d=p.charts[q(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,d){var c=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0}))&&!c.openMenu){d&&this.runPointActions(a);
324
+ if("touchmove"===a.type){d=this.pinchDown;var f=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}q(f,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var d=this.chart,c=d.options.chart;d=d.inverted;var b=c.zoomType||"";/touch/.test(a.type)&&(b=q(c.pinchType,b));this.zoomX=
325
+ a=/x/.test(b);this.zoomY=c=/y/.test(b);this.zoomHor=a&&!d||c&&d;this.zoomVert=c&&!d||a&&d;this.hasZoom=a||c};return b}();"";return b});G(b,"Core/MSPointer.js",[b["Core/Globals.js"],b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,p,A){function v(){var d=[];d.item=function(a){return this[a]};a(g,function(a){d.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return d}function w(a,d,b,e){var g=B[p.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!g||
326
+ (g=g.pointer,e(a),g[d]({type:b,target:a.currentTarget,preventDefault:t,touches:v()}))}var D=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function e(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),B=b.charts,k=b.doc,t=b.noop,n=b.win,h=A.addEvent,d=A.css,
327
+ a=A.objectEach,e=A.removeEvent,g={},x=!!n.PointerEvent;return function(a){function r(){return null!==a&&a.apply(this,arguments)||this}D(r,a);r.isRequired=function(){return!(b.hasTouch||!n.PointerEvent&&!n.MSPointerEvent)};r.prototype.batchMSEvents=function(a){a(this.chart.container,x?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,x?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(k,x?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};r.prototype.destroy=
328
+ function(){this.batchMSEvents(e);a.prototype.destroy.call(this)};r.prototype.init=function(b,e){a.prototype.init.call(this,b,e);this.hasZoom&&d(b.container,{"-ms-touch-action":"none","touch-action":"none"})};r.prototype.onContainerPointerDown=function(a){w(a,"onContainerTouchStart","touchstart",function(a){g[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};r.prototype.onContainerPointerMove=function(a){w(a,"onContainerTouchMove","touchmove",function(a){g[a.pointerId]={pageX:a.pageX,
329
+ pageY:a.pageY};g[a.pointerId].target||(g[a.pointerId].target=a.currentTarget)})};r.prototype.onDocumentPointerUp=function(a){w(a,"onDocumentTouchEnd","touchend",function(a){delete g[a.pointerId]})};r.prototype.setDOMEvents=function(){a.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return r}(p)});G(b,"Core/Legend/Legend.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Point.js"],b["Core/Renderer/RendererUtilities.js"],
330
+ b["Core/Utilities.js"]],function(b,p,A,E,w,D){var v=b.animObject,k=b.setAnimation,t=p.format;b=A.isFirefox;var n=A.marginNames;A=A.win;var h=w.distribute,d=D.addEvent,a=D.createElement,e=D.css,g=D.defined,x=D.discardElement,C=D.find,r=D.fireEvent,q=D.isNumber,z=D.merge,m=D.pick,f=D.relativeLength,y=D.stableSort,c=D.syncTimeout;w=D.wrap;D=function(){function b(c,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=
331
+ this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,a)}b.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),
332
+ this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(c){var a=m(c.padding,8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=z(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=m(c.symbolWidth,
333
+ 16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(c,a){var d=this.chart;this.setOptions(z(!0,this.options,c));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;m(a,!0)&&d.redraw();r(this,"afterUpdate")};b.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=c.legendItem,f=c.legendLine,e=c.legendSymbol,g=this.itemHiddenStyle.color;
334
+ d=a?d.itemStyle.color:g;var l=a?c.color||g:g,m=c.options&&c.options.marker,h={fill:l};b&&b.css({fill:d,color:d});f&&f.attr({stroke:l});e&&(m&&e.isMarker&&(h=c.pointAttribs(),a||(h.stroke=h.fill=g)),e.attr(h))}r(this,"afterColorizeItem",{item:c,visible:a})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(c){var a=this,d=this.options,b=d.symbolPadding,f=!d.rtl,e=c._legendItemPos;d=
335
+ e[0];e=e[1];var l=c.checkbox,m=c.legendGroup;m&&m.element&&(b={translateX:f?d:this.legendWidth-d-2*b-4,translateY:e},f=function(){r(a,"afterPositionItem",{item:c})},g(m.translateY)?m.animate(b,void 0,f):(m.attr(b),f()));l&&(l.x=d,l.y=e)};b.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&x(c.checkbox)};b.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(a){["legendItem",
336
+ "legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};b.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,d=this.titleHeight;if(c){var b=c.translateY;this.allItems.forEach(function(f){var g=f.checkbox;if(g){var l=b+d+g.y+(this.scrollOffset||0)+3;e(g,{left:c.translateX+f.checkboxOffset+g.x-20+"px",top:l+"px",display:this.proximate||l>b-6&&l<b+a-6?"":"none"})}},this)}};
337
+ b.prototype.renderTitle=function(){var c=this.options,a=this.padding,d=c.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,a-3,a-4,null,null,null,c.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),b=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(c){var a=
338
+ this.options;c.legendItem.attr({text:a.labelFormat?t(a.labelFormat,c,this.chart):a.labelFormatter.call(c)})};b.prototype.renderItem=function(c){var a=this.chart,d=a.renderer,b=this.options,f=this.symbolWidth,e=b.symbolPadding||0,g=this.itemStyle,l=this.itemHiddenStyle,h="horizontal"===b.layout?m(b.itemDistance,20):0,k=!b.rtl,q=!c.series,r=!q&&c.series.drawLegendSymbol?c.series:c,n=r.options,u=this.createCheckboxForItem&&n&&n.showCheckbox,y=b.useHTML,x=c.options.className,t=c.legendItem;n=f+e+h+(u?
339
+ 20:0);t||(c.legendGroup=d.g("legend-item").addClass("highcharts-"+r.type+"-series highcharts-color-"+c.colorIndex+(x?" "+x:"")+(q?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=t=d.text("",k?f+e:-e,this.baseline||0,y),a.styledMode||t.css(z(c.visible?g:l)),t.attr({align:k?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(a.styledMode?12:g.fontSize,t),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,t.attr("y",this.baseline),
340
+ this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=m(b.symbolWidth,Math.max(this.symbolHeight,16)),n=this.symbolWidth+e+h+(u?20:0),k&&t.attr("x",this.symbolWidth+e))),r.drawLegendSymbol(this,c),this.setItemEvents&&this.setItemEvents(c,t,y));u&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!a.styledMode&&g.width||t.css({width:(b.itemWidth||this.widthOption||a.spacingBox.width)-n+"px"});this.setText(c);a=t.getBBox();
341
+ d=this.fontMetrics&&this.fontMetrics.h||0;c.itemWidth=c.checkboxOffset=b.itemWidth||c.legendItemWidth||a.width+n;this.maxItemWidth=Math.max(this.maxItemWidth,c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=c.itemHeight=Math.round(c.legendItemHeight||(a.height>1.5*d?a.height:d))};b.prototype.layoutItem=function(c){var a=this.options,d=this.padding,b="horizontal"===a.layout,f=c.itemHeight,e=this.itemMarginBottom,g=this.itemMarginTop,l=b?m(a.itemDistance,20):0,h=this.maxLegendWidth;a=a.alignColumns&&
342
+ this.totalItemWidth>h?this.maxItemWidth:c.itemWidth;b&&this.itemX-d+a>h&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+e),this.lastLineHeight=0);this.lastItemY=g+this.itemY+e;this.lastLineHeight=Math.max(f,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=a:(this.itemY+=g+f+e,this.lastLineHeight=f);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(c.checkbox?0:l):a)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(a){var d=
343
+ a&&a.options;a&&m(d.showInLegend,g(d.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===d.legendType?a.data:a)))});r(this,"afterGetAllItems",{allItems:c});return c};b.prototype.getAlignment=function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};b.prototype.adjustMargins=function(c,a){var d=this.chart,b=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(e,
344
+ l){e.test(f)&&!g(c[l])&&(d[n[l]]=Math.max(d[n[l]],d.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*b[l%2?"x":"y"]+m(b.margin,12)+a[l]+(d.titleOffset[l]||0)))})};b.prototype.proximatePositions=function(){var c=this.chart,a=[],d="left"===this.options.align;this.allItems.forEach(function(b){var f;var e=d;if(b.yAxis){b.xAxis.options.reversed&&(e=!e);b.points&&(f=C(e?b.points:b.points.slice(0).reverse(),function(c){return q(c.plotY)}));e=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;
345
+ var g=b.yAxis.top-c.plotTop;b.visible?(f=f?f.plotY:b.yAxis.height,f+=g-.3*e):f=g+b.yAxis.height;a.push({target:f,size:e,item:b})}},this);h(a,c.plotHeight).forEach(function(a){a.item._legendItemPos&&(a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos)})};b.prototype.render=function(){var c=this.chart,a=c.renderer,d=this.options,b=this.padding,e=this.getAllItems(),g=this.group,m=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=f(d.width,c.spacingBox.width-
346
+ b);var h=c.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(h/=2);this.maxLegendWidth=this.widthOption||h;g||(this.group=g=a.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(g),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();y(e,function(c,a){return(c.options&&c.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=h=!!e.length;
347
+ this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+b;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k);k+=b;m||(this.box=m=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(g),m.isNew=!0);c.styledMode||m.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<e&&
348
+ 0<k&&(m[m.isNew?"attr":"animate"](m.crisp.call({},{x:0,y:0,width:e,height:k},m.strokeWidth())),m.isNew=!1);m[h?"show":"hide"]();c.styledMode&&"none"===g.getStyle("display")&&(e=k=0);this.legendWidth=e;this.legendHeight=k;h&&this.align();this.proximate||this.positionItems();r(this,"afterRender")};b.prototype.align=function(c){void 0===c&&(c=this.chart.spacingBox);var a=this.chart,d=this.options,b=c.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?b+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
349
+ 0<a.titleOffset[2]&&(b-=a.titleOffset[2]);b!==c.y&&(c=z(c,{y:b}));this.group.align(z(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,c)};b.prototype.handleOverflow=function(c){var a=this,d=this.chart,b=d.renderer,f=this.options,e=f.y,g="top"===f.verticalAlign,l=this.padding,h=f.maxHeight,k=f.navigation,q=m(k.animation,!0),r=k.arrowSize||12,n=this.pages,u=this.allItems,y=function(c){"number"===typeof c?v.attr({height:c}):v&&(a.clipRect=v.destroy(),
350
+ a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=c?"rect("+l+"px,9999px,"+(l+c)+"px,0)":"auto")},z=function(c){a[c]=b.circle(0,0,1.3*r).translate(r/2,r/2).add(C);d.styledMode||a[c].attr("fill","rgba(0,0,0,0.0001)");return a[c]},x,t;e=d.spacingBox.height+(g?-e:e)-l;var C=this.nav,v=this.clipRect;"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(e/=2);h&&(e=Math.min(e,h));n.length=0;c&&0<e&&c>e&&!1!==k.enabled?(this.clipHeight=x=Math.max(e-20-this.titleHeight-
351
+ l,0),this.currentPage=m(this.currentPage,1),this.fullHeight=c,u.forEach(function(c,a){var d=c._legendItemPos[1],b=Math.round(c.legendItem.getBBox().height),f=n.length;if(!f||d-n[f-1]>x&&(t||d)!==n[f-1])n.push(t||d),f++;c.pageIx=f-1;t&&(u[a-1].pageIx=f-1);a===u.length-1&&d+b-n[f-1]>x&&b<=x&&(n.push(d),c.pageIx=f);d!==t&&(t=d)}),v||(v=a.clipRect=b.clipRect(0,l,9999,0),a.contentGroup.clip(v)),y(x),C||(this.nav=C=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,r,r).add(C),z("upTracker").on("click",
352
+ function(){a.scroll(-1,q)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(k.style),this.pager.add(C),this.down=b.symbol("triangle-down",0,0,r,r).add(C),z("downTracker").on("click",function(){a.scroll(1,q)})),a.scroll(0),c=e):C&&(y(),this.nav=C.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};b.prototype.scroll=function(a,d){var b=this,f=this.chart,e=this.pages,g=e.length,l=this.clipHeight,h=this.options.navigation,q=this.pager,
353
+ n=this.padding,u=this.currentPage+a;u>g&&(u=g);0<u&&("undefined"!==typeof d&&k(d,f),this.nav.attr({translateX:n,translateY:l+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(c){c.attr({"class":1===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),q.attr({text:u+"/"+g}),[this.down,this.downTracker].forEach(function(c){c.attr({x:18+this.pager.getBBox().width,"class":u===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},
354
+ this),f.styledMode||(this.up.attr({fill:1===u?h.inactiveColor:h.activeColor}),this.upTracker.css({cursor:1===u?"default":"pointer"}),this.down.attr({fill:u===g?h.inactiveColor:h.activeColor}),this.downTracker.css({cursor:u===g?"default":"pointer"})),this.scrollOffset=-e[u-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=u,this.positionCheckboxes(),a=v(m(d,f.renderer.globalAnimation,!0)),c(function(){r(b,"afterScroll",{currentPage:u})},a.duration))};b.prototype.setItemEvents=
355
+ function(c,a,d){var b=this,f=b.chart.renderer.boxWrapper,e=c instanceof E,g="highcharts-legend-"+(e?"point":"series")+"-active",l=b.chart.styledMode,m=function(a){b.allItems.forEach(function(d){c!==d&&[d].concat(d.linkedSeries||[]).forEach(function(c){c.setState(a,!e)})})};(d?[a,c.legendSymbol]:[c.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){c.visible&&m("inactive");c.setState("hover");c.visible&&f.addClass(g);l||a.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||
356
+ a.css(z(c.visible?b.itemStyle:b.itemHiddenStyle));m("");f.removeClass(g);c.setState()}).on("click",function(a){var d=function(){c.setVisible&&c.setVisible();m(c.visible?"inactive":"")};f.removeClass(g);a={browserEvent:a};c.firePointEvent?c.firePointEvent("legendItemClick",a,d):r(c,"legendItemClick",a,d)})})};b.prototype.createCheckboxForItem=function(c){c.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:c.selected,defaultChecked:c.selected},this.options.itemCheckboxStyle,
357
+ this.chart.container);d(c.checkbox,"click",function(a){r(c.series||c,"checkboxClick",{checked:a.target.checked,item:c},function(){c.select()})})};return b}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||b)&&w(D.prototype,"positionItem",function(c,a){var d=this,b=function(){a._legendItemPos&&c.call(d,a)};b();d.bubbleLegend||setTimeout(b)});"";return D});G(b,"Core/Series/SeriesRegistry.js",[b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],
358
+ function(b,p,A,E){var v=p.defaultOptions,D=E.error,B=E.extendClass,k=E.merge,t;(function(n){function h(d,a){var b=v.plotOptions||{},g=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=A);a.prototype.type=d;g&&(b[d]=g);n.seriesTypes[d]=a}n.seriesTypes=b.seriesTypes;n.getSeries=function(d,a){void 0===a&&(a={});var b=d.options.chart;b=a.type||b.type||b.defaultSeriesType||"";var g=n.seriesTypes[b];n||D(17,!0,d,{missingModuleFor:b});b=new g;"function"===typeof b.init&&b.init(d,a);return b};
359
+ n.registerSeriesType=h;n.seriesType=function(d,a,b,g,x){var e=v.plotOptions||{};a=a||"";e[d]=k(e[a],b);h(d,B(n.seriesTypes[a]||function(){},g));n.seriesTypes[d].prototype.type=d;x&&(n.seriesTypes[d].prototype.pointClass=B(A,x));return n.seriesTypes[d]}})(t||(t={}));return t});G(b,"Core/Chart/Chart.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/FormatUtilities.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/Legend.js"],b["Core/MSPointer.js"],b["Core/DefaultOptions.js"],
360
+ b["Core/Pointer.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Time.js"],b["Core/Utilities.js"],b["Core/Renderer/HTML/AST.js"]],function(b,p,A,E,w,D,B,k,t,n,h,d,a,e,g){var x=b.animate,C=b.animObject,r=b.setAnimation,q=A.numberFormat,z=E.registerEventOptions,m=w.charts,f=w.doc,y=w.marginNames,c=w.svg,u=w.win,l=k.defaultOptions,v=k.defaultTime,K=h.seriesTypes,H=e.addEvent,I=e.attr,Z=e.cleanRecursively,Q=e.createElement,O=
361
+ e.css,R=e.defined,T=e.discardElement,G=e.erase,J=e.error,ba=e.extend,ha=e.find,L=e.fireEvent,W=e.getStyle,M=e.isArray,X=e.isNumber,P=e.isObject,U=e.isString,S=e.merge,V=e.objectEach,N=e.pick,ca=e.pInt,ea=e.relativeLength,ia=e.removeEvent,aa=e.splat,fa=e.syncTimeout,ja=e.uniqueKey;b=function(){function b(c,a,d){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=
362
+ this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(c,a,d)}b.chart=function(c,a,d){return new b(c,a,d)};b.prototype.getArgs=function(c,a,d){U(c)||c.nodeName?(this.renderTo=c,this.init(a,d)):this.init(c,a)};b.prototype.init=
363
+ function(c,d){var b=c.plotOptions||{};L(this,"init",{args:arguments},function(){var f=S(l,c),e=f.chart;V(f.plotOptions,function(c,a){P(c)&&(c.tooltip=b[a]&&S(b[a].tooltip)||void 0)});f.tooltip.userOptions=c.chart&&c.chart.forExport&&c.tooltip.userOptions||c.tooltip;this.userOptions=c;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d;this.isResizing=0;this.options=f;this.axes=[];this.series=[];this.time=c.time&&Object.keys(c.time).length?new a(c.time):w.time;
364
+ this.numberFormatter=e.numberFormatter||q;this.styledMode=e.styledMode;this.hasCartesianSeries=e.showAxes;this.index=m.length;m.push(this);w.chartCount++;z(this,e);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;L(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(c){var a=this.options.chart;a=c.type||a.type||a.defaultSeriesType;var d=K[a];d||J(17,!0,this,{missingModuleFor:a});a=new d;"function"===typeof a.init&&a.init(this,c);return a};b.prototype.setSeriesData=
365
+ function(){this.getSeriesOrderByLinks().forEach(function(c){c.points||c.data||!c.enabledDataSorting||c.setData(c.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(c,a){return c.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-c.linkedSeries.length:0})};b.prototype.orderSeries=function(c){var a=this.series;c=c||0;for(var d=a.length;c<d;++c)a[c]&&(a[c].index=c,a[c].name=a[c].getName())};b.prototype.isInsidePlot=function(c,a,d){void 0===
366
+ d&&(d={});var b=this.inverted,f=this.plotBox,e=this.plotLeft,g=this.plotTop,m=this.scrollablePlotBox,l=0;var h=0;d.visiblePlotOnly&&this.scrollingContainer&&(h=this.scrollingContainer,l=h.scrollLeft,h=h.scrollTop);var k=d.series;f=d.visiblePlotOnly&&m||f;m=d.inverted?a:c;a=d.inverted?c:a;c={x:m,y:a,isInsidePlot:!0};if(!d.ignoreX){var q=k&&(b?k.yAxis:k.xAxis)||{pos:e,len:Infinity};m=d.paneCoordinates?q.pos+m:e+m;m>=Math.max(l+e,q.pos)&&m<=Math.min(l+e+f.width,q.pos+q.len)||(c.isInsidePlot=!1)}!d.ignoreY&&
367
+ c.isInsidePlot&&(b=k&&(b?k.xAxis:k.yAxis)||{pos:g,len:Infinity},d=d.paneCoordinates?b.pos+a:g+a,d>=Math.max(h+g,b.pos)&&d<=Math.min(h+g+f.height,b.pos+b.len)||(c.isInsidePlot=!1));L(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){L(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,b=this.pointer,f=this.legend,e=this.userOptions.legend,g=this.renderer,m=g.isHidden(),l=[],h=this.isDirtyBox,k=this.isDirtyLegend;this.setResponsive&&
368
+ this.setResponsive(!1);r(this.hasRendered?c:!1,this);m&&this.temporaryDisplay();this.layOutTitles();for(c=d.length;c--;){var q=d[c];if(q.options.stacking||q.options.centerInCategory){var n=!0;if(q.isDirty){var u=!0;break}}}if(u)for(c=d.length;c--;)q=d[c],q.options.stacking&&(q.isDirty=!0);d.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),k=!0):e&&(e.labelFormatter||e.labelFormat)&&(k=!0));c.isDirtyData&&L(c,"updatedData")});k&&f&&
369
+ f.options.enabled&&(f.render(),this.isDirtyLegend=!1);n&&this.getStacks();a.forEach(function(c){c.updateNames();c.setScale()});this.getMargins();a.forEach(function(c){c.isDirty&&(h=!0)});a.forEach(function(c){var a=c.min+","+c.max;c.extKey!==a&&(c.extKey=a,l.push(function(){L(c,"afterSetExtremes",ba(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(h||n)&&c.redraw()});h&&this.drawChartBox();L(this,"predraw");d.forEach(function(c){(h||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});b&&b.reset(!0);
370
+ g.draw();L(this,"redraw");L(this,"render");m&&this.temporaryDisplay(!0);l.forEach(function(c){c.call()})};b.prototype.get=function(c){function a(a){return a.id===c||a.options&&a.options.id===c}for(var d=this.series,b=ha(this.axes,a)||ha(this.series,a),f=0;!b&&f<d.length;f++)b=ha(d[f].points||[],a);return b};b.prototype.getAxes=function(){var c=this,a=this.options,d=a.xAxis=aa(a.xAxis||{});a=a.yAxis=aa(a.yAxis||{});L(this,"getAxes");d.forEach(function(c,a){c.index=a;c.isX=!0});a.forEach(function(c,
371
+ a){c.index=a});d.concat(a).forEach(function(a){new p(c,a)});L(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){return this.series.reduce(function(c,a){a.getPointsCollection().forEach(function(a){N(a.selectedStaging,a.selected)&&c.push(a)});return c},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(c){return c.selected})};b.prototype.setTitle=function(c,a,d){this.applyDescription("title",c);this.applyDescription("subtitle",a);this.applyDescription("caption",
372
+ void 0);this.layOutTitles(d)};b.prototype.applyDescription=function(c,a){var d=this,b="title"===c?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};b=this.options[c]=S(!this.styledMode&&{style:b},this.options[c],a);var f=this[c];f&&a&&(this[c]=f=f.destroy());b&&!f&&(f=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+c,zIndex:b.zIndex||4}).add(),f.update=function(a){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[c]](a)},
373
+ this.styledMode||f.css(b.style),this[c]=f)};b.prototype.layOutTitles=function(c){var a=[0,0,0],d=this.renderer,b=this.spacingBox;["title","subtitle","caption"].forEach(function(c){var f=this[c],e=this.options[c],g=e.verticalAlign||"top";c="title"===c?"top"===g?-3:0:"top"===g?a[0]+2:0;var m;if(f){this.styledMode||(m=e.style&&e.style.fontSize);m=d.fontMetrics(m,f).b;f.css({width:(e.width||b.width+(e.widthAdjust||0))+"px"});var l=Math.round(f.getBBox(e.useHTML).height);f.align(ba({y:"bottom"===g?m:c+
374
+ m,height:l},e),!1,"spacingBox");e.floating||("top"===g?a[0]=Math.ceil(a[0]+l):"bottom"===g&&(a[2]=Math.ceil(a[2]+l)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;L(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&N(c,!0)&&
375
+ this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var c=this.options.chart,a=c.width;c=c.height;var d=this.renderTo;R(a)||(this.containerWidth=W(d,"width"));R(c)||(this.containerHeight=W(d,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,ea(c,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(c){var a=this.renderTo;if(c)for(;a&&a.style;)a.hcOrigStyle&&(O(a,a.hcOrigStyle),delete a.hcOrigStyle),
376
+ a.hcOrigDetached&&(f.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){f.body.contains(a)||a.parentNode||(a.hcOrigDetached=!0,f.body.appendChild(a));if("none"===W(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},c={display:"block",overflow:"hidden"},a!==this.renderTo&&(c.height=0),O(a,c),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===f.body)break}};b.prototype.setClassName=
377
+ function(c){this.container.className="highcharts-container "+(c||"")};b.prototype.getContainer=function(){var a=this.options,b=a.chart,e=ja(),l,h=this.renderTo;h||(this.renderTo=h=b.renderTo);U(h)&&(this.renderTo=h=f.getElementById(h));h||J(13,!0,this);var k=ca(I(h,"data-highcharts-chart"));X(k)&&m[k]&&m[k].hasRendered&&m[k].destroy();I(h,"data-highcharts-chart",this.index);h.innerHTML=g.emptyHTML;b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();k=this.chartWidth;var q=this.chartHeight;
378
+ O(h,{overflow:"hidden"});this.styledMode||(l=ba({position:"relative",overflow:"hidden",width:k+"px",height:q+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=e=Q("div",{id:e},l,h);this._cursor=e.style.cursor;this.renderer=new (b.renderer||!c?n.getRendererType(b.renderer):d)(e,k,q,void 0,b.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);r(void 0,
379
+ this);this.setClassName(b.className);if(this.styledMode)for(var u in a.defs)this.renderer.definition(a.defs[u]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;L(this,"afterGetContainer")};b.prototype.getMargins=function(c){var a=this.spacing,d=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!R(d[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+a[0]));b[2]&&!R(d[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,
380
+ a);L(this,"getMargins");c||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var c=this,a=c.axisOffset=[0,0,0,0],d=c.colorAxis,b=c.margin,f=function(c){c.forEach(function(c){c.visible&&c.getOffset()})};c.hasCartesianSeries?f(c.axes):d&&d.length&&f(d);y.forEach(function(d,f){R(b[f])||(c[d]+=a[f])});c.setChartSize()};b.prototype.reflow=function(c){var a=this,d=a.options.chart,b=a.renderTo,g=R(d.width)&&R(d.height),m=d.width||W(b,"width");d=d.height||W(b,"height");b=c?c.target:u;delete a.pointer.chartPosition;
381
+ if(!g&&!a.isPrinting&&m&&d&&(b===u||b===f)){if(m!==a.containerWidth||d!==a.containerHeight)e.clearTimeout(a.reflowTimeout),a.reflowTimeout=fa(function(){a.container&&a.setSize(void 0,void 0,!1)},c?100:0);a.containerWidth=m;a.containerHeight=d}};b.prototype.setReflow=function(c){var a=this;!1===c||this.unbindReflow?!1===c&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=H(u,"resize",function(c){a.options&&a.reflow(c)}),H(this,"destroy",this.unbindReflow))};b.prototype.setSize=
382
+ function(c,a,d){var b=this,f=b.renderer;b.isResizing+=1;r(d,b);d=f.globalAnimation;b.oldChartHeight=b.chartHeight;b.oldChartWidth=b.chartWidth;"undefined"!==typeof c&&(b.options.chart.width=c);"undefined"!==typeof a&&(b.options.chart.height=a);b.getChartSize();b.styledMode||(d?x:O)(b.container,{width:b.chartWidth+"px",height:b.chartHeight+"px"},d);b.setChartSize(!0);f.setSize(b.chartWidth,b.chartHeight,d);b.axes.forEach(function(c){c.isDirty=!0;c.setScale()});b.isDirtyLegend=!0;b.isDirtyBox=!0;b.layOutTitles();
383
+ b.getMargins();b.redraw(d);b.oldChartHeight=null;L(b,"resize");fa(function(){b&&L(b,"endResize",null,function(){--b.isResizing})},C(d).duration)};b.prototype.setChartSize=function(c){var a=this.inverted,d=this.renderer,b=this.chartWidth,f=this.chartHeight,e=this.options.chart,g=this.spacing,m=this.clipOffset,l,h,k,q;this.plotLeft=l=Math.round(this.plotLeft);this.plotTop=h=Math.round(this.plotTop);this.plotWidth=k=Math.max(0,Math.round(b-l-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(f-
384
+ h-this.marginBottom));this.plotSizeX=a?q:k;this.plotSizeY=a?k:q;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:g[3],y:g[0],width:b-g[3]-g[1],height:f-g[0]-g[2]};this.plotBox=d.plotBox={x:l,y:h,width:k,height:q};a=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(a,m[3])/2);f=Math.ceil(Math.max(a,m[0])/2);this.clipBox={x:b,y:f,width:Math.floor(this.plotSizeX-Math.max(a,m[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,m[2])/2-f))};c||(this.axes.forEach(function(c){c.setAxisSize();
385
+ c.setAxisTranslation()}),d.alignElements());L(this,"afterSetChartSize",{skipAxes:c})};b.prototype.resetMargins=function(){L(this,"resetMargins");var c=this,a=c.options.chart;["margin","spacing"].forEach(function(d){var b=a[d],f=P(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,e){c[d][e]=N(a[d+b],f[e])})});y.forEach(function(a,d){c[a]=N(c.margin[d],c.spacing[d])});c.axisOffset=[0,0,0,0];c.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var c=this.options.chart,a=this.renderer,
386
+ d=this.chartWidth,b=this.chartHeight,f=this.styledMode,e=this.plotBGImage,g=c.backgroundColor,m=c.plotBackgroundColor,l=c.plotBackgroundImage,h=this.plotLeft,k=this.plotTop,q=this.plotWidth,r=this.plotHeight,n=this.plotBox,u=this.clipRect,y=this.clipBox,z=this.chartBackground,x=this.plotBackground,t=this.plotBorder,C,v="animate";z||(this.chartBackground=z=a.rect().addClass("highcharts-background").add(),v="attr");if(f)var M=C=z.strokeWidth();else{M=c.borderWidth||0;C=M+(c.shadow?8:0);g={fill:g||"none"};
387
+ if(M||z["stroke-width"])g.stroke=c.borderColor,g["stroke-width"]=M;z.attr(g).shadow(c.shadow)}z[v]({x:C/2,y:C/2,width:d-C-M%2,height:b-C-M%2,r:c.borderRadius});v="animate";x||(v="attr",this.plotBackground=x=a.rect().addClass("highcharts-plot-background").add());x[v](n);f||(x.attr({fill:m||"none"}).shadow(c.plotShadow),l&&(e?(l!==e.attr("href")&&e.attr("href",l),e.animate(n)):this.plotBGImage=a.image(l,h,k,q,r).add()));u?u.animate({width:y.width,height:y.height}):this.clipRect=a.clipRect(y);v="animate";
388
+ t||(v="attr",this.plotBorder=t=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f||t.attr({stroke:c.plotBorderColor,"stroke-width":c.plotBorderWidth||0,fill:"none"});t[v](t.crisp({x:h,y:k,width:q,height:r},-t.strokeWidth()));this.isDirtyBox=!1;L(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var c=this,a=c.options.chart,d=c.options.series,b,f,e;["inverted","angular","polar"].forEach(function(g){f=K[a.type||a.defaultSeriesType];e=a[g]||f&&f.prototype[g];for(b=d&&
389
+ d.length;!e&&b--;)(f=K[d[b].type])&&f.prototype[g]&&(e=!0);c[g]=e})};b.prototype.linkSeries=function(){var c=this,a=c.series;a.forEach(function(c){c.linkedSeries.length=0});a.forEach(function(a){var d=a.options.linkedTo;U(d)&&(d=":previous"===d?c.series[a.index-1]:c.get(d))&&d.linkedParent!==a&&(d.linkedSeries.push(a),a.linkedParent=d,d.enabledDataSorting&&a.setDataSortingOptions(),a.visible=N(a.options.visible,d.options.visible,a.visible))});L(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(c){c.translate();
390
+ c.render()})};b.prototype.renderLabels=function(){var c=this,a=c.options.labels;a.items&&a.items.forEach(function(d){var b=ba(a.style,d.style),f=ca(b.left)+c.plotLeft,e=ca(b.top)+c.plotTop+12;delete b.left;delete b.top;c.renderer.text(d.html,f,e).attr({zIndex:2}).css(b).add()})};b.prototype.render=function(){var c=this.axes,a=this.colorAxis,d=this.renderer,b=this.options,f=function(c){c.forEach(function(c){c.visible&&c.render()})},e=0;this.setTitle();this.legend=new D(this,b.legend);this.getStacks&&
391
+ this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;c.some(function(c){if(c.horiz&&c.visible&&c.options.labels.enabled&&c.series.length)return e=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-e,0);c.forEach(function(c){c.setScale()});this.getAxisMargins();var m=1.1<b/this.plotWidth,l=1.05<g/this.plotHeight;if(m||l)c.forEach(function(c){(c.horiz&&m||!c.horiz&&l)&&c.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(c):a&&a.length&&f(a);
392
+ this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(c){var a=this,d=S(!0,this.options.credits,c);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(u.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),a.styledMode||
393
+ this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(c){a.credits=a.credits.destroy();a.addCredits(c)})};b.prototype.destroy=function(){var c=this,a=c.axes,d=c.series,b=c.container,f=b&&b.parentNode,e;L(c,"destroy");c.renderer.forExport?G(m,c):m[c.index]=void 0;w.chartCount--;c.renderTo.removeAttribute("data-highcharts-chart");ia(c);for(e=a.length;e--;)a[e]=a[e].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(e=d.length;e--;)d[e]=
394
+ d[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var d=c[a];d&&d.destroy&&(c[a]=d.destroy())});b&&(b.innerHTML=g.emptyHTML,ia(b),f&&T(b));V(c,function(a,d){delete c[d]})};b.prototype.firstRender=function(){var c=this,a=c.options;if(!c.isReadyToRender||c.isReadyToRender()){c.getContainer();c.resetMargins();c.setChartSize();c.propFromSeries();
395
+ c.getAxes();(M(a.series)?a.series:[]).forEach(function(a){c.initSeries(a)});c.linkSeries();c.setSeriesData();L(c,"beforeRender");t&&(B.isRequired()?c.pointer=new B(c,a):c.pointer=new t(c,a));c.render();c.pointer.getChartPosition();if(!c.renderer.imgCount&&!c.hasLoaded)c.onload();c.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(c){c&&"undefined"!==typeof this.index&&c.apply(this,[this])},this);L(this,"load");L(this,"render");R(this.index)&&
396
+ this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};b.prototype.addSeries=function(c,a,d){var b=this,f;c&&(a=N(a,!0),L(b,"addSeries",{options:c},function(){f=b.initSeries(c);b.isDirtyLegend=!0;b.linkSeries();f.enabledDataSorting&&f.setData(c.data,!1);L(b,"afterAddSeries",{series:f});a&&b.redraw(d)}));return f};b.prototype.addAxis=function(c,a,d,b){return this.createAxis(a?"xAxis":"yAxis",{axis:c,redraw:d,animation:b})};b.prototype.addColorAxis=function(c,a,d){return this.createAxis("colorAxis",
397
+ {axis:c,redraw:a,animation:d})};b.prototype.createAxis=function(c,a){c=new p(this,S(a.axis,{index:this[c].length,isX:"xAxis"===c}));N(a.redraw,!0)&&this.redraw(a.animation);return c};b.prototype.showLoading=function(c){var a=this,d=a.options,b=d.loading,f=function(){e&&O(e,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},e=a.loadingDiv,m=a.loadingSpan;e||(a.loadingDiv=e=Q("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));
398
+ m||(a.loadingSpan=m=Q("span",{className:"highcharts-loading-inner"},null,e),H(a,"redraw",f));e.className="highcharts-loading";g.setElementHTML(m,N(c,d.lang.loading,""));a.styledMode||(O(e,ba(b.style,{zIndex:10})),O(m,b.labelStyle),a.loadingShown||(O(e,{opacity:0,display:""}),x(e,{opacity:b.style.opacity||.5},{duration:b.showDuration||0})));a.loadingShown=!0;f()};b.prototype.hideLoading=function(){var c=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||
399
+ x(a,{opacity:0},{duration:c.loading.hideDuration||100,complete:function(){O(a,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(c,d,b,f){var e=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},m=c.isResponsiveOptions,l=[],h,k;L(e,"update",{options:c});m||e.setResponsive(!1,!0);c=Z(c,e.options);e.userOptions=S(e.userOptions,c);var q=c.chart;if(q){S(!0,e.options.chart,q);"className"in q&&e.setClassName(q.className);"reflow"in q&&e.setReflow(q.reflow);
400
+ if("inverted"in q||"polar"in q||"type"in q){e.propFromSeries();var r=!0}"alignTicks"in q&&(r=!0);"events"in q&&z(this,q);V(q,function(c,a){-1!==e.propsRequireUpdateSeries.indexOf("chart."+a)&&(h=!0);-1!==e.propsRequireDirtyBox.indexOf(a)&&(e.isDirtyBox=!0);-1!==e.propsRequireReflow.indexOf(a)&&(m?e.isDirtyBox=!0:k=!0)});!e.styledMode&&q.style&&e.renderer.setStyle(e.options.chart.style||{})}!e.styledMode&&c.colors&&(this.options.colors=c.colors);c.time&&(this.time===v&&(this.time=new a(c.time)),S(!0,
401
+ e.options.time,c.time));V(c,function(a,d){if(e[d]&&"function"===typeof e[d].update)e[d].update(a,!1);else if("function"===typeof e[g[d]])e[g[d]](a);else"colors"!==d&&-1===e.collectionsWithUpdate.indexOf(d)&&S(!0,e.options[d],c[d]);"chart"!==d&&-1!==e.propsRequireUpdateSeries.indexOf(d)&&(h=!0)});this.collectionsWithUpdate.forEach(function(a){if(c[a]){var d=[];e[a].forEach(function(c,a){c.options.isInternal||d.push(N(c.options.index,a))});aa(c[a]).forEach(function(c,f){var g=R(c.id),m;g&&(m=e.get(c.id));
402
+ !m&&e[a]&&(m=e[a][d?d[f]:f])&&g&&R(m.options.id)&&(m=void 0);m&&m.coll===a&&(m.update(c,!1),b&&(m.touched=!0));!m&&b&&e.collectionsWithInit[a]&&(e.collectionsWithInit[a][0].apply(e,[c].concat(e.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});b&&e[a].forEach(function(c){c.touched||c.options.isInternal?delete c.touched:l.push(c)})}});l.forEach(function(c){c.chart&&c.remove&&c.remove(!1)});r&&e.axes.forEach(function(c){c.update({},!1)});h&&e.getSeriesOrderByLinks().forEach(function(c){c.chart&&
403
+ c.update({},!1)},this);r=q&&q.width;q=q&&(U(q.height)?ea(q.height,r||e.chartWidth):q.height);k||X(r)&&r!==e.chartWidth||X(q)&&q!==e.chartHeight?e.setSize(r,q,f):N(d,!0)&&e.redraw(f);L(e,"afterUpdate",{options:c,redraw:d,animation:f})};b.prototype.setSubtitle=function(c,a){this.applyDescription("subtitle",c);this.layOutTitles(a)};b.prototype.setCaption=function(c,a){this.applyDescription("caption",c);this.layOutTitles(a)};b.prototype.showResetZoom=function(){function c(){a.zoomOut()}var a=this,d=l.lang,
404
+ b=a.options.chart.resetZoomButton,f=b.theme,e=f.states,g="chart"===b.relativeTo||"spacingBox"===b.relativeTo?null:"scrollablePlotBox";L(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(d.resetZoom,null,null,c,f,e&&e.hover).attr({align:b.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,!1,g)});L(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){L(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=
405
+ function(c){var a=this,d=a.pointer,b=a.inverted?d.mouseDownX:d.mouseDownY,f=!1,e;!c||c.resetSelection?(a.axes.forEach(function(c){e=c.zoom()}),d.initiated=!1):c.xAxis.concat(c.yAxis).forEach(function(c){var g=c.axis,m=a.inverted?g.left:g.top,l=a.inverted?m+g.width:m+g.height,h=g.isXAxis,k=!1;if(!h&&b>=m&&b<=l||h||!R(b))k=!0;d[h?"zoomX":"zoomY"]&&k&&(e=g.zoom(c.min,c.max),g.displayBtn&&(f=!0))});var g=a.resetZoomButton;f&&!g?a.showResetZoom():!f&&P(g)&&(a.resetZoomButton=g.destroy());e&&a.redraw(N(a.options.chart.animation,
406
+ c&&c.animation,100>a.pointCount))};b.prototype.pan=function(c,a){var d=this,b=d.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var f=d.options.chart,e=d.options.mapNavigation&&d.options.mapNavigation.enabled;f&&f.panning&&(f.panning=a);var g=a.type,m;L(this,"pan",{originalEvent:c},function(){b&&b.forEach(function(c){c.setState()});var a=d.xAxis;"xy"===g?a=a.concat(d.yAxis):"y"===g&&(a=d.yAxis);var f={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var b=a.horiz,
407
+ l=c[b?"chartX":"chartY"];b=b?"mouseDownX":"mouseDownY";var h=d[b],k=a.minPointOffset||0,q=a.reversed&&!d.inverted||!a.reversed&&d.inverted?-1:1,r=a.getExtremes(),n=a.toValue(h-l,!0)+k*q,u=a.toValue(h+a.len-l,!0)-(k*q||a.isXAxis&&a.pointRangePadding||0),y=u<n;q=a.hasVerticalPanning();h=y?u:n;n=y?n:u;var z=a.panningState;!q||a.isXAxis||z&&!z.isDirty||a.series.forEach(function(c){var a=c.getProcessedData(!0);a=c.getExtremes(a.yData,!0);z||(z={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});X(a.dataMin)&&
408
+ X(a.dataMax)&&(z.startMin=Math.min(N(c.options.threshold,Infinity),a.dataMin,z.startMin),z.startMax=Math.max(N(c.options.threshold,-Infinity),a.dataMax,z.startMax))});q=Math.min(N(z&&z.startMin,r.dataMin),k?r.min:a.toValue(a.toPixels(r.min)-a.minPixelPadding));u=Math.max(N(z&&z.startMax,r.dataMax),k?r.max:a.toValue(a.toPixels(r.max)+a.minPixelPadding));a.panningState=z;a.isOrdinal||(k=q-h,0<k&&(n+=k,h=q),k=n-u,0<k&&(n=u,h-=k),a.series.length&&h!==r.min&&n!==r.max&&h>=q&&n<=u&&(a.setExtremes(h,n,!1,
409
+ !1,{trigger:"pan"}),d.resetZoomButton||e||h===q||n===u||!g.match("y")||(d.showResetZoom(),a.displayBtn=!1),m=!0),f[b]=l)}});V(f,function(c,a){d[a]=c});m&&d.redraw(!1);O(d.container,{cursor:"move"})})};return b}();ba(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
410
+ propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});G(b,"Core/Legend/LegendSymbol.js",[b["Core/Utilities.js"]],function(b){var v=b.merge,A=b.pick,E;(function(b){b.drawLineMarker=function(b){var p=this.options,k=b.symbolWidth,t=b.symbolHeight,n=t/2,h=this.chart.renderer,
411
+ d=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var a={},e=p.marker;this.chart.styledMode||(a={"stroke-width":p.lineWidth||0},p.dashStyle&&(a.dashstyle=p.dashStyle));this.legendLine=h.path([["M",0,b],["L",k,b]]).addClass("highcharts-graph").attr(a).add(d);e&&!1!==e.enabled&&k&&(p=Math.min(A(e.radius,n),n),0===this.symbol.indexOf("url")&&(e=v(e,{width:t,height:t}),p=0),this.legendSymbol=k=h.symbol(this.symbol,k/2-p,b-p,2*p,2*p,e).addClass("highcharts-point").add(d),k.isMarker=!0)};b.drawRectangle=
412
+ function(b,v){var k=b.symbolHeight,t=b.options.squareSymbol;v.legendSymbol=this.chart.renderer.rect(t?(b.symbolWidth-k)/2:0,b.baseline-k+1,t?k:b.symbolWidth,k,A(b.options.symbolRadius,k/2)).addClass("highcharts-point").attr({zIndex:3}).add(v.legendGroup)}})(E||(E={}));return E});G(b,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},
413
413
  hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},
414
- hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});F(b,"Core/Series/Series.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Point.js"],b["Core/Series/SeriesDefaults.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],
415
- b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r,m){var h=b.animObject,a=b.setAnimation,c=u.defaultOptions,e=A.registerEventOptions,g=B.hasTouch,C=B.svg,y=B.win,t=k.seriesTypes,p=m.addEvent,D=m.arrayMax,n=m.arrayMin,f=m.clamp,q=m.cleanRecursively,d=m.correctFloat,z=m.defined,l=m.erase,x=m.error,K=m.extend,I=m.find,H=m.fireEvent,N=m.getNestedProperty,aa=m.isArray,Q=m.isNumber,S=m.isString,X=m.merge,F=m.objectEach,J=m.pick,ca=m.removeEvent,ha=m.splat,M=m.syncTimeout;b=function(){function b(){this.zones=
416
- this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(a,c){H(this,"init",{options:c});var d=this,b=a.series;this.eventsToUnbind=[];d.chart=a;d.options=d.setOptions(c);c=d.options;d.linkedSeries=[];d.bindAxes();K(d,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});e(this,c);var f=
417
- c.events;if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();d.parallelArrays.forEach(function(a){d[a+"Data"]||(d[a+"Data"]=[])});d.isCartesian&&(a.hasCartesianSeries=!0);var g;b.length&&(g=b[b.length-1]);d._i=J(g&&g._i,-1)+1;d.opacity=d.options.opacity;a.orderSeries(this.insert(b));c.dataSorting&&c.dataSorting.enabled?d.setDataSortingOptions():d.points||d.data||d.setData(c.data,!1);H(this,"afterInit")};b.prototype.is=function(a){return t[a]&&
418
- this instanceof t[a]};b.prototype.insert=function(a){var c=this.options.index,d;if(Q(c)){for(d=a.length;d--;)if(c>=J(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return J(d,a.length-1)};b.prototype.bindAxes=function(){var a=this,c=a.options,d=a.chart,b;H(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var f=0;d[e].forEach(function(d){b=d.options;if(c[e]===f&&!b.isInternal||"undefined"!==typeof c[e]&&c[e]===b.id||"undefined"===
419
- typeof c[e]&&0===b.index)a.insert(d.series),a[e]=d,d.isDirty=!0;b.isInternal||f++});a[e]||a.optionalAxis===e||x(18,!0,d)})});H(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,c){var d=a.series,b=arguments,e=Q(c)?function(b){var e="y"===b&&d.toYData?d.toYData(a):a[b];d[b+"Data"][c]=e}:function(a){Array.prototype[c].apply(d[a+"Data"],Array.prototype.slice.call(b,2))};d.parallelArrays.forEach(e)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
420
- "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,d=c.pointIntervalUnit,b=c.relativeXValue,e=this.chart.time,f=this.xIncrement,g;f=J(f,c.pointStart,0);this.pointInterval=g=J(this.pointInterval,c.pointInterval,1);b&&Q(a)&&(g*=a);d&&(c=new e.Date(f),"day"===d?e.set("Date",c,e.get("Date",c)+g):"month"===d?e.set("Month",c,e.get("Month",c)+g):"year"===d&&e.set("FullYear",c,e.get("FullYear",c)+g),g=c.getTime()-f);if(b&&
421
- Q(a))return f+g;this.xIncrement=f+g;return f};b.prototype.setDataSortingOptions=function(){var a=this.options;K(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});z(a.pointRange)||(a.pointRange=1)};b.prototype.setOptions=function(a){var d=this.chart,b=d.options,e=b.plotOptions,f=d.userOptions||{};a=X(a);d=d.styledMode;var g={plotOptions:e,userOptions:a};H(this,"setOptions",g);var h=g.plotOptions[this.type],l=f.plotOptions||{};this.userOptions=g.userOptions;f=X(h,e.series,f.plotOptions&&
422
- f.plotOptions[this.type],a);this.tooltipOptions=X(c.tooltip,c.plotOptions.series&&c.plotOptions.series.tooltip,c.plotOptions[this.type].tooltip,b.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=J(a.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===h.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;e=this.zones=(f.zones||[]).slice();
423
- !f.negativeColor&&!f.negativeFillColor||f.zones||(b={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},d||(b.color=f.negativeColor,b.fillColor=f.negativeFillColor),e.push(b));e.length&&z(e[e.length-1].value)&&e.push(d?{}:{color:this.color,fillColor:this.fillColor});H(this,"afterSetOptions",{options:f});return f};b.prototype.getName=function(){return J(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(a,c,d){var b=this.chart,e=this.userOptions,
424
- f=a+"Index",g=a+"Counter",h=d?d.length:J(b.options.chart[a+"Count"],b[a+"Count"]);if(!c){var l=J(e[f],e["_"+f]);z(l)||(b.series.length||(b[g]=0),e["_"+f]=l=b[g]%h,b[g]+=1);d&&(c=d[l])}"undefined"!==typeof l&&(this[f]=l);this[a]=c};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||c.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?
425
- this.points:this.data)||[]};b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var d=a.id,b=a.x,e=this.points,f=this.options.dataSorting,g,h;if(d)f=this.chart.get(d),f instanceof E&&(g=f);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(g=function(c){return!c.touched&&c.index===a.index},f&&f.matchByName?g=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&
426
- (g=function(c){return!c.touched&&c.options.x===a.x}),g=I(e,g),!g)return;if(g){var l=g&&g.index;"undefined"!==typeof l&&(h=!0)}"undefined"===typeof l&&Q(b)&&(l=this.xData.indexOf(b,c));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!h&&Q(l)&&e[l]&&e[l].touched&&(l=void 0);return l};b.prototype.updateData=function(a,c){var d=this.options,b=d.dataSorting,e=this.points,f=[],g=this.requireSorting,h=a.length===e.length,l,n,q,p=!0;this.xIncrement=null;a.forEach(function(a,
427
- c){var n=z(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{},p=n.x;if(n.id||Q(p)){if(n=this.findPointIndex(n,q),-1===n||"undefined"===typeof n?f.push(a):e[n]&&a!==d.data[n]?(e[n].update(a,!1,null,!1),e[n].touched=!0,g&&(q=n+1)):e[n]&&(e[n].touched=!0),!h||c!==n||b&&b.enabled||this.hasDerivedData)l=!0}else f.push(a)},this);if(l)for(a=e.length;a--;)(n=e[a])&&!n.touched&&n.remove&&n.remove(!1,c);else!h||b&&b.enabled?p=!1:(a.forEach(function(a,c){a!==e[c].y&&e[c].update&&e[c].update(a,
428
- !1,null,!1)}),f.length=0);e.forEach(function(a){a&&(a.touched=!1)});if(!p)return!1;f.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=D(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,c,d,b){var e=this,f=e.points,g=f&&f.length||0,h=e.options,l=e.chart,n=h.dataSorting,q=e.xAxis,p=h.turboThreshold,k=this.xData,t=this.yData,m=e.pointArrayMap;m=m&&m.length;var z=h.keys,r,y=0,D=1,C=null;a=a||[];
429
- var w=a.length;c=J(c,!0);n&&n.enabled&&(a=this.sortData(a));!1!==b&&w&&g&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(r=this.updateData(a,d));if(!r){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(a){e[a+"Data"].length=0});if(p&&w>p)if(C=e.getFirstValidPoint(a),Q(C))for(d=0;d<w;d++)k[d]=this.autoIncrement(),t[d]=a[d];else if(aa(C))if(m)if(C.length===m)for(d=0;d<w;d++)k[d]=this.autoIncrement(),t[d]=a[d];else for(d=0;d<w;d++)b=a[d],k[d]=b[0],t[d]=b.slice(1,
430
- m+1);else if(z&&(y=z.indexOf("x"),D=z.indexOf("y"),y=0<=y?y:0,D=0<=D?D:1),1===C.length&&(D=0),y===D)for(d=0;d<w;d++)k[d]=this.autoIncrement(),t[d]=a[d][D];else for(d=0;d<w;d++)b=a[d],k[d]=b[y],t[d]=b[D];else x(12,!1,l);else for(d=0;d<w;d++)"undefined"!==typeof a[d]&&(b={series:e},e.pointClass.prototype.applyOptions.apply(b,[a[d]]),e.updateParallelArrays(b,d));t&&S(t[0])&&x(14,!0,l);e.data=[];e.options.data=e.userOptions.data=a;for(d=g;d--;)f[d]&&f[d].destroy&&f[d].destroy();q&&(q.minRange=q.userMinRange);
431
- e.isDirty=l.isDirtyBox=!0;e.isDirtyData=!!f;d=!1}"point"===h.legendType&&(this.processData(),this.generatePoints());c&&l.redraw(d)};b.prototype.sortData=function(a){var c=this,d=c.options.dataSorting.sortKey||"y",b=function(a,c){return z(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(d,e){a[e]=b(c,d);a[e].index=e},this);a.concat().sort(function(a,c){a=N(d,a);c=N(d,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var d=
432
- c.options,e=d.data;d.dataSorting&&d.dataSorting.enabled||!e||(e.forEach(function(d,f){e[f]=b(c,d);a[f]&&(e[f].x=a[f].x,e[f].index=f)}),c.setData(e,!1))});return a};b.prototype.getProcessedData=function(a){var c=this.xAxis,d=this.options,b=d.cropThreshold,e=a||this.getExtremesFromAll||d.getExtremesFromAll,f=this.isCartesian;a=c&&c.val2lin;d=!(!c||!c.logarithmic);var g=0,h=this.xData,l=this.yData,n=this.requireSorting;var q=!1;var p=h.length;if(c){q=c.getExtremes();var k=q.min;var t=q.max;q=c.categories&&
433
- !c.names.length}if(f&&this.sorted&&!e&&(!b||p>b||this.forceCrop))if(h[p-1]<k||h[0]>t)h=[],l=[];else if(this.yData&&(h[0]<k||h[p-1]>t)){var m=this.cropData(this.xData,this.yData,k,t);h=m.xData;l=m.yData;g=m.start;m=!0}for(b=h.length||1;--b;)if(c=d?a(h[b])-a(h[b-1]):h[b]-h[b-1],0<c&&("undefined"===typeof z||c<z))var z=c;else 0>c&&n&&!q&&(x(15,!1,this.chart),n=!1);return{xData:h,yData:l,cropped:m,cropStart:g,closestPointRange:z}};b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&
434
- !this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;H(this,"afterProcessData")};b.prototype.cropData=function(a,c,d,b,e){var f=a.length,g,h=0,l=f;e=J(e,this.cropShoulder);for(g=0;g<f;g++)if(a[g]>=d){h=Math.max(0,g-e);break}for(d=g;d<f;d++)if(a[d]>b){l=d+e;break}return{xData:a.slice(h,l),yData:c.slice(h,
435
- l),start:h,end:l}};b.prototype.generatePoints=function(){var a=this.options,c=a.data,d=this.processedXData,b=this.processedYData,e=this.pointClass,f=d.length,g=this.cropStart||0,h=this.hasGroupedData,l=a.keys,n=[];a=a.dataGrouping&&a.dataGrouping.groupAll?g:0;var q,p,k=this.data;if(!k&&!h){var t=[];t.length=c.length;k=this.data=t}l&&h&&(this.options.keys=!1);for(p=0;p<f;p++){t=g+p;if(h){var m=(new e).init(this,[d[p]].concat(ha(b[p])));m.dataGroup=this.groupMap[a+p];m.dataGroup.options&&(m.options=
436
- m.dataGroup.options,K(m,m.dataGroup.options),delete m.dataLabels)}else(m=k[t])||"undefined"===typeof c[t]||(k[t]=m=(new e).init(this,c[t],d[p]));m&&(m.index=h?a+p:t,n[p]=m)}this.options.keys=l;if(k&&(f!==(q=k.length)||h))for(p=0;p<q;p++)p!==g||h||(p+=f),k[p]&&(k[p].destroyElements(),k[p].plotX=void 0);this.data=k;this.points=n;H(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(a){return{min:n(a),max:D(a)}};b.prototype.getExtremes=function(a,c){var d=this.xAxis,b=this.yAxis,e=this.processedXData||
437
- this.xData,f=[],g=this.requireSorting?this.cropShoulder:0;b=b?b.positiveValuesOnly:!1;var h,l=0,q=0,p=0;a=a||this.stackedYData||this.processedYData||[];var k=a.length;if(d){var t=d.getExtremes();l=t.min;q=t.max}for(h=0;h<k;h++){var m=e[h];t=a[h];var z=(Q(t)||aa(t))&&(t.length||0<t||!b);m=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(e[h+g]||m)>=l&&(e[h-g]||m)<=q;if(z&&m)if(z=t.length)for(;z--;)Q(t[z])&&(f[p++]=t[z]);else f[p++]=t}a={activeYData:f,dataMin:n(f),dataMax:D(f)};
438
- H(this,"afterGetExtremes",{dataExtremes:a});return a};b.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};b.prototype.getFirstValidPoint=function(a){for(var c=a.length,d=0,b=null;null===b&&d<c;)b=a[d],d++;return b};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,b=this.xAxis,e=b.categories,g=this.enabledDataSorting,h=this.yAxis,l=this.points,n=l.length,q=
439
- this.pointPlacementToXValue(),p=!!q,k=a.threshold,t=a.startFromThreshold?k:0,m=this.zoneAxis||"y",r,y,D=Number.MAX_VALUE;for(r=0;r<n;r++){var C=l[r],x=C.x,w=void 0,u=void 0,v=C.y,G=C.low,A=c&&h.stacking&&h.stacking.stacks[(this.negStacks&&v<(t?0:k)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(v)||b.positiveValuesOnly&&!b.validatePositiveValue(x))C.isNull=!0;C.plotX=y=d(f(b.translate(x,0,0,0,1,q,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&A&&A[x]){var E=this.getStackIndicator(E,
440
- x,this.index);C.isNull||(w=A[x],u=w.points[E.key])}aa(u)&&(G=u[0],v=u[1],G===t&&E.key===A[x].base&&(G=J(Q(k)&&k,h.min)),h.positiveValuesOnly&&0>=G&&(G=null),C.total=C.stackTotal=w.total,C.percentage=w.total&&C.y/w.total*100,C.stackY=v,this.irregularWidths||w.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=z(G)?f(h.translate(G,0,1,0,1),-1E5,1E5):null;this.dataModify&&(v=this.dataModify.modifyValue(v,r));C.plotY=void 0;Q(v)&&(w=h.translate(v,!1,!0,!1,!0),"undefined"!==typeof w&&(C.plotY=f(w,
441
- -1E5,1E5)));C.isInside=this.isPointInside(C);C.clientX=p?d(b.translate(x,0,0,0,1,q)):y;C.negative=C[m]<(a[m+"Threshold"]||k||0);C.category=e&&"undefined"!==typeof e[C.x]?e[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof I&&(D=Math.min(D,Math.abs(y-I)));var I=y}C.zone=this.zones.length?C.getZone():void 0;!C.graphic&&this.group&&g&&(C.isNew=!0)}this.closestPointRangePx=D;H(this,"afterTranslate")};b.prototype.getValidPoints=function(a,c,d){var b=this.chart;return(a||this.points||[]).filter(function(a){return c&&
442
- !b.isInsidePlot(a.plotX,a.plotY,{inverted:b.inverted})?!1:!1!==a.visible&&(d||!a.isNull)})};b.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,d=this.yAxis,b=X(a.clipBox);c&&c.len!==a.plotSizeX&&(b.width=c.len);d&&d.len!==a.plotSizeY&&(b.height=d.len);return b};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var a=this.chart,c=this.group,d=this.markerGroup,b=a.sharedClips;a=a.renderer;
443
- var e=this.getClipBox(),f=this.getSharedClipKey(),g=b[f];g?g.animate(e):b[f]=g=a.clipRect(e);c&&c.clip(!1===this.options.clip?void 0:g);d&&d.clip()};b.prototype.animate=function(a){var c=this.chart,d=this.group,b=this.markerGroup,e=c.inverted,f=h(this.options.animation),g=[this.getSharedClipKey(),f.duration,f.easing,f.defer].join(),l=c.sharedClips[g],n=c.sharedClips[g+"m"];if(a&&d)f=this.getClipBox(),l?l.attr("height",f.height):(f.width=0,e&&(f.x=c.plotHeight),l=c.renderer.clipRect(f),c.sharedClips[g]=
444
- l,n=c.renderer.clipRect({x:e?(c.plotSizeX||0)+99:-99,y:e?-c.plotLeft:-c.plotTop,width:99,height:e?c.chartWidth:c.chartHeight}),c.sharedClips[g+"m"]=n),d.clip(l),b&&b.clip(n);else if(l&&!l.hasClass("highcharts-animating")){c=this.getClipBox();var q=f.step;b&&b.element.childNodes.length&&(f.step=function(a,c){q&&q.apply(c,arguments);n&&n.element&&n.attr(c.prop,"width"===c.prop?a+99:a)});l.addClass("highcharts-animating").animate(c,f)}};b.prototype.afterAnimate=function(){var a=this;this.setClip();F(this.chart.sharedClips,
445
- function(c,d,b){c&&!a.chart.container.querySelector('[clip-path="url(#'+c.id+')"]')&&(c.destroy(),delete b[d])});this.finishedAnimating=!0;H(this,"afterAnimate")};b.prototype.drawPoints=function(){var a=this.points,c=this.chart,d=this.options.marker,b=this[this.specialGroup]||this.markerGroup,e=this.xAxis,f=J(d.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius),g,h;if(!1!==d.enabled||this._hasPointMarkers)for(g=0;g<a.length;g++){var l=a[g];var n=(h=l.graphic)?"animate":
446
- "attr";var q=l.marker||{};var p=!!l.marker;if((f&&"undefined"===typeof q.enabled||q.enabled)&&!l.isNull&&!1!==l.visible){var k=J(q.symbol,this.symbol,"rect");var t=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=e.reversed?-(t.width||0):e.width);var m=!1!==l.isInside;h?h[m?"show":"hide"](m).animate(t):m&&(0<(t.width||0)||l.hasImage)&&(l.graphic=h=c.renderer.symbol(k,t.x,t.y,t.width,t.height,p?q:d).add(b),this.enabledDataSorting&&c.hasRendered&&(h.attr({x:l.startXPos}),
447
- n="animate"));h&&"animate"===n&&h[m?"show":"hide"](m).animate(t);if(h&&!c.styledMode)h[n](this.pointAttribs(l,l.selected&&"select"));h&&h.addClass(l.getClassName(),!0)}else h&&(l.graphic=h.destroy())}};b.prototype.markerAttribs=function(a,c){var d=this.options,b=d.marker,e=a.marker||{},f=e.symbol||b.symbol,g=J(e.radius,b.radius);c&&(b=b.states[c],c=e.states&&e.states[c],g=J(c&&c.radius,b&&b.radius,g+(b&&b.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(g=0);a={x:d.crisp?Math.floor(a.plotX-
448
- g):a.plotX-g,y:a.plotY-g};g&&(a.width=a.height=2*g);return a};b.prototype.pointAttribs=function(a,c){var d=this.options.marker,b=a&&a.options,e=b&&b.marker||{},f=b&&b.color,g=a&&a.color,h=a&&a.zone&&a.zone.color,l=this.color;a=J(e.lineWidth,d.lineWidth);b=1;l=f||h||g||l;f=e.fillColor||d.fillColor||l;g=e.lineColor||d.lineColor||l;c=c||"normal";d=d.states[c]||{};c=e.states&&e.states[c]||{};a=J(c.lineWidth,d.lineWidth,a+J(c.lineWidthPlus,d.lineWidthPlus,0));f=c.fillColor||d.fillColor||f;g=c.lineColor||
449
- d.lineColor||g;b=J(c.opacity,d.opacity,b);return{stroke:g,"stroke-width":a,fill:f,opacity:b}};b.prototype.destroy=function(a){var c=this,d=c.chart,b=/AppleWebKit\/533/.test(y.navigator.userAgent),e=c.data||[],f,g,h,n;H(c,"destroy");this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(n=c[a])&&n.series&&(l(n.series,c),n.isDirty=n.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(g=e.length;g--;)(h=e[g])&&h.destroy&&h.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});
450
- m.clearTimeout(c.animationTimeout);F(c,function(a,c){a instanceof r&&!a.survive&&(f=b&&"group"===c?"hide":"destroy",a[f]())});d.hoverSeries===c&&(d.hoverSeries=void 0);l(d.series,c);d.orderSeries();F(c,function(d,b){a&&"hcEvents"===b||delete c[b]})};b.prototype.applyZones=function(){var a=this,c=this.chart,d=c.renderer,b=this.zones,e=this.clips||[],g=this.graph,h=this.area,l=Math.max(c.chartWidth,c.chartHeight),n=this[(this.zoneAxis||"y")+"Axis"],q=c.inverted,p,k,t,m,z,r,y,D,C=!1;if(b.length&&(g||
451
- h)&&n&&"undefined"!==typeof n.min){var x=n.reversed;var w=n.horiz;g&&!this.showLine&&g.hide();h&&h.hide();var u=n.getExtremes();b.forEach(function(b,v){p=x?w?c.plotWidth:0:w?0:n.toPixels(u.min)||0;p=f(J(k,p),0,l);k=f(Math.round(n.toPixels(J(b.value,u.max),!0)||0),0,l);C&&(p=k=n.toPixels(u.max));m=Math.abs(p-k);z=Math.min(p,k);r=Math.max(p,k);n.isXAxis?(t={x:q?r:z,y:0,width:m,height:l},w||(t.x=c.plotHeight-t.x)):(t={x:0,y:q?r:z,width:l,height:m},w&&(t.y=c.plotWidth-t.y));q&&d.isVML&&(t=n.isXAxis?{x:0,
452
- y:x?z:r,height:t.width,width:c.chartWidth}:{x:t.y-c.plotLeft-c.spacingBox.x,y:0,width:t.height,height:c.chartHeight});e[v]?e[v].animate(t):e[v]=d.clipRect(t);y=a["zone-area-"+v];D=a["zone-graph-"+v];g&&D&&D.clip(e[v]);h&&y&&y.clip(e[v]);C=b.value>u.max;a.resetZones&&0===k&&(k=void 0)});this.clips=e}else a.visible&&(g&&g.show(!0),h&&h.show(!0))};b.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){d[c]&&(b.renderer.isVML&&d[c].attr({width:d.yAxis.len,height:d.xAxis.len}),
453
- d[c].width=d.yAxis.len,d[c].height=d.xAxis.len,d[c].invert(d.isRadialSeries?!1:a))})}var d=this,b=d.chart;d.xAxis&&(d.eventsToUnbind.push(p(b,"resize",c)),c(),d.invertGroups=c)};b.prototype.plotGroup=function(a,c,d,b,e){var f=this[a],g=!f;d={visibility:d,zIndex:b||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(d.opacity=this.opacity);g&&(this[a]=f=this.chart.renderer.g().add(e));f.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+
454
- "-series "+(z(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(d)[g?"attr":"animate"](this.getPlotBox());return f};b.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,d=this.yAxis;a.inverted&&(c=d,d=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||ca(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),
455
- this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,c=a.chart,d=a.options,b=h(d.animation),e=a.visible?"inherit":"hidden",f=d.zIndex,g=a.hasRendered,l=c.seriesGroup,n=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?b.duration:0;H(this,"render");var q=a.plotGroup("group","series",e,f,l);a.markerGroup=a.plotGroup("markerGroup","markers",e,f,l);!1!==d.clip&&a.setClip();a.animate&&c&&a.animate(!0);q.inverted=J(a.invertible,a.isCartesian)?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());
456
- a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);a.animate&&c&&a.animate();g||(c&&b.defer&&(c+=b.defer),a.animationTimeout=M(function(){a.afterAnimate()},c||0));a.isDirty=!1;a.hasRendered=!0;H(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,d=this.group,b=this.xAxis,e=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,
457
- height:a.plotHeight}),d.animate({translateX:J(b&&b.left,a.plotLeft),translateY:J(e&&e.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};b.prototype.searchPoint=function(a,c){var d=this.xAxis,b=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:e?b.len-a.chartX+b.pos:a.chartY-b.pos},c,a)};b.prototype.buildKDTree=function(a){function c(a,b,e){var f=a&&a.length;if(f){var g=d.kdAxisArray[b%e];a.sort(function(a,c){return a[g]-
458
- c[g]});f=Math.floor(f/2);return{point:a[f],left:c(a.slice(0,f),b+1,e),right:c(a.slice(f+1),b+1,e)}}}this.buildingKdTree=!0;var d=this,b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree;M(function(){d.kdTree=c(d.getValidPoints(null,!d.directTouch),b,b);d.buildingKdTree=!1},d.options.kdNow||a&&"touchstart"===a.type?0:1)};b.prototype.searchKDTree=function(a,c,d){function b(a,c,d,l){var n=c.point,q=e.kdAxisArray[d%l],p=n,k=z(a[f])&&z(n[f])?Math.pow(a[f]-n[f],2):null;var t=z(a[g])&&z(n[g])?
459
- Math.pow(a[g]-n[g],2):null;t=(k||0)+(t||0);n.dist=z(t)?Math.sqrt(t):Number.MAX_VALUE;n.distX=z(k)?Math.sqrt(k):Number.MAX_VALUE;q=a[q]-n[q];t=0>q?"left":"right";k=0>q?"right":"left";c[t]&&(t=b(a,c[t],d+1,l),p=t[h]<p[h]?t:n);c[k]&&Math.sqrt(q*q)<p[h]&&(a=b(a,c[k],d+1,l),p=a[h]<p[h]?a:p);return p}var e=this,f=this.kdAxisArray[0],g=this.kdAxisArray[1],h=c?"distX":"dist";c=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return b(a,
460
- this.kdTree,c,c)};b.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,d=this.xAxis;a=a.pointPlacement;"between"===a&&(a=d.reversed?-.5:.5);return Q(a)?a*(c||d.pointRange):0};b.prototype.isPointInside=function(a){var c=this.chart,d=this.xAxis,b=this.yAxis;return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=(b?b.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(d?d.len:c.plotWidth)};b.prototype.drawTracker=function(){var a=this,c=a.options,d=c.trackByArea,
461
- b=[].concat(d?a.areaPath:a.graphPath),e=a.chart,f=e.pointer,h=e.renderer,l=e.options.tooltip.snap,n=a.tracker,q=function(c){if(e.hoverSeries!==a)a.onMouseOver()},p="rgba(192,192,192,"+(C?.0001:.002)+")";n?n.attr({d:b}):a.graph&&(a.tracker=h.path(b).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),e.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:p,fill:d?p:"none","stroke-width":a.graph.strokeWidth()+
462
- (d?0:2*l)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",q).on("mouseout",function(a){f.onTrackerMouseOut(a)}),c.cursor&&!e.styledMode&&a.css({cursor:c.cursor}),g))a.on("touchstart",q)}));H(this,"afterDrawTracker")};b.prototype.addPoint=function(a,c,d,b,e){var f=this.options,g=this.data,h=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var n=f.data,q=this.xData,p;c=J(c,!0);var k={series:this};this.pointClass.prototype.applyOptions.apply(k,
463
- [a]);var t=k.x;var m=q.length;if(this.requireSorting&&t<q[m-1])for(p=!0;m&&q[m-1]>t;)m--;this.updateParallelArrays(k,"splice",m,0,0);this.updateParallelArrays(k,m);l&&k.name&&(l[t]=k.name);n.splice(m,0,a);p&&(this.data.splice(m,0,null),this.processData());"point"===f.legendType&&this.generatePoints();d&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(k,"shift"),n.shift()));!1!==e&&H(this,"addPoint",{point:k});this.isDirtyData=this.isDirty=!0;c&&h.redraw(b)};b.prototype.removePoint=
464
- function(c,d,b){var e=this,f=e.data,g=f[c],h=e.points,l=e.chart,n=function(){h&&h.length===f.length&&h.splice(c,1);f.splice(c,1);e.options.data.splice(c,1);e.updateParallelArrays(g||{series:e},"splice",c,1);g&&g.destroy();e.isDirty=!0;e.isDirtyData=!0;d&&l.redraw()};a(b,l);d=J(d,!0);g?g.firePointEvent("remove",null,n):n()};b.prototype.remove=function(a,c,d,b){function e(){f.destroy(b);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();J(a,!0)&&g.redraw(c)}var f=this,g=f.chart;!1!==d?H(f,"remove",null,
465
- e):e()};b.prototype.update=function(a,c){a=q(a,this.userOptions);H(this,"update",{options:a});var d=this,b=d.chart,e=d.userOptions,f=d.initialType||d.type,g=b.options.plotOptions,h=t[f].prototype,l=d.finishedAnimating&&{animation:!1},n={},p,k=["eventOptions","navigatorSeries","baseSeries"],m=a.type||e.type||b.options.chart.type,z=!(this.hasDerivedData||m&&m!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||d.hasOptionChanged("dataGrouping")||
466
- d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys"));m=m||f;z&&(k.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&k.push("area","graph"),d.parallelArrays.forEach(function(a){k.push(a+"Data")}),a.data&&(a.dataSorting&&K(d.options.dataSorting,a.dataSorting),
467
- this.setData(a.data,!1)));a=X(e,l,{index:"undefined"===typeof e.index?d.index:e.index,pointStart:J(g&&g.series&&g.series.pointStart,e.pointStart,d.xData[0])},!z&&{data:d.options.data},a);z&&a.data&&(a.data=d.options.data);k=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(k);k.forEach(function(a){k[a]=d[a];delete d[a]});g=!1;if(t[m]){if(g=m!==d.type,d.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(d,t[m].prototype);else{l=Object.hasOwnProperty.call(d,"hcEvents")&&
468
- d.hcEvents;for(p in h)d[p]=void 0;K(d,t[m].prototype);l?d.hcEvents=l:delete d.hcEvents}}else x(17,!0,b,{missingModuleFor:m});k.forEach(function(a){d[a]=k[a]});d.init(b,a);if(z&&this.points){var r=d.options;!1===r.visible?(n.graphic=1,n.dataLabel=1):d._hasPointLabels||(a=r.marker,h=r.dataLabels,!a||!1!==a.enabled&&(e.marker&&e.marker.symbol)===a.symbol||(n.graphic=1),h&&!1===h.enabled&&(n.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(n).length&&a.destroyElements(n),
469
- !1===r.showInLegend&&a.legendItem&&b.legend.destroyItem(a))},this)}d.initialType=f;b.linkSeries();g&&d.linkedSeries.length&&(d.isDirtyData=!0);H(this,"afterUpdate");J(c,!0)&&b.redraw(z?void 0:!1)};b.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],d=this.chart.options.plotOptions,b=this.userOptions[a];return b?c!==b:c!==J(d&&d[this.type]&&d[this.type][a],d&&d.series&&d.series[a],
470
- c)};b.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&H(this,"mouseOver");this.setState("hover");a.hoverSeries=this};b.prototype.onMouseOut=function(){var a=this.options,c=this.chart,d=c.tooltip,b=c.hoverPoint;c.hoverSeries=null;if(b)b.onMouseOut();this&&a.events.mouseOut&&H(this,"mouseOut");!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide();c.series.forEach(function(a){a.setState("",
471
- !0)})};b.prototype.setState=function(a,c){var d=this,b=d.options,e=d.graph,f=b.inactiveOtherPoints,g=b.states,h=J(g[a||"normal"]&&g[a||"normal"].animation,d.chart.options.chart.animation),l=b.lineWidth,n=0,q=b.opacity;a=a||"";if(d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(c){c&&(d.state&&c.removeClass("highcharts-series-"+d.state),a&&c.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(l=g[a].lineWidth||l+(g[a].lineWidthPlus||
472
- 0),q=J(g[a].opacity,q));if(e&&!e.dashstyle)for(b={"stroke-width":l},e.animate(b,h);d["zone-graph-"+n];)d["zone-graph-"+n].animate(b,h),n+=1;f||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(a){a&&a.animate({opacity:q},h)})}c&&f&&d.points&&d.setAllPointsToState(a||void 0)};b.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};b.prototype.setVisible=function(a,c){var d=this,b=d.chart,e=d.legendItem,f=b.options.chart.ignoreHiddenSeries,
473
- g=d.visible,h=(d.visible=a=d.options.visible=d.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(d[a])d[a][h]()});if(b.hoverSeries===d||(b.hoverPoint&&b.hoverPoint.series)===d)d.onMouseOut();e&&b.legend.colorizeItem(d,a);d.isDirty=!0;d.options.stacking&&b.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});d.linkedSeries.forEach(function(c){c.setVisible(a,!1)});f&&(b.isDirtyBox=!0);
474
- H(d,h);!1!==c&&b.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);H(this,a?"select":"unselect")};b.prototype.shouldShowTooltip=function(a,c,d){void 0===d&&(d={});d.series=this;d.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,d)};b.defaultOptions=w;return b}();K(b.prototype,{axisTypes:["xAxis",
475
- "yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:v.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0});k.series=b;"";"";return b});F(b,"Extensions/ScrollablePlotArea.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E){var x=b.stop,k=
476
- E.addEvent,r=E.createElement,m=E.merge,h=E.pick;k(A,"afterSetChartSize",function(a){var c=this.options.chart.scrollablePlotArea,b=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(b){if(this.scrollablePixelsX=b=Math.max(0,b-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=m(this.plotBox);this.plotBox.width=this.plotWidth+=b;this.inverted?this.clipBox.height+=b:this.clipBox.width+=b;var g={1:{name:"right",value:b}}}}else c&&(this.scrollablePixelsY=b=Math.max(0,
477
- c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=m(this.plotBox),this.plotBox.height=this.plotHeight+=b,this.inverted?this.clipBox.width+=b:this.clipBox.height+=b,g={2:{name:"bottom",value:b}});g&&!a.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var c=g[a.side].name,b=this[c];this[c]=b-g[a.side].value;var e=u.prototype.getPlotLinePath.apply(this,arguments);this[c]=b;return e}:(a.setAxisSize(),a.setAxisTranslation())})}});k(A,"render",function(){this.scrollablePixelsX||
478
- this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var a=this,c={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c.overflowX="auto");this.scrollablePixelsY&&(c.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},
479
- c,this.scrollingParent);k(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var a=this.container,c=this.fixedRenderer,b=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
480
- g;this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&b.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)");b.forEach(function(b){[].forEach.call(a.querySelectorAll(b),function(a){(a.namespaceURI===c.SVG_NS?c.box:c.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};
481
- A.prototype.applyFixed=function(){var a=!this.fixedDiv,c=this.options.chart,b=c.scrollablePlotArea,g=v.getRendererType();a?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c=new g(this.fixedDiv,this.chartWidth,this.chartHeight,
482
- this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":h(b.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),k(this,"afterShowResetZoom",this.moveFixedElements),k(this,"afterDrilldown",this.moveFixedElements),k(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+
483
- (this.scrollablePixelsX||0);g=this.chartHeight+(this.scrollablePixelsY||0);x(this.container);this.container.style.width=c+"px";this.container.style.height=g+"px";this.renderer.boxWrapper.attr({width:c,height:g,viewBox:[0,0,c,g].join(" ")});this.chartBackground.attr({width:c,height:g});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(b.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*b.scrollPositionX),b.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
484
- b.scrollPositionY));g=this.axisOffset;a=this.plotTop-g[0]-1;b=this.plotLeft-g[3]-1;c=this.plotTop+this.plotHeight+g[2]+1;g=this.plotLeft+this.plotWidth+g[1]+1;var m=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),y=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",m,a],["L",this.chartWidth,a],["L",this.chartWidth,c],["L",m,c],["Z"]]:this.scrollablePixelsY?[["M",b,0],["L",b,this.plotTop-
485
- 1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",b,y],["L",b,this.chartHeight],["L",g,this.chartHeight],["L",g,y],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};k(u,"afterInit",function(){this.chart.scrollableDirty=!0});k(B,"show",function(){this.chart.scrollableDirty=!0});""});F(b,"Core/Axis/StackingAxis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Utilities.js"]],function(b,u,A){var x=b.getDeferredAnimation,v=A.addEvent,E=
486
- A.destroyObjectProperties,w=A.fireEvent,k=A.isNumber,r=A.objectEach,m;(function(b){function a(){var a=this.stacking;if(a){var c=a.stacks;r(c,function(a,b){E(a);c[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function c(){this.stacking||(this.stacking=new g(this))}var e=[];b.compose=function(b){-1===e.indexOf(b)&&(e.push(b),v(b,"init",c),v(b,"destroy",a));return b};var g=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
487
- function(){var a=this.axis,c=a.series,b=a.options.reversedStacks,e=c.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=e;g--;){var f=c[b?g:e-g-1];f.setStackedPoints();f.setGroupedPoints()}for(g=0;g<e;g++)c[g].modifyStacks();w(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;r(a,function(a){r(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,c=a.stacks;a.axis.isXAxis||r(c,function(c){r(c,
488
- function(b,e){k(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete c[e]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,c=a.chart,b=c.renderer,e=this.stacks;a=x(c,a.options.stackLabels&&a.options.stackLabels.animation||!1);var g=this.stackTotalGroup=this.stackTotalGroup||b.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();g.translate(c.plotLeft,c.plotTop);r(e,function(a){r(a,function(a){a.render(g)})});g.animate({opacity:1},
489
- a)};return a}();b.Additions=g})(m||(m={}));return m});F(b,"Extensions/Stacking.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Axis/StackingAxis.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w){var k=A.format,r=w.correctFloat,m=w.defined,h=w.destroyObjectProperties,a=w.isArray,c=w.isNumber,e=w.objectEach,g=w.pick,C=function(){function a(a,c,b,e,f){var g=a.chart.inverted;this.axis=a;this.isNegative=b;this.options=
490
- c=c||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=f;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(g?b?"left":"right":"center"),verticalAlign:c.verticalAlign||(g?"middle":b?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(g?b?"right":"left":"center")}a.prototype.destroy=function(){h(this,this.axis)};a.prototype.render=function(a){var c=this.axis.chart,b=this.options,e=b.format;e=e?k(e,this,c):b.formatter.call(this);this.label?this.label.attr({text:e,
491
- visibility:"hidden"}):(this.label=c.renderer.label(e,null,null,b.shape,null,null,b.useHTML,!1,"stack-labels"),e={r:b.borderRadius||0,text:e,rotation:b.rotation,padding:g(b.padding,5),visibility:"hidden"},c.styledMode||(e.fill=b.backgroundColor,e.stroke=b.borderColor,e["stroke-width"]=b.borderWidth,this.label.css(b.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=c.plotSizeY};a.prototype.setOffset=function(a,b,e,h,f){var n=this.axis,d=n.chart;h=n.translate(n.stacking.usePercentage?
492
- 100:h?h:this.total,0,0,0,1);e=n.translate(e?e:0);e=m(h)&&Math.abs(h-e);a=g(f,d.xAxis[0].translate(this.x))+a;n=m(h)&&this.getStackBox(d,this,a,h,b,e,n);b=this.label;e=this.isNegative;a="justify"===g(this.options.overflow,"justify");var k=this.textAlign;b&&n&&(f=b.getBBox(),h=b.padding,k="left"===k?d.inverted?-h:h:"right"===k?f.width:d.inverted&&"center"===k?f.width/2:d.inverted?e?f.width+h:-h:f.width/2,e=d.inverted?f.height/2:e?-h:f.height,this.alignOptions.x=g(this.options.x,0),this.alignOptions.y=
493
- g(this.options.y,0),n.x-=k,n.y-=e,b.align(this.alignOptions,null,n),d.isInsidePlot(b.alignAttr.x+k-this.alignOptions.x,b.alignAttr.y+e-this.alignOptions.y)?b.show():(b.alignAttr.y=-9999,a=!1),a&&v.prototype.justifyDataLabel.call(this.axis,b,this.alignOptions,b.alignAttr,f,n),b.attr({x:b.alignAttr.x,y:b.alignAttr.y}),g(!a&&this.options.crop,!0)&&((d=c(b.x)&&c(b.y)&&d.isInsidePlot(b.x-h+b.width,b.y)&&d.isInsidePlot(b.x+h,b.y))||b.hide()))};a.prototype.getStackBox=function(a,c,b,e,f,g,d){var h=c.axis.reversed,
494
- l=a.inverted,n=d.height+d.pos-(l?a.plotLeft:a.plotTop);c=c.isNegative&&!h||!c.isNegative&&h;return{x:l?c?e-d.right:e-g+d.pos-a.plotLeft:b+a.xAxis[0].transB-a.plotLeft,y:l?d.height-b-f:c?n-e-g:n-e,width:l?g:f,height:l?f:g}};return a}();u.prototype.getStacks=function(){var a=this,c=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(b){var e=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==
495
- b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,g(b.options.stack,""),c?e.top:e.left,c?e.height:e.width].join())})};E.compose(b);v.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.prototype.setStackedPoints.call(this,"group"):a&&e(a.stacks,function(c,b){"group"===b.slice(-5)&&(e(c,function(a){return a.destroy()}),delete a.stacks[b])})};
496
- v.prototype.setStackedPoints=function(c){var b=c||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,h=this.processedYData,n=[],f=h.length,q=this.options,d=q.threshold,k=g(q.startFromThreshold&&d,0);q=q.stack;c=c?this.type+","+b:this.stackKey;var l="-"+c,y=this.negStacks,x=this.yAxis,w=x.stacking.stacks,u=x.stacking.oldStacks,v,A;x.stacking.stacksTouched+=1;for(A=0;A<f;A++){var E=e[A];var B=h[A];var F=this.getStackIndicator(F,
497
- E,this.index);var P=F.key;var J=(v=y&&B<(k?0:d))?l:c;w[J]||(w[J]={});w[J][E]||(u[J]&&u[J][E]?(w[J][E]=u[J][E],w[J][E].total=null):w[J][E]=new C(x,x.options.stackLabels,v,E,q));J=w[J][E];null!==B?(J.points[P]=J.points[this.index]=[g(J.cumulative,k)],m(J.cumulative)||(J.base=P),J.touched=x.stacking.stacksTouched,0<F.index&&!1===this.singleStacks&&(J.points[P][0]=J.points[this.index+","+E+",0"][0])):J.points[P]=J.points[this.index]=null;"percent"===b?(v=v?c:l,y&&w[v]&&w[v][E]?(v=w[v][E],J.total=v.total=
498
- Math.max(v.total,J.total)+Math.abs(B)||0):J.total=r(J.total+(Math.abs(B)||0))):"group"===b?(a(B)&&(B=B[0]),null!==B&&(J.total=(J.total||0)+1)):J.total=r(J.total+(B||0));J.cumulative="group"===b?(J.total||1)-1:g(J.cumulative,k)+(B||0);null!==B&&(J.points[P].push(J.cumulative),n[A]=J.cumulative,J.hasValidPoints=!0)}"percent"===b&&(x.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=n);x.stacking.oldStacks={}}};v.prototype.modifyStacks=function(){var a=this,c=a.stackKey,b=a.yAxis.stacking.stacks,
499
- e=a.processedXData,g,f=a.options.stacking;a[f+"Stacker"]&&[c,"-"+c].forEach(function(c){for(var d=e.length,h,l;d--;)if(h=e[d],g=a.getStackIndicator(g,h,a.index,c),l=(h=b[c]&&b[c][h])&&h.points[g.key])a[f+"Stacker"](l,h,d)})};v.prototype.percentStacker=function(a,c,b){c=c.total?100/c.total:0;a[0]=r(a[0]*c);a[1]=r(a[1]*c);this.stackedYData[b]=a[1]};v.prototype.getStackIndicator=function(a,c,b,e){!m(a)||a.x!==c||e&&a.key!==e?a={x:c,index:0,key:e}:a.index++;a.key=[b,c,a.index].join();return a};B.StackItem=
500
- C;"";return B.StackItem});F(b,"Series/Line/LineSeries.js",[b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,
501
- new m)}}(),v=A.defined,E=A.merge;A=function(w){function k(){var b=null!==w&&w.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(k,w);k.prototype.drawGraph=function(){var b=this,k=this.options,h=(this.gappedPath||this.getGraphPath).call(this),a=this.chart.styledMode,c=[["graph","highcharts-graph"]];a||c[0].push(k.lineColor||this.color||"#cccccc",k.dashStyle);c=b.getZonesGraphs(c);c.forEach(function(c,g){var e=c[0],m=b[e],t=m?"animate":"attr";m?(m.endX=b.preventGraphAnimation?
502
- null:h.xMap,m.animate({d:h})):h.length&&(b[e]=m=b.chart.renderer.path(h).addClass(c[1]).attr({zIndex:1}).add(b.group));m&&!a&&(e={stroke:c[2],"stroke-width":k.lineWidth,fill:b.fillGraph&&b.color||"none"},c[3]?e.dashstyle=c[3]:"square"!==k.linecap&&(e["stroke-linecap"]=e["stroke-linejoin"]="round"),m[t](e).shadow(2>g&&k.shadow));m&&(m.startX=h.xMap,m.isArea=h.isArea)})};k.prototype.getGraphPath=function(b,k,h){var a=this,c=a.options,e=[],g=[],m,r=c.step;b=b||a.points;var t=b.reversed;t&&b.reverse();
503
- (r={right:1,center:2}[r]||r&&3)&&t&&(r=4-r);b=this.getValidPoints(b,!1,!(c.connectNulls&&!k&&!h));b.forEach(function(p,t){var n=p.plotX,f=p.plotY,q=b[t-1];(p.leftCliff||q&&q.rightCliff)&&!h&&(m=!0);p.isNull&&!v(k)&&0<t?m=!c.connectNulls:p.isNull&&!k?m=!0:(0===t||m?t=[["M",p.plotX,p.plotY]]:a.getPointSpline?t=[a.getPointSpline(b,p,t)]:r?(t=1===r?[["L",q.plotX,f]]:2===r?[["L",(q.plotX+n)/2,q.plotY],["L",(q.plotX+n)/2,f]]:[["L",n,q.plotY]],t.push(["L",n,f])):t=[["L",n,f]],g.push(p.x),r&&(g.push(p.x),
504
- 2===r&&g.push(p.x)),e.push.apply(e,t),m=!1)});e.xMap=g;return a.graphPath=e};k.prototype.getZonesGraphs=function(b){this.zones.forEach(function(k,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(k.className||"")];this.chart.styledMode||h.push(k.color||this.color,k.dashStyle||this.options.dashStyle);b.push(h)},this);return b};k.defaultOptions=E(b.defaultOptions,{});return k}(b);u.registerSeriesType("line",A);"";return A});F(b,"Series/Area/AreaSeries.js",[b["Core/Color/Color.js"],
505
- b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),E=b.parse,w=A.seriesTypes.line;b=
506
- B.extend;var k=B.merge,r=B.objectEach,m=B.pick;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}x(a,b);a.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,e=this.areaPath,g=this.options,h=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(c,b){h.push(["zone-area-"+b,"highcharts-area highcharts-zone-area-"+b+" "+c.className,c.color||a.color,c.fillColor||
507
- g.fillColor])});h.forEach(function(c){var b=c[0],h=a[b],k=h?"animate":"attr",n={};h?(h.endX=a.preventGraphAnimation?null:e.xMap,h.animate({d:e})):(n.zIndex=0,h=a[b]=a.chart.renderer.path(e).addClass(c[1]).add(a.group),h.isArea=!0);a.chart.styledMode||(n.fill=m(c[3],E(c[2]).setOpacity(m(g.fillOpacity,.75)).get()));h[k](n);h.startX=e.xMap;h.shiftUnit=g.step?2:1})};a.prototype.getGraphPath=function(a){var c=w.prototype.getGraphPath,b=this.options,h=b.stacking,k=this.yAxis,t,p=[],r=[],n=this.index,f=
508
- k.stacking.stacks[this.stackKey],q=b.threshold,d=Math.round(k.getThreshold(b.threshold));b=m(b.connectNulls,"percent"===h);var z=function(c,b,e){var g=a[c];c=h&&f[g.x].points[n];var l=g[e+"Null"]||0;e=g[e+"Cliff"]||0;g=!0;if(e||l){var m=(l?c[0]:c[1])+e;var t=c[0]+e;g=!!l}else!h&&a[b]&&a[b].isNull&&(m=t=q);"undefined"!==typeof m&&(r.push({plotX:x,plotY:null===m?d:k.getThreshold(m),isNull:g,isCliff:!0}),p.push({plotX:x,plotY:null===t?d:k.getThreshold(t),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));
509
- for(t=0;t<a.length;t++){h||(a[t].leftCliff=a[t].rightCliff=a[t].leftNull=a[t].rightNull=void 0);var l=a[t].isNull;var x=m(a[t].rectPlotX,a[t].plotX);var u=h?m(a[t].yBottom,d):d;if(!l||b)b||z(t,t-1,"left"),l&&!h&&b||(r.push(a[t]),p.push({x:t,plotX:x,plotY:u})),b||z(t,t+1,"right")}t=c.call(this,r,!0,!0);p.reversed=!0;l=c.call(this,p,!0,!0);(u=l[0])&&"M"===u[0]&&(l[0]=["L",u[1],u[2]]);l=t.concat(l);l.length&&l.push(["Z"]);c=c.call(this,r,!1,b);l.xMap=t.xMap;this.areaPath=l;return c};a.prototype.getStackPoints=
510
- function(a){var c=this,b=[],h=[],k=this.xAxis,t=this.yAxis,p=t.stacking.stacks[this.stackKey],D={},n=t.series,f=n.length,q=t.options.reversedStacks?1:-1,d=n.indexOf(c);a=a||this.points;if(this.options.stacking){for(var z=0;z<a.length;z++)a[z].leftNull=a[z].rightNull=void 0,D[a[z].x]=a[z];r(p,function(a,c){null!==a.total&&h.push(c)});h.sort(function(a,c){return a-c});var l=n.map(function(a){return a.visible});h.forEach(function(a,e){var g=0,r,z;if(D[a]&&!D[a].isNull)b.push(D[a]),[-1,1].forEach(function(b){var g=
511
- 1===b?"rightNull":"leftNull",k=0,m=p[h[e+b]];if(m)for(var t=d;0<=t&&t<f;){var y=n[t].index;r=m.points[y];r||(y===c.index?D[a][g]=!0:l[t]&&(z=p[a].points[y])&&(k-=z[1]-z[0]));t+=q}D[a][1===b?"rightCliff":"leftCliff"]=k});else{for(var y=d;0<=y&&y<f;){if(r=p[a].points[n[y].index]){g=r[1];break}y+=q}g=m(g,0);g=t.translate(g,0,1,0,1);b.push({isNull:!0,plotX:k.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return b};a.defaultOptions=k(w.defaultOptions,{threshold:0});return a}(w);b(B.prototype,{singleStacks:!1,
512
- drawLegendSymbol:u.drawRectangle});A.registerSeriesType("area",B);"";return B});F(b,"Series/Spline/SplineSeries.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):
513
- (m.prototype=r.prototype,new m)}}(),B=b.seriesTypes.line,v=u.merge,E=u.pick;u=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.data=void 0;k.options=void 0;k.points=void 0;return k}x(k,b);k.prototype.getPointSpline=function(b,k,h){var a=k.plotX||0,c=k.plotY||0,e=b[h-1];h=b[h+1];if(e&&!e.isNull&&!1!==e.doCurve&&!k.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!k.isCliff){b=e.plotY||0;var g=h.plotX||0;h=h.plotY||0;var m=0;var r=(1.5*a+(e.plotX||0))/2.5;var t=(1.5*c+b)/2.5;g=(1.5*a+
514
- g)/2.5;var p=(1.5*c+h)/2.5;g!==r&&(m=(p-t)*(g-a)/(g-r)+c-p);t+=m;p+=m;t>b&&t>c?(t=Math.max(b,c),p=2*c-t):t<b&&t<c&&(t=Math.min(b,c),p=2*c-t);p>h&&p>c?(p=Math.max(h,c),t=2*c-p):p<h&&p<c&&(p=Math.min(h,c),t=2*c-p);k.rightContX=g;k.rightContY=p}k=["C",E(e.rightContX,e.plotX,0),E(e.rightContY,e.plotY,0),E(r,a,0),E(t,c,0),a,c];e.rightContX=e.rightContY=void 0;return k};k.defaultOptions=v(B.defaultOptions);return k}(B);b.registerSeriesType("spline",u);"";return u});F(b,"Series/AreaSpline/AreaSplineSeries.js",
515
- [b["Series/Area/AreaSeries.js"],b["Series/Spline/SplineSeries.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):
516
- (c.prototype=a.prototype,new c)}}(),w=b.prototype,k=v.extend,r=v.merge;v=function(k){function h(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}x(h,k);h.defaultOptions=r(u.defaultOptions,b.defaultOptions);return h}(u);k(v.prototype,{getGraphPath:w.getGraphPath,getStackPoints:w.getStackPoints,drawGraph:w.drawGraph,drawLegendSymbol:A.drawRectangle});B.registerSeriesType("areaspline",v);"";return v});F(b,"Series/Column/ColumnSeries.js",[b["Core/Animation/AnimationUtilities.js"],
517
- b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w){var k=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
518
- (d.prototype=b.prototype,new d)}}(),r=b.animObject,m=u.parse,h=A.hasTouch;b=A.noop;var a=w.clamp,c=w.css,e=w.defined,g=w.extend,C=w.fireEvent,y=w.isArray,t=w.isNumber,p=w.merge,D=w.pick,n=w.objectEach;w=function(b){function f(){var a=null!==b&&b.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}k(f,b);f.prototype.animate=function(c){var b=this,d=this.yAxis,e=b.options,f=this.chart.inverted,h={},n=f?"translateX":"translateY";if(c)h.scaleY=
519
- .001,c=a(d.toPixels(e.threshold),d.pos,d.pos+d.len),f?h.translateX=c-d.len:h.translateY=c,b.clipBox&&b.setClip(),b.group.attr(h);else{var k=Number(b.group.attr(n));b.group.animate({scaleY:1},g(r(b.options.animation),{step:function(a,c){b.group&&(h[n]=k+c.pos*(d.pos-k),b.group.attr(h))}}))}};f.prototype.init=function(a,c){b.prototype.init.apply(this,arguments);var d=this;a=d.chart;a.hasRendered&&a.series.forEach(function(a){a.type===d.type&&(a.isDirty=!0)})};f.prototype.getColumnMetrics=function(){var a=
520
- this,c=a.options,b=a.xAxis,e=a.yAxis,f=b.options.reversedStacks;f=b.reversed&&!f||!b.reversed&&f;var g={},h,n=0;!1===c.grouping?n=1:a.chart.series.forEach(function(c){var b=c.yAxis,d=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===b.len&&e.pos===b.pos){if(d.stacking&&"group"!==d.stacking){h=c.stackKey;"undefined"===typeof g[h]&&(g[h]=n++);var f=g[h]}else!1!==d.grouping&&(f=n++);c.columnIndex=f}});var k=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||
521
- c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),q=k*c.groupPadding,p=(k-2*q)/(n||1);c=Math.min(c.maxPointWidth||b.len,D(c.pointWidth,p*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(p-c)/2+(q+((a.columnIndex||0)+(f?1:0))*p-k/2)*(f?-1:1),paddedWidth:p,columnCount:n};return a.columnMetrics};f.prototype.crispCol=function(a,c,b,e){var d=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;d.inverted&&d.renderer.isVML&&(f+=1);this.options.crisp&&(b=Math.round(a+b)+g,a=Math.round(a)+
522
- g,b-=a);e=Math.round(c+e)+f;g=.5>=Math.abs(c)&&.5<e;c=Math.round(c)+f;e-=c;g&&e&&(--c,e+=1);return{x:a,y:c,width:b,height:e}};f.prototype.adjustForMissingColumns=function(a,c,b,e){var d=this,f=this.options.stacking;if(!b.isNull&&1<e.columnCount){var g=0,h=0;n(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x&&(a=a[b.x.toString()])){var c=a.points[d.index],e=a.total;f?(c&&(g=h),a.hasValidPoints&&h++):y(c)&&(g=c[1],h=e||0)}});a=(b.plotX||0)+((h-1)*e.paddedWidth+c)/
523
- 2-c-g*e.paddedWidth}return a};f.prototype.translate=function(){var c=this,b=c.chart,f=c.options,g=c.dense=2>c.closestPointRange*c.xAxis.transA;g=c.borderWidth=D(f.borderWidth,g?0:1);var h=c.xAxis,n=c.yAxis,k=f.threshold,q=c.translatedThreshold=n.getThreshold(k),p=D(f.minPointLength,5),m=c.getColumnMetrics(),r=m.width,y=c.pointXOffset=m.offset,C=c.dataMin,x=c.dataMax,w=c.barW=Math.max(r,1+2*g);b.inverted&&(q-=.5);f.pointPadding&&(w=Math.ceil(w));v.prototype.translate.apply(c);c.points.forEach(function(d){var g=
524
- D(d.yBottom,q),l=999+Math.abs(g),z=d.plotX||0;l=a(d.plotY,-l,n.len+l);var u=Math.min(l,g),v=Math.max(l,g)-u,E=r,A=z+y,B=w;p&&Math.abs(v)<p&&(v=p,z=!n.reversed&&!d.negative||n.reversed&&d.negative,t(k)&&t(x)&&d.y===k&&x<=k&&(n.min||0)<k&&(C!==x||(n.max||0)<=k)&&(z=!z),u=Math.abs(u-q)>p?g-p:q-(z?p:0));e(d.options.pointWidth)&&(E=B=Math.ceil(d.options.pointWidth),A-=Math.round((E-r)/2));f.centerInCategory&&(A=c.adjustForMissingColumns(A,E,d,m));d.barX=A;d.pointWidth=E;d.tooltipPos=b.inverted?[a(n.len+
525
- n.pos-b.plotLeft-l,n.pos-b.plotLeft,n.len+n.pos-b.plotLeft),h.len+h.pos-b.plotTop-A-B/2,v]:[h.left-b.plotLeft+A+B/2,a(l+n.pos-b.plotTop,n.pos-b.plotTop,n.len+n.pos-b.plotTop),v];d.shapeType=c.pointClass.prototype.shapeType||"rect";d.shapeArgs=c.crispCol.apply(c,d.isNull?[A,q,B,0]:[A,u,B,v])})};f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{},e=d.stroke||
526
- "borderColor",f=d["stroke-width"]||"borderWidth",g=a&&a.color||this.color,h=a&&a[e]||b[e]||g;d=a&&a.options.dashStyle||b.dashStyle;var n=a&&a[f]||b[f]||this[f]||0,k=D(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var q=a.getZone();g=a.options.color||q&&(q.color||a.nonZonedColor)||this.color;q&&(h=q.borderColor||h,d=q.dashStyle||d,n=q.borderWidth||n)}c&&a&&(a=p(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,g=a.color||"undefined"!==typeof c&&m(g).brighten(a.brightness).get()||
527
- g,h=a[e]||h,n=a[f]||n,d=a.dashStyle||d,k=D(a.opacity,k));e={fill:g,stroke:h,"stroke-width":n,opacity:k};d&&(e.dashstyle=d);return e};f.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,e=c.renderer,f=b.animationLimit||250,g;a.points.forEach(function(d){var h=d.graphic,l=!!h,n=h&&c.pointCount<f?"animate":"attr";if(t(d.plotY)&&null!==d.y){g=d.shapeArgs;h&&d.hasNewShapeType()&&(h=h.destroy());a.enabledDataSorting&&(d.startXPos=a.xAxis.reversed?-(g?g.width||0:0):a.xAxis.width);h||(d.graphic=
528
- h=e[d.shapeType](g).add(d.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<f&&(h.attr({x:d.startXPos}),l=!0,n="animate");if(h&&l)h[n](p(g));if(b.borderRadius)h[n]({r:b.borderRadius});c.styledMode||h[n](a.pointAttribs(d,d.selected&&"select")).shadow(!1!==d.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);h&&(h.addClass(d.getClassName(),!0),h.attr({visibility:d.visible?"inherit":"hidden"}))}else h&&(d.graphic=h.destroy())})};f.prototype.drawTracker=function(){var a=this,b=
529
- a.chart,e=b.pointer,f=function(a){var c=e.getPointFromEvent(a);"undefined"!==typeof c&&(e.isDirectTouch=!0,c.onMouseOver(a))},g;a.points.forEach(function(a){g=y(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);g.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(d){if(a[d]){a[d].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(h)a[d].on("touchstart",
530
- f);!b.styledMode&&a.options.cursor&&a[d].css(c).css({cursor:a.options.cursor})}}),a._hasTracking=!0);C(this,"afterDrawTracker")};f.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});v.prototype.remove.apply(a,arguments)};f.defaultOptions=p(v.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
531
- select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return f}(v);g(w.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});E.registerSeriesType("column",w);"";"";return w});F(b,"Core/Series/DataLabel.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],
532
- b["Core/Utilities.js"]],function(b,u,A){var x=b.getDeferredAnimation,v=u.format,E=A.defined,w=A.extend,k=A.fireEvent,r=A.isArray,m=A.merge,h=A.objectEach,a=A.pick,c=A.splat,e;(function(b){function e(c,b,e,f,g){var d=this,h=this.chart,l=this.isCartesian&&h.inverted,n=this.enabledDataSorting,k=a(c.dlBox&&c.dlBox.centerX,c.plotX,-9999),q=a(c.plotY,-9999),p=b.getBBox(),m=e.rotation,t=e.align,r=h.isInsidePlot(k,Math.round(q),{inverted:l,paneCoordinates:!0,series:d}),z=function(a){n&&d.xAxis&&!D&&d.setDataLabelStartPos(c,
533
- b,g,r,a)},D="justify"===a(e.overflow,n?"none":"justify"),y=this.visible&&!1!==c.visible&&(c.series.forceDL||n&&!D||r||a(e.inside,!!this.options.stacking)&&f&&h.isInsidePlot(k,l?f.x+1:f.y+f.height-1,{inverted:l,paneCoordinates:!0,series:d}));if(y){var x=h.renderer.fontMetrics(h.styledMode?void 0:e.style.fontSize,b).b;f=w({x:l?this.yAxis.len-q:k,y:Math.round(l?this.xAxis.len-k:q),width:0,height:0},f);w(e,{width:p.width,height:p.height});m?(D=!1,k=h.renderer.rotCorr(x,m),k={x:f.x+(e.x||0)+f.width/2+
534
- k.x,y:f.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*f.height},z(k),b[g?"attr":"animate"](k).attr({align:t}),z=(m+720)%360,z=180<z&&360>z,"left"===t?k.y-=z?p.height:0:"center"===t?(k.x-=p.width/2,k.y-=p.height/2):"right"===t&&(k.x-=p.width,k.y-=z?0:p.height),b.placed=!0,b.alignAttr=k):(z(f),b.align(e,void 0,f),k=b.alignAttr);D&&0<=f.height?this.justifyDataLabel(b,e,k,p,f,g):a(e.crop,!0)&&(y=h.isInsidePlot(k.x,k.y,{paneCoordinates:!0,series:d})&&h.isInsidePlot(k.x+p.width,k.y+p.height,{paneCoordinates:!0,
535
- series:d}));if(e.shape&&!m)b[g?"attr":"animate"]({anchorX:l?h.plotWidth-c.plotY:c.plotX,anchorY:l?h.plotHeight-c.plotX:c.plotY})}g&&n&&(b.placed=!1);y||n&&!D||(b.hide(!0),b.placed=!1)}function g(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function t(){var b=this,d=b.chart,e=b.options,f=b.points,n=b.hasRendered||0,p=d.renderer,m=e.dataLabels,t,y=m.animation;y=m.defer?x(d,
536
- y,b):{defer:0,duration:0};m=D(D(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[b.type]&&d.options.plotOptions[b.type].dataLabels),m);k(this,"drawDataLabels");if(r(m)||m.enabled||b._hasPointLabels){var C=b.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",m.zIndex||6);C.attr({opacity:+n});!n&&(n=b.dataLabelsGroup)&&(b.visible&&C.show(!0),n[e.animation?"animate":"attr"]({opacity:1},y));f.forEach(function(f){t=
537
- c(D(m,f.dlOptions||f.options&&f.options.dataLabels));t.forEach(function(c,n){var l=c.enabled&&(!f.isNull||f.dataLabelOnNull)&&g(f,c),k=f.connectors?f.connectors[n]:f.connector,q=f.dataLabels?f.dataLabels[n]:f.dataLabel,m=a(c.distance,f.labelDistance),t=!q;if(l){var r=f.getLabelConfig();var z=a(c[f.formatPrefix+"Format"],c.format);r=E(z)?v(z,r,d):(c[f.formatPrefix+"Formatter"]||c.formatter).call(r,c);z=c.style;var D=c.rotation;d.styledMode||(z.color=a(c.color,z.color,b.color,"#000000"),"contrast"===
538
- z.color?(f.contrastColor=p.getContrast(f.color||b.color),z.color=!E(m)&&c.inside||0>m||e.stacking?f.contrastColor:"#000000"):delete f.contrastColor,e.cursor&&(z.cursor=e.cursor));var y={r:c.borderRadius||0,rotation:D,padding:c.padding,zIndex:1};d.styledMode||(y.fill=c.backgroundColor,y.stroke=c.borderColor,y["stroke-width"]=c.borderWidth);h(y,function(a,c){"undefined"===typeof a&&delete y[c]})}!q||l&&E(r)?l&&E(r)&&(q?y.text=r:(f.dataLabels=f.dataLabels||[],q=f.dataLabels[n]=D?p.text(r,0,-9999,c.useHTML).addClass("highcharts-data-label"):
539
- p.label(r,0,-9999,c.shape,null,null,c.useHTML,null,"data-label"),n||(f.dataLabel=q),q.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),q.options=c,q.attr(y),d.styledMode||q.css(z).shadow(c.shadow),q.added||q.add(C),c.textPath&&!c.useHTML&&(q.setTextPath(f.getDataLabelPath&&f.getDataLabelPath(q)||f.graphic,c.textPath),f.dataLabelPath&&!c.textPath.enabled&&(f.dataLabelPath=f.dataLabelPath.destroy())),b.alignDataLabel(f,q,c,null,t)):(f.dataLabel=
540
- f.dataLabel&&f.dataLabel.destroy(),f.dataLabels&&(1===f.dataLabels.length?delete f.dataLabels:delete f.dataLabels[n]),n||delete f.dataLabel,k&&(f.connector=f.connector.destroy(),f.connectors&&(1===f.connectors.length?delete f.connectors:delete f.connectors[n])))})})}k(this,"afterDrawDataLabels")}function p(a,c,b,e,f,g){var d=this.chart,h=c.align,n=c.verticalAlign,l=a.box?0:a.padding||0,k=c.x;k=void 0===k?0:k;var q=c.y;q=void 0===q?0:q;var p=(b.x||0)+l;if(0>p){"right"===h&&0<=k?(c.align="left",c.inside=
541
- !0):k-=p;var m=!0}p=(b.x||0)+e.width-l;p>d.plotWidth&&("left"===h&&0>=k?(c.align="right",c.inside=!0):k+=d.plotWidth-p,m=!0);p=b.y+l;0>p&&("bottom"===n&&0<=q?(c.verticalAlign="top",c.inside=!0):q-=p,m=!0);p=(b.y||0)+e.height-l;p>d.plotHeight&&("top"===n&&0>=q?(c.verticalAlign="bottom",c.inside=!0):q+=d.plotHeight-p,m=!0);m&&(c.x=k,c.y=q,a.placed=!g,a.align(c,void 0,f));return m}function D(a,c){var b=[],d;if(r(a)&&!r(c))b=a.map(function(a){return m(a,c)});else if(r(c)&&!r(a))b=c.map(function(c){return m(a,
542
- c)});else if(r(a)||r(c))for(d=Math.max(a.length,c.length);d--;)b[d]=m(a[d],c[d]);else b=m(a,c);return b}function n(a,c,b,e,f){var d=this.chart,g=d.inverted,h=this.xAxis,n=h.reversed,k=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?f.x:n?-k-a:h.width-k+a;c.startYPos=g?n?this.yAxis.height-k+a:-k-a:f.y;e?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);d.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),
543
- c.placed=!0)}var f=[];b.compose=function(a){if(-1===f.indexOf(a)){var c=a.prototype;f.push(a);c.alignDataLabel=e;c.drawDataLabels=t;c.justifyDataLabel=p;c.setDataLabelStartPos=n}}})(e||(e={}));"";return e});F(b,"Series/Column/ColumnDataLabel.js",[b["Core/Series/DataLabel.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=u.series,v=A.merge,E=A.pick,w;(function(k){function r(b,a,c,e,g){var h=this.chart.inverted,k=b.series,m=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||
544
- 0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var p=b.dlBox||b.shapeArgs,r=E(b.below,b.plotY>E(this.translatedThreshold,k)),n=E(c.inside,!!this.options.stacking);p&&(e=v(p),0>e.y&&(e.height+=e.y,e.y=0),p=e.y+e.height-k,0<p&&p<e.height&&(e.height-=p),h&&(e={x:k-e.y-e.height,y:m-e.x-e.width,width:e.height,height:e.width}),n||(h?(e.x+=r?0:e.width,e.width=0):(e.y+=r?e.height:0,e.height=0)));c.align=E(c.align,!h||n?"center":r?"right":"left");c.verticalAlign=E(c.verticalAlign,h||n?"middle":r?"top":
545
- "bottom");x.prototype.alignDataLabel.call(this,b,a,c,e,g);c.inside&&b.contrastColor&&a.css({color:b.contrastColor})}var m=[];k.compose=function(h){b.compose(x);-1===m.indexOf(h)&&(m.push(h),h.prototype.alignDataLabel=r)}})(w||(w={}));return w});F(b,"Series/Bar/BarSeries.js",[b["Series/Column/ColumnSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
546
- function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}(),v=A.extend,E=A.merge;A=function(w){function k(){var b=null!==w&&w.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(k,w);k.defaultOptions=E(b.defaultOptions,{});return k}(b);v(A.prototype,{inverted:!0});u.registerSeriesType("bar",
547
- A);"";return A});F(b,"Series/Scatter/ScatterSeries.js",[b["Series/Column/ColumnSeries.js"],b["Series/Line/LineSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=this&&this.__extends||function(){var b=function(k,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return b(k,h)};return function(k,h){function a(){this.constructor=k}b(k,h);k.prototype=null===
548
- h?Object.create(h):(a.prototype=h.prototype,new a)}}(),E=B.addEvent,w=B.extend,k=B.merge;B=function(b){function m(){var h=null!==b&&b.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}x(m,b);m.prototype.applyJitter=function(){var b=this,a=this.options.jitter,c=this.points.length;a&&this.points.forEach(function(e,g){["x","y"].forEach(function(h,k){var m="plot"+h.toUpperCase();if(a[h]&&!e.isNull){var p=b[h+"Axis"];var r=a[h]*p.transA;if(p&&!p.isLog){var n=Math.max(0,
549
- e[m]-r);p=Math.min(p.len,e[m]+r);k=1E4*Math.sin(g+k*c);e[m]=n+(p-n)*(k-Math.floor(k));"x"===h&&(e.clientX=e.plotX)}}})})};m.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};m.defaultOptions=k(u.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});
550
- return m}(u);w(B.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});E(B,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",B);"";return B});F(b,"Series/CenteredUtilities.js",[b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,u,A){var x=b.deg2rad,v=A.isNumber,E=A.pick,w=A.relativeLength,k;(function(b){b.getCenter=function(){var b=
551
- this.options,h=this.chart,a=2*(b.slicedOffset||0),c=h.plotWidth-2*a,e=h.plotHeight-2*a,g=b.center,k=Math.min(c,e),r=b.size,t=b.innerSize||0;"string"===typeof r&&(r=parseFloat(r));"string"===typeof t&&(t=parseFloat(t));b=[E(g[0],"50%"),E(g[1],"50%"),E(r&&0>r?void 0:b.size,"100%"),E(t&&0>t?void 0:b.innerSize||0,"0%")];!h.angular||this instanceof u||(b[3]=0);for(g=0;4>g;++g)r=b[g],h=2>g||2===g&&/%$/.test(r),b[g]=w(r,[c,e,k,b[2]][g])+(h?a:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,
552
- h){b=v(b)?b:0;h=v(h)&&h>b&&360>h-b?h:b+360;return{start:x*(b+-90),end:x*(h+-90)}}})(k||(k={}));"";return k});F(b,"Series/Pie/PiePoint.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return b(a,c)};return function(a,c){function e(){this.constructor=
553
- a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),v=b.setAnimation,E=A.addEvent,w=A.defined;b=A.extend;var k=A.isNumber,r=A.pick,m=A.relativeLength;u=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}x(a,b);a.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,g=this.connectorShapes,h=b.connectorShape;g[h]&&(h=g[h]);return h.call(this,{x:a.final.x,
554
- y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};a.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};a.prototype.haloPath=function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};a.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var e=function(c){a.slice("select"===
555
- c.type)};E(this,"select",e);E(this,"unselect",e);return this};a.prototype.isValid=function(){return k(this.y)&&0<=this.y};a.prototype.setVisible=function(a,b){var c=this,e=this.series,h=e.chart,k=e.options.ignoreHiddenPoint;b=r(b,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(c[b])c[b][a?"show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,
556
- a),a||"hover"!==this.state||this.setState(""),k&&(e.isDirty=!0),b&&h.redraw())};a.prototype.slice=function(a,b,g){var c=this.series;v(g,c.chart);r(b,!0);this.sliced=this.options.sliced=w(a)?a:!this.sliced;c.options.data[c.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return a}(u);b(u.prototype,{connectorShapes:{fixedOffset:function(b,a,c){var e=a.breakAt;a=a.touchingSliceAt;return[["M",b.x,
557
- b.y],c.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*e.x-a.x,2*e.y-a.y,e.x,e.y]:["L",e.x,e.y],["L",a.x,a.y]]},straight:function(b,a){a=a.touchingSliceAt;return[["M",b.x,b.y],["L",a.x,a.y]]},crookedLine:function(b,a,c){a=a.touchingSliceAt;var e=this.series,g=e.center[0],h=e.chart.plotWidth,k=e.chart.plotLeft;e=b.alignment;var t=this.shapeArgs.r;c=m(c.crookDistance,1);h="left"===e?g+t+(h+k-g-t)*(1-c):k+(g-t)*c;c=["L",h,b.y];g=!0;if("left"===e?h>b.x||h<a.x:h<b.x||h>a.x)g=!1;b=[["M",b.x,b.y]];
558
- g&&b.push(c);b.push(["L",a.x,a.y]);return b}}});return u});F(b,"Series/Pie/PieSeries.js",[b["Series/CenteredUtilities.js"],b["Series/Column/ColumnSeries.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Series/Pie/PiePoint.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r){var m=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
559
- function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),h=b.getStartAndEndRadians;A=A.noop;var a=r.clamp,c=r.extend,e=r.fireEvent,g=r.merge,x=r.pick,y=r.relativeLength;r=function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=
560
- void 0;return a}m(b,c);b.prototype.animate=function(a){var c=this,b=c.points,e=c.startAngleRad;a||b.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&d&&(b.attr({r:x(a.startR,c.center&&c.center[3]/2),start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,b=this.options;if(0===this.total&&this.center){var e=this.center[0];var d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,
561
- d,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:k.arc(e,d,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||
562
- (c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};b.prototype.generatePoints=function(){c.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(c,b,e){var f=this.center,d=this.radii?this.radii[e.index]||0:f[2]/2;c=Math.asin(a((c-f[1])/(d+e.labelDistance),-1,1));return f[0]+(b?-1:1)*Math.cos(c)*(d+e.labelDistance)+(0<e.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};
563
- b.prototype.redrawPoints=function(){var a=this,c=a.chart,b=c.renderer,e=a.options.shadow,d,h,k,p;this.drawEmpty();!e||a.shadowGroup||c.styledMode||(a.shadowGroup=b.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(f){var l={};h=f.graphic;if(!f.isNull&&h){var n=void 0;p=f.shapeArgs;d=f.getTranslate();c.styledMode||(n=f.shadowGroup,e&&!n&&(n=f.shadowGroup=b.g("shadow").add(a.shadowGroup)),n&&n.attr(d),k=a.pointAttribs(f,f.selected&&"select"));f.delayedRendering?(h.setRadialReference(a.center).attr(p).attr(d),
564
- c.styledMode||h.attr(k).attr({"stroke-linejoin":"round"}).shadow(e,n),f.delayedRendering=!1):(h.setRadialReference(a.center),c.styledMode||g(!0,l,k),g(!0,l,p,d),h.animate(l));h.attr({visibility:f.visible?"inherit":"hidden"});h.addClass(f.getClassName(),!0)}else h&&(f.graphic=h.destroy())})};b.prototype.sortByAngle=function(a,c){a.sort(function(a,b){return"undefined"!==typeof a.angle&&(b.angle-a.angle)*c})};b.prototype.translate=function(a){this.generatePoints();var c=this.options,b=c.slicedOffset,
565
- g=b+(c.borderWidth||0),d=h(c.startAngle,c.endAngle),k=this.startAngleRad=d.start;d=(this.endAngleRad=d.end)-k;var l=this.points,p=c.dataLabels.distance;c=c.ignoreHiddenPoint;var m=l.length,t,r=0;a||(this.center=a=this.getCenter());for(t=0;t<m;t++){var D=l[t];var w=k+r*d;!D.isValid()||c&&!D.visible||(r+=D.percentage/100);var u=k+r*d;var C={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*w)/1E3,end:Math.round(1E3*u)/1E3};D.shapeType="arc";D.shapeArgs=C;D.labelDistance=x(D.options.dataLabels&&
566
- D.options.dataLabels.distance,p);D.labelDistance=y(D.labelDistance,C.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,D.labelDistance);u=(u+w)/2;u>1.5*Math.PI?u-=2*Math.PI:u<-Math.PI/2&&(u+=2*Math.PI);D.slicedTranslation={translateX:Math.round(Math.cos(u)*b),translateY:Math.round(Math.sin(u)*b)};C=Math.cos(u)*a[2]/2;var v=Math.sin(u)*a[2]/2;D.tooltipPos=[a[0]+.7*C,a[1]+.7*v];D.half=u<-Math.PI/2||u>Math.PI/2?1:0;D.angle=u;w=Math.min(g,D.labelDistance/5);D.labelPosition={natural:{x:a[0]+C+
567
- Math.cos(u)*D.labelDistance,y:a[1]+v+Math.sin(u)*D.labelDistance},"final":{},alignment:0>D.labelDistance?"center":D.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+C+Math.cos(u)*w,y:a[1]+v+Math.sin(u)*w},touchingSliceAt:{x:a[0]+C,y:a[1]+v}}}}e(this,"afterTranslate")};b.prototype.updateTotals=function(){var a=this.points,c=a.length,b=this.options.ignoreHiddenPoint,e,d=0;for(e=0;e<c;e++){var g=a[e];!g.isValid()||b&&!g.visible||(d+=g.y)}this.total=d;for(e=0;e<c;e++)g=a[e],g.percentage=0<d&&(g.visible||
568
- !b)?g.y/d*100:0,g.total=d};b.defaultOptions=g(E.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",
569
- borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return b}(E);c(r.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:B.drawRectangle,drawTracker:u.prototype.drawTracker,getCenter:b.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:u.prototype.pointAttribs,pointClass:v,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});w.registerSeriesType("pie",r);"";return r});F(b,"Series/Pie/PieDataLabel.js",[b["Core/Series/DataLabel.js"],
570
- b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=u.noop,w=A.distribute,k=B.series,r=v.arrayMax,m=v.clamp,h=v.defined,a=v.merge,c=v.pick,e=v.relativeLength,g;(function(g){function y(){var b=this,e=b.data,d=b.chart,g=b.options.dataLabels||{},l=g.connectorPadding,n=d.plotWidth,p=d.plotHeight,m=d.plotLeft,t=Math.round(d.chartWidth/3),y=b.center,D=y[2]/2,x=y[1],u=[[],[]],C=[0,0,0,0],v=b.dataLabelPositioners,
571
- A,E,B,F,Y,L,T,R,V,U,W,O;b.visible&&(g.enabled||b._hasPointLabels)&&(e.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),k.prototype.drawDataLabels.apply(b),e.forEach(function(a){a.dataLabel&&(a.visible?(u[a.half].push(a),a.dataLabel._pos=null,!h(g.style.width)&&!h(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>t&&(a.dataLabel.css({width:Math.round(.7*
572
- t)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),u.forEach(function(a,e){var f=a.length,k=[],q;if(f){b.sortByAngle(a,e-.5);if(0<b.maxLabelDistance){var t=Math.max(0,x-D-b.maxLabelDistance);var r=Math.min(x+D+b.maxLabelDistance,d.plotHeight);a.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,x-D-a.labelDistance),a.bottom=Math.min(x+D+a.labelDistance,d.plotHeight),q=a.dataLabel.getBBox().height||
573
- 21,a.distributeBox={target:a.labelPosition.natural.y-a.top+q/2,size:q,rank:a.y},k.push(a.distributeBox))});t=r+q-t;w(k,t,t/5)}for(W=0;W<f;W++){A=a[W];L=A.labelPosition;F=A.dataLabel;U=!1===A.visible?"hidden":"inherit";V=t=L.natural.y;k&&h(A.distributeBox)&&("undefined"===typeof A.distributeBox.pos?U="hidden":(T=A.distributeBox.size,V=v.radialDistributionY(A)));delete A.positionIndex;if(g.justify)R=v.justify(A,D,y);else switch(g.alignTo){case "connectors":R=v.alignToConnectors(a,e,n,m);break;case "plotEdges":R=
574
- v.alignToPlotEdges(F,e,n,m);break;default:R=v.radialDistributionX(b,A,V,t)}F._attr={visibility:U,align:L.alignment};O=A.options.dataLabels||{};F._pos={x:R+c(O.x,g.x)+({left:l,right:-l}[L.alignment]||0),y:V+c(O.y,g.y)-10};L.final.x=R;L.final.y=V;c(g.crop,!0)&&(Y=F.getBBox().width,t=null,R-Y<l&&1===e?(t=Math.round(Y-R+l),C[3]=Math.max(t,C[3])):R+Y>n-l&&0===e&&(t=Math.round(R+Y-n+l),C[1]=Math.max(t,C[1])),0>V-T/2?C[0]=Math.max(Math.round(-V+T/2),C[0]):V+T/2>p&&(C[2]=Math.max(Math.round(V+T/2-p),C[2])),
575
- F.sideOverflow=t)}}}),0===r(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),this.points.forEach(function(e){O=a(g,e.options.dataLabels);if(E=c(O.connectorWidth,1)){var f;B=e.connector;if((F=e.dataLabel)&&F._pos&&e.visible&&0<e.labelDistance){U=F._attr.visibility;if(f=!B)e.connector=B=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(b.dataLabelsGroup),d.styledMode||B.attr({"stroke-width":E,stroke:O.connectorColor||
576
- e.color||"#666666"});B[f?"attr":"animate"]({d:e.getConnectorPath()});B.attr("visibility",U)}else B&&(e.connector=B.destroy())}}))}function t(){this.points.forEach(function(a){var c=a.dataLabel,b;c&&a.visible&&((b=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](b),c.moved=!0):c&&c.attr({y:-9999}));
577
- delete a.distributeBox},this)}function p(a){var c=this.center,b=this.options,f=b.center,g=b.minSize||80,h=null!==b.size;if(!h){if(null!==f[0])var k=Math.max(c[2]-Math.max(a[1],a[3]),g);else k=Math.max(c[2]-a[1]-a[3],g),c[0]+=(a[3]-a[1])/2;null!==f[1]?k=m(k,g,c[2]-Math.max(a[0],a[2])):(k=m(k,g,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);k<c[2]?(c[2]=k,c[3]=Math.min(e(b.innerSize||0,k),k),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var D=[],n={radialDistributionY:function(a){return a.top+
578
- a.distributeBox.pos},radialDistributionX:function(a,c,b,e){return a.getX(b<c.top+2||b>c.bottom-2?e:b,c.half,c)},justify:function(a,c,b){return b[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,b,e){a=a.getBBox().width;return c?a+e:b-a-e},alignToConnectors:function(a,c,b,e){var d=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>d&&(d=f)});return c?d+e:b-d-e}};g.compose=function(a){b.compose(k);-1===D.indexOf(a)&&(D.push(a),a=a.prototype,a.dataLabelPositioners=n,a.alignDataLabel=
579
- x,a.drawDataLabels=y,a.placeDataLabels=t,a.verifyDataLabelOverflow=p)}})(g||(g={}));return g});F(b,"Extensions/OverlappingDataLabels.js",[b["Core/Chart/Chart.js"],b["Core/Utilities.js"]],function(b,u){function x(b,h){var a=!1;if(b){var c=b.newOpacity;b.oldOpacity!==c&&(b.alignAttr&&b.placed?(b[c?"removeClass":"addClass"]("highcharts-data-label-hidden"),a=!0,b.alignAttr.opacity=c,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){h.styledMode||b.css({pointerEvents:c?"auto":"none"})}),v(h,"afterHideOverlappingLabel")):
580
- b.attr({opacity:c}));b.isOld=!0}return a}var B=u.addEvent,v=u.fireEvent,E=u.isArray,w=u.isNumber,k=u.objectEach,r=u.pick;B(b,"render",function(){var b=this,h=[];(this.labelCollectors||[]).forEach(function(a){h=h.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&k(a.stacking.stacks,function(a){k(a,function(a){a.label&&"hidden"!==a.label.visibility&&h.push(a.label)})})});(this.series||[]).forEach(function(a){var c=a.options.dataLabels;
581
- a.visible&&(!1!==c.enabled||a._hasPointLabels)&&(c=function(a){return a.forEach(function(a){a.visible&&(E(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(c){var e=c.options;c.labelrank=r(e.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);e.allowOverlap?(c.oldOpacity=c.opacity,c.newOpacity=1,x(c,b)):h.push(c)})})},c(a.nodes||[]),c(a.points))});this.hideOverlappingLabels(h)});b.prototype.hideOverlappingLabels=function(b){var h=this,a=b.length,c=h.renderer,e,g,k,m=!1;
582
- var t=function(a){var b,e=a.box?0:a.padding||0,d=b=0,g;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=c.fontMetrics(null,a.element).h);var n=a.width-2*e;(g={left:"0",center:"0.5",right:"1"}[a.alignValue])?d=+g*n:w(a.x)&&Math.round(a.x)!==a.translateX&&(d=a.x-a.translateX);return{x:h.x+(k.translateX||0)+e-(d||0),y:h.y+(k.translateY||0)+e-b,width:a.width-2*e,height:a.height-2*e}}};for(g=
583
- 0;g<a;g++)if(e=b[g])e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=t(e);b.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(g=0;g<a;g++){var p=(t=b[g])&&t.absoluteBox;for(e=g+1;e<a;++e){var r=(k=b[e])&&k.absoluteBox;!p||!r||t===k||0===t.newOpacity||0===k.newOpacity||r.x>=p.x+p.width||r.x+r.width<=p.x||r.y>=p.y+p.height||r.y+r.height<=p.y||((t.labelrank<k.labelrank?t:k).newOpacity=0)}}b.forEach(function(a){x(a,h)&&(m=!0)});m&&v(h,"afterHideAllOverlappingLabels")}});F(b,"Core/Responsive.js",
584
- [b["Core/Utilities.js"]],function(b){var x=b.extend,A=b.find,B=b.isArray,v=b.isObject,E=b.merge,w=b.objectEach,k=b.pick,r=b.splat,m=b.uniqueKey,h;(function(a){var c=[];a.compose=function(a){-1===c.indexOf(a)&&(c.push(a),x(a.prototype,b.prototype));return a};var b=function(){function a(){}a.prototype.currentOptions=function(a){function c(a,e,f,g){var d;w(a,function(a,h){if(!g&&-1<b.collectionsWithUpdate.indexOf(h)&&e[h])for(a=r(a),f[h]=[],d=0;d<Math.max(a.length,e[h].length);d++)e[h][d]&&(void 0===
585
- a[d]?f[h][d]=e[h][d]:(f[h][d]={},c(a[d],e[h][d],f[h][d],g+1)));else v(a)?(f[h]=B(a)?[]:{},c(a,e[h]||{},f[h],g+1)):f[h]="undefined"===typeof e[h]?null:e[h]})}var b=this,e={};c(a,this.options,e,0);return e};a.prototype.matchResponsiveRule=function(a,c){var b=a.condition;(b.callback||function(){return this.chartWidth<=k(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=k(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=k(b.minWidth,0)&&this.chartHeight>=k(b.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=
586
- function(a,c){var b=this,e=this.options.responsive,g=this.currentResponsive,h=[];!c&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=m());b.matchResponsiveRule(a,h)},this);c=E.apply(void 0,h.map(function(a){return A((e||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;h=h.toString()||void 0;h!==(g&&g.ruleIds)&&(g&&this.update(g.undoOptions,a,!0),h?(g=this.currentOptions(c),g.isResponsiveOptions=!0,this.currentResponsive=
587
- {ruleIds:h,mergedOptions:c,undoOptions:g},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(h||(h={}));"";"";return h});F(b,"masters/highcharts.src.js",[b["Core/Globals.js"],b["Core/Utilities.js"],b["Core/DefaultOptions.js"],b["Core/Animation/Fx.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/FormatUtilities.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Renderer/HTML/HTMLElement.js"],
414
+ hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});G(b,"Core/Series/Series.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Point.js"],b["Core/Series/SeriesDefaults.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],
415
+ b["Core/Utilities.js"]],function(b,p,A,E,w,D,B,k,t,n){var h=b.animObject,d=b.setAnimation,a=p.defaultOptions,e=A.registerEventOptions,g=E.hasTouch,x=E.svg,C=E.win,r=k.seriesTypes,q=n.addEvent,z=n.arrayMax,m=n.arrayMin,f=n.clamp,y=n.cleanRecursively,c=n.correctFloat,u=n.defined,l=n.erase,v=n.error,K=n.extend,H=n.find,I=n.fireEvent,Z=n.getNestedProperty,Q=n.isArray,O=n.isNumber,R=n.isString,T=n.merge,G=n.objectEach,J=n.pick,ba=n.removeEvent,ha=n.splat,L=n.syncTimeout;b=function(){function b(){this.zones=
416
+ this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(c,a){I(this,"init",{options:a});var d=this,b=c.series;this.eventsToUnbind=[];d.chart=c;d.options=d.setOptions(a);a=d.options;d.linkedSeries=[];d.bindAxes();K(d,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});e(this,a);var f=
417
+ a.events;if(f&&f.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)c.runTrackerClick=!0;d.getColor();d.getSymbol();d.parallelArrays.forEach(function(c){d[c+"Data"]||(d[c+"Data"]=[])});d.isCartesian&&(c.hasCartesianSeries=!0);var g;b.length&&(g=b[b.length-1]);d._i=J(g&&g._i,-1)+1;d.opacity=d.options.opacity;c.orderSeries(this.insert(b));a.dataSorting&&a.dataSorting.enabled?d.setDataSortingOptions():d.points||d.data||d.setData(a.data,!1);I(this,"afterInit")};b.prototype.is=function(c){return r[c]&&
418
+ this instanceof r[c]};b.prototype.insert=function(c){var a=this.options.index,d;if(O(a)){for(d=c.length;d--;)if(a>=J(c[d].options.index,c[d]._i)){c.splice(d+1,0,this);break}-1===d&&c.unshift(this);d+=1}else c.push(this);return J(d,c.length-1)};b.prototype.bindAxes=function(){var c=this,a=c.options,d=c.chart,b;I(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(f){var e=0;d[f].forEach(function(d){b=d.options;if(a[f]===e&&!b.isInternal||"undefined"!==typeof a[f]&&a[f]===b.id||"undefined"===
419
+ typeof a[f]&&0===b.index)c.insert(d.series),c[f]=d,d.isDirty=!0;b.isInternal||e++});c[f]||c.optionalAxis===f||v(18,!0,d)})});I(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(c,a){var d=c.series,b=arguments,f=O(a)?function(b){var f="y"===b&&d.toYData?d.toYData(c):c[b];d[b+"Data"][a]=f}:function(c){Array.prototype[a].apply(d[c+"Data"],Array.prototype.slice.call(b,2))};d.parallelArrays.forEach(f)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
420
+ "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(c){var a=this.options,d=a.pointIntervalUnit,b=a.relativeXValue,f=this.chart.time,e=this.xIncrement,g;e=J(e,a.pointStart,0);this.pointInterval=g=J(this.pointInterval,a.pointInterval,1);b&&O(c)&&(g*=c);d&&(a=new f.Date(e),"day"===d?f.set("Date",a,f.get("Date",a)+g):"month"===d?f.set("Month",a,f.get("Month",a)+g):"year"===d&&f.set("FullYear",a,f.get("FullYear",a)+g),g=a.getTime()-e);if(b&&
421
+ O(c))return e+g;this.xIncrement=e+g;return e};b.prototype.setDataSortingOptions=function(){var c=this.options;K(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});u(c.pointRange)||(c.pointRange=1)};b.prototype.setOptions=function(c){var d=this.chart,b=d.options,f=b.plotOptions,e=d.userOptions||{};c=T(c);d=d.styledMode;var g={plotOptions:f,userOptions:c};I(this,"setOptions",g);var m=g.plotOptions[this.type],l=e.plotOptions||{};this.userOptions=g.userOptions;e=T(m,f.series,e.plotOptions&&
422
+ e.plotOptions[this.type],c);this.tooltipOptions=T(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,b.tooltip.userOptions,f.series&&f.series.tooltip,f[this.type].tooltip,c.tooltip);this.stickyTracking=J(c.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:e.stickyTracking);null===m.marker&&delete e.marker;this.zoneAxis=e.zoneAxis;f=this.zones=(e.zones||[]).slice();
423
+ !e.negativeColor&&!e.negativeFillColor||e.zones||(b={value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative"},d||(b.color=e.negativeColor,b.fillColor=e.negativeFillColor),f.push(b));f.length&&u(f[f.length-1].value)&&f.push(d?{}:{color:this.color,fillColor:this.fillColor});I(this,"afterSetOptions",{options:e});return e};b.prototype.getName=function(){return J(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(c,a,d){var b=this.chart,f=this.userOptions,
424
+ e=c+"Index",g=c+"Counter",m=d?d.length:J(b.options.chart[c+"Count"],b[c+"Count"]);if(!a){var l=J(f[e],f["_"+e]);u(l)||(b.series.length||(b[g]=0),f["_"+e]=l=b[g]%m,b[g]+=1);d&&(a=d[l])}"undefined"!==typeof l&&(this[e]=l);this[c]=a};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||a.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?
425
+ this.points:this.data)||[]};b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(c,a){var d=c.id,b=c.x,f=this.points,e=this.options.dataSorting,g,m;if(d)e=this.chart.get(d),e instanceof D&&(g=e);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(g=function(a){return!a.touched&&a.index===c.index},e&&e.matchByName?g=function(a){return!a.touched&&a.name===c.name}:this.options.relativeXValue&&
426
+ (g=function(a){return!a.touched&&a.options.x===c.x}),g=H(f,g),!g)return;if(g){var l=g&&g.index;"undefined"!==typeof l&&(m=!0)}"undefined"===typeof l&&O(b)&&(l=this.xData.indexOf(b,a));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!m&&O(l)&&f[l]&&f[l].touched&&(l=void 0);return l};b.prototype.updateData=function(c,a){var d=this.options,b=d.dataSorting,f=this.points,e=[],g=this.requireSorting,m=c.length===f.length,l,h,k,q=!0;this.xIncrement=null;c.forEach(function(c,
427
+ a){var h=u(c)&&this.pointClass.prototype.optionsToObject.call({series:this},c)||{},q=h.x;if(h.id||O(q)){if(h=this.findPointIndex(h,k),-1===h||"undefined"===typeof h?e.push(c):f[h]&&c!==d.data[h]?(f[h].update(c,!1,null,!1),f[h].touched=!0,g&&(k=h+1)):f[h]&&(f[h].touched=!0),!m||a!==h||b&&b.enabled||this.hasDerivedData)l=!0}else e.push(c)},this);if(l)for(c=f.length;c--;)(h=f[c])&&!h.touched&&h.remove&&h.remove(!1,a);else!m||b&&b.enabled?q=!1:(c.forEach(function(c,a){c!==f[a].y&&f[a].update&&f[a].update(c,
428
+ !1,null,!1)}),e.length=0);f.forEach(function(c){c&&(c.touched=!1)});if(!q)return!1;e.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=z(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(c,a,d,b){var f=this,e=f.points,g=e&&e.length||0,m=f.options,l=f.chart,h=m.dataSorting,k=f.xAxis,q=m.turboThreshold,r=this.xData,n=this.yData,u=f.pointArrayMap;u=u&&u.length;var z=m.keys,y,x=0,t=1,C=null;c=c||[];
429
+ var p=c.length;a=J(a,!0);h&&h.enabled&&(c=this.sortData(c));!1!==b&&p&&g&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(y=this.updateData(c,d));if(!y){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(c){f[c+"Data"].length=0});if(q&&p>q)if(C=f.getFirstValidPoint(c),O(C))for(d=0;d<p;d++)r[d]=this.autoIncrement(),n[d]=c[d];else if(Q(C))if(u)if(C.length===u)for(d=0;d<p;d++)r[d]=this.autoIncrement(),n[d]=c[d];else for(d=0;d<p;d++)b=c[d],r[d]=b[0],n[d]=b.slice(1,
430
+ u+1);else if(z&&(x=z.indexOf("x"),t=z.indexOf("y"),x=0<=x?x:0,t=0<=t?t:1),1===C.length&&(t=0),x===t)for(d=0;d<p;d++)r[d]=this.autoIncrement(),n[d]=c[d][t];else for(d=0;d<p;d++)b=c[d],r[d]=b[x],n[d]=b[t];else v(12,!1,l);else for(d=0;d<p;d++)"undefined"!==typeof c[d]&&(b={series:f},f.pointClass.prototype.applyOptions.apply(b,[c[d]]),f.updateParallelArrays(b,d));n&&R(n[0])&&v(14,!0,l);f.data=[];f.options.data=f.userOptions.data=c;for(d=g;d--;)e[d]&&e[d].destroy&&e[d].destroy();k&&(k.minRange=k.userMinRange);
431
+ f.isDirty=l.isDirtyBox=!0;f.isDirtyData=!!e;d=!1}"point"===m.legendType&&(this.processData(),this.generatePoints());a&&l.redraw(d)};b.prototype.sortData=function(c){var a=this,d=a.options.dataSorting.sortKey||"y",b=function(c,a){return u(a)&&c.pointClass.prototype.optionsToObject.call({series:c},a)||{}};c.forEach(function(d,f){c[f]=b(a,d);c[f].index=f},this);c.concat().sort(function(c,a){c=Z(d,c);a=Z(d,a);return a<c?-1:a>c?1:0}).forEach(function(c,a){c.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var d=
432
+ a.options,f=d.data;d.dataSorting&&d.dataSorting.enabled||!f||(f.forEach(function(d,e){f[e]=b(a,d);c[e]&&(f[e].x=c[e].x,f[e].index=e)}),a.setData(f,!1))});return c};b.prototype.getProcessedData=function(c){var a=this.xAxis,d=this.options,b=d.cropThreshold,f=c||this.getExtremesFromAll||d.getExtremesFromAll,e=this.isCartesian;c=a&&a.val2lin;d=!(!a||!a.logarithmic);var g=0,m=this.xData,l=this.yData,h=this.requireSorting;var k=!1;var q=m.length;if(a){k=a.getExtremes();var r=k.min;var n=k.max;k=a.categories&&
433
+ !a.names.length}if(e&&this.sorted&&!f&&(!b||q>b||this.forceCrop))if(m[q-1]<r||m[0]>n)m=[],l=[];else if(this.yData&&(m[0]<r||m[q-1]>n)){var u=this.cropData(this.xData,this.yData,r,n);m=u.xData;l=u.yData;g=u.start;u=!0}for(b=m.length||1;--b;)if(a=d?c(m[b])-c(m[b-1]):m[b]-m[b-1],0<a&&("undefined"===typeof z||a<z))var z=a;else 0>a&&h&&!k&&(v(15,!1,this.chart),h=!1);return{xData:m,yData:l,cropped:u,cropStart:g,closestPointRange:z}};b.prototype.processData=function(c){var a=this.xAxis;if(this.isCartesian&&
434
+ !this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!c)return!1;c=this.getProcessedData();this.cropped=c.cropped;this.cropStart=c.cropStart;this.processedXData=c.xData;this.processedYData=c.yData;this.closestPointRange=this.basePointRange=c.closestPointRange;I(this,"afterProcessData")};b.prototype.cropData=function(c,a,d,b,f){var e=c.length,g,m=0,l=e;f=J(f,this.cropShoulder);for(g=0;g<e;g++)if(c[g]>=d){m=Math.max(0,g-f);break}for(d=g;d<e;d++)if(c[d]>b){l=d+f;break}return{xData:c.slice(m,l),yData:a.slice(m,
435
+ l),start:m,end:l}};b.prototype.generatePoints=function(){var c=this.options,a=c.data,d=this.processedXData,b=this.processedYData,f=this.pointClass,e=d.length,g=this.cropStart||0,m=this.hasGroupedData,l=c.keys,h=[];c=c.dataGrouping&&c.dataGrouping.groupAll?g:0;var k,q,r=this.data;if(!r&&!m){var n=[];n.length=a.length;r=this.data=n}l&&m&&(this.options.keys=!1);for(q=0;q<e;q++){n=g+q;if(m){var u=(new f).init(this,[d[q]].concat(ha(b[q])));u.dataGroup=this.groupMap[c+q];u.dataGroup.options&&(u.options=
436
+ u.dataGroup.options,K(u,u.dataGroup.options),delete u.dataLabels)}else(u=r[n])||"undefined"===typeof a[n]||(r[n]=u=(new f).init(this,a[n],d[q]));u&&(u.index=m?c+q:n,h[q]=u)}this.options.keys=l;if(r&&(e!==(k=r.length)||m))for(q=0;q<k;q++)q!==g||m||(q+=e),r[q]&&(r[q].destroyElements(),r[q].plotX=void 0);this.data=r;this.points=h;I(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(c){return{min:m(c),max:z(c)}};b.prototype.getExtremes=function(c,a){var d=this.xAxis,b=this.yAxis,f=this.processedXData||
437
+ this.xData,e=[],g=this.requireSorting?this.cropShoulder:0;b=b?b.positiveValuesOnly:!1;var l,h=0,q=0,k=0;c=c||this.stackedYData||this.processedYData||[];var r=c.length;if(d){var n=d.getExtremes();h=n.min;q=n.max}for(l=0;l<r;l++){var u=f[l];n=c[l];var y=(O(n)||Q(n))&&(n.length||0<n||!b);u=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(f[l+g]||u)>=h&&(f[l-g]||u)<=q;if(y&&u)if(y=n.length)for(;y--;)O(n[y])&&(e[k++]=n[y]);else e[k++]=n}c={activeYData:e,dataMin:m(e),dataMax:z(e)};
438
+ I(this,"afterGetExtremes",{dataExtremes:c});return c};b.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};b.prototype.getFirstValidPoint=function(c){for(var a=c.length,d=0,b=null;null===b&&d<a;)b=c[d],d++;return b};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,d=a.stacking,b=this.xAxis,e=b.categories,g=this.enabledDataSorting,m=this.yAxis,l=this.points,h=l.length,q=
439
+ this.pointPlacementToXValue(),k=!!q,r=a.threshold,n=a.startFromThreshold?r:0,z=this.zoneAxis||"y",y,x,t=Number.MAX_VALUE;for(y=0;y<h;y++){var C=l[y],v=C.x,p=void 0,F=void 0,H=C.y,B=C.low,w=d&&m.stacking&&m.stacking.stacks[(this.negStacks&&H<(n?0:r)?"-":"")+this.stackKey];if(m.positiveValuesOnly&&!m.validatePositiveValue(H)||b.positiveValuesOnly&&!b.validatePositiveValue(v))C.isNull=!0;C.plotX=x=c(f(b.translate(v,0,0,0,1,q,"flags"===this.type),-1E5,1E5));if(d&&this.visible&&w&&w[v]){var A=this.getStackIndicator(A,
440
+ v,this.index);C.isNull||(p=w[v],F=p.points[A.key])}Q(F)&&(B=F[0],H=F[1],B===n&&A.key===w[v].base&&(B=J(O(r)&&r,m.min)),m.positiveValuesOnly&&0>=B&&(B=null),C.total=C.stackTotal=p.total,C.percentage=p.total&&C.y/p.total*100,C.stackY=H,this.irregularWidths||p.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=u(B)?f(m.translate(B,0,1,0,1),-1E5,1E5):null;this.dataModify&&(H=this.dataModify.modifyValue(H,y));C.plotY=void 0;O(H)&&(p=m.translate(H,!1,!0,!1,!0),"undefined"!==typeof p&&(C.plotY=f(p,
441
+ -1E5,1E5)));C.isInside=this.isPointInside(C);C.clientX=k?c(b.translate(v,0,0,0,1,q)):x;C.negative=C[z]<(a[z+"Threshold"]||r||0);C.category=e&&"undefined"!==typeof e[C.x]?e[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof D&&(t=Math.min(t,Math.abs(x-D)));var D=x}C.zone=this.zones.length?C.getZone():void 0;!C.graphic&&this.group&&g&&(C.isNew=!0)}this.closestPointRangePx=t;I(this,"afterTranslate")};b.prototype.getValidPoints=function(c,a,d){var b=this.chart;return(c||this.points||[]).filter(function(c){return a&&
442
+ !b.isInsidePlot(c.plotX,c.plotY,{inverted:b.inverted})?!1:!1!==c.visible&&(d||!c.isNull)})};b.prototype.getClipBox=function(){var c=this.chart,a=this.xAxis,d=this.yAxis,b=T(c.clipBox);a&&a.len!==c.plotSizeX&&(b.width=a.len);d&&d.len!==c.plotSizeY&&(b.height=d.len);return b};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var c=this.chart,a=this.group,d=this.markerGroup,b=c.sharedClips;c=c.renderer;
443
+ var f=this.getClipBox(),e=this.getSharedClipKey(),g=b[e];g?g.animate(f):b[e]=g=c.clipRect(f);a&&a.clip(!1===this.options.clip?void 0:g);d&&d.clip()};b.prototype.animate=function(c){var a=this.chart,d=this.group,b=this.markerGroup,f=a.inverted,e=h(this.options.animation),g=[this.getSharedClipKey(),e.duration,e.easing,e.defer].join(),m=a.sharedClips[g],l=a.sharedClips[g+"m"];if(c&&d)e=this.getClipBox(),m?m.attr("height",e.height):(e.width=0,f&&(e.x=a.plotHeight),m=a.renderer.clipRect(e),a.sharedClips[g]=
444
+ m,l=a.renderer.clipRect({x:f?(a.plotSizeX||0)+99:-99,y:f?-a.plotLeft:-a.plotTop,width:99,height:f?a.chartWidth:a.chartHeight}),a.sharedClips[g+"m"]=l),d.clip(m),b&&b.clip(l);else if(m&&!m.hasClass("highcharts-animating")){a=this.getClipBox();var q=e.step;b&&b.element.childNodes.length&&(e.step=function(c,a){q&&q.apply(a,arguments);l&&l.element&&l.attr(a.prop,"width"===a.prop?c+99:c)});m.addClass("highcharts-animating").animate(a,e)}};b.prototype.afterAnimate=function(){var c=this;this.setClip();G(this.chart.sharedClips,
445
+ function(a,d,b){a&&!c.chart.container.querySelector('[clip-path="url(#'+a.id+')"]')&&(a.destroy(),delete b[d])});this.finishedAnimating=!0;I(this,"afterAnimate")};b.prototype.drawPoints=function(){var c=this.points,a=this.chart,d=this.options.marker,b=this[this.specialGroup]||this.markerGroup,f=this.xAxis,e=J(d.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius),g,m;if(!1!==d.enabled||this._hasPointMarkers)for(g=0;g<c.length;g++){var l=c[g];var h=(m=l.graphic)?"animate":
446
+ "attr";var q=l.marker||{};var k=!!l.marker;if((e&&"undefined"===typeof q.enabled||q.enabled)&&!l.isNull&&!1!==l.visible){var r=J(q.symbol,this.symbol,"rect");var n=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=f.reversed?-(n.width||0):f.width);var u=!1!==l.isInside;m?m[u?"show":"hide"](u).animate(n):u&&(0<(n.width||0)||l.hasImage)&&(l.graphic=m=a.renderer.symbol(r,n.x,n.y,n.width,n.height,k?q:d).add(b),this.enabledDataSorting&&a.hasRendered&&(m.attr({x:l.startXPos}),
447
+ h="animate"));m&&"animate"===h&&m[u?"show":"hide"](u).animate(n);if(m&&!a.styledMode)m[h](this.pointAttribs(l,l.selected&&"select"));m&&m.addClass(l.getClassName(),!0)}else m&&(l.graphic=m.destroy())}};b.prototype.markerAttribs=function(c,a){var d=this.options,b=d.marker,f=c.marker||{},e=f.symbol||b.symbol,g=J(f.radius,b.radius);a&&(b=b.states[a],a=f.states&&f.states[a],g=J(a&&a.radius,b&&b.radius,g+(b&&b.radiusPlus||0)));c.hasImage=e&&0===e.indexOf("url");c.hasImage&&(g=0);c={x:d.crisp?Math.floor(c.plotX-
448
+ g):c.plotX-g,y:c.plotY-g};g&&(c.width=c.height=2*g);return c};b.prototype.pointAttribs=function(c,a){var d=this.options.marker,b=c&&c.options,f=b&&b.marker||{},e=b&&b.color,g=c&&c.color,m=c&&c.zone&&c.zone.color,l=this.color;c=J(f.lineWidth,d.lineWidth);b=1;l=e||m||g||l;e=f.fillColor||d.fillColor||l;g=f.lineColor||d.lineColor||l;a=a||"normal";d=d.states[a]||{};a=f.states&&f.states[a]||{};c=J(a.lineWidth,d.lineWidth,c+J(a.lineWidthPlus,d.lineWidthPlus,0));e=a.fillColor||d.fillColor||e;g=a.lineColor||
449
+ d.lineColor||g;b=J(a.opacity,d.opacity,b);return{stroke:g,"stroke-width":c,fill:e,opacity:b}};b.prototype.destroy=function(c){var a=this,d=a.chart,b=/AppleWebKit\/533/.test(C.navigator.userAgent),f=a.data||[],e,g,m,h;I(a,"destroy");this.removeEvents(c);(a.axisTypes||[]).forEach(function(c){(h=a[c])&&h.series&&(l(h.series,a),h.isDirty=h.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(g=f.length;g--;)(m=f[g])&&m.destroy&&m.destroy();a.clips&&a.clips.forEach(function(c){return c.destroy()});
450
+ n.clearTimeout(a.animationTimeout);G(a,function(c,a){c instanceof t&&!c.survive&&(e=b&&"group"===a?"hide":"destroy",c[e]())});d.hoverSeries===a&&(d.hoverSeries=void 0);l(d.series,a);d.orderSeries();G(a,function(d,b){c&&"hcEvents"===b||delete a[b]})};b.prototype.applyZones=function(){var c=this,a=this.chart,d=a.renderer,b=this.zones,e=this.clips||[],g=this.graph,m=this.area,l=Math.max(a.chartWidth,a.chartHeight),h=this[(this.zoneAxis||"y")+"Axis"],q=a.inverted,k,n,r,u,z,y,x,t,C=!1;if(b.length&&(g||
451
+ m)&&h&&"undefined"!==typeof h.min){var v=h.reversed;var p=h.horiz;g&&!this.showLine&&g.hide();m&&m.hide();var H=h.getExtremes();b.forEach(function(b,F){k=v?p?a.plotWidth:0:p?0:h.toPixels(H.min)||0;k=f(J(n,k),0,l);n=f(Math.round(h.toPixels(J(b.value,H.max),!0)||0),0,l);C&&(k=n=h.toPixels(H.max));u=Math.abs(k-n);z=Math.min(k,n);y=Math.max(k,n);h.isXAxis?(r={x:q?y:z,y:0,width:u,height:l},p||(r.x=a.plotHeight-r.x)):(r={x:0,y:q?y:z,width:l,height:u},p&&(r.y=a.plotWidth-r.y));q&&d.isVML&&(r=h.isXAxis?{x:0,
452
+ y:v?z:y,height:r.width,width:a.chartWidth}:{x:r.y-a.plotLeft-a.spacingBox.x,y:0,width:r.height,height:a.chartHeight});e[F]?e[F].animate(r):e[F]=d.clipRect(r);x=c["zone-area-"+F];t=c["zone-graph-"+F];g&&t&&t.clip(e[F]);m&&x&&x.clip(e[F]);C=b.value>H.max;c.resetZones&&0===n&&(n=void 0)});this.clips=e}else c.visible&&(g&&g.show(!0),m&&m.show(!0))};b.prototype.invertGroups=function(c){function a(){["group","markerGroup"].forEach(function(a){d[a]&&(b.renderer.isVML&&d[a].attr({width:d.yAxis.len,height:d.xAxis.len}),
453
+ d[a].width=d.yAxis.len,d[a].height=d.xAxis.len,d[a].invert(d.isRadialSeries?!1:c))})}var d=this,b=d.chart;d.xAxis&&(d.eventsToUnbind.push(q(b,"resize",a)),a(),d.invertGroups=a)};b.prototype.plotGroup=function(c,a,d,b,f){var e=this[c],g=!e;d={visibility:d,zIndex:b||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(d.opacity=this.opacity);g&&(this[c]=e=this.chart.renderer.g().add(f));e.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+
454
+ "-series "+(u(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);e.attr(d)[g?"attr":"animate"](this.getPlotBox());return e};b.prototype.getPlotBox=function(){var c=this.chart,a=this.xAxis,d=this.yAxis;c.inverted&&(a=d,d=this.xAxis);return{translateX:a?a.left:c.plotLeft,translateY:d?d.top:c.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(c){c||ba(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),
455
+ this.eventsToUnbind.length=0)};b.prototype.render=function(){var c=this,a=c.chart,d=c.options,b=h(d.animation),f=c.visible?"inherit":"hidden",e=d.zIndex,g=c.hasRendered,m=a.seriesGroup,l=a.inverted;a=!c.finishedAnimating&&a.renderer.isSVG?b.duration:0;I(this,"render");var q=c.plotGroup("group","series",f,e,m);c.markerGroup=c.plotGroup("markerGroup","markers",f,e,m);!1!==d.clip&&c.setClip();c.animate&&a&&c.animate(!0);q.inverted=J(c.invertible,c.isCartesian)?l:!1;c.drawGraph&&(c.drawGraph(),c.applyZones());
456
+ c.visible&&c.drawPoints();c.drawDataLabels&&c.drawDataLabels();c.redrawPoints&&c.redrawPoints();c.drawTracker&&!1!==c.options.enableMouseTracking&&c.drawTracker();c.invertGroups(l);c.animate&&a&&c.animate();g||(a&&b.defer&&(a+=b.defer),c.animationTimeout=L(function(){c.afterAnimate()},a||0));c.isDirty=!1;c.hasRendered=!0;I(c,"afterRender")};b.prototype.redraw=function(){var c=this.chart,a=this.isDirty||this.isDirtyData,d=this.group,b=this.xAxis,f=this.yAxis;d&&(c.inverted&&d.attr({width:c.plotWidth,
457
+ height:c.plotHeight}),d.animate({translateX:J(b&&b.left,c.plotLeft),translateY:J(f&&f.top,c.plotTop)}));this.translate();this.render();a&&delete this.kdTree};b.prototype.searchPoint=function(c,a){var d=this.xAxis,b=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?d.len-c.chartY+d.pos:c.chartX-d.pos,plotY:f?b.len-c.chartX+b.pos:c.chartY-b.pos},a,c)};b.prototype.buildKDTree=function(c){function a(c,b,f){var e=c&&c.length;if(e){var g=d.kdAxisArray[b%f];c.sort(function(c,a){return c[g]-
458
+ a[g]});e=Math.floor(e/2);return{point:c[e],left:a(c.slice(0,e),b+1,f),right:a(c.slice(e+1),b+1,f)}}}this.buildingKdTree=!0;var d=this,b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree;L(function(){d.kdTree=a(d.getValidPoints(null,!d.directTouch),b,b);d.buildingKdTree=!1},d.options.kdNow||c&&"touchstart"===c.type?0:1)};b.prototype.searchKDTree=function(c,a,d){function b(c,a,d,l){var h=a.point,q=f.kdAxisArray[d%l],k=h,r=u(c[e])&&u(h[e])?Math.pow(c[e]-h[e],2):null;var n=u(c[g])&&u(h[g])?
459
+ Math.pow(c[g]-h[g],2):null;n=(r||0)+(n||0);h.dist=u(n)?Math.sqrt(n):Number.MAX_VALUE;h.distX=u(r)?Math.sqrt(r):Number.MAX_VALUE;q=c[q]-h[q];n=0>q?"left":"right";r=0>q?"right":"left";a[n]&&(n=b(c,a[n],d+1,l),k=n[m]<k[m]?n:h);a[r]&&Math.sqrt(q*q)<k[m]&&(c=b(c,a[r],d+1,l),k=c[m]<k[m]?c:k);return k}var f=this,e=this.kdAxisArray[0],g=this.kdAxisArray[1],m=a?"distX":"dist";a=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return b(c,
460
+ this.kdTree,a,a)};b.prototype.pointPlacementToXValue=function(){var c=this.options,a=c.pointRange,d=this.xAxis;c=c.pointPlacement;"between"===c&&(c=d.reversed?-.5:.5);return O(c)?c*(a||d.pointRange):0};b.prototype.isPointInside=function(c){var a=this.chart,d=this.xAxis,b=this.yAxis;return"undefined"!==typeof c.plotY&&"undefined"!==typeof c.plotX&&0<=c.plotY&&c.plotY<=(b?b.len:a.plotHeight)&&0<=c.plotX&&c.plotX<=(d?d.len:a.plotWidth)};b.prototype.drawTracker=function(){var c=this,a=c.options,d=a.trackByArea,
461
+ b=[].concat(d?c.areaPath:c.graphPath),f=c.chart,e=f.pointer,m=f.renderer,l=f.options.tooltip.snap,h=c.tracker,q=function(a){if(f.hoverSeries!==c)c.onMouseOver()},k="rgba(192,192,192,"+(x?.0001:.002)+")";h?h.attr({d:b}):c.graph&&(c.tracker=m.path(b).attr({visibility:c.visible?"visible":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(c.group),f.styledMode||c.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:k,fill:d?k:"none","stroke-width":c.graph.strokeWidth()+
462
+ (d?0:2*l)}),[c.tracker,c.markerGroup,c.dataLabelsGroup].forEach(function(c){if(c&&(c.addClass("highcharts-tracker").on("mouseover",q).on("mouseout",function(c){e.onTrackerMouseOut(c)}),a.cursor&&!f.styledMode&&c.css({cursor:a.cursor}),g))c.on("touchstart",q)}));I(this,"afterDrawTracker")};b.prototype.addPoint=function(c,a,d,b,f){var e=this.options,g=this.data,m=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var h=e.data,q=this.xData,k;a=J(a,!0);var n={series:this};this.pointClass.prototype.applyOptions.apply(n,
463
+ [c]);var r=n.x;var u=q.length;if(this.requireSorting&&r<q[u-1])for(k=!0;u&&q[u-1]>r;)u--;this.updateParallelArrays(n,"splice",u,0,0);this.updateParallelArrays(n,u);l&&n.name&&(l[r]=n.name);h.splice(u,0,c);k&&(this.data.splice(u,0,null),this.processData());"point"===e.legendType&&this.generatePoints();d&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(n,"shift"),h.shift()));!1!==f&&I(this,"addPoint",{point:n});this.isDirtyData=this.isDirty=!0;a&&m.redraw(b)};b.prototype.removePoint=
464
+ function(c,a,b){var f=this,e=f.data,g=e[c],m=f.points,l=f.chart,h=function(){m&&m.length===e.length&&m.splice(c,1);e.splice(c,1);f.options.data.splice(c,1);f.updateParallelArrays(g||{series:f},"splice",c,1);g&&g.destroy();f.isDirty=!0;f.isDirtyData=!0;a&&l.redraw()};d(b,l);a=J(a,!0);g?g.firePointEvent("remove",null,h):h()};b.prototype.remove=function(c,a,d,b){function f(){e.destroy(b);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();J(c,!0)&&g.redraw(a)}var e=this,g=e.chart;!1!==d?I(e,"remove",null,
465
+ f):f()};b.prototype.update=function(c,a){c=y(c,this.userOptions);I(this,"update",{options:c});var d=this,b=d.chart,f=d.userOptions,e=d.initialType||d.type,g=b.options.plotOptions,m=r[e].prototype,l=d.finishedAnimating&&{animation:!1},h={},q,k=["eventOptions","navigatorSeries","baseSeries"],n=c.type||f.type||b.options.chart.type,u=!(this.hasDerivedData||n&&n!==this.type||"undefined"!==typeof c.pointStart||"undefined"!==typeof c.pointInterval||"undefined"!==typeof c.relativeXValue||d.hasOptionChanged("dataGrouping")||
466
+ d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys"));n=n||e;u&&(k.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&k.push("area","graph"),d.parallelArrays.forEach(function(c){k.push(c+"Data")}),c.data&&(c.dataSorting&&K(d.options.dataSorting,c.dataSorting),
467
+ this.setData(c.data,!1)));c=T(f,l,{index:"undefined"===typeof f.index?d.index:f.index,pointStart:J(g&&g.series&&g.series.pointStart,f.pointStart,d.xData[0])},!u&&{data:d.options.data},c);u&&c.data&&(c.data=d.options.data);k=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(k);k.forEach(function(c){k[c]=d[c];delete d[c]});g=!1;if(r[n]){if(g=n!==d.type,d.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(d,r[n].prototype);else{l=Object.hasOwnProperty.call(d,"hcEvents")&&
468
+ d.hcEvents;for(q in m)d[q]=void 0;K(d,r[n].prototype);l?d.hcEvents=l:delete d.hcEvents}}else v(17,!0,b,{missingModuleFor:n});k.forEach(function(c){d[c]=k[c]});d.init(b,c);if(u&&this.points){var z=d.options;!1===z.visible?(h.graphic=1,h.dataLabel=1):d._hasPointLabels||(c=z.marker,m=z.dataLabels,!c||!1!==c.enabled&&(f.marker&&f.marker.symbol)===c.symbol||(h.graphic=1),m&&!1===m.enabled&&(h.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(h).length&&c.destroyElements(h),
469
+ !1===z.showInLegend&&c.legendItem&&b.legend.destroyItem(c))},this)}d.initialType=e;b.linkSeries();g&&d.linkedSeries.length&&(d.isDirtyData=!0);I(this,"afterUpdate");J(a,!0)&&b.redraw(u?void 0:!1)};b.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(c){var a=this.options[c],d=this.chart.options.plotOptions,b=this.userOptions[c];return b?a!==b:a!==J(d&&d[this.type]&&d[this.type][c],d&&d.series&&d.series[c],
470
+ a)};b.prototype.onMouseOver=function(){var c=this.chart,a=c.hoverSeries;c.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&I(this,"mouseOver");this.setState("hover");c.hoverSeries=this};b.prototype.onMouseOut=function(){var c=this.options,a=this.chart,d=a.tooltip,b=a.hoverPoint;a.hoverSeries=null;if(b)b.onMouseOut();this&&c.events.mouseOut&&I(this,"mouseOut");!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide();a.series.forEach(function(c){c.setState("",
471
+ !0)})};b.prototype.setState=function(c,a){var d=this,b=d.options,f=d.graph,e=b.inactiveOtherPoints,g=b.states,m=J(g[c||"normal"]&&g[c||"normal"].animation,d.chart.options.chart.animation),l=b.lineWidth,h=0,q=b.opacity;c=c||"";if(d.state!==c&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(a){a&&(d.state&&a.removeClass("highcharts-series-"+d.state),c&&a.addClass("highcharts-series-"+c))}),d.state=c,!d.chart.styledMode)){if(g[c]&&!1===g[c].enabled)return;c&&(l=g[c].lineWidth||l+(g[c].lineWidthPlus||
472
+ 0),q=J(g[c].opacity,q));if(f&&!f.dashstyle)for(b={"stroke-width":l},f.animate(b,m);d["zone-graph-"+h];)d["zone-graph-"+h].animate(b,m),h+=1;e||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(c){c&&c.animate({opacity:q},m)})}a&&e&&d.points&&d.setAllPointsToState(c||void 0)};b.prototype.setAllPointsToState=function(c){this.points.forEach(function(a){a.setState&&a.setState(c)})};b.prototype.setVisible=function(c,a){var d=this,b=d.chart,f=d.legendItem,e=b.options.chart.ignoreHiddenSeries,
473
+ g=d.visible,m=(d.visible=c=d.options.visible=d.userOptions.visible="undefined"===typeof c?!g:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(d[c])d[c][m]()});if(b.hoverSeries===d||(b.hoverPoint&&b.hoverPoint.series)===d)d.onMouseOut();f&&b.legend.colorizeItem(d,c);d.isDirty=!0;d.options.stacking&&b.series.forEach(function(c){c.options.stacking&&c.visible&&(c.isDirty=!0)});d.linkedSeries.forEach(function(a){a.setVisible(c,!1)});e&&(b.isDirtyBox=!0);
474
+ I(d,m);!1!==a&&b.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);I(this,c?"select":"unselect")};b.prototype.shouldShowTooltip=function(c,a,d){void 0===d&&(d={});d.series=this;d.visiblePlotOnly=!0;return this.chart.isInsidePlot(c,a,d)};b.defaultOptions=B;return b}();K(b.prototype,{axisTypes:["xAxis",
475
+ "yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:w.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:D,requireSorting:!0,sorted:!0});k.series=b;"";"";return b});G(b,"Extensions/ScrollablePlotArea.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D){var v=b.stop,k=
476
+ D.addEvent,t=D.createElement,n=D.merge,h=D.pick;k(A,"afterSetChartSize",function(d){var a=this.options.chart.scrollablePlotArea,b=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(b){if(this.scrollablePixelsX=b=Math.max(0,b-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=n(this.plotBox);this.plotBox.width=this.plotWidth+=b;this.inverted?this.clipBox.height+=b:this.clipBox.width+=b;var g={1:{name:"right",value:b}}}}else a&&(this.scrollablePixelsY=b=Math.max(0,
477
+ a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=n(this.plotBox),this.plotBox.height=this.plotHeight+=b,this.inverted?this.clipBox.width+=b:this.clipBox.height+=b,g={2:{name:"bottom",value:b}});g&&!d.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var d=g[a.side].name,b=this[d];this[d]=b-g[a.side].value;var e=p.prototype.getPlotLinePath.apply(this,arguments);this[d]=b;return e}:(a.setAxisSize(),a.setAxisTranslation())})}});k(A,"render",function(){this.scrollablePixelsX||
478
+ this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var d=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=t("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=t("div",{className:"highcharts-scrolling"},
479
+ a,this.scrollingParent);k(this.scrollingContainer,"scroll",function(){d.pointer&&delete d.pointer.chartPosition});this.innerContainer=t("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var d=this.container,a=this.fixedRenderer,b=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
480
+ g;this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&b.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)");b.forEach(function(b){[].forEach.call(d.querySelectorAll(b),function(d){(d.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(d);d.style.pointerEvents="auto"})})};
481
+ A.prototype.applyFixed=function(){var d=!this.fixedDiv,a=this.options.chart,b=a.scrollablePlotArea,g=w.getRendererType();d?(this.fixedDiv=t("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new g(this.fixedDiv,this.chartWidth,this.chartHeight,
482
+ this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":h(b.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),k(this,"afterShowResetZoom",this.moveFixedElements),k(this,"afterDrilldown",this.moveFixedElements),k(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||d)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
483
+ (this.scrollablePixelsX||0);g=this.chartHeight+(this.scrollablePixelsY||0);v(this.container);this.container.style.width=a+"px";this.container.style.height=g+"px";this.renderer.boxWrapper.attr({width:a,height:g,viewBox:[0,0,a,g].join(" ")});this.chartBackground.attr({width:a,height:g});this.scrollingContainer.style.height=this.chartHeight+"px";d&&(b.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*b.scrollPositionX),b.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
484
+ b.scrollPositionY));g=this.axisOffset;d=this.plotTop-g[0]-1;b=this.plotLeft-g[3]-1;a=this.plotTop+this.plotHeight+g[2]+1;g=this.plotLeft+this.plotWidth+g[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),C=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);d=this.scrollablePixelsX?[["M",0,d],["L",this.plotLeft-1,d],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",n,d],["L",this.chartWidth,d],["L",this.chartWidth,a],["L",n,a],["Z"]]:this.scrollablePixelsY?[["M",b,0],["L",b,this.plotTop-
485
+ 1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",b,C],["L",b,this.chartHeight],["L",g,this.chartHeight],["L",g,C],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:d})};k(p,"afterInit",function(){this.chart.scrollableDirty=!0});k(E,"show",function(){this.chart.scrollableDirty=!0});""});G(b,"Core/Axis/StackingAxis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Utilities.js"]],function(b,p,A){var v=b.getDeferredAnimation,w=A.addEvent,D=
486
+ A.destroyObjectProperties,B=A.fireEvent,k=A.isNumber,t=A.objectEach,n;(function(b){function d(){var a=this.stacking;if(a){var d=a.stacks;t(d,function(a,b){D(a);d[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new g(this))}var e=[];b.compose=function(b){-1===e.indexOf(b)&&(e.push(b),w(b,"init",a),w(b,"destroy",d));return b};var g=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
487
+ function(){var a=this.axis,d=a.series,b=a.options.reversedStacks,e=d.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=e;g--;){var f=d[b?g:e-g-1];f.setStackedPoints();f.setGroupedPoints()}for(g=0;g<e;g++)d[g].modifyStacks();B(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;t(a,function(a){t(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,d=a.stacks;a.axis.isXAxis||t(d,function(d){t(d,
488
+ function(b,e){k(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete d[e]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,d=a.chart,b=d.renderer,e=this.stacks;a=v(d,a.options.stackLabels&&a.options.stackLabels.animation||!1);var g=this.stackTotalGroup=this.stackTotalGroup||b.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();g.translate(d.plotLeft,d.plotTop);t(e,function(a){t(a,function(a){a.render(g)})});g.animate({opacity:1},
489
+ a)};return a}();b.Additions=g})(n||(n={}));return n});G(b,"Extensions/Stacking.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Axis/StackingAxis.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D,B){var k=A.format,t=B.correctFloat,n=B.defined,h=B.destroyObjectProperties,d=B.isArray,a=B.isNumber,e=B.objectEach,g=B.pick,x=function(){function d(a,d,b,e,f){var g=a.chart.inverted;this.axis=a;this.isNegative=b;this.options=
490
+ d=d||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=f;this.rightCliff=this.leftCliff=0;this.alignOptions={align:d.align||(g?b?"left":"right":"center"),verticalAlign:d.verticalAlign||(g?"middle":b?"bottom":"top"),y:d.y,x:d.x};this.textAlign=d.textAlign||(g?b?"right":"left":"center")}d.prototype.destroy=function(){h(this,this.axis)};d.prototype.render=function(a){var d=this.axis.chart,b=this.options,e=b.format;e=e?k(e,this,d):b.formatter.call(this);this.label?this.label.attr({text:e,
491
+ visibility:"hidden"}):(this.label=d.renderer.label(e,null,null,b.shape,null,null,b.useHTML,!1,"stack-labels"),e={r:b.borderRadius||0,text:e,rotation:b.rotation,padding:g(b.padding,5),visibility:"hidden"},d.styledMode||(e.fill=b.backgroundColor,e.stroke=b.borderColor,e["stroke-width"]=b.borderWidth,this.label.css(b.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=d.plotSizeY};d.prototype.setOffset=function(d,b,e,m,f){var h=this.axis,c=h.chart;m=h.translate(h.stacking.usePercentage?
492
+ 100:m?m:this.total,0,0,0,1);e=h.translate(e?e:0);e=n(m)&&Math.abs(m-e);d=g(f,c.xAxis[0].translate(this.x))+d;h=n(m)&&this.getStackBox(c,this,d,m,b,e,h);b=this.label;e=this.isNegative;d="justify"===g(this.options.overflow,"justify");var k=this.textAlign;b&&h&&(f=b.getBBox(),m=b.padding,k="left"===k?c.inverted?-m:m:"right"===k?f.width:c.inverted&&"center"===k?f.width/2:c.inverted?e?f.width+m:-m:f.width/2,e=c.inverted?f.height/2:e?-m:f.height,this.alignOptions.x=g(this.options.x,0),this.alignOptions.y=
493
+ g(this.options.y,0),h.x-=k,h.y-=e,b.align(this.alignOptions,null,h),c.isInsidePlot(b.alignAttr.x+k-this.alignOptions.x,b.alignAttr.y+e-this.alignOptions.y)?b.show():(b.alignAttr.y=-9999,d=!1),d&&w.prototype.justifyDataLabel.call(this.axis,b,this.alignOptions,b.alignAttr,f,h),b.attr({x:b.alignAttr.x,y:b.alignAttr.y}),g(!d&&this.options.crop,!0)&&((c=a(b.x)&&a(b.y)&&c.isInsidePlot(b.x-m+b.width,b.y)&&c.isInsidePlot(b.x+m,b.y))||b.hide()))};d.prototype.getStackBox=function(a,d,b,e,f,g,c){var m=d.axis.reversed,
494
+ l=a.inverted,h=c.height+c.pos-(l?a.plotLeft:a.plotTop);d=d.isNegative&&!m||!d.isNegative&&m;return{x:l?d?e-c.right:e-g+c.pos-a.plotLeft:b+a.xAxis[0].transB-a.plotLeft,y:l?c.height-b-f:d?h-e-g:h-e,width:l?g:f,height:l?f:g}};return d}();p.prototype.getStacks=function(){var a=this,d=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(b){var e=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==
495
+ b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,g(b.options.stack,""),d?e.top:e.left,d?e.height:e.width].join())})};D.compose(b);w.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?w.prototype.setStackedPoints.call(this,"group"):a&&e(a.stacks,function(d,b){"group"===b.slice(-5)&&(e(d,function(a){return a.destroy()}),delete a.stacks[b])})};
496
+ w.prototype.setStackedPoints=function(a){var b=a||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,h=this.processedYData,m=[],f=h.length,k=this.options,c=k.threshold,u=g(k.startFromThreshold&&c,0);k=k.stack;a=a?this.type+","+b:this.stackKey;var l="-"+a,C=this.negStacks,p=this.yAxis,v=p.stacking.stacks,B=p.stacking.oldStacks,w,A;p.stacking.stacksTouched+=1;for(A=0;A<f;A++){var D=e[A];var E=h[A];var T=this.getStackIndicator(T,
497
+ D,this.index);var G=T.key;var J=(w=C&&E<(u?0:c))?l:a;v[J]||(v[J]={});v[J][D]||(B[J]&&B[J][D]?(v[J][D]=B[J][D],v[J][D].total=null):v[J][D]=new x(p,p.options.stackLabels,w,D,k));J=v[J][D];null!==E?(J.points[G]=J.points[this.index]=[g(J.cumulative,u)],n(J.cumulative)||(J.base=G),J.touched=p.stacking.stacksTouched,0<T.index&&!1===this.singleStacks&&(J.points[G][0]=J.points[this.index+","+D+",0"][0])):J.points[G]=J.points[this.index]=null;"percent"===b?(w=w?a:l,C&&v[w]&&v[w][D]?(w=v[w][D],J.total=w.total=
498
+ Math.max(w.total,J.total)+Math.abs(E)||0):J.total=t(J.total+(Math.abs(E)||0))):"group"===b?(d(E)&&(E=E[0]),null!==E&&(J.total=(J.total||0)+1)):J.total=t(J.total+(E||0));J.cumulative="group"===b?(J.total||1)-1:g(J.cumulative,u)+(E||0);null!==E&&(J.points[G].push(J.cumulative),m[A]=J.cumulative,J.hasValidPoints=!0)}"percent"===b&&(p.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=m);p.stacking.oldStacks={}}};w.prototype.modifyStacks=function(){var a=this,d=a.stackKey,b=a.yAxis.stacking.stacks,
499
+ e=a.processedXData,g,f=a.options.stacking;a[f+"Stacker"]&&[d,"-"+d].forEach(function(d){for(var c=e.length,m,l;c--;)if(m=e[c],g=a.getStackIndicator(g,m,a.index,d),l=(m=b[d]&&b[d][m])&&m.points[g.key])a[f+"Stacker"](l,m,c)})};w.prototype.percentStacker=function(a,d,b){d=d.total?100/d.total:0;a[0]=t(a[0]*d);a[1]=t(a[1]*d);this.stackedYData[b]=a[1]};w.prototype.getStackIndicator=function(a,d,b,e){!n(a)||a.x!==d||e&&a.key!==e?a={x:d,index:0,key:e}:a.index++;a.key=[b,d,a.index].join();return a};E.StackItem=
500
+ x;"";return E.StackItem});G(b,"Series/Line/LineSeries.js",[b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var b=function(k,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var d in h)h.hasOwnProperty(d)&&(b[d]=h[d])};return b(k,t)};return function(k,t){function n(){this.constructor=k}b(k,t);k.prototype=null===t?Object.create(t):(n.prototype=t.prototype,
501
+ new n)}}(),w=A.defined,D=A.merge;A=function(p){function k(){var b=null!==p&&p.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}v(k,p);k.prototype.drawGraph=function(){var b=this,k=this.options,h=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,a=[["graph","highcharts-graph"]];d||a[0].push(k.lineColor||this.color||"#cccccc",k.dashStyle);a=b.getZonesGraphs(a);a.forEach(function(a,g){var e=a[0],n=b[e],r=n?"animate":"attr";n?(n.endX=b.preventGraphAnimation?
502
+ null:h.xMap,n.animate({d:h})):h.length&&(b[e]=n=b.chart.renderer.path(h).addClass(a[1]).attr({zIndex:1}).add(b.group));n&&!d&&(e={stroke:a[2],"stroke-width":k.lineWidth,fill:b.fillGraph&&b.color||"none"},a[3]?e.dashstyle=a[3]:"square"!==k.linecap&&(e["stroke-linecap"]=e["stroke-linejoin"]="round"),n[r](e).shadow(2>g&&k.shadow));n&&(n.startX=h.xMap,n.isArea=h.isArea)})};k.prototype.getGraphPath=function(b,k,h){var d=this,a=d.options,e=[],g=[],n,t=a.step;b=b||d.points;var r=b.reversed;r&&b.reverse();
503
+ (t={right:1,center:2}[t]||t&&3)&&r&&(t=4-t);b=this.getValidPoints(b,!1,!(a.connectNulls&&!k&&!h));b.forEach(function(q,r){var m=q.plotX,f=q.plotY,y=b[r-1];(q.leftCliff||y&&y.rightCliff)&&!h&&(n=!0);q.isNull&&!w(k)&&0<r?n=!a.connectNulls:q.isNull&&!k?n=!0:(0===r||n?r=[["M",q.plotX,q.plotY]]:d.getPointSpline?r=[d.getPointSpline(b,q,r)]:t?(r=1===t?[["L",y.plotX,f]]:2===t?[["L",(y.plotX+m)/2,y.plotY],["L",(y.plotX+m)/2,f]]:[["L",m,y.plotY]],r.push(["L",m,f])):r=[["L",m,f]],g.push(q.x),t&&(g.push(q.x),
504
+ 2===t&&g.push(q.x)),e.push.apply(e,r),n=!1)});e.xMap=g;return d.graphPath=e};k.prototype.getZonesGraphs=function(b){this.zones.forEach(function(k,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(k.className||"")];this.chart.styledMode||h.push(k.color||this.color,k.dashStyle||this.options.dashStyle);b.push(h)},this);return b};k.defaultOptions=D(b.defaultOptions,{});return k}(b);p.registerSeriesType("line",A);"";return A});G(b,"Series/Area/AreaSeries.js",[b["Core/Color/Color.js"],
505
+ b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E){var v=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return b(d,a)};return function(d,a){function e(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),D=b.parse,B=A.seriesTypes.line;b=
506
+ E.extend;var k=E.merge,t=E.objectEach,n=E.pick;E=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(d,b);d.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,d=this.areaPath,g=this.options,h=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(d,b){h.push(["zone-area-"+b,"highcharts-area highcharts-zone-area-"+b+" "+d.className,d.color||a.color,d.fillColor||
507
+ g.fillColor])});h.forEach(function(b){var e=b[0],h=a[e],k=h?"animate":"attr",m={};h?(h.endX=a.preventGraphAnimation?null:d.xMap,h.animate({d:d})):(m.zIndex=0,h=a[e]=a.chart.renderer.path(d).addClass(b[1]).add(a.group),h.isArea=!0);a.chart.styledMode||(m.fill=n(b[3],D(b[2]).setOpacity(n(g.fillOpacity,.75)).get()));h[k](m);h.startX=d.xMap;h.shiftUnit=g.step?2:1})};d.prototype.getGraphPath=function(a){var d=B.prototype.getGraphPath,b=this.options,h=b.stacking,k=this.yAxis,r,q=[],t=[],m=this.index,f=
508
+ k.stacking.stacks[this.stackKey],y=b.threshold,c=Math.round(k.getThreshold(b.threshold));b=n(b.connectNulls,"percent"===h);var u=function(d,b,e){var g=a[d];d=h&&f[g.x].points[m];var l=g[e+"Null"]||0;e=g[e+"Cliff"]||0;g=!0;if(e||l){var n=(l?d[0]:d[1])+e;var u=d[0]+e;g=!!l}else!h&&a[b]&&a[b].isNull&&(n=u=y);"undefined"!==typeof n&&(t.push({plotX:p,plotY:null===n?c:k.getThreshold(n),isNull:g,isCliff:!0}),q.push({plotX:p,plotY:null===u?c:k.getThreshold(u),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));
509
+ for(r=0;r<a.length;r++){h||(a[r].leftCliff=a[r].rightCliff=a[r].leftNull=a[r].rightNull=void 0);var l=a[r].isNull;var p=n(a[r].rectPlotX,a[r].plotX);var v=h?n(a[r].yBottom,c):c;if(!l||b)b||u(r,r-1,"left"),l&&!h&&b||(t.push(a[r]),q.push({x:r,plotX:p,plotY:v})),b||u(r,r+1,"right")}r=d.call(this,t,!0,!0);q.reversed=!0;l=d.call(this,q,!0,!0);(v=l[0])&&"M"===v[0]&&(l[0]=["L",v[1],v[2]]);l=r.concat(l);l.length&&l.push(["Z"]);d=d.call(this,t,!1,b);l.xMap=r.xMap;this.areaPath=l;return d};d.prototype.getStackPoints=
510
+ function(a){var d=this,b=[],h=[],k=this.xAxis,r=this.yAxis,q=r.stacking.stacks[this.stackKey],z={},m=r.series,f=m.length,y=r.options.reversedStacks?1:-1,c=m.indexOf(d);a=a||this.points;if(this.options.stacking){for(var u=0;u<a.length;u++)a[u].leftNull=a[u].rightNull=void 0,z[a[u].x]=a[u];t(q,function(c,a){null!==c.total&&h.push(a)});h.sort(function(c,a){return c-a});var l=m.map(function(c){return c.visible});h.forEach(function(a,e){var g=0,u,t;if(z[a]&&!z[a].isNull)b.push(z[a]),[-1,1].forEach(function(b){var g=
511
+ 1===b?"rightNull":"leftNull",k=0,n=q[h[e+b]];if(n)for(var r=c;0<=r&&r<f;){var x=m[r].index;u=n.points[x];u||(x===d.index?z[a][g]=!0:l[r]&&(t=q[a].points[x])&&(k-=t[1]-t[0]));r+=y}z[a][1===b?"rightCliff":"leftCliff"]=k});else{for(var x=c;0<=x&&x<f;){if(u=q[a].points[m[x].index]){g=u[1];break}x+=y}g=n(g,0);g=r.translate(g,0,1,0,1);b.push({isNull:!0,plotX:k.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return b};d.defaultOptions=k(B.defaultOptions,{threshold:0});return d}(B);b(E.prototype,{singleStacks:!1,
512
+ drawLegendSymbol:p.drawRectangle});A.registerSeriesType("area",E);"";return E});G(b,"Series/Spline/SplineSeries.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__extends||function(){var b=function(k,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var d in h)h.hasOwnProperty(d)&&(b[d]=h[d])};return b(k,t)};return function(k,t){function n(){this.constructor=k}b(k,t);k.prototype=null===t?Object.create(t):
513
+ (n.prototype=t.prototype,new n)}}(),E=b.seriesTypes.line,w=p.merge,D=p.pick;p=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.data=void 0;k.options=void 0;k.points=void 0;return k}v(k,b);k.prototype.getPointSpline=function(b,k,h){var d=k.plotX||0,a=k.plotY||0,e=b[h-1];h=b[h+1];if(e&&!e.isNull&&!1!==e.doCurve&&!k.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!k.isCliff){b=e.plotY||0;var g=h.plotX||0;h=h.plotY||0;var n=0;var t=(1.5*d+(e.plotX||0))/2.5;var r=(1.5*a+b)/2.5;g=(1.5*d+
514
+ g)/2.5;var q=(1.5*a+h)/2.5;g!==t&&(n=(q-r)*(g-d)/(g-t)+a-q);r+=n;q+=n;r>b&&r>a?(r=Math.max(b,a),q=2*a-r):r<b&&r<a&&(r=Math.min(b,a),q=2*a-r);q>h&&q>a?(q=Math.max(h,a),r=2*a-q):q<h&&q<a&&(q=Math.min(h,a),r=2*a-q);k.rightContX=g;k.rightContY=q}k=["C",D(e.rightContX,e.plotX,0),D(e.rightContY,e.plotY,0),D(t,d,0),D(r,a,0),d,a];e.rightContX=e.rightContY=void 0;return k};k.defaultOptions=w(E.defaultOptions);return k}(E);b.registerSeriesType("spline",p);"";return p});G(b,"Series/AreaSpline/AreaSplineSeries.js",
515
+ [b["Series/Area/AreaSeries.js"],b["Series/Spline/SplineSeries.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E,w){var v=this&&this.__extends||function(){var b=function(h,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return b(h,d)};return function(h,d){function a(){this.constructor=h}b(h,d);h.prototype=null===d?Object.create(d):
516
+ (a.prototype=d.prototype,new a)}}(),B=b.prototype,k=w.extend,t=w.merge;w=function(k){function h(){var d=null!==k&&k.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}v(h,k);h.defaultOptions=t(p.defaultOptions,b.defaultOptions);return h}(p);k(w.prototype,{getGraphPath:B.getGraphPath,getStackPoints:B.getStackPoints,drawGraph:B.drawGraph,drawLegendSymbol:A.drawRectangle});E.registerSeriesType("areaspline",w);"";return w});G(b,"Series/Column/ColumnSeries.js",[b["Core/Animation/AnimationUtilities.js"],
517
+ b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D,B){var k=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d])};return a(d,c)};return function(d,c){function b(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):
518
+ (b.prototype=c.prototype,new b)}}(),t=b.animObject,n=p.parse,h=A.hasTouch;b=A.noop;var d=B.clamp,a=B.css,e=B.defined,g=B.extend,x=B.fireEvent,v=B.isArray,r=B.isNumber,q=B.merge,z=B.pick,m=B.objectEach;B=function(b){function f(){var c=null!==b&&b.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}k(f,b);f.prototype.animate=function(c){var a=this,b=this.yAxis,f=a.options,e=this.chart.inverted,m={},h=e?"translateX":"translateY";if(c)m.scaleY=
519
+ .001,c=d(b.toPixels(f.threshold),b.pos,b.pos+b.len),e?m.translateX=c-b.len:m.translateY=c,a.clipBox&&a.setClip(),a.group.attr(m);else{var k=Number(a.group.attr(h));a.group.animate({scaleY:1},g(t(a.options.animation),{step:function(c,d){a.group&&(m[h]=k+d.pos*(b.pos-k),a.group.attr(m))}}))}};f.prototype.init=function(c,a){b.prototype.init.apply(this,arguments);var d=this;c=d.chart;c.hasRendered&&c.series.forEach(function(c){c.type===d.type&&(c.isDirty=!0)})};f.prototype.getColumnMetrics=function(){var c=
520
+ this,a=c.options,d=c.xAxis,b=c.yAxis,f=d.options.reversedStacks;f=d.reversed&&!f||!d.reversed&&f;var e={},g,m=0;!1===a.grouping?m=1:c.chart.series.forEach(function(a){var d=a.yAxis,f=a.options;if(a.type===c.type&&(a.visible||!c.chart.options.chart.ignoreHiddenSeries)&&b.len===d.len&&b.pos===d.pos){if(f.stacking&&"group"!==f.stacking){g=a.stackKey;"undefined"===typeof e[g]&&(e[g]=m++);var h=e[g]}else!1!==f.grouping&&(h=m++);a.columnIndex=h}});var h=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||
521
+ a.pointRange||d.closestPointRange||d.tickInterval||1),d.len),k=h*a.groupPadding,q=(h-2*k)/(m||1);a=Math.min(a.maxPointWidth||d.len,z(a.pointWidth,q*(1-2*a.pointPadding)));c.columnMetrics={width:a,offset:(q-a)/2+(k+((c.columnIndex||0)+(f?1:0))*q-h/2)*(f?-1:1),paddedWidth:q,columnCount:m};return c.columnMetrics};f.prototype.crispCol=function(c,a,d,b){var f=this.chart,e=this.borderWidth,g=-(e%2?.5:0);e=e%2?.5:1;f.inverted&&f.renderer.isVML&&(e+=1);this.options.crisp&&(d=Math.round(c+d)+g,c=Math.round(c)+
522
+ g,d-=c);b=Math.round(a+b)+e;g=.5>=Math.abs(a)&&.5<b;a=Math.round(a)+e;b-=a;g&&b&&(--a,b+=1);return{x:c,y:a,width:d,height:b}};f.prototype.adjustForMissingColumns=function(c,a,d,b){var f=this,e=this.options.stacking;if(!d.isNull&&1<b.columnCount){var g=0,h=0;m(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(c){if("number"===typeof d.x&&(c=c[d.x.toString()])){var a=c.points[f.index],b=c.total;e?(a&&(g=h),c.hasValidPoints&&h++):v(a)&&(g=a[1],h=b||0)}});c=(d.plotX||0)+((h-1)*b.paddedWidth+a)/
523
+ 2-a-g*b.paddedWidth}return c};f.prototype.translate=function(){var c=this,a=c.chart,b=c.options,f=c.dense=2>c.closestPointRange*c.xAxis.transA;f=c.borderWidth=z(b.borderWidth,f?0:1);var g=c.xAxis,m=c.yAxis,h=b.threshold,k=c.translatedThreshold=m.getThreshold(h),q=z(b.minPointLength,5),n=c.getColumnMetrics(),y=n.width,t=c.pointXOffset=n.offset,x=c.dataMin,p=c.dataMax,v=c.barW=Math.max(y,1+2*f);a.inverted&&(k-=.5);b.pointPadding&&(v=Math.ceil(v));w.prototype.translate.apply(c);c.points.forEach(function(f){var l=
524
+ z(f.yBottom,k),u=999+Math.abs(l),C=f.plotX||0;u=d(f.plotY,-u,m.len+u);var w=Math.min(u,l),B=Math.max(u,l)-w,F=y,A=C+t,D=v;q&&Math.abs(B)<q&&(B=q,C=!m.reversed&&!f.negative||m.reversed&&f.negative,r(h)&&r(p)&&f.y===h&&p<=h&&(m.min||0)<h&&(x!==p||(m.max||0)<=h)&&(C=!C),w=Math.abs(w-k)>q?l-q:k-(C?q:0));e(f.options.pointWidth)&&(F=D=Math.ceil(f.options.pointWidth),A-=Math.round((F-y)/2));b.centerInCategory&&(A=c.adjustForMissingColumns(A,F,f,n));f.barX=A;f.pointWidth=F;f.tooltipPos=a.inverted?[d(m.len+
525
+ m.pos-a.plotLeft-u,m.pos-a.plotLeft,m.len+m.pos-a.plotLeft),g.len+g.pos-a.plotTop-A-D/2,B]:[g.left-a.plotLeft+A+D/2,d(u+m.pos-a.plotTop,m.pos-a.plotTop,m.len+m.pos-a.plotTop),B];f.shapeType=c.pointClass.prototype.shapeType||"rect";f.shapeArgs=c.crispCol.apply(c,f.isNull?[A,k,D,0]:[A,w,D,B])})};f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(c,a){var d=this.options,b=this.pointAttrToOptions||{},f=b.stroke||
526
+ "borderColor",e=b["stroke-width"]||"borderWidth",g=c&&c.color||this.color,m=c&&c[f]||d[f]||g;b=c&&c.options.dashStyle||d.dashStyle;var h=c&&c[e]||d[e]||this[e]||0,k=z(c&&c.opacity,d.opacity,1);if(c&&this.zones.length){var r=c.getZone();g=c.options.color||r&&(r.color||c.nonZonedColor)||this.color;r&&(m=r.borderColor||m,b=r.dashStyle||b,h=r.borderWidth||h)}a&&c&&(c=q(d.states[a],c.options.states&&c.options.states[a]||{}),a=c.brightness,g=c.color||"undefined"!==typeof a&&n(g).brighten(c.brightness).get()||
527
+ g,m=c[f]||m,h=c[e]||h,b=c.dashStyle||b,k=z(c.opacity,k));f={fill:g,stroke:m,"stroke-width":h,opacity:k};b&&(f.dashstyle=b);return f};f.prototype.drawPoints=function(){var c=this,a=this.chart,d=c.options,b=a.renderer,f=d.animationLimit||250,e;c.points.forEach(function(g){var m=g.graphic,h=!!m,l=m&&a.pointCount<f?"animate":"attr";if(r(g.plotY)&&null!==g.y){e=g.shapeArgs;m&&g.hasNewShapeType()&&(m=m.destroy());c.enabledDataSorting&&(g.startXPos=c.xAxis.reversed?-(e?e.width||0:0):c.xAxis.width);m||(g.graphic=
528
+ m=b[g.shapeType](e).add(g.group||c.group))&&c.enabledDataSorting&&a.hasRendered&&a.pointCount<f&&(m.attr({x:g.startXPos}),h=!0,l="animate");if(m&&h)m[l](q(e));if(d.borderRadius)m[l]({r:d.borderRadius});a.styledMode||m[l](c.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);m&&(m.addClass(g.getClassName(),!0),m.attr({visibility:g.visible?"inherit":"hidden"}))}else m&&(g.graphic=m.destroy())})};f.prototype.drawTracker=function(){var c=this,d=
529
+ c.chart,b=d.pointer,f=function(c){var a=b.getPointFromEvent(c);"undefined"!==typeof a&&(b.isDirectTouch=!0,a.onMouseOver(c))},e;c.points.forEach(function(c){e=v(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[];c.graphic&&(c.graphic.element.point=c);e.forEach(function(a){a.div?a.div.point=c:a.element.point=c})});c._hasTracking||(c.trackerGroups.forEach(function(e){if(c[e]){c[e].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(c){b.onTrackerMouseOut(c)});if(h)c[e].on("touchstart",
530
+ f);!d.styledMode&&c.options.cursor&&c[e].css(a).css({cursor:c.options.cursor})}}),c._hasTracking=!0);x(this,"afterDrawTracker")};f.prototype.remove=function(){var c=this,a=c.chart;a.hasRendered&&a.series.forEach(function(a){a.type===c.type&&(a.isDirty=!0)});w.prototype.remove.apply(c,arguments)};f.defaultOptions=q(w.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
531
+ select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return f}(w);g(B.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:E.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});D.registerSeriesType("column",B);"";"";return B});G(b,"Core/Series/DataLabel.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],
532
+ b["Core/Utilities.js"]],function(b,p,A){var v=b.getDeferredAnimation,w=p.format,D=A.defined,B=A.extend,k=A.fireEvent,t=A.isArray,n=A.merge,h=A.objectEach,d=A.pick,a=A.splat,e;(function(b){function e(a,c,b,f,e){var g=this,m=this.chart,h=this.isCartesian&&m.inverted,l=this.enabledDataSorting,k=d(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),q=d(a.plotY,-9999),n=c.getBBox(),r=b.rotation,u=b.align,t=m.isInsidePlot(k,Math.round(q),{inverted:h,paneCoordinates:!0,series:g}),y=function(d){l&&g.xAxis&&!z&&g.setDataLabelStartPos(a,
533
+ c,e,t,d)},z="justify"===d(b.overflow,l?"none":"justify"),x=this.visible&&!1!==a.visible&&(a.series.forceDL||l&&!z||t||d(b.inside,!!this.options.stacking)&&f&&m.isInsidePlot(k,h?f.x+1:f.y+f.height-1,{inverted:h,paneCoordinates:!0,series:g}));if(x){var p=m.renderer.fontMetrics(m.styledMode?void 0:b.style.fontSize,c).b;f=B({x:h?this.yAxis.len-q:k,y:Math.round(h?this.xAxis.len-k:q),width:0,height:0},f);B(b,{width:n.width,height:n.height});r?(z=!1,k=m.renderer.rotCorr(p,r),k={x:f.x+(b.x||0)+f.width/2+
534
+ k.x,y:f.y+(b.y||0)+{top:0,middle:.5,bottom:1}[b.verticalAlign]*f.height},y(k),c[e?"attr":"animate"](k).attr({align:u}),y=(r+720)%360,y=180<y&&360>y,"left"===u?k.y-=y?n.height:0:"center"===u?(k.x-=n.width/2,k.y-=n.height/2):"right"===u&&(k.x-=n.width,k.y-=y?0:n.height),c.placed=!0,c.alignAttr=k):(y(f),c.align(b,void 0,f),k=c.alignAttr);z&&0<=f.height?this.justifyDataLabel(c,b,k,n,f,e):d(b.crop,!0)&&(x=m.isInsidePlot(k.x,k.y,{paneCoordinates:!0,series:g})&&m.isInsidePlot(k.x+n.width,k.y+n.height,{paneCoordinates:!0,
535
+ series:g}));if(b.shape&&!r)c[e?"attr":"animate"]({anchorX:h?m.plotWidth-a.plotY:a.plotX,anchorY:h?m.plotHeight-a.plotX:a.plotY})}e&&l&&(c.placed=!1);x||l&&!z||(c.hide(!0),c.placed=!1)}function g(a,c){var d=c.filter;return d?(c=d.operator,a=a[d.property],d=d.value,">"===c&&a>d||"<"===c&&a<d||">="===c&&a>=d||"<="===c&&a<=d||"=="===c&&a==d||"==="===c&&a===d?!0:!1):!0}function r(){var b=this,c=b.chart,f=b.options,e=b.points,m=b.hasRendered||0,q=c.renderer,n=f.dataLabels,r,x=n.animation;x=n.defer?v(c,
536
+ x,b):{defer:0,duration:0};n=z(z(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[b.type]&&c.options.plotOptions[b.type].dataLabels),n);k(this,"drawDataLabels");if(t(n)||n.enabled||b._hasPointLabels){var p=b.plotGroup("dataLabelsGroup","data-labels",m?"inherit":"hidden",n.zIndex||6);p.attr({opacity:+m});!m&&(m=b.dataLabelsGroup)&&(b.visible&&p.show(!0),m[f.animation?"animate":"attr"]({opacity:1},x));e.forEach(function(e){r=
537
+ a(z(n,e.dlOptions||e.options&&e.options.dataLabels));r.forEach(function(a,m){var l=a.enabled&&(!e.isNull||e.dataLabelOnNull)&&g(e,a),k=e.connectors?e.connectors[m]:e.connector,n=e.dataLabels?e.dataLabels[m]:e.dataLabel,r=d(a.distance,e.labelDistance),u=!n;if(l){var t=e.getLabelConfig();var z=d(a[e.formatPrefix+"Format"],a.format);t=D(z)?w(z,t,c):(a[e.formatPrefix+"Formatter"]||a.formatter).call(t,a);z=a.style;var y=a.rotation;c.styledMode||(z.color=d(a.color,z.color,b.color,"#000000"),"contrast"===
538
+ z.color?(e.contrastColor=q.getContrast(e.color||b.color),z.color=!D(r)&&a.inside||0>r||f.stacking?e.contrastColor:"#000000"):delete e.contrastColor,f.cursor&&(z.cursor=f.cursor));var x={r:a.borderRadius||0,rotation:y,padding:a.padding,zIndex:1};c.styledMode||(x.fill=a.backgroundColor,x.stroke=a.borderColor,x["stroke-width"]=a.borderWidth);h(x,function(c,a){"undefined"===typeof c&&delete x[a]})}!n||l&&D(t)&&!!n.div===!!a.useHTML||(e.dataLabel=n=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===
539
+ e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[m]),m||delete e.dataLabel,k&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[m])));l&&D(t)&&(n?x.text=t:(e.dataLabels=e.dataLabels||[],n=e.dataLabels[m]=y?q.text(t,0,-9999,a.useHTML).addClass("highcharts-data-label"):q.label(t,0,-9999,a.shape,null,null,a.useHTML,null,"data-label"),m||(e.dataLabel=n),n.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(a.className||
540
+ "")+(a.useHTML?" highcharts-tracker":""))),n.options=a,n.attr(x),c.styledMode||n.css(z).shadow(a.shadow),n.added||n.add(p),a.textPath&&!a.useHTML&&(n.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(n)||e.graphic,a.textPath),e.dataLabelPath&&!a.textPath.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),b.alignDataLabel(e,n,a,null,u))})})}k(this,"afterDrawDataLabels")}function q(a,c,d,b,f,e){var g=this.chart,m=c.align,h=c.verticalAlign,l=a.box?0:a.padding||0,k=c.x;k=void 0===k?0:k;var n=c.y;
541
+ n=void 0===n?0:n;var q=(d.x||0)+l;if(0>q){"right"===m&&0<=k?(c.align="left",c.inside=!0):k-=q;var r=!0}q=(d.x||0)+b.width-l;q>g.plotWidth&&("left"===m&&0>=k?(c.align="right",c.inside=!0):k+=g.plotWidth-q,r=!0);q=d.y+l;0>q&&("bottom"===h&&0<=n?(c.verticalAlign="top",c.inside=!0):n-=q,r=!0);q=(d.y||0)+b.height-l;q>g.plotHeight&&("top"===h&&0>=n?(c.verticalAlign="bottom",c.inside=!0):n+=g.plotHeight-q,r=!0);r&&(c.x=k,c.y=n,a.placed=!e,a.align(c,void 0,f));return r}function z(a,c){var d=[],b;if(t(a)&&
542
+ !t(c))d=a.map(function(a){return n(a,c)});else if(t(c)&&!t(a))d=c.map(function(c){return n(a,c)});else if(t(a)||t(c))for(b=Math.max(a.length,c.length);b--;)d[b]=n(a[b],c[b]);else d=n(a,c);return d}function m(a,c,d,b,f){var e=this.chart,g=e.inverted,m=this.xAxis,h=m.reversed,l=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?f.x:h?-l-a:m.width-l+a;c.startYPos=g?h?this.yAxis.height-l+a:-l-a:f.y;b?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},
543
+ void 0,c.hide);e.hasRendered&&(d&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var f=[];b.compose=function(a){if(-1===f.indexOf(a)){var c=a.prototype;f.push(a);c.alignDataLabel=e;c.drawDataLabels=r;c.justifyDataLabel=q;c.setDataLabelStartPos=m}}})(e||(e={}));"";return e});G(b,"Series/Column/ColumnDataLabel.js",[b["Core/Series/DataLabel.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A){var v=p.series,w=A.merge,D=A.pick,B;(function(k){function t(b,d,a,e,g){var h=
544
+ this.chart.inverted,k=b.series,n=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var q=b.dlBox||b.shapeArgs,t=D(b.below,b.plotY>D(this.translatedThreshold,k)),m=D(a.inside,!!this.options.stacking);q&&(e=w(q),0>e.y&&(e.height+=e.y,e.y=0),q=e.y+e.height-k,0<q&&q<e.height&&(e.height-=q),h&&(e={x:k-e.y-e.height,y:n-e.x-e.width,width:e.height,height:e.width}),m||(h?(e.x+=t?0:e.width,e.width=0):(e.y+=t?e.height:0,e.height=0)));a.align=D(a.align,!h||m?"center":
545
+ t?"right":"left");a.verticalAlign=D(a.verticalAlign,h||m?"middle":t?"top":"bottom");v.prototype.alignDataLabel.call(this,b,d,a,e,g);a.inside&&b.contrastColor&&d.css({color:b.contrastColor})}var n=[];k.compose=function(h){b.compose(v);-1===n.indexOf(h)&&(n.push(h),h.prototype.alignDataLabel=t)}})(B||(B={}));return B});G(b,"Series/Bar/BarSeries.js",[b["Series/Column/ColumnSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var b=
546
+ function(k,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var d in h)h.hasOwnProperty(d)&&(b[d]=h[d])};return b(k,t)};return function(k,t){function n(){this.constructor=k}b(k,t);k.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),w=A.extend,D=A.merge;A=function(p){function k(){var b=null!==p&&p.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}v(k,p);k.defaultOptions=D(b.defaultOptions,
547
+ {});return k}(b);w(A.prototype,{inverted:!0});p.registerSeriesType("bar",A);"";return A});G(b,"Series/Scatter/ScatterSeries.js",[b["Series/Column/ColumnSeries.js"],b["Series/Line/LineSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E){var v=this&&this.__extends||function(){var b=function(k,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var b in a)a.hasOwnProperty(b)&&(d[b]=a[b])};return b(k,h)};return function(k,
548
+ h){function d(){this.constructor=k}b(k,h);k.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),D=E.addEvent,B=E.extend,k=E.merge;E=function(b){function n(){var h=null!==b&&b.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}v(n,b);n.prototype.applyJitter=function(){var b=this,d=this.options.jitter,a=this.points.length;d&&this.points.forEach(function(e,g){["x","y"].forEach(function(h,k){var n="plot"+h.toUpperCase();if(d[h]&&!e.isNull){var q=b[h+
549
+ "Axis"];var t=d[h]*q.transA;if(q&&!q.isLog){var m=Math.max(0,e[n]-t);q=Math.min(q.len,e[n]+t);k=1E4*Math.sin(g+k*a);e[n]=m+(q-m)*(k-Math.floor(k));"x"===h&&(e.clientX=e.plotX)}}})})};n.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};n.defaultOptions=k(p.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',
550
+ pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return n}(p);B(E.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});D(E,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",E);"";return E});G(b,"Series/CenteredUtilities.js",[b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,p,A){var v=b.deg2rad,w=A.isNumber,
551
+ D=A.pick,B=A.relativeLength,k;(function(b){b.getCenter=function(){var b=this.options,h=this.chart,d=2*(b.slicedOffset||0),a=h.plotWidth-2*d,e=h.plotHeight-2*d,g=b.center,k=Math.min(a,e),t=b.size,r=b.innerSize||0;"string"===typeof t&&(t=parseFloat(t));"string"===typeof r&&(r=parseFloat(r));b=[D(g[0],"50%"),D(g[1],"50%"),D(t&&0>t?void 0:b.size,"100%"),D(r&&0>r?void 0:b.innerSize||0,"0%")];!h.angular||this instanceof p||(b[3]=0);for(g=0;4>g;++g)t=b[g],h=2>g||2===g&&/%$/.test(t),b[g]=B(t,[a,e,k,b[2]][g])+
552
+ (h?d:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,h){b=w(b)?b:0;h=w(h)&&h>b&&360>h-b?h:b+360;return{start:v*(b+-90),end:v*(h+-90)}}})(k||(k={}));"";return k});G(b,"Series/Pie/PiePoint.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
553
+ (a[b]=d[b])};return b(d,a)};return function(d,a){function e(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),w=b.setAnimation,D=A.addEvent,B=A.defined;b=A.extend;var k=A.isNumber,t=A.pick,n=A.relativeLength;p=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}v(d,b);d.prototype.getConnectorPath=function(){var a=this.labelPosition,d=this.series.options.dataLabels,
554
+ b=this.connectorShapes,h=d.connectorShape;b[h]&&(h=b[h]);return h.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,d)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var d=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+a,d.r+a,{innerR:d.r-1,start:d.start,end:d.end})};d.prototype.init=function(){var a=this;b.prototype.init.apply(this,
555
+ arguments);this.name=t(this.name,"Slice");var d=function(d){a.slice("select"===d.type)};D(this,"select",d);D(this,"unselect",d);return this};d.prototype.isValid=function(){return k(this.y)&&0<=this.y};d.prototype.setVisible=function(a,d){var b=this,e=this.series,h=e.chart,k=e.options.ignoreHiddenPoint;d=t(d,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(b[d])b[d][a?
556
+ "show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),k&&(e.isDirty=!0),d&&h.redraw())};d.prototype.slice=function(a,d,b){var e=this.series;w(b,e.chart);t(d,!0);this.sliced=this.options.sliced=B(a)?a:!this.sliced;e.options.data[e.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(p);b(p.prototype,{connectorShapes:{fixedOffset:function(b,
557
+ d,a){var e=d.breakAt;d=d.touchingSliceAt;return[["M",b.x,b.y],a.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*e.x-d.x,2*e.y-d.y,e.x,e.y]:["L",e.x,e.y],["L",d.x,d.y]]},straight:function(b,d){d=d.touchingSliceAt;return[["M",b.x,b.y],["L",d.x,d.y]]},crookedLine:function(b,d,a){d=d.touchingSliceAt;var e=this.series,g=e.center[0],h=e.chart.plotWidth,k=e.chart.plotLeft;e=b.alignment;var r=this.shapeArgs.r;a=n(a.crookDistance,1);h="left"===e?g+r+(h+k-g-r)*(1-a):k+(g-r)*a;a=["L",h,b.y];g=!0;if("left"===
558
+ e?h>b.x||h<d.x:h<b.x||h>d.x)g=!1;b=[["M",b.x,b.y]];g&&b.push(a);b.push(["L",d.x,d.y]);return b}}});return p});G(b,"Series/Pie/PieSeries.js",[b["Series/CenteredUtilities.js"],b["Series/Column/ColumnSeries.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Series/Pie/PiePoint.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D,B,k,t){var n=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||
559
+ {__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function e(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),h=b.getStartAndEndRadians;A=A.noop;var d=t.clamp,a=t.extend,e=t.fireEvent,g=t.merge,x=t.pick,v=t.relativeLength;t=function(a){function b(){var d=null!==a&&a.apply(this,arguments)||this;d.center=void 0;d.data=void 0;d.maxLabelDistance=
560
+ void 0;d.options=void 0;d.points=void 0;return d}n(b,a);b.prototype.animate=function(a){var d=this,b=d.points,e=d.startAngleRad;a||b.forEach(function(c){var a=c.graphic,b=c.shapeArgs;a&&b&&(a.attr({r:x(c.startR,d.center&&d.center[3]/2),start:e,end:e}),a.animate({r:b.r,start:b.start,end:b.end},d.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,d=this.endAngleRad,b=this.options;if(0===this.total&&this.center){var e=this.center[0];var c=this.center[1];this.graph||(this.graph=
561
+ this.chart.renderer.arc(e,c,this.center[1]/2,0,a,d).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:k.arc(e,c,this.center[2]/2,0,{start:a,end:d,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(d){d.graphic&&d.hasNewShapeType()&&(d.graphic=
562
+ d.graphic.destroy());d.graphic||(d.graphic=a[d.shapeType](d.shapeArgs).add(d.series.group),d.delayedRendering=!0)})};b.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(a,b,f){var e=this.center,c=this.radii?this.radii[f.index]||0:e[2]/2;a=Math.asin(d((a-e[1])/(c+f.labelDistance),-1,1));return e[0]+(b?-1:1)*Math.cos(a)*(c+f.labelDistance)+(0<f.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};
563
+ b.prototype.redrawPoints=function(){var a=this,d=a.chart,b=d.renderer,e=a.options.shadow,c,h,l,k;this.drawEmpty();!e||a.shadowGroup||d.styledMode||(a.shadowGroup=b.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(f){var m={};h=f.graphic;if(!f.isNull&&h){var n=void 0;k=f.shapeArgs;c=f.getTranslate();d.styledMode||(n=f.shadowGroup,e&&!n&&(n=f.shadowGroup=b.g("shadow").add(a.shadowGroup)),n&&n.attr(c),l=a.pointAttribs(f,f.selected&&"select"));f.delayedRendering?(h.setRadialReference(a.center).attr(k).attr(c),
564
+ d.styledMode||h.attr(l).attr({"stroke-linejoin":"round"}).shadow(e,n),f.delayedRendering=!1):(h.setRadialReference(a.center),d.styledMode||g(!0,m,l),g(!0,m,k,c),h.animate(m));h.attr({visibility:f.visible?"inherit":"hidden"});h.addClass(f.getClassName(),!0)}else h&&(f.graphic=h.destroy())})};b.prototype.sortByAngle=function(a,d){a.sort(function(a,b){return"undefined"!==typeof a.angle&&(b.angle-a.angle)*d})};b.prototype.translate=function(a){this.generatePoints();var d=this.options,b=d.slicedOffset,
565
+ g=b+(d.borderWidth||0),c=h(d.startAngle,d.endAngle),k=this.startAngleRad=c.start;c=(this.endAngleRad=c.end)-k;var l=this.points,n=d.dataLabels.distance;d=d.ignoreHiddenPoint;var q=l.length,r,t=0;a||(this.center=a=this.getCenter());for(r=0;r<q;r++){var z=l[r];var p=k+t*c;!z.isValid()||d&&!z.visible||(t+=z.percentage/100);var C=k+t*c;var w={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*p)/1E3,end:Math.round(1E3*C)/1E3};z.shapeType="arc";z.shapeArgs=w;z.labelDistance=x(z.options.dataLabels&&
566
+ z.options.dataLabels.distance,n);z.labelDistance=v(z.labelDistance,w.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,z.labelDistance);C=(C+p)/2;C>1.5*Math.PI?C-=2*Math.PI:C<-Math.PI/2&&(C+=2*Math.PI);z.slicedTranslation={translateX:Math.round(Math.cos(C)*b),translateY:Math.round(Math.sin(C)*b)};w=Math.cos(C)*a[2]/2;var B=Math.sin(C)*a[2]/2;z.tooltipPos=[a[0]+.7*w,a[1]+.7*B];z.half=C<-Math.PI/2||C>Math.PI/2?1:0;z.angle=C;p=Math.min(g,z.labelDistance/5);z.labelPosition={natural:{x:a[0]+w+
567
+ Math.cos(C)*z.labelDistance,y:a[1]+B+Math.sin(C)*z.labelDistance},"final":{},alignment:0>z.labelDistance?"center":z.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+w+Math.cos(C)*p,y:a[1]+B+Math.sin(C)*p},touchingSliceAt:{x:a[0]+w,y:a[1]+B}}}}e(this,"afterTranslate")};b.prototype.updateTotals=function(){var a=this.points,d=a.length,b=this.options.ignoreHiddenPoint,e,c=0;for(e=0;e<d;e++){var g=a[e];!g.isValid()||b&&!g.visible||(c+=g.y)}this.total=c;for(e=0;e<d;e++)g=a[e],g.percentage=0<c&&(g.visible||
568
+ !b)?g.y/c*100:0,g.total=c};b.defaultOptions=g(D.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",
569
+ borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return b}(D);a(t.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:E.drawRectangle,drawTracker:p.prototype.drawTracker,getCenter:b.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:p.prototype.pointAttribs,pointClass:w,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});B.registerSeriesType("pie",t);"";return t});G(b,"Series/Pie/PieDataLabel.js",[b["Core/Series/DataLabel.js"],
570
+ b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E,w){var v=p.noop,B=A.distribute,k=E.series,t=w.arrayMax,n=w.clamp,h=w.defined,d=w.merge,a=w.pick,e=w.relativeLength,g;(function(g){function x(){var b=this,e=b.data,c=b.chart,g=b.options.dataLabels||{},m=g.connectorPadding,n=c.plotWidth,q=c.plotHeight,r=c.plotLeft,z=Math.round(c.chartWidth/3),x=b.center,p=x[2]/2,v=x[1],C=[[],[]],w=[0,0,0,0],A=b.dataLabelPositioners,
571
+ D,E,G,L,W,M,X,P,U,S,V,N;b.visible&&(g.enabled||b._hasPointLabels)&&(e.forEach(function(c){c.dataLabel&&c.visible&&c.dataLabel.shortened&&(c.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),c.dataLabel.shortened=!1)}),k.prototype.drawDataLabels.apply(b),e.forEach(function(c){c.dataLabel&&(c.visible?(C[c.half].push(c),c.dataLabel._pos=null,!h(g.style.width)&&!h(c.options.dataLabels&&c.options.dataLabels.style&&c.options.dataLabels.style.width)&&c.dataLabel.getBBox().width>z&&(c.dataLabel.css({width:Math.round(.7*
572
+ z)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&&delete c.dataLabels))}),C.forEach(function(d,f){var e=d.length,l=[],k;if(e){b.sortByAngle(d,f-.5);if(0<b.maxLabelDistance){var u=Math.max(0,v-p-b.maxLabelDistance);var t=Math.min(v+p+b.maxLabelDistance,c.plotHeight);d.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,v-p-a.labelDistance),a.bottom=Math.min(v+p+a.labelDistance,c.plotHeight),k=a.dataLabel.getBBox().height||
573
+ 21,a.distributeBox={target:a.labelPosition.natural.y-a.top+k/2,size:k,rank:a.y},l.push(a.distributeBox))});u=t+k-u;B(l,u,u/5)}for(V=0;V<e;V++){D=d[V];M=D.labelPosition;L=D.dataLabel;S=!1===D.visible?"hidden":"inherit";U=u=M.natural.y;l&&h(D.distributeBox)&&("undefined"===typeof D.distributeBox.pos?S="hidden":(X=D.distributeBox.size,U=A.radialDistributionY(D)));delete D.positionIndex;if(g.justify)P=A.justify(D,p,x);else switch(g.alignTo){case "connectors":P=A.alignToConnectors(d,f,n,r);break;case "plotEdges":P=
574
+ A.alignToPlotEdges(L,f,n,r);break;default:P=A.radialDistributionX(b,D,U,u)}L._attr={visibility:S,align:M.alignment};N=D.options.dataLabels||{};L._pos={x:P+a(N.x,g.x)+({left:m,right:-m}[M.alignment]||0),y:U+a(N.y,g.y)-10};M.final.x=P;M.final.y=U;a(g.crop,!0)&&(W=L.getBBox().width,u=null,P-W<m&&1===f?(u=Math.round(W-P+m),w[3]=Math.max(u,w[3])):P+W>n-m&&0===f&&(u=Math.round(P+W-n+m),w[1]=Math.max(u,w[1])),0>U-X/2?w[0]=Math.max(Math.round(-U+X/2),w[0]):U+X/2>q&&(w[2]=Math.max(Math.round(U+X/2-q),w[2])),
575
+ L.sideOverflow=u)}}}),0===t(w)||this.verifyDataLabelOverflow(w))&&(this.placeDataLabels(),this.points.forEach(function(f){N=d(g,f.options.dataLabels);if(E=a(N.connectorWidth,1)){var e;G=f.connector;if((L=f.dataLabel)&&L._pos&&f.visible&&0<f.labelDistance){S=L._attr.visibility;if(e=!G)f.connector=G=c.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+f.colorIndex+(f.className?" "+f.className:"")).add(b.dataLabelsGroup),c.styledMode||G.attr({"stroke-width":E,stroke:N.connectorColor||
576
+ f.color||"#666666"});G[e?"attr":"animate"]({d:f.getConnectorPath()});G.attr("visibility",S)}else G&&(f.connector=G.destroy())}}))}function r(){this.points.forEach(function(a){var d=a.dataLabel,c;d&&a.visible&&((c=d._pos)?(d.sideOverflow&&(d._attr.width=Math.max(d.getBBox().width-d.sideOverflow,0),d.css({width:d._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),d.shortened=!0),d.attr(d._attr),d[d.moved?"animate":"attr"](c),d.moved=!0):d&&d.attr({y:-9999}));
577
+ delete a.distributeBox},this)}function q(a){var d=this.center,c=this.options,b=c.center,f=c.minSize||80,g=null!==c.size;if(!g){if(null!==b[0])var m=Math.max(d[2]-Math.max(a[1],a[3]),f);else m=Math.max(d[2]-a[1]-a[3],f),d[0]+=(a[3]-a[1])/2;null!==b[1]?m=n(m,f,d[2]-Math.max(a[0],a[2])):(m=n(m,f,d[2]-a[0]-a[2]),d[1]+=(a[0]-a[2])/2);m<d[2]?(d[2]=m,d[3]=Math.min(e(c.innerSize||0,m),m),this.translate(d),this.drawDataLabels&&this.drawDataLabels()):g=!0}return g}var z=[],m={radialDistributionY:function(a){return a.top+
578
+ a.distributeBox.pos},radialDistributionX:function(a,d,c,b){return a.getX(c<d.top+2||c>d.bottom-2?b:c,d.half,d)},justify:function(a,d,c){return c[0]+(a.half?-1:1)*(d+a.labelDistance)},alignToPlotEdges:function(a,d,c,b){a=a.getBBox().width;return d?a+b:c-a-b},alignToConnectors:function(a,d,c,b){var f=0,e;a.forEach(function(c){e=c.dataLabel.getBBox().width;e>f&&(f=e)});return d?f+b:c-f-b}};g.compose=function(a){b.compose(k);-1===z.indexOf(a)&&(z.push(a),a=a.prototype,a.dataLabelPositioners=m,a.alignDataLabel=
579
+ v,a.drawDataLabels=x,a.placeDataLabels=r,a.verifyDataLabelOverflow=q)}})(g||(g={}));return g});G(b,"Extensions/OverlappingDataLabels.js",[b["Core/Chart/Chart.js"],b["Core/Utilities.js"]],function(b,p){function v(b,h){var d=!1;if(b){var a=b.newOpacity;b.oldOpacity!==a&&(b.alignAttr&&b.placed?(b[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),d=!0,b.alignAttr.opacity=a,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){h.styledMode||b.css({pointerEvents:a?"auto":"none"})}),w(h,"afterHideOverlappingLabel")):
580
+ b.attr({opacity:a}));b.isOld=!0}return d}var E=p.addEvent,w=p.fireEvent,D=p.isArray,B=p.isNumber,k=p.objectEach,t=p.pick;E(b,"render",function(){var b=this,h=[];(this.labelCollectors||[]).forEach(function(d){h=h.concat(d())});(this.yAxis||[]).forEach(function(d){d.stacking&&d.options.stackLabels&&!d.options.stackLabels.allowOverlap&&k(d.stacking.stacks,function(a){k(a,function(a){a.label&&"hidden"!==a.label.visibility&&h.push(a.label)})})});(this.series||[]).forEach(function(d){var a=d.options.dataLabels;
581
+ d.visible&&(!1!==a.enabled||d._hasPointLabels)&&(a=function(a){return a.forEach(function(a){a.visible&&(D(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(d){var e=d.options;d.labelrank=t(e.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);e.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,v(d,b)):h.push(d)})})},a(d.nodes||[]),a(d.points))});this.hideOverlappingLabels(h)});b.prototype.hideOverlappingLabels=function(b){var h=this,d=b.length,a=h.renderer,e,g,k,n=!1;
582
+ var r=function(d){var b,e=d.box?0:d.padding||0,c=b=0,g;if(d&&(!d.alignAttr||d.placed)){var m=d.alignAttr||{x:d.attr("x"),y:d.attr("y")};var h=d.parentGroup;d.width||(b=d.getBBox(),d.width=b.width,d.height=b.height,b=a.fontMetrics(null,d.element).h);var k=d.width-2*e;(g={left:"0",center:"0.5",right:"1"}[d.alignValue])?c=+g*k:B(d.x)&&Math.round(d.x)!==d.translateX&&(c=d.x-d.translateX);return{x:m.x+(h.translateX||0)+e-(c||0),y:m.y+(h.translateY||0)+e-b,width:d.width-2*e,height:d.height-2*e}}};for(g=
583
+ 0;g<d;g++)if(e=b[g])e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=r(e);b.sort(function(a,d){return(d.labelrank||0)-(a.labelrank||0)});for(g=0;g<d;g++){var q=(r=b[g])&&r.absoluteBox;for(e=g+1;e<d;++e){var t=(k=b[e])&&k.absoluteBox;!q||!t||r===k||0===r.newOpacity||0===k.newOpacity||t.x>=q.x+q.width||t.x+t.width<=q.x||t.y>=q.y+q.height||t.y+t.height<=q.y||((r.labelrank<k.labelrank?r:k).newOpacity=0)}}b.forEach(function(a){v(a,h)&&(n=!0)});n&&w(h,"afterHideAllOverlappingLabels")}});G(b,"Core/Responsive.js",
584
+ [b["Core/Utilities.js"]],function(b){var p=b.extend,v=b.find,E=b.isArray,w=b.isObject,D=b.merge,B=b.objectEach,k=b.pick,t=b.splat,n=b.uniqueKey,h;(function(d){var a=[];d.compose=function(d){-1===a.indexOf(d)&&(a.push(d),p(d.prototype,b.prototype));return d};var b=function(){function a(){}a.prototype.currentOptions=function(a){function d(a,e,f,g){var c;B(a,function(a,h){if(!g&&-1<b.collectionsWithUpdate.indexOf(h)&&e[h])for(a=t(a),f[h]=[],c=0;c<Math.max(a.length,e[h].length);c++)e[h][c]&&(void 0===
585
+ a[c]?f[h][c]=e[h][c]:(f[h][c]={},d(a[c],e[h][c],f[h][c],g+1)));else w(a)?(f[h]=E(a)?[]:{},d(a,e[h]||{},f[h],g+1)):f[h]="undefined"===typeof e[h]?null:e[h]})}var b=this,e={};d(a,this.options,e,0);return e};a.prototype.matchResponsiveRule=function(a,d){var b=a.condition;(b.callback||function(){return this.chartWidth<=k(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=k(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=k(b.minWidth,0)&&this.chartHeight>=k(b.minHeight,0)}).call(this)&&d.push(a._id)};a.prototype.setResponsive=
586
+ function(a,d){var b=this,e=this.options.responsive,g=this.currentResponsive,h=[];!d&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=n());b.matchResponsiveRule(a,h)},this);d=D.apply(void 0,h.map(function(a){return v((e||{}).rules||[],function(d){return d._id===a})}).map(function(a){return a&&a.chartOptions}));d.isResponsiveOptions=!0;h=h.toString()||void 0;h!==(g&&g.ruleIds)&&(g&&this.update(g.undoOptions,a,!0),h?(g=this.currentOptions(d),g.isResponsiveOptions=!0,this.currentResponsive=
587
+ {ruleIds:h,mergedOptions:d,undoOptions:g},this.update(d,a,!0)):this.currentResponsive=void 0)};return a}()})(h||(h={}));"";"";return h});G(b,"masters/highcharts.src.js",[b["Core/Globals.js"],b["Core/Utilities.js"],b["Core/DefaultOptions.js"],b["Core/Animation/Fx.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/FormatUtilities.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Renderer/HTML/HTMLElement.js"],
588
588
  b["Core/Renderer/HTML/HTMLRenderer.js"],b["Core/Axis/Axis.js"],b["Core/Axis/DateTimeAxis.js"],b["Core/Axis/LogarithmicAxis.js"],b["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],b["Core/Axis/Tick.js"],b["Core/Tooltip.js"],b["Core/Series/Point.js"],b["Core/Pointer.js"],b["Core/MSPointer.js"],b["Core/Legend/Legend.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Series/Column/ColumnSeries.js"],b["Series/Column/ColumnDataLabel.js"],b["Series/Pie/PieSeries.js"],
589
- b["Series/Pie/PieDataLabel.js"],b["Core/Series/DataLabel.js"],b["Core/Responsive.js"],b["Core/Color/Color.js"],b["Core/Time.js"]],function(b,u,A,B,v,E,w,k,r,m,h,a,c,e,g,C,y,t,p,D,n,f,q,d,z,l,G,K,I,H,N,F,Q){b.animate=v.animate;b.animObject=v.animObject;b.getDeferredAnimation=v.getDeferredAnimation;b.setAnimation=v.setAnimation;b.stop=v.stop;b.timers=B.timers;b.AST=E;b.Axis=c;b.Chart=q;b.chart=q.chart;b.Fx=B;b.Legend=f;b.PlotLineOrBand=C;b.Point=p;b.Pointer=n.isRequired()?n:D;b.Series=d;b.SVGElement=
590
- r;b.SVGRenderer=m;b.Tick=y;b.Time=Q;b.Tooltip=t;b.Color=F;b.color=F.parse;a.compose(m);h.compose(r);b.defaultOptions=A.defaultOptions;b.getOptions=A.getOptions;b.time=A.defaultTime;b.setOptions=A.setOptions;b.dateFormat=w.dateFormat;b.format=w.format;b.numberFormat=w.numberFormat;b.addEvent=u.addEvent;b.arrayMax=u.arrayMax;b.arrayMin=u.arrayMin;b.attr=u.attr;b.clearTimeout=u.clearTimeout;b.correctFloat=u.correctFloat;b.createElement=u.createElement;b.css=u.css;b.defined=u.defined;b.destroyObjectProperties=
591
- u.destroyObjectProperties;b.discardElement=u.discardElement;b.distribute=k.distribute;b.erase=u.erase;b.error=u.error;b.extend=u.extend;b.extendClass=u.extendClass;b.find=u.find;b.fireEvent=u.fireEvent;b.getMagnitude=u.getMagnitude;b.getStyle=u.getStyle;b.inArray=u.inArray;b.isArray=u.isArray;b.isClass=u.isClass;b.isDOMElement=u.isDOMElement;b.isFunction=u.isFunction;b.isNumber=u.isNumber;b.isObject=u.isObject;b.isString=u.isString;b.keys=u.keys;b.merge=u.merge;b.normalizeTickInterval=u.normalizeTickInterval;
592
- b.objectEach=u.objectEach;b.offset=u.offset;b.pad=u.pad;b.pick=u.pick;b.pInt=u.pInt;b.relativeLength=u.relativeLength;b.removeEvent=u.removeEvent;b.seriesType=z.seriesType;b.splat=u.splat;b.stableSort=u.stableSort;b.syncTimeout=u.syncTimeout;b.timeUnits=u.timeUnits;b.uniqueKey=u.uniqueKey;b.useSerialIds=u.useSerialIds;b.wrap=u.wrap;G.compose(l);H.compose(d);e.compose(c);g.compose(c);I.compose(K);C.compose(c);N.compose(q);return b});F(b,"Core/Axis/Color/ColorAxisComposition.js",[b["Core/Color/Color.js"],
593
- b["Core/Utilities.js"]],function(b,u){var x=b.parse,B=u.addEvent,v=u.extend,E=u.merge,w=u.pick,k=u.splat,r;(function(b){function h(){var a=this,c=this.options;this.colorAxis=[];c.colorAxis&&(c.colorAxis=k(c.colorAxis),c.colorAxis.forEach(function(c,b){c.index=b;new q(a,c)}))}function a(a){var c=this,b=function(b){b=a.allItems.indexOf(b);-1!==b&&(c.destroyItem(a.allItems[b]),a.allItems.splice(b,1))},d=[],e,f;(this.chart.colorAxis||[]).forEach(function(a){(e=a.options)&&e.showInLegend&&(e.dataClasses&&
594
- e.visible?d=d.concat(a.getDataClassLegendSymbols()):e.visible&&d.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||e.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){b(a)}):b(a)}))});for(f=d.length;f--;)a.allItems.unshift(d[f])}function c(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function e(){var a=this.chart.colorAxis;a&&a.forEach(function(a,c,b){a.update({},b)})}function g(){(this.chart.colorAxis&&this.chart.colorAxis.length||
595
- this.colorAttribs)&&this.translateColors()}function m(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function r(a){var c=this,b=a?"show":"hide";c.visible=c.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(c[a])c[a][b]()});this.series.buildKDTree()}function t(){var a=this,c=this.options.nullColor,b=this.colorAxis,e=this.colorKey;(this.data.length?this.data:this.points).forEach(function(d){var f=d.getNestedProperty(e);(f=d.options.color||
596
- (d.isNull||null===d.value?c:b&&"undefined"!==typeof f?b.toColor(f,d):d.color||a.color))&&d.color!==f&&(d.color=f,"point"===a.options.legendType&&d.legendItem&&a.chart.legend.colorizeItem(d,d.visible))})}function p(a){var c=a.prototype.createAxis;a.prototype.createAxis=function(a,b){if("colorAxis"!==a)return c.apply(this,arguments);var d=new q(this,E(b.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();
597
- a.isDirtyData=!0});w(b.redraw,!0)&&this.redraw(b.animation);return d}}function D(){this.elem.attr("fill",x(this.start).tweenTo(x(this.end),this.pos),void 0,!0)}function n(){this.elem.attr("stroke",x(this.start).tweenTo(x(this.end),this.pos),void 0,!0)}var f=[],q;b.compose=function(b,k,l,y,w){q||(q=b);-1===f.indexOf(k)&&(f.push(k),b=k.prototype,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],B(k,"afterGetAxes",h),p(k));-1===f.indexOf(l)&&(f.push(l),k=l.prototype,
598
- k.fillSetter=D,k.strokeSetter=n);-1===f.indexOf(y)&&(f.push(y),B(y,"afterGetAllItems",a),B(y,"afterColorizeItem",c),B(y,"afterUpdate",e));-1===f.indexOf(w)&&(f.push(w),v(w.prototype,{optionalAxis:"colorAxis",translateColors:t}),v(w.prototype.pointClass.prototype,{setVisible:r}),B(w,"afterTranslate",g),B(w,"bindAxes",m))};b.pointSetVisible=r})(r||(r={}));return r});F(b,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
599
- startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});F(b,"Core/Axis/Color/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Color/Color.js"],b["Core/Axis/Color/ColorAxisComposition.js"],b["Core/Axis/Color/ColorAxisDefaults.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,
600
- A,B,v,E,w,k){var r=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),m=u.parse,h=v.noop,a=w.series,c=k.extend,e=k.isNumber,g=k.merge,C=k.pick;u=function(b){function k(a,c){var e=b.call(this,a,c)||this;
601
- e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,c);return e}r(k,b);k.compose=function(a,c,b,e){A.compose(k,a,c,b,e)};k.prototype.init=function(a,c){var e=a.options.legend||{},f=c.layout?"vertical"!==c.layout:"vertical"!==e.layout,h=c.visible;e=g(k.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:e.enabled&&!1!==h});this.coll="colorAxis";this.side=c.side||f?2:
602
- 1;this.reversed=c.reversed||!f;this.opposite=!f;b.prototype.init.call(this,a,e);this.userOptions.visible=h;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=f;this.zoomEnabled=!1};k.prototype.initDataClasses=function(a){var c=this.chart,b=this.options,e=a.dataClasses.length,h,d=0,k=c.options.chart.colorCount;this.dataClasses=h=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,f){a=g(a);h.push(a);if(c.styledMode||!a.color)"category"===b.dataClassColor?(c.styledMode||(f=
603
- c.options.colors,k=f.length,a.color=f[d]),a.colorIndex=d,d++,d===k&&(d=0)):a.color=m(b.minColor).tweenTo(m(b.maxColor),2>e?.5:f/(e-1))})};k.prototype.hasData=function(){return!!(this.tickPositions||[]).length};k.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};k.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=m(a[1])})};k.prototype.setOptions=
604
- function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};k.prototype.setAxisSize=function(){var a=this.legendSymbol,c=this.chart,b=c.options.legend||{},e,g;a?(this.left=b=a.attr("x"),this.top=e=a.attr("y"),this.width=g=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-b-g,this.bottom=c.chartHeight-e-a,this.len=this.horiz?g:a,this.pos=this.horiz?b:e):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||k.defaultLegendLength};k.prototype.normalizedValue=
605
- function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};k.prototype.toColor=function(a,c){var b=this.dataClasses,e=this.stops,g;if(b)for(g=b.length;g--;){var d=b[g];var h=d.from;e=d.to;if(("undefined"===typeof h||a>=h)&&("undefined"===typeof e||a<=e)){var k=d.color;c&&(c.dataClass=g,c.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(g=e.length;g--&&!(a>e[g][0]););h=e[g]||e[g+1];e=e[g+1]||h;a=1-(e[0]-a)/(e[0]-h[0]||1);k=h.color.tweenTo(e.color,
606
- a)}return k};k.prototype.getOffset=function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)};k.prototype.setLegendColor=function(){var a=this.reversed,c=a?1:0;a=a?0:1;c=this.horiz?[c,0,a,0]:[0,a,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};k.prototype.drawLegendSymbol=function(a,
607
- c){var b=a.padding,e=a.options,g=this.horiz,d=C(e.symbolWidth,g?k.defaultLegendLength:12),h=C(e.symbolHeight,g?12:k.defaultLegendLength),l=C(e.labelPadding,g?16:30);e=C(e.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,d,h).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=d+b+(g?e:l);this.legendItemHeight=h+b+(g?l:0)};k.prototype.setState=function(a){this.series.forEach(function(c){c.setState(a)})};k.prototype.setVisible=function(){};k.prototype.getSeriesExtremes=
608
- function(){var c=this.series,b=c.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=c[b];var g=f.colorKey=C(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var d=f.pointArrayMap;var h=f[g+"Min"]&&f[g+"Max"];if(f[g+"Data"])var k=f[g+"Data"];else if(d){k=[];d=d.indexOf(g);var m=f.yData;if(0<=d&&m)for(e=0;e<m.length;e++)k.push(C(m[e][d],m[e]))}else k=f.yData;h?(f.minColorValue=f[g+"Min"],f.maxColorValue=f[g+"Max"]):(k=a.prototype.getExtremes.call(f,k),f.minColorValue=k.dataMin,
609
- f.maxColorValue=k.dataMax);"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));h||a.prototype.applyExtremes.call(f)}};k.prototype.drawCrosshair=function(a,c){var e=c&&c.plotX,f=c&&c.plotY,g=this.pos,d=this.len;if(c){var h=this.toPixels(c.getNestedProperty(c.series.colorKey));h<g?h=g-2:h>g+d&&(h=g+d+2);c.plotX=h;c.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,c);c.plotX=e;c.plotY=f;this.cross&&!this.cross.addedToColorAxis&&
610
- this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};k.prototype.getPlotLinePath=function(a){var c=this.left,g=a.translatedValue,f=this.top;return e(g)?this.horiz?[["M",g-4,f-6],["L",g+4,f-6],["L",g,f],["Z"]]:[["M",c,g],["L",c-6,g+6],["L",c-6,g-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};k.prototype.update=function(a,
611
- c){var e=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};k.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){a.legend.destroyItem(c)});a.isDirtyLegend=!0};k.prototype.destroy=function(){this.chart.isDirtyLegend=!0;
612
- this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};k.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};k.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,e=a.legendItems,f=b.options.legend,g=f.valueDecimals,d=f.valueSuffix||"",k;e.length||a.dataClasses.forEach(function(f,n){var l=f.from,p=f.to,m=b.numberFormatter,q=!0;k="";"undefined"===typeof l?k="< ":"undefined"===typeof p&&(k="> ");"undefined"!==typeof l&&(k+=m(l,g)+
613
- d);"undefined"!==typeof l&&"undefined"!==typeof p&&(k+=" - ");"undefined"!==typeof p&&(k+=m(p,g)+d);e.push(c({chart:b,name:k,options:{},drawLegendSymbol:E.drawRectangle,visible:!0,setState:h,isDataClass:!0,setVisible:function(){q=a.visible=!q;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===n&&a.setVisible(q)})});b.legend.colorizeItem(this,q)}},f))});return e};k.defaultColorAxisOptions=B;k.defaultLegendLength=200;k.keepProps=["legendGroup","legendItemHeight","legendItemWidth",
614
- "legendItem","legendSymbol"];return k}(b);Array.prototype.push.apply(b.keepProps,u.keepProps);"";return u});F(b,"Maps/MapNavigationOptionsDefault.js",[b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,u){u=u.extend;var x={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},
615
- text:"-",y:28}},mouseWheelSensitivity:1.1};u(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=x});F(b,"Maps/MapNavigation.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A){function x(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function v(a){this.init(a)}var E=u.doc,w=A.addEvent,k=A.extend,r=A.merge,m=A.objectEach,h=A.pick;v.prototype.init=function(a){this.chart=
616
- a;a.mapNavButtons=[]};v.prototype.update=function(a){var c=this.chart,b=c.options.mapNavigation,g,u,y,t,p=function(a){this.handler.call(c,a);x(a)},v=c.mapNavButtons;a&&(b=c.options.mapNavigation=r(c.options.mapNavigation,a));for(;v.length;)v.pop().destroy();h(b.enableButtons,b.enabled)&&!c.renderer.forExport&&m(b.buttons,function(a,e){a=r(b.buttonOptions,a);!c.styledMode&&a.theme&&(g=a.theme,g.style=r(a.theme.style,a.style),y=(u=g.states)&&u.hover,t=u&&u.select,delete g.states);var f=c.renderer.button(a.text||
617
- "",0,0,p,g,y,t,void 0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[e]).attr({width:a.width,height:a.height,title:c.options.lang[e],padding:a.padding,zIndex:5}).add();f.handler=a.onclick;w(f.element,"dblclick",x);v.push(f);k(a,{width:f.width,height:2*f.height});if(c.hasLoaded)f.align(a,!1,a.alignTo);else var d=w(c,"load",function(){f.element&&f.align(a,!1,a.alignTo);d()})});this.updateEvents(b)};v.prototype.updateEvents=
618
- function(a){var c=this.chart;h(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||w(c.container,"dblclick",function(a){c.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());h(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||w(c.container,void 0!==E.onwheel?"wheel":void 0!==E.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){c.pointer.inClass(a.target,"highcharts-no-mousewheel")||
619
- (c.pointer.onContainerMouseWheel(a),x(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};k(b.prototype,{fitToBox:function(a,c){[["x","width"],["y","height"]].forEach(function(b){var e=b[0];b=b[1];a[e]+a[b]>c[e]+c[b]&&(a[b]>c[b]?(a[b]=c[b],a[e]=c[e]):a[e]=c[e]+c[b]-a[b]);a[b]>c[b]&&(a[b]=c[b]);a[e]<c[e]&&(a[e]=c[e])});return a},mapZoom:function(a,c,b,g,h){this.mapView&&("number"===typeof a&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,"number"===typeof c&&
620
- "number"===typeof b?this.mapView.projection.inverse([c,b]):void 0,"number"===typeof g&&"number"===typeof h?[g,h]:void 0))}});w(b,"beforeRender",function(){this.mapNavigation=new v(this);this.mapNavigation.update()});u.MapNavigation=v});F(b,"Maps/MapPointer.js",[b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,u){var x=u.defined,B=u.extend,v=u.pick;u=u.wrap;var E=0,w;B(b.prototype,{onContainerDblClick:function(b){var k=this.chart;b=this.normalize(b);k.options.mapNavigation.enableDoubleClickZoomTo?
621
- k.pointer.inClass(b.target,"highcharts-tracker")&&k.hoverPoint&&k.hoverPoint.zoomTo():k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var k=this.chart;b=this.normalize(b);var m=x(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(m)&&(E+=Math.abs(m),w&&clearTimeout(w),w=setTimeout(function(){E=0},50));10>E&&k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapView&&k.mapView.zoomBy((k.options.mapNavigation.mouseWheelSensitivity-
622
- 1)*-m,void 0,[b.chartX,b.chartY],1>Math.abs(m)?!1:void 0)}});u(b.prototype,"zoomOption",function(b){var k=this.chart.options.mapNavigation;v(k.enableTouchZoom,k.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});u(b.prototype,"pinchTranslate",function(b,r,m,h,a,c,e){b.call(this,r,m,h,a,c,e);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=h.scaleX>h.scaleY,this.pinchTranslateDirection(!b,r,m,h,a,c,e,b?h.scaleX:h.scaleY))})});F(b,"Series/ColorMapComposition.js",
623
- [b["Core/Utilities.js"]],function(b){var u=b.defined,x=b.wrap,B={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],parallelArrays:["x","y","value"],colorKey:"value"},v;(function(b){function w(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}function k(b){var a={};!u(b.color)||b.state&&"normal"!==b.state||(a[this.colorProp||"fill"]=b.color);return a}function r(b,a,c){b=b.call(this,a,c);a.moveToTopOnHover&&
624
- (b.zIndex="hover"===c?1:0);return b}b.colorMapSeriesMixin=B;var m=[];b.compose=function(b,a){a&&-1===m.indexOf(a)&&(m.push(a),a=a.prototype,a.dataLabelOnNull=!0,a.moveToTopOnHover=!0,a.isValid=w);-1===m.indexOf(b)&&(m.push(b),a=b.prototype,a.colorAttribs=k,x(a,"pointAttribs",r));return b};b.seriesColorAttribs=k})(v||(v={}));return v});F(b,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:void 0,zoom:void 0}});F(b,"Maps/Projections/LambertConformalConic.js",
625
- [],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},u=Math.PI/180,A=Math.PI/2,B=0,v=0;return{init:function(x){var w=(x.parallels||[]).map(function(b){return b*u});x=w[0]||0;w=w[1]||x;var k=Math.cos(x);B=x===w?Math.sin(x):Math.log(k/Math.cos(w))/Math.log(Math.tan((A+w)/2)/Math.tan((A+x)/2));1e-10>Math.abs(B)&&(B=1e-10*(b(B)||1));v=k*Math.pow(Math.tan((A+x)/2),B)/B},forward:function(b){var w=b[0]*u;b=b[1]*u;0<v?b<-A+.000001&&(b=-A+.000001):b>A-.000001&&(b=A-.000001);b=v/Math.pow(Math.tan((A+
626
- b)/2),B);return[b*Math.sin(B*w)*63.78137,63.78137*(v-b*Math.cos(B*w))]},inverse:function(x){var w=x[0]/63.78137;x=v-x[1]/63.78137;var k=b(B)*Math.sqrt(w*w+x*x),r=Math.atan2(w,Math.abs(x))*b(x);0>x*B&&(r-=Math.PI*b(w)*b(x));return[r/B/u,(2*Math.atan(Math.pow(v/k,1/B))-A)/u]}}});F(b,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return{forward:function(u){var x=Math.PI/180,B=Math.asin(b*Math.sin(u[1]*x)),v=B*B,E=v*v*v;return[u[0]*x*Math.cos(B)*74.03120656864502/(b*(1.340264+3*-.081106*
627
- v+E*(7*.000893+.034164*v))),74.03120656864502*B*(1.340264+-.081106*v+E*(.000893+.003796*v))]},inverse:function(u){var x=u[0]/74.03120656864502;u=u[1]/74.03120656864502;var B=180/Math.PI,v=u,E;for(E=0;12>E;++E){var w=v*v;var k=w*w*w;var r=v*(1.340264+-.081106*w+k*(.000893+.003796*w))-u;w=1.340264+3*-.081106*w+k*(7*.000893+.034164*w);v-=r/=w;if(1e-9>Math.abs(r))break}w=v*v;return[B*b*x*(1.340264+3*-.081106*w+w*w*w*(7*.000893+.034164*w))/Math.cos(v),B*Math.asin(Math.sin(v)/b)]}}});F(b,"Maps/Projections/Miller.js",
628
- [],function(){var b=Math.PI/4,u=Math.PI/180;return{forward:function(x){return[x[0]*u*63.78137,79.7267125*Math.log(Math.tan(b+.4*x[1]*u))]},inverse:function(x){return[x[0]/63.78137/u,2.5*(Math.atan(Math.exp(x[1]/63.78137*.8))-b)/u]}}});F(b,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return{forward:function(u){var x=u[0];if(-90>x||90<x)return[NaN,NaN];u=u[1]*b;return[Math.cos(u)*Math.sin(x*b)*63.78460826781007,63.78460826781007*Math.sin(u)]},inverse:function(u){var x=u[0]/63.78460826781007;
629
- u=u[1]/63.78460826781007;var B=Math.sqrt(x*x+u*u),v=Math.asin(B),E=Math.sin(v);return[Math.atan2(x*E,B*Math.cos(v))/b,Math.asin(B&&u*E/B)/b]}}});F(b,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return{forward:function(u){if(85.0511287798<Math.abs(u[1]))return[NaN,NaN];var x=Math.sin(u[1]*b);return[63.78137*u[0]*b,63.78137*Math.log((1+x)/(1-x))/2]},inverse:function(u){return[u[0]/(63.78137*b),(2*Math.atan(Math.exp(u[1]/63.78137))-Math.PI/2)/b]},maxLatitude:85.0511287798}});F(b,
630
- "Maps/Projections/ProjectionRegistry.js",[b["Maps/Projections/LambertConformalConic.js"],b["Maps/Projections/EqualEarth.js"],b["Maps/Projections/Miller.js"],b["Maps/Projections/Orthographic.js"],b["Maps/Projections/WebMercator.js"]],function(b,u,A,B,v){return{EqualEarth:u,LambertConformalConic:b,Miller:A,Orthographic:B,WebMercator:v}});F(b,"Maps/Projection.js",[b["Maps/Projections/ProjectionRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__spreadArrays||function(){for(var b=0,
631
- k=0,r=arguments.length;k<r;k++)b+=arguments[k].length;b=Array(b);var m=0;for(k=0;k<r;k++)for(var h=arguments[k],a=0,c=h.length;a<c;a++,m++)b[m]=h[a];return b},B=u.erase,v=2*Math.PI/360,E=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function u(b){void 0===b&&(b={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=b;var k=b.name,m=b.rotation;this.rotator=m?this.getRotator(m):void 0;var h=this.def=k?u.registry[k]:void 0,a=this.rotator;h&&(h.init&&
632
- h.init(b),this.maxLatitude=h.maxLatitude||90,this.hasGeoProjection=!0);a&&h?(this.forward=function(b){b=a.forward(b);return h.forward(b)},this.inverse=function(b){b=h.inverse(b);return a.inverse(b)}):h?(this.forward=h.forward,this.inverse=h.inverse):a&&(this.forward=a.forward,this.inverse=a.inverse)}u.add=function(b,r){u.registry[b]=r};u.greatCircle=function(b,r,m){var h=Math.atan2,a=Math.cos,c=Math.sin,e=Math.sqrt,g=b[1]*v,k=b[0]*v,u=r[1]*v,t=r[0]*v,p=u-g,w=t-k;p=c(p/2)*c(p/2)+a(g)*a(u)*c(w/2)*c(w/
633
- 2);p=2*h(e(p),e(1-p));var n=Math.round(6371E3*p/5E5);w=[];m&&w.push(b);if(1<n)for(n=b=1/n;.999>n;n+=b){var f=c((1-n)*p)/c(p),q=c(n*p)/c(p),d=f*a(g)*a(k)+q*a(u)*a(t),z=f*a(g)*c(k)+q*a(u)*c(t);f=f*c(g)+q*c(u);f=h(f,e(d*d+z*z));d=h(z,d);w.push([d/v,f/v])}m&&w.push(r);return w};u.insertGreatCircles=function(b){for(var k=b.length-1;k--;)if(10<Math.max(Math.abs(b[k][0]-b[k+1][0]),Math.abs(b[k][1]-b[k+1][1]))){var m=u.greatCircle(b[k],b[k+1]);m.length&&b.splice.apply(b,x([k+1,0],m))}};u.toString=function(b){b=
634
- b||{};var k=b.rotation;return[b.name,k&&k.join(",")].join(";")};u.prototype.getRotator=function(b){var k=b[0]*v,m=(b[1]||0)*v;b=(b[2]||0)*v;var h=Math.cos(m),a=Math.sin(m),c=Math.cos(b),e=Math.sin(b);if(0!==k||0!==m||0!==b)return{forward:function(b){var g=b[0]*v+k,m=b[1]*v,t=Math.cos(m);b=Math.cos(g)*t;g=Math.sin(g)*t;m=Math.sin(m);t=m*h+b*a;return[Math.atan2(g*c-t*e,b*h-m*a)/v,Math.asin(t*c+g*e)/v]},inverse:function(b){var g=b[0]*v,m=b[1]*v,t=Math.cos(m);b=Math.cos(g)*t;g=Math.sin(g)*t;m=Math.sin(m);
635
- t=m*c-g*e;return[(Math.atan2(g*c+m*e,b*h+t*a)-k)/v,Math.asin(t*h-b*a)/v]}}};u.prototype.forward=function(b){return b};u.prototype.inverse=function(b){return b};u.prototype.clipOnAntimeridian=function(b,r){var k=[],h=[b];b.forEach(function(a,c){var e=b[c-1];if(!c){if(!r)return;e=b[b.length-1]}var g=e[0],f=a[0];(-90>g||90<g)&&(-90>f||90<f)&&0<g!==0<f&&k.push({i:c,lat:e[1]+(180-e[0])/(a[0]-e[0])*(a[1]-e[1]),direction:0>g?1:-1,previousLonLat:e,lonLat:a})});if(k.length)if(r){if(1===k.length%2){var a=k.slice().sort(function(a,
636
- b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];B(k,a)}for(var c=k.length-2;0<=c;){var e=k[c].i,g=E(180+.000001*k[c].direction),w=E(180-.000001*k[c].direction);e=b.splice.apply(b,x([e,k[c+1].i-e],u.greatCircle([g,k[c].lat],[g,k[c+1].lat],!0)));e.push.apply(e,u.greatCircle([w,k[c+1].lat],[w,k[c].lat],!0));h.push(e);c-=2}if(a)for(e=0;e<h.length;e++)if(c=h[e],w=c.indexOf(a.lonLat),-1<w){e=(0>a.lat?-1:1)*this.maxLatitude;g=E(180+.000001*a.direction);var y=E(180-.000001*a.direction);a=u.greatCircle([g,
637
- a.lat],[g,e],!0).concat(u.greatCircle([y,e],[y,a.lat],!0));c.splice.apply(c,x([w,0],a));break}}else for(c=k.length;c--;)e=k[c].i,e=b.splice(e,b.length,[E(180+.000001*k[c].direction),k[c].lat]),e.unshift([E(180-.000001*k[c].direction),k[c].lat]),h.push(e);return h};u.prototype.path=function(b){var k=this,m=this.def,h=this.rotator,a=[],c="Polygon"===b.type||"MultiPolygon"===b.type,e=this.hasGeoProjection,g="Orthographic"!==this.options.name,w=g?h:void 0,y=g?m||this:this,t=function(b){b=b.map(function(a){if(g){w&&
638
- (a=w.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?179.999999:180.000001);a=[b,a[1]]}return a});var h=[b];e&&(u.insertGreatCircles(b),g&&(h=k.clipOnAntimeridian(b,c)));h.forEach(function(b){if(!(2>b.length))for(var f=!1,g,d,h=!1,l=function(b){f?a.push(["L",b[0],b[1]]):(a.push(["M",b[0],b[1]]),f=!0)},n=0;n<b.length;n++){var p=b[n],m=y.forward(p);isNaN(m[0])||isNaN(m[1])||e&&!(p[1]<=k.maxLatitude&&p[1]>=-k.maxLatitude)?h=!0:(c&&!g&&(g=p,b.push(p)),h&&d&&(c&&e?u.greatCircle(d,p).forEach(function(a){return l(y.forward(a))}):
639
- f=!1),l(m),d=p,h=!1)}})};"LineString"===b.type?t(b.coordinates):"MultiLineString"===b.type?b.coordinates.forEach(function(a){return t(a)}):"Polygon"===b.type?(b.coordinates.forEach(function(a){return t(a)}),a.length&&a.push(["Z"])):"MultiPolygon"===b.type&&(b.coordinates.forEach(function(a){a.forEach(function(a){return t(a)})}),a.length&&a.push(["Z"]));return a};u.registry=b;return u}()});F(b,"Maps/MapView.js",[b["Maps/MapViewOptionsDefault.js"],b["Maps/Projection.js"],b["Core/Utilities.js"]],function(b,
640
- u,A){var x=A.addEvent,v=A.clamp,E=A.fireEvent,w=A.isNumber,k=A.merge,r=A.pick,m=A.relativeLength;return function(){function h(a,c){var e=this;this.userOptions=c||{};c=k(b,c);this.chart=a;this.center=c.center;this.options=c;this.projection=new u(c.projection);this.zoom=c.zoom||0;x(a,"afterSetChartSize",function(){if(void 0===e.minZoom||e.minZoom===e.zoom)e.fitToBounds(void 0,void 0,!1),w(e.userOptions.zoom)&&(e.zoom=e.userOptions.zoom),e.userOptions.center&&k(!0,e.center,e.userOptions.center)});var g,
641
- h,m;c=function(b){var c=a.pointer.pinchDown,k=a.mouseDownX,n=a.mouseDownY;1===c.length&&(k=c[0].chartX,n=c[0].chartY);if("number"===typeof k&&"number"===typeof n){var f=k+","+n,q=b.originalEvent;c=q.chartX;q=q.chartY;f!==h&&(h=f,g=e.projection.forward(e.center),m=(e.projection.options.rotation||[0,0]).slice());"Orthographic"===e.projection.options.name&&3>(e.minZoom||Infinity)?(f=440/(e.getScale()*Math.min(a.plotWidth,a.plotHeight)),m&&(k=(k-c)*f-m[0],n=v(-m[1]-(n-q)*f,-80,80),e.update({projection:{rotation:[-k,
642
- -n]},center:[k,n],zoom:e.zoom},!0,!1))):(f=e.getScale(),n=e.projection.inverse([g[0]+(k-c)/f,g[1]-(n-q)/f]),e.setView(n,void 0,!0,!1));b.preventDefault()}};x(a,"pan",c);x(a,"touchpan",c);x(a,"selection",function(b){if(b.resetSelection)e.zoomBy();else{var c=b.x-a.plotLeft,g=b.y-a.plotTop,h=e.pixelsToProjectedUnits({x:c,y:g}),f=h.y;h=h.x;c=e.pixelsToProjectedUnits({x:c+b.width,y:g+b.height});e.fitToBounds({x1:h,y1:f,x2:c.x,y2:c.y},void 0,!0,b.originalEvent.touches?!1:void 0);/^touch/.test(b.originalEvent.type)||
643
- a.showResetZoom();b.preventDefault()}})}h.prototype.fitToBounds=function(a,b,e,g){void 0===e&&(e=!0);var c=a||this.getProjectedBounds();if(c){var h=this.chart,k=h.plotWidth;h=h.plotHeight;var p=r(b,a?0:this.options.padding);b=m(p,k);p=m(p,h);k=Math.log(400.979322/Math.max((c.x2-c.x1)/((k-b)/256),(c.y2-c.y1)/((h-p)/256)))/Math.log(2);a||(this.minZoom=k);a=this.projection.inverse([(c.x2+c.x1)/2,(c.y2+c.y1)/2]);this.setView(a,k,e,g)}};h.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,
644
- b){(b=b.getProjectedBounds&&b.getProjectedBounds())&&a.push(b);return a},[]);return h.compositeBounds(a)};h.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};h.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};h.prototype.setView=function(a,b,e,g){void 0===e&&(e=!0);var c=!1;a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),"number"===typeof this.options.maxZoom&&
645
- (b=Math.min(b,this.options.maxZoom)),c=b>this.zoom,this.zoom=b);var h=this.getProjectedBounds();if(h&&!c){c=this.projection.forward(this.center);b=this.chart;a=b.plotWidth;b=b.plotHeight;var k=this.getScale(),m=this.projectedUnitsToPixels({x:h.x1,y:h.y1}),r=this.projectedUnitsToPixels({x:h.x2,y:h.y2});h=[(h.x1+h.x2)/2,(h.y1+h.y2)/2];var n=m.x,f=r.y;r=r.x;m=m.y;r-n<a?c[0]=h[0]:0>n&&r<a?c[0]+=Math.max(n,r-a)/k:r>a&&0<n&&(c[0]+=Math.min(r-a,n)/k);m-f<b?c[1]=h[1]:0>f&&m<b?c[1]-=Math.max(f,m-b)/k:m>b&&
646
- 0<f&&(c[1]-=Math.min(m-b,f)/k);this.center=this.projection.inverse(c)}E(this,"afterSetView");e&&this.redraw(g)};h.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),e=this.projection.forward(this.center);return{x:this.chart.plotWidth/2-b*(e[0]-a.x),y:this.chart.plotHeight/2+b*(e[1]-a.y)}};h.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var e=this.getScale(),g=this.projection.forward(this.center);return{x:g[0]+(b-this.chart.plotWidth/2)/e,y:g[1]-(a-this.chart.plotHeight/
647
- 2)/e}};h.prototype.update=function(a,b,e){void 0===b&&(b=!0);var c=a.projection;c=c&&u.toString(c)!==u.toString(this.options.projection);k(!0,this.userOptions,a);k(!0,this.options,a);c&&(this.chart.series.forEach(function(a){a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0}),this.projection=new u(this.options.projection),a.center||w(a.zoom)||this.fitToBounds(void 0,void 0,!1));(a.center||w(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(e)};h.prototype.zoomBy=
648
- function(a,b,e,g){var c=this.chart,h=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var k=b[0],m=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,e&&(k=e[0],m=e[1],e=this.getScale(),k=k-c.plotLeft-c.plotWidth/2,c=m-c.plotTop-c.plotHeight/2,k=h[0]+k/e,m=h[1]+c/e),"number"===typeof k&&"number"===typeof m&&(e=1-Math.pow(2,this.zoom)/Math.pow(2,a),k=h[0]-k,c=h[1]-m,h[0]-=k*e,h[1]+=c*e,b=this.projection.inverse(h)),this.setView(b,a,void 0,g)):this.fitToBounds(void 0,void 0,void 0,
649
- g)};h.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},k(a[0]))};return h}()});F(b,"Maps/MapSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function u(b,u,v,x,w,k,r,m){return[["M",b+w,u],["L",b+v-k,u],["C",b+v-k/2,u,b+v,u+k/2,b+v,u+k],["L",b+v,u+x-r],["C",b+v,u+x-r/2,b+v-r/2,u+x,b+v-r,u+x],["L",b+m,u+x],["C",b+m/2,u+x,b,u+x-m/2,b,u+x-m],["L",b,
650
- u+w],["C",b,u+w/2,b+w/2,u,b+w,u],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,x,v,E,w){w=w&&w.r||0;return u(b-1,x-1,v,E,0,0,w,w)};b.topbutton=function(b,x,v,E,w){w=w&&w.r||0;return u(b-1,x-1,v,E,w,w,0,0)};return b});F(b,"Core/Chart/MapChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Maps/MapView.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof
651
- Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),w=u.getOptions,k=v.addEvent,r=v.merge,m=v.pick;b=function(b){function a(){return null!==b&&b.apply(this,arguments)||this}x(a,b);a.prototype.init=function(a,e){k(this,"afterInit",function(){this.mapView=new A(this,this.options.mapView)});var c=w().credits;
652
- a=r({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:m(c.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:m(c.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},a);b.prototype.init.call(this,a,e)};return a}(b);(function(b){b.maps={};b.mapChart=function(a,c,e){return new b(a,c,e)};b.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?
653
- a:parseFloat(a)}));return B.prototype.pathToSegments(a)}})(b||(b={}));return b});F(b,"Series/Map/MapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(u,w){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,r){b.__proto__=r}||function(b,r){for(var k in r)r.hasOwnProperty(k)&&(b[k]=r[k])};return b(u,w)};return function(u,w){function k(){this.constructor=u}b(u,w);u.prototype=null===w?Object.create(w):
654
- (k.prototype=w.prototype,new k)}}(),B=u.extend;return function(b){function v(){var u=null!==b&&b.apply(this,arguments)||this;u.options=void 0;u.path=void 0;u.series=void 0;return u}x(v,b);v.getProjectedPath=function(b,k){b.projectedPath||(k&&b.geometry?(k.hasCoordinates=!0,b.projectedPath=k.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};v.prototype.applyOptions=function(u,k){var r=this.series;u=b.prototype.applyOptions.call(this,u,k);k=r.joinBy;r.mapData&&r.mapMap&&(k=b.prototype.getNestedProperty.call(u,
655
- k[1]),(r="undefined"!==typeof k&&r.mapMap[k])?B(u,r):u.value=u.value||null);return u};v.prototype.onMouseOver=function(w){u.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,w);else this.series.onMouseOut(w)};v.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return v}(b.seriesTypes.scatter.prototype.pointClass)});F(b,
656
- "Series/Map/MapSeries.js",[b["Core/Animation/AnimationUtilities.js"],b["Series/ColorMapComposition.js"],b["Series/CenteredUtilities.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Chart/MapChart.js"],b["Series/Map/MapPoint.js"],b["Maps/MapView.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r,m,h,a){var c=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
657
- {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),e=b.animObject;b=u.colorMapSeriesMixin;var g=B.noop,x=E.maps,y=E.splitPath;E=m.seriesTypes;var t=E.column,p=E.scatter;E=a.extend;var D=a.fireEvent,n=a.getNestedProperty,f=a.isArray,q=a.isNumber,d=a.merge,z=a.objectEach,l=a.pick,
658
- G=a.splat;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}c(b,a);b.prototype.animate=function(a){var b=this.chart,c=this.group,d=e(this.options.animation);b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.001,scaleY:.001}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},
659
- d))};b.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1}))};b.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};
660
- b.prototype.animateDrillupTo=function(a){t.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;delete a.projectedPath});delete this.bounds};b.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};b.prototype.drawMapDataLabels=function(){r.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=
661
- function(){var a=this,b=this.chart,c=this.group,d=this.svgTransform,e=b.mapView,f=b.renderer;this.transformGroup||(this.transformGroup=f.g().add(c),this.transformGroup.survive=!0);this.doFullTranslate()&&(b.hasRendered&&!b.styledMode&&this.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),this.group=this.transformGroup,t.prototype.drawPoints.apply(this),this.group=c,this.points.forEach(function(c){if(c.graphic){var d="";c.name&&(d+="highcharts-name-"+c.name.replace(/ /g,
662
- "-").toLowerCase());c.properties&&c.properties["hc-key"]&&(d+=" highcharts-key-"+c.properties["hc-key"].toLowerCase());d&&c.graphic.addClass(d);b.styledMode&&c.graphic.css(a.pointAttribs(c,c.selected&&"select"||void 0))}}));if(e&&d){var g=l(this.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],1),h=d.scaleX,k=0<d.scaleY?1:-1,n=this.transformGroup;if(f.globalAnimation&&b.hasRendered){var m=Number(n.attr("translateX")),q=Number(n.attr("translateY")),p=Number(n.attr("scaleX"));
663
- n.attr({animator:0}).animate({animator:1},{step:function(a,b){a=p+(h-p)*b.pos;n.attr({translateX:m+(d.translateX-m)*b.pos,translateY:q+(d.translateY-q)*b.pos,scaleX:a,scaleY:a*k});c.element.setAttribute("stroke-width",g/a)}})}else n.attr(d),c.element.setAttribute("stroke-width",g/h)}this.drawMapDataLabels()};b.prototype.getProjectedBounds=function(){if(!this.bounds){var a=Number.MAX_VALUE,b=this.chart.mapView&&this.chart.mapView.projection,c=[];(this.points||[]).forEach(function(d){if(d.path||d.geometry){"string"===
664
- typeof d.path?d.path=y(d.path):f(d.path)&&"M"===d.path[0]&&(d.path=h.prototype.pathToSegments(d.path));if(!d.bounds){var e=w.getProjectedPath(d,b),g=d.properties,k=-a,n=a,m=-a,p=a,t;e.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(n=Math.min(n,b),k=Math.max(k,b),p=Math.min(p,a),m=Math.max(m,a),t=!0)});t&&(e=g&&g["hc-middle-x"],e=n+(k-n)*l(d.middleX,q(e)?e:.5),g=g&&g["hc-middle-y"],g=l(d.middleY,q(g)?g:.5),d.geometry||(g=1-g),d.bounds={midX:e,midY:m-
665
- (m-p)*g,x1:n,y1:p,x2:k,y2:m},d.labelrank=l(d.labelrank,(k-n)*(m-p)))}d.bounds&&c.push(d.bounds)}});this.bounds=k.compositeBounds(c)}return this.bounds};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;b=c.styledMode?this.colorAttribs(a):t.prototype.pointAttribs.call(this,a,b);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());b.dashstyle&&d&&this.options.borderWidth&&
666
- (a=this.options.borderWidth/d.getScale());b["stroke-width"]=l(a,"inherit");return b};b.prototype.setData=function(a,b,c,e){var g=this.options,h=this.chart.options.chart,k=h&&h.map,l=g.mapData,m=this.joinBy,p=g.keys||this.pointArrayMap,t=[],u={},y=this.chart.mapTransforms;!l&&k&&(l="string"===typeof k?x[k]:k);a&&a.forEach(function(b,c){var d=0;if(q(b))a[c]={value:b};else if(f(b)){a[c]={};!g.keys&&b.length>p.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var e=0;e<p.length;++e,++d)p[e]&&
667
- "undefined"!==typeof b[d]&&(0<p[e].indexOf(".")?w.prototype.setNestedProperty(a[c],b[d],p[e]):a[c][p[e]]=b[d])}m&&"_i"===m[0]&&(a[c]._i=c)});(this.chart.mapTransforms=y=h.mapTransforms||l&&l["hc-transform"]||y)&&z(y,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=B.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(y=0;y<l.length;y++)h=l[y],k=h.properties,h._i=y,m[0]&&k&&k[m[0]]&&(h[m[0]]=
668
- k[m[0]]),u[h[m[0]]]=h;this.mapMap=u;if(a&&m[1]){var v=m[1];a.forEach(function(a){a=n(v,a);u[a]&&t.push(u[a])})}if(g.allAreas){a=a||[];if(m[1]){var D=m[1];a.forEach(function(a){t.push(n(D,a))})}t="|"+t.map(function(a){return a&&a[m[0]]}).join("|")+"|";l.forEach(function(b){m[0]&&-1!==t.indexOf("|"+b[m[0]]+"|")||(a.push(d(b,{value:null})),e=!1)})}}r.prototype.setData.call(this,a,b,c,e);this.processData();this.generatePoints()};b.prototype.setOptions=function(a){a=r.prototype.setOptions.call(this,a);
669
- var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=G(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this.doFullTranslate(),b=this.chart.mapView,c=b&&b.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());var d;if(b){var e=b.getScale(),f=b.projection.forward(b.center);b=b.projection.hasCoordinates?-1:1;this.svgTransform=d={scaleX:e,scaleY:e*b,translateX:this.chart.plotWidth/
670
- 2-f[0]*e,translateY:this.chart.plotHeight/2-f[1]*e*b}}this.points.forEach(function(b){d&&b.bounds&&q(b.bounds.midX)&&q(b.bounds.midY)&&(b.plotX=b.bounds.midX*d.scaleX+d.translateX,b.plotY=b.bounds.midY*d.scaleY+d.translateY);a&&(b.shapeType="path",b.shapeArgs={d:w.getProjectedPath(b,c)})});D(this,"afterTranslate")};b.defaultOptions=d(p.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return q(b)?a(b,-1):""},inside:!0,
671
- overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return b}(p);E(a.prototype,{type:"map",axisTypes:["colorAxis"],colorKey:"value",directTouch:!0,drawDataLabels:g,drawGraph:g,drawLegendSymbol:v.drawRectangle,
672
- forceDL:!0,getCenter:A.getCenter,getExtremesFromAll:!0,getSymbol:g,isCartesian:!1,parallelArrays:b.parallelArrays,pointArrayMap:b.pointArrayMap,pointClass:w,preserveAspectRatio:!0,searchPoint:g,trackerGroups:b.trackerGroups,useMapGeometry:!0});u.compose(a,w);m.registerSeriesType("map",a);"";return a});F(b,"Series/MapLine/MapLineSeries.js",[b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(k,
673
- m){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(k,m)};return function(k,m){function h(){this.constructor=k}b(k,m);k.prototype=null===m?Object.create(m):(h.prototype=m.prototype,new h)}}(),v=u.series,E=A.extend,w=A.merge;A=function(k){function r(){var b=null!==k&&k.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(r,k);r.prototype.pointAttribs=function(k,
674
- h){k=b.prototype.pointAttribs.call(this,k,h);k.fill=this.options.fillColor;return k};r.defaultOptions=w(b.defaultOptions,{lineWidth:1,fillColor:"none"});return r}(b);E(A.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:v.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});u.registerSeriesType("mapline",A);"";return A});F(b,"Series/MapPoint/MapPointPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||
675
- function(){var b=function(u,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(u,k)};return function(u,k){function r(){this.constructor=u}b(u,k);u.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}}(),B=u.isNumber,v=u.merge;return function(b){function u(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;return k}x(u,b);u.prototype.applyOptions=
676
- function(k,r){k="undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?v(k,this.series.chart.fromLatLonToPoint(k)):k;return b.prototype.applyOptions.call(this,k,r)};u.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y))};return u}(b.seriesTypes.scatter.prototype.pointClass)});F(b,"Series/MapPoint/MapPointSeries.js",[b["Core/Globals.js"],b["Series/MapPoint/MapPointPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B){var v=this&&this.__extends||
677
- function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();b=b.noop;var x=A.seriesTypes.scatter,w=B.extend,k=B.fireEvent,r=B.isNumber,m=B.merge;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;
678
- a.options=void 0;a.points=void 0;return a}v(a,b);a.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var g=b.projection,h=g.forward,m=g.hasCoordinates;this.points.forEach(function(c){var e=c.x;e=void 0===e?void 0:e;var g=c.y;g=void 0===g?void 0:g;var k=c.options.geometry;(k=
679
- k&&"Point"===k.type&&k.coordinates)?(g=h(k),e=g[0],g=g[1]):c.bounds&&(e=c.bounds.midX,g=c.bounds.midY);r(e)&&r(g)?(e=b.projectedUnitsToPixels({x:e,y:g}),c.plotX=e.x,c.plotY=m?e.y:a.chart.plotHeight-e.y):(c.plotX=void 0,c.plotY=void 0);c.isInside=a.isPointInside(c);c.zone=a.zones.length?c.getZone():void 0})}k(this,"afterTranslate")};a.defaultOptions=m(x.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(x);
680
- w(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:u,searchPoint:b,useMapGeometry:!0});A.registerSeriesType("mappoint",B);"";return B});F(b,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",
681
- color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});F(b,"Series/Bubble/BubbleLegendItem.js",[b["Core/Color/Color.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A,B){var v=b.parse,x=A.noop,w=B.arrayMax,k=B.arrayMin,r=B.isNumber,m=B.merge,h=B.pick,a=B.stableSort;"";return function(){function b(a,b){this.options=
682
- this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=x;this.init(a,b)}b.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};b.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};b.prototype.drawLegendSymbol=function(b){var c=this.chart,e=this.options,
683
- k=h(b.options.itemDistance,20),m=e.ranges,p=e.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(e.labels.style.fontSize);m&&m.length&&r(m[0].value)?(a(m,function(a,b){return b.value-a.value}),this.ranges=m,this.setOptions(),this.render(),b=this.getMaxLabelSize(),m=this.ranges[0].radius,c=2*m,p=p-m+b.width,p=0<p?p:0,this.maxLabel=b,this.movementX="left"===e.labels.align?p:0,this.legendItemWidth=c+p+k,this.legendItemHeight=c+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=
684
- function(){var a=this.ranges,b=this.options,c=this.chart.series[b.seriesIndex],k=this.legend.baseline,t={zIndex:b.zIndex,"stroke-width":b.borderWidth},p={zIndex:b.zIndex,"stroke-width":b.connectorWidth},r={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},n=c.options.marker.fillOpacity,f=this.chart.styledMode;a.forEach(function(e,d){f||(t.stroke=h(e.borderColor,b.borderColor,c.color),t.fill=h(e.color,b.color,1!==n?v(c.color).setOpacity(n).get("rgba"):c.color),
685
- p.stroke=h(e.connectorColor,b.connectorColor,c.color));a[d].radius=this.getRangeRadius(e.value);a[d]=m(a[d],{center:a[0].radius-a[d].radius+k});f||m(!0,a[d],{bubbleAttribs:m(t),connectorAttribs:m(p),labelAttribs:r})},this)};b.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};b.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;
686
- this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};b.prototype.renderRange=function(a){var b=this.options,c=b.labels,e=this.chart,h=e.series[b.seriesIndex],k=e.renderer,
687
- m=this.symbols;e=m.labels;var n=a.center,f=Math.abs(a.radius),q=b.connectorDistance||0,d=c.align,r=b.connectorWidth,l=this.ranges[0].radius||0,u=n-f-b.borderWidth/2+r/2,v=this.fontMetrics;v=v.f/2-(v.h-v.f)/2;var w=k.styledMode;q=this.legend.options.rtl||"left"===d?-q:q;"center"===d&&(q=0,b.connectorDistance=0,a.labelAttribs.align="center");d=u+b.labels.y;var x=l+q+b.labels.x;m.bubbleItems.push(k.circle(l,n+((u%1?1:.5)-(r%2?0:.5)),f).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+h.colorIndex+
688
- " ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));m.connectors.push(k.path(k.crispLine([["M",l,u],["L",l+q,u]],b.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=k.text(this.formatLabel(a),x,d+v).attr(w?{}:a.labelAttribs).css(w?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);
689
- e.push(a);a.placed=!0;a.alignAttr={x:x,y:d+v}};b.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(c){b=c.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};b.prototype.formatLabel=function(a){var b=this.options,c=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?u.format(b,a):c?c.call(a):e(a.value,1)};b.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),
690
- b.labels.forEach(function(a,c){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[c].show():b.connectors[c].hide()}))};b.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,c,u=Number.MAX_VALUE,t=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(c=a.zData.filter(r),c.length&&(u=h(a.options.zMin,Math.min(u,Math.max(k(c),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),t=h(a.options.zMax,Math.max(t,w(c)))))});
691
- var p=u===t?[{value:t}]:[{value:u},{value:(u+t)/2},{value:t,autoRanges:!0}];b.length&&b[0].radius&&p.reverse();p.forEach(function(a,c){b&&b[c]&&(p[c]=m(b[c],a))});return p};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,c=a.legend.options,h=c.floating,k=(c="horizontal"===c.layout)?a.legend.lastLineHeight:0,m=a.plotSizeX,r=a.plotSizeY,n=a.series[this.options.seriesIndex],f=n.getPxExtremes();a=Math.ceil(f.minPxSize);f=Math.ceil(f.maxPxSize);var q=Math.min(r,m);n=n.options.maxSize;
692
- if(h||!/%$/.test(n))b=f;else if(n=parseFloat(n),b=(q+k-b.h/2)*n/100/(n/100+1),c&&r-b>=m||!c&&m-b>=r)b=f;return[a,Math.ceil(b)]};b.prototype.updateRanges=function(a,b){var c=this.legend.options.bubbleLegend;c.minSize=a;c.maxSize=b;c.ranges=this.getRanges()};b.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return b}()});
693
- F(b,"Series/Bubble/BubbleLegendComposition.js",[b["Series/Bubble/BubbleLegendDefaults.js"],b["Series/Bubble/BubbleLegendItem.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,u,A,B){var v=A.setOptions,x=B.addEvent,w=B.objectEach,k=B.wrap,r;(function(m){function h(b,e,g){var h=this.legend,f=0<=a(this);if(h&&h.options.enabled&&h.bubbleLegend&&h.options.bubbleLegend.autoRanges&&f){var k=h.bubbleLegend.options;f=h.bubbleLegend.predictBubbleSizes();h.bubbleLegend.updateRanges(f[0],f[1]);
694
- k.placed||(h.group.placed=!1,h.allItems.forEach(function(a){a.legendGroup.translateY=null}));h.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();k.placed||(a.setScale(),a.updateNames(),w(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});k.placed=!0;this.getMargins();b.call(this,e,g);h.bubbleLegend.correctSizes();r(h,c(h))}else b.call(this,e,g),h&&h.options.enabled&&h.bubbleLegend&&(h.render(),r(h,c(h)))}function a(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&
695
- a[b].visible&&a[b].zData.length)return b;b++}return-1}function c(a){a=a.allItems;var b=[],c=a.length,e,f=0;for(e=0;e<c;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[c-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var g=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>g.height&&(g.height=a[f].itemHeight);g.step=e}return b}function e(b){var c=this.bubbleLegend,e=this.options,g=e.bubbleLegend,f=a(this.chart);c&&c.ranges&&c.ranges.length&&
696
- (g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(c));0<=f&&e.enabled&&g.enabled&&(g.seriesIndex=f,this.bubbleLegend=new u(g,this),this.bubbleLegend.addToLegend(b.allItems))}function g(){var b=this.chart,c=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,b=0<=a(b),e.bubbleLegend.visible!==b&&(e.update({bubbleLegend:{enabled:b}}),e.bubbleLegend.visible=b),this.visible=c)}function r(a,b){var c=a.options.rtl,e,f,g,d=0;a.allItems.forEach(function(a,
697
- h){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((g=a.movementX)||c&&a.ranges)g=c?e-a.options.maxSize/2:e+g,a.legendGroup.attr({translateX:g});h>b[d].step&&d++;a.legendGroup.attr({translateY:Math.round(f+b[d].height/2)});a._legendItemPos[1]=f+b[d].height/2})}var y=[];m.compose=function(a,c,m){-1===y.indexOf(a)&&(y.push(a),v({legend:{bubbleLegend:b}}),k(a.prototype,"drawChartBox",h));-1===y.indexOf(c)&&(y.push(c),x(c,"afterGetAllItems",e));-1===y.indexOf(m)&&(y.push(m),x(m,"legendItemClick",
698
- g))}})(r||(r={}));return r});F(b,"Series/Bubble/BubblePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(u,w){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,r){b.__proto__=r}||function(b,r){for(var k in r)r.hasOwnProperty(k)&&(b[k]=r[k])};return b(u,w)};return function(u,w){function k(){this.constructor=u}b(u,w);u.prototype=null===w?Object.create(w):(k.prototype=
699
- w.prototype,new k)}}();A=A.extend;u=function(u){function v(){var b=null!==u&&u.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}x(v,u);v.prototype.haloPath=function(u){return b.prototype.haloPath.call(this,0===u?0:(this.marker?this.marker.radius||0:0)+u)};return v}(u.seriesTypes.scatter.prototype.pointClass);A(u.prototype,{ttBelow:!1});return u});F(b,"Series/Bubble/BubbleSeries.js",[b["Core/Axis/Axis.js"],b["Series/Bubble/BubbleLegendComposition.js"],b["Series/Bubble/BubblePoint.js"],
700
- b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k){var r=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,
701
- new e)}}(),m=B.parse;B=v.noop;var h=w.seriesTypes;v=h.column;var a=h.scatter;h=k.addEvent;var c=k.arrayMax,e=k.arrayMin,g=k.clamp,x=k.extend,y=k.isNumber,t=k.merge,p=k.pick;k=function(b){function h(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}r(h,b);h.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
702
- a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};h.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,e=[],g=this.chart.bubbleZExtremes;var h=this.getPxExtremes();var k=h.minPxSize,m=h.maxPxSize;if(!g){var n=Number.MAX_VALUE,p=-Number.MAX_VALUE,r;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(n=
703
- Math.min(n||b.zMin,b.zMin),p=Math.max(p||b.zMax,b.zMax),r=!0)});r?(g={zMin:n,zMax:p},this.chart.bubbleZExtremes=g):g={zMin:0,zMax:0}}var t=0;for(h=b.length;t<h;t++){var u=b[t];e.push(this.getRadius(g.zMin,g.zMax,k,m,u,c[t]))}this.radii=e};h.prototype.getRadius=function(a,b,c,e,g,h){var d=this.options,f="width"!==d.sizeBy,k=d.zThreshold,l=b-a,m=.5;if(null===h||null===g)return null;if(y(g)){d.sizeByAbsoluteValue&&(g=Math.abs(g-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(g<a)return c/2-1;0<l&&(m=(g-a)/
704
- l)}f&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(e-c))/2};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=E.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=m(a.fill).setOpacity(c).get("rgba"));return a};h.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,
705
- e=a.length;e--;){var g=a[e],h=b?b[e]:0;y(h)&&h>=c/2?(g.marker=x(g.marker,{radius:h,width:2*h,height:2*h}),g.dlBox={x:g.plotX-h,y:g.plotY-h,width:2*h,height:2*h}):g.shapeArgs=g.plotY=g.dlBox=void 0}};h.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(p(this.options.minSize,8));b=Math.max(b(p(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};h.prototype.getZExtremes=
706
- function(){var a=this.options,b=(this.zData||[]).filter(y);if(b.length){var d=p(a.zMin,g(e(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=p(a.zMax,c(b));if(y(d)&&y(a))return{zMin:d,zMax:a}}};h.compose=u.compose;h.defaultOptions=t(a.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return y(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,
707
- states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(a);x(k.prototype,{alignDataLabel:v.prototype.alignDataLabel,applyZones:B,bubblePadding:!0,buildKDTree:B,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:A,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});
708
- h(k,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,e=0,d=b,g=this.isXAxis,h=g?"xData":"yData",k=this.min,m=this.max-k,r=b/m,t;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){t=a.allowZoomOutside=!0;var f=b[h];g&&b.getRadii(0,0,b);if(0<m)for(var l=f.length;l--;)if(y(f[l])&&a.dataMin<=f[l]&&f[l]<=a.max){var n=b.radii&&b.radii[l]||0;e=Math.min((f[l]-k)*r-n,
709
- e);d=Math.max((f[l]-k)*r+n,d)}}});t&&0<m&&!this.logarithmic&&(d-=b,r*=(b+Math.max(0,e)-Math.min(d,b))/b,[["min","userMin",e],["max","userMax",d]].forEach(function(b){"undefined"===typeof p(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/r)}))};w.registerSeriesType("bubble",k);"";"";return k});F(b,"Series/MapBubble/MapBubblePoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(u,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof
710
- Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(u,k)};return function(u,k){function r(){this.constructor=u}b(u,k);u.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}}();b=b.seriesTypes;var B=b.map,v=u.merge;return function(b){function u(){return null!==b&&b.apply(this,arguments)||this}x(u,b);u.prototype.applyOptions=function(k,r){return k&&"undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?b.prototype.applyOptions.call(this,
711
- v(k,this.series.chart.fromLatLonToPoint(k)),r):B.prototype.pointClass.prototype.applyOptions.call(this,k,r)};u.prototype.isValid=function(){return"number"===typeof this.z};return u}(b.bubble.prototype.pointClass)});F(b,"Series/MapBubble/MapBubbleSeries.js",[b["Series/Bubble/BubbleSeries.js"],b["Series/MapBubble/MapBubblePoint.js"],b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=this&&this.__extends||function(){var b=function(h,a){b=
712
- Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),w=B.seriesTypes.mappoint,k=v.extend,r=v.merge;v=function(k){function h(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}x(h,k);h.prototype.translate=
713
- function(){w.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.compose=b.compose;h.defaultOptions=r(b.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(b);k(v.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:A.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:u,setData:A.prototype.setData,setOptions:A.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});B.registerSeriesType("mapbubble",
714
- v);"";return v});F(b,"Series/Heatmap/HeatmapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}(),B=u.clamp,v=u.extend,
715
- E=u.pick;b=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;k.value=void 0;k.x=void 0;k.y=void 0;return k}x(k,b);k.prototype.applyOptions=function(k,m){k=b.prototype.applyOptions.call(this,k,m);k.formatPrefix=k.isNull||null===k.value?"null":"point";return k};k.prototype.getCellAttributes=function(){var b=this.series,k=b.options,h=(k.colsize||1)/2,a=(k.rowsize||1)/2,c=b.xAxis,e=b.yAxis,g=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();
716
- var u=E(this.pointPadding,k.pointPadding,0),v={x1:B(Math.round(c.len-(c.translate(this.x-h,!1,!0,!1,!0,-b)||0)),-c.len,2*c.len),x2:B(Math.round(c.len-(c.translate(this.x+h,!1,!0,!1,!0,-b)||0)),-c.len,2*c.len),y1:B(Math.round(e.translate(this.y-a,!1,!0,!1,!0)||0),-e.len,2*e.len),y2:B(Math.round(e.translate(this.y+a,!1,!0,!1,!0)||0),-e.len,2*e.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var c=a+"1",e=a+"2",f=Math.abs(v[c]-v[e]),h=g&&g.lineWidth||0,d=Math.abs(v[c]+v[e])/
717
- 2;g[b]&&g[b]<f&&(v[c]=d-g[b]/2-h/2,v[e]=d+g[b]/2+h/2);u&&("y"===a&&(c=e,e=a+"1"),v[c]+=u,v[e]-=u)});return v};k.prototype.haloPath=function(b){if(!b)return[];var k=this.shapeArgs;return["M",k.x-b,k.y-b,"L",k.x-b,k.y+k.height+b,k.x+k.width+b,k.y+k.height+b,k.x+k.width+b,k.y-b,"Z"]};k.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return k}(b.seriesTypes.scatter.prototype.pointClass);v(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});F(b,
718
- "Series/Heatmap/HeatmapSeries.js",[b["Core/Color/Color.js"],b["Series/ColorMapComposition.js"],b["Series/Heatmap/HeatmapPoint.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w){var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,
719
- c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),r=u.colorMapSeriesMixin,m=v.series,h=v.seriesTypes,a=h.column,c=h.scatter,e=E.prototype.symbols,g=w.extend,x=w.fireEvent,y=w.isNumber,t=w.merge,p=w.pick;E=function(a){function h(){var b=null!==a&&a.apply(this,arguments)||this;b.colorAxis=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.valueMax=NaN;b.valueMin=NaN;return b}k(h,a);h.prototype.drawPoints=function(){var a=
720
- this;if((this.options.marker||{}).enabled||this._hasPointMarkers)m.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),(b.shapeArgs||{}).r=a.options.borderRadius,(b.shapeArgs||{}).d=b.graphic.pathArray,null===b.value&&b.graphic.addClass("highcharts-null-point"))})};h.prototype.getExtremes=function(){var a=m.prototype.getExtremes.call(this,this.valueData),
721
- b=a.dataMin;a=a.dataMax;y(b)&&(this.valueMin=b);y(a)&&(this.valueMax=a);return m.prototype.getExtremes.call(this)};h.prototype.getValidPoints=function(a,b){return m.prototype.getValidPoints.call(this,a,b,!0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.init=function(){m.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=p(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;e.ellipse=e.circle};h.prototype.markerAttribs=function(a,b){var c=
722
- a.marker||{},e=this.options.marker||{},f=a.shapeArgs||{},g={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var h=e.states[b]||{};var k=c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){g[a[0]]=(k[a[0]]||h[a[0]]||f[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);g[a[1]]=f[a[1]]+(f[a[0]]-g[a[0]])/2})}return b?g:f};h.prototype.pointAttribs=function(a,c){var d=m.prototype.pointAttribs.call(this,a,c),e=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||
723
- {};f=a&&a.options.borderColor||e.borderColor||h.borderColor||g.borderColor;g=a&&a.options.borderWidth||e.borderWidth||h.borderWidth||g.borderWidth||d["stroke-width"];d.stroke=a&&a.marker&&a.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;d["stroke-width"]=g;c&&(a=t(e.states[c],e.marker&&e.marker.states[c],a&&a.options.states&&a.options.states[c]||{}),c=a.brightness,d.fill=a.color||b.parse(d.fill).brighten(c||0).get(),d.stroke=a.lineColor);return d};h.prototype.setClip=function(a){var b=
724
- this.chart;m.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};h.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",c=e[b]?b:"rect",h=-1!==["circle","square"].indexOf(c);this.generatePoints();this.points.forEach(function(a){var d=a.getCellAttributes(),f={};f.x=Math.min(d.x1,d.x2);f.y=Math.min(d.y1,d.y2);f.width=Math.max(Math.abs(d.x2-d.x1),
725
- 0);f.height=Math.max(Math.abs(d.y2-d.y1),0);var k=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(h){var l=Math.abs(f.width-f.height);f.x=Math.min(d.x1,d.x2)+(f.width<f.height?0:l/2);f.y=Math.min(d.y1,d.y2)+(f.width<f.height?l/2:0);f.width=f.height=Math.min(f.width,f.height)}l={plotX:(d.x1+d.x2)/2,plotY:(d.y1+d.y2)/2,clientX:(d.x1+d.x2)/2,shapeType:"path",shapeArgs:t(!0,f,{d:e[c](f.x,f.y,f.width,f.height)})};k&&(a.marker={width:f.width,height:f.height});g(a,l)});x(this,"afterTranslate")};
726
- h.defaultOptions=t(c.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return y(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});
727
- return h}(c);g(E.prototype,{alignDataLabel:a.prototype.alignDataLabel,axisTypes:r.axisTypes,colorKey:"value",directTouch:!0,drawLegendSymbol:B.drawRectangle,getExtremesFromAll:!0,getSymbol:m.prototype.getSymbol,parallelArrays:r.parallelArrays,pointArrayMap:["y","value"],pointClass:A,trackerGroups:r.trackerGroups});u.compose(E);v.registerSeriesType("heatmap",E);"";"";return E});F(b,"Extensions/GeoJSON.js",[b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],
728
- function(b,u,A,B){function v(b,a){var c,e=!1,g=b.x,h=b.y;b=0;for(c=a.length-1;b<a.length;c=b++){var k=a[b][1]>h;var m=a[c][1]>h;k!==m&&g<(a[c][0]-a[b][0])*(h-a[b][1])/(a[c][1]-a[b][1])+a[b][0]&&(e=!e)}return e}var x=u.format,w=A.win,k=B.error,r=B.extend,m=B.merge;u=B.wrap;"";b.prototype.transformFromLatLon=function(b,a){var c=this.options.chart.proj4||w.proj4;if(!c)return k(21,!1,this),{x:0,y:null};var e=a.jsonmarginX;e=void 0===e?0:e;var g=a.jsonmarginY;g=void 0===g?0:g;var h=a.jsonres;h=void 0===
729
- h?1:h;var m=a.scale;m=void 0===m?1:m;var t=a.xoffset;t=void 0===t?0:t;var p=a.xpan;p=void 0===p?0:p;var r=a.yoffset;r=void 0===r?0:r;var n=a.ypan;n=void 0===n?0:n;b=c(a.crs,[b.lon,b.lat]);c=a.cosAngle||a.rotation&&Math.cos(a.rotation);var f=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=a.rotation?[b[0]*c+b[1]*f,-b[0]*f+b[1]*c]:b;return{x:((a[0]-t)*m+p)*h+e,y:-(((r-a[1])*m+n)*h-g)}};b.prototype.transformToLatLon=function(b,a){if(!this.options.chart.proj4&&!w.proj4)k(21,!1,this);else if(null!==b.y){var c=
730
- a.jsonmarginX,e=a.jsonmarginY,g=a.jsonres;g=void 0===g?1:g;var h=a.scale;h=void 0===h?1:h;var m=a.xoffset,r=a.xpan,p=a.yoffset,u=a.ypan;b={x:((b.x-(void 0===c?0:c))/g-(void 0===r?0:r))/h+(void 0===m?0:m),y:((b.y-(void 0===e?0:e))/g+(void 0===u?0:u))/h+(void 0===p?0:p)};c=a.cosAngle||a.rotation&&Math.cos(a.rotation);e=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=w.proj4(a.crs,"WGS84",a.rotation?{x:b.x*c+b.y*-e,y:b.x*e+b.y*c}:b);return{lat:a.y,lon:a.x}}};b.prototype.fromPointToLatLon=function(b){var a=
731
- this.mapTransforms;if(a){for(var c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone&&v(b,a[c].hitZone.coordinates[0]))return this.transformToLatLon(b,a[c]);return this.transformToLatLon(b,a["default"])}k(22,!1,this)};b.prototype.fromLatLonToPoint=function(b){var a=this.mapTransforms,c;if(!a)return k(22,!1,this),{x:0,y:null};for(c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone){var e=this.transformFromLatLon(b,a[c]);if(v(e,a[c].hitZone.coordinates[0]))return e}return this.transformFromLatLon(b,
732
- a["default"])};A.geojson=function(b,a,c){void 0===a&&(a="map");var e=[];b.features.forEach(function(b){var c=b.geometry||{},g=c.type;c=c.coordinates;b=b.properties;var h;"map"!==a&&"mapbubble"!==a||"Polygon"!==g&&"MultiPolygon"!==g?"mapline"!==a||"LineString"!==g&&"MultiLineString"!==g?"mappoint"===a&&"Point"===g&&c.length&&(h={geometry:{coordinates:c,type:g}}):c.length&&(h={geometry:{coordinates:c,type:g}}):c.length&&(h={geometry:{coordinates:c,type:g}});h&&e.push(r(h,{name:b.name||b.NAME,properties:b}))});
733
- c&&b.copyrightShort&&(c.chart.mapCredits=x(c.chart.options.credits.mapText,{geojson:b}),c.chart.mapCreditsFull=x(c.chart.options.credits.mapTextFull,{geojson:b}));return e};u(b.prototype,"addCredits",function(b,a){a=m(!0,this.options.credits,a);this.mapCredits&&(a.href=null);b.call(this,a);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});F(b,"masters/modules/map.src.js",[b["Core/Globals.js"],b["Core/Axis/Color/ColorAxis.js"],b["Series/MapBubble/MapBubbleSeries.js"],
734
- b["Core/Chart/MapChart.js"]],function(b,u,A,B){b.ColorAxis=u;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.maps=B.maps;u.compose(b.Chart,b.Fx,b.Legend,b.Series);A.compose(b.Chart,b.Legend,b.Series)});F(b,"masters/highmaps.src.js",[b["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});b["masters/highmaps.src.js"]._modules=b;return b["masters/highmaps.src.js"]});
589
+ b["Series/Pie/PieDataLabel.js"],b["Core/Series/DataLabel.js"],b["Core/Responsive.js"],b["Core/Color/Color.js"],b["Core/Time.js"]],function(b,p,A,E,w,D,B,k,t,n,h,d,a,e,g,x,C,r,q,z,m,f,y,c,u,l,F,K,H,I,G,Q,O){b.animate=w.animate;b.animObject=w.animObject;b.getDeferredAnimation=w.getDeferredAnimation;b.setAnimation=w.setAnimation;b.stop=w.stop;b.timers=E.timers;b.AST=D;b.Axis=a;b.Chart=y;b.chart=y.chart;b.Fx=E;b.Legend=f;b.PlotLineOrBand=x;b.Point=q;b.Pointer=m.isRequired()?m:z;b.Series=c;b.SVGElement=
590
+ t;b.SVGRenderer=n;b.Tick=C;b.Time=O;b.Tooltip=r;b.Color=Q;b.color=Q.parse;d.compose(n);h.compose(t);b.defaultOptions=A.defaultOptions;b.getOptions=A.getOptions;b.time=A.defaultTime;b.setOptions=A.setOptions;b.dateFormat=B.dateFormat;b.format=B.format;b.numberFormat=B.numberFormat;b.addEvent=p.addEvent;b.arrayMax=p.arrayMax;b.arrayMin=p.arrayMin;b.attr=p.attr;b.clearTimeout=p.clearTimeout;b.correctFloat=p.correctFloat;b.createElement=p.createElement;b.css=p.css;b.defined=p.defined;b.destroyObjectProperties=
591
+ p.destroyObjectProperties;b.discardElement=p.discardElement;b.distribute=k.distribute;b.erase=p.erase;b.error=p.error;b.extend=p.extend;b.extendClass=p.extendClass;b.find=p.find;b.fireEvent=p.fireEvent;b.getMagnitude=p.getMagnitude;b.getStyle=p.getStyle;b.inArray=p.inArray;b.isArray=p.isArray;b.isClass=p.isClass;b.isDOMElement=p.isDOMElement;b.isFunction=p.isFunction;b.isNumber=p.isNumber;b.isObject=p.isObject;b.isString=p.isString;b.keys=p.keys;b.merge=p.merge;b.normalizeTickInterval=p.normalizeTickInterval;
592
+ b.objectEach=p.objectEach;b.offset=p.offset;b.pad=p.pad;b.pick=p.pick;b.pInt=p.pInt;b.relativeLength=p.relativeLength;b.removeEvent=p.removeEvent;b.seriesType=u.seriesType;b.splat=p.splat;b.stableSort=p.stableSort;b.syncTimeout=p.syncTimeout;b.timeUnits=p.timeUnits;b.uniqueKey=p.uniqueKey;b.useSerialIds=p.useSerialIds;b.wrap=p.wrap;F.compose(l);I.compose(c);e.compose(a);g.compose(a);H.compose(K);x.compose(a);G.compose(y);return b});G(b,"Core/Axis/Color/ColorAxisComposition.js",[b["Core/Color/Color.js"],
593
+ b["Core/Utilities.js"]],function(b,p){var v=b.parse,E=p.addEvent,w=p.extend,D=p.merge,B=p.pick,k=p.splat,t;(function(b){function h(){var a=this,d=this.options;this.colorAxis=[];d.colorAxis&&(d.colorAxis=k(d.colorAxis),d.colorAxis.forEach(function(c,d){c.index=d;new p(a,c)}))}function d(a){var c=this,d=function(d){d=a.allItems.indexOf(d);-1!==d&&(c.destroyItem(a.allItems[d]),a.allItems.splice(d,1))},b=[],f,e;(this.chart.colorAxis||[]).forEach(function(a){(f=a.options)&&f.showInLegend&&(f.dataClasses&&
594
+ f.visible?b=b.concat(a.getDataClassLegendSymbols()):f.visible&&b.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||f.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(e=b.length;e--;)a.allItems.unshift(b[e])}function a(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function e(){var a=this.chart.colorAxis;a&&a.forEach(function(a,c,d){a.update({},d)})}function g(){(this.chart.colorAxis&&this.chart.colorAxis.length||
595
+ this.colorAttribs)&&this.translateColors()}function n(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function t(a){var c=this,d=a?"show":"hide";c.visible=c.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(c[a])c[a][d]()});this.series.buildKDTree()}function r(){var a=this,d=this.options.nullColor,b=this.colorAxis,f=this.colorKey;(this.data.length?this.data:this.points).forEach(function(c){var e=c.getNestedProperty(f);(e=c.options.color||
596
+ (c.isNull||null===c.value?d:b&&"undefined"!==typeof e?b.toColor(e,c):c.color||a.color))&&c.color!==e&&(c.color=e,"point"===a.options.legendType&&c.legendItem&&a.chart.legend.colorizeItem(c,c.visible))})}function q(a){var c=a.prototype.createAxis;a.prototype.createAxis=function(a,d){if("colorAxis"!==a)return c.apply(this,arguments);var b=new p(this,D(d.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();
597
+ a.isDirtyData=!0});B(d.redraw,!0)&&this.redraw(d.animation);return b}}function z(){this.elem.attr("fill",v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}function m(){this.elem.attr("stroke",v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}var f=[],p;b.compose=function(c,b,k,x,y){p||(p=c);-1===f.indexOf(b)&&(f.push(b),c=b.prototype,c.collectionsWithUpdate.push("colorAxis"),c.collectionsWithInit.colorAxis=[c.addColorAxis],E(b,"afterGetAxes",h),q(b));-1===f.indexOf(k)&&(f.push(k),b=k.prototype,
598
+ b.fillSetter=z,b.strokeSetter=m);-1===f.indexOf(x)&&(f.push(x),E(x,"afterGetAllItems",d),E(x,"afterColorizeItem",a),E(x,"afterUpdate",e));-1===f.indexOf(y)&&(f.push(y),w(y.prototype,{optionalAxis:"colorAxis",translateColors:r}),w(y.prototype.pointClass.prototype,{setVisible:t}),E(y,"afterTranslate",g),E(y,"bindAxes",n))};b.pointSetVisible=t})(t||(t={}));return t});G(b,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
599
+ startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});G(b,"Core/Axis/Color/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Color/Color.js"],b["Core/Axis/Color/ColorAxisComposition.js"],b["Core/Axis/Color/ColorAxisDefaults.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,
600
+ A,E,w,D,B,k){var t=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function e(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),n=p.parse,h=w.noop,d=B.series,a=k.extend,e=k.isNumber,g=k.merge,x=k.pick;p=function(b){function k(a,d){var e=b.call(this,a,d)||this;
601
+ e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,d);return e}t(k,b);k.compose=function(a,d,b,f){A.compose(k,a,d,b,f)};k.prototype.init=function(a,d){var e=a.options.legend||{},f=d.layout?"vertical"!==d.layout:"vertical"!==e.layout,h=d.visible;e=g(k.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:e.enabled&&!1!==h});this.coll="colorAxis";this.side=d.side||f?2:
602
+ 1;this.reversed=d.reversed||!f;this.opposite=!f;b.prototype.init.call(this,a,e);this.userOptions.visible=h;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=f;this.zoomEnabled=!1};k.prototype.initDataClasses=function(a){var d=this.chart,b=this.options,f=a.dataClasses.length,e,c=0,h=d.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,m){a=g(a);e.push(a);if(d.styledMode||!a.color)"category"===b.dataClassColor?(d.styledMode||(m=
603
+ d.options.colors,h=m.length,a.color=m[c]),a.colorIndex=c,c++,c===h&&(c=0)):a.color=n(b.minColor).tweenTo(n(b.maxColor),2>f?.5:m/(f-1))})};k.prototype.hasData=function(){return!!(this.tickPositions||[]).length};k.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};k.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=n(a[1])})};k.prototype.setOptions=
604
+ function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};k.prototype.setAxisSize=function(){var a=this.legendSymbol,d=this.chart,b=d.options.legend||{},f,e;a?(this.left=b=a.attr("x"),this.top=f=a.attr("y"),this.width=e=a.attr("width"),this.height=a=a.attr("height"),this.right=d.chartWidth-b-e,this.bottom=d.chartHeight-f-a,this.len=this.horiz?e:a,this.pos=this.horiz?b:f):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||k.defaultLegendLength};k.prototype.normalizedValue=
605
+ function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};k.prototype.toColor=function(a,d){var b=this.dataClasses,f=this.stops,e;if(b)for(e=b.length;e--;){var c=b[e];var g=c.from;f=c.to;if(("undefined"===typeof g||a>=g)&&("undefined"===typeof f||a<=f)){var h=c.color;d&&(d.dataClass=e,d.colorIndex=c.colorIndex);break}}else{a=this.normalizedValue(a);for(e=f.length;e--&&!(a>f[e][0]););g=f[e]||f[e+1];f=f[e+1]||g;a=1-(f[0]-a)/(f[0]-g[0]||1);h=g.color.tweenTo(f.color,
606
+ a)}return h};k.prototype.getOffset=function(){var a=this.legendGroup,d=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=d)};k.prototype.setLegendColor=function(){var a=this.reversed,d=a?1:0;a=a?0:1;d=this.horiz?[d,0,a,0]:[0,a,0,d];this.legendColor={linearGradient:{x1:d[0],y1:d[1],x2:d[2],y2:d[3]},stops:this.stops}};k.prototype.drawLegendSymbol=function(a,
607
+ d){var b=a.padding,e=a.options,g=this.horiz,c=x(e.symbolWidth,g?k.defaultLegendLength:12),h=x(e.symbolHeight,g?12:k.defaultLegendLength),l=x(e.labelPadding,g?16:30);e=x(e.itemDistance,10);this.setLegendColor();d.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,h).attr({zIndex:1}).add(d.legendGroup);this.legendItemWidth=c+b+(g?e:l);this.legendItemHeight=h+b+(g?l:0)};k.prototype.setState=function(a){this.series.forEach(function(d){d.setState(a)})};k.prototype.setVisible=function(){};k.prototype.getSeriesExtremes=
608
+ function(){var a=this.series,b=a.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=a[b];var g=f.colorKey=x(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var c=f.pointArrayMap;var h=f[g+"Min"]&&f[g+"Max"];if(f[g+"Data"])var k=f[g+"Data"];else if(c){k=[];c=c.indexOf(g);var n=f.yData;if(0<=c&&n)for(e=0;e<n.length;e++)k.push(x(n[e][c],n[e]))}else k=f.yData;h?(f.minColorValue=f[g+"Min"],f.maxColorValue=f[g+"Max"]):(k=d.prototype.getExtremes.call(f,k),f.minColorValue=k.dataMin,
609
+ f.maxColorValue=k.dataMax);"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));h||d.prototype.applyExtremes.call(f)}};k.prototype.drawCrosshair=function(a,d){var e=d&&d.plotX,f=d&&d.plotY,g=this.pos,c=this.len;if(d){var h=this.toPixels(d.getNestedProperty(d.series.colorKey));h<g?h=g-2:h>g+c&&(h=g+c+2);d.plotX=h;d.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,d);d.plotX=e;d.plotY=f;this.cross&&!this.cross.addedToColorAxis&&
610
+ this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};k.prototype.getPlotLinePath=function(a){var d=this.left,g=a.translatedValue,f=this.top;return e(g)?this.horiz?[["M",g-4,f-6],["L",g+4,f-6],["L",g,f],["Z"]]:[["M",d,g],["L",d-6,g+6],["L",d-6,g-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};k.prototype.update=function(a,
611
+ d){var e=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};k.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(d){a.legend.destroyItem(d)});a.isDirtyLegend=!0};k.prototype.destroy=function(){this.chart.isDirtyLegend=!0;
612
+ this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};k.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};k.prototype.getDataClassLegendSymbols=function(){var d=this,b=d.chart,e=d.legendItems,f=b.options.legend,g=f.valueDecimals,c=f.valueSuffix||"",k;e.length||d.dataClasses.forEach(function(f,m){var l=f.from,n=f.to,q=b.numberFormatter,r=!0;k="";"undefined"===typeof l?k="< ":"undefined"===typeof n&&(k="> ");"undefined"!==typeof l&&(k+=q(l,g)+
613
+ c);"undefined"!==typeof l&&"undefined"!==typeof n&&(k+=" - ");"undefined"!==typeof n&&(k+=q(n,g)+c);e.push(a({chart:b,name:k,options:{},drawLegendSymbol:D.drawRectangle,visible:!0,setState:h,isDataClass:!0,setVisible:function(){r=d.visible=!r;d.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===m&&a.setVisible(r)})});b.legend.colorizeItem(this,r)}},f))});return e};k.defaultColorAxisOptions=E;k.defaultLegendLength=200;k.keepProps=["legendGroup","legendItemHeight","legendItemWidth",
614
+ "legendItem","legendSymbol"];return k}(b);Array.prototype.push.apply(b.keepProps,p.keepProps);"";return p});G(b,"Maps/MapNavigationOptionsDefault.js",[b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,p){p=p.extend;var v={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},
615
+ text:"-",y:28}},mouseWheelSensitivity:1.1};p(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=v});G(b,"Maps/MapNavigation.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p,A){function v(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function w(a){this.init(a)}var D=p.doc,B=A.addEvent,k=A.extend,t=A.isNumber,n=A.merge,h=A.objectEach,d=A.pick;w.prototype.init=
616
+ function(a){this.chart=a;a.mapNavButtons=[]};w.prototype.update=function(a){var b=this.chart,g=b.options.mapNavigation,t,p,r,q,z=function(a){this.handler.call(b,a);v(a)},m=b.mapNavButtons;a&&(g=b.options.mapNavigation=n(b.options.mapNavigation,a));for(;m.length;)m.pop().destroy();d(g.enableButtons,g.enabled)&&!b.renderer.forExport&&h(g.buttons,function(a,d){a=n(g.buttonOptions,a);!b.styledMode&&a.theme&&(t=a.theme,t.style=n(a.theme.style,a.style),r=(p=t.states)&&p.hover,q=p&&p.select,delete t.states);
617
+ var c=b.renderer.button(a.text||"",0,0,z,t,r,q,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();c.handler=a.onclick;B(c.element,"dblclick",v);m.push(c);k(a,{width:c.width,height:2*c.height});if(b.hasLoaded)c.align(a,!1,a.alignTo);else var e=B(b,"load",function(){c.element&&c.align(a,!1,a.alignTo);e()})});this.updateEvents(g)};
618
+ w.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||B(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());d(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||B(b.container,void 0!==D.onwheel?"wheel":void 0!==D.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,
619
+ "highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),v(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};k(b.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]<d[e]&&(a[e]=d[e])});return a},mapZoom:function(a,d,b,h,k){this.mapView&&(t(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,t(d)&&t(b)?
620
+ this.mapView.projection.inverse([d,b]):void 0,t(h)&&t(k)?[h,k]:void 0))}});B(b,"beforeRender",function(){this.mapNavigation=new w(this);this.mapNavigation.update()});p.MapNavigation=w});G(b,"Maps/MapPointer.js",[b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,p){var v=p.defined,E=p.extend,w=p.pick;p=p.wrap;var D=0,B;E(b.prototype,{onContainerDblClick:function(b){var k=this.chart;b=this.normalize(b);k.options.mapNavigation.enableDoubleClickZoomTo?k.pointer.inClass(b.target,"highcharts-tracker")&&
621
+ k.hoverPoint&&k.hoverPoint.zoomTo():k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var k=this.chart;b=this.normalize(b);var n=v(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(n)&&(D+=Math.abs(n),B&&clearTimeout(B),B=setTimeout(function(){D=0},50));10>D&&k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapView&&k.mapView.zoomBy((k.options.mapNavigation.mouseWheelSensitivity-1)*-n,void 0,
622
+ [b.chartX,b.chartY],1>Math.abs(n)?!1:void 0)}});p(b.prototype,"zoomOption",function(b){var k=this.chart.options.mapNavigation;w(k.enableTouchZoom,k.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});p(b.prototype,"pinchTranslate",function(b,t,n,h,d,a,e){b.call(this,t,n,h,d,a,e);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=h.scaleX>h.scaleY,this.pinchTranslateDirection(!b,t,n,h,d,a,e,b?h.scaleX:h.scaleY))})});G(b,"Series/ColorMapMixin.js",[b["Core/Globals.js"],
623
+ b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,p,A){var v=b.noop;b=b.seriesTypes;var w=A.defined;A=A.addEvent;A(p,"afterSetState",function(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})});return{PointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},SeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup",
624
+ "dataLabelsGroup"],getSymbol:v,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:b.column.prototype.pointAttribs,colorAttribs:function(b){var p={};!w(b.color)||b.state&&"normal"!==b.state||(p[this.colorProp||"fill"]=b.color);return p}}}});G(b,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:void 0,zoom:void 0}});G(b,"Maps/Projections/LambertConformalConic.js",[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},p=Math.PI/
625
+ 180,A=Math.PI/2,E=0,w=0;return{init:function(v){var B=(v.parallels||[]).map(function(b){return b*p});v=B[0]||0;B=B[1]||v;var k=Math.cos(v);E=v===B?Math.sin(v):Math.log(k/Math.cos(B))/Math.log(Math.tan((A+B)/2)/Math.tan((A+v)/2));1e-10>Math.abs(E)&&(E=1e-10*(b(E)||1));w=k*Math.pow(Math.tan((A+v)/2),E)/E},forward:function(b){var v=b[0]*p;b=b[1]*p;0<w?b<-A+.000001&&(b=-A+.000001):b>A-.000001&&(b=A-.000001);b=w/Math.pow(Math.tan((A+b)/2),E);return[b*Math.sin(E*v)*63.78137,63.78137*(w-b*Math.cos(E*v))]},
626
+ inverse:function(v){var B=v[0]/63.78137;v=w-v[1]/63.78137;var k=b(E)*Math.sqrt(B*B+v*v),t=Math.atan2(B,Math.abs(v))*b(v);0>v*E&&(t-=Math.PI*b(B)*b(v));return[t/E/p,(2*Math.atan(Math.pow(w/k,1/E))-A)/p]}}});G(b,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return{forward:function(p){var v=Math.PI/180,E=Math.asin(b*Math.sin(p[1]*v)),w=E*E,D=w*w*w;return[p[0]*v*Math.cos(E)*74.03120656864502/(b*(1.340264+3*-.081106*w+D*(7*.000893+.034164*w))),74.03120656864502*E*(1.340264+-.081106*
627
+ w+D*(.000893+.003796*w))]},inverse:function(p){var v=p[0]/74.03120656864502;p=p[1]/74.03120656864502;var E=180/Math.PI,w=p,D;for(D=0;12>D;++D){var B=w*w;var k=B*B*B;var t=w*(1.340264+-.081106*B+k*(.000893+.003796*B))-p;B=1.340264+3*-.081106*B+k*(7*.000893+.034164*B);w-=t/=B;if(1e-9>Math.abs(t))break}B=w*w;return[E*b*v*(1.340264+3*-.081106*B+B*B*B*(7*.000893+.034164*B))/Math.cos(w),E*Math.asin(Math.sin(w)/b)]}}});G(b,"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,p=Math.PI/180;return{forward:function(v){return[v[0]*
628
+ p*63.78137,79.7267125*Math.log(Math.tan(b+.4*v[1]*p))]},inverse:function(v){return[v[0]/63.78137/p,2.5*(Math.atan(Math.exp(v[1]/63.78137*.8))-b)/p]}}});G(b,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return{forward:function(p){var v=p[0];if(-90>v||90<v)return[NaN,NaN];p=p[1]*b;return[Math.cos(p)*Math.sin(v*b)*63.78460826781007,63.78460826781007*Math.sin(p)]},inverse:function(p){var v=p[0]/63.78460826781007;p=p[1]/63.78460826781007;var E=Math.sqrt(v*v+p*p),w=Math.asin(E),D=Math.sin(w);
629
+ return[Math.atan2(v*D,E*Math.cos(w))/b,Math.asin(E&&p*D/E)/b]}}});G(b,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return{forward:function(p){if(85.0511287798<Math.abs(p[1]))return[NaN,NaN];var v=Math.sin(p[1]*b);return[63.78137*p[0]*b,63.78137*Math.log((1+v)/(1-v))/2]},inverse:function(p){return[p[0]/(63.78137*b),(2*Math.atan(Math.exp(p[1]/63.78137))-Math.PI/2)/b]},maxLatitude:85.0511287798}});G(b,"Maps/Projections/ProjectionRegistry.js",[b["Maps/Projections/LambertConformalConic.js"],
630
+ b["Maps/Projections/EqualEarth.js"],b["Maps/Projections/Miller.js"],b["Maps/Projections/Orthographic.js"],b["Maps/Projections/WebMercator.js"]],function(b,p,A,E,w){return{EqualEarth:p,LambertConformalConic:b,Miller:A,Orthographic:E,WebMercator:w}});G(b,"Maps/Projection.js",[b["Maps/Projections/ProjectionRegistry.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__spreadArrays||function(){for(var b=0,k=0,t=arguments.length;k<t;k++)b+=arguments[k].length;b=Array(b);var n=0;for(k=0;k<t;k++)for(var h=
631
+ arguments[k],d=0,a=h.length;d<a;d++,n++)b[n]=h[d];return b},E=p.erase,w=2*Math.PI/360,D=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function p(b){void 0===b&&(b={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=b;var k=b.name,n=b.rotation;this.rotator=n?this.getRotator(n):void 0;var h=this.def=k?p.registry[k]:void 0,d=this.rotator;h&&(h.init&&h.init(b),this.maxLatitude=h.maxLatitude||90,this.hasGeoProjection=!0);d&&h?(this.forward=function(a){a=
632
+ d.forward(a);return h.forward(a)},this.inverse=function(a){a=h.inverse(a);return d.inverse(a)}):h?(this.forward=h.forward,this.inverse=h.inverse):d&&(this.forward=d.forward,this.inverse=d.inverse)}p.add=function(b,t){p.registry[b]=t};p.greatCircle=function(b,t,n){var h=Math.atan2,d=Math.cos,a=Math.sin,e=Math.sqrt,g=b[1]*w,k=b[0]*w,p=t[1]*w,r=t[0]*w,q=p-g,z=r-k;q=a(q/2)*a(q/2)+d(g)*d(p)*a(z/2)*a(z/2);q=2*h(e(q),e(1-q));var m=Math.round(6371E3*q/5E5);z=[];n&&z.push(b);if(1<m)for(m=b=1/m;.999>m;m+=b){var f=
633
+ a((1-m)*q)/a(q),v=a(m*q)/a(q),c=f*d(g)*d(k)+v*d(p)*d(r),u=f*d(g)*a(k)+v*d(p)*a(r);f=f*a(g)+v*a(p);f=h(f,e(c*c+u*u));c=h(u,c);z.push([c/w,f/w])}n&&z.push(t);return z};p.insertGreatCircles=function(b){for(var k=b.length-1;k--;)if(10<Math.max(Math.abs(b[k][0]-b[k+1][0]),Math.abs(b[k][1]-b[k+1][1]))){var n=p.greatCircle(b[k],b[k+1]);n.length&&b.splice.apply(b,v([k+1,0],n))}};p.toString=function(b){b=b||{};var k=b.rotation;return[b.name,k&&k.join(",")].join(";")};p.prototype.getRotator=function(b){var k=
634
+ b[0]*w,n=(b[1]||0)*w;b=(b[2]||0)*w;var h=Math.cos(n),d=Math.sin(n),a=Math.cos(b),e=Math.sin(b);if(0!==k||0!==n||0!==b)return{forward:function(b){var g=b[0]*w+k,n=b[1]*w,r=Math.cos(n);b=Math.cos(g)*r;g=Math.sin(g)*r;n=Math.sin(n);r=n*h+b*d;return[Math.atan2(g*a-r*e,b*h-n*d)/w,Math.asin(r*a+g*e)/w]},inverse:function(b){var g=b[0]*w,n=b[1]*w,r=Math.cos(n);b=Math.cos(g)*r;g=Math.sin(g)*r;n=Math.sin(n);r=n*a-g*e;return[(Math.atan2(g*a+n*e,b*h+r*d)-k)/w,Math.asin(r*h-b*d)/w]}}};p.prototype.forward=function(b){return b};
635
+ p.prototype.inverse=function(b){return b};p.prototype.clipOnAntimeridian=function(b,t){var k=[],h=[b];b.forEach(function(a,d){var e=b[d-1];if(!d){if(!t)return;e=b[b.length-1]}var g=e[0],f=a[0];(-90>g||90<g)&&(-90>f||90<f)&&0<g!==0<f&&k.push({i:d,lat:e[1]+(180-e[0])/(a[0]-e[0])*(a[1]-e[1]),direction:0>g?1:-1,previousLonLat:e,lonLat:a})});if(k.length)if(t){if(1===k.length%2){var d=k.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];E(k,d)}for(var a=k.length-2;0<=a;){var e=k[a].i,
636
+ g=D(180+.000001*k[a].direction),x=D(180-.000001*k[a].direction);e=b.splice.apply(b,v([e,k[a+1].i-e],p.greatCircle([g,k[a].lat],[g,k[a+1].lat],!0)));e.push.apply(e,p.greatCircle([x,k[a+1].lat],[x,k[a].lat],!0));h.push(e);a-=2}if(d)for(e=0;e<h.length;e++)if(a=h[e],x=a.indexOf(d.lonLat),-1<x){e=(0>d.lat?-1:1)*this.maxLatitude;g=D(180+.000001*d.direction);var w=D(180-.000001*d.direction);d=p.greatCircle([g,d.lat],[g,e],!0).concat(p.greatCircle([w,e],[w,d.lat],!0));a.splice.apply(a,v([x,0],d));break}}else for(a=
637
+ k.length;a--;)e=k[a].i,e=b.splice(e,b.length,[D(180+.000001*k[a].direction),k[a].lat]),e.unshift([D(180-.000001*k[a].direction),k[a].lat]),h.push(e);return h};p.prototype.path=function(b){var k=this,n=this.def,h=this.rotator,d=[],a="Polygon"===b.type||"MultiPolygon"===b.type,e=this.hasGeoProjection,g="Orthographic"!==this.options.name,x=g?h:void 0,v=g?n||this:this,r=function(b){b=b.map(function(a){if(g){x&&(a=x.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?179.999999:180.000001);a=[b,a[1]]}return a});
638
+ var h=[b];e&&(p.insertGreatCircles(b),g&&(h=k.clipOnAntimeridian(b,a)));h.forEach(function(b){if(!(2>b.length))for(var f=!1,g,c,h=!1,m=function(a){f?d.push(["L",a[0],a[1]]):(d.push(["M",a[0],a[1]]),f=!0)},n=0;n<b.length;n++){var q=b[n],r=v.forward(q);isNaN(r[0])||isNaN(r[1])||e&&!(q[1]<=k.maxLatitude&&q[1]>=-k.maxLatitude)?h=!0:(a&&!g&&(g=q,b.push(q)),h&&c&&(a&&e?p.greatCircle(c,q).forEach(function(a){return m(v.forward(a))}):f=!1),m(r),c=q,h=!1)}})};"LineString"===b.type?r(b.coordinates):"MultiLineString"===
639
+ b.type?b.coordinates.forEach(function(a){return r(a)}):"Polygon"===b.type?(b.coordinates.forEach(function(a){return r(a)}),d.length&&d.push(["Z"])):"MultiPolygon"===b.type&&(b.coordinates.forEach(function(a){a.forEach(function(a){return r(a)})}),d.length&&d.push(["Z"]));return d};p.registry=b;return p}()});G(b,"Maps/MapView.js",[b["Maps/MapViewOptionsDefault.js"],b["Maps/Projection.js"],b["Core/Utilities.js"]],function(b,p,A){var v=A.addEvent,w=A.clamp,D=A.fireEvent,B=A.isNumber,k=A.merge,t=A.pick,
640
+ n=A.relativeLength;return function(){function h(d,a){var e=this;this.userOptions=a||{};a=k(b,a);this.chart=d;this.center=a.center;this.options=a;this.projection=new p(a.projection);this.zoom=a.zoom||0;v(d,"afterSetChartSize",function(){if(void 0===e.minZoom||e.minZoom===e.zoom)e.fitToBounds(void 0,void 0,!1),B(e.userOptions.zoom)&&(e.zoom=e.userOptions.zoom),e.userOptions.center&&k(!0,e.center,e.userOptions.center)});var g,h,n;a=function(a){var b=d.pointer.pinchDown,k=d.mouseDownX,m=d.mouseDownY;
641
+ 1===b.length&&(k=b[0].chartX,m=b[0].chartY);if("number"===typeof k&&"number"===typeof m){var f=k+","+m,r=a.originalEvent;b=r.chartX;r=r.chartY;f!==h&&(h=f,g=e.projection.forward(e.center),n=(e.projection.options.rotation||[0,0]).slice());"Orthographic"===e.projection.options.name&&3>(e.minZoom||Infinity)?(f=440/(e.getScale()*Math.min(d.plotWidth,d.plotHeight)),n&&(k=(k-b)*f-n[0],m=w(-n[1]-(m-r)*f,-80,80),e.update({projection:{rotation:[-k,-m]},center:[k,m],zoom:e.zoom},!0,!1))):(f=e.getScale(),m=
642
+ e.projection.inverse([g[0]+(k-b)/f,g[1]-(m-r)/f]),e.setView(m,void 0,!0,!1));a.preventDefault()}};v(d,"pan",a);v(d,"touchpan",a);v(d,"selection",function(a){if(a.resetSelection)e.zoomBy();else{var b=a.x-d.plotLeft,g=a.y-d.plotTop,h=e.pixelsToProjectedUnits({x:b,y:g}),f=h.y;h=h.x;b=e.pixelsToProjectedUnits({x:b+a.width,y:g+a.height});e.fitToBounds({x1:h,y1:f,x2:b.x,y2:b.y},void 0,!0,a.originalEvent.touches?!1:void 0);/^touch/.test(a.originalEvent.type)||d.showResetZoom();a.preventDefault()}})}h.prototype.fitToBounds=
643
+ function(b,a,e,g){void 0===e&&(e=!0);var d=b||this.getProjectedBounds();if(d){var h=this.chart,k=h.plotWidth;h=h.plotHeight;var q=t(a,b?0:this.options.padding);a=n(q,k);q=n(q,h);k=Math.log(400.979322/Math.max((d.x2-d.x1)/((k-a)/256),(d.y2-d.y1)/((h-q)/256)))/Math.log(2);b||(this.minZoom=k);b=this.projection.inverse([(d.x2+d.x1)/2,(d.y2+d.y1)/2]);this.setView(b,k,e,g)}};h.prototype.getProjectedBounds=function(){var b=this.chart.series.reduce(function(a,b){(b=b.getProjectedBounds&&b.getProjectedBounds())&&
644
+ a.push(b);return a},[]);return h.compositeBounds(b)};h.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};h.prototype.redraw=function(b){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(b)};h.prototype.setView=function(b,a,e,g){void 0===e&&(e=!0);var d=!1;b&&(this.center=b);"number"===typeof a&&("number"===typeof this.minZoom&&(a=Math.max(a,this.minZoom)),"number"===typeof this.options.maxZoom&&(a=Math.min(a,this.options.maxZoom)),
645
+ d=a>this.zoom,this.zoom=a);var h=this.getProjectedBounds();if(h&&!d){d=this.projection.forward(this.center);a=this.chart;b=a.plotWidth;a=a.plotHeight;var k=this.getScale(),n=this.projectedUnitsToPixels({x:h.x1,y:h.y1}),t=this.projectedUnitsToPixels({x:h.x2,y:h.y2});h=[(h.x1+h.x2)/2,(h.y1+h.y2)/2];var m=n.x,f=t.y;t=t.x;n=n.y;t-m<b?d[0]=h[0]:0>m&&t<b?d[0]+=Math.max(m,t-b)/k:t>b&&0<m&&(d[0]+=Math.min(t-b,m)/k);n-f<a?d[1]=h[1]:0>f&&n<a?d[1]-=Math.max(f,n-a)/k:n>a&&0<f&&(d[1]-=Math.min(n-a,f)/k);this.center=
646
+ this.projection.inverse(d)}D(this,"afterSetView");e&&this.redraw(g)};h.prototype.projectedUnitsToPixels=function(b){var a=this.getScale(),d=this.projection.forward(this.center);return{x:this.chart.plotWidth/2-a*(d[0]-b.x),y:this.chart.plotHeight/2+a*(d[1]-b.y)}};h.prototype.pixelsToProjectedUnits=function(b){var a=b.x;b=b.y;var d=this.getScale(),g=this.projection.forward(this.center);return{x:g[0]+(a-this.chart.plotWidth/2)/d,y:g[1]-(b-this.chart.plotHeight/2)/d}};h.prototype.update=function(b,a,
647
+ e){void 0===a&&(a=!0);var d=b.projection;d=d&&p.toString(d)!==p.toString(this.options.projection);k(!0,this.userOptions,b);k(!0,this.options,b);d&&(this.chart.series.forEach(function(a){a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0}),this.projection=new p(this.options.projection),b.center||B(b.zoom)||this.fitToBounds(void 0,void 0,!1));(b.center||B(b.zoom))&&this.setView(this.options.center,b.zoom,!1);a&&this.chart.redraw(e)};h.prototype.zoomBy=function(b,a,e,g){var d=this.chart,h=
648
+ this.projection.forward(this.center);a=a?this.projection.forward(a):[];var k=a[0],n=a[1];"number"===typeof b?(b=this.zoom+b,a=void 0,e&&(k=e[0],n=e[1],e=this.getScale(),k=k-d.plotLeft-d.plotWidth/2,d=n-d.plotTop-d.plotHeight/2,k=h[0]+k/e,n=h[1]+d/e),"number"===typeof k&&"number"===typeof n&&(e=1-Math.pow(2,this.zoom)/Math.pow(2,b),k=h[0]-k,d=h[1]-n,h[0]-=k*e,h[1]+=d*e,a=this.projection.inverse(h)),this.setView(a,b,void 0,g)):this.fitToBounds(void 0,void 0,void 0,g)};h.compositeBounds=function(b){if(b.length)return b.slice(1).reduce(function(a,
649
+ b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},k(b[0]))};return h}()});G(b,"Maps/MapSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function p(b,p,v,D,B,k,t,n){return[["M",b+B,p],["L",b+v-k,p],["C",b+v-k/2,p,b+v,p+k/2,b+v,p+k],["L",b+v,p+D-t],["C",b+v,p+D-t/2,b+v-t/2,p+D,b+v-t,p+D],["L",b+n,p+D],["C",b+n/2,p+D,b,p+D-n/2,b,p+D-n],["L",b,p+B],["C",b,p+B/2,b+B/2,p,b+B,p],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,
650
+ v,w,D,B){B=B&&B.r||0;return p(b-1,v-1,w,D,0,0,B,B)};b.topbutton=function(b,v,w,D,B){B=B&&B.r||0;return p(b-1,v-1,w,D,B,B,0,0)};return b});G(b,"Core/Chart/MapChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Maps/MapView.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,p,A,E,w){var v=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
651
+ (a[d]=b[d])};return b(d,a)};return function(d,a){function e(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),B=p.getOptions,k=w.addEvent,t=w.merge,n=w.pick;b=function(b){function d(){return null!==b&&b.apply(this,arguments)||this}v(d,b);d.prototype.init=function(a,d){k(this,"afterInit",function(){this.mapView=new A(this,this.options.mapView)});var e=B().credits;a=t({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:n(e.mapText,
652
+ ' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:n(e.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},a);b.prototype.init.call(this,a,d)};return d}(b);(function(b){b.maps={};b.mapChart=function(d,a,e){return new b(d,a,e)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return E.prototype.pathToSegments(b)}})(b||
653
+ (b={}));return b});G(b,"Series/Map/MapPoint.js",[b["Series/ColorMapMixin.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var b=function(p,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(p,k)};return function(p,k){function t(){this.constructor=p}b(p,k);p.prototype=null===k?Object.create(k):(t.prototype=k.prototype,new t)}}(),
654
+ w=A.extend;p=function(b){function p(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.path=void 0;k.series=void 0;return k}v(p,b);p.getProjectedPath=function(b,p){b.projectedPath||(p&&b.geometry?(p.hasCoordinates=!0,b.projectedPath=p.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};p.prototype.applyOptions=function(k,p){var n=this.series;k=b.prototype.applyOptions.call(this,k,p);p=n.joinBy;n.mapData&&n.mapMap&&(p=b.prototype.getNestedProperty.call(k,p[1]),(n=
655
+ "undefined"!==typeof p&&n.mapMap[p])?w(k,n):k.value=k.value||null);return k};p.prototype.onMouseOver=function(k){A.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,k);else this.series.onMouseOut(k)};p.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return p}(p.seriesTypes.scatter.prototype.pointClass);w(p.prototype,
656
+ {dataLabelOnNull:b.PointMixin.dataLabelOnNull,isValid:b.PointMixin.isValid,moveToTopOnHover:b.PointMixin.moveToTopOnHover});return p});G(b,"Series/Map/MapSeries.js",[b["Core/Animation/AnimationUtilities.js"],b["Series/ColorMapMixin.js"],b["Series/CenteredUtilities.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Chart/MapChart.js"],b["Series/Map/MapPoint.js"],b["Maps/MapView.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],
657
+ b["Core/Utilities.js"]],function(b,p,A,E,w,D,B,k,t,n,h,d){var a=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),e=b.animObject;b=E.noop;var g=D.maps,x=D.splitPath;D=n.seriesTypes;var v=D.column,r=D.scatter;
658
+ D=d.extend;var q=d.fireEvent,z=d.getNestedProperty,m=d.isArray,f=d.isNumber,y=d.merge,c=d.objectEach,u=d.pick,l=d.splat;d=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.group=void 0;a.joinBy=void 0;a.options=void 0;a.points=void 0;a.transformGroup=void 0;return a}a(d,b);d.prototype.animate=function(a){var c=this.chart,b=this.group,d=e(this.options.animation);c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+
659
+ c.plotHeight/2,scaleX:.001,scaleY:.001}):b.animate({translateX:c.plotLeft,translateY:c.plotTop,scaleX:1,scaleY:1},d))};d.prototype.animateDrilldown=function(a){var c=this.chart,b=this.group;c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):b.animate({translateX:c.plotLeft,translateY:c.plotTop,scaleX:1,scaleY:1,opacity:1}))};d.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+
660
+ a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};d.prototype.animateDrillupTo=function(a){v.prototype.animateDrillupTo.call(this,a)};d.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;delete a.projectedPath});delete this.bounds};d.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};d.prototype.drawMapDataLabels=function(){t.prototype.drawDataLabels.call(this);
661
+ this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.prototype.drawPoints=function(){var a=this,c=this.chart,b=this.group,d=this.svgTransform,e=c.mapView,f=c.renderer;this.transformGroup||(this.transformGroup=f.g().add(b),this.transformGroup.survive=!0);this.doFullTranslate()&&(c.hasRendered&&!c.styledMode&&this.points.forEach(function(c){c.shapeArgs&&(c.shapeArgs.fill=a.pointAttribs(c,c.state).fill)}),this.group=this.transformGroup,v.prototype.drawPoints.apply(this),this.group=
662
+ b,this.points.forEach(function(b){if(b.graphic){var d="";b.name&&(d+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());b.properties&&b.properties["hc-key"]&&(d+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());d&&b.graphic.addClass(d);c.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}}));if(e&&d){var g=u(this.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],1),h=d.scaleX,k=0<d.scaleY?1:-1,m=this.transformGroup;if(f.globalAnimation&&
663
+ c.hasRendered){var l=Number(m.attr("translateX")),n=Number(m.attr("translateY")),q=Number(m.attr("scaleX"));m.attr({animator:0}).animate({animator:1},{step:function(a,c){a=q+(h-q)*c.pos;m.attr({translateX:l+(d.translateX-l)*c.pos,translateY:n+(d.translateY-n)*c.pos,scaleX:a,scaleY:a*k});b.element.setAttribute("stroke-width",g/a)}})}else m.attr(d),b.element.setAttribute("stroke-width",g/h)}this.drawMapDataLabels()};d.prototype.getProjectedBounds=function(){if(!this.bounds){var a=Number.MAX_VALUE,c=
664
+ this.chart.mapView&&this.chart.mapView.projection,b=[];(this.points||[]).forEach(function(d){if(d.path||d.geometry){"string"===typeof d.path?d.path=x(d.path):m(d.path)&&"M"===d.path[0]&&(d.path=h.prototype.pathToSegments(d.path));if(!d.bounds){var e=B.getProjectedPath(d,c),g=d.properties,k=-a,l=a,n=-a,q=a,r;e.forEach(function(a){var c=a[a.length-2];a=a[a.length-1];"number"===typeof c&&"number"===typeof a&&(l=Math.min(l,c),k=Math.max(k,c),q=Math.min(q,a),n=Math.max(n,a),r=!0)});r&&(e=g&&g["hc-middle-x"],
665
+ e=l+(k-l)*u(d.middleX,f(e)?e:.5),g=g&&g["hc-middle-y"],g=u(d.middleY,f(g)?g:.5),d.geometry||(g=1-g),d.bounds={midX:e,midY:n-(n-q)*g,x1:l,y1:q,x2:k,y2:n},d.labelrank=u(d.labelrank,(k-l)*(n-q)))}d.bounds&&b.push(d.bounds)}});this.bounds=k.compositeBounds(b)}return this.bounds};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,c){var b=a.series.chart,d=b.mapView;c=b.styledMode?this.colorAttribs(a):v.prototype.pointAttribs.call(this,a,c);(a=a.options[this.pointAttrToOptions&&
666
+ this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());c.dashstyle&&d&&this.options.borderWidth&&(a=this.options.borderWidth/d.getScale());c["stroke-width"]=u(a,"inherit");return c};d.prototype.setData=function(a,b,d,e){var h=this.options,k=this.chart.options.chart,l=k&&k.map,n=h.mapData,q=this.joinBy,r=h.keys||this.pointArrayMap,p=[],u={},v=this.chart.mapTransforms;!n&&l&&(n="string"===typeof l?g[l]:l);a&&a.forEach(function(c,b){var d=0;if(f(c))a[b]={value:c};else if(m(c)){a[b]=
667
+ {};!h.keys&&c.length>r.length&&"string"===typeof c[0]&&(a[b]["hc-key"]=c[0],++d);for(var e=0;e<r.length;++e,++d)r[e]&&"undefined"!==typeof c[d]&&(0<r[e].indexOf(".")?B.prototype.setNestedProperty(a[b],c[d],r[e]):a[b][r[e]]=c[d])}q&&"_i"===q[0]&&(a[b]._i=b)});(this.chart.mapTransforms=v=k.mapTransforms||n&&n["hc-transform"]||v)&&c(v,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(n){"FeatureCollection"===n.type&&(this.mapTitle=n.title,n=E.geojson(n,this.type,
668
+ this));this.mapData=n;this.mapMap={};for(v=0;v<n.length;v++)k=n[v],l=k.properties,k._i=v,q[0]&&l&&l[q[0]]&&(k[q[0]]=l[q[0]]),u[k[q[0]]]=k;this.mapMap=u;if(a&&q[1]){var x=q[1];a.forEach(function(a){a=z(x,a);u[a]&&p.push(u[a])})}if(h.allAreas){a=a||[];if(q[1]){var w=q[1];a.forEach(function(a){p.push(z(w,a))})}p="|"+p.map(function(a){return a&&a[q[0]]}).join("|")+"|";n.forEach(function(c){q[0]&&-1!==p.indexOf("|"+c[q[0]]+"|")||(a.push(y(c,{value:null})),e=!1)})}}t.prototype.setData.call(this,a,b,d,e);
669
+ this.processData();this.generatePoints()};d.prototype.setOptions=function(a){a=t.prototype.setOptions.call(this,a);var c=a.joinBy;null===c&&(c="_i");c=this.joinBy=l(c);c[1]||(c[1]=c[0]);return a};d.prototype.translate=function(){var a=this.doFullTranslate(),c=this.chart.mapView,b=c&&c.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());var d;if(c){var e=c.getScale(),g=c.projection.forward(c.center);
670
+ c=c.projection.hasCoordinates?-1:1;this.svgTransform=d={scaleX:e,scaleY:e*c,translateX:this.chart.plotWidth/2-g[0]*e,translateY:this.chart.plotHeight/2-g[1]*e*c}}this.points.forEach(function(c){d&&c.bounds&&f(c.bounds.midX)&&f(c.bounds.midY)&&(c.plotX=c.bounds.midX*d.scaleX+d.translateX,c.plotY=c.bounds.midY*d.scaleY+d.translateY);a&&(c.shapeType="path",c.shapeArgs={d:B.getProjectedPath(c,b)})});q(this,"afterTranslate")};d.defaultOptions=y(r.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=
671
+ this.series.chart.numberFormatter,c=this.point.value;return f(c)?a(c,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return d}(r);D(d.prototype,{type:"map",axisTypes:p.SeriesMixin.axisTypes,
672
+ colorAttribs:p.SeriesMixin.colorAttribs,colorKey:p.SeriesMixin.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:w.drawRectangle,forceDL:!0,getCenter:A.getCenter,getExtremesFromAll:!0,getSymbol:p.SeriesMixin.getSymbol,isCartesian:!1,parallelArrays:p.SeriesMixin.parallelArrays,pointArrayMap:p.SeriesMixin.pointArrayMap,pointClass:B,preserveAspectRatio:!0,searchPoint:b,trackerGroups:p.SeriesMixin.trackerGroups,useMapGeometry:!0});n.registerSeriesType("map",d);"";return d});G(b,"Series/MapLine/MapLineSeries.js",
673
+ [b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var b=function(k,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return b(k,n)};return function(k,n){function h(){this.constructor=k}b(k,n);k.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),w=p.series,D=A.extend,B=A.merge;A=function(k){function p(){var b=
674
+ null!==k&&k.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}v(p,k);p.prototype.pointAttribs=function(k,h){k=b.prototype.pointAttribs.call(this,k,h);k.fill=this.options.fillColor;return k};p.defaultOptions=B(b.defaultOptions,{lineWidth:1,fillColor:"none"});return p}(b);D(A.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:w.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});p.registerSeriesType("mapline",A);"";
675
+ return A});G(b,"Series/MapPoint/MapPointPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__extends||function(){var b=function(p,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(p,k)};return function(p,k){function t(){this.constructor=p}b(p,k);p.prototype=null===k?Object.create(k):(t.prototype=k.prototype,new t)}}(),E=p.isNumber,w=p.merge;
676
+ return function(b){function p(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;return k}v(p,b);p.prototype.applyOptions=function(k,p){k="undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?w(k,this.series.chart.fromLatLonToPoint(k)):k;return b.prototype.applyOptions.call(this,k,p)};p.prototype.isValid=function(){return!!(this.options.geometry||E(this.x)&&E(this.y))};return p}(b.seriesTypes.scatter.prototype.pointClass)});G(b,"Series/MapPoint/MapPointSeries.js",[b["Core/Globals.js"],
677
+ b["Series/MapPoint/MapPointPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E){var v=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(d,a)};return function(d,a){function e(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();b=b.noop;var D=A.seriesTypes.scatter,
678
+ B=E.extend,k=E.fireEvent,t=E.isNumber,n=E.merge;E=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(d,b);d.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var d=b.projection,h=d.forward,n=d.hasCoordinates;
679
+ this.points.forEach(function(d){var e=d.x;e=void 0===e?void 0:e;var g=d.y;g=void 0===g?void 0:g;var k=d.options.geometry;(k=k&&"Point"===k.type&&k.coordinates)?(g=h(k),e=g[0],g=g[1]):d.bounds&&(e=d.bounds.midX,g=d.bounds.midY);t(e)&&t(g)?(e=b.projectedUnitsToPixels({x:e,y:g}),d.plotX=e.x,d.plotY=n?e.y:a.chart.plotHeight-e.y):(d.plotX=void 0,d.plotY=void 0);d.isInside=a.isPointInside(d);d.zone=a.zones.length?d.getZone():void 0})}k(this,"afterTranslate")};d.defaultOptions=n(D.defaultOptions,{dataLabels:{crop:!1,
680
+ defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return d}(D);B(E.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:p,searchPoint:b,useMapGeometry:!0});A.registerSeriesType("mappoint",E);"";return E});G(b,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,
681
+ enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});G(b,"Series/Bubble/BubbleLegendItem.js",[b["Core/Color/Color.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p,A,E){var v=b.parse,D=A.noop,B=E.arrayMax,
682
+ k=E.arrayMin,t=E.isNumber,n=E.merge,h=E.pick,d=E.stableSort;"";return function(){function a(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=D;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,
683
+ 0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,e=this.options,k=h(a.options.itemDistance,20),n=e.ranges,q=e.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(e.labels.style.fontSize);n&&n.length&&t(n[0].value)?(d(n,function(a,b){return b.value-a.value}),this.ranges=n,this.setOptions(),this.render(),a=this.getMaxLabelSize(),n=this.ranges[0].radius,b=2*n,q=q-n+a.width,q=0<q?q:0,this.maxLabel=a,this.movementX="left"===e.labels.align?q:0,this.legendItemWidth=b+q+k,this.legendItemHeight=
684
+ b+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,d=this.chart.series[b.seriesIndex],k=this.legend.baseline,r={zIndex:b.zIndex,"stroke-width":b.borderWidth},q={zIndex:b.zIndex,"stroke-width":b.connectorWidth},p={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},m=d.options.marker.fillOpacity,f=this.chart.styledMode;a.forEach(function(e,c){f||(r.stroke=h(e.borderColor,b.borderColor,d.color),
685
+ r.fill=h(e.color,b.color,1!==m?v(d.color).setOpacity(m).get("rgba"):d.color),q.stroke=h(e.connectorColor,b.connectorColor,d.color));a[c].radius=this.getRangeRadius(e.value);a[c]=n(a[c],{center:a[0].radius-a[c].radius+k});f||n(!0,a[c],{bubbleAttribs:n(r),connectorAttribs:n(q),labelAttribs:p})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,
686
+ a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=
687
+ function(a){var b=this.options,d=b.labels,e=this.chart,h=e.series[b.seriesIndex],k=e.renderer,n=this.symbols;e=n.labels;var m=a.center,f=Math.abs(a.radius),p=b.connectorDistance||0,c=d.align,t=b.connectorWidth,l=this.ranges[0].radius||0,v=m-f-b.borderWidth/2+t/2,w=this.fontMetrics;w=w.f/2-(w.h-w.f)/2;var B=k.styledMode;p=this.legend.options.rtl||"left"===c?-p:p;"center"===c&&(p=0,b.connectorDistance=0,a.labelAttribs.align="center");c=v+b.labels.y;var D=l+p+b.labels.x;n.bubbleItems.push(k.circle(l,
688
+ m+((v%1?1:.5)-(t%2?0:.5)),f).attr(B?{}:a.bubbleAttribs).addClass((B?"highcharts-color-"+h.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));n.connectors.push(k.path(k.crispLine([["M",l,v],["L",l+p,v]],b.connectorWidth)).attr(B?{}:a.connectorAttribs).addClass((B?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=k.text(this.formatLabel(a),D,c+w).attr(B?{}:a.labelAttribs).css(B?
689
+ {}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:D,y:c+w}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?p.format(b,a):d?d.call(a):e(a.value,1)};a.prototype.hideOverlappingLabels=
690
+ function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,d,p=Number.MAX_VALUE,r=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(d=a.zData.filter(t),d.length&&(p=h(a.options.zMin,Math.min(p,Math.max(k(d),
691
+ !1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),r=h(a.options.zMax,Math.max(r,B(d)))))});var q=p===r?[{value:r}]:[{value:p},{value:(p+r)/2},{value:r,autoRanges:!0}];b.length&&b[0].radius&&q.reverse();q.forEach(function(a,d){b&&b[d]&&(q[d]=n(b[d],a))});return q};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,h=d.floating,k=(d="horizontal"===d.layout)?a.legend.lastLineHeight:0,n=a.plotSizeX,p=a.plotSizeY,m=a.series[this.options.seriesIndex],
692
+ f=m.getPxExtremes();a=Math.ceil(f.minPxSize);f=Math.ceil(f.maxPxSize);var t=Math.min(p,n);m=m.options.maxSize;if(h||!/%$/.test(m))b=f;else if(m=parseFloat(m),b=(t+k-b.h/2)*m/100/(m/100+1),d&&p-b>=n||!d&&n-b>=p)b=f;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-
693
+ this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});G(b,"Series/Bubble/BubbleLegendComposition.js",[b["Series/Bubble/BubbleLegendDefaults.js"],b["Series/Bubble/BubbleLegendItem.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,p,A,E){var v=A.setOptions,D=E.addEvent,B=E.objectEach,k=E.wrap,t;(function(n){function h(b,e,g){var h=this.legend,f=0<=d(this);if(h&&h.options.enabled&&h.bubbleLegend&&h.options.bubbleLegend.autoRanges&&f){var k=
694
+ h.bubbleLegend.options;f=h.bubbleLegend.predictBubbleSizes();h.bubbleLegend.updateRanges(f[0],f[1]);k.placed||(h.group.placed=!1,h.allItems.forEach(function(a){a.legendGroup.translateY=null}));h.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();k.placed||(a.setScale(),a.updateNames(),B(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});k.placed=!0;this.getMargins();b.call(this,e,g);h.bubbleLegend.correctSizes();t(h,a(h))}else b.call(this,e,g),h&&h.options.enabled&&h.bubbleLegend&&
695
+ (h.render(),t(h,a(h)))}function d(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function a(a){a=a.allItems;var b=[],d=a.length,e,f=0;for(e=0;e<d;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[d-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var g=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>g.height&&(g.height=a[f].itemHeight);g.step=e}return b}function e(a){var b=
696
+ this.bubbleLegend,e=this.options,g=e.bubbleLegend,f=d(this.chart);b&&b.ranges&&b.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(b));0<=f&&e.enabled&&g.enabled&&(g.seriesIndex=f,this.bubbleLegend=new p(g,this),this.bubbleLegend.addToLegend(a.allItems))}function g(){var a=this.chart,b=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=d(a),e.bubbleLegend.visible!==a&&(e.update({bubbleLegend:{enabled:a}}),e.bubbleLegend.visible=
697
+ a),this.visible=b)}function t(a,b){var d=a.options.rtl,e,f,g,c=0;a.allItems.forEach(function(a,h){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((g=a.movementX)||d&&a.ranges)g=d?e-a.options.maxSize/2:e+g,a.legendGroup.attr({translateX:g});h>b[c].step&&c++;a.legendGroup.attr({translateY:Math.round(f+b[c].height/2)});a._legendItemPos[1]=f+b[c].height/2})}var w=[];n.compose=function(a,d,n){-1===w.indexOf(a)&&(w.push(a),v({legend:{bubbleLegend:b}}),k(a.prototype,"drawChartBox",h));-1===w.indexOf(d)&&
698
+ (w.push(d),D(d,"afterGetAllItems",e));-1===w.indexOf(n)&&(w.push(n),D(n,"legendItemClick",g))}})(t||(t={}));return t});G(b,"Series/Bubble/BubblePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A){var v=this&&this.__extends||function(){var b=function(p,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,p){b.__proto__=p}||function(b,p){for(var k in p)p.hasOwnProperty(k)&&(b[k]=p[k])};return b(p,v)};return function(p,v){function k(){this.constructor=
699
+ p}b(p,v);p.prototype=null===v?Object.create(v):(k.prototype=v.prototype,new k)}}();A=A.extend;p=function(p){function w(){var b=null!==p&&p.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}v(w,p);w.prototype.haloPath=function(p){return b.prototype.haloPath.call(this,0===p?0:(this.marker?this.marker.radius||0:0)+p)};return w}(p.seriesTypes.scatter.prototype.pointClass);A(p.prototype,{ttBelow:!1});return p});G(b,"Series/Bubble/BubbleSeries.js",[b["Core/Axis/Axis.js"],b["Series/Bubble/BubbleLegendComposition.js"],
700
+ b["Series/Bubble/BubblePoint.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D,B,k){var t=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):
701
+ (e.prototype=d.prototype,new e)}}(),n=E.parse;E=w.noop;var h=B.seriesTypes;w=h.column;var d=h.scatter;h=k.addEvent;var a=k.arrayMax,e=k.arrayMin,g=k.clamp,v=k.extend,C=k.isNumber,r=k.merge,q=k.pick;k=function(b){function h(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}t(h,b);h.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&
702
+ this.points.forEach(function(a){var c=a.graphic;c&&c.width&&(this.hasRendered||c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(this.markerAttribs(a),this.options.animation))},this)};h.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,d=[],e=this.chart.bubbleZExtremes;var g=this.getPxExtremes();var h=g.minPxSize,k=g.maxPxSize;if(!e){var m=Number.MAX_VALUE,n=-Number.MAX_VALUE,p;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&
703
+ (b=b.getZExtremes())&&(m=Math.min(m||b.zMin,b.zMin),n=Math.max(n||b.zMax,b.zMax),p=!0)});p?(e={zMin:m,zMax:n},this.chart.bubbleZExtremes=e):e={zMin:0,zMax:0}}var q=0;for(g=b.length;q<g;q++){var r=b[q];d.push(this.getRadius(e.zMin,e.zMax,h,k,r,c[q]))}this.radii=d};h.prototype.getRadius=function(a,b,c,d,e,g){var f=this.options,h="width"!==f.sizeBy,k=f.zThreshold,l=b-a,m=.5;if(null===g||null===e)return null;if(C(e)){f.sizeByAbsoluteValue&&(e=Math.abs(e-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(e<a)return c/
704
+ 2-1;0<l&&(m=(e-a)/l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(d-c))/2};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=D.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=n(a.fill).setOpacity(c).get("rgba"));return a};h.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,
705
+ c=this.getPxExtremes().minPxSize,d=a.length;d--;){var e=a[d],g=b?b[d]:0;C(g)&&g>=c/2?(e.marker=v(e.marker,{radius:g,width:2*g,height:2*g}),e.dlBox={x:e.plotX-g,y:e.plotY-g,width:2*g,height:2*g}):e.shapeArgs=e.plotY=e.dlBox=void 0}};h.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(q(this.options.minSize,8));b=Math.max(b(q(this.options.maxSize,"20%")),c);return{minPxSize:c,
706
+ maxPxSize:b}};h.prototype.getZExtremes=function(){var b=this.options,d=(this.zData||[]).filter(C);if(d.length){var c=q(b.zMin,g(e(d),!1===b.displayNegative?b.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));b=q(b.zMax,a(d));if(C(c)&&C(b))return{zMin:c,zMax:b}}};h.compose=p.compose;h.defaultOptions=r(d.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return C(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,
707
+ lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(d);v(k.prototype,{alignDataLabel:w.prototype.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:A,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],
708
+ specialGroup:"group",zoneAxis:"z"});h(k,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,d=this.chart,e=0,c=b,g=this.isXAxis,h=g?"xData":"yData",k=this.min,n=this.max-k,p=b/n,r;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){r=a.allowZoomOutside=!0;var f=b[h];g&&b.getRadii(0,0,b);if(0<n)for(var m=f.length;m--;)if(C(f[m])&&a.dataMin<=f[m]&&f[m]<=a.max){var l=b.radii&&b.radii[m]||
709
+ 0;e=Math.min((f[m]-k)*p-l,e);c=Math.max((f[m]-k)*p+l,c)}}});r&&0<n&&!this.logarithmic&&(c-=b,p*=(b+Math.max(0,e)-Math.min(c,b))/b,[["min","userMin",e],["max","userMax",c]].forEach(function(b){"undefined"===typeof q(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/p)}))};B.registerSeriesType("bubble",k);"";"";return k});G(b,"Series/MapBubble/MapBubblePoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__extends||function(){var b=function(p,k){b=Object.setPrototypeOf||
710
+ {__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(p,k)};return function(p,k){function t(){this.constructor=p}b(p,k);p.prototype=null===k?Object.create(k):(t.prototype=k.prototype,new t)}}();b=b.seriesTypes;var E=b.map,w=p.merge;return function(b){function p(){return null!==b&&b.apply(this,arguments)||this}v(p,b);p.prototype.applyOptions=function(k,p){return k&&"undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?
711
+ b.prototype.applyOptions.call(this,w(k,this.series.chart.fromLatLonToPoint(k)),p):E.prototype.pointClass.prototype.applyOptions.call(this,k,p)};p.prototype.isValid=function(){return"number"===typeof this.z};return p}(b.bubble.prototype.pointClass)});G(b,"Series/MapBubble/MapBubbleSeries.js",[b["Series/Bubble/BubbleSeries.js"],b["Series/MapBubble/MapBubblePoint.js"],b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p,A,E,w){var v=this&&this.__extends||
712
+ function(){var b=function(h,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(h,d)};return function(h,d){function a(){this.constructor=h}b(h,d);h.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),B=E.seriesTypes.mappoint,k=w.extend,t=w.merge;w=function(k){function h(){var b=null!==k&&k.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}
713
+ v(h,k);h.prototype.translate=function(){B.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.compose=b.compose;h.defaultOptions=t(b.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(b);k(w.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:A.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:p,setData:A.prototype.setData,setOptions:A.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});
714
+ E.registerSeriesType("mapbubble",w);"";return w});G(b,"Series/Heatmap/HeatmapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__extends||function(){var b=function(k,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return b(k,n)};return function(k,n){function h(){this.constructor=k}b(k,n);k.prototype=null===n?Object.create(n):(h.prototype=n.prototype,
715
+ new h)}}(),E=p.clamp,w=p.defined,D=p.extend,B=p.pick;b=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;k.value=void 0;k.x=void 0;k.y=void 0;return k}v(k,b);k.prototype.applyOptions=function(k,h){k=b.prototype.applyOptions.call(this,k,h);k.formatPrefix=k.isNull||null===k.value?"null":"point";return k};k.prototype.getCellAttributes=function(){var b=this.series,h=b.options,d=(h.colsize||1)/2,a=(h.rowsize||1)/2,e=b.xAxis,g=b.yAxis,k=this.options.marker||
716
+ b.options.marker;b=b.pointPlacementToXValue();var p=B(this.pointPadding,h.pointPadding,0),r={x1:E(Math.round(e.len-(e.translate(this.x-d,!1,!0,!1,!0,-b)||0)),-e.len,2*e.len),x2:E(Math.round(e.len-(e.translate(this.x+d,!1,!0,!1,!0,-b)||0)),-e.len,2*e.len),y1:E(Math.round(g.translate(this.y-a,!1,!0,!1,!0)||0),-g.len,2*g.len),y2:E(Math.round(g.translate(this.y+a,!1,!0,!1,!0)||0),-g.len,2*g.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",e=a+"2",g=Math.abs(r[d]-
717
+ r[e]),c=k&&k.lineWidth||0,h=Math.abs(r[d]+r[e])/2;b=k&&k[b];w(b)&&b<g&&(b=b/2+c/2,r[d]=h-b,r[e]=h+b);p&&("y"===a&&(d=e,e=a+"1"),r[d]+=p,r[e]-=p)});return r};k.prototype.haloPath=function(b){if(!b)return[];var h=this.shapeArgs;return["M",h.x-b,h.y-b,"L",h.x-b,h.y+h.height+b,h.x+h.width+b,h.y+h.height+b,h.x+h.width+b,h.y-b,"Z"]};k.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return k}(b.seriesTypes.scatter.prototype.pointClass);D(b.prototype,{dataLabelOnNull:!0,
718
+ moveToTopOnHover:!0,ttBelow:!1});return b});G(b,"Series/Heatmap/HeatmapSeries.js",[b["Core/Color/Color.js"],b["Series/ColorMapMixin.js"],b["Series/Heatmap/HeatmapPoint.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,p,A,E,w,D,B){var k=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
719
+ (a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),t=w.series,n=w.seriesTypes,h=n.column,d=n.scatter,a=D.prototype.symbols,e=B.extend,g=B.fireEvent,v=B.isNumber,C=B.merge,r=B.pick;D=function(h){function n(){var a=null!==h&&h.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}k(n,h);n.prototype.drawPoints=function(){var a=
720
+ this;if((this.options.marker||{}).enabled||this._hasPointMarkers)t.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),(b.shapeArgs||{}).r=a.options.borderRadius,(b.shapeArgs||{}).d=b.graphic.pathArray,null===b.value&&b.graphic.addClass("highcharts-null-point"))})};n.prototype.getExtremes=function(){var a=t.prototype.getExtremes.call(this,this.valueData),
721
+ b=a.dataMin;a=a.dataMax;v(b)&&(this.valueMin=b);v(a)&&(this.valueMax=a);return t.prototype.getExtremes.call(this)};n.prototype.getValidPoints=function(a,b){return t.prototype.getValidPoints.call(this,a,b,!0)};n.prototype.hasData=function(){return!!this.processedXData.length};n.prototype.init=function(){t.prototype.init.apply(this,arguments);var b=this.options;b.pointRange=r(b.pointRange,b.colsize||1);this.yAxis.axisPointRange=b.rowsize||1;a.ellipse=a.circle};n.prototype.markerAttribs=function(a,b){var d=
722
+ a.marker||{},c=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=c.states[b]||{};var h=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||e[a[0]])+(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};n.prototype.pointAttribs=function(a,d){var e=t.prototype.pointAttribs.call(this,a,d),c=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||
723
+ {};f=a&&a.options.borderColor||c.borderColor||h.borderColor||g.borderColor;g=a&&a.options.borderWidth||c.borderWidth||h.borderWidth||g.borderWidth||e["stroke-width"];e.stroke=a&&a.marker&&a.marker.lineColor||c.marker&&c.marker.lineColor||f||this.color;e["stroke-width"]=g;d&&(a=C(c.states[d],c.marker&&c.marker.states[d],a&&a.options.states&&a.options.states[d]||{}),d=a.brightness,e.fill=a.color||b.parse(e.fill).brighten(d||0).get(),e.stroke=a.lineColor);return e};n.prototype.setClip=function(a){var b=
724
+ this.chart;t.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};n.prototype.translate=function(){var b=this.options,d=b.marker&&b.marker.symbol||"rect",h=a[d]?d:"rect",c=-1!==["circle","square"].indexOf(h);this.generatePoints();this.points.forEach(function(b){var f=b.getCellAttributes(),g={};g.x=Math.min(f.x1,f.x2);g.y=Math.min(f.y1,f.y2);g.width=Math.max(Math.abs(f.x2-f.x1),
725
+ 0);g.height=Math.max(Math.abs(f.y2-f.y1),0);var k=b.hasImage=0===(b.marker&&b.marker.symbol||d||"").indexOf("url");if(c){var m=Math.abs(g.width-g.height);g.x=Math.min(f.x1,f.x2)+(g.width<g.height?0:m/2);g.y=Math.min(f.y1,f.y2)+(g.width<g.height?m/2:0);g.width=g.height=Math.min(g.width,g.height)}m={plotX:(f.x1+f.x2)/2,plotY:(f.y1+f.y2)/2,clientX:(f.x1+f.x2)/2,shapeType:"path",shapeArgs:C(!0,g,{d:a[h](g.x,g.y,g.width,g.height)})};k&&(b.marker={width:g.width,height:g.height});e(b,m)});g(this,"afterTranslate")};
726
+ n.defaultOptions=C(d.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return v(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});
727
+ return n}(d);e(D.prototype,{alignDataLabel:h.prototype.alignDataLabel,axisTypes:p.SeriesMixin.axisTypes,colorAttribs:p.SeriesMixin.colorAttribs,colorKey:p.SeriesMixin.colorKey,directTouch:!0,drawLegendSymbol:E.drawRectangle,getExtremesFromAll:!0,getSymbol:t.prototype.getSymbol,parallelArrays:p.SeriesMixin.parallelArrays,pointArrayMap:["y","value"],pointClass:A,trackerGroups:p.SeriesMixin.trackerGroups});w.registerSeriesType("heatmap",D);"";"";return D});G(b,"Extensions/GeoJSON.js",[b["Core/Chart/Chart.js"],
728
+ b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p,A,E){function v(b,d){var a,e=!1,g=b.x,h=b.y;b=0;for(a=d.length-1;b<d.length;a=b++){var k=d[b][1]>h;var n=d[a][1]>h;k!==n&&g<(d[a][0]-d[b][0])*(h-d[b][1])/(d[a][1]-d[b][1])+d[b][0]&&(e=!e)}return e}var D=p.format,B=A.win,k=E.error,t=E.extend,n=E.merge;p=E.wrap;"";b.prototype.transformFromLatLon=function(b,d){var a=this.options.chart.proj4||B.proj4;if(!a)return k(21,!1,this),{x:0,y:null};var e=d.jsonmarginX;e=void 0===
729
+ e?0:e;var g=d.jsonmarginY;g=void 0===g?0:g;var h=d.jsonres;h=void 0===h?1:h;var n=d.scale;n=void 0===n?1:n;var p=d.xoffset;p=void 0===p?0:p;var q=d.xpan;q=void 0===q?0:q;var t=d.yoffset;t=void 0===t?0:t;var m=d.ypan;m=void 0===m?0:m;b=a(d.crs,[b.lon,b.lat]);a=d.cosAngle||d.rotation&&Math.cos(d.rotation);var f=d.sinAngle||d.rotation&&Math.sin(d.rotation);d=d.rotation?[b[0]*a+b[1]*f,-b[0]*f+b[1]*a]:b;return{x:((d[0]-p)*n+q)*h+e,y:-(((t-d[1])*n+m)*h-g)}};b.prototype.transformToLatLon=function(b,d){if(!this.options.chart.proj4&&
730
+ !B.proj4)k(21,!1,this);else if(null!==b.y){var a=d.jsonmarginX,e=d.jsonmarginY,g=d.jsonres;g=void 0===g?1:g;var h=d.scale;h=void 0===h?1:h;var n=d.xoffset,p=d.xpan,q=d.yoffset,t=d.ypan;b={x:((b.x-(void 0===a?0:a))/g-(void 0===p?0:p))/h+(void 0===n?0:n),y:((b.y-(void 0===e?0:e))/g+(void 0===t?0:t))/h+(void 0===q?0:q)};a=d.cosAngle||d.rotation&&Math.cos(d.rotation);e=d.sinAngle||d.rotation&&Math.sin(d.rotation);d=B.proj4(d.crs,"WGS84",d.rotation?{x:b.x*a+b.y*-e,y:b.x*e+b.y*a}:b);return{lat:d.y,lon:d.x}}};
731
+ b.prototype.fromPointToLatLon=function(b){var d=this.mapTransforms;if(d){for(var a in d)if(Object.hasOwnProperty.call(d,a)&&d[a].hitZone&&v(b,d[a].hitZone.coordinates[0]))return this.transformToLatLon(b,d[a]);return this.transformToLatLon(b,d["default"])}k(22,!1,this)};b.prototype.fromLatLonToPoint=function(b){var d=this.mapTransforms,a;if(!d)return k(22,!1,this),{x:0,y:null};for(a in d)if(Object.hasOwnProperty.call(d,a)&&d[a].hitZone){var e=this.transformFromLatLon(b,d[a]);if(v(e,d[a].hitZone.coordinates[0]))return e}return this.transformFromLatLon(b,
732
+ d["default"])};A.geojson=function(b,d,a){void 0===d&&(d="map");var e=[];b.features.forEach(function(a){var b=a.geometry||{},g=b.type;b=b.coordinates;a=a.properties;var h;"map"!==d&&"mapbubble"!==d||"Polygon"!==g&&"MultiPolygon"!==g?"mapline"!==d||"LineString"!==g&&"MultiLineString"!==g?"mappoint"===d&&"Point"===g&&b.length&&(h={geometry:{coordinates:b,type:g}}):b.length&&(h={geometry:{coordinates:b,type:g}}):b.length&&(h={geometry:{coordinates:b,type:g}});h&&e.push(t(h,{name:a.name||a.NAME,properties:a}))});
733
+ a&&b.copyrightShort&&(a.chart.mapCredits=D(a.chart.options.credits.mapText,{geojson:b}),a.chart.mapCreditsFull=D(a.chart.options.credits.mapTextFull,{geojson:b}));return e};p(b.prototype,"addCredits",function(b,d){d=n(!0,this.options.credits,d);this.mapCredits&&(d.href=null);b.call(this,d);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});G(b,"masters/modules/map.src.js",[b["Core/Globals.js"],b["Core/Axis/Color/ColorAxis.js"],b["Series/MapBubble/MapBubbleSeries.js"],
734
+ b["Core/Chart/MapChart.js"]],function(b,p,A,E){b.ColorAxis=p;b.MapChart=E;b.mapChart=b.Map=E.mapChart;b.maps=E.maps;p.compose(b.Chart,b.Fx,b.Legend,b.Series);A.compose(b.Chart,b.Legend,b.Series)});G(b,"masters/highmaps.src.js",[b["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});b["masters/highmaps.src.js"]._modules=b;return b["masters/highmaps.src.js"]});
735
735
  //# sourceMappingURL=highmaps.js.map