highcharts 9.3.1 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (862) hide show
  1. package/bower.json +1 -1
  2. package/css/annotations/popup.css +1 -1
  3. package/css/highcharts.css +21 -4
  4. package/css/highcharts.scss +18 -3
  5. package/css/stocktools/gui.css +1 -1
  6. package/css/themes/dark-unica.css +21 -4
  7. package/css/themes/grid-light.css +21 -4
  8. package/css/themes/sand-signika.css +21 -4
  9. package/es-modules/Accessibility/A11yI18n.js +1 -5
  10. package/es-modules/Accessibility/Accessibility.js +12 -6
  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 +196 -98
  16. package/es-modules/Accessibility/Components/MenuComponent.js +16 -15
  17. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +11 -14
  18. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +22 -12
  19. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +9 -5
  20. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -2
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +19 -44
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +77 -56
  23. package/es-modules/Accessibility/Components/ZoomComponent.js +148 -67
  24. package/es-modules/Accessibility/FocusBorder.js +0 -5
  25. package/es-modules/Accessibility/HighContrastMode.js +4 -3
  26. package/es-modules/Accessibility/KeyboardNavigation.js +117 -101
  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 +26 -12
  30. package/es-modules/Accessibility/ProxyProvider.js +10 -5
  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 +189 -111
  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 +28 -8
  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 +34 -23
  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 +15 -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 +24 -21
  55. package/es-modules/Core/Chart/ChartDefaults.js +32 -11
  56. package/es-modules/Core/Chart/GanttChart.js +4 -4
  57. package/es-modules/Core/Chart/MapChart.js +4 -9
  58. package/es-modules/Core/Chart/StockChart.js +10 -23
  59. package/es-modules/Core/DefaultOptions.js +5 -2
  60. package/es-modules/Core/Geometry/CircleUtilities.js +2 -1
  61. package/es-modules/Core/Geometry/PolygonClip.js +84 -0
  62. package/es-modules/Core/Globals.js +4 -18
  63. package/es-modules/Core/HttpUtilities.js +18 -12
  64. package/es-modules/Core/Legend/Legend.js +22 -21
  65. package/es-modules/Core/Navigator.js +43 -28
  66. package/es-modules/Core/Pointer.js +28 -20
  67. package/es-modules/Core/Renderer/HTML/AST.js +88 -18
  68. package/es-modules/Core/Renderer/HTML/HTMLElement.js +4 -2
  69. package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +8 -6
  70. package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
  71. package/es-modules/Core/Renderer/SVG/SVGElement.js +33 -57
  72. package/es-modules/Core/Renderer/SVG/SVGElement3D.js +17 -5
  73. package/es-modules/Core/Renderer/SVG/SVGLabel.js +17 -8
  74. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -28
  75. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +12 -5
  76. package/es-modules/Core/Renderer/SVG/TextBuilder.js +25 -17
  77. package/es-modules/Core/Responsive.js +2 -3
  78. package/es-modules/Core/Scrollbar.js +14 -12
  79. package/es-modules/Core/Series/DataLabel.js +26 -13
  80. package/es-modules/Core/Series/Point.js +19 -18
  81. package/es-modules/Core/Series/Series.js +77 -88
  82. package/es-modules/Core/Series/SeriesDefaults.js +9 -5
  83. package/es-modules/Core/Time.js +14 -11
  84. package/es-modules/Core/Tooltip.js +30 -64
  85. package/es-modules/Core/Utilities.js +33 -45
  86. package/es-modules/Data/DataConverter.js +0 -6
  87. package/es-modules/Data/DataSeriesConverter.js +9 -5
  88. package/es-modules/Data/DataTable.js +2 -1
  89. package/es-modules/Data/Modifiers/DataModifier.js +1 -1
  90. package/es-modules/Data/Parsers/CSVParser.js +3 -2
  91. package/es-modules/Data/Parsers/GoogleSheetsParser.js +5 -2
  92. package/es-modules/Data/Stores/CSVStore.js +2 -2
  93. package/es-modules/Data/Stores/DataStore.js +1 -1
  94. package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
  95. package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
  96. package/es-modules/Extensions/Annotations/Annotations.js +18 -10
  97. package/es-modules/Extensions/Annotations/ControlPoint.js +0 -2
  98. package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +1 -1
  99. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +1 -1
  100. package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +1 -1
  101. package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +3 -6
  102. package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -2
  103. package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +1 -1
  104. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +6 -3
  105. package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +0 -1
  106. package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +5 -4
  107. package/es-modules/Extensions/Annotations/MockPoint.js +1 -1
  108. package/es-modules/Extensions/Annotations/NavigationBindings.js +34 -29
  109. package/es-modules/Extensions/Annotations/Popup.js +40 -32
  110. package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +5 -3
  111. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
  112. package/es-modules/Extensions/Annotations/Types/ElliottWave.js +1 -1
  113. package/es-modules/Extensions/Annotations/Types/Measure.js +15 -11
  114. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +2 -1
  115. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +8 -4
  116. package/es-modules/Extensions/Annotations/Types/Tunnel.js +10 -5
  117. package/es-modules/Extensions/Boost/BoostInit.js +6 -1
  118. package/es-modules/Extensions/Boost/BoostOptions.js +26 -0
  119. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -9
  120. package/es-modules/Extensions/Boost/BoostUtils.js +0 -6
  121. package/es-modules/Extensions/Boost/Boostables.js +1 -0
  122. package/es-modules/Extensions/Boost/WGLRenderer.js +64 -49
  123. package/es-modules/Extensions/Boost/WGLShader.js +13 -11
  124. package/es-modules/Extensions/Boost/WGLVBuffer.js +4 -7
  125. package/es-modules/Extensions/Breadcrumbs.js +874 -0
  126. package/es-modules/Extensions/Data.js +30 -62
  127. package/es-modules/Extensions/DataGrouping.js +27 -17
  128. package/es-modules/Extensions/DraggablePoints.js +16 -15
  129. package/es-modules/Extensions/Drilldown.js +148 -90
  130. package/es-modules/Extensions/ExportData.js +6 -5
  131. package/es-modules/Extensions/Exporting/Exporting.js +32 -44
  132. package/es-modules/Extensions/Exporting/ExportingDefaults.js +49 -1
  133. package/es-modules/Extensions/FullScreen.js +4 -3
  134. package/es-modules/Extensions/GeoJSON.js +152 -127
  135. package/es-modules/Extensions/MarkerClusters.js +37 -21
  136. package/es-modules/Extensions/Math3D.js +4 -4
  137. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +133 -46
  138. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  139. package/es-modules/Extensions/Oldie/Oldie.js +13 -77
  140. package/es-modules/Extensions/Oldie/VMLAxis3D.js +5 -1
  141. package/es-modules/Extensions/OverlappingDataLabels.js +10 -6
  142. package/es-modules/Extensions/Pane.js +6 -6
  143. package/es-modules/Extensions/ParallelCoordinates.js +5 -3
  144. package/es-modules/Extensions/PatternFill.js +17 -11
  145. package/es-modules/Extensions/Polar.js +6 -3
  146. package/es-modules/Extensions/PriceIndication.js +2 -1
  147. package/es-modules/Extensions/RangeSelector.js +19 -55
  148. package/es-modules/Extensions/ScrollablePlotArea.js +7 -3
  149. package/es-modules/Extensions/SeriesLabel.js +1 -1
  150. package/es-modules/Extensions/Sonification/ChartSonify.js +32 -26
  151. package/es-modules/Extensions/Sonification/Instrument.js +12 -15
  152. package/es-modules/Extensions/Sonification/PointSonify.js +12 -8
  153. package/es-modules/Extensions/Sonification/SeriesSonify.js +33 -18
  154. package/es-modules/Extensions/Sonification/SignalHandler.js +4 -6
  155. package/es-modules/Extensions/Sonification/Sonification.js +1 -1
  156. package/es-modules/Extensions/Sonification/SonificationUtilities.js +11 -7
  157. package/es-modules/Extensions/Sonification/Timeline.js +2 -7
  158. package/es-modules/Extensions/Sonification/TimelineEvent.js +0 -1
  159. package/es-modules/Extensions/Sonification/TimelinePath.js +8 -8
  160. package/es-modules/Extensions/Stacking.js +8 -25
  161. package/es-modules/Extensions/Themes/BrandDark.js +293 -0
  162. package/es-modules/Extensions/Themes/BrandLight.js +259 -0
  163. package/es-modules/Extensions/Themes/DarkUnica.js +4 -2
  164. package/es-modules/Extensions/Themes/Grid.js +4 -2
  165. package/es-modules/Extensions/Themes/GridLight.js +4 -2
  166. package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
  167. package/es-modules/Extensions/Themes/HighContrastLight.js +10 -10
  168. package/es-modules/Gantt/Connection.js +2 -2
  169. package/es-modules/Gantt/Pathfinder.js +6 -5
  170. package/es-modules/Gantt/PathfinderAlgorithms.js +12 -12
  171. package/es-modules/Maps/MapNavigation.js +54 -14
  172. package/es-modules/Maps/MapPointer.js +18 -1
  173. package/es-modules/Maps/MapSymbols.js +23 -3
  174. package/es-modules/Maps/MapUtilities.js +56 -0
  175. package/es-modules/Maps/MapView.js +606 -135
  176. package/es-modules/Maps/MapViewInsetsOptionsDefault.js +148 -0
  177. package/es-modules/Maps/MapViewOptionsDefault.js +58 -20
  178. package/es-modules/Maps/Projection.js +169 -77
  179. package/es-modules/Maps/Projections/EqualEarth.js +15 -6
  180. package/es-modules/Maps/Projections/LambertConformalConic.js +27 -19
  181. package/es-modules/Maps/Projections/Miller.js +23 -10
  182. package/es-modules/Maps/Projections/Orthographic.js +21 -10
  183. package/es-modules/Maps/Projections/WebMercator.js +25 -13
  184. package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +77 -0
  185. package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +581 -0
  186. package/es-modules/Series/Area/AreaSeries.js +13 -13
  187. package/es-modules/Series/Area3DSeries.js +4 -2
  188. package/es-modules/Series/AreaRange/AreaRangeSeries.js +24 -12
  189. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -1
  190. package/es-modules/Series/Bubble/BubbleLegendItem.js +2 -12
  191. package/es-modules/Series/Candlestick/CandlestickSeries.js +0 -1
  192. package/es-modules/Series/ColorMapMixin.js +84 -0
  193. package/es-modules/Series/Column/ColumnSeries.js +20 -17
  194. package/es-modules/Series/Column3D/Column3DComposition.js +1 -2
  195. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +5 -2
  196. package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
  197. package/es-modules/Series/Cylinder/CylinderComposition.js +36 -4
  198. package/es-modules/Series/DataModifyComposition.js +1 -0
  199. package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +3 -3
  200. package/es-modules/Series/DrawPointComposition.js +7 -4
  201. package/es-modules/Series/Dumbbell/DumbbellPoint.js +0 -1
  202. package/es-modules/Series/Dumbbell/DumbbellSeries.js +0 -3
  203. package/es-modules/Series/Flags/FlagsSymbols.js +2 -2
  204. package/es-modules/Series/Funnel3D/Funnel3DComposition.js +14 -8
  205. package/es-modules/Series/Funnel3D/Funnel3DSeries.js +2 -1
  206. package/es-modules/Series/Gantt/GanttPoint.js +1 -1
  207. package/es-modules/Series/Gantt/GanttSeries.js +3 -1
  208. package/es-modules/Series/HLC/HLCSeries.js +1 -6
  209. package/es-modules/Series/Heatmap/HeatmapPoint.js +10 -10
  210. package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -10
  211. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +8 -6
  212. package/es-modules/Series/Histogram/HistogramSeries.js +4 -4
  213. package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +1 -4
  214. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +19 -20
  215. package/es-modules/Series/Item/ItemSeries.js +4 -5
  216. package/es-modules/Series/Lollipop/LollipopSeries.js +1 -1
  217. package/es-modules/Series/Map/MapPoint.js +30 -1
  218. package/es-modules/Series/Map/MapSeries.js +216 -190
  219. package/es-modules/Series/MapBubble/MapBubblePoint.js +16 -24
  220. package/es-modules/Series/MapBubble/MapBubbleSeries.js +11 -0
  221. package/es-modules/Series/MapLine/MapLineSeries.js +0 -4
  222. package/es-modules/Series/MapPoint/MapPointPoint.js +2 -8
  223. package/es-modules/Series/MapPoint/MapPointSeries.js +36 -14
  224. package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -4
  225. package/es-modules/Series/Networkgraph/Integrations.js +8 -22
  226. package/es-modules/Series/Networkgraph/Networkgraph.js +1 -5
  227. package/es-modules/Series/Networkgraph/QuadTree.js +1 -3
  228. package/es-modules/Series/NodesComposition.js +60 -12
  229. package/es-modules/Series/OHLC/OHLCPoint.js +0 -1
  230. package/es-modules/Series/OHLC/OHLCSeries.js +8 -1
  231. package/es-modules/Series/Organization/OrganizationPoint.js +68 -2
  232. package/es-modules/Series/Organization/OrganizationSeries.js +81 -25
  233. package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +1 -0
  234. package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
  235. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +2 -4
  236. package/es-modules/Series/Pie/PiePoint.js +14 -7
  237. package/es-modules/Series/Pie/PieSeries.js +1 -1
  238. package/es-modules/Series/Pie3D/Pie3DComposition.js +2 -1
  239. package/es-modules/Series/Pie3D/Pie3DPoint.js +2 -1
  240. package/es-modules/Series/Pie3D/Pie3DSeries.js +20 -1
  241. package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +2 -1
  242. package/es-modules/Series/Sankey/SankeyColumnComposition.js +193 -0
  243. package/es-modules/Series/Sankey/SankeyPoint.js +37 -1
  244. package/es-modules/Series/Sankey/SankeySeries.js +10 -126
  245. package/es-modules/Series/Scatter/ScatterSeries.js +1 -1
  246. package/es-modules/Series/SolidGauge/SolidGaugeComposition.js +3 -1
  247. package/es-modules/Series/Spline/SplineSeries.js +0 -8
  248. package/es-modules/Series/Sunburst/SunburstSeries.js +15 -4
  249. package/es-modules/Series/Sunburst/SunburstUtilities.js +3 -2
  250. package/es-modules/Series/Tilemap/TilemapPoint.js +0 -2
  251. package/es-modules/Series/Tilemap/TilemapShapes.js +0 -7
  252. package/es-modules/Series/TreeUtilities.js +2 -2
  253. package/es-modules/Series/Treemap/TreemapSeries.js +104 -99
  254. package/es-modules/Series/Variwide/VariwideSeries.js +5 -1
  255. package/es-modules/Series/Venn/VennSeries.js +6 -9
  256. package/es-modules/Series/Venn/VennUtils.js +8 -7
  257. package/es-modules/Series/Waterfall/WaterfallSeries.js +8 -3
  258. package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
  259. package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -10
  260. package/es-modules/Series/XRange/XRangePoint.js +6 -12
  261. package/es-modules/Series/XRange/XRangeSeries.js +4 -20
  262. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +12 -0
  263. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -0
  264. package/es-modules/Stock/Indicators/BB/BBIndicator.js +12 -0
  265. package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +35 -15
  266. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +9 -5
  267. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +2 -1
  268. package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +6 -6
  269. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +12 -0
  270. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -3
  271. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +30 -12
  272. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
  273. package/es-modules/Stock/Indicators/MultipleLinesComposition.js +70 -6
  274. package/es-modules/Stock/Indicators/PC/PCIndicator.js +11 -0
  275. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -1
  276. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +2 -1
  277. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +11 -5
  278. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
  279. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -3
  280. package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +19 -7
  281. package/es-modules/Stock/StockToolsBindings.js +13 -6
  282. package/es-modules/Stock/StockToolsGui.js +34 -23
  283. package/es-modules/masters/highcharts-3d.src.js +1 -1
  284. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  285. package/es-modules/masters/highcharts-more.src.js +1 -1
  286. package/es-modules/masters/highcharts.src.js +1 -1
  287. package/es-modules/masters/highmaps.src.js +1 -1
  288. package/es-modules/masters/highstock.src.js +1 -1
  289. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  290. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  291. package/es-modules/masters/indicators/ao.src.js +1 -1
  292. package/es-modules/masters/indicators/apo.src.js +1 -1
  293. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  294. package/es-modules/masters/indicators/aroon.src.js +1 -1
  295. package/es-modules/masters/indicators/atr.src.js +1 -1
  296. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  297. package/es-modules/masters/indicators/cci.src.js +1 -1
  298. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  299. package/es-modules/masters/indicators/cmf.src.js +1 -1
  300. package/es-modules/masters/indicators/cmo.src.js +1 -1
  301. package/es-modules/masters/indicators/dema.src.js +1 -1
  302. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  303. package/es-modules/masters/indicators/dmi.src.js +1 -1
  304. package/es-modules/masters/indicators/dpo.src.js +1 -1
  305. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  306. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  307. package/es-modules/masters/indicators/indicators.src.js +1 -1
  308. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  309. package/es-modules/masters/indicators/klinger.src.js +1 -1
  310. package/es-modules/masters/indicators/macd.src.js +1 -1
  311. package/es-modules/masters/indicators/mfi.src.js +1 -1
  312. package/es-modules/masters/indicators/momentum.src.js +1 -1
  313. package/es-modules/masters/indicators/natr.src.js +1 -1
  314. package/es-modules/masters/indicators/obv.src.js +1 -1
  315. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  316. package/es-modules/masters/indicators/ppo.src.js +1 -1
  317. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  318. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  319. package/es-modules/masters/indicators/psar.src.js +1 -1
  320. package/es-modules/masters/indicators/regressions.src.js +1 -1
  321. package/es-modules/masters/indicators/roc.src.js +1 -1
  322. package/es-modules/masters/indicators/rsi.src.js +1 -1
  323. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  324. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  325. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  326. package/es-modules/masters/indicators/tema.src.js +1 -1
  327. package/es-modules/masters/indicators/trendline.src.js +1 -1
  328. package/es-modules/masters/indicators/trix.src.js +1 -1
  329. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  330. package/es-modules/masters/indicators/vwap.src.js +1 -1
  331. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  332. package/es-modules/masters/indicators/wma.src.js +1 -1
  333. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  334. package/es-modules/masters/modules/accessibility.src.js +2 -2
  335. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  336. package/es-modules/masters/modules/annotations.src.js +1 -1
  337. package/es-modules/masters/modules/arc-diagram.src.js +14 -0
  338. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  339. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  340. package/es-modules/masters/modules/boost.src.js +1 -1
  341. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  342. package/es-modules/masters/modules/bullet.src.js +1 -1
  343. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  344. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  345. package/es-modules/masters/modules/cylinder.src.js +1 -1
  346. package/es-modules/masters/modules/data.src.js +1 -1
  347. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  348. package/es-modules/masters/modules/debugger.src.js +1 -1
  349. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  350. package/es-modules/masters/modules/dotplot.src.js +1 -1
  351. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  352. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  353. package/es-modules/masters/modules/drilldown.src.js +2 -1
  354. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  355. package/es-modules/masters/modules/export-data.src.js +1 -1
  356. package/es-modules/masters/modules/exporting.src.js +1 -1
  357. package/es-modules/masters/modules/full-screen.src.js +1 -1
  358. package/es-modules/masters/modules/funnel.src.js +1 -1
  359. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  360. package/es-modules/masters/modules/gantt.src.js +1 -1
  361. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  362. package/es-modules/masters/modules/heatmap.src.js +1 -1
  363. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  364. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  365. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  366. package/es-modules/masters/modules/item-series.src.js +1 -1
  367. package/es-modules/masters/modules/lollipop.src.js +1 -1
  368. package/es-modules/masters/modules/map.src.js +5 -1
  369. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  370. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  371. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  372. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  373. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  374. package/es-modules/masters/modules/oldie.src.js +1 -1
  375. package/es-modules/masters/modules/organization.src.js +1 -1
  376. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  377. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  378. package/es-modules/masters/modules/pareto.src.js +1 -1
  379. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  380. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  381. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  382. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  383. package/es-modules/masters/modules/sankey.src.js +1 -1
  384. package/es-modules/masters/modules/series-label.src.js +1 -1
  385. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  386. package/es-modules/masters/modules/sonification.src.js +1 -1
  387. package/es-modules/masters/modules/static-scale.src.js +1 -1
  388. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  389. package/es-modules/masters/modules/stock.src.js +1 -1
  390. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  391. package/es-modules/masters/modules/sunburst.src.js +1 -1
  392. package/es-modules/masters/modules/tilemap.src.js +1 -1
  393. package/es-modules/masters/modules/timeline.src.js +1 -1
  394. package/es-modules/masters/modules/treegrid.src.js +1 -1
  395. package/es-modules/masters/modules/treemap.src.js +5 -1
  396. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  397. package/es-modules/masters/modules/variwide.src.js +1 -1
  398. package/es-modules/masters/modules/vector.src.js +1 -1
  399. package/es-modules/masters/modules/venn.src.js +1 -1
  400. package/es-modules/masters/modules/windbarb.src.js +1 -1
  401. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  402. package/es-modules/masters/modules/xrange.src.js +1 -1
  403. package/es-modules/masters/themes/avocado.src.js +1 -1
  404. package/es-modules/masters/themes/brand-dark.src.js +14 -0
  405. package/es-modules/masters/themes/brand-light.src.js +14 -0
  406. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  407. package/es-modules/masters/themes/dark-green.src.js +1 -1
  408. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  409. package/es-modules/masters/themes/gray.src.js +1 -1
  410. package/es-modules/masters/themes/grid-light.src.js +1 -1
  411. package/es-modules/masters/themes/grid.src.js +1 -1
  412. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  413. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  414. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  415. package/es-modules/masters/themes/skies.src.js +1 -1
  416. package/es-modules/masters/themes/sunset.src.js +1 -1
  417. package/highcharts-3d.js +99 -98
  418. package/highcharts-3d.js.map +1 -1
  419. package/highcharts-3d.src.js +114 -54
  420. package/highcharts-gantt.js +805 -800
  421. package/highcharts-gantt.js.map +1 -1
  422. package/highcharts-gantt.src.js +1102 -973
  423. package/highcharts-more.js +195 -194
  424. package/highcharts-more.js.map +1 -1
  425. package/highcharts-more.src.js +85 -104
  426. package/highcharts.d.ts +8196 -2661
  427. package/highcharts.js +590 -585
  428. package/highcharts.js.map +1 -1
  429. package/highcharts.src.d.ts +8196 -2661
  430. package/highcharts.src.js +872 -745
  431. package/highmaps.js +757 -727
  432. package/highmaps.js.map +1 -1
  433. package/highmaps.src.js +3983 -2601
  434. package/highstock.js +792 -788
  435. package/highstock.js.map +1 -1
  436. package/highstock.src.js +1118 -1001
  437. package/indicators/acceleration-bands.d.ts +17 -1
  438. package/indicators/acceleration-bands.js +12 -10
  439. package/indicators/acceleration-bands.js.map +1 -1
  440. package/indicators/acceleration-bands.src.d.ts +17 -1
  441. package/indicators/acceleration-bands.src.js +98 -7
  442. package/indicators/accumulation-distribution.js +5 -5
  443. package/indicators/accumulation-distribution.js.map +1 -1
  444. package/indicators/accumulation-distribution.src.js +11 -2
  445. package/indicators/ao.js +6 -6
  446. package/indicators/ao.js.map +1 -1
  447. package/indicators/ao.src.js +11 -2
  448. package/indicators/apo.js +5 -5
  449. package/indicators/apo.js.map +1 -1
  450. package/indicators/apo.src.js +11 -2
  451. package/indicators/aroon-oscillator.d.ts +17 -1
  452. package/indicators/aroon-oscillator.js +10 -9
  453. package/indicators/aroon-oscillator.js.map +1 -1
  454. package/indicators/aroon-oscillator.src.d.ts +17 -1
  455. package/indicators/aroon-oscillator.src.js +86 -7
  456. package/indicators/aroon.d.ts +17 -1
  457. package/indicators/aroon.js +11 -9
  458. package/indicators/aroon.js.map +1 -1
  459. package/indicators/aroon.src.d.ts +17 -1
  460. package/indicators/aroon.src.js +87 -7
  461. package/indicators/atr.js +5 -5
  462. package/indicators/atr.js.map +1 -1
  463. package/indicators/atr.src.js +11 -2
  464. package/indicators/bollinger-bands.d.ts +17 -1
  465. package/indicators/bollinger-bands.js +12 -10
  466. package/indicators/bollinger-bands.js.map +1 -1
  467. package/indicators/bollinger-bands.src.d.ts +17 -1
  468. package/indicators/bollinger-bands.src.js +98 -7
  469. package/indicators/cci.js +5 -5
  470. package/indicators/cci.js.map +1 -1
  471. package/indicators/cci.src.js +11 -2
  472. package/indicators/chaikin.js +8 -8
  473. package/indicators/chaikin.js.map +1 -1
  474. package/indicators/chaikin.src.js +11 -2
  475. package/indicators/cmf.js +6 -6
  476. package/indicators/cmf.js.map +1 -1
  477. package/indicators/cmf.src.js +46 -17
  478. package/indicators/cmo.js +5 -5
  479. package/indicators/cmo.js.map +1 -1
  480. package/indicators/cmo.src.js +11 -2
  481. package/indicators/dema.js +5 -5
  482. package/indicators/dema.js.map +1 -1
  483. package/indicators/dema.src.js +11 -2
  484. package/indicators/disparity-index.js +6 -6
  485. package/indicators/disparity-index.js.map +1 -1
  486. package/indicators/disparity-index.src.js +13 -3
  487. package/indicators/dmi.js +12 -11
  488. package/indicators/dmi.js.map +1 -1
  489. package/indicators/dmi.src.js +95 -12
  490. package/indicators/dpo.js +5 -5
  491. package/indicators/dpo.js.map +1 -1
  492. package/indicators/dpo.src.js +11 -2
  493. package/indicators/ema.js +2 -1
  494. package/indicators/ema.js.map +1 -1
  495. package/indicators/ema.src.js +10 -1
  496. package/indicators/ichimoku-kinko-hyo.js +16 -16
  497. package/indicators/ichimoku-kinko-hyo.js.map +1 -1
  498. package/indicators/ichimoku-kinko-hyo.src.js +17 -8
  499. package/indicators/indicators-all.d.ts +17 -1
  500. package/indicators/indicators-all.js +199 -197
  501. package/indicators/indicators-all.js.map +1 -1
  502. package/indicators/indicators-all.src.d.ts +17 -1
  503. package/indicators/indicators-all.src.js +266 -69
  504. package/indicators/indicators.js +13 -12
  505. package/indicators/indicators.js.map +1 -1
  506. package/indicators/indicators.src.js +23 -8
  507. package/indicators/keltner-channels.d.ts +17 -1
  508. package/indicators/keltner-channels.js +12 -10
  509. package/indicators/keltner-channels.js.map +1 -1
  510. package/indicators/keltner-channels.src.d.ts +17 -1
  511. package/indicators/keltner-channels.src.js +98 -7
  512. package/indicators/klinger.js +14 -12
  513. package/indicators/klinger.js.map +1 -1
  514. package/indicators/klinger.src.js +94 -10
  515. package/indicators/macd.js +12 -11
  516. package/indicators/macd.js.map +1 -1
  517. package/indicators/macd.src.js +12 -3
  518. package/indicators/mfi.js +6 -6
  519. package/indicators/mfi.js.map +1 -1
  520. package/indicators/mfi.src.js +11 -2
  521. package/indicators/momentum.js +5 -5
  522. package/indicators/momentum.js.map +1 -1
  523. package/indicators/momentum.src.js +11 -2
  524. package/indicators/natr.js +5 -4
  525. package/indicators/natr.js.map +1 -1
  526. package/indicators/natr.src.js +11 -2
  527. package/indicators/obv.js +5 -5
  528. package/indicators/obv.js.map +1 -1
  529. package/indicators/obv.src.js +11 -2
  530. package/indicators/pivot-points.js +11 -11
  531. package/indicators/pivot-points.js.map +1 -1
  532. package/indicators/pivot-points.src.js +13 -3
  533. package/indicators/ppo.js +5 -5
  534. package/indicators/ppo.js.map +1 -1
  535. package/indicators/ppo.src.js +11 -2
  536. package/indicators/price-channel.d.ts +17 -1
  537. package/indicators/price-channel.js +11 -9
  538. package/indicators/price-channel.js.map +1 -1
  539. package/indicators/price-channel.src.d.ts +17 -1
  540. package/indicators/price-channel.src.js +97 -7
  541. package/indicators/price-envelopes.js +8 -8
  542. package/indicators/price-envelopes.js.map +1 -1
  543. package/indicators/price-envelopes.src.js +11 -2
  544. package/indicators/psar.js +7 -6
  545. package/indicators/psar.js.map +1 -1
  546. package/indicators/psar.src.js +11 -2
  547. package/indicators/regressions.js +12 -12
  548. package/indicators/regressions.js.map +1 -1
  549. package/indicators/regressions.src.js +41 -14
  550. package/indicators/roc.js +5 -5
  551. package/indicators/roc.js.map +1 -1
  552. package/indicators/roc.src.js +11 -2
  553. package/indicators/rsi.js +6 -5
  554. package/indicators/rsi.js.map +1 -1
  555. package/indicators/rsi.src.js +13 -3
  556. package/indicators/slow-stochastic.js +5 -5
  557. package/indicators/slow-stochastic.js.map +1 -1
  558. package/indicators/slow-stochastic.src.js +11 -2
  559. package/indicators/stochastic.d.ts +17 -1
  560. package/indicators/stochastic.js +12 -10
  561. package/indicators/stochastic.js.map +1 -1
  562. package/indicators/stochastic.src.d.ts +17 -1
  563. package/indicators/stochastic.src.js +89 -8
  564. package/indicators/supertrend.js +10 -10
  565. package/indicators/supertrend.js.map +1 -1
  566. package/indicators/supertrend.src.js +11 -2
  567. package/indicators/tema.js +6 -6
  568. package/indicators/tema.js.map +1 -1
  569. package/indicators/tema.src.js +11 -2
  570. package/indicators/trendline.js +5 -5
  571. package/indicators/trendline.js.map +1 -1
  572. package/indicators/trendline.src.js +11 -2
  573. package/indicators/trix.js +4 -4
  574. package/indicators/trix.js.map +1 -1
  575. package/indicators/trix.src.js +11 -2
  576. package/indicators/volume-by-price.js +17 -17
  577. package/indicators/volume-by-price.js.map +1 -1
  578. package/indicators/volume-by-price.src.js +14 -5
  579. package/indicators/vwap.js +5 -5
  580. package/indicators/vwap.js.map +1 -1
  581. package/indicators/vwap.src.js +30 -9
  582. package/indicators/williams-r.js +6 -5
  583. package/indicators/williams-r.js.map +1 -1
  584. package/indicators/williams-r.src.js +11 -2
  585. package/indicators/wma.js +5 -5
  586. package/indicators/wma.js.map +1 -1
  587. package/indicators/wma.src.js +11 -2
  588. package/indicators/zigzag.js +6 -6
  589. package/indicators/zigzag.js.map +1 -1
  590. package/indicators/zigzag.src.js +11 -2
  591. package/lib/jspdf.js +299 -184
  592. package/lib/jspdf.src.js +25266 -18067
  593. package/lib/svg2pdf.js +35 -31
  594. package/lib/svg2pdf.src.js +5721 -4179
  595. package/modules/accessibility.d.ts +0 -35
  596. package/modules/accessibility.js +232 -226
  597. package/modules/accessibility.js.map +1 -1
  598. package/modules/accessibility.src.d.ts +0 -35
  599. package/modules/accessibility.src.js +792 -613
  600. package/modules/annotations-advanced.js +175 -175
  601. package/modules/annotations-advanced.js.map +1 -1
  602. package/modules/annotations-advanced.src.js +175 -129
  603. package/modules/annotations.js +124 -124
  604. package/modules/annotations.js.map +1 -1
  605. package/modules/annotations.src.js +130 -102
  606. package/modules/arc-diagram.js +25 -0
  607. package/modules/arc-diagram.js.map +1 -0
  608. package/modules/arc-diagram.src.js +770 -0
  609. package/modules/arrow-symbols.js +4 -3
  610. package/modules/arrow-symbols.js.map +1 -1
  611. package/modules/arrow-symbols.src.js +11 -2
  612. package/modules/boost-canvas.js +15 -15
  613. package/modules/boost-canvas.js.map +1 -1
  614. package/modules/boost-canvas.src.js +11 -2
  615. package/modules/boost.js +80 -79
  616. package/modules/boost.js.map +1 -1
  617. package/modules/boost.src.js +103 -85
  618. package/modules/broken-axis.js +13 -13
  619. package/modules/broken-axis.js.map +1 -1
  620. package/modules/broken-axis.src.js +28 -13
  621. package/modules/bullet.js +9 -9
  622. package/modules/bullet.js.map +1 -1
  623. package/modules/bullet.src.js +11 -2
  624. package/modules/coloraxis.js +24 -24
  625. package/modules/coloraxis.js.map +1 -1
  626. package/modules/coloraxis.src.js +42 -13
  627. package/modules/current-date-indicator.js +5 -4
  628. package/modules/current-date-indicator.js.map +1 -1
  629. package/modules/current-date-indicator.src.js +11 -2
  630. package/modules/cylinder.js +11 -11
  631. package/modules/cylinder.js.map +1 -1
  632. package/modules/cylinder.src.js +47 -6
  633. package/modules/data.d.ts +6 -6
  634. package/modules/data.js +34 -33
  635. package/modules/data.js.map +1 -1
  636. package/modules/data.src.d.ts +6 -6
  637. package/modules/data.src.js +68 -84
  638. package/modules/datagrouping.js +21 -20
  639. package/modules/datagrouping.js.map +1 -1
  640. package/modules/datagrouping.src.js +38 -19
  641. package/modules/debugger.js +6 -6
  642. package/modules/debugger.js.map +1 -1
  643. package/modules/debugger.src.js +11 -2
  644. package/modules/dependency-wheel.js +12 -11
  645. package/modules/dependency-wheel.js.map +1 -1
  646. package/modules/dependency-wheel.src.js +15 -6
  647. package/modules/dotplot.js +6 -6
  648. package/modules/dotplot.js.map +1 -1
  649. package/modules/dotplot.src.js +11 -2
  650. package/modules/drag-panes.js +10 -10
  651. package/modules/drag-panes.js.map +1 -1
  652. package/modules/drag-panes.src.js +11 -2
  653. package/modules/draggable-points.js +35 -34
  654. package/modules/draggable-points.js.map +1 -1
  655. package/modules/draggable-points.src.js +27 -17
  656. package/modules/drilldown.d.ts +19 -0
  657. package/modules/drilldown.js +37 -25
  658. package/modules/drilldown.js.map +1 -1
  659. package/modules/drilldown.src.d.ts +19 -0
  660. package/modules/drilldown.src.js +1091 -101
  661. package/modules/dumbbell.js +17 -17
  662. package/modules/dumbbell.js.map +1 -1
  663. package/modules/dumbbell.src.js +11 -6
  664. package/modules/export-data.js +22 -21
  665. package/modules/export-data.js.map +1 -1
  666. package/modules/export-data.src.js +17 -7
  667. package/modules/exporting.js +39 -39
  668. package/modules/exporting.js.map +1 -1
  669. package/modules/exporting.src.js +114 -62
  670. package/modules/full-screen.js +8 -7
  671. package/modules/full-screen.js.map +1 -1
  672. package/modules/full-screen.src.js +15 -5
  673. package/modules/funnel.js +12 -12
  674. package/modules/funnel.js.map +1 -1
  675. package/modules/funnel.src.js +11 -2
  676. package/modules/funnel3d.js +21 -21
  677. package/modules/funnel3d.js.map +1 -1
  678. package/modules/funnel3d.src.js +27 -11
  679. package/modules/gantt.js +217 -217
  680. package/modules/gantt.js.map +1 -1
  681. package/modules/gantt.src.js +241 -230
  682. package/modules/grid-axis.js +23 -23
  683. package/modules/grid-axis.js.map +1 -1
  684. package/modules/grid-axis.src.js +46 -27
  685. package/modules/heatmap.js +40 -39
  686. package/modules/heatmap.js.map +1 -1
  687. package/modules/heatmap.src.js +119 -117
  688. package/modules/heikinashi.js +8 -8
  689. package/modules/heikinashi.js.map +1 -1
  690. package/modules/heikinashi.src.js +19 -8
  691. package/modules/histogram-bellcurve.js +13 -13
  692. package/modules/histogram-bellcurve.js.map +1 -1
  693. package/modules/histogram-bellcurve.src.js +17 -7
  694. package/modules/hollowcandlestick.js +9 -9
  695. package/modules/hollowcandlestick.js.map +1 -1
  696. package/modules/hollowcandlestick.src.js +31 -26
  697. package/modules/item-series.js +12 -12
  698. package/modules/item-series.js.map +1 -1
  699. package/modules/item-series.src.js +16 -7
  700. package/modules/lollipop.js +7 -7
  701. package/modules/lollipop.js.map +1 -1
  702. package/modules/lollipop.src.js +12 -3
  703. package/modules/map.d.ts +82 -43
  704. package/modules/map.js +169 -144
  705. package/modules/map.js.map +1 -1
  706. package/modules/map.src.d.ts +82 -43
  707. package/modules/map.src.js +8003 -6739
  708. package/modules/marker-clusters.js +36 -36
  709. package/modules/marker-clusters.js.map +1 -1
  710. package/modules/marker-clusters.src.js +50 -24
  711. package/modules/networkgraph.d.ts +5 -0
  712. package/modules/networkgraph.js +49 -48
  713. package/modules/networkgraph.js.map +1 -1
  714. package/modules/networkgraph.src.d.ts +5 -0
  715. package/modules/networkgraph.src.js +87 -48
  716. package/modules/no-data-to-display.js +5 -5
  717. package/modules/no-data-to-display.js.map +1 -1
  718. package/modules/no-data-to-display.src.js +11 -2
  719. package/modules/offline-exporting.js +20 -18
  720. package/modules/offline-exporting.js.map +1 -1
  721. package/modules/offline-exporting.src.js +149 -53
  722. package/modules/oldie-polyfills.js +7 -7
  723. package/modules/oldie-polyfills.js.map +1 -1
  724. package/modules/oldie-polyfills.src.js +11 -2
  725. package/modules/oldie.js +30 -30
  726. package/modules/oldie.js.map +1 -1
  727. package/modules/oldie.src.js +29 -80
  728. package/modules/organization.js +16 -14
  729. package/modules/organization.js.map +1 -1
  730. package/modules/organization.src.js +168 -32
  731. package/modules/overlapping-datalabels.js +3 -2
  732. package/modules/overlapping-datalabels.js.map +1 -1
  733. package/modules/overlapping-datalabels.src.js +11 -2
  734. package/modules/parallel-coordinates.js +11 -11
  735. package/modules/parallel-coordinates.js.map +1 -1
  736. package/modules/parallel-coordinates.src.js +16 -5
  737. package/modules/pareto.js +7 -7
  738. package/modules/pareto.js.map +1 -1
  739. package/modules/pareto.src.js +11 -2
  740. package/modules/pathfinder.js +31 -31
  741. package/modules/pathfinder.js.map +1 -1
  742. package/modules/pathfinder.src.js +31 -21
  743. package/modules/pattern-fill.js +14 -14
  744. package/modules/pattern-fill.js.map +1 -1
  745. package/modules/pattern-fill.src.js +28 -13
  746. package/modules/price-indicator.js +5 -5
  747. package/modules/price-indicator.js.map +1 -1
  748. package/modules/price-indicator.src.js +13 -3
  749. package/modules/pyramid3d.js +4 -4
  750. package/modules/pyramid3d.js.map +1 -1
  751. package/modules/pyramid3d.src.js +13 -3
  752. package/modules/sankey.d.ts +5 -0
  753. package/modules/sankey.js +32 -29
  754. package/modules/sankey.js.map +1 -1
  755. package/modules/sankey.src.d.ts +5 -0
  756. package/modules/sankey.src.js +340 -156
  757. package/modules/series-label.js +18 -17
  758. package/modules/series-label.js.map +1 -1
  759. package/modules/series-label.src.js +12 -3
  760. package/modules/solid-gauge.js +10 -10
  761. package/modules/solid-gauge.js.map +1 -1
  762. package/modules/solid-gauge.src.js +27 -3
  763. package/modules/sonification.js +59 -59
  764. package/modules/sonification.js.map +1 -1
  765. package/modules/sonification.src.js +131 -104
  766. package/modules/static-scale.js +5 -4
  767. package/modules/static-scale.js.map +1 -1
  768. package/modules/static-scale.src.js +11 -2
  769. package/modules/stock-tools.js +107 -107
  770. package/modules/stock-tools.js.map +1 -1
  771. package/modules/stock-tools.src.js +137 -98
  772. package/modules/stock.js +162 -162
  773. package/modules/stock.js.map +1 -1
  774. package/modules/stock.src.js +257 -258
  775. package/modules/streamgraph.js +5 -4
  776. package/modules/streamgraph.js.map +1 -1
  777. package/modules/streamgraph.src.js +11 -2
  778. package/modules/sunburst.d.ts +3 -0
  779. package/modules/sunburst.js +73 -61
  780. package/modules/sunburst.js.map +1 -1
  781. package/modules/sunburst.src.d.ts +3 -0
  782. package/modules/sunburst.src.js +1128 -205
  783. package/modules/tilemap.js +17 -17
  784. package/modules/tilemap.js.map +1 -1
  785. package/modules/tilemap.src.js +11 -11
  786. package/modules/timeline.js +18 -18
  787. package/modules/timeline.js.map +1 -1
  788. package/modules/timeline.src.js +11 -2
  789. package/modules/treegrid.js +57 -56
  790. package/modules/treegrid.js.map +1 -1
  791. package/modules/treegrid.src.js +106 -58
  792. package/modules/treemap.d.ts +3 -0
  793. package/modules/treemap.js +53 -41
  794. package/modules/treemap.js.map +1 -1
  795. package/modules/treemap.src.d.ts +3 -0
  796. package/modules/treemap.src.js +1113 -200
  797. package/modules/variable-pie.js +9 -9
  798. package/modules/variable-pie.js.map +1 -1
  799. package/modules/variable-pie.src.js +11 -2
  800. package/modules/variwide.js +12 -12
  801. package/modules/variwide.js.map +1 -1
  802. package/modules/variwide.src.js +17 -4
  803. package/modules/vector.js +8 -7
  804. package/modules/vector.js.map +1 -1
  805. package/modules/vector.src.js +11 -2
  806. package/modules/venn.js +31 -31
  807. package/modules/venn.js.map +1 -1
  808. package/modules/venn.src.js +34 -23
  809. package/modules/windbarb.js +15 -15
  810. package/modules/windbarb.js.map +1 -1
  811. package/modules/windbarb.src.js +11 -2
  812. package/modules/wordcloud.js +23 -23
  813. package/modules/wordcloud.js.map +1 -1
  814. package/modules/wordcloud.src.js +26 -18
  815. package/modules/xrange.js +16 -16
  816. package/modules/xrange.js.map +1 -1
  817. package/modules/xrange.src.js +21 -34
  818. package/package.json +1 -1
  819. package/themes/avocado.js +4 -3
  820. package/themes/avocado.js.map +1 -1
  821. package/themes/avocado.src.js +11 -2
  822. package/themes/brand-dark.js +16 -0
  823. package/themes/brand-dark.js.map +1 -0
  824. package/themes/brand-dark.src.js +337 -0
  825. package/themes/brand-light.js +15 -0
  826. package/themes/brand-light.js.map +1 -0
  827. package/themes/brand-light.src.js +303 -0
  828. package/themes/dark-blue.js +9 -8
  829. package/themes/dark-blue.js.map +1 -1
  830. package/themes/dark-blue.src.js +11 -2
  831. package/themes/dark-green.js +9 -8
  832. package/themes/dark-green.js.map +1 -1
  833. package/themes/dark-green.src.js +11 -2
  834. package/themes/dark-unica.js +8 -7
  835. package/themes/dark-unica.js.map +1 -1
  836. package/themes/dark-unica.src.js +15 -4
  837. package/themes/gray.js +9 -8
  838. package/themes/gray.js.map +1 -1
  839. package/themes/gray.src.js +11 -2
  840. package/themes/grid-light.js +5 -4
  841. package/themes/grid-light.js.map +1 -1
  842. package/themes/grid-light.src.js +15 -4
  843. package/themes/grid.js +5 -5
  844. package/themes/grid.js.map +1 -1
  845. package/themes/grid.src.js +15 -4
  846. package/themes/high-contrast-dark.js +7 -7
  847. package/themes/high-contrast-dark.js.map +1 -1
  848. package/themes/high-contrast-dark.src.js +21 -12
  849. package/themes/high-contrast-light.js +3 -3
  850. package/themes/high-contrast-light.js.map +1 -1
  851. package/themes/high-contrast-light.src.js +21 -12
  852. package/themes/sand-signika.js +5 -5
  853. package/themes/sand-signika.js.map +1 -1
  854. package/themes/sand-signika.src.js +11 -2
  855. package/themes/skies.js +5 -5
  856. package/themes/skies.js.map +1 -1
  857. package/themes/skies.src.js +11 -2
  858. package/themes/sunset.js +3 -3
  859. package/themes/sunset.js.map +1 -1
  860. package/themes/sunset.src.js +11 -2
  861. package/es-modules/Maps/ProjectionDefinition.js +0 -9
  862. package/es-modules/Series/ColorMapComposition.js +0 -109
@@ -1,5 +1,5 @@
1
1
  /*
2
- Highstock JS v9.3.1 (2021-11-05)
2
+ Highstock JS v10.0.0 (2022-03-07)
3
3
 
4
4
  All technical indicators for Highcharts Stock
5
5
 
@@ -7,200 +7,202 @@
7
7
 
8
8
  License: www.highcharts.com/license
9
9
  */
10
- 'use strict';(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){f(v);f.Highcharts=v;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function v(f,d,g,l){f.hasOwnProperty(d)||(f[d]=l.apply(null,g))}f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],
11
- f["Core/Utilities.js"]],function(f,d){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return c(b,a)};return function(b,a){function m(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):
12
- (m.prototype=a.prototype,new m)}}(),k=d.seriesTypes.line,p=g.addEvent,r=g.error,h=g.extend,e=g.isArray,a=g.merge,b=g.pick,c=g.splat;g=function(m){function w(){var c=null!==m&&m.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}l(w,m);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()});m.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var c=this.name,a=[];c||((this.nameComponents||
13
- []).forEach(function(c,m){a.push(this.options.params[c]+b(this.nameSuffixes[m],""))},this),c=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return c};w.prototype.getValues=function(c,b){var a=b.period,m=c.xData;c=c.yData;var w=c.length,y=0,A=0,h=[],d=[],g=[],f=-1;if(!(m.length<a)){for(e(c[0])&&(f=b.index?b.index:0);y<a-1;)A+=0>f?c[y]:c[y][f],y++;for(b=y;b<w;b++){A+=0>f?c[b]:c[b][f];var r=[m[b],A/a];h.push(r);d.push(r[0]);g.push(r[1]);A-=0>f?c[b-y]:c[b-y][f]}return{values:h,
14
- xData:d,yData:g}}};w.prototype.init=function(c,b){var a=this;m.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis,function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!b)var m=p(a.chart,
15
- a.calculateOn.chart,function(){a.recalculateValues();m()})}else return r("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,m=this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]},e=[],w=!0;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var h=this.xAxis.min;var d=
16
- this.xAxis.max}b=this.cropData(m.xData,m.yData,h,d);for(h=0;h<b.xData.length;h++)e.push([b.xData[h]].concat(c(b.yData[h])));b=m.xData.indexOf(this.xData[0]);h=m.xData.indexOf(this.xData[this.xData.length-1]);-1===b&&h===m.xData.length-2&&e[0][0]===a[0].x&&e.shift();this.updateData(e)}else m.xData.length!==b-1&&m.xData.length!==b+1&&(w=!1,this.updateData(m.values));w&&(this.xData=m.xData,this.yData=m.yData,this.options.data=m.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,
17
- this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;m.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};w.defaultOptions=a(k.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(k);h(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,
18
- nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});d.registerSeriesType("sma",g);"";return g});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=
19
- e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.prototype.accumulatePeriodPoints=function(a,b,c){for(var m=0,e=0,A;e<a;)A=0>b?c[e]:c[e][b],m+=A,e++;return m};e.prototype.calculateEma=function(a,b,c,m,e,A,y){a=a[c-1];b=0>A?b[c-1]:b[c-1][A];m="undefined"===typeof e?y:k(b*
20
- m+e*(1-m));return[a,m]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,e=(a=a.yData)?a.length:0,A=2/(c+1),y=[],h=[],d=[],q=-1;if(!(e<c)){p(a[0])&&(q=b.index?b.index:0);b=this.accumulatePeriodPoints(c,q,a);for(b/=c;c<e+1;c++){var n=this.calculateEma(m,a,c,A,n,q,b);y.push(n);h.push(n[0]);d.push(n[1]);n=n[1]}return{values:y,xData:h,yData:d}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3,period:9}});return e}(l);f.registerSeriesType("ema",d);"";return d});v(f,"Stock/Indicators/AD/ADIndicator.js",
21
- [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.extend,r=d.merge;d=function(h){function e(){var a=
22
- null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.populateAverage=function(a,b,c,m,e){e=b[m][1];var w=b[m][2];b=b[m][3];c=c[m];return[a[m],b===e&&b===w||e===w?0:(2*b-w-e)/(e-w)*c]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,w=a.yData,A=b.volumeSeriesID,y=a.chart.get(A);b=y&&y.yData;var h=w?w.length:0,d=[],q=[],n=[];if(!(m.length<=c&&h&&4!==w[0].length)){if(y){for(A=c;A<h;A++)a=d.length,y=e.populateAverage(m,w,b,A,c),0<a&&(y[1]+=
23
- d[a-1][1]),d.push(y),q.push(y[0]),n.push(y[1]);return{values:d,xData:q,yData:n}}k("Series "+A+" not found! Check `volumeSeriesID`.",!0,a.chart)}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return e}(l);p(d.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",d);"";return d});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
24
- this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return b(c,a)};return function(c,a){function m(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(m.prototype=a.prototype,new m)}}();f=f.noop;var k=d.seriesTypes,p=k.sma;k=k.column;var r=g.extend,h=g.merge,e=g.correctFloat,a=g.isArray;g=function(b){function c(){var c=null!==b&&b.apply(this,
25
- arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}l(c,b);c.prototype.drawGraph=function(){var c=this.options,a=this.points,b=c.greaterBarColor;c=c.lowerBarColor;var e=a[0];if(!this.userOptions.color&&e)for(e.color=b,e=1;e<a.length;e++)a[e].color=a[e].y>a[e-1].y?b:a[e].y<a[e-1].y?c:a[e-1].color};c.prototype.getValues=function(c){var b=c.xData||[];c=c.yData||[];var m=c.length,y=[],h=[],d=[],q=0,n=0,B;if(!(34>=b.length)&&a(c[0])&&4===c[0].length){for(B=0;33>B;B++){var t=(c[B][1]+
26
- c[B][2])/2;29<=B&&(q=e(q+t));n=e(n+t)}for(B=33;B<m;B++){t=(c[B][1]+c[B][2])/2;q=e(q+t);n=e(n+t);t=q/5;var u=n/34;t=e(t-u);y.push([b[B],t]);h.push(b[B]);d.push(t);t=B+1-5;u=B+1-34;q=e(q-(c[t][1]+c[t][2])/2);n=e(n-(c[u][1]+c[u][2])/2)}return{values:y,xData:h,yData:d}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return c}(p);r(g.prototype,
27
- {nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:k.prototype.getColumnMetrics,crispCol:k.prototype.crispCol,translate:k.prototype.translate,drawPoints:k.prototype.drawPoints});d.registerSeriesType("ao",g);"";return g});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=f.seriesTypes.sma,l=d.defined,k=d.error,p=d.merge,r;(function(h){function e(){var c=this,a=c.linesApiNames,b=c.points,m=c.options,e=c.graph,
28
- w={options:{gapSize:m.gapSize}},h=[],A=c.getTranslatedLinesNames(c.pointValKey),d=b.length,f;A.forEach(function(c,a){for(h[a]=[];d--;)f=b[d],h[a].push({x:f.x,plotX:f.plotX,plotY:f[c],isNull:!l(f[c])});d=b.length});a.forEach(function(a,b){h[b]?(c.points=h[b],m[a]?c.options=p(m[a].styles,w):k('Error: "There is no '+a+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),c.graph=c["graph"+a],g.prototype.drawGraph.call(c),c["graph"+
29
- a]=c.graph):k('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});c.points=b;c.options=m;c.graph=e;g.prototype.drawGraph.call(c)}function a(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){b!==c&&a.push("plot"+b.charAt(0).toUpperCase()+b.slice(1))});return a}function b(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){a.push(c[b])});return a}function c(){var c=this,a=c.pointArrayMap,b=[],m;b=c.getTranslatedLinesNames();
30
- g.prototype.translate.apply(c,arguments);c.points.forEach(function(e){a.forEach(function(a,w){m=e[a];c.dataModify&&(m=c.dataModify.modifyValue(m));null!==m&&(e[b[w]]=c.yAxis.toPixels(m,!0))})})}var m=[],w=["bottomLine"],A=["top","bottom"];h.compose=function(h){if(-1===m.indexOf(h)){m.push(h);var d=h.prototype;d.linesApiNames=d.linesApiNames||w.slice();d.pointArrayMap=d.pointArrayMap||A.slice();d.pointValKey=d.pointValKey||"top";d.drawGraph=e;d.toYData=b;d.translate=c;d.getTranslatedLinesNames=a}return h}})(r||
31
- (r={}));return r});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){function l(a,b){var c=a[0],m=0,e;for(e=1;e<a.length;e++)if("max"===b&&a[e]>=c||"min"===b&&a[e]<=c)c=a[e],m=e;return m}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&
32
- (c[b]=a[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),p=d.seriesTypes.sma,r=g.extend,h=g.merge,e=g.pick;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}k(b,a);b.prototype.getValues=function(c,a){a=a.period;var b=c.xData,m=(c=c.yData)?c.length:0,h=[],d=[],f=[],q;for(q=a-1;q<m;q++){var n=c.slice(q-a+1,q+2);var B=
33
- l(n.map(function(c){return e(c[2],c)}),"min");n=l(n.map(function(c){return e(c[1],c)}),"max");n=n/a*100;B=B/a*100;b[q+1]&&(h.push([b[q+1],n,B]),d.push(b[q+1]),f.push([n,B]))}return{values:h,xData:d,yData:f}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},
34
- dataGrouping:{approximation:"averages"}});return b}(p);r(g.prototype,{linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(g);d.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||
35
- {__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.aroon,p=g.extend,r=g.merge,h=d.seriesTypes.aroon;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,
36
- c){var b=[],e=[],d=[];a=h.prototype.getValues.call(this,a,c);for(c=0;c<a.yData.length;c++){var y=a.yData[c][0];var z=a.yData[c][1];y-=z;b.push([a.xData[c],y]);e.push(a.xData[c]);d.push(y)}return{values:b,xData:e,yData:d}};a.defaultOptions=r(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);d.registerSeriesType("aroonoscillator",
37
- g);"";return g});v(f,"Stock/Indicators/ATR/ATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h,e){return Math.max(h[1]-h[2],"undefined"===typeof e?0:Math.abs(h[1]-e[3]),"undefined"===typeof e?0:Math.abs(h[2]-e[3]))}var l=this&&this.__extends||function(){var h=function(e,a){h=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 h(e,a)};return function(e,
38
- a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=1,h=0,d=0,z=[],f=[],q=[],n;var B=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(n=1;n<=m;n++)if(B.push([c[n],
39
- a[n]]),b<e){var t=b;var u=c[n-1],r=g(a[n-1],a[n-2]);t=[u,(h*(t-1)+r)/t];h=t[1];z.push(t);f.push(t[0]);q.push(t[1])}else b===e?(h=d/(n-1),z.push([c[n-1],h]),f.push(c[n-1]),q.push(h)):d+=g(a[n-1],a[n-2]),e++;return{values:z,xData:f,yData:q}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);f.registerSeriesType("atr",d);"";return d});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
40
- function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
41
- void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};a.prototype.getValues=function(a,c){var b=c.period,e=c.standardDeviation,h=a.xData,y=(a=a.yData)?a.length:0,z=[],f=[],q=[],n;if(!(h.length<b)){var B=r(a[0]);for(n=b;n<=y;n++){var t=h.slice(n-b,n);var u=a.slice(n-b,n);var g=d.seriesTypes.sma.prototype.getValues.call(this,
42
- {xData:t,yData:u},c);t=g.xData[0];g=g.yData[0];for(var l=0,k=u.length,p=0;p<k;p++){var x=(B?u[p][c.index]:u[p])-g;l+=x*x}x=Math.sqrt(l/(k-1));u=g+e*x;x=g-e*x;z.push([t,u,g,x]);f.push(t);q.push([u,g,x])}return{values:z,xData:f,yData:q}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
43
- marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(k);p(g.prototype,{pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(g);d.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h){return h.reduce(function(e,a){return e+a},0)}var l=this&&this.__extends||function(){var h=
44
- function(e,a){h=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 h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=
45
- function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=[],h=1,d=[],z=[],f=[];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(;h<b;){var q=a[h-1];e.push((q[1]+q[2]+q[3])/3);h++}for(h=b;h<=m;h++){q=a[h-1];q=(q[1]+q[2]+q[3])/3;var n=e.push(q);var B=e.slice(n-b);n=g(B)/b;var t,u=B.length,r=0;for(t=0;t<u;t++)r+=Math.abs(n-B[t]);B=r/b;q=(q-n)/(.015*B);d.push([c[h-1],q]);z.push(c[h-1]);f.push(q)}return{values:d,xData:z,yData:f}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);
46
- f.registerSeriesType("cci",d);"";return d});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,h){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return d(f,h)};return function(f,h){function e(){this.constructor=f}d(f,h);f.prototype=null===h?Object.create(h):(e.prototype=h.prototype,
47
- new e)}}(),l=f.seriesTypes.sma,k=d.merge;d=function(d){function f(){var h=null!==d&&d.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;h.volumeSeries=void 0;h.linkedParent=void 0;h.yData=void 0;h.nameBase="Chaikin Money Flow";return h}g(f,d);f.prototype.isValid=function(){var h=this.chart,e=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(e.params.volumeSeriesID));var b=a&&a.yData&&4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=
48
- e.params.period&&h.xData&&h.xData.length>=e.params.period&&b)};f.prototype.getValues=function(h,e){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,e.period)};f.prototype.getMoneyFlow=function(h,e,a,b){function c(a,c){var b=a[1],m=a[2];a=a[3];return null!==c&&null!==b&&null!==m&&null!==a&&b!==m?(a-m-(b-a))/(b-m)*c:(B=n,null)}var m=e.length,w=[],d=0,y=0,z=[],f=[],q=[],n,B=-1;if(0<b&&b<=m){for(n=0;n<b;n++)w[n]=c(e[n],a[n]),d+=a[n],y+=w[n];z.push(h[n-1]);f.push(n-B>=
49
- b&&0!==d?y/d:null);for(q.push([z[0],f[0]]);n<m;n++){w[n]=c(e[n],a[n]);d-=a[n-b];d+=a[n];y-=w[n-b];y+=w[n];var t=[h[n],n-B>=b?y/d:null];z.push(t[0]);f.push(t[1]);q.push([t[0],t[1]])}}return{values:q,xData:z,yData:f}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(l);f.registerSeriesType("cmf",d);"";return d});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
50
- function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){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,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.isArray,e=g.merge;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||
51
- this;c.options=void 0;return c}l(b,a);b.prototype.calculateDM=function(a,b,e){var c=a[b][1],m=a[b][2],w=a[b-1][1];a=a[b-1][2];return p(c-w>a-m?e?Math.max(c-w,0):0:e?0:Math.max(a-m,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,e){return p(a-a/e+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]-a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=
52
- function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=[],d=[],f=[];if(!(c.length<=b)&&h(a[0])&&4===a[0].length){var q=0,n=0,B=0,t;for(t=1;t<m;t++)if(t<=b){var u=this.calculateDM(a,t,!0);var g=this.calculateDM(a,t);var l=this.getTR(a[t],a[t-1]);q+=u;n+=g;B+=l;t===b&&(l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]))}else u=this.calculateDM(a,t,!0),g=this.calculateDM(a,t),l=this.getTR(a[t],a[t-1]),q=this.smoothValues(q,
53
- u,b),n=this.smoothValues(n,g,b),B=this.smoothValues(B,l,b),l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]);return{values:e,xData:d,yData:f}}};b.defaultOptions=e(k.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},
54
- plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return b}(k);r(g.prototype,{nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(g);d.registerSeriesType("dmi",g);"";return g});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
55
- d){function g(a,b,c,m,w){b=e(b[c][m],b[c]);return w?h(a-b):h(a+b)}var l=this&&this.__extends||function(){var a=function(b,c){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,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=f.seriesTypes.sma,p=d.extend,r=d.merge,h=d.correctFloat,e=d.pick;d=function(a){function b(){var c=
56
- null!==a&&a.apply(this,arguments)||this;c.options=void 0;c.data=void 0;c.points=void 0;return c}l(b,a);b.prototype.getValues=function(a,b){var c=b.period;b=b.index;var m=c+Math.floor(c/2+1),h=a.xData||[];a=a.yData||[];var d=a.length,f=[],q=[],n=[],B=0,t,u;if(!(h.length<=m)){for(t=0;t<c-1;t++)B=g(B,a,t,b);for(u=0;u<=d-m;u++){var l=u+c-1;t=u+m-1;B=g(B,a,l,b);l=e(a[t][b],a[t]);l-=B/c;B=g(B,a,u,b,!0);f.push([h[t],l]);q.push(h[t]);n.push(l)}return{values:f,xData:q,yData:n}}};b.defaultOptions=r(k.defaultOptions,
57
- {params:{index:0,period:21}});return b}(k);p(d.prototype,{nameBase:"DPO"});f.registerSeriesType("dpo",d);"";return d});v(f,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=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 m(){this.constructor=
58
- b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),l=f.seriesTypes,k=l.ad,p=l.ema,r=d.correctFloat;l=d.extend;var h=d.merge,e=d.error;d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.getValues=function(a,b){var c=b.periods,m=b.period,h=[],d=[],f=[],q;if(2!==c.length||c[1]<=c[0])e('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
59
- else if(b=k.prototype.getValues.call(this,a,{volumeSeriesID:b.volumeSeriesID,period:m}))if(a=p.prototype.getValues.call(this,b,{period:c[0]}),b=p.prototype.getValues.call(this,b,{period:c[1]}),a&&b){c=c[1]-c[0];for(q=0;q<b.yData.length;q++)m=r(a.yData[q+c]-b.yData[q]),h.push([b.xData[q],m]),d.push(b.xData[q]),f.push(m);return{values:h,xData:d,yData:f}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return b}(p);l(d.prototype,{nameBase:"Chaikin Osc",
60
- nameComponents:["periods"]});f.registerSeriesType("chaikin",d);"";return d});v(f,"Stock/Indicators/CMO/CMOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(h,e){d=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 d(h,e)};return function(h,e){function a(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):
61
- (a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.isNumber,p=d.merge;d=function(d){function h(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,d);h.prototype.getValues=function(e,a){var b=a.period,c=e.xData,m=e.yData;e=m?m.length:0;var d=[],h=[],f=[],z,g=a.index;if(!(c.length<b)){k(m[0])?a=m:(g=Math.min(g,m[0].length-1),a=m.map(function(a){return a[g]}));var q=0,n=m=0;for(z=b;0<z;z--)a[z]>a[z-1]?m+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-
62
- 1]-a[z]);q=0<m+n?100*(m-n)/(m+n):0;h.push(c[b]);f.push(q);d.push([c[b],q]);for(z=b+1;z<e;z++)q=Math.abs(a[z-b-1]-a[z-b]),a[z]>a[z-1]?m+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-1]-a[z]),a[z-b]>a[z-b-1]?m-=q:n-=q,q=0<m+n?100*(m-n)/(m+n):0,h.push(c[z]),f.push(q),d.push([c[z],q]);return{values:d,xData:h,yData:f}}};h.defaultOptions=p(l.defaultOptions,{params:{period:20,index:3}});return h}(l);f.registerSeriesType("cmo",d);"";return d});v(f,"Stock/Indicators/DEMA/DEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],
63
- f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,
64
- arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getEMA=function(a,b,c,m,e,d){return l.prototype.calculateEma(d||[],a,"undefined"===typeof e?1:e,this.EMApercent,b,"undefined"===typeof m?-1:m,c)};e.prototype.getValues=function(a,b){var c=b.period,m=2*c,e=a.xData,d=(a=a.yData)?a.length:0,h=-1,f=[],g=[],q=[],n=0,B=[],t;this.EMApercent=2/(c+1);if(!(d<2*c-1)){p(a[0])&&(h=b.index?b.index:0);b=l.prototype.accumulatePeriodPoints(c,h,a);var u=
65
- b/c;b=0;for(t=c;t<d+2;t++){t<d+1&&(n=this.getEMA(a,r,u,h,t)[1],B.push(n));var r=n;if(t<m)b+=n;else{t===m&&(u=b/c);n=B[t-c-1];var J=this.getEMA([n],J,u)[1];var x=[e[t-2],k(2*n-J)];f.push(x);g.push(x[0]);q.push(x[1])}}return{values:f,xData:g,yData:q}}};e.defaultOptions=r(l.defaultOptions);return e}(l);f.registerSeriesType("dema",d);"";return d});v(f,"Stock/Indicators/TEMA/TEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=
66
- function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=
67
- void 0;return a}g(e,d);e.prototype.getEMA=function(a,b,c,m,e,d){return l.prototype.calculateEma(d||[],a,"undefined"===typeof e?1:e,this.EMApercent,b,"undefined"===typeof m?-1:m,c)};e.prototype.getTemaPoint=function(a,b,c,m){return[a[m-3],k(3*c.level1-3*c.level2+c.level3)]};e.prototype.getValues=function(a,b){var c=b.period,m=2*c,e=3*c,d=a.xData,h=(a=a.yData)?a.length:0,f=-1,g=[],q=[],n=[],B=[],t=[],u,r,k={};this.EMApercent=2/(c+1);if(!(h<3*c-2)){p(a[0])&&(f=b.index?b.index:0);b=l.prototype.accumulatePeriodPoints(c,
68
- f,a);var x=b/c;b=0;for(u=c;u<h+3;u++){u<h+1&&(k.level1=this.getEMA(a,F,x,f,u)[1],B.push(k.level1));var F=k.level1;if(u<m)b+=k.level1;else{u===m&&(x=b/c,b=0);k.level1=B[u-c-1];k.level2=this.getEMA([k.level1],P,x)[1];t.push(k.level2);var P=k.level2;if(u<e)b+=k.level2;else{u===e&&(x=b/c);u===h+1&&(k.level1=B[u-c-1],k.level2=this.getEMA([k.level1],P,x)[1],t.push(k.level2));k.level1=B[u-c-2];k.level2=t[u-2*c-1];k.level3=this.getEMA([k.level2],k.prevLevel3,x)[1];if(r=this.getTemaPoint(d,e,k,u))g.push(r),
69
- q.push(r[0]),n.push(r[1]);k.prevLevel3=k.level3}}}return{values:g,xData:q,yData:n}}};e.defaultOptions=r(l.defaultOptions);return e}(l);f.registerSeriesType("tema",d);"";return d});v(f,"Stock/Indicators/TRIX/TRIXIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(h,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=
70
- b[c])};return d(h,e)};return function(h,e){function a(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.tema,k=d.correctFloat,p=d.merge;d=function(d){function h(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,d);h.prototype.getTemaPoint=function(e,a,b,c){if(c>a)return[e[c-3],0!==b.prevLevel3?k(b.level3-b.prevLevel3)/b.prevLevel3*100:null]};h.defaultOptions=p(l.defaultOptions);
71
- return h}(l);f.registerSeriesType("trix",d);"";return d});v(f,"Stock/Indicators/APO/APOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=
72
- a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.extend,p=d.merge,r=d.error;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.periods,m=b.index;b=[];var e=[],d=[],h;if(2!==c.length||c[1]<=c[0])r('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var f=l.prototype.getValues.call(this,a,{index:m,period:c[0]});a=l.prototype.getValues.call(this,
73
- a,{index:m,period:c[1]});if(f&&a){c=c[1]-c[0];for(h=0;h<a.yData.length;h++)m=f.yData[h+c]-a.yData[h],b.push([a.xData[h],m]),e.push(a.xData[h]),d.push(m);return{values:b,xData:e,yData:d}}}};e.defaultOptions=p(l.defaultOptions,{params:{period:void 0,periods:[10,20]}});return e}(l);k(d.prototype,{nameBase:"APO",nameComponents:["periods"]});f.registerSeriesType("apo",d);"";return d});v(f,"Stock/Indicators/IKH/IKHIndicator.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],
74
- f["Core/Utilities.js"]],function(f,d,g,l){function k(a){return a.reduce(function(a,b){return Math.max(a,b[1])},-Infinity)}function p(a){return a.reduce(function(a,b){return Math.min(a,b[2])},Infinity)}function r(a){return{high:k(a),low:p(a)}}function h(a){var b,c,m,e,d;a.series.forEach(function(a){if(a.xData)for(e=a.xData,d=c=a.xIncrement?1:e.length-1;0<d;d--)if(m=e[d]-e[d-1],"undefined"===typeof b||m<b)b=m});return b}function e(a,b,c,m){if(a&&b&&c&&m){var e=b.plotX-a.plotX;b=b.plotY-a.plotY;var d=
75
- m.plotX-c.plotX;m=m.plotY-c.plotY;var h=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*h+e*w)/(-d*b+e*m);d=(d*w-m*h)/(-d*b+e*m);if(0<=c&&1>=c&&0<=d&&1>=d)return{plotX:a.plotX+d*e,plotY:a.plotY+d*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=z(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;g.seriesTypes.sma.prototype.drawGraph.call(b)}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
76
- 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 m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),c=f.parse,m=g.seriesTypes.sma,w=l.defined;f=l.extend;var A=l.isArray,y=l.isNumber,z=l.merge,S=l.objectEach;d.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,m){a.push(d.approximations.average(c));b=!b&&"undefined"===
77
- typeof a[m]});return b?void 0:a};l=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.graphCollection=void 0;a.graphsenkouSpan=void 0;a.ikhMap=void 0;a.nextPoints=void 0;return a}b(f,d);f.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=z({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,
78
- fill:c(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:c(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:c(this.color).setOpacity(.2).get()}}},this.options)};f.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};f.prototype.translate=function(){var a=this;g.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var m=b[c];y(m)&&(b["plot"+c]=a.yAxis.toPixels(m,
79
- !0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};f.prototype.drawGraph=function(){var b=this,c=b.points,m=c.length,d=b.options,h=b.graph,f=b.color,y={options:{gapSize:d.gapSize}},A=b.pointArrayMap.length,q=[[],[],[],[],[],[]],n={tenkanLine:q[0],kijunLine:q[1],chikouLine:q[2],senkouSpanA:q[3],senkouSpanB:q[4],senkouSpan:q[5]},l=[],k=b.options.senkouSpan,r=k.color||k.styles.fill,p=k.negativeColor,x=[[],[]],v=[[],[]],Q=0,K,R,N;for(b.ikhMap=n;m--;){var D=c[m];for(K=0;K<A;K++)k=
80
- b.pointArrayMap[K],w(D[k])&&q[K].push({plotX:D.plotX,plotY:D["plot"+k],isNull:!1});p&&m!==c.length-1&&(k=n.senkouSpanB.length-1,D=e(n.senkouSpanA[k-1],n.senkouSpanA[k],n.senkouSpanB[k-1],n.senkouSpanB[k]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(n.senkouSpanA.splice(k,0,K),n.senkouSpanB.splice(k,0,K),l.push(k)))}S(n,function(a,c){d[c]&&"senkouSpan"!==c&&(b.points=q[Q],b.options=z(d[c].styles,y),b.graph=b["graph"+c],b.fillGraph=!1,b.color=f,g.seriesTypes.sma.prototype.drawGraph.call(b),
81
- b["graph"+c]=b.graph);Q++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(p&&n.senkouSpanA[0]&&n.senkouSpanB[0]){l.unshift(0);l.push(n.senkouSpanA.length-1);for(A=0;A<l.length-1;A++){k=l[A];D=l[A+1];m=n.senkouSpanB.slice(k,D+1);k=n.senkouSpanA.slice(k,D+1);if(1<=Math.floor(m.length/2))if(D=Math.floor(m.length/2),m[D].plotY===k[D].plotY){for(N=K=D=0;N<m.length;N++)D+=m[N].plotY,K+=k[N].plotY;D=D>K?0:1}else D=m[D].plotY>k[D].plotY?0:1;
82
- else D=m[0].plotY>k[0].plotY?0:1;x[D]=x[D].concat(m);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,m){x[m].length&&v[m].length&&(R=0===m?r:p,a({indicator:b,points:x[m],nextPoints:v[m],color:R,options:d,gap:y,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:n.senkouSpanB,nextPoints:n.senkouSpanA,color:r,options:d,gap:y,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
83
- c;b.options=d;b.graph=h;b.color=f};f.prototype.getGraphPath=function(a){var b=[],c;a=a||this.points;if(this.fillGraph&&this.nextPoints){if((c=g.seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&c.length){c[0][0]="L";b=g.seriesTypes.sma.prototype.getGraphPath.call(this,a);c=c.slice(0,b.length);for(var m=c.length-1;0<=m;m--)b.push(c[m])}}else b=g.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};f.prototype.getValues=function(a,b){var c=b.period,m=b.periodTenkan;
84
- b=b.periodSenkouSpanB;var e=a.xData,d=a.yData,f=d&&d.length||0;a=h(a.xAxis);var w=[],y=[],n;if(!(e.length<=c)&&A(d[0])&&4===d[0].length){var q=e[0]-c*a;for(n=0;n<c;n++)y.push(q+n*a);for(n=0;n<f;n++){if(n>=m){var z=d.slice(n-m,n);z=r(z);z=(z.high+z.low)/2}if(n>=c){var g=d.slice(n-c,n);g=r(g);g=(g.high+g.low)/2;var t=(z+g)/2}if(n>=b){var k=d.slice(n-b,n);k=r(k);k=(k.high+k.low)/2}q=d[n][3];var l=e[n];"undefined"===typeof w[n]&&(w[n]=[]);"undefined"===typeof w[n+c]&&(w[n+c]=[]);w[n+c][0]=z;w[n+c][1]=
85
- g;w[n+c][2]=void 0;w[n][2]=q;n<=c&&(w[n+c][3]=void 0,w[n+c][4]=void 0);"undefined"===typeof w[n+2*c]&&(w[n+2*c]=[]);w[n+2*c][3]=t;w[n+2*c][4]=k;y.push(l)}for(n=1;n<=c;n++)y.push(l+n*a);return{values:w,xData:y,yData:w}}};f.defaultOptions=z(m.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>TENKAN SEN: {point.tenkanSen:.3f}<br/>KIJUN SEN: {point.kijunSen:.3f}<br/>CHIKOU SPAN: {point.chikouSpan:.3f}<br/>SENKOU SPAN A: {point.senkouSpanA:.3f}<br/>SENKOU SPAN B: {point.senkouSpanB:.3f}<br/>'},
86
- tenkanLine:{styles:{lineWidth:1,lineColor:void 0}},kijunLine:{styles:{lineWidth:1,lineColor:void 0}},chikouLine:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanA:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanB:{styles:{lineWidth:1,lineColor:void 0}},senkouSpan:{styles:{fill:"rgba(255, 0, 0, 0.5)"}},dataGrouping:{approximation:"ichimoku-averages"}});return f}(m);f(l.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB",
87
- "period","periodTenkan"]});g.registerSeriesType("ikh",l);"";return l});v(f,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=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 e(a,b)};return function(a,
88
- b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};
89
- a.prototype.getValues=function(a,c){var b=c.period,e=c.periodATR,h=c.multiplierATR,f=a.yData;f=f?f.length:0;var z=[];c=d.seriesTypes.ema.prototype.getValues(a,{period:b,index:c.index});var g=d.seriesTypes.atr.prototype.getValues(a,{period:e}),q=[],n=[],k;if(!(f<b)){for(k=b;k<=f;k++){var t=c.values[k-b];var l=g.values[k-e];var r=t[0];a=p(t[1]+h*l[1]);l=p(t[1]-h*l[1]);t=t[1];z.push([r,a,t,l]);q.push(r);n.push([a,t,l])}return{values:z,xData:q,yData:n}}};a.defaultOptions=h(k.defaultOptions,{params:{index:0,
90
- period:20,periodATR:10,multiplierATR:2},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Upper Channel: {point.top}<br/>EMA({series.options.params.period}): {point.middle}<br/>Lower Channel: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"},lineWidth:1});return a}(k);r(g.prototype,{nameBase:"Keltner Channels",nameComponents:["period",
91
- "periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);d.registerSeriesType("keltnerchannels",g);"";return g});v(f,"Stock/Indicators/Klinger/KlingerIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
92
- 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 m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes,p=k.sma,r=k.ema,h=g.correctFloat,e=g.error;k=g.extend;var a=g.isArray,b=g.merge;g=function(c){function m(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}l(m,c);m.prototype.calculateTrend=
93
- function(a,b){return a[b][1]+a[b][2]+a[b][3]>a[b-1][1]+a[b-1][2]+a[b-1][3]?1:-1};m.prototype.isValidData=function(b){var c=this.chart,m=this.options,d=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(m.params.volumeSeriesID)))||e("Series "+m.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d.chart);return!(![d,c].every(function(a){return a&&a.xData&&a.xData.length>=m.params.slowAvgPeriod})||!b)};m.prototype.getCM=function(a,b,c,m,e){return h(b+(c===
94
- m?a:e))};m.prototype.getDM=function(a,b){return h(a-b)};m.prototype.getVolumeForce=function(a){var b=[],c=1;var m=0;var e=a[0][1]-a[0][2];var d=0;for(c;c<a.length;c++){var h=this.calculateTrend(a,c);var f=this.getDM(a[c][1],a[c][2]);m=this.getCM(m,f,h,d,e);d=this.volumeSeries.yData[c]*h*Math.abs(2*(f/m-1))*100;b.push([d]);d=h;e=f}return b};m.prototype.getEMA=function(a,b,c,m,e,d,h){return r.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,m,b,"undefined"===typeof e?-1:e,c)};m.prototype.getSMA=
95
- function(a,b,c){return r.prototype.accumulatePeriodPoints(a,b,c)/a};m.prototype.getValues=function(a,b){var c=[],m=a.xData;a=a.yData;var e=[],d=[],f=[],w,g=0,k=0,l=void 0,A=void 0,r=null;if(this.isValidData(a[0])){var p=this.getVolumeForce(a),x=this.getSMA(b.fastAvgPeriod,0,p),C=this.getSMA(b.slowAvgPeriod,0,p),M=2/(b.fastAvgPeriod+1),v=2/(b.slowAvgPeriod+1);for(g;g<a.length;g++)g>=b.fastAvgPeriod&&(l=k=this.getEMA(p,l,x,M,0,g,m)[1]),g>=b.slowAvgPeriod&&(A=w=this.getEMA(p,A,C,v,0,g,m)[1],w=h(k-w),
96
- f.push(w),f.length>=b.signalPeriod&&(r=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([m[g],w,r]),e.push(m[g]),d.push([w,r]));return{values:c,xData:e,yData:d}}};m.defaultOptions=b(p.defaultOptions,{params:{fastAvgPeriod:34,slowAvgPeriod:55,signalPeriod:13,volumeSeriesID:"volume"},signalLine:{styles:{lineWidth:1,lineColor:"#ff0000"}},dataGrouping:{approximation:"averages"},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">Klinger</span>: {point.y}<br/><span style="color: {point.series.options.signalLine.styles.lineColor}">Signal</span>: {point.signal}<br/>'}});
97
- return m}(p);k(g.prototype,{linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(g);d.registerSeriesType("klinger",g);"";return g});v(f,"Stock/Indicators/MACD/MACDIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof
98
- 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,m)};return function(b,m){function c(){this.constructor=b}a(b,m);b.prototype=null===m?Object.create(m):(c.prototype=m.prototype,new c)}}(),k=f.noop,p=d.seriesTypes.sma,r=g.extend,h=g.correctFloat,e=g.defined,a=g.merge;g=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd=void 0;a.graphsignal=
99
- void 0;a.macdZones=void 0;a.signalZones=void 0;return a}l(c,b);c.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options&&(this.options=a({signalLine:{styles:{lineColor:this.color}},macdLine:{styles:{color:this.color}}},this.options),this.macdZones={zones:this.options.macdLine.zones,startIndex:0},this.signalZones={zones:this.macdZones.zones.concat(this.options.signalLine.zones),startIndex:this.macdZones.zones.length},this.resetZones=!0)};c.prototype.toYData=function(a){return[a.y,
100
- a.signal,a.MACD]};c.prototype.translate=function(){var a=this,b=["plotSignal","plotMACD"];f.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(m,e){null!==m&&(c[b[e]]=a.yAxis.toPixels(m,!0))})})};c.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();d.seriesTypes.sma.prototype.destroy.apply(this,arguments)};c.prototype.drawGraph=
101
- function(){for(var b=this,c=b.points,h=c.length,f=b.options,g=b.zones,k={options:{gapSize:f.gapSize}},q=[[],[]],n;h--;)n=c[h],e(n.plotMACD)&&q[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!e(n.plotMACD)}),e(n.plotSignal)&&q[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!e(n.plotMACD)});["macd","signal"].forEach(function(c,m){b.points=q[m];b.options=a(f[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;d.seriesTypes.sma.prototype.drawGraph.call(b);
102
- b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=g;b.currentLineZone=null};c.prototype.getZonesGraphs=function(a){var c=b.prototype.getZonesGraphs.call(this,a),m=c;this.currentLineZone&&(m=c.splice(this[this.currentLineZone].startIndex+1),m.length?m.splice(0,0,a[0]):m=[a[0]]);return m};c.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;d.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide();
103
- this.zones=a};c.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,m=0,f=[],g=[],w=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var n=d.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var k=d.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});n=n.values;k=k.values;for(a=0;a<=n.length;a++)e(k[a])&&e(k[a][1])&&e(n[a+c])&&e(n[a+c][0])&&f.push([n[a+c][0],0,null,n[a+c][1]-k[a][1]]);for(a=0;a<f.length;a++)g.push(f[a][0]),w.push([0,
104
- null,f[a][3]]);b=d.seriesTypes.ema.prototype.getValues({xData:g,yData:w},{period:b.signalPeriod,index:2});b=b.values;for(a=0;a<f.length;a++)f[a][0]>=b[0][0]&&(f[a][2]=b[m][1],w[a]=[0,b[m][1],f[a][3]],null===f[a][3]?(f[a][1]=0,w[a][0]=0):(f[a][1]=h(f[a][3]-b[m][1]),w[a][0]=h(f[a][3]-b[m][1])),m++);return{values:f,xData:g,yData:w}}};c.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],
105
- styles:{lineWidth:1,lineColor:void 0}},threshold:0,groupPadding:.1,pointPadding:.1,crisp:!1,states:{hover:{halo:{size:0}}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0});return c}(p);r(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
106
- "signal","MACD"],pointValKey:"y",markerAttribs:k,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});d.registerSeriesType("macd",g);"";return g});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(a){return a.reduce(function(a,b){return a+b})}function l(a){return(a[1]+a[2]+a[3])/3}var k=this&&this.__extends||
107
- function(){var a=function(b,e){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,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),p=f.seriesTypes.sma,r=d.extend,h=d.merge,e=d.error,a=d.isArray;d=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
108
- void 0;return a}k(c,b);c.prototype.getValues=function(b,c){var m=c.period,d=b.xData,h=b.yData,f=h?h.length:0,q=c.decimals,n=1,w=b.chart.get(c.volumeSeriesID),k=w&&w.yData,u=[],r=[],p=[],x=[],F=[];if(!w)e("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(d.length<=m)&&a(h[0])&&4===h[0].length&&k){for(b=l(h[n]);n<m+1;)c=b,b=l(h[n]),c=b>=c,w=b*k[n],x.push(c?w:0),F.push(c?0:w),n++;for(m=n-1;m<f;m++)m>n-1&&(x.shift(),F.shift(),c=b,b=l(h[m]),c=b>c,w=b*k[m],x.push(c?
109
- w:0),F.push(c?0:w)),c=g(F),w=g(x),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(q)),u.push([d[m],c]),r.push(d[m]),p.push(c);return{values:u,xData:r,yData:p}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return c}(p);r(d.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",d);"";return d});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
110
- function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
111
- return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.period;b=b.index;var e=a.xData,d=(a=a.yData)?a.length:0,h=[],f=[],g=[],k;if(!(e.length<=c)&&p(a[0])){for(k=c+1;k<d;k++){var q=[e[k-1],a[k-1][b]-a[k-c-1][b]];h.push(q);f.push(q[0]);g.push(q[1])}q=[e[k-1],a[k-1][b]-a[k-c-1][b]];h.push(q);f.push(q[0]);g.push(q[1]);return{values:h,xData:f,yData:g}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3}});return e}(l);k(d.prototype,{nameBase:"Momentum"});f.registerSeriesType("momentum",d);"";
112
- return d});v(f,"Stock/Indicators/NATR/NATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,h){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return d(f,h)};return function(f,h){function e(){this.constructor=f}d(f,h);f.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}(),l=f.seriesTypes.atr,
113
- k=d.merge;d=function(d){function f(){var f=null!==d&&d.apply(this,arguments)||this;f.data=void 0;f.points=void 0;f.options=void 0;return f}g(f,d);f.prototype.getValues=function(d,e){var a=l.prototype.getValues.apply(this,arguments),b=a.values.length,c=e.period-1,m=d.yData,f=0;if(a){for(;f<b;f++)a.yData[f]=a.values[f][1]/m[c][3]*100,a.values[f][1]=a.yData[f],c++;return a}};f.defaultOptions=k(l.defaultOptions,{tooltip:{valueSuffix:"%"}});return f}(l);f.registerSeriesType("natr",d);"";return d});v(f,
114
- "Stock/Indicators/OBV/OBVIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var e=function(a,b){e=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 e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=f.seriesTypes.sma,k=d.isNumber,
115
- p=d.error,r=d.extend,h=d.merge;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}g(a,e);a.prototype.getValues=function(a,c){var b=a.chart.get(c.volumeSeriesID),e=a.xData,d=a.yData,f=[],h=[],g=[],q=!k(d[0]),n=1,l=0;if(b){b=b.yData;a=[e[0],l];var t=q?d[0][3]:d[0];f.push(a);h.push(e[0]);g.push(a[1]);for(n;n<d.length;n++)c=q?d[n][3]:d[n],l=c>t?l+b[n]:c===t?l:l-b[n],a=[e[n],l],t=c,f.push(a),h.push(e[n]),g.push(a[1]);return{values:f,
116
- xData:h,yData:g}}p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=h(l.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(l);r(d.prototype,{nameComponents:void 0});f.registerSeriesType("obv",d);"";return d});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function d(d,g){var k=d.series.pointArrayMap,l=k.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[g].call(d);l--;)g=
117
- "dataLabel"+k[l],d[g]&&d[g].element&&d[g].destroy(),d[g]=null}var g=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var e in f)f.hasOwnProperty(e)&&(d[e]=f[e])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(f){function k(){var d=null!==f&&f.apply(this,arguments)||this;d.P=
118
- void 0;d.pivotLine=void 0;d.series=void 0;return d}g(k,f);k.prototype.destroyElements=function(){d(this,"destroyElements")};k.prototype.destroy=function(){d(this,"destroyElements")};return k}(f.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[f["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
119
- {__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,new e)}}(),k=d.seriesTypes.sma,p=g.merge,r=g.extend,h=g.defined,e=g.isArray;g=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.endPoint=void 0;b.plotEndPoint=void 0;return b}
120
- l(b,a);b.prototype.toYData=function(a){return[a.P]};b.prototype.translate=function(){var a=this;d.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){h(b[c])&&(b["plot"+c]=a.yAxis.toPixels(b[c],!0))})});a.plotEndPoint=a.xAxis.toPixels(a.endPoint,!0)};b.prototype.getGraphPath=function(a){for(var b=this,c=a.length,e=[[],[],[],[],[],[],[],[],[]],f=[],g=b.plotEndPoint,k=b.pointArrayMap.length,q,n,l;c--;){n=a[c];for(l=0;l<k;l++)q=b.pointArrayMap[l],
121
- h(n[q])&&e[l].push({plotX:n.plotX,plotY:n["plot"+q],isNull:!1},{plotX:g,plotY:n["plot"+q],isNull:!1},{plotX:g,plotY:null,isNull:!0});g=n.plotX}e.forEach(function(a){f=f.concat(d.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return f};b.prototype.drawDataLabels=function(){var a=this,b=a.pointArrayMap,e,f,h;if(a.options.dataLabels.enabled){var g=a.points.length;b.concat([!1]).forEach(function(c,m){for(h=g;h--;)f=a.points[h],c?(f.y=f[c],f.pivotLine=c,f.plotY=f["plot"+c],e=f["dataLabel"+c],m&&(f["dataLabel"+
122
- b[m-1]]=f.dataLabel),f.dataLabels||(f.dataLabels=[]),f.dataLabels[0]=f.dataLabel=e=e&&e.element?e:null):f["dataLabel"+b[m-1]]=f.dataLabel;d.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};b.prototype.getValues=function(a,b){var c=b.period,d=a.xData,m=(a=a.yData)?a.length:0;b=this[b.algorithm+"Placement"];var f=[],h=[],g=[],n;if(!(d.length<c)&&e(a[0])&&4===a[0].length){for(n=c+1;n<=m+c;n+=c){var k=d.slice(n-c-1,n);var l=a.slice(n-c-1,n);var u=k.length;var r=k[u-1];l=this.getPivotAndHLC(l);
123
- l=b(l);l=f.push([r].concat(l));h.push(r);g.push(f[l-1].slice(1))}this.endPoint=k[0]+(r-k[0])/u*c;return{values:f,xData:h,yData:g}}};b.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,e=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+e)/3,b,c,e]};b.prototype.standardPlacement=function(a){var b=a[1]-a[2];return[null,null,a[0]+b,2*a[0]-a[2],a[0],2*a[0]-a[1],a[0]-b,null,null]};b.prototype.camarillaPlacement=function(a){var b=a[1]-a[2];return[a[3]+
124
- 1.5*b,a[3]+1.25*b,a[3]+1.1666*b,a[3]+1.0833*b,a[0],a[3]-1.0833*b,a[3]-1.1666*b,a[3]-1.25*b,a[3]-1.5*b]};b.prototype.fibonacciPlacement=function(a){var b=a[1]-a[2];return[null,a[0]+b,a[0]+.618*b,a[0]+.382*b,a[0],a[0]-.382*b,a[0]-.618*b,a[0]-b,null]};b.defaultOptions=p(k.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}});return b}(k);r(g.prototype,
125
- {nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:f});d.registerSeriesType("pivotpoints",g);"";return g});v(f,"Stock/Indicators/PPO/PPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var e=function(a,b){e=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 e(a,b)};
126
- return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.extend,r=d.merge,h=d.error;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(a,e);a.prototype.getValues=function(a,c){var b=c.periods,e=c.index;c=[];var d=[],f=[],g;if(2!==b.length||b[1]<=b[0])h('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');
127
- else{var r=l.prototype.getValues.call(this,a,{index:e,period:b[0]});a=l.prototype.getValues.call(this,a,{index:e,period:b[1]});if(r&&a){b=b[1]-b[0];for(g=0;g<a.yData.length;g++)e=k((r.yData[g+b]-a.yData[g])/a.yData[g]*100),c.push([a.xData[g],e]),d.push(a.xData[g]),f.push(e);return{values:c,xData:d,yData:f}}}};a.defaultOptions=r(l.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(l);p(d.prototype,{nameBase:"PPO",nameComponents:["periods"]});f.registerSeriesType("ppo",d);"";return d});
128
- v(f,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(f,d,g){return f.reduce(function(f,k){return[Math.min(f[0],k[d]),Math.max(f[1],k[g])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}});v(f,"Stock/Indicators/PC/PCIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Color/Palettes.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g,l,k){var p=this&&this.__extends||function(){var a=function(b,
129
- 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,new e)}}(),r=l.seriesTypes.sma,h=k.merge;k=k.extend;var e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(b,a);b.prototype.getValues=
130
- function(a,b){b=b.period;var c=a.xData,e=(a=a.yData)?a.length:0,d=[],m=[],h=[],g;if(!(e<b)){for(g=b;g<=e;g++){var n=c[g-1];var k=a.slice(g-b,g);var l=f.getArrayExtremes(k,2,1);k=l[1];var u=l[0];l=(k+u)/2;d.push([n,k,l,u]);m.push(n);h.push([k,l,u])}return{values:d,xData:m,yData:h}}};b.defaultOptions=h(r.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:g.colors[2],lineWidth:1}},bottomLine:{styles:{lineColor:g.colors[8],lineWidth:1}},dataGrouping:{approximation:"averages"}});
131
- return b}(r);k(e.prototype,{nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});d.compose(e);l.registerSeriesType("pc",e);"";return e});v(f,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
132
- c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.init=function(){f.seriesTypes.sma.prototype.init.apply(this,arguments);
133
- this.options=r({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};e.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};e.prototype.translate=function(){var a=this,b=["plotTop","plotMiddle","plotBottom"];f.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(c){[c.top,c.middle,c.bottom].forEach(function(e,d){null!==e&&(c[b[d]]=a.yAxis.toPixels(e,!0))})})};e.prototype.drawGraph=function(){for(var a=this,b=a.points,c=b.length,
134
- e=a.options,d=a.graph,h={options:{gapSize:e.gapSize}},g=[[],[]],k;c--;)k=b[c],g[0].push({plotX:k.plotX,plotY:k.plotTop,isNull:k.isNull}),g[1].push({plotX:k.plotX,plotY:k.plotBottom,isNull:k.isNull});["topLine","bottomLine"].forEach(function(b,c){a.points=g[c];a.options=r(e[b].styles,h);a.graph=a["graph"+b];f.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=b;a.options=e;a.graph=d;f.seriesTypes.sma.prototype.drawGraph.call(a)};e.prototype.getValues=function(a,b){var c=b.period,
135
- e=b.topBand,d=b.bottomBand,h=a.xData,g=(a=a.yData)?a.length:0,k=[],l=[],q=[],n;if(!(h.length<c)&&p(a[0])&&4===a[0].length){for(n=c;n<=g;n++){var r=h.slice(n-c,n);var t=a.slice(n-c,n);t=f.seriesTypes.sma.prototype.getValues.call(this,{xData:r,yData:t},b);r=t.xData[0];t=t.yData[0];var u=t*(1+e);var O=t*(1-d);k.push([r,u,t,O]);l.push(r);q.push([u,t,O])}return{values:k,xData:l,yData:q}}};e.defaultOptions=r(l.defaultOptions,{marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
136
- params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return e}(l);k(d.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",d);"";return d});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"],
137
- f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=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 d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||
138
- this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=e.xData;e=e.yData;var c=e[0][1],d=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=e[0][2],k=a.decimals,l=a.index,q=[],n=[],r=[],t=1,u;if(!(l>=e.length)){for(u=0;u<l;u++)c=Math.max(e[u][1],c),g=Math.min(e[u][2],parseFloat(g.toFixed(k)));var p=e[u][1]>g?1:-1;a=a.initialAccelerationFactor;var J=a*(c-g);q.push([b[l],g]);n.push(b[l]);r.push(parseFloat(g.toFixed(k)));for(u=
139
- l+1;u<e.length;u++){l=e[u-1][2];var x=e[u-2][2];var F=e[u-1][1];var v=e[u-2][1];var C=e[u][1];var M=e[u][2];null!==x&&null!==v&&null!==l&&null!==F&&null!==C&&null!==M&&(g=p===t?1===p?g+J<Math.min(x,l)?g+J:Math.min(x,l):g+J>Math.max(v,F)?g+J:Math.max(v,F):c,l=1===p?C>c?C:c:M<c?M:c,C=1===t&&M>g||-1===t&&C>g?1:-1,t=C,J=l,M=f,x=d,F=h,a=t===p?1===t&&J>c?a===x?x:parseFloat((a+M).toFixed(2)):-1===t&&J<c?a===x?x:parseFloat((a+M).toFixed(2)):a:F,c=l-g,J=a*c,q.push([b[u],parseFloat(g.toFixed(k))]),n.push(b[u]),
140
- r.push(parseFloat(g.toFixed(k))),t=p,p=C,c=l)}return{values:q,xData:n,yData:r}}};f.defaultOptions=k(l.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}});return f}(l);d(p.prototype,{nameComponents:void 0});f.registerSeriesType("psar",p);"";return p});v(f,"Stock/Indicators/ROC/ROCIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
141
- d){var g=this&&this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.isArray,p=d.merge;d=d.extend;var r=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;
142
- a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.period,e=a.xData,d=(a=a.yData)?a.length:0,f=[],h=[],g=[],l=-1;if(!(e.length<=c)){k(a[0])&&(l=b.index);for(b=c;b<d;b++){var q=0>l?(q=a[b-c])?(a[b]-q)/q*100:null:(q=a[b-c][l])?(a[b][l]-q)/q*100:null;q=[e[b],q];f.push(q);h.push(q[0]);g.push(q[1])}return{values:f,xData:h,yData:g}}};e.defaultOptions=p(l.defaultOptions,{params:{index:3,period:9}});return e}(l);d(r.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc",
143
- r);"";return r});v(f,"Stock/Indicators/RSI/RSIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=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 d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,
144
- k=d.isNumber,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=a.period,c=e.xData,d=e.yData;e=d?d.length:0;var f=a.decimals,h=1,g=[],l=[],r=[],q=a.index,n=a=0,p;if(!(c.length<b)){if(k(d[0]))var t=d;else q=Math.min(q,d[0].length-1),t=d.map(function(a){return a[q]});for(;h<b;){var u=parseFloat((t[h]-t[h-1]).toFixed(f));0<u?a+=u:n+=Math.abs(u);h++}d=parseFloat((a/
145
- (b-1)).toFixed(f));for(p=parseFloat((n/(b-1)).toFixed(f));h<e;h++)u=parseFloat((t[h]-t[h-1]).toFixed(f)),0<u?(a=u,n=0):(a=0,n=Math.abs(u)),d=parseFloat(((d*(b-1)+a)/b).toFixed(f)),p=parseFloat(((p*(b-1)+n)/b).toFixed(f)),a=0===p?100:0===d?0:parseFloat((100-100/(1+d/p)).toFixed(f)),g.push([c[h],a]),l.push(c[h]),r.push(a);return{values:g,xData:l,yData:r}}};f.defaultOptions=p(l.defaultOptions,{params:{decimals:4,index:3}});return f}(l);f.registerSeriesType("rsi",d);"";return d});v(f,"Stock/Indicators/Stochastic/StochasticIndicator.js",
146
- [f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g,l){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,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=
147
- c.prototype,new e)}}(),p=g.seriesTypes.sma,r=l.extend,h=l.isArray,e=l.merge;l=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(b,a);b.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=e({smoothedLine:{styles:{lineColor:this.color}}},this.options)};b.prototype.getValues=function(a,b){var c=b.periods[0];b=b.periods[1];var e=a.xData,d=(a=a.yData)?a.length:0,m=[],k=[],l=[],n=null,
148
- r;if(!(d<c)&&h(a[0])&&4===a[0].length){for(r=c-1;r<d;r++){var t=a.slice(r-c+1,r+1);var u=f.getArrayExtremes(t,2,1);var p=u[0];t=a[r][3]-p;p=u[1]-p;t=t/p*100;k.push(e[r]);l.push([t,null]);r>=c-1+(b-1)&&(n=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-b),yData:l.slice(-b)},{period:b}),n=n.yData[0]);m.push([e[r],t,n]);l[l.length-1][1]=n}return{values:m,xData:k,yData:l}}};b.defaultOptions=e(p.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},
149
- smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);r(l.prototype,{nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});d.compose(l);g.registerSeriesType("stochastic",l);"";return l});v(f,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&
150
- this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.stochastic,k=f.seriesTypes,p=d.extend,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=
151
- void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.periods,e=k.stochastic.prototype.getValues.call(this,a,b);a={values:[],xData:[],yData:[]};b=0;if(e){a.xData=e.xData.slice(c[1]-1);e=e.yData.slice(c[1]-1);var d=k.sma.prototype.getValues.call(this,{xData:a.xData,yData:e},{index:1,period:c[2]});if(d){for(var f=a.xData.length;b<f;b++)a.yData[b]=[e[b][1],d.yData[b-c[2]+1]||null],a.values[b]=[a.xData[b],e[b][1],d.yData[b-c[2]+1]||null];return a}}};e.defaultOptions=r(l.defaultOptions,
152
- {params:{periods:[14,3,3]}});return e}(l);p(d.prototype,{nameBase:"Slow Stochastic"});f.registerSeriesType("slowstochastic",d);"";return d});v(f,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,d,g){function l(a,b,c){return{index:b,close:a.yData[b][c],x:a.xData[b]}}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
153
- 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,new e)}}(),p=f.seriesTypes,r=p.atr,h=p.sma,e=d.addEvent,a=d.correctFloat,b=d.isArray;p=d.extend;var c=d.merge,m=d.objectEach;d=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;return a}k(f,d);f.prototype.init=
154
- function(){var a;h.prototype.init.apply(this,arguments);var b=this,c=e(g,"afterLinkSeries",function(){if(b.options){var e=b.options;a=b.linkedParent.options;e.cropThreshold=a.cropThreshold-(e.params.period-1)}c()},{order:1})};f.prototype.drawGraph=function(){var a=this,b=a.options,e=a.linkedParent,d=e?e.points:[],f=a.points,g=a.graph,k=f.length,u=d.length-k;u=0<u?u:0;for(var r={options:{gapSize:b.gapSize}},p={top:[],bottom:[],intersect:[]},w={top:{styles:{lineWidth:b.lineWidth,lineColor:b.fallingTrendColor||
155
- b.color,dashStyle:b.dashStyle}},bottom:{styles:{lineWidth:b.lineWidth,lineColor:b.risingTrendColor||b.color,dashStyle:b.dashStyle}},intersect:b.changeTrendLine},A,x,C,v,E,G,H,I;k--;)A=f[k],x=f[k-1],C=d[k-1+u],v=d[k-2+u],E=d[k+u],G=d[k+u+1],H=A.options.color,I={x:A.x,plotX:A.plotX,plotY:A.plotY,isNull:!1},!v&&C&&e.yData[C.index-1]&&(v=l(e,C.index-1,3)),!G&&E&&e.yData[E.index+1]&&(G=l(e,E.index+1,3)),!C&&v&&e.yData[v.index+1]?C=l(e,v.index+1,3):!C&&E&&e.yData[E.index-1]&&(C=l(e,E.index-1,3)),A&&C&&
156
- E&&v&&A.x!==C.x&&(A.x===E.x?(v=C,C=E):A.x===v.x?(C=v,v={close:e.yData[C.index-1][3],x:e.xData[C.index-1]}):G&&A.x===G.x&&(C=G,v=E)),x&&v&&C?(E={x:x.x,plotX:x.plotX,plotY:x.plotY,isNull:!1},A.y>=C.close&&x.y>=v.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):A.y<C.close&&x.y<v.close?(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)):(p.intersect.push(I),p.intersect.push(E),p.intersect.push(c(E,{isNull:!0})),A.y>=C.close&&x.y<v.close?(A.color=H||b.fallingTrendColor||b.color,x.color=
157
- H||b.risingTrendColor||b.color,p.top.push(I),p.top.push(c(E,{isNull:!0}))):A.y<C.close&&x.y>=v.close&&(A.color=H||b.risingTrendColor||b.color,x.color=H||b.fallingTrendColor||b.color,p.bottom.push(I),p.bottom.push(c(E,{isNull:!0}))))):C&&(A.y>=C.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)));m(p,function(b,e){a.points=b;a.options=c(w[e].styles,r);a.graph=a["graph"+e+"Line"];h.prototype.drawGraph.call(a);a["graph"+e+"Line"]=a.graph});
158
- a.points=f;a.options=b;a.graph=g};f.prototype.getValues=function(c,e){var d=e.period;e=e.multiplier;var f=c.xData,m=c.yData,h=[],g=[],k=[],l=0===d?0:d-1,p=[],w=[],y;if(!(f.length<=d||!b(m[0])||4!==m[0].length||0>d)){c=r.prototype.getValues.call(this,c,{period:d}).yData;for(y=0;y<c.length;y++){var z=m[l+y];var A=m[l+y-1]||[];var x=p[y-1];var v=w[y-1];var G=k[y-1];0===y&&(x=v=G=0);d=a((z[1]+z[2])/2+e*c[y]);var H=a((z[1]+z[2])/2-e*c[y]);p[y]=d<x||A[3]>x?d:x;w[y]=H>v||A[3]<v?H:v;if(G===x&&z[3]<p[y]||
159
- G===v&&z[3]<w[y])var I=p[y];else if(G===x&&z[3]>p[y]||G===v&&z[3]>w[y])I=w[y];h.push([f[l+y],I]);g.push(f[l+y]);k.push(I)}return{values:h,xData:g,yData:k}}};f.defaultOptions=c(h.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return f}(h);p(d.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend",
160
- d);"";return d});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var e in f)f.hasOwnProperty(e)&&(d[e]=f[e])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(d){function k(){return null!==
161
- d&&d.apply(this,arguments)||this}g(k,d);k.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return k}(d.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/VBP/VBPIndicator.js",[f["Stock/Indicators/VBP/VBPPoint.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,d,g,l,k,
162
- p){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,new e)}}(),h=d.animObject;d=g.noop;var e=l.seriesTypes.sma,a=k.addEvent,b=k.arrayMax,c=k.arrayMin,m=k.correctFloat,w=k.defined,A=k.error,y=k.extend,z=k.isArray,
163
- v=k.merge,q=Math.abs,n=l.seriesTypes.column.prototype;k=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}r(f,d);f.prototype.init=function(b){var c=this,e,d,f;g.seriesTypes.sma.prototype.init.apply(c,arguments);var m=a(p,"afterLinkSeries",function(){c.options&&(e=c.options.params,
164
- d=c.linkedParent,f=b.get(e.volumeSeriesID),c.addCustomEvents(d,f));m()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function e(){d.chart.redraw();d.setData([]);d.zoneStarts=[];d.zoneLinesSVG&&(d.zoneLinesSVG=d.zoneLinesSVG.destroy())}var d=this;d.dataEventsToUnbind.push(a(b,"remove",function(){e()}));c&&d.dataEventsToUnbind.push(a(c,"remove",function(){e()}));return d};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,e=b.group,d={};!a&&e&&(a=c?b.yAxis.top:b.xAxis.left,
165
- c?(e["forceAnimate:translateY"]=!0,d.translateY=a):(e["forceAnimate:translateX"]=!0,d.translateX=a),e.animate(d,y(h(b.options.animation),{step:function(a,c){b.group.attr({scaleX:Math.max(.001,c.pos)})}})))};f.prototype.drawPoints=function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),n.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));n.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],e=this.options.volumeDivision,
166
- d=this.points.length,f=[],m=[],h=0,g;a?(this.posWidths=f,this.negWidths=m):(f=this.posWidths,m=this.negWidths);for(;h<d;h++){var k=this.points[h];k[c[0]+"Graphic"]=k.graphic;k.graphic=k[c[1]+"Graphic"];if(a){var n=k.shapeArgs.width;var l=this.priceZones[h];(g=l.wholeVolumeData)?(f.push(n/g*l.positiveVolumeData),m.push(n/g*l.negativeVolumeData)):(f.push(0),m.push(0))}k.color=b?e.styles.positiveColor:e.styles.negativeColor;k.shapeArgs.width=b?this.posWidths[h]:this.negWidths[h];k.shapeArgs.x=b?k.shapeArgs.x:
167
- this.posWidths[h]}};f.prototype.translate=function(){var a=this,c=a.options,e=a.chart,d=a.yAxis,f=d.min,h=a.options.zoneLines,g=a.priceZones,k=0,l,r,t;n.translate.apply(a);var p=a.points;if(p.length){var w=.5>c.pointPadding?c.pointPadding:.1;c=a.volumeDataArray;var y=b(c);var z=e.plotWidth/2;var A=e.plotTop;var B=q(d.toPixels(f)-d.toPixels(f+a.rangeStep));var v=q(d.toPixels(f)-d.toPixels(f+a.rangeStep));w&&(f=q(B*(1-2*w)),k=q((B-f)/2),B=q(f));p.forEach(function(b,c){r=b.barX=b.plotX=0;t=b.plotY=d.toPixels(g[c].start)-
168
- A-(d.reversed?B-v:B)-k;l=m(z*g[c].wholeVolumeData/y);b.pointWidth=l;b.shapeArgs=a.crispCol.apply(a,[r,t,l,B]);b.volumeNeg=g[c].negativeVolumeData;b.volumePos=g[c].positiveVolumeData;b.volumeAll=g[c].wholeVolumeData});h.enabled&&a.drawZones(e,d,a.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,e=a.processedYData,d=this.chart,f=b.ranges,m=[],h=[],g=[],k;if(a.chart)if(k=d.get(b.volumeSeriesID))if((b=z(e[0]))&&4!==e[0].length)A("Type of "+a.name+" series is different than line, OHLC or candlestick.",
169
- !0,d);else return(this.priceZones=this.specifyZones(b,c,e,f,k)).forEach(function(a,b){m.push([a.x,a.end]);h.push(m[b][0]);g.push(m[b][1])}),{values:m,xData:h,yData:g};else A("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d);else A("Base series not found! In case it has been removed, add a new one.",!0,d)};f.prototype.specifyZones=function(a,e,d,f,h){if(a){var g=d.length;for(var k=d[0][3],n=k,l=1,q;l<g;l++)q=d[l][3],q<k&&(k=q),q>n&&(n=q);g={min:k,max:n}}else g=!1;g=(k=g)?k.min:
170
- c(d);q=k?k.max:b(d);k=this.zoneStarts=[];n=[];var r=0;l=1;var t=this.linkedParent;!this.options.compareToMain&&t.dataModify&&(g=t.dataModify.modifyValue(g),q=t.dataModify.modifyValue(q));if(!w(g)||!w(q))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];t=this.rangeStep=m(q-g)/f;for(k.push(g);r<f-1;r++)k.push(m(k[r]+t));k.push(q);for(f=k.length;l<f;l++)n.push({index:l-1,x:e[0],start:k[l-1],end:k[l]});return this.volumePerZone(a,
171
- n,h,e,d)};f.prototype.volumePerZone=function(a,b,c,e,d){var f=this,m=c.processedXData,h=c.processedYData,g=b.length-1,k=d.length;c=h.length;var n,l,t,r,p;q(k-c)&&(e[0]!==m[0]&&h.unshift(0),e[k-1]!==m[c-1]&&h.push(0));f.volumeDataArray=[];b.forEach(function(b){b.wholeVolumeData=0;b.positiveVolumeData=0;for(p=b.negativeVolumeData=0;p<k;p++){t=l=!1;r=a?d[p][3]:d[p];n=p?a?d[p-1][3]:d[p-1]:r;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(r=c.dataModify.modifyValue(r),n=c.dataModify.modifyValue(n));
172
- r<=b.start&&0===b.index&&(l=!0);r>=b.end&&b.index===g&&(t=!0);(r>b.start||l)&&(r<b.end||t)&&(b.wholeVolumeData+=h[p],n>r?b.negativeVolumeData+=h[p]:b.positiveVolumeData+=h[p])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,e){var d=a.renderer,f=this.zoneLinesSVG,m=[],h=a.plotWidth,g=a.plotTop,k;c.forEach(function(c){k=b.toPixels(c)-g;m=m.concat(a.renderer.crispLine([["M",0,k],["L",h,k]],e.lineWidth))});f?f.animate({d:m}):f=this.zoneLinesSVG=d.path(m).attr({"stroke-width":e.lineWidth,
173
- stroke:e.color,dashstyle:e.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(e.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1E3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{allowOverlap:!0,
174
- enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(e);y(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:d,drawGraph:d,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});l.registerSeriesType("vbp",k);"";return k});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
175
- function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=
176
- void 0;a.points=void 0;a.options=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=a.chart,e=a.xData;a=a.yData;var d=b.period,f=!0,h;if(h=c.get(b.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,e,a,h,d);k("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,c)};e.prototype.calculateVWAPValues=function(a,b,c,e,d){var f=e.yData,m=e.xData.length,h=b.length;e=[];var g=[],k=[],n=[],l=[],r;m=h<=m?h:m;for(r=h=0;h<m;h++){var p=a?(c[h][1]+c[h][2]+c[h][3])/3:
177
- c[h];p*=f[h];p=r?e[h-1]+p:p;var w=r?g[h-1]+f[h]:f[h];e.push(p);g.push(w);l.push([b[h],p/w]);k.push(l[h][0]);n.push(l[h][1]);r++;r===d&&(r=0)}return{values:l,xData:k,yData:n}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return e}(l);f.registerSeriesType("vwap",d);"";return d});v(f,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
178
- this&&this.__extends||function(){var e=function(a,b){e=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 e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=
179
- void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,c){c=c.period;var b=a.xData,e=(a=a.yData)?a.length:0,d=[],h=[],g=[],k;if(!(b.length<c)&&r(a[0])&&4===a[0].length){for(k=c-1;k<e;k++){var l=a.slice(k-c+1,k+1);var n=f.getArrayExtremes(l,2,1);l=n[0];n=n[1];var p=a[k][3];l=(n-p)/(n-l)*-100;b[k]&&(d.push([b[k],l]),h.push(b[k]),g.push(l))}return{values:d,xData:h,yData:g}}};a.defaultOptions=h(k.defaultOptions,{params:{index:void 0,period:14}});return a}(k);p(g.prototype,{nameBase:"Williams %R"});
180
- d.registerSeriesType("williamsr",g);"";return g});v(f,"Stock/Indicators/WMA/WMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(e,a){a*=(a+1)/2;return e.reduce(function(a,c,e){return[null,a[1]+c[1]*(e+1)]})[1]/a}function l(e,a,b,c){b=g(e,e.length);a=a[c-1];e.shift();return[a,b]}var k=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
181
- (a[c]=b[c])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),p=f.seriesTypes.sma,r=d.isArray,h=d.merge;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,e);a.prototype.getValues=function(a,c){var b=c.period,e=a.xData,d=(a=a.yData)?a.length:0,f=1,h=e[0],g=a[0],k=[],n=[],p=[],t=-1;if(!(e.length<b)){r(a[0])&&(t=c.index,
182
- g=a[0][t]);for(c=[[h,g]];f!==b;)c.push([e[f],0>t?a[f]:a[f][t]]),f++;for(b=f;b<d;b++)f=l(c,e,a,b),k.push(f),n.push(f[0]),p.push(f[1]),c.push([e[b],0>t?a[b]:a[b][t]]);f=l(c,e,a,b);k.push(f);n.push(f[0]);p.push(f[1]);return{values:k,xData:n,yData:p}}};a.defaultOptions=h(p.defaultOptions,{params:{index:3,period:9}});return a}(p);f.registerSeriesType("wma",d);"";return d});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&
183
- this.__extends||function(){var d=function(f,e){d=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 d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=
184
- void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=a.lowIndex,c=a.highIndex,d=a.deviation/100;a=1+d;var f=1-d;d=e.xData;var h=e.yData;e=h?h.length:0;var g=[],k=[],l=[],q,n,p=!1,r=!1;if(!(!d||1>=d.length||e&&("undefined"===typeof h[0][b]||"undefined"===typeof h[0][c]))){var u=h[0][b];var v=h[0][c];for(q=1;q<e;q++){if(h[q][b]<=v*f){g.push([d[0],v]);var x=[d[q],h[q][b]];p=n=!0}else h[q][c]>=u*a&&(g.push([d[0],u]),x=[d[q],h[q][c]],n=!1,p=!0);if(p){k.push(g[0][0]);l.push(g[0][1]);var L=q++;
185
- q=e}}for(q=L;q<e;q++)n?(h[q][b]<=x[1]&&(x=[d[q],h[q][b]]),h[q][c]>=x[1]*a&&(r=c)):(h[q][c]>=x[1]&&(x=[d[q],h[q][c]]),h[q][b]<=x[1]*f&&(r=b)),!1!==r&&(g.push(x),k.push(x[0]),l.push(x[1]),x=[d[q],h[q][r]],n=!n,r=!1);b=g.length;0!==b&&g[b-1][0]<d[e-1]&&(g.push(x),k.push(x[0]),l.push(x[1]));return{values:g,xData:k,yData:l}}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}});return f}(l);d(p.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
186
- nameBase:"Zig Zag"});f.registerSeriesType("zigzag",p);"";return p});v(f,"Stock/Indicators/LinearRegression/LinearRegression.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===
187
- a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.isArray,p=d.extend,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getRegressionLineParameters=function(a,b){var c=this.options.params.index,e=function(a,b){return k(a)?a[b]:a},d=a.reduce(function(a,b){return b+a},0),f=b.reduce(function(a,b){return e(b,c)+a},0);d/=a.length;f/=b.length;var h=0,g=0,l;for(l=0;l<a.length;l++){var p=
188
- a[l]-d;var n=e(b[l],c)-f;h+=p*n;g+=Math.pow(p,2)}a=g?h/g:0;return{slope:a,intercept:f-a*d}};e.prototype.getEndPointY=function(a,b){return a.slope*b+a.intercept};e.prototype.transformXData=function(a,b){var c=a[0];return a.map(function(a){return(a-c)/b})};e.prototype.findClosestDistance=function(a){var b,c;for(c=1;c<a.length-1;c++){var e=a[c]-a[c-1];0<e&&("undefined"===typeof b||e<b)&&(b=e)}return b};e.prototype.getValues=function(a,b){var c=a.xData;a=a.yData;b=b.period;var e,d={xData:[],yData:[],
189
- values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(c);for(e=b-1;e<=c.length-1;e++){var h=e-b+1;var g=e+1;var k=c[e];var l=c.slice(h,g);h=a.slice(h,g);g=this.transformXData(l,f);l=this.getRegressionLineParameters(g,h);h=this.getEndPointY(l,g[g.length-1]);d.values.push({regressionLineParameters:l,x:k,y:h});d.xData.push(k);d.yData.push(h)}return d};e.defaultOptions=r(l.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return e}(l);p(d.prototype,{nameBase:"Linear Regression Indicator"});
190
- f.registerSeriesType("linearRegression",d);"";return d});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=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 d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===
191
- e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(e){return e.slope};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Slope Indicator"});f.registerSeriesType("linearRegressionSlope",d);"";return d});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",
192
- [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=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 d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=
193
- null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",d);"";return d});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
194
- function(){var d=function(f,e){d=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 d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;
195
- return e}g(f,d);f.prototype.slopeToAngle=function(d){return 180/Math.PI*Math.atan(d)};f.prototype.getEndPointY=function(d){return this.slopeToAngle(d.slope)};f.defaultOptions=p(l.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span>{series.name}: <b>{point.y}\u00b0</b><br/>'}});return f}(l);k(d.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",d);"";return d});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
196
- f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var d=function(a,b){d=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 d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.merge;g=function(d){function a(){var a=
197
- null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,d);a.prototype.getValues=function(a,c){var b=c.period,e=c.factor;c=c.index;var f=a.xData,g=(a=a.yData)?a.length:0,h=[],k=[],l=[],n=[],r=[],t;if(!(g<b)){for(t=0;t<=g;t++){if(t<g){var u=a[t][2];var v=a[t][1];var x=e;u=p(v-u)/(p(v+u)/2)*1E3*x;h.push(a[t][1]*p(1+2*u));k.push(a[t][2]*p(1-2*u))}if(t>=b){u=f.slice(t-b,t);var L=a.slice(t-b,t);x=d.prototype.getValues.call(this,{xData:u,yData:h.slice(t-b,t)},
198
- {period:b});v=d.prototype.getValues.call(this,{xData:u,yData:k.slice(t-b,t)},{period:b});L=d.prototype.getValues.call(this,{xData:u,yData:L},{period:b,index:c});u=L.xData[0];x=x.yData[0];v=v.yData[0];L=L.yData[0];l.push([u,x,L,v]);n.push(u);r.push([x,L,v])}}return{values:l,xData:n,yData:r}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k);
199
- r(g.prototype,{linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);d.registerSeriesType("abands",g);"";return g});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=
200
- c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.merge,r=d.isArray;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=a.xData,d=a.yData;a=[];var e=[],f=[],g=0,h=0,k=0,l=0,n=
201
- c.length,p=b.index;for(b=0;b<n;b++){var t=c[b];var u=r(d[b])?d[b][p]:d[b];g+=t;h+=u;k+=t*u;l+=t*t}d=(n*k-g*h)/(n*l-g*g);isNaN(d)&&(d=0);g=(h-d*g)/n;for(b=0;b<n;b++)t=c[b],u=d*t+g,a[b]=[t,u],e[b]=t,f[b]=u;return{xData:e,yData:f,values:a}};e.defaultOptions=p(l.defaultOptions,{params:{period:void 0,index:3}});return e}(l);k(d.prototype,{nameBase:"Trendline",nameComponents:!1});f.registerSeriesType("trendline",d);"";return d});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",[f["Core/Series/SeriesRegistry.js"],
202
- f["Core/Utilities.js"]],function(f,d){var g=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 d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),l=f.seriesTypes.sma,k=d.correctFloat,p=d.defined,r=d.extend,h=d.isArray,e=d.merge;d=function(a){function b(){var b=
203
- null!==a&&a.apply(this,arguments)||this;b.averageIndicator=void 0;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.init=function(){var a=arguments,b=a[1].params;this.averageIndicator=f.seriesTypes[b&&b.average?b.average:void 0]||l;this.averageIndicator.prototype.init.apply(this,a)};b.prototype.calculateDisparityIndex=function(a,b){return k(a-b)/b*100};b.prototype.getValues=function(a,b){var c=b.index,d=a.xData,e=a.yData,f=e?e.length:0,g=[],k=[],l=[],m=this.averageIndicator,
204
- r=h(e[0]);b=m.prototype.getValues(a,b);a=b.yData;b=d.indexOf(b.xData[0]);if(a&&0!==a.length&&p(c)&&!(e.length<=b)){for(m=b;m<f;m++){var u=this.calculateDisparityIndex(r?e[m][c]:e[m],a[m-b]);g.push([d[m],u]);k.push(d[m]);l.push(u)}return{values:g,xData:k,yData:l}}};b.defaultOptions=e(l.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return b}(l);r(d.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]});f.registerSeriesType("disparityindex",
205
- d);"";return d});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
10
+ (function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){f(v);f.Highcharts=v;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function v(f,e,g,m){f.hasOwnProperty(e)||(f[e]=m.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:f[e]}})))}
11
+ f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return c(b,
12
+ a)};return function(b,a){function l(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)}}(),k=e.seriesTypes.line,p=g.addEvent,t=g.error,h=g.extend,d=g.isArray,a=g.merge,b=g.pick,c=g.splat;g=function(l){function w(){var c=null!==l&&l.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}m(w,l);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()});
13
+ l.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var c=this.name,a=[];c||((this.nameComponents||[]).forEach(function(c,l){a.push(this.options.params[c]+b(this.nameSuffixes[l],""))},this),c=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return c};w.prototype.getValues=function(c,b){var a=b.period,l=c.xData;c=c.yData;var w=c.length,A=0,z=0,h=[],e=[],g=[],f=-1;if(!(l.length<a)){for(d(c[0])&&(f=b.index?b.index:0);A<a-1;)z+=0>f?c[A]:c[A][f],
14
+ A++;for(b=A;b<w;b++){z+=0>f?c[b]:c[b][f];var t=[l[b],z/a];h.push(t);e.push(t[0]);g.push(t[1]);z-=0>f?c[b-A]:c[b-A][f]}return{values:h,xData:e,yData:g}}};w.prototype.init=function(c,b){var a=this;l.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis,
15
+ function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!b)var l=p(a.chart,a.calculateOn.chart,function(){a.recalculateValues();l()})}else return t("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,l={values:[],xData:[],yData:[]},d=[],w=!0;l=this.linkedParent.options?this.getValues(this.linkedParent,
16
+ this.options.params)||l:l;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var n=this.xAxis.min;var h=this.xAxis.max}b=this.cropData(l.xData,l.yData,n,h);for(n=0;n<b.xData.length;n++)d.push([b.xData[n]].concat(c(b.yData[n])));b=l.xData.indexOf(this.xData[0]);n=l.xData.indexOf(this.xData[this.xData.length-1]);-1===b&&n===l.xData.length-2&&d[0][0]===a[0].x&&d.shift();this.updateData(d)}else l.xData.length!==b-1&&l.xData.length!==b+1&&(w=!1,this.updateData(l.values));
17
+ w&&(this.xData=l.xData,this.yData=l.yData,this.options.data=l.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;l.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};w.defaultOptions=a(k.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},
18
+ linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(k);h(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});e.registerSeriesType("sma",g);"";return g});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=
19
+ c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.correctFloat,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.prototype.accumulatePeriodPoints=function(a,b,c){for(var l=0,d=0,A;d<a;)A=0>b?c[d]:c[d][b],
20
+ l+=A,d++;return l};d.prototype.calculateEma=function(a,b,c,l,d,A,h){a=a[c-1];b=0>A?b[c-1]:b[c-1][A];l="undefined"===typeof d?h:k(b*l+d*(1-l));return[a,l]};d.prototype.getValues=function(a,b){var c=b.period,l=a.xData,d=(a=a.yData)?a.length:0,A=2/(c+1),h=[],e=[],g=[],r=-1;if(!(d<c)){p(a[0])&&(r=b.index?b.index:0);b=this.accumulatePeriodPoints(c,r,a);for(b/=c;c<d+1;c++){var n=this.calculateEma(l,a,c,A,n,r,b);h.push(n);e.push(n[0]);g.push(n[1]);n=n[1]}return{values:h,xData:e,yData:g}}};d.defaultOptions=
21
+ t(m.defaultOptions,{params:{index:3,period:9}});return d}(m);f.registerSeriesType("ema",e);"";return e});v(f,"Stock/Indicators/AD/ADIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,
22
+ a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.error,p=e.extend,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.populateAverage=function(a,b,c,l,d){d=b[l][1];var w=b[l][2];b=b[l][3];c=c[l];return[a[l],b===d&&b===w||d===w?0:(2*b-w-d)/(d-w)*c]};d.prototype.getValues=function(a,b){var c=b.period,l=a.xData,w=a.yData,A=b.volumeSeriesID,h=a.chart.get(A);
23
+ b=h&&h.yData;var e=w?w.length:0,g=[],r=[],n=[];if(!(l.length<=c&&e&&4!==w[0].length)){if(h){for(A=c;A<e;A++)a=g.length,h=d.populateAverage(l,w,b,A,c),0<a&&(h[1]+=g[a-1][1]),g.push(h),r.push(h[0]),n.push(h[1]);return{values:g,xData:r,yData:n}}k("Series "+A+" not found! Check `volumeSeriesID`.",!0,a.chart)}};d.defaultOptions=t(m.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return d}(m);p(e.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",
24
+ e);"";return e});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return b(c,a)};return function(c,a){function l(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(l.prototype=a.prototype,
25
+ new l)}}();f=f.noop;var k=e.seriesTypes,p=k.sma;k=k.column;var t=g.extend,h=g.merge,d=g.correctFloat,a=g.isArray;g=function(b){function c(){var c=null!==b&&b.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}m(c,b);c.prototype.drawGraph=function(){var c=this.options,a=this.points,b=c.greaterBarColor;c=c.lowerBarColor;var d=a[0];if(!this.userOptions.color&&d)for(d.color=b,d=1;d<a.length;d++)a[d].color=a[d].y>a[d-1].y?b:a[d].y<a[d-1].y?c:a[d-1].color};c.prototype.getValues=
26
+ function(c){var b=c.xData||[];c=c.yData||[];var l=c.length,h=[],e=[],g=[],r=0,n=0,B;if(!(34>=b.length)&&a(c[0])&&4===c[0].length){for(B=0;33>B;B++){var q=(c[B][1]+c[B][2])/2;29<=B&&(r=d(r+q));n=d(n+q)}for(B=33;B<l;B++){q=(c[B][1]+c[B][2])/2;r=d(r+q);n=d(n+q);q=r/5;var u=n/34;q=d(q-u);h.push([b[B],q]);e.push(b[B]);g.push(q);q=B+1-5;u=B+1-34;r=d(r-(c[q][1]+c[q][2])/2);n=d(n-(c[u][1]+c[u][2])/2)}return{values:h,xData:e,yData:g}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:void 0},
27
+ greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return c}(p);t(g.prototype,{nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:k.prototype.getColumnMetrics,crispCol:k.prototype.crispCol,translate:k.prototype.translate,drawPoints:k.prototype.drawPoints});e.registerSeriesType("ao",g);"";return g});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
28
+ function(f,e){var g=f.seriesTypes.sma,m=e.defined,k=e.error,p=e.merge,t;(function(h){function d(c){var a,b=[];c=c||this.points;if(this.fillGraph&&this.nextPoints){if((a=g.prototype.getGraphPath.call(this,this.nextPoints))&&a.length){a[0][0]="L";b=g.prototype.getGraphPath.call(this,c);a=a.slice(0,b.length);for(var l=a.length-1;0<=l;l--)b.push(a[l])}}else b=g.prototype.getGraphPath.apply(this,arguments);return b}function a(){var a=this,b=a.linesApiNames,l=a.areaLinesNames,d=a.points,w=a.options,h=a.graph,
29
+ A={options:{gapSize:w.gapSize}},e=[],z=a.getTranslatedLinesNames(a.pointValKey),y=d.length,L;z.forEach(function(a,c){for(e[c]=[];y--;)L=d[y],e[c].push({x:L.x,plotX:L.plotX,plotY:L[a],isNull:!m(L[a])});y=d.length});if(this.userOptions.fillColor&&l.length){var t=z.indexOf(c(l[0]));t=e[t];l=1===l.length?d:e[z.indexOf(c(l[1]))];z=a.color;a.points=l;a.nextPoints=t;a.color=this.userOptions.fillColor;a.options=p(d,A);a.graph=a.area;a.fillGraph=!0;f.seriesTypes.sma.prototype.drawGraph.call(a);a.area=a.graph;
30
+ delete a.nextPoints;delete a.fillGraph;a.color=z}b.forEach(function(c,b){e[b]?(a.points=e[b],w[c]?a.options=p(w[c].styles,A):k('Error: "There is no '+c+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),a.graph=a["graph"+c],g.prototype.drawGraph.call(a),a["graph"+c]=a.graph):k('Error: "'+c+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});a.points=d;a.options=w;a.graph=
31
+ h;g.prototype.drawGraph.call(a)}function b(a){var b=[];(this.pointArrayMap||[]).forEach(function(l){l!==a&&b.push(c(l))});return b}function c(a){return"plot"+a.charAt(0).toUpperCase()+a.slice(1)}function l(a){var c=[];(this.pointArrayMap||[]).forEach(function(b){c.push(a[b])});return c}function w(){var a=this,c=a.pointArrayMap,b=[],l;b=a.getTranslatedLinesNames();g.prototype.translate.apply(a,arguments);a.points.forEach(function(d){c.forEach(function(c,w){l=d[c];a.dataModify&&(l=a.dataModify.modifyValue(l));
32
+ null!==l&&(d[b[w]]=a.yAxis.toPixels(l,!0))})})}var A=[],e=["bottomLine"],y=["top","bottom"],L=["top"];h.compose=function(c){if(-1===A.indexOf(c)){A.push(c);var h=c.prototype;h.linesApiNames=h.linesApiNames||e.slice();h.pointArrayMap=h.pointArrayMap||y.slice();h.pointValKey=h.pointValKey||"top";h.areaLinesNames=h.areaLinesNames||L.slice();h.drawGraph=a;h.getGraphPath=d;h.toYData=l;h.translate=w;h.getTranslatedLinesNames=b}return c}})(t||(t={}));return t});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",
33
+ [f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){function m(a,b){var c=a[0],l=0,d;for(d=1;d<a.length;d++)if("max"===b&&a[d]>=c||"min"===b&&a[d]<=c)c=a[d],l=d;return l}var k=this&&this.__extends||function(){var a=function(b,c){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,c)};return function(b,c){function l(){this.constructor=
34
+ b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),p=e.seriesTypes.sma,t=g.extend,h=g.merge,d=g.pick;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}k(b,a);b.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,h=[],e=[],g=[],r;for(r=b-1;r<l;r++){var n=a.slice(r-b+1,r+2);var B=m(n.map(function(a){return d(a[2],a)}),"min");n=m(n.map(function(a){return d(a[1],
35
+ a)}),"max");n=n/b*100;B=B/b*100;c[r+1]&&(h.push([c[r+1],n,B]),e.push(c[r+1]),g.push([n,B]))}return{values:h,xData:e,yData:g}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);t(g.prototype,{areaLinesNames:[],
36
+ linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(g);e.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
37
+ b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.aroon,p=g.extend,t=g.merge,h=e.seriesTypes.aroon;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){var b=[],d=[],e=[];a=h.prototype.getValues.call(this,a,c);for(c=
38
+ 0;c<a.yData.length;c++){var z=a.yData[c][0];var y=a.yData[c][1];z-=y;b.push([a.xData[c],z]);d.push(a.xData[c]);e.push(z)}return{values:b,xData:d,yData:e}};a.defaultOptions=t(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);e.registerSeriesType("aroonoscillator",g);"";return g});v(f,"Stock/Indicators/ATR/ATRIndicator.js",
39
+ [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(h,d){return Math.max(h[1]-h[2],"undefined"===typeof d?0:Math.abs(h[1]-d[3]),"undefined"===typeof d?0:Math.abs(h[2]-d[3]))}var m=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=
40
+ null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}m(d,h);d.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,d=1,h=0,e=0,y=[],f=[],r=[],n;var B=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(n=1;n<=l;n++)if(B.push([c[n],a[n]]),b<d){var q=b;var u=c[n-1],t=g(a[n-1],a[n-
41
+ 2]);q=[u,(h*(q-1)+t)/q];h=q[1];y.push(q);f.push(q[0]);r.push(q[1])}else b===d?(h=e/(n-1),y.push([c[n-1],h]),f.push(c[n-1]),r.push(h)):e+=g(a[n-1],a[n-2]),d++;return{values:y,xData:f,yData:r}}};d.defaultOptions=t(k.defaultOptions,{params:{index:void 0}});return d}(k);f.registerSeriesType("atr",e);"";return e});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||
42
+ function(){var d=function(a,b){d=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 d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.sma,p=g.extend,t=g.isArray,h=g.merge;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
43
+ return a}m(a,d);a.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};a.prototype.getValues=function(a,c){var b=c.period,d=c.standardDeviation,h=a.xData,z=(a=a.yData)?a.length:0,y=[],f=[],r=[],n;if(!(h.length<b)){var B=t(a[0]);for(n=b;n<=z;n++){var q=h.slice(n-b,n);var u=a.slice(n-b,n);var g=e.seriesTypes.sma.prototype.getValues.call(this,{xData:q,yData:u},
44
+ c);q=g.xData[0];g=g.yData[0];for(var m=0,k=u.length,p=0;p<k;p++){var x=(B?u[p][c.index]:u[p])-g;m+=x*x}x=Math.sqrt(m/(k-1));u=g+d*x;x=g-d*x;y.push([q,u,g,x]);f.push(q);r.push([u,g,x])}return{values:y,xData:f,yData:r}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
45
+ marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(k);p(g.prototype,{areaLinesNames:["top","bottom"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(g);e.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(h){return h.reduce(function(d,a){return d+a},0)}
46
+ var m=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;
47
+ a.options=void 0;return a}m(d,h);d.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,d=[],h=1,e=[],y=[],f=[];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(;h<b;){var r=a[h-1];d.push((r[1]+r[2]+r[3])/3);h++}for(h=b;h<=l;h++){r=a[h-1];r=(r[1]+r[2]+r[3])/3;var n=d.push(r);var B=d.slice(n-b);n=g(B)/b;var q,u=B.length,t=0;for(q=0;q<u;q++)t+=Math.abs(n-B[q]);B=t/b;r=(r-n)/(.015*B);e.push([c[h-1],r]);y.push(c[h-1]);f.push(r)}return{values:e,xData:y,yData:f}}};d.defaultOptions=
48
+ t(k.defaultOptions,{params:{index:void 0}});return d}(k);f.registerSeriesType("cci",e);"";return e});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,h){e=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 e(f,h)};return function(f,h){function d(){this.constructor=f}e(f,h);
49
+ f.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),m=f.seriesTypes.sma,k=e.merge;e=function(e){function f(){var h=null!==e&&e.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;h.volumeSeries=void 0;h.linkedParent=void 0;h.yData=void 0;h.nameBase="Chaikin Money Flow";return h}g(f,e);f.prototype.isValid=function(){var h=this.chart,d=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(d.params.volumeSeriesID));var b=a&&a.yData&&
50
+ 4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=d.params.period&&h.xData&&h.xData.length>=d.params.period&&b)};f.prototype.getValues=function(h,d){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,d.period)};f.prototype.getMoneyFlow=function(h,d,a,b){function c(a,c){var b=a[1],l=a[2];a=a[3];return null!==c&&null!==b&&null!==l&&null!==a&&b!==l?(a-l-(b-a))/(b-l)*c:(B=n,null)}var l=d.length,w=[],e=0,z=0,y=[],f=[],r=[],n,B=-1;if(0<b&&b<=l){for(n=0;n<b;n++)w[n]=
51
+ c(d[n],a[n]),e+=a[n],z+=w[n];y.push(h[n-1]);f.push(n-B>=b&&0!==e?z/e:null);for(r.push([y[0],f[0]]);n<l;n++){w[n]=c(d[n],a[n]);e-=a[n-b];e+=a[n];z-=w[n-b];z+=w[n];var q=[h[n],n-B>=b?z/e:null];y.push(q[0]);f.push(q[1]);r.push([q[0],q[1]])}}return{values:r,xData:y,yData:f}};f.defaultOptions=k(m.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(m);f.registerSeriesType("cmf",e);"";return e});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
52
+ f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,c){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,c)};return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.isArray,d=g.merge;
53
+ g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.options=void 0;return c}m(b,a);b.prototype.calculateDM=function(a,b,d){var c=a[b][1],l=a[b][2],w=a[b-1][1];a=a[b-1][2];return p(c-w>a-l?d?Math.max(c-w,0):0:d?0:Math.max(a-l,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,d){return p(a-a/d+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]-
54
+ a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=function(a,b){b=b.period;var c=a.xData,l=(a=a.yData)?a.length:0,d=[],e=[],f=[];if(!(c.length<=b)&&h(a[0])&&4===a[0].length){var r=0,n=0,B=0,q;for(q=1;q<l;q++)if(q<=b){var u=this.calculateDM(a,q,!0);var g=this.calculateDM(a,q);var m=this.getTR(a[q],a[q-1]);r+=u;n+=g;B+=m;q===b&&(m=this.calculateDI(r,B),g=this.calculateDI(n,B),u=this.calculateDX(r,n),d.push([c[q],u,m,g]),e.push(c[q]),f.push([u,m,g]))}else u=this.calculateDM(a,
55
+ q,!0),g=this.calculateDM(a,q),m=this.getTR(a[q],a[q-1]),r=this.smoothValues(r,u,b),n=this.smoothValues(n,g,b),B=this.smoothValues(B,m,b),m=this.calculateDI(r,B),g=this.calculateDI(n,B),u=this.calculateDX(r,n),d.push([c[q],u,m,g]),e.push(c[q]),f.push([u,m,g]);return{values:d,xData:e,yData:f}}};b.defaultOptions=d(k.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},
56
+ plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return b}(k);t(g.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(g);e.registerSeriesType("dmi",g);"";return g});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
57
+ function(f,e){function g(a,b,c,l,w){b=d(b[c][l],b[c]);return w?h(a-b):h(a+b)}var m=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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),k=f.seriesTypes.sma,p=e.extend,t=e.merge,h=e.correctFloat,d=e.pick;
58
+ e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.data=void 0;b.points=void 0;return b}m(b,a);b.prototype.getValues=function(a,b){var c=b.period;b=b.index;var l=c+Math.floor(c/2+1),h=a.xData||[];a=a.yData||[];var e=a.length,f=[],r=[],n=[],B=0,q,u;if(!(h.length<=l)){for(q=0;q<c-1;q++)B=g(B,a,q,b);for(u=0;u<=e-l;u++){var m=u+c-1;q=u+l-1;B=g(B,a,m,b);m=d(a[q][b],a[q]);m-=B/c;B=g(B,a,u,b,!0);f.push([h[q],m]);r.push(h[q]);n.push(m)}return{values:f,xData:r,yData:n}}};
59
+ b.defaultOptions=t(k.defaultOptions,{params:{index:0,period:21}});return b}(k);p(e.prototype,{nameBase:"DPO"});f.registerSeriesType("dpo",e);"";return e});v(f,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=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)};
60
+ return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),m=f.seriesTypes,k=m.ad,p=m.ema,t=e.correctFloat;m=e.extend;var h=e.merge,d=e.error;e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.getValues=function(a,b){var c=b.periods,l=b.period,h=[],e=[],f=[],r;if(2!==c.length||c[1]<=c[0])d('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
61
+ else if(b=k.prototype.getValues.call(this,a,{volumeSeriesID:b.volumeSeriesID,period:l}))if(a=p.prototype.getValues.call(this,b,{period:c[0]}),b=p.prototype.getValues.call(this,b,{period:c[1]}),a&&b){c=c[1]-c[0];for(r=0;r<b.yData.length;r++)l=t(a.yData[r+c]-b.yData[r]),h.push([b.xData[r],l]),e.push(b.xData[r]),f.push(l);return{values:h,xData:e,yData:f}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return b}(p);m(e.prototype,{nameBase:"Chaikin Osc",
62
+ nameComponents:["periods"]});f.registerSeriesType("chaikin",e);"";return e});v(f,"Stock/Indicators/CMO/CMOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(h,d){e=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 e(h,d)};return function(h,d){function a(){this.constructor=h}e(h,d);h.prototype=null===d?Object.create(d):
63
+ (a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,k=e.isNumber,p=e.merge;e=function(e){function h(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(h,e);h.prototype.getValues=function(d,a){var b=a.period,c=d.xData,l=d.yData;d=l?l.length:0;var h=[],e=[],f=[],y,g=a.index;if(!(c.length<b)){k(l[0])?a=l:(g=Math.min(g,l[0].length-1),a=l.map(function(a){return a[g]}));var r=0,n=l=0;for(y=b;0<y;y--)a[y]>a[y-1]?l+=a[y]-a[y-1]:a[y]<a[y-1]&&(n+=a[y-
64
+ 1]-a[y]);r=0<l+n?100*(l-n)/(l+n):0;e.push(c[b]);f.push(r);h.push([c[b],r]);for(y=b+1;y<d;y++)r=Math.abs(a[y-b-1]-a[y-b]),a[y]>a[y-1]?l+=a[y]-a[y-1]:a[y]<a[y-1]&&(n+=a[y-1]-a[y]),a[y-b]>a[y-b-1]?l-=r:n-=r,r=0<l+n?100*(l-n)/(l+n):0,e.push(c[y]),f.push(r),h.push([c[y],r]);return{values:h,xData:e,yData:f}}};h.defaultOptions=p(m.defaultOptions,{params:{period:20,index:3}});return h}(m);f.registerSeriesType("cmo",e);"";return e});v(f,"Stock/Indicators/DEMA/DEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],
65
+ f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.ema,k=e.correctFloat,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,
66
+ arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.prototype.getEMA=function(a,b,c,l,d,h){return m.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,this.EMApercent,b,"undefined"===typeof l?-1:l,c)};d.prototype.getValues=function(a,b){var c=b.period,l=2*c,d=a.xData,h=(a=a.yData)?a.length:0,e=-1,f=[],g=[],r=[],n=0,B=[],q;this.EMApercent=2/(c+1);if(!(h<2*c-1)){p(a[0])&&(e=b.index?b.index:0);b=m.prototype.accumulatePeriodPoints(c,e,a);var u=
67
+ b/c;b=0;for(q=c;q<h+2;q++){q<h+1&&(n=this.getEMA(a,t,u,e,q)[1],B.push(n));var t=n;if(q<l)b+=n;else{q===l&&(u=b/c);n=B[q-c-1];var J=this.getEMA([n],J,u)[1];var x=[d[q-2],k(2*n-J)];f.push(x);g.push(x[0]);r.push(x[1])}}return{values:f,xData:g,yData:r}}};d.defaultOptions=t(m.defaultOptions);return d}(m);f.registerSeriesType("dema",e);"";return e});v(f,"Stock/Indicators/TEMA/TEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=
68
+ function(d,a){h=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 h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.ema,k=e.correctFloat,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=
69
+ void 0;return a}g(d,h);d.prototype.getEMA=function(a,b,c,l,d,h){return m.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,this.EMApercent,b,"undefined"===typeof l?-1:l,c)};d.prototype.getTemaPoint=function(a,b,c,l){return[a[l-3],k(3*c.level1-3*c.level2+c.level3)]};d.prototype.getValues=function(a,b){var c=b.period,l=2*c,d=3*c,h=a.xData,e=(a=a.yData)?a.length:0,f=-1,g=[],r=[],n=[],B=[],q=[],u,t,k={};this.EMApercent=2/(c+1);if(!(e<3*c-2)){p(a[0])&&(f=b.index?b.index:0);b=m.prototype.accumulatePeriodPoints(c,
70
+ f,a);var x=b/c;b=0;for(u=c;u<e+3;u++){u<e+1&&(k.level1=this.getEMA(a,F,x,f,u)[1],B.push(k.level1));var F=k.level1;if(u<l)b+=k.level1;else{u===l&&(x=b/c,b=0);k.level1=B[u-c-1];k.level2=this.getEMA([k.level1],Q,x)[1];q.push(k.level2);var Q=k.level2;if(u<d)b+=k.level2;else{u===d&&(x=b/c);u===e+1&&(k.level1=B[u-c-1],k.level2=this.getEMA([k.level1],Q,x)[1],q.push(k.level2));k.level1=B[u-c-2];k.level2=q[u-2*c-1];k.level3=this.getEMA([k.level2],k.prevLevel3,x)[1];if(t=this.getTemaPoint(h,d,k,u))g.push(t),
71
+ r.push(t[0]),n.push(t[1]);k.prevLevel3=k.level3}}}return{values:g,xData:r,yData:n}}};d.defaultOptions=t(m.defaultOptions);return d}(m);f.registerSeriesType("tema",e);"";return e});v(f,"Stock/Indicators/TRIX/TRIXIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(h,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=
72
+ b[c])};return e(h,d)};return function(h,d){function a(){this.constructor=h}e(h,d);h.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.tema,k=e.correctFloat,p=e.merge;e=function(e){function h(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(h,e);h.prototype.getTemaPoint=function(d,a,b,c){if(c>a)return[d[c-3],0!==b.prevLevel3?k(b.level3-b.prevLevel3)/b.prevLevel3*100:null]};h.defaultOptions=p(m.defaultOptions);
73
+ return h}(m);f.registerSeriesType("trix",e);"";return e});v(f,"Stock/Indicators/APO/APOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,a){function b(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(b.prototype=
74
+ a.prototype,new b)}}(),m=f.seriesTypes.ema,k=e.extend,p=e.merge,t=e.error;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.prototype.getValues=function(a,b){var c=b.periods,l=b.index;b=[];var d=[],h=[],e;if(2!==c.length||c[1]<=c[0])t('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var f=m.prototype.getValues.call(this,a,{index:l,period:c[0]});a=m.prototype.getValues.call(this,
75
+ a,{index:l,period:c[1]});if(f&&a){c=c[1]-c[0];for(e=0;e<a.yData.length;e++)l=f.yData[e+c]-a.yData[e],b.push([a.xData[e],l]),d.push(a.xData[e]),h.push(l);return{values:b,xData:d,yData:h}}}};d.defaultOptions=p(m.defaultOptions,{params:{period:void 0,periods:[10,20]}});return d}(m);k(e.prototype,{nameBase:"APO",nameComponents:["periods"]});f.registerSeriesType("apo",e);"";return e});v(f,"Stock/Indicators/IKH/IKHIndicator.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],
76
+ f["Core/Utilities.js"]],function(f,e,g,m){function k(a){return a.reduce(function(a,b){return Math.max(a,b[1])},-Infinity)}function p(a){return a.reduce(function(a,b){return Math.min(a,b[2])},Infinity)}function t(a){return{high:k(a),low:p(a)}}function h(a){var b,c,l,d,e;a.series.forEach(function(a){if(a.xData)for(d=a.xData,e=c=a.xIncrement?1:d.length-1;0<e;e--)if(l=d[e]-d[e-1],"undefined"===typeof b||l<b)b=l});return b}function d(a,b,c,l){if(a&&b&&c&&l){var d=b.plotX-a.plotX;b=b.plotY-a.plotY;var e=
77
+ l.plotX-c.plotX;l=l.plotY-c.plotY;var h=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*h+d*w)/(-e*b+d*l);e=(e*w-l*h)/(-e*b+d*l);if(0<=c&&1>=c&&0<=e&&1>=e)return{plotX:a.plotX+e*d,plotY:a.plotY+e*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=y(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;g.seriesTypes.sma.prototype.drawGraph.call(b)}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
78
+ 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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),c=f.parse,l=g.seriesTypes.sma,w=m.defined;f=m.extend;var A=m.isArray,z=m.isNumber,y=m.merge,L=m.objectEach;e.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,l){a.push(e.approximations.average(c));b=!b&&"undefined"===
79
+ typeof a[l]});return b?void 0:a};m=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.graphCollection=void 0;a.graphsenkouSpan=void 0;a.ikhMap=void 0;a.nextPoints=void 0;return a}b(f,e);f.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=y({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,
80
+ fill:c(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:c(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:c(this.color).setOpacity(.2).get()}}},this.options)};f.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};f.prototype.translate=function(){var a=this;g.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var l=b[c];z(l)&&(b["plot"+c]=a.yAxis.toPixels(l,
81
+ !0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};f.prototype.drawGraph=function(){var b=this,c=b.points,l=c.length,e=b.options,h=b.graph,f=b.color,A={options:{gapSize:e.gapSize}},n=b.pointArrayMap.length,r=[[],[],[],[],[],[]],z={tenkanLine:r[0],kijunLine:r[1],chikouLine:r[2],senkouSpanA:r[3],senkouSpanB:r[4],senkouSpan:r[5]},m=[],k=b.options.senkouSpan,t=k.color||k.styles.fill,p=k.negativeColor,x=[[],[]],v=[[],[]],R=0,K,S,O;for(b.ikhMap=z;l--;){var D=c[l];for(K=0;K<n;K++)k=
82
+ b.pointArrayMap[K],w(D[k])&&r[K].push({plotX:D.plotX,plotY:D["plot"+k],isNull:!1});p&&l!==c.length-1&&(k=z.senkouSpanB.length-1,D=d(z.senkouSpanA[k-1],z.senkouSpanA[k],z.senkouSpanB[k-1],z.senkouSpanB[k]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(z.senkouSpanA.splice(k,0,K),z.senkouSpanB.splice(k,0,K),m.push(k)))}L(z,function(a,c){e[c]&&"senkouSpan"!==c&&(b.points=r[R],b.options=y(e[c].styles,A),b.graph=b["graph"+c],b.fillGraph=!1,b.color=f,g.seriesTypes.sma.prototype.drawGraph.call(b),
83
+ b["graph"+c]=b.graph);R++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(p&&z.senkouSpanA[0]&&z.senkouSpanB[0]){m.unshift(0);m.push(z.senkouSpanA.length-1);for(n=0;n<m.length-1;n++){k=m[n];D=m[n+1];l=z.senkouSpanB.slice(k,D+1);k=z.senkouSpanA.slice(k,D+1);if(1<=Math.floor(l.length/2))if(D=Math.floor(l.length/2),l[D].plotY===k[D].plotY){for(O=K=D=0;O<l.length;O++)D+=l[O].plotY,K+=k[O].plotY;D=D>K?0:1}else D=l[D].plotY>k[D].plotY?0:1;
84
+ else D=l[0].plotY>k[0].plotY?0:1;x[D]=x[D].concat(l);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,l){x[l].length&&v[l].length&&(S=0===l?t:p,a({indicator:b,points:x[l],nextPoints:v[l],color:S,options:e,gap:A,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:z.senkouSpanB,nextPoints:z.senkouSpanA,color:t,options:e,gap:A,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
85
+ c;b.options=e;b.graph=h;b.color=f};f.prototype.getGraphPath=function(a){var b=[],c;a=a||this.points;if(this.fillGraph&&this.nextPoints){if((c=g.seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&c.length){c[0][0]="L";b=g.seriesTypes.sma.prototype.getGraphPath.call(this,a);c=c.slice(0,b.length);for(var l=c.length-1;0<=l;l--)b.push(c[l])}}else b=g.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};f.prototype.getValues=function(a,b){var c=b.period,l=b.periodTenkan;
86
+ b=b.periodSenkouSpanB;var d=a.xData,e=a.yData,w=e&&e.length||0;a=h(a.xAxis);var f=[],z=[],n;if(!(d.length<=c)&&A(e[0])&&4===e[0].length){var r=d[0]-c*a;for(n=0;n<c;n++)z.push(r+n*a);for(n=0;n<w;n++){if(n>=l){var g=e.slice(n-l,n);g=t(g);g=(g.high+g.low)/2}if(n>=c){var y=e.slice(n-c,n);y=t(y);y=(y.high+y.low)/2;var q=(g+y)/2}if(n>=b){var k=e.slice(n-b,n);k=t(k);k=(k.high+k.low)/2}r=e[n][3];var m=d[n];"undefined"===typeof f[n]&&(f[n]=[]);"undefined"===typeof f[n+c]&&(f[n+c]=[]);f[n+c][0]=g;f[n+c][1]=
87
+ y;f[n+c][2]=void 0;f[n][2]=r;n<=c&&(f[n+c][3]=void 0,f[n+c][4]=void 0);"undefined"===typeof f[n+2*c]&&(f[n+2*c]=[]);f[n+2*c][3]=q;f[n+2*c][4]=k;z.push(m)}for(n=1;n<=c;n++)z.push(m+n*a);return{values:f,xData:z,yData:f}}};f.defaultOptions=y(l.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>TENKAN SEN: {point.tenkanSen:.3f}<br/>KIJUN SEN: {point.kijunSen:.3f}<br/>CHIKOU SPAN: {point.chikouSpan:.3f}<br/>SENKOU SPAN A: {point.senkouSpanA:.3f}<br/>SENKOU SPAN B: {point.senkouSpanB:.3f}<br/>'},
88
+ tenkanLine:{styles:{lineWidth:1,lineColor:void 0}},kijunLine:{styles:{lineWidth:1,lineColor:void 0}},chikouLine:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanA:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanB:{styles:{lineWidth:1,lineColor:void 0}},senkouSpan:{styles:{fill:"rgba(255, 0, 0, 0.5)"}},dataGrouping:{approximation:"ichimoku-averages"}});return f}(l);f(m.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB",
89
+ "period","periodTenkan"]});g.registerSeriesType("ikh",m);"";return m});v(f,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var d=function(a,b){d=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 d(a,b)};return function(a,
90
+ b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.merge;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};
91
+ a.prototype.getValues=function(a,c){var b=c.period,d=c.periodATR,h=c.multiplierATR,f=a.yData;f=f?f.length:0;var g=[];c=e.seriesTypes.ema.prototype.getValues(a,{period:b,index:c.index});var k=e.seriesTypes.atr.prototype.getValues(a,{period:d}),r=[],n=[],m;if(!(f<b)){for(m=b;m<=f;m++){var q=c.values[m-b];var u=k.values[m-d];var t=q[0];a=p(q[1]+h*u[1]);u=p(q[1]-h*u[1]);q=q[1];g.push([t,a,q,u]);r.push(t);n.push([a,q,u])}return{values:g,xData:r,yData:n}}};a.defaultOptions=h(k.defaultOptions,{params:{index:0,
92
+ period:20,periodATR:10,multiplierATR:2},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Upper Channel: {point.top}<br/>EMA({series.options.params.period}): {point.middle}<br/>Lower Channel: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"},lineWidth:1});return a}(k);t(g.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top",
93
+ "bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);e.registerSeriesType("keltnerchannels",g);"";return g});v(f,"Stock/Indicators/Klinger/KlingerIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
94
+ 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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),k=e.seriesTypes,p=k.sma,t=k.ema,h=g.correctFloat,d=g.error;k=g.extend;var a=g.isArray,b=g.merge;g=function(c){function l(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}m(l,c);
95
+ l.prototype.calculateTrend=function(a,b){return a[b][1]+a[b][2]+a[b][3]>a[b-1][1]+a[b-1][2]+a[b-1][3]?1:-1};l.prototype.isValidData=function(b){var c=this.chart,l=this.options,e=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(l.params.volumeSeriesID)))||d("Series "+l.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);return!(![e,c].every(function(a){return a&&a.xData&&a.xData.length>=l.params.slowAvgPeriod})||!b)};l.prototype.getCM=function(a,
96
+ b,c,l,d){return h(b+(c===l?a:d))};l.prototype.getDM=function(a,b){return h(a-b)};l.prototype.getVolumeForce=function(a){var b=[],c=1;var l=0;var d=a[0][1]-a[0][2];var e=0;for(c;c<a.length;c++){var h=this.calculateTrend(a,c);var f=this.getDM(a[c][1],a[c][2]);l=this.getCM(l,f,h,e,d);e=this.volumeSeries.yData[c]*h*Math.abs(2*(f/l-1))*100;b.push([e]);e=h;d=f}return b};l.prototype.getEMA=function(a,b,c,l,d,e,h){return t.prototype.calculateEma(h||[],a,"undefined"===typeof e?1:e,l,b,"undefined"===typeof d?
97
+ -1:d,c)};l.prototype.getSMA=function(a,b,c){return t.prototype.accumulatePeriodPoints(a,b,c)/a};l.prototype.getValues=function(a,b){var c=[],l=a.xData;a=a.yData;var d=[],e=[],f=[],w,g=0,A=0,k=void 0,m=void 0,t=null;if(this.isValidData(a[0])){var p=this.getVolumeForce(a),x=this.getSMA(b.fastAvgPeriod,0,p),C=this.getSMA(b.slowAvgPeriod,0,p),N=2/(b.fastAvgPeriod+1),v=2/(b.slowAvgPeriod+1);for(g;g<a.length;g++)g>=b.fastAvgPeriod&&(k=A=this.getEMA(p,k,x,N,0,g,l)[1]),g>=b.slowAvgPeriod&&(m=w=this.getEMA(p,
98
+ m,C,v,0,g,l)[1],w=h(A-w),f.push(w),f.length>=b.signalPeriod&&(t=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([l[g],w,t]),d.push(l[g]),e.push([w,t]));return{values:c,xData:d,yData:e}}};l.defaultOptions=b(p.defaultOptions,{params:{fastAvgPeriod:34,slowAvgPeriod:55,signalPeriod:13,volumeSeriesID:"volume"},signalLine:{styles:{lineWidth:1,lineColor:"#ff0000"}},dataGrouping:{approximation:"averages"},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">Klinger</span>: {point.y}<br/><span style="color: {point.series.options.signalLine.styles.lineColor}">Signal</span>: {point.signal}<br/>'}});
99
+ return l}(p);k(g.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(g);e.registerSeriesType("klinger",g);"";return g});v(f,"Stock/Indicators/MACD/MACDIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,l){a=Object.setPrototypeOf||
100
+ {__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,l)};return function(b,l){function c(){this.constructor=b}a(b,l);b.prototype=null===l?Object.create(l):(c.prototype=l.prototype,new c)}}(),k=f.noop,p=e.seriesTypes.sma,t=g.extend,h=g.correctFloat,d=g.defined,a=g.merge;g=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd=
101
+ void 0;a.graphsignal=void 0;a.macdZones=void 0;a.signalZones=void 0;return a}m(c,b);c.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options&&(this.options=a({signalLine:{styles:{lineColor:this.color}},macdLine:{styles:{color:this.color}}},this.options),this.macdZones={zones:this.options.macdLine.zones,startIndex:0},this.signalZones={zones:this.macdZones.zones.concat(this.options.signalLine.zones),startIndex:this.macdZones.zones.length},this.resetZones=!0)};
102
+ c.prototype.toYData=function(a){return[a.y,a.signal,a.MACD]};c.prototype.translate=function(){var a=this,b=["plotSignal","plotMACD"];f.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(l,d){null!==l&&(c[b[d]]=a.yAxis.toPixels(l,!0))})})};c.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();e.seriesTypes.sma.prototype.destroy.apply(this,
103
+ arguments)};c.prototype.drawGraph=function(){for(var b=this,c=b.points,h=c.length,f=b.options,g=b.zones,k={options:{gapSize:f.gapSize}},r=[[],[]],n;h--;)n=c[h],d(n.plotMACD)&&r[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!d(n.plotMACD)}),d(n.plotSignal)&&r[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!d(n.plotMACD)});["macd","signal"].forEach(function(c,l){b.points=r[l];b.options=a(f[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;e.seriesTypes.sma.prototype.drawGraph.call(b);
104
+ b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=g;b.currentLineZone=null};c.prototype.getZonesGraphs=function(a){var c=b.prototype.getZonesGraphs.call(this,a),l=c;this.currentLineZone&&(l=c.splice(this[this.currentLineZone].startIndex+1),l.length?l.splice(0,0,a[0]):l=[a[0]]);return l};c.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;e.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide();
105
+ this.zones=a};c.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,l=0,f=[],g=[],r=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var n=e.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var w=e.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});n=n.values;w=w.values;for(a=0;a<=n.length;a++)d(w[a])&&d(w[a][1])&&d(n[a+c])&&d(n[a+c][0])&&f.push([n[a+c][0],0,null,n[a+c][1]-w[a][1]]);for(a=0;a<f.length;a++)g.push(f[a][0]),r.push([0,
106
+ null,f[a][3]]);b=e.seriesTypes.ema.prototype.getValues({xData:g,yData:r},{period:b.signalPeriod,index:2});b=b.values;for(a=0;a<f.length;a++)f[a][0]>=b[0][0]&&(f[a][2]=b[l][1],r[a]=[0,b[l][1],f[a][3]],null===f[a][3]?(f[a][1]=0,r[a][0]=0):(f[a][1]=h(f[a][3]-b[l][1]),r[a][0]=h(f[a][3]-b[l][1])),l++);return{values:f,xData:g,yData:r}}};c.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],
107
+ styles:{lineWidth:1,lineColor:void 0}},threshold:0,groupPadding:.1,pointPadding:.1,crisp:!1,states:{hover:{halo:{size:0}}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0});return c}(p);t(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
108
+ "signal","MACD"],pointValKey:"y",markerAttribs:k,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});e.registerSeriesType("macd",g);"";return g});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(a){return a.reduce(function(a,b){return a+b})}function m(a){return(a[1]+a[2]+a[3])/3}var k=this&&this.__extends||
109
+ 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)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),p=f.seriesTypes.sma,t=e.extend,h=e.merge,d=e.error,a=e.isArray;e=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
110
+ void 0;return a}k(c,b);c.prototype.getValues=function(b,c){var l=c.period,e=b.xData,h=b.yData,f=h?h.length:0,r=c.decimals,n=1,w=b.chart.get(c.volumeSeriesID),q=w&&w.yData,k=[],t=[],p=[],x=[],F=[];if(!w)d("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(e.length<=l)&&a(h[0])&&4===h[0].length&&q){for(b=m(h[n]);n<l+1;)c=b,b=m(h[n]),c=b>=c,w=b*q[n],x.push(c?w:0),F.push(c?0:w),n++;for(l=n-1;l<f;l++)l>n-1&&(x.shift(),F.shift(),c=b,b=m(h[l]),c=b>c,w=b*q[l],x.push(c?
111
+ w:0),F.push(c?0:w)),c=g(F),w=g(x),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(r)),k.push([e[l],c]),t.push(e[l]),p.push(c);return{values:k,xData:t,yData:p}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return c}(p);t(e.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",e);"";return e});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||
112
+ function(){var e=function(d,a){e=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 e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.extend,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
113
+ return a}g(d,e);d.prototype.getValues=function(a,b){var c=b.period;b=b.index;var d=a.xData,e=(a=a.yData)?a.length:0,h=[],f=[],g=[],k;if(!(d.length<=c)&&p(a[0])){for(k=c+1;k<e;k++){var r=[d[k-1],a[k-1][b]-a[k-c-1][b]];h.push(r);f.push(r[0]);g.push(r[1])}r=[d[k-1],a[k-1][b]-a[k-c-1][b]];h.push(r);f.push(r[0]);g.push(r[1]);return{values:h,xData:f,yData:g}}};d.defaultOptions=t(m.defaultOptions,{params:{index:3}});return d}(m);k(e.prototype,{nameBase:"Momentum"});f.registerSeriesType("momentum",e);"";
114
+ return e});v(f,"Stock/Indicators/NATR/NATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,h){e=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 e(f,h)};return function(f,h){function d(){this.constructor=f}e(f,h);f.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),m=f.seriesTypes.atr,
115
+ k=e.merge;e=function(e){function f(){var h=null!==e&&e.apply(this,arguments)||this;h.data=void 0;h.points=void 0;h.options=void 0;return h}g(f,e);f.prototype.getValues=function(e,d){var a=m.prototype.getValues.apply(this,arguments),b=a.values.length,c=d.period-1,l=e.yData,h=0;if(a){for(;h<b;h++)a.yData[h]=a.values[h][1]/l[c][3]*100,a.values[h][1]=a.yData[h],c++;return a}};f.defaultOptions=k(m.defaultOptions,{tooltip:{valueSuffix:"%"}});return f}(m);f.registerSeriesType("natr",e);"";return e});v(f,
116
+ "Stock/Indicators/OBV/OBVIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var d=function(a,b){d=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 d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),m=f.seriesTypes.sma,k=e.isNumber,
117
+ p=e.error,t=e.extend,h=e.merge;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}g(a,d);a.prototype.getValues=function(a,c){var b=a.chart.get(c.volumeSeriesID),d=a.xData,e=a.yData,h=[],f=[],g=[],r=!k(e[0]),n=1,m=0;if(b){b=b.yData;a=[d[0],m];var q=r?e[0][3]:e[0];h.push(a);f.push(d[0]);g.push(a[1]);for(n;n<e.length;n++)c=r?e[n][3]:e[n],m=c>q?m+b[n]:c===q?m:m-b[n],a=[d[n],m],q=c,h.push(a),f.push(d[n]),g.push(a[1]);return{values:h,
118
+ xData:f,yData:g}}p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=h(m.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(m);t(e.prototype,{nameComponents:void 0});f.registerSeriesType("obv",e);"";return e});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function e(e,g){var k=e.series.pointArrayMap,m=k.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[g].call(e);m--;)g=
119
+ "dataLabel"+k[m],e[g]&&e[g].element&&e[g].destroy(),e[g]=null}var g=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var d in h)h.hasOwnProperty(d)&&(e[d]=h[d])};return e(f,g)};return function(f,g){function k(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(f){function k(){var e=null!==f&&f.apply(this,arguments)||this;e.P=
120
+ void 0;e.pivotLine=void 0;e.series=void 0;return e}g(k,f);k.prototype.destroyElements=function(){e(this,"destroyElements")};k.prototype.destroy=function(){e(this,"destroyElements")};return k}(f.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[f["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
121
+ {__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)}}(),k=e.seriesTypes.sma,p=g.merge,t=g.extend,h=g.defined,d=g.isArray;g=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.endPoint=void 0;b.plotEndPoint=void 0;return b}
122
+ m(b,a);b.prototype.toYData=function(a){return[a.P]};b.prototype.translate=function(){var a=this;e.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){h(b[c])&&(b["plot"+c]=a.yAxis.toPixels(b[c],!0))})});a.plotEndPoint=a.xAxis.toPixels(a.endPoint,!0)};b.prototype.getGraphPath=function(a){for(var b=this,c=a.length,d=[[],[],[],[],[],[],[],[],[]],f=[],g=b.plotEndPoint,k=b.pointArrayMap.length,r,n,m;c--;){n=a[c];for(m=0;m<k;m++)r=b.pointArrayMap[m],
123
+ h(n[r])&&d[m].push({plotX:n.plotX,plotY:n["plot"+r],isNull:!1},{plotX:g,plotY:n["plot"+r],isNull:!1},{plotX:g,plotY:null,isNull:!0});g=n.plotX}d.forEach(function(a){f=f.concat(e.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return f};b.prototype.drawDataLabels=function(){var a=this,b=a.pointArrayMap,d,f,h;if(a.options.dataLabels.enabled){var g=a.points.length;b.concat([!1]).forEach(function(c,l){for(h=g;h--;)f=a.points[h],c?(f.y=f[c],f.pivotLine=c,f.plotY=f["plot"+c],d=f["dataLabel"+c],l&&(f["dataLabel"+
124
+ b[l-1]]=f.dataLabel),f.dataLabels||(f.dataLabels=[]),f.dataLabels[0]=f.dataLabel=d=d&&d.element?d:null):f["dataLabel"+b[l-1]]=f.dataLabel;e.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};b.prototype.getValues=function(a,b){var c=b.period,l=a.xData,e=(a=a.yData)?a.length:0;b=this[b.algorithm+"Placement"];var f=[],h=[],g=[],n;if(!(l.length<c)&&d(a[0])&&4===a[0].length){for(n=c+1;n<=e+c;n+=c){var k=l.slice(n-c-1,n);var q=a.slice(n-c-1,n);var m=k.length;var t=k[m-1];q=this.getPivotAndHLC(q);
125
+ q=b(q);q=f.push([t].concat(q));h.push(t);g.push(f[q-1].slice(1))}this.endPoint=k[0]+(t-k[0])/m*c;return{values:f,xData:h,yData:g}}};b.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,d=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+d)/3,b,c,d]};b.prototype.standardPlacement=function(a){var b=a[1]-a[2];return[null,null,a[0]+b,2*a[0]-a[2],a[0],2*a[0]-a[1],a[0]-b,null,null]};b.prototype.camarillaPlacement=function(a){var b=a[1]-a[2];return[a[3]+
126
+ 1.5*b,a[3]+1.25*b,a[3]+1.1666*b,a[3]+1.0833*b,a[0],a[3]-1.0833*b,a[3]-1.1666*b,a[3]-1.25*b,a[3]-1.5*b]};b.prototype.fibonacciPlacement=function(a){var b=a[1]-a[2];return[null,a[0]+b,a[0]+.618*b,a[0]+.382*b,a[0],a[0]-.382*b,a[0]-.618*b,a[0]-b,null]};b.defaultOptions=p(k.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}});return b}(k);t(g.prototype,
127
+ {nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:f});e.registerSeriesType("pivotpoints",g);"";return g});v(f,"Stock/Indicators/PPO/PPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var d=function(a,b){d=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 d(a,b)};
128
+ return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),m=f.seriesTypes.ema,k=e.correctFloat,p=e.extend,t=e.merge,h=e.error;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(a,d);a.prototype.getValues=function(a,c){var b=c.periods,d=c.index;c=[];var e=[],f=[],g;if(2!==b.length||b[1]<=b[0])h('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');
129
+ else{var t=m.prototype.getValues.call(this,a,{index:d,period:b[0]});a=m.prototype.getValues.call(this,a,{index:d,period:b[1]});if(t&&a){b=b[1]-b[0];for(g=0;g<a.yData.length;g++)d=k((t.yData[g+b]-a.yData[g])/a.yData[g]*100),c.push([a.xData[g],d]),e.push(a.xData[g]),f.push(d);return{values:c,xData:e,yData:f}}}};a.defaultOptions=t(m.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(m);p(e.prototype,{nameBase:"PPO",nameComponents:["periods"]});f.registerSeriesType("ppo",e);"";return e});
130
+ v(f,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(f,e,g){return f.reduce(function(f,k){return[Math.min(f[0],k[e]),Math.max(f[1],k[g])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}});v(f,"Stock/Indicators/PC/PCIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Color/Palettes.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g,m,k){var p=this&&this.__extends||function(){var a=function(b,
131
+ 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 d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=m.seriesTypes.sma,h=k.merge;k=k.extend;var d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(b,a);b.prototype.getValues=
132
+ function(a,b){b=b.period;var c=a.xData,d=(a=a.yData)?a.length:0,e=[],l=[],h=[],g;if(!(d<b)){for(g=b;g<=d;g++){var n=c[g-1];var k=a.slice(g-b,g);var q=f.getArrayExtremes(k,2,1);k=q[1];var m=q[0];q=(k+m)/2;e.push([n,k,q,m]);l.push(n);h.push([k,q,m])}return{values:e,xData:l,yData:h}}};b.defaultOptions=h(t.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:g.colors[2],lineWidth:1}},bottomLine:{styles:{lineColor:g.colors[8],lineWidth:1}},dataGrouping:{approximation:"averages"}});
133
+ return b}(t);k(d.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});e.compose(d);m.registerSeriesType("pc",d);"";return d});v(f,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof
134
+ Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.extend,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.init=function(){f.seriesTypes.sma.prototype.init.apply(this,
135
+ arguments);this.options=t({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};d.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};d.prototype.translate=function(){var a=this,b=["plotTop","plotMiddle","plotBottom"];f.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(c){[c.top,c.middle,c.bottom].forEach(function(d,e){null!==d&&(c[b[e]]=a.yAxis.toPixels(d,!0))})})};d.prototype.drawGraph=function(){for(var a=this,b=a.points,
136
+ c=b.length,d=a.options,e=a.graph,h={options:{gapSize:d.gapSize}},g=[[],[]],k;c--;)k=b[c],g[0].push({plotX:k.plotX,plotY:k.plotTop,isNull:k.isNull}),g[1].push({plotX:k.plotX,plotY:k.plotBottom,isNull:k.isNull});["topLine","bottomLine"].forEach(function(b,c){a.points=g[c];a.options=t(d[b].styles,h);a.graph=a["graph"+b];f.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=b;a.options=d;a.graph=e;f.seriesTypes.sma.prototype.drawGraph.call(a)};d.prototype.getValues=function(a,
137
+ b){var c=b.period,d=b.topBand,e=b.bottomBand,h=a.xData,g=(a=a.yData)?a.length:0,k=[],m=[],r=[],n;if(!(h.length<c)&&p(a[0])&&4===a[0].length){for(n=c;n<=g;n++){var t=h.slice(n-c,n);var q=a.slice(n-c,n);q=f.seriesTypes.sma.prototype.getValues.call(this,{xData:t,yData:q},b);t=q.xData[0];q=q.yData[0];var u=q*(1+d);var P=q*(1-e);k.push([t,u,q,P]);m.push(t);r.push([u,q,P])}return{values:k,xData:m,yData:r}}};d.defaultOptions=t(m.defaultOptions,{marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
138
+ params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return d}(m);k(e.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",e);"";return e});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"],
139
+ f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,k=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||
140
+ this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var b=d.xData;d=d.yData;var c=d[0][1],e=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=d[0][2],k=a.decimals,m=a.index,r=[],n=[],t=[],q=1,u;if(!(m>=d.length)){for(u=0;u<m;u++)c=Math.max(d[u][1],c),g=Math.min(d[u][2],parseFloat(g.toFixed(k)));var p=d[u][1]>g?1:-1;a=a.initialAccelerationFactor;var J=a*(c-g);r.push([b[m],g]);n.push(b[m]);t.push(parseFloat(g.toFixed(k)));for(u=
141
+ m+1;u<d.length;u++){m=d[u-1][2];var x=d[u-2][2];var F=d[u-1][1];var v=d[u-2][1];var C=d[u][1];var N=d[u][2];null!==x&&null!==v&&null!==m&&null!==F&&null!==C&&null!==N&&(g=p===q?1===p?g+J<Math.min(x,m)?g+J:Math.min(x,m):g+J>Math.max(v,F)?g+J:Math.max(v,F):c,m=1===p?C>c?C:c:N<c?N:c,C=1===q&&N>g||-1===q&&C>g?1:-1,q=C,J=m,N=f,x=e,F=h,a=q===p?1===q&&J>c?a===x?x:parseFloat((a+N).toFixed(2)):-1===q&&J<c?a===x?x:parseFloat((a+N).toFixed(2)):a:F,c=m-g,J=a*c,r.push([b[u],parseFloat(g.toFixed(k))]),n.push(b[u]),
142
+ t.push(parseFloat(g.toFixed(k))),q=p,p=C,c=m)}return{values:r,xData:n,yData:t}}};f.defaultOptions=k(m.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}});return f}(m);e(p.prototype,{nameComponents:void 0});f.registerSeriesType("psar",p);"";return p});v(f,"Stock/Indicators/ROC/ROCIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
143
+ e){var g=this&&this.__extends||function(){var e=function(d,a){e=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 e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.isArray,p=e.merge;e=e.extend;var t=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;
144
+ a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=b.period,d=a.xData,e=(a=a.yData)?a.length:0,f=[],h=[],g=[],m=-1;if(!(d.length<=c)){k(a[0])&&(m=b.index);for(b=c;b<e;b++){var r=0>m?(r=a[b-c])?(a[b]-r)/r*100:null:(r=a[b-c][m])?(a[b][m]-r)/r*100:null;r=[d[b],r];f.push(r);h.push(r[0]);g.push(r[1])}return{values:f,xData:h,yData:g}}};d.defaultOptions=p(m.defaultOptions,{params:{index:3,period:9}});return d}(m);e(t.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc",
145
+ t);"";return t});v(f,"Stock/Indicators/RSI/RSIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,
146
+ k=e.isNumber,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var b=a.period,c=d.xData,e=d.yData;d=e?e.length:0;var f=a.decimals,h=1,g=[],m=[],t=[],r=a.index,n=a=0,p;if(!(c.length<b)){if(k(e[0]))var q=e;else r=Math.min(r,e[0].length-1),q=e.map(function(a){return a[r]});for(;h<b;){var u=parseFloat((q[h]-q[h-1]).toFixed(f));0<u?a+=u:n+=Math.abs(u);h++}e=parseFloat((a/
147
+ (b-1)).toFixed(f));for(p=parseFloat((n/(b-1)).toFixed(f));h<d;h++)u=parseFloat((q[h]-q[h-1]).toFixed(f)),0<u?(a=u,n=0):(a=0,n=Math.abs(u)),e=parseFloat(((e*(b-1)+a)/b).toFixed(f)),p=parseFloat(((p*(b-1)+n)/b).toFixed(f)),a=0===p?100:0===e?0:parseFloat((100-100/(1+e/p)).toFixed(f)),g.push([c[h],a]),m.push(c[h]),t.push(a);return{values:g,xData:m,yData:t}}};f.defaultOptions=p(m.defaultOptions,{params:{decimals:4,index:3}});return f}(m);f.registerSeriesType("rsi",e);"";return e});v(f,"Stock/Indicators/Stochastic/StochasticIndicator.js",
148
+ [f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g,m){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,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=
149
+ c.prototype,new d)}}(),p=g.seriesTypes.sma,t=m.extend,h=m.isArray,d=m.merge;m=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(b,a);b.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=d({smoothedLine:{styles:{lineColor:this.color}}},this.options)};b.prototype.getValues=function(a,b){var c=b.periods[0];b=b.periods[1];var d=a.xData,e=(a=a.yData)?a.length:0,l=[],k=[],m=[],n=null,
150
+ t;if(!(e<c)&&h(a[0])&&4===a[0].length){for(t=c-1;t<e;t++){var q=a.slice(t-c+1,t+1);var u=f.getArrayExtremes(q,2,1);var p=u[0];q=a[t][3]-p;p=u[1]-p;q=q/p*100;k.push(d[t]);m.push([q,null]);t>=c-1+(b-1)&&(n=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-b),yData:m.slice(-b)},{period:b}),n=n.yData[0]);l.push([d[t],q,n]);m[m.length-1][1]=n}return{values:l,xData:k,yData:m}}};b.defaultOptions=d(p.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},
151
+ smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);t(m.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});e.compose(m);g.registerSeriesType("stochastic",m);"";return m});v(f,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
152
+ e){var g=this&&this.__extends||function(){var e=function(d,a){e=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 e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.stochastic,k=f.seriesTypes,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
153
+ void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=b.periods,d=k.stochastic.prototype.getValues.call(this,a,b);a={values:[],xData:[],yData:[]};b=0;if(d){a.xData=d.xData.slice(c[1]-1);d=d.yData.slice(c[1]-1);var e=k.sma.prototype.getValues.call(this,{xData:a.xData,yData:d},{index:1,period:c[2]});if(e){for(var f=a.xData.length;b<f;b++)a.yData[b]=[d[b][1],e.yData[b-c[2]+1]||null],a.values[b]=[a.xData[b],d[b][1],e.yData[b-c[2]+1]||null];return a}}};d.defaultOptions=
154
+ t(m.defaultOptions,{params:{periods:[14,3,3]}});return d}(m);p(e.prototype,{nameBase:"Slow Stochastic"});f.registerSeriesType("slowstochastic",e);"";return e});v(f,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,e,g){function m(a,b,c){return{index:b,close:a.yData[b][c],x:a.xData[b]}}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
155
+ 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)}}(),p=f.seriesTypes,t=p.atr,h=p.sma,d=e.addEvent,a=e.correctFloat,b=e.isArray;p=e.extend;var c=e.merge,l=e.objectEach;e=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;return a}
156
+ k(f,e);f.prototype.init=function(){var a;h.prototype.init.apply(this,arguments);var b=this,c=d(g,"afterLinkSeries",function(){if(b.options){var d=b.options;a=b.linkedParent.options;d.cropThreshold=a.cropThreshold-(d.params.period-1)}c()},{order:1})};f.prototype.drawGraph=function(){var a=this,b=a.options,d=a.linkedParent,e=d?d.points:[],f=a.points,g=a.graph,k=f.length,u=e.length-k;u=0<u?u:0;for(var t={options:{gapSize:b.gapSize}},p={top:[],bottom:[],intersect:[]},w={top:{styles:{lineWidth:b.lineWidth,
157
+ lineColor:b.fallingTrendColor||b.color,dashStyle:b.dashStyle}},bottom:{styles:{lineWidth:b.lineWidth,lineColor:b.risingTrendColor||b.color,dashStyle:b.dashStyle}},intersect:b.changeTrendLine},A,x,C,v,E,G,H,I;k--;)A=f[k],x=f[k-1],C=e[k-1+u],v=e[k-2+u],E=e[k+u],G=e[k+u+1],H=A.options.color,I={x:A.x,plotX:A.plotX,plotY:A.plotY,isNull:!1},!v&&C&&d.yData[C.index-1]&&(v=m(d,C.index-1,3)),!G&&E&&d.yData[E.index+1]&&(G=m(d,E.index+1,3)),!C&&v&&d.yData[v.index+1]?C=m(d,v.index+1,3):!C&&E&&d.yData[E.index-
158
+ 1]&&(C=m(d,E.index-1,3)),A&&C&&E&&v&&A.x!==C.x&&(A.x===E.x?(v=C,C=E):A.x===v.x?(C=v,v={close:d.yData[C.index-1][3],x:d.xData[C.index-1]}):G&&A.x===G.x&&(C=G,v=E)),x&&v&&C?(E={x:x.x,plotX:x.plotX,plotY:x.plotY,isNull:!1},A.y>=C.close&&x.y>=v.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):A.y<C.close&&x.y<v.close?(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)):(p.intersect.push(I),p.intersect.push(E),p.intersect.push(c(E,{isNull:!0})),A.y>=C.close&&x.y<v.close?(A.color=H||b.fallingTrendColor||
159
+ b.color,x.color=H||b.risingTrendColor||b.color,p.top.push(I),p.top.push(c(E,{isNull:!0}))):A.y<C.close&&x.y>=v.close&&(A.color=H||b.risingTrendColor||b.color,x.color=H||b.fallingTrendColor||b.color,p.bottom.push(I),p.bottom.push(c(E,{isNull:!0}))))):C&&(A.y>=C.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)));l(p,function(b,d){a.points=b;a.options=c(w[d].styles,t);a.graph=a["graph"+d+"Line"];h.prototype.drawGraph.call(a);a["graph"+
160
+ d+"Line"]=a.graph});a.points=f;a.options=b;a.graph=g};f.prototype.getValues=function(c,d){var e=d.period;d=d.multiplier;var f=c.xData,l=c.yData,h=[],g=[],k=[],m=0===e?0:e-1,p=[],w=[],z;if(!(f.length<=e||!b(l[0])||4!==l[0].length||0>e)){c=t.prototype.getValues.call(this,c,{period:e}).yData;for(z=0;z<c.length;z++){var y=l[m+z];var A=l[m+z-1]||[];var x=p[z-1];var v=w[z-1];var G=k[z-1];0===z&&(x=v=G=0);e=a((y[1]+y[2])/2+d*c[z]);var H=a((y[1]+y[2])/2-d*c[z]);p[z]=e<x||A[3]>x?e:x;w[z]=H>v||A[3]<v?H:v;if(G===
161
+ x&&y[3]<p[z]||G===v&&y[3]<w[z])var I=p[z];else if(G===x&&y[3]>p[z]||G===v&&y[3]>w[z])I=w[z];h.push([f[m+z],I]);g.push(f[m+z]);k.push(I)}return{values:h,xData:g,yData:k}}};f.defaultOptions=c(h.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return f}(h);p(e.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend",
162
+ e);"";return e});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(f,g)};return function(f,g){function k(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(e){function k(){return null!==
163
+ e&&e.apply(this,arguments)||this}g(k,e);k.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return k}(e.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/VBP/VBPIndicator.js",[f["Stock/Indicators/VBP/VBPPoint.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,e,g,m,k,
164
+ p){var t=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 d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),h=e.animObject;e=g.noop;var d=m.seriesTypes.sma,a=k.addEvent,b=k.arrayMax,c=k.arrayMin,l=k.correctFloat,w=k.defined,A=k.error,z=k.extend,y=k.isArray,
165
+ v=k.merge,r=Math.abs,n=m.seriesTypes.column.prototype;k=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}t(f,e);f.prototype.init=function(b){var c=this,d,e,f;g.seriesTypes.sma.prototype.init.apply(c,arguments);var l=a(p,"afterLinkSeries",function(){c.options&&(d=c.options.params,
166
+ e=c.linkedParent,f=b.get(d.volumeSeriesID),c.addCustomEvents(e,f));l()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function d(){e.chart.redraw();e.setData([]);e.zoneStarts=[];e.zoneLinesSVG&&(e.zoneLinesSVG=e.zoneLinesSVG.destroy())}var e=this;e.dataEventsToUnbind.push(a(b,"remove",function(){d()}));c&&e.dataEventsToUnbind.push(a(c,"remove",function(){d()}));return e};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,d=b.group,e={};!a&&d&&(a=c?b.yAxis.top:b.xAxis.left,
167
+ c?(d["forceAnimate:translateY"]=!0,e.translateY=a):(d["forceAnimate:translateX"]=!0,e.translateX=a),d.animate(e,z(h(b.options.animation),{step:function(a,c){b.group.attr({scaleX:Math.max(.001,c.pos)})}})))};f.prototype.drawPoints=function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),n.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));n.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],d=this.options.volumeDivision,
168
+ e=this.points.length,f=[],l=[],h=0,g;a?(this.posWidths=f,this.negWidths=l):(f=this.posWidths,l=this.negWidths);for(;h<e;h++){var n=this.points[h];n[c[0]+"Graphic"]=n.graphic;n.graphic=n[c[1]+"Graphic"];if(a){var k=n.shapeArgs.width;var m=this.priceZones[h];(g=m.wholeVolumeData)?(f.push(k/g*m.positiveVolumeData),l.push(k/g*m.negativeVolumeData)):(f.push(0),l.push(0))}n.color=b?d.styles.positiveColor:d.styles.negativeColor;n.shapeArgs.width=b?this.posWidths[h]:this.negWidths[h];n.shapeArgs.x=b?n.shapeArgs.x:
169
+ this.posWidths[h]}};f.prototype.translate=function(){var a=this,c=a.options,d=a.chart,e=a.yAxis,f=e.min,h=a.options.zoneLines,g=a.priceZones,k=0,m,q,t;n.translate.apply(a);var p=a.points;if(p.length){var w=.5>c.pointPadding?c.pointPadding:.1;c=a.volumeDataArray;var z=b(c);var y=d.plotWidth/2;var A=d.plotTop;var B=r(e.toPixels(f)-e.toPixels(f+a.rangeStep));var v=r(e.toPixels(f)-e.toPixels(f+a.rangeStep));w&&(f=r(B*(1-2*w)),k=r((B-f)/2),B=r(f));p.forEach(function(b,c){q=b.barX=b.plotX=0;t=b.plotY=e.toPixels(g[c].start)-
170
+ A-(e.reversed?B-v:B)-k;m=l(y*g[c].wholeVolumeData/z);b.pointWidth=m;b.shapeArgs=a.crispCol.apply(a,[q,t,m,B]);b.volumeNeg=g[c].negativeVolumeData;b.volumePos=g[c].positiveVolumeData;b.volumeAll=g[c].wholeVolumeData});h.enabled&&a.drawZones(d,e,a.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,d=a.processedYData,e=this.chart,f=b.ranges,l=[],h=[],g=[],n;if(a.chart)if(n=e.get(b.volumeSeriesID))if((b=y(d[0]))&&4!==d[0].length)A("Type of "+a.name+" series is different than line, OHLC or candlestick.",
171
+ !0,e);else return(this.priceZones=this.specifyZones(b,c,d,f,n)).forEach(function(a,b){l.push([a.x,a.end]);h.push(l[b][0]);g.push(l[b][1])}),{values:l,xData:h,yData:g};else A("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e);else A("Base series not found! In case it has been removed, add a new one.",!0,e)};f.prototype.specifyZones=function(a,d,e,f,h){if(a){var g=e.length;for(var n=e[0][3],k=n,m=1,r;m<g;m++)r=e[m][3],r<n&&(n=r),r>k&&(k=r);g={min:n,max:k}}else g=!1;g=(n=g)?n.min:
172
+ c(e);r=n?n.max:b(e);n=this.zoneStarts=[];k=[];var q=0;m=1;var t=this.linkedParent;!this.options.compareToMain&&t.dataModify&&(g=t.dataModify.modifyValue(g),r=t.dataModify.modifyValue(r));if(!w(g)||!w(r))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];t=this.rangeStep=l(r-g)/f;for(n.push(g);q<f-1;q++)n.push(l(n[q]+t));n.push(r);for(f=n.length;m<f;m++)k.push({index:m-1,x:d[0],start:n[m-1],end:n[m]});return this.volumePerZone(a,
173
+ k,h,d,e)};f.prototype.volumePerZone=function(a,b,c,d,e){var f=this,l=c.processedXData,h=c.processedYData,g=b.length-1,n=e.length;c=h.length;var k,m,q,t,p;r(n-c)&&(d[0]!==l[0]&&h.unshift(0),d[n-1]!==l[c-1]&&h.push(0));f.volumeDataArray=[];b.forEach(function(b){b.wholeVolumeData=0;b.positiveVolumeData=0;for(p=b.negativeVolumeData=0;p<n;p++){q=m=!1;t=a?e[p][3]:e[p];k=p?a?e[p-1][3]:e[p-1]:t;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(t=c.dataModify.modifyValue(t),k=c.dataModify.modifyValue(k));
174
+ t<=b.start&&0===b.index&&(m=!0);t>=b.end&&b.index===g&&(q=!0);(t>b.start||m)&&(t<b.end||q)&&(b.wholeVolumeData+=h[p],k>t?b.negativeVolumeData+=h[p]:b.positiveVolumeData+=h[p])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,d){var e=a.renderer,f=this.zoneLinesSVG,l=[],h=a.plotWidth,g=a.plotTop,n;c.forEach(function(c){n=b.toPixels(c)-g;l=l.concat(a.renderer.crispLine([["M",0,n],["L",h,n]],d.lineWidth))});f?f.animate({d:l}):f=this.zoneLinesSVG=e.path(l).attr({"stroke-width":d.lineWidth,
175
+ stroke:d.color,dashstyle:d.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(d.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1E3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{allowOverlap:!0,
176
+ enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(d);z(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:e,drawGraph:e,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});m.registerSeriesType("vbp",k);"";return k});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
177
+ function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=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 e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.error,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
178
+ void 0;a.points=void 0;a.options=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=a.chart,d=a.xData;a=a.yData;var e=b.period,f=!0,h;if(h=c.get(b.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,d,a,h,e);k("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,c)};d.prototype.calculateVWAPValues=function(a,b,c,d,e){var f=d.yData,l=d.xData.length,h=b.length;d=[];var g=[],k=[],n=[],m=[],q;l=h<=l?h:l;for(q=h=0;h<l;h++){var t=a?(c[h][1]+c[h][2]+c[h][3])/3:
179
+ c[h];t*=f[h];t=q?d[h-1]+t:t;var p=q?g[h-1]+f[h]:f[h];d.push(t);g.push(p);m.push([b[h],t/p]);k.push(m[h][0]);n.push(m[h][1]);q++;q===e&&(q=0)}return{values:m,xData:k,yData:n}};d.defaultOptions=t(m.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return d}(m);f.registerSeriesType("vwap",e);"";return e});v(f,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=
180
+ this&&this.__extends||function(){var d=function(a,b){d=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 d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.sma,p=g.extend,t=g.isArray,h=g.merge;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=
181
+ void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){c=c.period;var b=a.xData,d=(a=a.yData)?a.length:0,e=[],h=[],g=[],k;if(!(b.length<c)&&t(a[0])&&4===a[0].length){for(k=c-1;k<d;k++){var m=a.slice(k-c+1,k+1);var n=f.getArrayExtremes(m,2,1);m=n[0];n=n[1];var p=a[k][3];m=(n-p)/(n-m)*-100;b[k]&&(e.push([b[k],m]),h.push(b[k]),g.push(m))}return{values:e,xData:h,yData:g}}};a.defaultOptions=h(k.defaultOptions,{params:{index:void 0,period:14}});return a}(k);p(g.prototype,{nameBase:"Williams %R"});
182
+ e.registerSeriesType("williamsr",g);"";return g});v(f,"Stock/Indicators/WMA/WMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(d,a){a*=(a+1)/2;return d.reduce(function(a,c,d){return[null,a[1]+c[1]*(d+1)]})[1]/a}function m(d,a,b,c){b=g(d,d.length);a=a[c-1];d.shift();return[a,b]}var k=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
183
+ (a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),p=f.seriesTypes.sma,t=e.isArray,h=e.merge;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,d);a.prototype.getValues=function(a,c){var b=c.period,d=a.xData,e=(a=a.yData)?a.length:0,f=1,h=d[0],g=a[0],k=[],n=[],p=[],q=-1;if(!(d.length<b)){t(a[0])&&(q=c.index,
184
+ g=a[0][q]);for(c=[[h,g]];f!==b;)c.push([d[f],0>q?a[f]:a[f][q]]),f++;for(b=f;b<e;b++)f=m(c,d,a,b),k.push(f),n.push(f[0]),p.push(f[1]),c.push([d[b],0>q?a[b]:a[b][q]]);f=m(c,d,a,b);k.push(f);n.push(f[0]);p.push(f[1]);return{values:k,xData:n,yData:p}}};a.defaultOptions=h(p.defaultOptions,{params:{index:3,period:9}});return a}(p);f.registerSeriesType("wma",e);"";return e});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&
185
+ this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,k=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=
186
+ void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var b=a.lowIndex,c=a.highIndex,e=a.deviation/100;a=1+e;var f=1-e;e=d.xData;var h=d.yData;d=h?h.length:0;var g=[],k=[],m=[],r,n,t=!1,q=!1;if(!(!e||1>=e.length||d&&("undefined"===typeof h[0][b]||"undefined"===typeof h[0][c]))){var p=h[0][b];var v=h[0][c];for(r=1;r<d;r++){if(h[r][b]<=v*f){g.push([e[0],v]);var x=[e[r],h[r][b]];t=n=!0}else h[r][c]>=p*a&&(g.push([e[0],p]),x=[e[r],h[r][c]],n=!1,t=!0);if(t){k.push(g[0][0]);m.push(g[0][1]);var M=r++;
187
+ r=d}}for(r=M;r<d;r++)n?(h[r][b]<=x[1]&&(x=[e[r],h[r][b]]),h[r][c]>=x[1]*a&&(q=c)):(h[r][c]>=x[1]&&(x=[e[r],h[r][c]]),h[r][b]<=x[1]*f&&(q=b)),!1!==q&&(g.push(x),k.push(x[0]),m.push(x[1]),x=[e[r],h[r][q]],n=!n,q=!1);b=g.length;0!==b&&g[b-1][0]<e[d-1]&&(g.push(x),k.push(x[0]),m.push(x[1]));return{values:g,xData:k,yData:m}}};f.defaultOptions=k(m.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}});return f}(m);e(p.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
188
+ nameBase:"Zig Zag"});f.registerSeriesType("zigzag",p);"";return p});v(f,"Stock/Indicators/LinearRegression/LinearRegression.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=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 e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===
189
+ a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.isArray,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getRegressionLineParameters=function(a,b){var c=this.options.params.index,d=function(a,b){return k(a)?a[b]:a},e=a.reduce(function(a,b){return b+a},0),f=b.reduce(function(a,b){return d(b,c)+a},0);e/=a.length;f/=b.length;var h=0,g=0,m;for(m=0;m<a.length;m++){var r=
190
+ a[m]-e;var n=d(b[m],c)-f;h+=r*n;g+=Math.pow(r,2)}a=g?h/g:0;return{slope:a,intercept:f-a*e}};d.prototype.getEndPointY=function(a,b){return a.slope*b+a.intercept};d.prototype.transformXData=function(a,b){var c=a[0];return a.map(function(a){return(a-c)/b})};d.prototype.findClosestDistance=function(a){var b,c;for(c=1;c<a.length-1;c++){var d=a[c]-a[c-1];0<d&&("undefined"===typeof b||d<b)&&(b=d)}return b};d.prototype.getValues=function(a,b){var c=a.xData;a=a.yData;b=b.period;var d,e={xData:[],yData:[],
191
+ values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(c);for(d=b-1;d<=c.length-1;d++){var h=d-b+1;var g=d+1;var k=c[d];var m=c.slice(h,g);h=a.slice(h,g);g=this.transformXData(m,f);m=this.getRegressionLineParameters(g,h);h=this.getEndPointY(m,g[g.length-1]);e.values.push({regressionLineParameters:m,x:k,y:h});e.xData.push(k);e.yData.push(h)}return e};d.defaultOptions=t(m.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return d}(m);p(e.prototype,{nameBase:"Linear Regression Indicator"});
192
+ f.registerSeriesType("linearRegression",e);"";return e});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===
193
+ d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.linearRegression,k=e.extend,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(f,e);f.prototype.getEndPointY=function(d){return d.slope};f.defaultOptions=p(m.defaultOptions);return f}(m);k(e.prototype,{nameBase:"Linear Regression Slope Indicator"});f.registerSeriesType("linearRegressionSlope",e);"";return e});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",
194
+ [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.linearRegression,k=e.extend,p=e.merge;e=function(e){function f(){var d=
195
+ null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(f,e);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(m.defaultOptions);return f}(m);k(e.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",e);"";return e});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||
196
+ function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.linearRegression,k=e.extend,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;
197
+ return d}g(f,e);f.prototype.slopeToAngle=function(d){return 180/Math.PI*Math.atan(d)};f.prototype.getEndPointY=function(d){return this.slopeToAngle(d.slope)};f.defaultOptions=p(m.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span>{series.name}: <b>{point.y}\u00b0</b><br/>'}});return f}(m);k(e.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",e);"";return e});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
198
+ f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var m=this&&this.__extends||function(){var d=function(a,b){d=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 d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.merge;g=function(d){function a(){var a=
199
+ null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){var b=c.period,e=c.factor;c=c.index;var f=a.xData,h=(a=a.yData)?a.length:0,g=[],k=[],m=[],n=[],t=[],q;if(!(h<b)){for(q=0;q<=h;q++){if(q<h){var u=a[q][2];var v=a[q][1];var x=e;u=p(v-u)/(p(v+u)/2)*1E3*x;g.push(a[q][1]*p(1+2*u));k.push(a[q][2]*p(1-2*u))}if(q>=b){u=f.slice(q-b,q);var M=a.slice(q-b,q);x=d.prototype.getValues.call(this,{xData:u,yData:g.slice(q-b,q)},
200
+ {period:b});v=d.prototype.getValues.call(this,{xData:u,yData:k.slice(q-b,q)},{period:b});M=d.prototype.getValues.call(this,{xData:u,yData:M},{period:b,index:c});u=M.xData[0];x=x.yData[0];v=v.yData[0];M=M.yData[0];m.push([u,x,M,v]);n.push(u);t.push([x,M,v])}}return{values:m,xData:n,yData:t}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k);
201
+ t(g.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);e.registerSeriesType("abands",g);"";return g});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof
202
+ Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,k=e.extend,p=e.merge,t=e.isArray;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,b){var c=a.xData,d=a.yData;a=[];
203
+ var e=[],f=[],g=0,h=0,k=0,m=0,n=c.length,p=b.index;for(b=0;b<n;b++){var q=c[b];var u=t(d[b])?d[b][p]:d[b];g+=q;h+=u;k+=q*u;m+=q*q}d=(n*k-g*h)/(n*m-g*g);isNaN(d)&&(d=0);g=(h-d*g)/n;for(b=0;b<n;b++)q=c[b],u=d*q+g,a[b]=[q,u],e[b]=q,f[b]=u;return{xData:e,yData:f,values:a}};d.defaultOptions=p(m.defaultOptions,{params:{period:void 0,index:3}});return d}(m);k(e.prototype,{nameBase:"Trendline",nameComponents:!1});f.registerSeriesType("trendline",e);"";return e});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",
204
+ [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=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 d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),m=f.seriesTypes.sma,k=e.correctFloat,p=e.defined,t=e.extend,h=e.isArray,
205
+ d=e.merge;e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.averageIndicator=void 0;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.init=function(){var a=arguments,b=a[1].params;this.averageIndicator=f.seriesTypes[b&&b.average?b.average:void 0]||m;this.averageIndicator.prototype.init.apply(this,a)};b.prototype.calculateDisparityIndex=function(a,b){return k(a-b)/b*100};b.prototype.getValues=function(a,b){var c=b.index,d=a.xData,e=a.yData,f=e?e.length:
206
+ 0,g=[],k=[],l=[],m=this.averageIndicator,q=h(e[0]);b=m.prototype.getValues(a,b);a=b.yData;b=d.indexOf(b.xData[0]);if(a&&0!==a.length&&p(c)&&!(e.length<=b)){for(m=b;m<f;m++){var t=this.calculateDisparityIndex(q?e[m][c]:e[m],a[m-b]);g.push([d[m],t]);k.push(d[m]);l.push(t)}return{values:g,xData:k,yData:l}}};b.defaultOptions=d(m.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return b}(m);t(e.prototype,{nameBase:"Disparity Index",nameComponents:["period",
207
+ "average"]});f.registerSeriesType("disparityindex",e);"";return e});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
206
208
  //# sourceMappingURL=indicators-all.js.map