@arcgis/map-components 5.1.0-next.67 → 5.1.0-next.69

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 (952) hide show
  1. package/dist/cdn/26YULGVH.js +2 -0
  2. package/dist/cdn/{CZBL3BHP.js → 27WV5J34.js} +1 -1
  3. package/dist/cdn/{JUGI6ZHE.js → 2LS5R3PM.js} +1 -1
  4. package/dist/cdn/{DNVRUQQJ.js → 2LXV6D75.js} +1 -1
  5. package/dist/cdn/{3GY55TR6.js → 2MYNJXEY.js} +1 -1
  6. package/dist/cdn/{44656MLH.js → 2WF4WNUR.js} +1 -1
  7. package/dist/cdn/{Q7A26JOA.js → 2WHY4YB2.js} +1 -1
  8. package/dist/cdn/3CVTKTEM.js +2 -0
  9. package/dist/cdn/{YHE55KJH.js → 3CWU2M6P.js} +1 -1
  10. package/dist/cdn/3HYZ3J2E.js +2 -0
  11. package/dist/cdn/3VPFQE6G.js +2 -0
  12. package/dist/cdn/{TG5F5A54.js → 3VWI2QAE.js} +1 -1
  13. package/dist/cdn/{KPRNX26Z.js → 424E3ISJ.js} +1 -1
  14. package/dist/cdn/47FIWQPQ.js +2 -0
  15. package/dist/cdn/{VVH7GCP4.js → 5AMQUR3Y.js} +1 -1
  16. package/dist/cdn/{WMN5N64R.js → 5EDTZDKU.js} +1 -1
  17. package/dist/cdn/{AM6N7CN5.js → 5HR7B5NO.js} +1 -1
  18. package/dist/cdn/{AYREN7H2.js → 5I6LOZCQ.js} +1 -1
  19. package/dist/cdn/{M63AKZPJ.js → 5LCSIG36.js} +1 -1
  20. package/dist/cdn/{EVSVWHGJ.js → 5UTYUFXH.js} +1 -1
  21. package/dist/cdn/{GHXGJXQK.js → 5XXWQB2C.js} +1 -1
  22. package/dist/cdn/{RH62B2NE.js → 6ADPAEGR.js} +1 -1
  23. package/dist/cdn/{MUYYEML3.js → 6D34KEAO.js} +1 -1
  24. package/dist/cdn/6FJ77YZH.js +2 -0
  25. package/dist/cdn/{VEYOGGAN.js → 6L32XZYR.js} +1 -1
  26. package/dist/cdn/{BKJNK6JJ.js → 6Q7EKK7O.js} +1 -1
  27. package/dist/cdn/{APWSI2QO.js → 6SBMID5Q.js} +1 -1
  28. package/dist/cdn/{WUZAT6NZ.js → 7ALS3HEK.js} +1 -1
  29. package/dist/cdn/{LOHKXYLL.js → 7AREGYOK.js} +1 -1
  30. package/dist/cdn/{NGBYLAYA.js → 7BZNRCLO.js} +1 -1
  31. package/dist/cdn/{DFVVN6LY.js → 7KJBT73F.js} +1 -1
  32. package/dist/cdn/{TG6AYAEJ.js → 7QTTIN5U.js} +1 -1
  33. package/dist/cdn/{DB3JNXSZ.js → 7R4BQSOG.js} +1 -1
  34. package/dist/cdn/7U7B6UIM.js +2 -0
  35. package/dist/cdn/{4VSJJWSB.js → 7ZYZT2ZT.js} +1 -1
  36. package/dist/cdn/{6XPVHLWQ.js → A22L5XP5.js} +1 -1
  37. package/dist/cdn/{JY6OWU4D.js → AIHYHQVQ.js} +1 -1
  38. package/dist/cdn/{PO5SQESY.js → AJKXIDVY.js} +1 -1
  39. package/dist/cdn/{EKCNBSPI.js → ALWSDNIK.js} +1 -1
  40. package/dist/cdn/{5GKNWU7B.js → ATJ4RJ56.js} +1 -1
  41. package/dist/cdn/B3QFNDYL.js +2 -0
  42. package/dist/cdn/{CUTQCF6H.js → BCDMYIXN.js} +1 -1
  43. package/dist/cdn/{XC7W7UMA.js → BG4QZ6FT.js} +1 -1
  44. package/dist/cdn/{RUGGPMON.js → BG4R6MHS.js} +1 -1
  45. package/dist/cdn/{SDI7N4ZV.js → BGHH7STQ.js} +1 -1
  46. package/dist/cdn/{UYESP4DR.js → BIS4SV2Y.js} +1 -1
  47. package/dist/cdn/{WYAY6TFB.js → BLSH2TKA.js} +1 -1
  48. package/dist/cdn/{OFYWZMKH.js → BNFX23ZC.js} +1 -1
  49. package/dist/cdn/BOUPAXNN.js +2 -0
  50. package/dist/cdn/{6X4IT524.js → BUGROO2G.js} +1 -1
  51. package/dist/cdn/{Y7YQCKAB.js → BW2UUEYI.js} +1 -1
  52. package/dist/cdn/{NQXFCBXL.js → BWSZAIZQ.js} +1 -1
  53. package/dist/cdn/C754LGYG.js +2 -0
  54. package/dist/cdn/{ZBESWKYE.js → C77J5JUC.js} +1 -1
  55. package/dist/cdn/{SU2JALCX.js → CJ6IBOJ5.js} +1 -1
  56. package/dist/cdn/{E4LZ4BZR.js → CKVLB3XA.js} +1 -1
  57. package/dist/cdn/{HVWIAEX3.js → CTSCS76S.js} +1 -1
  58. package/dist/cdn/{JYGESXIB.js → CZXV4SOK.js} +1 -1
  59. package/dist/cdn/{A7E2ZB72.js → D3FV73MF.js} +1 -1
  60. package/dist/cdn/{A2QPYUE5.js → DLRTY3IJ.js} +1 -1
  61. package/dist/cdn/EDRZJRK5.js +2 -0
  62. package/dist/cdn/{44FWGSTP.js → EHDORNRZ.js} +1 -1
  63. package/dist/cdn/EHPTNHKY.js +2 -0
  64. package/dist/cdn/{OHR5BDB7.js → ELQ73UGA.js} +1 -1
  65. package/dist/cdn/{UE3GOL7R.js → EQ5BRWH3.js} +1 -1
  66. package/dist/cdn/{XASET2R4.js → F4QNNHC3.js} +1 -1
  67. package/dist/cdn/{IMCNULAQ.js → F63Q67RE.js} +1 -1
  68. package/dist/cdn/{4PL2TVYS.js → F6WE2EMP.js} +1 -1
  69. package/dist/cdn/{2VNCC7JJ.js → FNE6RBFO.js} +1 -1
  70. package/dist/cdn/{PWZKHMDW.js → GD4PRKBJ.js} +1 -1
  71. package/dist/cdn/{E6FHR3YE.js → GGCCMFKT.js} +1 -1
  72. package/dist/cdn/{53OD4CPO.js → GGCGUXPV.js} +1 -1
  73. package/dist/cdn/GGISUI3P.js +2 -0
  74. package/dist/cdn/{M3PG4DQJ.js → GGJ5ZCTT.js} +1 -1
  75. package/dist/cdn/{XJDIOWI6.js → GUCMN5EI.js} +1 -1
  76. package/dist/cdn/{JA2CZ3IK.js → GVGNJ4MC.js} +1 -1
  77. package/dist/cdn/{OCDQLRC7.js → GYWFYNDN.js} +1 -1
  78. package/dist/cdn/{36CPKVVG.js → H3XYXMXV.js} +1 -1
  79. package/dist/cdn/{K4H4P6Q7.js → H7HGAAEH.js} +1 -1
  80. package/dist/cdn/{6GAA253B.js → HDOGOI3D.js} +1 -1
  81. package/dist/cdn/{RGCYWRGG.js → HEQZDCK3.js} +1 -1
  82. package/dist/cdn/{RSLWJGF3.js → HHDRUUWX.js} +1 -1
  83. package/dist/cdn/{HUG6AEWA.js → HIIPGBJE.js} +1 -1
  84. package/dist/cdn/{P6QVPLW7.js → HUH5F3ZW.js} +1 -1
  85. package/dist/cdn/{4MJLQALU.js → HURMARWG.js} +1 -1
  86. package/dist/cdn/{373Q2CKM.js → I2VPAZ7F.js} +1 -1
  87. package/dist/cdn/{DCEOZGZR.js → I2YKHENR.js} +1 -1
  88. package/dist/cdn/{P2ABZVPJ.js → I747LK4V.js} +1 -1
  89. package/dist/cdn/{XEKQHNGL.js → I7ZNRSUB.js} +1 -1
  90. package/dist/cdn/{HEYJQH2N.js → ICR4VQWX.js} +1 -1
  91. package/dist/cdn/{VW5576XX.js → IE3Y7B73.js} +1 -1
  92. package/dist/cdn/{DP5VKEC3.js → IL7ADRLR.js} +1 -1
  93. package/dist/cdn/{SSMVW7KK.js → ITPPGP4R.js} +1 -1
  94. package/dist/cdn/IWFEKAA3.js +2 -0
  95. package/dist/cdn/{OJ7GUBDC.js → IWX54YJZ.js} +1 -1
  96. package/dist/cdn/{HAANAX6A.js → IYJIYOTY.js} +1 -1
  97. package/dist/cdn/{ABIHKJ63.js → IYSSUJO4.js} +1 -1
  98. package/dist/cdn/{FPNA4IRO.js → IYWHFZTH.js} +1 -1
  99. package/dist/cdn/{QLX5E2LL.js → JBSDSKPF.js} +1 -1
  100. package/dist/cdn/{UFQLQYEU.js → JW7HJN7F.js} +1 -1
  101. package/dist/cdn/{KSZTXC6M.js → JWSVUJPT.js} +1 -1
  102. package/dist/cdn/{BWS32BYZ.js → K34DTIR5.js} +1 -1
  103. package/dist/cdn/{7SKT3UBQ.js → K63UOGTP.js} +1 -1
  104. package/dist/cdn/{Y2WPTYT5.js → K7T44WB6.js} +2 -2
  105. package/dist/cdn/{HDOHBNMQ.js → KQCOZGBY.js} +1 -1
  106. package/dist/cdn/{ZPSODXRY.js → KT63OOIP.js} +1 -1
  107. package/dist/cdn/{XPZYTUFI.js → KUHHYT6E.js} +1 -1
  108. package/dist/cdn/{R327GW3B.js → KWB4KUS2.js} +1 -1
  109. package/dist/cdn/LI44ACJ5.js +2 -0
  110. package/dist/cdn/{ZPUG4UJD.js → LNEZQAZW.js} +1 -1
  111. package/dist/cdn/{C6LQ6GBG.js → LQFDFYE3.js} +1 -1
  112. package/dist/cdn/{WTW6IUQE.js → LR6JJH34.js} +1 -1
  113. package/dist/cdn/{LHYLZ3MU.js → LS52KMCS.js} +1 -1
  114. package/dist/cdn/{P74W5C7C.js → M43BPHZZ.js} +1 -1
  115. package/dist/cdn/M4BTEWSL.js +2 -0
  116. package/dist/cdn/{UELYLAXS.js → MBAOJDXH.js} +1 -1
  117. package/dist/cdn/{FSRCAJPL.js → MUFCYOF6.js} +1 -1
  118. package/dist/cdn/{XMLL7DK3.js → MULJ4PR2.js} +1 -1
  119. package/dist/cdn/{VFJSBJKH.js → MZALMOZF.js} +1 -1
  120. package/dist/cdn/{FSCI2U63.js → N6L3A6SU.js} +1 -1
  121. package/dist/cdn/{MANGZQ75.js → N7BT4JWS.js} +1 -1
  122. package/dist/cdn/{SVY3PV3F.js → N7KSHION.js} +1 -1
  123. package/dist/cdn/{5EGS3PEJ.js → NBMOR3C3.js} +1 -1
  124. package/dist/cdn/{H65OGVBX.js → NIEIUES2.js} +1 -1
  125. package/dist/cdn/{JAPT4J53.js → NVW2HKKO.js} +1 -1
  126. package/dist/cdn/NYFOMOKM.js +2 -0
  127. package/dist/cdn/{WJVRZX2B.js → O5B7FF3R.js} +1 -1
  128. package/dist/cdn/O7JONM22.js +2 -0
  129. package/dist/cdn/{RTO6IDAA.js → OEOOIJU3.js} +1 -1
  130. package/dist/cdn/{5L3L4ZQH.js → OGSZ5UUK.js} +1 -1
  131. package/dist/cdn/{OH3I63ZU.js → ONHQ3PYJ.js} +1 -1
  132. package/dist/cdn/{H6V2DGG7.js → ORI7IGJK.js} +1 -1
  133. package/dist/cdn/OSKTOPDB.js +2 -0
  134. package/dist/cdn/{TBWM3VXL.js → OU4GNV5Y.js} +1 -1
  135. package/dist/cdn/{ZSU7KK52.js → P34L6F5E.js} +1 -1
  136. package/dist/cdn/{L4C7L6MH.js → P4AGKS3T.js} +1 -1
  137. package/dist/cdn/PAIEJ3BO.js +2 -0
  138. package/dist/cdn/{JHPDTTRE.js → PEGGVKX7.js} +1 -1
  139. package/dist/cdn/{QRGIKHCX.js → PSPYH45W.js} +1 -1
  140. package/dist/cdn/{BBNWCS5P.js → PX5CWFGN.js} +1 -1
  141. package/dist/cdn/{NQIXR3IA.js → Q4AVAN4I.js} +1 -1
  142. package/dist/cdn/{E7LIBVYA.js → QANJ6YFL.js} +1 -1
  143. package/dist/cdn/{LZTYLI73.js → QANVHOJ3.js} +1 -1
  144. package/dist/cdn/{IQBOL2Y2.js → QGNQNS6S.js} +1 -1
  145. package/dist/cdn/{PWDMYK7P.js → QGPDVBV3.js} +1 -1
  146. package/dist/cdn/{BEYR7NVF.js → QPNY7WU7.js} +1 -1
  147. package/dist/cdn/{KJLX7G4N.js → QROWXUI7.js} +1 -1
  148. package/dist/cdn/{5YMSGB5N.js → QVMUFTOE.js} +1 -1
  149. package/dist/cdn/{ZMT63MEX.js → QXPN7SHW.js} +1 -1
  150. package/dist/cdn/{6UDGF6SS.js → RDSUE6ZH.js} +1 -1
  151. package/dist/cdn/{ANG32SYS.js → RHW2UX3V.js} +1 -1
  152. package/dist/cdn/{NJLN6EOZ.js → RKWTF4HY.js} +1 -1
  153. package/dist/cdn/{VOGNLQYG.js → RR6LH5VO.js} +1 -1
  154. package/dist/cdn/{KGOPCQAT.js → RURABILX.js} +1 -1
  155. package/dist/cdn/{TURWA3ZG.js → SBPGP3TE.js} +1 -1
  156. package/dist/cdn/{WUBCS5MQ.js → TECPAA3Z.js} +1 -1
  157. package/dist/cdn/{3IN2IMDT.js → TGCFR72A.js} +1 -1
  158. package/dist/cdn/{KDK2SDDL.js → TKDU4VBP.js} +1 -1
  159. package/dist/cdn/{UFFMJFKS.js → TMCT6LLK.js} +1 -1
  160. package/dist/cdn/{BP42UKBS.js → TPMGUT3D.js} +1 -1
  161. package/dist/cdn/{57YF6RZN.js → TS6JZQWB.js} +1 -1
  162. package/dist/cdn/{Z6RKRZEC.js → UA44PE65.js} +1 -1
  163. package/dist/cdn/{I5BRZKEE.js → UN2MUWOB.js} +1 -1
  164. package/dist/cdn/UWDJZG7E.js +2 -0
  165. package/dist/cdn/{SVPBCUKI.js → UXMEMSFJ.js} +1 -1
  166. package/dist/cdn/UY54GM7K.js +2 -0
  167. package/dist/cdn/V4QAL5W3.js +4 -0
  168. package/dist/cdn/{PV5SKAY2.js → VGOJS4WL.js} +1 -1
  169. package/dist/cdn/{BXFT4S4C.js → VK7O7URK.js} +1 -1
  170. package/dist/cdn/{GB6SNYFS.js → VR63DTPD.js} +1 -1
  171. package/dist/cdn/{T4MWDQWR.js → VSUH2TBH.js} +1 -1
  172. package/dist/cdn/{BAQB62JW.js → VWE63HLR.js} +1 -1
  173. package/dist/cdn/{L6RN3S4W.js → W346BV7Y.js} +1 -1
  174. package/dist/cdn/{P3EZAAQ3.js → W6XR5DGB.js} +1 -1
  175. package/dist/cdn/{4YSQXYHW.js → WLPNXTCI.js} +1 -1
  176. package/dist/cdn/{FUG3LS5X.js → WM5TRKL7.js} +1 -1
  177. package/dist/cdn/{M4NCQBM6.js → WNPINEY3.js} +1 -1
  178. package/dist/cdn/{GBDVLDNU.js → WQD26DCP.js} +1 -1
  179. package/dist/cdn/{LLA4E3SW.js → WSX67P6R.js} +1 -1
  180. package/dist/cdn/{TDQ45A7T.js → WX73OI6S.js} +1 -1
  181. package/dist/cdn/{RVQXXZGH.js → X3BJ5NVO.js} +1 -1
  182. package/dist/cdn/{H5PLYA7V.js → XAICVG2W.js} +1 -1
  183. package/dist/cdn/{7ZEGCIAK.js → XDRNDLSF.js} +1 -1
  184. package/dist/cdn/{JPNQV7TW.js → XW7KJVE2.js} +1 -1
  185. package/dist/cdn/{E4K735JO.js → XWER5U4X.js} +1 -1
  186. package/dist/cdn/{BPGB5P7T.js → XWRAOT5I.js} +1 -1
  187. package/dist/cdn/{GDJHZNXO.js → XXIA4MQL.js} +1 -1
  188. package/dist/cdn/{UCHBQOIP.js → XYUFZAW2.js} +1 -1
  189. package/dist/cdn/{6NU2H4EN.js → Y322NHHG.js} +1 -1
  190. package/dist/cdn/{22AYGLBY.js → Y7T4MAXR.js} +1 -1
  191. package/dist/cdn/YNSF3Y7F.js +2 -0
  192. package/dist/cdn/{EB4XAVET.js → YZ2WCKFP.js} +1 -1
  193. package/dist/cdn/{QRKB363D.js → Z2RMDH4V.js} +1 -1
  194. package/dist/cdn/Z2SO3HDR.js +2 -0
  195. package/dist/cdn/{AVQCV2RY.js → ZH3BJ2NT.js} +1 -1
  196. package/dist/cdn/{AMWHFHQF.js → ZMS5QLV7.js} +1 -1
  197. package/dist/cdn/{43PLWZNW.js → ZN4PJHIW.js} +1 -1
  198. package/dist/cdn/{MZYEGZKC.js → ZPAY3JJB.js} +1 -1
  199. package/dist/cdn/{Z6DGH2UP.js → ZR26LFG7.js} +1 -1
  200. package/dist/cdn/{DTBSLDVU.js → ZV3S62FG.js} +1 -1
  201. package/dist/cdn/{EVX7YNUH.js → ZW5PEGVK.js} +1 -1
  202. package/dist/cdn/{46PW7HHK.js → ZXSE42HQ.js} +1 -1
  203. package/dist/cdn/assets/clipboard/t9n/messages.ar.json +1 -1
  204. package/dist/cdn/assets/clipboard/t9n/messages.bg.json +1 -1
  205. package/dist/cdn/assets/clipboard/t9n/messages.bs.json +1 -1
  206. package/dist/cdn/assets/clipboard/t9n/messages.ca.json +1 -1
  207. package/dist/cdn/assets/clipboard/t9n/messages.cs.json +1 -1
  208. package/dist/cdn/assets/clipboard/t9n/messages.da.json +1 -1
  209. package/dist/cdn/assets/clipboard/t9n/messages.de.json +1 -1
  210. package/dist/cdn/assets/clipboard/t9n/messages.el.json +1 -1
  211. package/dist/cdn/assets/clipboard/t9n/messages.es.json +1 -1
  212. package/dist/cdn/assets/clipboard/t9n/messages.et.json +1 -1
  213. package/dist/cdn/assets/clipboard/t9n/messages.fi.json +1 -1
  214. package/dist/cdn/assets/clipboard/t9n/messages.fr.json +1 -1
  215. package/dist/cdn/assets/clipboard/t9n/messages.he.json +1 -1
  216. package/dist/cdn/assets/clipboard/t9n/messages.hr.json +1 -1
  217. package/dist/cdn/assets/clipboard/t9n/messages.hu.json +1 -1
  218. package/dist/cdn/assets/clipboard/t9n/messages.id.json +1 -1
  219. package/dist/cdn/assets/clipboard/t9n/messages.it.json +1 -1
  220. package/dist/cdn/assets/clipboard/t9n/messages.ja.json +1 -1
  221. package/dist/cdn/assets/clipboard/t9n/messages.ko.json +1 -1
  222. package/dist/cdn/assets/clipboard/t9n/messages.lt.json +1 -1
  223. package/dist/cdn/assets/clipboard/t9n/messages.lv.json +1 -1
  224. package/dist/cdn/assets/clipboard/t9n/messages.nl.json +1 -1
  225. package/dist/cdn/assets/clipboard/t9n/messages.no.json +1 -1
  226. package/dist/cdn/assets/clipboard/t9n/messages.pl.json +1 -1
  227. package/dist/cdn/assets/clipboard/t9n/messages.pt-BR.json +1 -1
  228. package/dist/cdn/assets/clipboard/t9n/messages.pt-PT.json +1 -1
  229. package/dist/cdn/assets/clipboard/t9n/messages.ro.json +1 -1
  230. package/dist/cdn/assets/clipboard/t9n/messages.ru.json +1 -1
  231. package/dist/cdn/assets/clipboard/t9n/messages.sk.json +1 -1
  232. package/dist/cdn/assets/clipboard/t9n/messages.sl.json +1 -1
  233. package/dist/cdn/assets/clipboard/t9n/messages.sr.json +1 -1
  234. package/dist/cdn/assets/clipboard/t9n/messages.sv.json +1 -1
  235. package/dist/cdn/assets/clipboard/t9n/messages.th.json +1 -1
  236. package/dist/cdn/assets/clipboard/t9n/messages.tr.json +1 -1
  237. package/dist/cdn/assets/clipboard/t9n/messages.uk.json +1 -1
  238. package/dist/cdn/assets/clipboard/t9n/messages.vi.json +1 -1
  239. package/dist/cdn/assets/clipboard/t9n/messages.zh-CN.json +1 -1
  240. package/dist/cdn/assets/clipboard/t9n/messages.zh-HK.json +1 -1
  241. package/dist/cdn/assets/clipboard/t9n/messages.zh-TW.json +1 -1
  242. package/dist/cdn/assets/elevation-profile/t9n/messages.ar.json +1 -1
  243. package/dist/cdn/assets/elevation-profile/t9n/messages.bg.json +1 -1
  244. package/dist/cdn/assets/elevation-profile/t9n/messages.bs.json +1 -1
  245. package/dist/cdn/assets/elevation-profile/t9n/messages.ca.json +1 -1
  246. package/dist/cdn/assets/elevation-profile/t9n/messages.cs.json +1 -1
  247. package/dist/cdn/assets/elevation-profile/t9n/messages.da.json +1 -1
  248. package/dist/cdn/assets/elevation-profile/t9n/messages.de.json +1 -1
  249. package/dist/cdn/assets/elevation-profile/t9n/messages.el.json +1 -1
  250. package/dist/cdn/assets/elevation-profile/t9n/messages.es.json +1 -1
  251. package/dist/cdn/assets/elevation-profile/t9n/messages.et.json +1 -1
  252. package/dist/cdn/assets/elevation-profile/t9n/messages.fi.json +1 -1
  253. package/dist/cdn/assets/elevation-profile/t9n/messages.fr.json +1 -1
  254. package/dist/cdn/assets/elevation-profile/t9n/messages.he.json +1 -1
  255. package/dist/cdn/assets/elevation-profile/t9n/messages.hr.json +1 -1
  256. package/dist/cdn/assets/elevation-profile/t9n/messages.hu.json +1 -1
  257. package/dist/cdn/assets/elevation-profile/t9n/messages.id.json +1 -1
  258. package/dist/cdn/assets/elevation-profile/t9n/messages.it.json +1 -1
  259. package/dist/cdn/assets/elevation-profile/t9n/messages.ja.json +1 -1
  260. package/dist/cdn/assets/elevation-profile/t9n/messages.ko.json +1 -1
  261. package/dist/cdn/assets/elevation-profile/t9n/messages.lt.json +1 -1
  262. package/dist/cdn/assets/elevation-profile/t9n/messages.lv.json +1 -1
  263. package/dist/cdn/assets/elevation-profile/t9n/messages.nl.json +1 -1
  264. package/dist/cdn/assets/elevation-profile/t9n/messages.no.json +1 -1
  265. package/dist/cdn/assets/elevation-profile/t9n/messages.pl.json +1 -1
  266. package/dist/cdn/assets/elevation-profile/t9n/messages.pt-BR.json +1 -1
  267. package/dist/cdn/assets/elevation-profile/t9n/messages.pt-PT.json +1 -1
  268. package/dist/cdn/assets/elevation-profile/t9n/messages.ro.json +1 -1
  269. package/dist/cdn/assets/elevation-profile/t9n/messages.ru.json +1 -1
  270. package/dist/cdn/assets/elevation-profile/t9n/messages.sk.json +1 -1
  271. package/dist/cdn/assets/elevation-profile/t9n/messages.sl.json +1 -1
  272. package/dist/cdn/assets/elevation-profile/t9n/messages.sr.json +1 -1
  273. package/dist/cdn/assets/elevation-profile/t9n/messages.sv.json +1 -1
  274. package/dist/cdn/assets/elevation-profile/t9n/messages.th.json +1 -1
  275. package/dist/cdn/assets/elevation-profile/t9n/messages.tr.json +1 -1
  276. package/dist/cdn/assets/elevation-profile/t9n/messages.uk.json +1 -1
  277. package/dist/cdn/assets/elevation-profile/t9n/messages.vi.json +1 -1
  278. package/dist/cdn/assets/elevation-profile/t9n/messages.zh-CN.json +1 -1
  279. package/dist/cdn/assets/elevation-profile/t9n/messages.zh-HK.json +1 -1
  280. package/dist/cdn/assets/elevation-profile/t9n/messages.zh-TW.json +1 -1
  281. package/dist/cdn/assets/feature-title/t9n/messages.ar.json +1 -1
  282. package/dist/cdn/assets/feature-title/t9n/messages.bg.json +1 -1
  283. package/dist/cdn/assets/feature-title/t9n/messages.bs.json +1 -1
  284. package/dist/cdn/assets/feature-title/t9n/messages.ca.json +1 -1
  285. package/dist/cdn/assets/feature-title/t9n/messages.cs.json +1 -1
  286. package/dist/cdn/assets/feature-title/t9n/messages.da.json +1 -1
  287. package/dist/cdn/assets/feature-title/t9n/messages.de.json +1 -1
  288. package/dist/cdn/assets/feature-title/t9n/messages.el.json +1 -1
  289. package/dist/cdn/assets/feature-title/t9n/messages.es.json +1 -1
  290. package/dist/cdn/assets/feature-title/t9n/messages.et.json +1 -1
  291. package/dist/cdn/assets/feature-title/t9n/messages.fi.json +1 -1
  292. package/dist/cdn/assets/feature-title/t9n/messages.fr.json +1 -1
  293. package/dist/cdn/assets/feature-title/t9n/messages.he.json +1 -1
  294. package/dist/cdn/assets/feature-title/t9n/messages.hr.json +1 -1
  295. package/dist/cdn/assets/feature-title/t9n/messages.hu.json +1 -1
  296. package/dist/cdn/assets/feature-title/t9n/messages.id.json +1 -1
  297. package/dist/cdn/assets/feature-title/t9n/messages.it.json +1 -1
  298. package/dist/cdn/assets/feature-title/t9n/messages.ja.json +1 -1
  299. package/dist/cdn/assets/feature-title/t9n/messages.ko.json +1 -1
  300. package/dist/cdn/assets/feature-title/t9n/messages.lt.json +1 -1
  301. package/dist/cdn/assets/feature-title/t9n/messages.lv.json +1 -1
  302. package/dist/cdn/assets/feature-title/t9n/messages.nl.json +1 -1
  303. package/dist/cdn/assets/feature-title/t9n/messages.no.json +1 -1
  304. package/dist/cdn/assets/feature-title/t9n/messages.pl.json +1 -1
  305. package/dist/cdn/assets/feature-title/t9n/messages.pt-BR.json +1 -1
  306. package/dist/cdn/assets/feature-title/t9n/messages.pt-PT.json +1 -1
  307. package/dist/cdn/assets/feature-title/t9n/messages.ro.json +1 -1
  308. package/dist/cdn/assets/feature-title/t9n/messages.ru.json +1 -1
  309. package/dist/cdn/assets/feature-title/t9n/messages.sk.json +1 -1
  310. package/dist/cdn/assets/feature-title/t9n/messages.sl.json +1 -1
  311. package/dist/cdn/assets/feature-title/t9n/messages.sr.json +1 -1
  312. package/dist/cdn/assets/feature-title/t9n/messages.sv.json +1 -1
  313. package/dist/cdn/assets/feature-title/t9n/messages.th.json +1 -1
  314. package/dist/cdn/assets/feature-title/t9n/messages.tr.json +1 -1
  315. package/dist/cdn/assets/feature-title/t9n/messages.uk.json +1 -1
  316. package/dist/cdn/assets/feature-title/t9n/messages.vi.json +1 -1
  317. package/dist/cdn/assets/feature-title/t9n/messages.zh-CN.json +1 -1
  318. package/dist/cdn/assets/feature-title/t9n/messages.zh-HK.json +1 -1
  319. package/dist/cdn/assets/feature-title/t9n/messages.zh-TW.json +1 -1
  320. package/dist/cdn/assets/floor-filter/t9n/messages.ar.json +1 -1
  321. package/dist/cdn/assets/floor-filter/t9n/messages.bg.json +1 -1
  322. package/dist/cdn/assets/floor-filter/t9n/messages.bs.json +1 -1
  323. package/dist/cdn/assets/floor-filter/t9n/messages.ca.json +1 -1
  324. package/dist/cdn/assets/floor-filter/t9n/messages.cs.json +1 -1
  325. package/dist/cdn/assets/floor-filter/t9n/messages.da.json +1 -1
  326. package/dist/cdn/assets/floor-filter/t9n/messages.de.json +1 -1
  327. package/dist/cdn/assets/floor-filter/t9n/messages.el.json +1 -1
  328. package/dist/cdn/assets/floor-filter/t9n/messages.es.json +1 -1
  329. package/dist/cdn/assets/floor-filter/t9n/messages.et.json +1 -1
  330. package/dist/cdn/assets/floor-filter/t9n/messages.fi.json +1 -1
  331. package/dist/cdn/assets/floor-filter/t9n/messages.fr.json +1 -1
  332. package/dist/cdn/assets/floor-filter/t9n/messages.he.json +1 -1
  333. package/dist/cdn/assets/floor-filter/t9n/messages.hr.json +1 -1
  334. package/dist/cdn/assets/floor-filter/t9n/messages.hu.json +1 -1
  335. package/dist/cdn/assets/floor-filter/t9n/messages.id.json +1 -1
  336. package/dist/cdn/assets/floor-filter/t9n/messages.it.json +1 -1
  337. package/dist/cdn/assets/floor-filter/t9n/messages.ja.json +1 -1
  338. package/dist/cdn/assets/floor-filter/t9n/messages.ko.json +1 -1
  339. package/dist/cdn/assets/floor-filter/t9n/messages.lt.json +1 -1
  340. package/dist/cdn/assets/floor-filter/t9n/messages.lv.json +1 -1
  341. package/dist/cdn/assets/floor-filter/t9n/messages.nl.json +1 -1
  342. package/dist/cdn/assets/floor-filter/t9n/messages.no.json +1 -1
  343. package/dist/cdn/assets/floor-filter/t9n/messages.pl.json +1 -1
  344. package/dist/cdn/assets/floor-filter/t9n/messages.pt-BR.json +1 -1
  345. package/dist/cdn/assets/floor-filter/t9n/messages.pt-PT.json +1 -1
  346. package/dist/cdn/assets/floor-filter/t9n/messages.ro.json +1 -1
  347. package/dist/cdn/assets/floor-filter/t9n/messages.ru.json +1 -1
  348. package/dist/cdn/assets/floor-filter/t9n/messages.sk.json +1 -1
  349. package/dist/cdn/assets/floor-filter/t9n/messages.sl.json +1 -1
  350. package/dist/cdn/assets/floor-filter/t9n/messages.sr.json +1 -1
  351. package/dist/cdn/assets/floor-filter/t9n/messages.sv.json +1 -1
  352. package/dist/cdn/assets/floor-filter/t9n/messages.th.json +1 -1
  353. package/dist/cdn/assets/floor-filter/t9n/messages.tr.json +1 -1
  354. package/dist/cdn/assets/floor-filter/t9n/messages.uk.json +1 -1
  355. package/dist/cdn/assets/floor-filter/t9n/messages.vi.json +1 -1
  356. package/dist/cdn/assets/floor-filter/t9n/messages.zh-CN.json +1 -1
  357. package/dist/cdn/assets/floor-filter/t9n/messages.zh-HK.json +1 -1
  358. package/dist/cdn/assets/floor-filter/t9n/messages.zh-TW.json +1 -1
  359. package/dist/cdn/assets/layer-list-new/t9n/messages.ar.json +1 -0
  360. package/dist/cdn/assets/layer-list-new/t9n/messages.bg.json +1 -0
  361. package/dist/cdn/assets/layer-list-new/t9n/messages.bs.json +1 -0
  362. package/dist/cdn/assets/layer-list-new/t9n/messages.ca.json +1 -0
  363. package/dist/cdn/assets/layer-list-new/t9n/messages.cs.json +1 -0
  364. package/dist/cdn/assets/layer-list-new/t9n/messages.da.json +1 -0
  365. package/dist/cdn/assets/layer-list-new/t9n/messages.de.json +1 -0
  366. package/dist/cdn/assets/layer-list-new/t9n/messages.el.json +1 -0
  367. package/dist/cdn/assets/layer-list-new/t9n/messages.es.json +1 -0
  368. package/dist/cdn/assets/layer-list-new/t9n/messages.et.json +1 -0
  369. package/dist/cdn/assets/layer-list-new/t9n/messages.fi.json +1 -0
  370. package/dist/cdn/assets/layer-list-new/t9n/messages.fr.json +1 -0
  371. package/dist/cdn/assets/layer-list-new/t9n/messages.he.json +1 -0
  372. package/dist/cdn/assets/layer-list-new/t9n/messages.hr.json +1 -0
  373. package/dist/cdn/assets/layer-list-new/t9n/messages.hu.json +1 -0
  374. package/dist/cdn/assets/layer-list-new/t9n/messages.id.json +1 -0
  375. package/dist/cdn/assets/layer-list-new/t9n/messages.it.json +1 -0
  376. package/dist/cdn/assets/layer-list-new/t9n/messages.ja.json +1 -0
  377. package/dist/cdn/assets/layer-list-new/t9n/messages.ko.json +1 -0
  378. package/dist/cdn/assets/layer-list-new/t9n/messages.lt.json +1 -0
  379. package/dist/cdn/assets/layer-list-new/t9n/messages.lv.json +1 -0
  380. package/dist/cdn/assets/layer-list-new/t9n/messages.nl.json +1 -0
  381. package/dist/cdn/assets/layer-list-new/t9n/messages.no.json +1 -0
  382. package/dist/cdn/assets/layer-list-new/t9n/messages.pl.json +1 -0
  383. package/dist/cdn/assets/layer-list-new/t9n/messages.pt-BR.json +1 -0
  384. package/dist/cdn/assets/layer-list-new/t9n/messages.pt-PT.json +1 -0
  385. package/dist/cdn/assets/layer-list-new/t9n/messages.ro.json +1 -0
  386. package/dist/cdn/assets/layer-list-new/t9n/messages.ru.json +1 -0
  387. package/dist/cdn/assets/layer-list-new/t9n/messages.sk.json +1 -0
  388. package/dist/cdn/assets/layer-list-new/t9n/messages.sl.json +1 -0
  389. package/dist/cdn/assets/layer-list-new/t9n/messages.sr.json +1 -0
  390. package/dist/cdn/assets/layer-list-new/t9n/messages.sv.json +1 -0
  391. package/dist/cdn/assets/layer-list-new/t9n/messages.th.json +1 -0
  392. package/dist/cdn/assets/layer-list-new/t9n/messages.tr.json +1 -0
  393. package/dist/cdn/assets/layer-list-new/t9n/messages.uk.json +1 -0
  394. package/dist/cdn/assets/layer-list-new/t9n/messages.vi.json +1 -0
  395. package/dist/cdn/assets/layer-list-new/t9n/messages.zh-CN.json +1 -0
  396. package/dist/cdn/assets/layer-list-new/t9n/messages.zh-HK.json +1 -0
  397. package/dist/cdn/assets/layer-list-new/t9n/messages.zh-TW.json +1 -0
  398. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ar.json +1 -1
  399. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.bg.json +1 -1
  400. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.bs.json +1 -1
  401. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ca.json +1 -1
  402. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.cs.json +1 -1
  403. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.da.json +1 -1
  404. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.de.json +1 -1
  405. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.el.json +1 -1
  406. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.es.json +1 -1
  407. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.et.json +1 -1
  408. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.fi.json +1 -1
  409. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.fr.json +1 -1
  410. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.he.json +1 -1
  411. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.hr.json +1 -1
  412. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.hu.json +1 -1
  413. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.id.json +1 -1
  414. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.it.json +1 -1
  415. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ja.json +1 -1
  416. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ko.json +1 -1
  417. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.lt.json +1 -1
  418. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.lv.json +1 -1
  419. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.nl.json +1 -1
  420. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.no.json +1 -1
  421. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.pl.json +1 -1
  422. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.pt-BR.json +1 -1
  423. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.pt-PT.json +1 -1
  424. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ro.json +1 -1
  425. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ru.json +1 -1
  426. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sk.json +1 -1
  427. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sl.json +1 -1
  428. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sr.json +1 -1
  429. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sv.json +1 -1
  430. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.th.json +1 -1
  431. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.tr.json +1 -1
  432. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.uk.json +1 -1
  433. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.vi.json +1 -1
  434. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.zh-CN.json +1 -1
  435. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.zh-HK.json +1 -1
  436. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.zh-TW.json +1 -1
  437. package/dist/cdn/assets/paste/t9n/messages.ar.json +1 -1
  438. package/dist/cdn/assets/paste/t9n/messages.bg.json +1 -1
  439. package/dist/cdn/assets/paste/t9n/messages.bs.json +1 -1
  440. package/dist/cdn/assets/paste/t9n/messages.ca.json +1 -1
  441. package/dist/cdn/assets/paste/t9n/messages.cs.json +1 -1
  442. package/dist/cdn/assets/paste/t9n/messages.da.json +1 -1
  443. package/dist/cdn/assets/paste/t9n/messages.de.json +1 -1
  444. package/dist/cdn/assets/paste/t9n/messages.el.json +1 -1
  445. package/dist/cdn/assets/paste/t9n/messages.es.json +1 -1
  446. package/dist/cdn/assets/paste/t9n/messages.et.json +1 -1
  447. package/dist/cdn/assets/paste/t9n/messages.fi.json +1 -1
  448. package/dist/cdn/assets/paste/t9n/messages.fr.json +1 -1
  449. package/dist/cdn/assets/paste/t9n/messages.he.json +1 -1
  450. package/dist/cdn/assets/paste/t9n/messages.hr.json +1 -1
  451. package/dist/cdn/assets/paste/t9n/messages.hu.json +1 -1
  452. package/dist/cdn/assets/paste/t9n/messages.id.json +1 -1
  453. package/dist/cdn/assets/paste/t9n/messages.it.json +1 -1
  454. package/dist/cdn/assets/paste/t9n/messages.ja.json +1 -1
  455. package/dist/cdn/assets/paste/t9n/messages.ko.json +1 -1
  456. package/dist/cdn/assets/paste/t9n/messages.lt.json +1 -1
  457. package/dist/cdn/assets/paste/t9n/messages.lv.json +1 -1
  458. package/dist/cdn/assets/paste/t9n/messages.nl.json +1 -1
  459. package/dist/cdn/assets/paste/t9n/messages.no.json +1 -1
  460. package/dist/cdn/assets/paste/t9n/messages.pl.json +1 -1
  461. package/dist/cdn/assets/paste/t9n/messages.pt-BR.json +1 -1
  462. package/dist/cdn/assets/paste/t9n/messages.pt-PT.json +1 -1
  463. package/dist/cdn/assets/paste/t9n/messages.ro.json +1 -1
  464. package/dist/cdn/assets/paste/t9n/messages.ru.json +1 -1
  465. package/dist/cdn/assets/paste/t9n/messages.sk.json +1 -1
  466. package/dist/cdn/assets/paste/t9n/messages.sl.json +1 -1
  467. package/dist/cdn/assets/paste/t9n/messages.sr.json +1 -1
  468. package/dist/cdn/assets/paste/t9n/messages.sv.json +1 -1
  469. package/dist/cdn/assets/paste/t9n/messages.th.json +1 -1
  470. package/dist/cdn/assets/paste/t9n/messages.tr.json +1 -1
  471. package/dist/cdn/assets/paste/t9n/messages.uk.json +1 -1
  472. package/dist/cdn/assets/paste/t9n/messages.vi.json +1 -1
  473. package/dist/cdn/assets/paste/t9n/messages.zh-CN.json +1 -1
  474. package/dist/cdn/assets/paste/t9n/messages.zh-HK.json +1 -1
  475. package/dist/cdn/assets/paste/t9n/messages.zh-TW.json +1 -1
  476. package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
  477. package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
  478. package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
  479. package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
  480. package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
  481. package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
  482. package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
  483. package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
  484. package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
  485. package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
  486. package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
  487. package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
  488. package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
  489. package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
  490. package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
  491. package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
  492. package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
  493. package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
  494. package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
  495. package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
  496. package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
  497. package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
  498. package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
  499. package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
  500. package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
  501. package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
  502. package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
  503. package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
  504. package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
  505. package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
  506. package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
  507. package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
  508. package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
  509. package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
  510. package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
  511. package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
  512. package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
  513. package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
  514. package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
  515. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ar.json +1 -1
  516. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.bg.json +1 -1
  517. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.bs.json +1 -1
  518. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ca.json +1 -1
  519. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.cs.json +1 -1
  520. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.da.json +1 -1
  521. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.de.json +1 -1
  522. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.el.json +1 -1
  523. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.es.json +1 -1
  524. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.et.json +1 -1
  525. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.fi.json +1 -1
  526. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.fr.json +1 -1
  527. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.he.json +1 -1
  528. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.hr.json +1 -1
  529. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.hu.json +1 -1
  530. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.id.json +1 -1
  531. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.it.json +1 -1
  532. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ja.json +1 -1
  533. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ko.json +1 -1
  534. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.lt.json +1 -1
  535. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.lv.json +1 -1
  536. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.nl.json +1 -1
  537. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.no.json +1 -1
  538. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pl.json +1 -1
  539. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pt-BR.json +1 -1
  540. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pt-PT.json +1 -1
  541. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ro.json +1 -1
  542. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ru.json +1 -1
  543. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sk.json +1 -1
  544. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sl.json +1 -1
  545. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sr.json +1 -1
  546. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sv.json +1 -1
  547. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.th.json +1 -1
  548. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.tr.json +1 -1
  549. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.uk.json +1 -1
  550. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.vi.json +1 -1
  551. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-CN.json +1 -1
  552. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-HK.json +1 -1
  553. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-TW.json +1 -1
  554. package/dist/cdn/assets/shadow-cast/t9n/messages.ar.json +1 -1
  555. package/dist/cdn/assets/shadow-cast/t9n/messages.bg.json +1 -1
  556. package/dist/cdn/assets/shadow-cast/t9n/messages.bs.json +1 -1
  557. package/dist/cdn/assets/shadow-cast/t9n/messages.ca.json +1 -1
  558. package/dist/cdn/assets/shadow-cast/t9n/messages.cs.json +1 -1
  559. package/dist/cdn/assets/shadow-cast/t9n/messages.da.json +1 -1
  560. package/dist/cdn/assets/shadow-cast/t9n/messages.de.json +1 -1
  561. package/dist/cdn/assets/shadow-cast/t9n/messages.el.json +1 -1
  562. package/dist/cdn/assets/shadow-cast/t9n/messages.es.json +1 -1
  563. package/dist/cdn/assets/shadow-cast/t9n/messages.et.json +1 -1
  564. package/dist/cdn/assets/shadow-cast/t9n/messages.fi.json +1 -1
  565. package/dist/cdn/assets/shadow-cast/t9n/messages.fr.json +1 -1
  566. package/dist/cdn/assets/shadow-cast/t9n/messages.he.json +1 -1
  567. package/dist/cdn/assets/shadow-cast/t9n/messages.hr.json +1 -1
  568. package/dist/cdn/assets/shadow-cast/t9n/messages.hu.json +1 -1
  569. package/dist/cdn/assets/shadow-cast/t9n/messages.id.json +1 -1
  570. package/dist/cdn/assets/shadow-cast/t9n/messages.it.json +1 -1
  571. package/dist/cdn/assets/shadow-cast/t9n/messages.ja.json +1 -1
  572. package/dist/cdn/assets/shadow-cast/t9n/messages.ko.json +1 -1
  573. package/dist/cdn/assets/shadow-cast/t9n/messages.lt.json +1 -1
  574. package/dist/cdn/assets/shadow-cast/t9n/messages.lv.json +1 -1
  575. package/dist/cdn/assets/shadow-cast/t9n/messages.nl.json +1 -1
  576. package/dist/cdn/assets/shadow-cast/t9n/messages.no.json +1 -1
  577. package/dist/cdn/assets/shadow-cast/t9n/messages.pl.json +1 -1
  578. package/dist/cdn/assets/shadow-cast/t9n/messages.pt-BR.json +1 -1
  579. package/dist/cdn/assets/shadow-cast/t9n/messages.pt-PT.json +1 -1
  580. package/dist/cdn/assets/shadow-cast/t9n/messages.ro.json +1 -1
  581. package/dist/cdn/assets/shadow-cast/t9n/messages.ru.json +1 -1
  582. package/dist/cdn/assets/shadow-cast/t9n/messages.sk.json +1 -1
  583. package/dist/cdn/assets/shadow-cast/t9n/messages.sl.json +1 -1
  584. package/dist/cdn/assets/shadow-cast/t9n/messages.sr.json +1 -1
  585. package/dist/cdn/assets/shadow-cast/t9n/messages.sv.json +1 -1
  586. package/dist/cdn/assets/shadow-cast/t9n/messages.th.json +1 -1
  587. package/dist/cdn/assets/shadow-cast/t9n/messages.tr.json +1 -1
  588. package/dist/cdn/assets/shadow-cast/t9n/messages.uk.json +1 -1
  589. package/dist/cdn/assets/shadow-cast/t9n/messages.vi.json +1 -1
  590. package/dist/cdn/assets/shadow-cast/t9n/messages.zh-CN.json +1 -1
  591. package/dist/cdn/assets/shadow-cast/t9n/messages.zh-HK.json +1 -1
  592. package/dist/cdn/assets/shadow-cast/t9n/messages.zh-TW.json +1 -1
  593. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ar.json +1 -1
  594. package/dist/cdn/assets/time-of-day-slider/t9n/messages.bg.json +1 -1
  595. package/dist/cdn/assets/time-of-day-slider/t9n/messages.bs.json +1 -1
  596. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ca.json +1 -1
  597. package/dist/cdn/assets/time-of-day-slider/t9n/messages.cs.json +1 -1
  598. package/dist/cdn/assets/time-of-day-slider/t9n/messages.da.json +1 -1
  599. package/dist/cdn/assets/time-of-day-slider/t9n/messages.de.json +1 -1
  600. package/dist/cdn/assets/time-of-day-slider/t9n/messages.el.json +1 -1
  601. package/dist/cdn/assets/time-of-day-slider/t9n/messages.es.json +1 -1
  602. package/dist/cdn/assets/time-of-day-slider/t9n/messages.et.json +1 -1
  603. package/dist/cdn/assets/time-of-day-slider/t9n/messages.fi.json +1 -1
  604. package/dist/cdn/assets/time-of-day-slider/t9n/messages.fr.json +1 -1
  605. package/dist/cdn/assets/time-of-day-slider/t9n/messages.he.json +1 -1
  606. package/dist/cdn/assets/time-of-day-slider/t9n/messages.hr.json +1 -1
  607. package/dist/cdn/assets/time-of-day-slider/t9n/messages.hu.json +1 -1
  608. package/dist/cdn/assets/time-of-day-slider/t9n/messages.id.json +1 -1
  609. package/dist/cdn/assets/time-of-day-slider/t9n/messages.it.json +1 -1
  610. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ja.json +1 -1
  611. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ko.json +1 -1
  612. package/dist/cdn/assets/time-of-day-slider/t9n/messages.lt.json +1 -1
  613. package/dist/cdn/assets/time-of-day-slider/t9n/messages.lv.json +1 -1
  614. package/dist/cdn/assets/time-of-day-slider/t9n/messages.nl.json +1 -1
  615. package/dist/cdn/assets/time-of-day-slider/t9n/messages.no.json +1 -1
  616. package/dist/cdn/assets/time-of-day-slider/t9n/messages.pl.json +1 -1
  617. package/dist/cdn/assets/time-of-day-slider/t9n/messages.pt-BR.json +1 -1
  618. package/dist/cdn/assets/time-of-day-slider/t9n/messages.pt-PT.json +1 -1
  619. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ro.json +1 -1
  620. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ru.json +1 -1
  621. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sk.json +1 -1
  622. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sl.json +1 -1
  623. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sr.json +1 -1
  624. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sv.json +1 -1
  625. package/dist/cdn/assets/time-of-day-slider/t9n/messages.th.json +1 -1
  626. package/dist/cdn/assets/time-of-day-slider/t9n/messages.tr.json +1 -1
  627. package/dist/cdn/assets/time-of-day-slider/t9n/messages.uk.json +1 -1
  628. package/dist/cdn/assets/time-of-day-slider/t9n/messages.vi.json +1 -1
  629. package/dist/cdn/assets/time-of-day-slider/t9n/messages.zh-CN.json +1 -1
  630. package/dist/cdn/assets/time-of-day-slider/t9n/messages.zh-HK.json +1 -1
  631. package/dist/cdn/assets/time-of-day-slider/t9n/messages.zh-TW.json +1 -1
  632. package/dist/cdn/assets/unit-select/t9n/messages.ar.json +1 -1
  633. package/dist/cdn/assets/unit-select/t9n/messages.bg.json +1 -1
  634. package/dist/cdn/assets/unit-select/t9n/messages.bs.json +1 -1
  635. package/dist/cdn/assets/unit-select/t9n/messages.ca.json +1 -1
  636. package/dist/cdn/assets/unit-select/t9n/messages.cs.json +1 -1
  637. package/dist/cdn/assets/unit-select/t9n/messages.da.json +1 -1
  638. package/dist/cdn/assets/unit-select/t9n/messages.de.json +1 -1
  639. package/dist/cdn/assets/unit-select/t9n/messages.el.json +1 -1
  640. package/dist/cdn/assets/unit-select/t9n/messages.es.json +1 -1
  641. package/dist/cdn/assets/unit-select/t9n/messages.et.json +1 -1
  642. package/dist/cdn/assets/unit-select/t9n/messages.fi.json +1 -1
  643. package/dist/cdn/assets/unit-select/t9n/messages.fr.json +1 -1
  644. package/dist/cdn/assets/unit-select/t9n/messages.he.json +1 -1
  645. package/dist/cdn/assets/unit-select/t9n/messages.hr.json +1 -1
  646. package/dist/cdn/assets/unit-select/t9n/messages.hu.json +1 -1
  647. package/dist/cdn/assets/unit-select/t9n/messages.id.json +1 -1
  648. package/dist/cdn/assets/unit-select/t9n/messages.it.json +1 -1
  649. package/dist/cdn/assets/unit-select/t9n/messages.ja.json +1 -1
  650. package/dist/cdn/assets/unit-select/t9n/messages.ko.json +1 -1
  651. package/dist/cdn/assets/unit-select/t9n/messages.lt.json +1 -1
  652. package/dist/cdn/assets/unit-select/t9n/messages.lv.json +1 -1
  653. package/dist/cdn/assets/unit-select/t9n/messages.nl.json +1 -1
  654. package/dist/cdn/assets/unit-select/t9n/messages.no.json +1 -1
  655. package/dist/cdn/assets/unit-select/t9n/messages.pl.json +1 -1
  656. package/dist/cdn/assets/unit-select/t9n/messages.pt-BR.json +1 -1
  657. package/dist/cdn/assets/unit-select/t9n/messages.pt-PT.json +1 -1
  658. package/dist/cdn/assets/unit-select/t9n/messages.ro.json +1 -1
  659. package/dist/cdn/assets/unit-select/t9n/messages.ru.json +1 -1
  660. package/dist/cdn/assets/unit-select/t9n/messages.sk.json +1 -1
  661. package/dist/cdn/assets/unit-select/t9n/messages.sl.json +1 -1
  662. package/dist/cdn/assets/unit-select/t9n/messages.sr.json +1 -1
  663. package/dist/cdn/assets/unit-select/t9n/messages.sv.json +1 -1
  664. package/dist/cdn/assets/unit-select/t9n/messages.th.json +1 -1
  665. package/dist/cdn/assets/unit-select/t9n/messages.tr.json +1 -1
  666. package/dist/cdn/assets/unit-select/t9n/messages.uk.json +1 -1
  667. package/dist/cdn/assets/unit-select/t9n/messages.vi.json +1 -1
  668. package/dist/cdn/assets/unit-select/t9n/messages.zh-CN.json +1 -1
  669. package/dist/cdn/assets/unit-select/t9n/messages.zh-HK.json +1 -1
  670. package/dist/cdn/assets/unit-select/t9n/messages.zh-TW.json +1 -1
  671. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ar.json +1 -1
  672. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.bg.json +1 -1
  673. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.bs.json +1 -1
  674. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ca.json +1 -1
  675. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.cs.json +1 -1
  676. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.da.json +1 -1
  677. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.de.json +1 -1
  678. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.el.json +1 -1
  679. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.es.json +1 -1
  680. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.et.json +1 -1
  681. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.fi.json +1 -1
  682. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.fr.json +1 -1
  683. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.he.json +1 -1
  684. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.hr.json +1 -1
  685. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.hu.json +1 -1
  686. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.id.json +1 -1
  687. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.it.json +1 -1
  688. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ja.json +1 -1
  689. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ko.json +1 -1
  690. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.lt.json +1 -1
  691. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.lv.json +1 -1
  692. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.nl.json +1 -1
  693. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.no.json +1 -1
  694. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.pl.json +1 -1
  695. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.pt-BR.json +1 -1
  696. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.pt-PT.json +1 -1
  697. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ro.json +1 -1
  698. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ru.json +1 -1
  699. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sk.json +1 -1
  700. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sl.json +1 -1
  701. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sr.json +1 -1
  702. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sv.json +1 -1
  703. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.th.json +1 -1
  704. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.tr.json +1 -1
  705. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.uk.json +1 -1
  706. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.vi.json +1 -1
  707. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.zh-CN.json +1 -1
  708. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.zh-HK.json +1 -1
  709. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.zh-TW.json +1 -1
  710. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
  711. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
  712. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
  713. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
  714. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
  715. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
  716. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
  717. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
  718. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
  719. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
  720. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
  721. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
  722. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
  723. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
  724. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
  725. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
  726. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
  727. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
  728. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
  729. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
  730. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
  731. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
  732. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
  733. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
  734. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
  735. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
  736. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
  737. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
  738. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
  739. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
  740. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
  741. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
  742. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
  743. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
  744. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
  745. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
  746. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
  747. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
  748. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
  749. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
  750. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
  751. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
  752. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
  753. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
  754. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
  755. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
  756. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
  757. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
  758. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
  759. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
  760. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
  761. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
  762. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
  763. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
  764. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
  765. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
  766. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
  767. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
  768. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
  769. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
  770. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
  771. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
  772. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
  773. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
  774. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
  775. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
  776. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
  777. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
  778. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
  779. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
  780. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
  781. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
  782. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
  783. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
  784. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
  785. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
  786. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
  787. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
  788. package/dist/cdn/assets/volume-measurement/t9n/messages.ar.json +1 -1
  789. package/dist/cdn/assets/volume-measurement/t9n/messages.bg.json +1 -1
  790. package/dist/cdn/assets/volume-measurement/t9n/messages.bs.json +1 -1
  791. package/dist/cdn/assets/volume-measurement/t9n/messages.ca.json +1 -1
  792. package/dist/cdn/assets/volume-measurement/t9n/messages.cs.json +1 -1
  793. package/dist/cdn/assets/volume-measurement/t9n/messages.da.json +1 -1
  794. package/dist/cdn/assets/volume-measurement/t9n/messages.de.json +1 -1
  795. package/dist/cdn/assets/volume-measurement/t9n/messages.el.json +1 -1
  796. package/dist/cdn/assets/volume-measurement/t9n/messages.es.json +1 -1
  797. package/dist/cdn/assets/volume-measurement/t9n/messages.et.json +1 -1
  798. package/dist/cdn/assets/volume-measurement/t9n/messages.fi.json +1 -1
  799. package/dist/cdn/assets/volume-measurement/t9n/messages.fr.json +1 -1
  800. package/dist/cdn/assets/volume-measurement/t9n/messages.he.json +1 -1
  801. package/dist/cdn/assets/volume-measurement/t9n/messages.hr.json +1 -1
  802. package/dist/cdn/assets/volume-measurement/t9n/messages.hu.json +1 -1
  803. package/dist/cdn/assets/volume-measurement/t9n/messages.id.json +1 -1
  804. package/dist/cdn/assets/volume-measurement/t9n/messages.it.json +1 -1
  805. package/dist/cdn/assets/volume-measurement/t9n/messages.ja.json +1 -1
  806. package/dist/cdn/assets/volume-measurement/t9n/messages.ko.json +1 -1
  807. package/dist/cdn/assets/volume-measurement/t9n/messages.lt.json +1 -1
  808. package/dist/cdn/assets/volume-measurement/t9n/messages.lv.json +1 -1
  809. package/dist/cdn/assets/volume-measurement/t9n/messages.nl.json +1 -1
  810. package/dist/cdn/assets/volume-measurement/t9n/messages.no.json +1 -1
  811. package/dist/cdn/assets/volume-measurement/t9n/messages.pl.json +1 -1
  812. package/dist/cdn/assets/volume-measurement/t9n/messages.pt-BR.json +1 -1
  813. package/dist/cdn/assets/volume-measurement/t9n/messages.pt-PT.json +1 -1
  814. package/dist/cdn/assets/volume-measurement/t9n/messages.ro.json +1 -1
  815. package/dist/cdn/assets/volume-measurement/t9n/messages.ru.json +1 -1
  816. package/dist/cdn/assets/volume-measurement/t9n/messages.sk.json +1 -1
  817. package/dist/cdn/assets/volume-measurement/t9n/messages.sl.json +1 -1
  818. package/dist/cdn/assets/volume-measurement/t9n/messages.sr.json +1 -1
  819. package/dist/cdn/assets/volume-measurement/t9n/messages.sv.json +1 -1
  820. package/dist/cdn/assets/volume-measurement/t9n/messages.th.json +1 -1
  821. package/dist/cdn/assets/volume-measurement/t9n/messages.tr.json +1 -1
  822. package/dist/cdn/assets/volume-measurement/t9n/messages.uk.json +1 -1
  823. package/dist/cdn/assets/volume-measurement/t9n/messages.vi.json +1 -1
  824. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-CN.json +1 -1
  825. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-HK.json +1 -1
  826. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-TW.json +1 -1
  827. package/dist/cdn/index.js +1 -1
  828. package/dist/chunks/AnalysisViewModel.js +1 -1
  829. package/dist/chunks/action-utils.js +18 -17
  830. package/dist/chunks/feature-utils.js +57 -65
  831. package/dist/chunks/screenLocation.js +3 -1
  832. package/dist/chunks/slots.js +18 -9
  833. package/dist/chunks/useArcgisViewReadyError.js +42 -41
  834. package/dist/components/arcgis-basemap-toggle/customElement.js +3 -1
  835. package/dist/components/arcgis-bookmarks/customElement.js +3 -1
  836. package/dist/components/arcgis-building-discipline-tree/customElement.js +9 -3
  837. package/dist/components/arcgis-building-explorer/customElement.js +3 -1
  838. package/dist/components/arcgis-elevation-profile/customElement.js +6 -2
  839. package/dist/components/arcgis-expand/customElement.d.ts +1 -1
  840. package/dist/components/arcgis-expand/customElement.js +3 -2
  841. package/dist/components/arcgis-feature/customElement.d.ts +4 -4
  842. package/dist/components/arcgis-feature/customElement.js +73 -52
  843. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  844. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  845. package/dist/components/arcgis-feature-relationship/customElement.js +13 -13
  846. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +9 -9
  847. package/dist/components/arcgis-features/customElement.d.ts +27 -20
  848. package/dist/components/arcgis-features/customElement.js +119 -159
  849. package/dist/components/arcgis-grid-controls/customElement.js +0 -1
  850. package/dist/components/arcgis-layer-list-new/customElement.js +3 -1
  851. package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +14 -14
  852. package/dist/components/arcgis-line-of-sight/customElement.js +7 -1
  853. package/dist/components/arcgis-link-chart/customElement.d.ts +3 -0
  854. package/dist/components/arcgis-link-chart/customElement.js +11 -11
  855. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +6 -2
  856. package/dist/components/arcgis-map/customElement.d.ts +3 -0
  857. package/dist/components/arcgis-map/customElement.js +10 -10
  858. package/dist/components/arcgis-popup/customElement.d.ts +7 -7
  859. package/dist/components/arcgis-popup/customElement.js +26 -28
  860. package/dist/components/arcgis-reverse-geocode-list/customElement.js +3 -1
  861. package/dist/components/arcgis-scene/customElement.d.ts +3 -0
  862. package/dist/components/arcgis-scene/customElement.js +7 -7
  863. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  864. package/dist/components/arcgis-utility-network-association-list/customElement.js +0 -2
  865. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +1 -1
  866. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +98 -121
  867. package/dist/components/arcgis-utility-network-trace-inputs/index.js +2 -5
  868. package/dist/components/arcgis-utility-network-trace-location/customElement.js +40 -36
  869. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  870. package/dist/components/arcgis-utility-network-trace-results/customElement.js +63 -108
  871. package/dist/components/arcgis-utility-network-trace-results/index.js +0 -2
  872. package/dist/components/arcgis-volume-measurement/customElement.js +0 -1
  873. package/dist/components/arcgis-weather/customElement.js +6 -23
  874. package/dist/docs/api.json +1 -1
  875. package/dist/docs/docs.json +1 -1
  876. package/dist/docs/vscode.html-custom-data.json +1 -1
  877. package/dist/docs/web-types.json +1 -1
  878. package/dist/loader.js +5 -5
  879. package/dist/support/resources.d.ts +8 -0
  880. package/dist/support/slots.d.ts +4 -0
  881. package/dist/types/lumina.d.ts +2 -2
  882. package/dist/types/preact.d.ts +2 -2
  883. package/dist/types/react.d.ts +2 -2
  884. package/dist/types/stencil.d.ts +2 -2
  885. package/package.json +5 -5
  886. package/dist/cdn/2DCQIDUD.js +0 -2
  887. package/dist/cdn/2YG6DPXD.js +0 -2
  888. package/dist/cdn/5ETV3R5I.js +0 -2
  889. package/dist/cdn/6ACZUOGS.js +0 -2
  890. package/dist/cdn/6HR4IPYF.js +0 -2
  891. package/dist/cdn/6IGOXS2J.js +0 -2
  892. package/dist/cdn/6QWKXTNY.js +0 -2
  893. package/dist/cdn/A5GKO6V5.js +0 -2
  894. package/dist/cdn/AMPKD7VW.js +0 -2
  895. package/dist/cdn/ATJTICAQ.js +0 -2
  896. package/dist/cdn/FWXI6DGS.js +0 -2
  897. package/dist/cdn/GIGQIUF5.js +0 -2
  898. package/dist/cdn/JVFREF7G.js +0 -4
  899. package/dist/cdn/K6ZECO3O.js +0 -2
  900. package/dist/cdn/KHTYIU4N.js +0 -2
  901. package/dist/cdn/KTANBDLO.js +0 -2
  902. package/dist/cdn/MXDRHRVG.js +0 -2
  903. package/dist/cdn/OC6OXK23.js +0 -2
  904. package/dist/cdn/ODQ4JQEF.js +0 -2
  905. package/dist/cdn/PTY5K2SM.js +0 -2
  906. package/dist/cdn/TYARDSSK.js +0 -2
  907. package/dist/cdn/V2TSL5SU.js +0 -2
  908. package/dist/cdn/VOM6SUWZ.js +0 -2
  909. package/dist/cdn/XK6MB4RQ.js +0 -2
  910. package/dist/cdn/YWLUIC2V.js +0 -2
  911. /package/dist/cdn/{2HXYJZSB.js → 52ZTILXO.js} +0 -0
  912. /package/dist/cdn/{EW6V3NZI.js → 655NZISI.js} +0 -0
  913. /package/dist/cdn/{TC3Q2QUA.js → 6CDF2EB7.js} +0 -0
  914. /package/dist/cdn/{TP5VEU3D.js → 72TX3EBX.js} +0 -0
  915. /package/dist/cdn/{WHDMC5HB.js → 7YHIBBQ7.js} +0 -0
  916. /package/dist/cdn/{BND2TJBO.js → BKAQFR3R.js} +0 -0
  917. /package/dist/cdn/{QM34BSKE.js → C3GZCN7D.js} +0 -0
  918. /package/dist/cdn/{F6BQWE5I.js → C6XURVVZ.js} +0 -0
  919. /package/dist/cdn/{CJOHGWK6.js → DVGLR2XS.js} +0 -0
  920. /package/dist/cdn/{5TXE67XV.js → DWTHS3XD.js} +0 -0
  921. /package/dist/cdn/{LQVZVGY4.js → EM3MB6DQ.js} +0 -0
  922. /package/dist/cdn/{D5WXOOS3.js → EZL7XCN4.js} +0 -0
  923. /package/dist/cdn/{ZUPEVR3P.js → EZOWIYC7.js} +0 -0
  924. /package/dist/cdn/{UVMLKDJA.js → FBCPADOP.js} +0 -0
  925. /package/dist/cdn/{FQZXILRT.js → GFUBQ5ID.js} +0 -0
  926. /package/dist/cdn/{5IMWXYL2.js → GR26P3LB.js} +0 -0
  927. /package/dist/cdn/{GS75FRUR.js → H7DKSXDK.js} +0 -0
  928. /package/dist/cdn/{L4TA63M6.js → HF66GO4V.js} +0 -0
  929. /package/dist/cdn/{YZSLMAVX.js → I6MZ7JMD.js} +0 -0
  930. /package/dist/cdn/{JU3BLGXG.js → JAZ7QA6Z.js} +0 -0
  931. /package/dist/cdn/{4MDRPZTG.js → JDM6VF64.js} +0 -0
  932. /package/dist/cdn/{BBQPUWRO.js → JEPEIGKN.js} +0 -0
  933. /package/dist/cdn/{JKVKP7AW.js → JJP5FDCF.js} +0 -0
  934. /package/dist/cdn/{MM4KQLRF.js → JPGCNIGY.js} +0 -0
  935. /package/dist/cdn/{U35ISUWJ.js → JPHQVDAJ.js} +0 -0
  936. /package/dist/cdn/{DQH27QCF.js → KVPWONPB.js} +0 -0
  937. /package/dist/cdn/{EP252O27.js → MYZ3EO6Z.js} +0 -0
  938. /package/dist/cdn/{Q3GALNWS.js → MZXTZSIV.js} +0 -0
  939. /package/dist/cdn/{FLLSBLLE.js → N45IWP4M.js} +0 -0
  940. /package/dist/cdn/{XJXQC6HM.js → NO5WA6CC.js} +0 -0
  941. /package/dist/cdn/{XEXCDGSR.js → Q2Q2Z6PD.js} +0 -0
  942. /package/dist/cdn/{EVHNFE5I.js → QTDR6KS5.js} +0 -0
  943. /package/dist/cdn/{QTWRDNXX.js → RCDXPUVE.js} +0 -0
  944. /package/dist/cdn/{UUC3DBCQ.js → RJI3D6MX.js} +0 -0
  945. /package/dist/cdn/{TEFALOII.js → SYVO6LRH.js} +0 -0
  946. /package/dist/cdn/{4STAROOM.js → VBFJKQE3.js} +0 -0
  947. /package/dist/cdn/{4IM2FY5W.js → WEWJI3DC.js} +0 -0
  948. /package/dist/cdn/{GHY23IXW.js → XDIJHALG.js} +0 -0
  949. /package/dist/cdn/{DMDCKD5U.js → XGEZWI2R.js} +0 -0
  950. /package/dist/cdn/{V7DG2KF6.js → XRCQN5W7.js} +0 -0
  951. /package/dist/cdn/{HGAJ2IEN.js → ZT5S7V6J.js} +0 -0
  952. /package/dist/cdn/{37GJW6KT.js → ZYQNMTFH.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as Et,b as Qe,c as we,d as Me}from"./RH62B2NE.js";import{$ as de,D as be,E,F as pt,L as Ke,P as U,R as De,S as B,W as K,X as Pe,Y as Ot,Z as Q,_ as j,a as ue,aa as Ut,b as _e,ba as R,c as H,ca as ti,da as Ft,ea as ei,f as G,g as ye,ga as Te,h as ot,ja as Ae,la as ii,ma as si,na as ke,oa as ai,p as qe,qa as Ie,ra as Ce,sa as $e,y as ve}from"./FWXI6DGS.js";import{M as xe,N as Y,O as ce,Q as je,R as Ze,a as kt,d as Ue,f as pe,k as ze,o as Be,q as We,u as Lt,v as He}from"./P2ABZVPJ.js";import{a as It,b as Yt,d as $,e as ne}from"./XEXCDGSR.js";import{A as mt,B as Ee,E as Gt,H as Ct,I as vt,O as Oe,S as ft,U as re,V as z,W as Je,a as at,g as v,o as T,r as Rt,s as me,t as Vt,v as fe,w as Ge}from"./DQH27QCF.js";import"./3TTFCHAA.js";var le=class extends Je{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:$e.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:Ze.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:$e.new(this._root,{saturation:0})});{let n=i("Graphics",["scrollbar","overlay"]);n.setAll({fillOpacity:.5}),B(n,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:$,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:$}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:$}),i("AxisLabel",["y"]).setAll({centerX:$}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:$}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{let n=i("Grid",["cursor","x"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Grid",["cursor","y"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Graphics",["cursor","selection"]);n.setAll({fillOpacity:.15}),B(n,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:ne,centerY:ne,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{let n=i("AxisRenderer");n.setAll({crisp:!0,strokeOpacity:0}),B(n,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:$}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:$});{let n=i("Rectangle",["axis","thumb","zoomgrip"]);n.setAll({fillOpacity:0}),B(n,"fill",t,"alternativeBackground"),n.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{let n=i("Grid");n.setAll({location:0,strokeOpacity:.15,crisp:!0}),B(n,"stroke",t,"grid")}{let n=i("Grid",["minor"]);n.setAll({location:0,strokeOpacity:.07,crisp:!0}),B(n,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{let n=i("Graphics",["axis","fill"]);n.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),B(n,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{let n=i("AxisTick");n.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),B(n,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(n,l)=>{let h=n.get("axisFill");h&&(!v(l)||l%2==0?h.setPrivate("visible",!0):h.setPrivate("visible",!1))}});let s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],a={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},o={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},r={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:fe(s),dateFormats:Ct(a),periodChangeDateFormats:Ct(o)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:fe(s),dateFormats:Ct(a),periodChangeDateFormats:Ct(o),tooltipDateFormats:r,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=n.get("endValue"),u=h.intervalDuration(),f=h.getPrivate("baseInterval"),m=h.getPrivate("gridInterval",f),g=h.getPrivate("min",0);if(g=ti(new Date(g),m.timeUnit,m.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),c!=null&&d!=null){let p=Math.round(Math.round((c-g)/u))/2;p==Math.round(p)?l.setPrivate("visible",!0):l.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.get("index"),c=!1;(!v(h)||h%2==0)&&(c=!0),l.setPrivate("visible",c)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=h.getPrivate("step");v(c)&&v(d)&&(G(c/d/2,5)==Math.round(c/d/2)?l.setPrivate("visible",!1):l.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:Yt(70),height:Yt(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,c/2),n.lineTo(d,c/2)}}});{let n=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,0),n.lineTo(d,0),n.lineTo(d,c),n.lineTo(0,c),n.lineTo(0,0)}}});{let n=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:Yt(50),height:Yt(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:Yt(80),height:Yt(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{let n=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{let n=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{let n=i("Graphics",["rangegrip","button","icon"]);n.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:l=>{l.moveTo(0,.5),l.lineTo(0,12.5),l.moveTo(2,.5),l.lineTo(2,12.5),l.moveTo(4,.5),l.lineTo(4,12.5)}}),B(n,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:ne}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:ne}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:$}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:$})}};var $t=class extends Ie{constructor(){super(...arguments),this.xAxes=new _e,this.yAxes=new _e,this.topAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:$,layout:this._root.verticalLayout})),this.yAxesAndPlotContainer=this.chartContainer.children.push(U.new(this._root,{width:$,height:$,layout:this._root.horizontalLayout})),this.bottomAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:$,layout:this._root.verticalLayout})),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:$,layout:this._root.horizontalLayout})),this.plotsContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{width:$,height:$,maskContent:!1})),this.plotContainer=this.plotsContainer.children.push(U.new(this._root,{width:$,height:$})),this.topPlotContainer=this.plotsContainer.children.push(U.new(this._root,{width:$,height:$})),this.gridContainer=this.plotContainer.children.push(U.new(this._root,{width:$,height:$,isMeasured:!1})),this.topGridContainer=U.new(this._root,{width:$,height:$,isMeasured:!1}),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:$,layout:this._root.horizontalLayout})),this.axisHeadersContainer=this.plotContainer.children.push(U.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(Qe.new(this._root,{themeTags:["zoom"],icon:E.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(le.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);let t=this._root,e=this._root.verticalLayout,i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);let s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",pt.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(s.events.on("pointerdown",a=>{this._handlePlotDown(a)})),this._disposers.push(s.events.on("globalpointerup",a=>{this._handlePlotUp(a)})),this._disposers.push(s.events.on("globalpointermove",a=>{this._handlePlotMove(a)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);let e=t.get("xAxis");e&&(Rt(e.series,t),e.markDirtyExtremes());let i=t.get("yAxis");i&&(Rt(i.series,t),i.markDirtyExtremes());let s=this.get("cursor");if(s){let a=s.get("snapToSeries");a&&Rt(a,t)}super._removeSeries(t)}_applyThemes(t=!1){let e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){let e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent,o=!1;if(Be(a,this))o=!0;else return;let r=s.toLocal(t.point),n=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,c=this.get("wheelZoomPositionX"),d=this.get("wheelZoomPositionY");(e==="zoomX"||e==="zoomXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*h*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*h*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(i==="zoomX"||i==="zoomXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*l*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*l*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(e==="zoomY"||e==="zoomXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*h*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*h*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(i==="zoomY"||i==="zoomXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*l*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*l*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(e==="panX"||e==="panXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("panX")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*h,p=f+g,_=m+g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),(i==="panX"||i==="panXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("panX")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*l,p=f+g,_=m+g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),(e==="panY"||e==="panXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("panY")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*h,p=f+g,_=m+g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),(i==="panY"||i==="panXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("panY")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*l,p=f-g,_=m-g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),o&&a.preventDefault()}_handleSetWheel(){let t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;t!=="none"||e!=="none"?(this._wheelDp=i.events.on("wheel",s=>{let a=s.originalEvent;(t!=="none"&&Math.abs(a.deltaX)!=0||e!=="none"&&Math.abs(a.deltaY)!=0)&&this.handleWheel(s)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){let i=e-t;return t<0&&(t=0,e=t+i),e>1&&(e=1,t=e-i),[t,e]}_handlePlotDown(t){let e=t.originalEvent;if(e.button==2)return;let i=this.plotContainer,s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&Gt(i._downPoints).length>0){let o=this.xAxes.getIndex(0),r=this.yAxes.getIndex(0);o&&(this._downStartX=o.get("start",0),this._downEndX=o.get("end",1)),r&&(this._downStartY=r.get("start",0),this._downEndY=r.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};let a=this.get("panX"),o=this.get("panY");a&&this.xAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")}),o&&this.yAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")});let r="panstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){let t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){let e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){let s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent})}let i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each(i=>{i._isPanning=!1}),this.yAxes.each(i=>{i._isPanning=!1})}_handlePlotMove(t){let e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){let a=t.originalEvent.pointerId;if(a&&(this._movePoints[a]=t.point,Gt(e._downPoints).length>1)){this._handlePinch();return}}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point),a=this.get("panX"),o=this.get("panY");if(a){let r=this.get("scrollbarX");r&&r.events.disableType("rangechanged"),this.xAxes.each(n=>{if(n.get("panX")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.x-s.x)/e.width();n.get("renderer").get("inversed")&&(d*=-1);let u=l+d,f=h+d;f-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",f))}}),r&&r.events.enableType("rangechanged")}if(o){let r=this.get("scrollbarY");r&&r.events.disableType("rangechanged"),this.yAxes.each(n=>{if(n.get("panY")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.y-s.y)/e.height();n.get("renderer").get("inversed")&&(d*=-1);let u=l-d,f=h-d;f-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",f))}}),r&&r.events.enableType("rangechanged")}}}_handlePinch(){let t=this.plotContainer,e=0,i=[],s=[];if(vt(t._downPoints,(a,o)=>{i[e]=o;let r=this._movePoints[a];r&&(s[e]=r),e++}),i.length>1&&s.length>1){let a=t.width(),o=t.height(),r=i[0],n=i[1],l=s[0],h=s[1];if(r&&n&&l&&h){if(l=t.toLocal(l),h=t.toLocal(h),r=t.toLocal(r),n=t.toLocal(n),this.get("pinchZoomX")){let c=this._downStartX,d=this._downEndX;if(c!=null&&d!=null){r.x>n.x&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+r.x/a*(d-c),f=c+n.x/a*(d-c),m=c+l.x/a*(d-c),g=c+h.x/a*(d-c),p=Math.max(.001,f-u),_=Math.max(.001,g-m),x=p/_,y=c*x+u-m*x,b=d*x+f-g*x;this.xAxes.each(w=>{let M=w.fixPosition(y),D=w.fixPosition(b);w.zoom(M,D,0)})}}if(this.get("pinchZoomY")){let c=this._downStartY,d=this._downEndY;if(c!=null&&d!=null){r.y<n.y&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+(1-r.y/o)*(d-c),f=c+(1-n.y/o)*(d-c),m=c+(1-l.y/o)*(d-c),g=c+(1-h.y/o)*(d-c),p=Math.max(.001,f-u),_=Math.max(.001,g-m),x=p/_,y=c*x+u-m*x,b=d*x+f-g*x;this.yAxes.each(w=>{let M=w.fixPosition(y),D=w.fixPosition(b);w.zoom(M,D,0)})}}}}}_handleCursorPosition(){let t=this.get("cursor");if(t){let e=t.getPrivate("point"),i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){let s=t.get("snapToSeriesBy"),a=[];T(i,n=>{if(!n.isHidden()&&!n.isHiding())if(s!="x!"&&s!="y!"){let l=n.startIndex(),h=n.endIndex();for(let c=l;c<h;c++){let d=n.dataItems[c];d&&!d.isHidden()&&a.push(d)}}else{let l=n.get("tooltipDataItem");l&&a.push(l)}});let o=1/0,r;if(T(a,n=>{let l=n.get("point");if(l){let h=0;s=="x"||s=="x!"?h=Math.abs(e.x-l.x):s=="y"||s=="y!"?h=Math.abs(e.y-l.y):h=Math.hypot(e.x-l.x,e.y-l.y),h<o&&(o=h,r=n)}}),T(i,n=>{let l=n.get("tooltip");l&&l._setDataItem(void 0)}),r){let n=r.component;n.showDataItemTooltip(r),n.setRaw("tooltipDataItem",r);let l=r.get("point");l&&t.handleMove(n.toGlobal({x:l.x-n.x(),y:l.y-n.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each(t=>{this._colorize(t)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){let t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){let t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",i=>{this._handleScrollbar(this.xAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarX",e.events.on("released",()=>{this.xAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.xAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){let t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",i=>{this._handleScrollbar(this.yAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarY",e.events.on("released",()=>{this.yAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.yAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);let e=t.get("xAxis"),i=t.get("yAxis");Vt(e.series,t),Vt(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",()=>{t._fixPosition()})),t._posXDp=t.addDisposer(i.events.on("positionchanged",()=>{t._fixPosition()})),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),T(t.dataItems,s=>{s.set("stackToItemY",void 0),s.set("stackToItemX",void 0)})),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){let e=this.get("colors");if(e&&t.get("fill")==null){let s=e.next();t._setSoft("stroke",s),t._setSoft("fill",s)}let i=this.get("patterns");if(i&&t.get("fillPattern")==null){let s=i.next();t._setSoft("fillPattern",s)}}_handleCursorSelectEnd(){let t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each(r=>{if(e==="zoomX"||e==="zoomXY"){let n=r.toAxisPosition(i),l=r.toAxisPosition(a);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)}),this.yAxes.each(r=>{if(e==="zoomY"||e==="zoomXY"){let n=r.toAxisPosition(s),l=r.toAxisPosition(o);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)})}_handleScrollbar(t,e,i,s){t.each(a=>{let o=a.fixPosition(e),r=a.fixPosition(i),n=a.zoom(o,r,void 0,s),l="updateScrollbar";a.setPrivateRaw(l,!1),n?n.events.on("stopped",()=>{a.setPrivateRaw(l,!0)}):a.setPrivateRaw(l,!0)})}_processAxis(t,e){return t.events.onAll(i=>{if(i.type==="clear")T(i.oldValues,s=>{this._removeAxis(s)});else if(i.type==="push")e.children.push(i.newValue),i.newValue.processChart(this);else if(i.type==="setIndex")e.children.setIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="insertIndex")e.children.insertIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="removeIndex")this._removeAxis(i.oldValue);else if(i.type==="moveIndex")e.children.moveValue(i.value,i.newIndex),i.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(t){if(!t.isDisposed()){let e=t.parent;e&&e.children.removeValue(t);let i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);let a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){let t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);let s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){var e=this.get("cursor");e&&(this.addDisposer(t.on("start",()=>{this._updateCursor()})),this.addDisposer(t.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),this.xAxes.indexOf(t)!=-1){if(e||t.getPrivate("updateScrollbar")){let a=this.get("scrollbarX");a&&(!a.getPrivate("isBusy")||e)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}}else if(this.yAxes.indexOf(t)!=-1&&(e||t.getPrivate("updateScrollbar"))){let a=this.get("scrollbarY");a&&(!a.getPrivate("isBusy")||e)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each(i=>{i.get("zoomOut",!0)&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),this.yAxes.each(i=>{i.get("zoomOut",!0)&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){let e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){let o=i[a];if(o!=this){let r=o.plotContainer,n=this._root.rootPointToDocument(s),l=o._root.documentPointToRoot(n),h=r.toLocal(l);if(h.x>=-.1&&h.y>=-.1&&h.x<=r.width()+.1&&h.y<=r.height()+.1)return!0}}return!1}arrangeTooltips(){let t=this.plotContainer,e=t.width(),i=t.height(),s=this.height(),a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),r=t._display.toGlobal({x:e,y:i}),n=[],l=0,h=1/0,c=this._movePoint,d=this.get("maxTooltipDistance"),u=this.get("maxTooltipDistanceBy","xy"),f,m;v(d)&&this.series.each(p=>{if(!p.isHidden()){let _=p.get("tooltip");if(_){let x=_.get("pointTo");if(x){let y=Math.hypot(c.x-x.x,c.y-x.y);u=="x"?y=Math.abs(c.x-x.x):u=="y"&&(y=Math.abs(c.y-x.y)),y<h&&(h=y,f=p,m=x)}}}});let g=[];if(this.series.each(p=>{let _=p.get("tooltip");if(_&&!_.get("forceHidden")){let x=!1,y=_.get("pointTo");if(y){if(d>=0){let b=_.get("pointTo");if(b&&m&&p!=f){let w=Math.hypot(m.x-b.x,m.y-b.y);u=="x"?w=Math.abs(m.x-b.x):u=="y"&&(w=Math.abs(m.y-b.y)),w>d&&(x=!0)}}else d==-1&&p!=f&&(x=!0);!this.inPlot(this._tooltipToLocal(y))||!_.dataItem?x=!0:x||(l+=y.y),x||p.isHidden()||p.isHiding()?_.hide(0):(_.show(),n.push(_),g.push(p))}}}),this.setPrivate("tooltipSeries",g),this.get("arrangeTooltips")){let p=0,_=0,x=this._root.tooltipContainer,y=n.length;if(l/y>i/2+o.y){n.sort((M,D)=>re(D.get("pointTo").y,M.get("pointTo").y));let w=r.y;if(T(n,M=>{let D=M.height();_++,p+=D;let P=M.get("centerY");P instanceof It&&(D*=P.value),D+=M.get("marginBottom",0),M.set("bounds",{left:o.x,top:o.y,right:r.x,bottom:w}),M.setPrivate("customData",{left:o.x,top:o.y,right:r.x,bottom:w}),w=Math.min(w-D,M._fy-D),M.parent==x&&x.children.moveValue(M,0)}),w<0){n.reverse();let M=w;T(n,D=>{_++;let P=D.get("bounds");if(P){let k=P.top-w,I=P.bottom-w;k<M&&(k=M,I=k+D.height()),D.set("bounds",{left:P.left,top:k,right:P.right,bottom:I}),M=P.bottom-w+D.get("marginBottom",0)}})}}else{n.reverse(),n.sort((M,D)=>re(M.get("pointTo").y,D.get("pointTo").y));let w=0;if(T(n,M=>{_++;let D=M.height();p+=D;let P=M.get("centerY");P instanceof It&&(D*=P.value),D+=M.get("marginBottom",0),M.set("bounds",{left:o.x,top:w,right:r.x,bottom:Math.max(o.y+s,w+D)}),M.parent==x&&x.children.moveValue(M,0),w=Math.max(w+D,M._fy+D)}),w>s){n.reverse();let M=s;T(n,D=>{_++;let P=D.get("bounds");if(P){let k=P.top-(s-w),I=P.bottom-(s-w);I>M&&(I=M,k=I-D.height()),D.set("bounds",{left:P.left,top:k,right:P.right,bottom:I}),M=I-D.height()-D.get("marginBottom",0)}})}}p==0&&_>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each(t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}),this.yAxes.each(t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})}_dispose(){super._dispose();let t=this.get("cursor");t&&t.dispose()}};$t.className="XYChart";$t.classNames=Ie.classNames.concat([$t.className]);var zt=class extends Me{constructor(){super(...arguments),this.chart=this.children.push($t.new(this._root,{themeTags:["chart"],interactive:!1,interactiveChildren:!1,panX:!1,panY:!1,wheelX:"none",wheelY:"none"})),this.overlay=this.children.push(E.new(this._root,{themeTags:["overlay"],interactive:!1}))}_afterNew(){this._addOrientationClass(),this._settings.themeTags=Y(this._settings.themeTags,["scrollbar","xy","chart",this._settings.orientation]);let t=this.children;t.moveValue(this.thumb),t.moveValue(this.startGrip),t.moveValue(this.endGrip),this.thumb.set("opacity",0),this.thumb.states.create("hover",{opacity:.2});let e=this.chart.plotContainer;e.set("interactive",!1),e.remove("background"),e.children.removeValue(this.chart.zoomOutButton),super._afterNew()}_updateThumb(){super._updateThumb(),this.overlay.set("draw",t=>{let e=this.startGrip,i=this.endGrip,s=e.x(),a=e.y(),o=i.x(),r=i.y(),n=this.height(),l=this.width();s>o&&([s,o]=[o,s]),a>r&&([a,r]=[r,a]),this.get("orientation")==="horizontal"?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,n),t.lineTo(0,n),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(l,0),t.lineTo(l,n),t.lineTo(o,n),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(l,a),t.lineTo(l,0),t.lineTo(0,0),t.moveTo(0,r),t.lineTo(0,n),t.lineTo(l,n),t.lineTo(l,r),t.lineTo(0,r))})}};zt.className="XYChartScrollbar";zt.classNames=Me.classNames.concat([zt.className]);var gt=class extends E{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}};gt.className="Grid";gt.classNames=E.classNames.concat([gt.className]);var Bt=class extends U{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(gt.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(gt.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(E.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:$,height:$,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),pe("keyboardevents")&&this._disposers.push(Ue(document,"keydown",t=>{this._handleLineMove(We(t),t.ctrlKey)}))}_setUpTouch(){let t=this.chart;t&&(t.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="",s=this.chart,a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let r=a.get("renderer").get("inversed",!1),n;t=="ArrowRight"||t=="ArrowDown"?n=1:t=="ArrowLeft"||t=="ArrowUp"?n=-1:t=="Tab"&&(n=0),n!=null&&(r&&(n*=-1),this.set(i,a.nextPosition(n*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;let t=this.get("xAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",()=>{this._updateXLine(e)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;let t=this.get("yAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",()=>{this._updateYLine(e)})))}}}_handleSyncWith(){let t=this.chart;if(t){let e=this.get("syncWith"),i=[];e&&T(e,s=>{let a=s.chart;a&&i.push(a)}),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){let t=this.get("positionX"),e=this.get("positionY");t==null&&e==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",t=>{t.moveTo(0,0),t.lineTo(0,this.height())}),this.lineY.set("draw",t=>{t.moveTo(0,0),t.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();let e=t.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),pe("touchevents")&&(this._disposers.push(e.events.on("click",s=>{ze(s.originalEvent)&&this._handleMove(s)})),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",s=>{this._handleCursorDown(s)})),this._disposers.push(e.events.on("globalpointerup",s=>{this._handleCursorUp(s),!s.native&&!this.isHidden()&&this._handleMove(s)})),this._disposers.push(e.events.on("globalpointermove",s=>{!this.get("syncWith")&&Gt(e._downPoints).length==0&&!s.native&&this.isHidden()||(this._handleMove(s),Math.hypot(this._lastPoint2.x-s.point.x,this._lastPoint2.y-s.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=s.point))}));let i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){let e=this.chart;return e?e.inPlot(t):!1}_handleCursorDown(t){if(t.originalEvent.button==2)return;let e=t.point,i=this._display.toLocal(e),s=this.chart;if(this.selection.set("draw",()=>{}),s&&this._inPlot(i)){if(this._downPoint=i,this.get("behavior")!="none"){this.selection.show();let r="selectstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:t.originalEvent})}let a=this._getPosition(i).x,o=this._getPosition(i).y;this.setPrivate("downPositionX",a),this.setPrivate("downPositionY",o)}}_handleCursorUp(t){if(this._downPoint){let e=this.get("behavior","none");if(e!="none"){e.charAt(0)==="z"&&this.selection.hide();let i=t.point,s=this._display.toLocal(i),a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let r=!1;if((e==="zoomX"||e==="zoomXY"||e==="selectX"||e==="selectXY")&&Math.abs(s.x-a.x)>o&&(r=!0),(e==="zoomY"||e==="zoomXY"||e==="selectY"||e==="selectXY")&&Math.abs(s.y-a.y)>o&&(r=!0),r){let n="selectended";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}else{let n="selectcancelled";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){let e=this.chart;if(e&&Gt(e.plotContainer._downPoints).length>1){this.set("forceHidden",!0);return}else this.set("forceHidden",!1);let i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);let s=this.get("alwaysShow");if(!t){this.hide(0);return}this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let r=a.x,n=a.y,l=this._getPosition(a);this.setPrivate("point",a);let h=this.get("snapToSeries");this._downPoint&&(h=void 0);let c=this.get("positionX"),d=l.x;v(c)&&(d=c);let u=this.get("positionY"),f=l.y;v(u)&&(f=u),this.setPrivate("positionX",d),this.setPrivate("positionY",f);let m=this._getPoint(d,f);if(r=m.x,n=m.y,o.xAxes.each(g=>{g._handleCursorPosition(d,h),s&&g.handleCursorShow()}),o.yAxes.each(g=>{g._handleCursorPosition(f,h),s&&g.handleCursorShow()}),!e){o._handleCursorPosition();let g="cursormoved";this.events.isEnabled(g)&&this.events.dispatch(g,{type:g,target:this,point:t,originalEvent:i})}this._updateLines(r,n),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);let r="cursorhidden";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){let e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",o=>{let r=this._downPoint;r&&(i==="zoomXY"||i==="selectXY"?(o.moveTo(r.x,r.y),o.lineTo(r.x,t.y),o.lineTo(t.x,t.y),o.lineTo(t.x,r.y),o.lineTo(r.x,r.y)):i==="zoomX"||i==="selectX"?(o.moveTo(r.x,0),o.lineTo(r.x,a),o.lineTo(t.x,a),o.lineTo(t.x,0),o.lineTo(r.x,0)):(i==="zoomY"||i==="selectY")&&(o.moveTo(0,r.y),o.lineTo(s,r.y),o.lineTo(s,t.y),o.lineTo(0,t.y),o.lineTo(0,r.y)))})}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorHide()}),t.yAxes.each(e=>{e.handleCursorHide()}),t.series.each(e=>{e.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorShow()}),t.yAxes.each(e=>{e.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}};Bt.className="XYCursor";Bt.classNames=U.classNames.concat([Bt.className]);function Xe(A,t){return A==null?t:t==null?A:t<A?t:A}function Ye(A,t){return A==null?t:t==null||A>t?A:t}var lt=class extends Te{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(U.new(this._root,{})),this.axisRanges=new ue,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new K(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");let t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));let e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(i=>{if(i.type==="clear")T(i.oldValues,s=>{this._removeAxisRange(s)});else if(i.type==="push")this._processAxisRange(i.newValue);else if(i.type==="setIndex")this._processAxisRange(i.newValue);else if(i.type==="insertIndex")this._processAxisRange(i.newValue);else if(i.type==="removeIndex")this._removeAxisRange(i.oldValue);else if(i.type==="moveIndex")this._processAxisRange(i.value);else throw new Error("Unknown IStreamEvent type")})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(t){let e=U.new(this._root,{});t.container=e,this.children.push(e),t.series=this;let i=t.axisDataItem;i.setRaw("isRange",!0);let s=i.component;if(s){s._processAxisRange(i,["range","series"]);let a=i.get("bullet");if(a){let r=a.get("sprite");r&&r.setPrivate("visible",!1)}let o=i.get("axisFill");o&&e.set("mask",o),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),vt(this._dataSets,(t,e)=>{T(e,i=>{i.dispose()}),e.length=0})}_removeAxisRange(t){let e=t.axisDataItem,i=e.component;e.dispose(),Rt(i._seriesAxisRanges,e);let s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&T(this.valueXFields,t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let i=this.get(t+"Show");this.__valueXShowFields.push(i),i.indexOf("Working")!=-1?this._valueXShowFields.push(i.split("Working")[0]):this._valueXShowFields.push(i)}}),this.valueYFields&&T(this.valueYFields,t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let i=this.get(t+"Show");this.__valueYShowFields.push(i),i.indexOf("Working")!=-1?this._valueYShowFields.push(i.split("Working")[0]):this._valueYShowFields.push(i)}})}_dispose(){super._dispose(),this._bullets={};let t=this.chart;t&&t.series.removeValue(this),me(this.get("xAxis").series,this),me(this.get("yAxis").series,this)}_min(t,e){let i=Xe(this.getPrivate(t),e);this.setPrivate(t,i)}_max(t,e){let i=Ye(this.getPrivate(t),e);this.setPrivate(t,i)}_shouldMakeBullet(t){let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;let a=this.get("minBulletDistance",0);if(a>0){let o=this.startIndex(),n=this.endIndex()-o;if(e==s){if(this._xRenderer.axisLength()/n<a/5)return!1}else if(i==s&&this._yRenderer.axisLength()/n<a/5)return!1}return t.get(this._xField)!=null&&t.get(this._yField)!=null}_makeFieldNames(){let t=this.get("xAxis"),e=this.get("yAxis"),i=t.getPrivate("name"),s=xe(i),a=e.getPrivate("name"),o=xe(a),r=t.get("renderer").getPrivate("letter"),n=e.get("renderer").getPrivate("letter"),l="open",h="low",c="high",d="Show";t.className==="ValueAxis"?(this._xField=this.get(i+r+d),this._xOpenField=this.get(l+s+r+d),this._xLowField=this.get(h+s+r+d),this._xHighField=this.get(c+s+r+d)):(this._xField=i+r,this._xOpenField=l+s+r,this._xLowField=h+s+r,this._xHighField=c+s+r),e.className==="ValueAxis"?(this._yField=this.get(a+n+d),this._yOpenField=this.get(l+o+n+d),this._yLowField=this.get(h+o+n+d),this._yHighField=this.get(c+o+n+d)):(this._yField=a+n,this._yOpenField=l+o+n,this._yLowField=h+o+n,this._yHighField=c+o+n)}_fixVC(){let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let o=0;a&&(o=.999999999999),t===i?s.set("vcy",o):(e===i||s.set("vcy",o),s.set("vcx",o))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){let t=this.get("xAxis"),e=this.get("yAxis");this.set("x",t.x()-Lt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0)),this.set("y",e.y()-Lt(e.get("centerY",0),e.height())-e.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._xRenderer=this.get("xAxis").get("renderer"),this._yRenderer=this.get("yAxis").get("renderer"),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX"),a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;let o=this.get("tooltipPositionY"),r;switch(o){case"open":r=this._yOpenField;break;case"low":r=this._yLowField;break;case"high":r=this._yHighField;break;default:r=this._yField}this._tooltipFieldY=r,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();let n=this.get("stacked");if(this.isDirty("stacked")&&(n?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed){this._dataProcessed=!0,n&&this._stack();let l,h,c,d;T(this.dataItems,u=>{T(this._valueXShowFields,f=>{let m=u.get(f);m!=null&&(n&&(m+=this.getStackedXValue(u,f)),l=Xe(l,m),h=Ye(h,m))}),T(this._valueYShowFields,f=>{let m=u.get(f);m!=null&&(n&&(m+=this.getStackedYValue(u,f)),c=Xe(c,m),d=Ye(d,m))}),t.processSeriesDataItem(u,this._valueXFields),e.processSeriesDataItem(u,this._valueYFields)}),this._min("minX",l),this._max("maxX",h),this._min("minY",c),this._max("maxY",d),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)}if((this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty||this.isDirty("minBulletDistance")){let l=this.startIndex(),h=this.endIndex(),c=this.get("minBulletDistance",0);if(c>0&&i&&(i.get("renderer").axisLength()/(h-l)>c?this._showBullets=!0:this._showBullets=!1),(this._psi!=l||this._pei!=h||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;let d=this.get("vcx",1),u=this.get("vcy",1),f=this.get("stacked",!1),m=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),m)e.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processYSelectionDataItem(this.dataItems[g],u,f);if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),m)e.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processXSelectionDataItem(this.dataItems[g],d,f);if((i===t||!i)&&(this.get("valueYShow")!=="valueYWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinY");g!=null&&(this.setPrivateRaw("minY",g),e.markDirtyExtremes());let p=this.getPrivate("selectionMaxY");p!=null&&(this.setPrivateRaw("maxY",p),e.markDirtyExtremes())}if((i===e||!i)&&(this.get("valueXShow")!=="valueXWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinX");g!=null&&(this.setPrivateRaw("minX",g),e.markDirtyExtremes());let p=this.getPrivate("selectionMaxX");p!=null&&(this.setPrivateRaw("maxX",p),t.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&t.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&e.markDirtySelectionExtremes()}}}_postUpdateData(){let t=this.get("xAxis"),e=this.get("yAxis");t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,T(this.dataItems,i=>{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;t==null&&(t=this.children.push(E.new(this._root,{})),this._mainContainerMask=t,t.set("draw",(e,i)=>{let s=this.parent;if(s){let a=this._root.container.width(),o=this._root.container.height();e.moveTo(-a,-o),e.lineTo(-a,o*2),e.lineTo(a*2,o*2),e.lineTo(a*2,-o),e.lineTo(-a,-o),this.axisRanges.each(r=>{let n=r.axisDataItem.get("axisFill");if(s&&n){let l=n.get("draw");l&&l(e,i)}})}this.mainContainer._display.mask=t._display})),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){let t=this.chart;if(t){let e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),!(i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked"))));s--);}this._stackDataItems()}}_unstack(){vt(this._reallyStackedTo,(t,e)=>{delete e._stackedSeries[this.uid]}),this._reallyStackedTo={},T(this.dataItems,t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)})}_handleRemoved(){let t=this.get("xAxis");t&&t._handleSeriesRemoved();let e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){let t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis"),s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,r=0,n=this.get("stackToNegative");this._reallyStackedTo={},T(this.dataItems,l=>{for(let h=0;h<o;h++){let c=this._couldStackTo[h],d=c.dataItems[r],u=l.get(s);if(d){let f=d.get(s);if(n)if(v(u)){if(v(f)){if(h==o-1&&l.setRaw(a,void 0),u>=0&&f>=0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}if(u<0&&f<0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}else break;else if(v(u)&&v(f)){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}r++})}processXSelectionDataItem(t,e,i){T(this.__valueXShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))})}processYSelectionDataItem(t,e,i){T(this.__valueYShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))})}getStackedYValueWorking(t,e){let i=t.get("stackToItemY");if(i){let s=i.component;return i.get(e,0)*s.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){let i=t.get("stackToItemX");if(i){let s=i.component;return i.get(e,0)*s.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){let i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){let i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),r=this.get("yAxis"),n=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),n),c=r.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),d=this.getPoint(h,c),u=i.get("left",d.x),f=i.get("right",d.x),m=i.get("top",d.y),g=i.get("bottom",d.y),p=0,_=0,x=f-u,y=g-m;if(this._shouldShowBullet(h,c)){e.setPrivate("visible",!t.getPrivate("hidden"));let b=t.get("field"),w=this.get("baseAxis"),M=this.get("xAxis"),D=this.get("yAxis");if(b!=null){let k;w==M?(b=="value"?k=this._yField:b=="open"?k=this._yOpenField:b=="high"?k=this._yHighField:b=="low"&&(k=this._yLowField),k&&(c=D.getDataItemPositionY(i,k,0,this.get("vcy",1),l),d=this._yRenderer.positionToPoint(c),_=d.y,p=u+x*s)):(b=="value"?k=this._xField:b=="open"?k=this._xOpenField:b=="high"?k=this._xHighField:b=="low"&&(k=this._xLowField),k&&(h=M.getDataItemPositionX(i,k,0,this.get("vcx",1),n),d=this._xRenderer.positionToPoint(h),p=d.x,_=g-y*a))}else p=u+x*s,_=g-y*a;let P=t.get("stacked");if(P){let k=this.chart;if(w==M){let I=this._bullets[h+"_"+c];if(I){let C=I.bounds(),X=e.localBounds(),S=_;_=C.top,P=="down"?_=C.bottom-X.top:P=="auto"?k&&(S<k.plotContainer.height()/2?_=C.bottom-X.top:_+=X.bottom):_+=X.bottom}this._bullets[h+"_"+c]=e}else{let I=this._bullets[h+"_"+c];if(I){let C=I.bounds(),X=e.localBounds(),S=p;p=C.right,P=="down"?p=C.left-X.right:P=="auto"?k&&(S<k.plotContainer.width()/2?p=C.left-X.right:p-=X.left):p-=X.left}this._bullets[h+"_"+c]=e}}e.isType("Label")&&(e.setPrivate("maxWidth",Math.abs(x)),e.setPrivate("maxHeight",Math.abs(y))),e.setAll({x:p,y:_})}else e.setPrivate("visible",!1)}}_shouldShowBullet(t,e){return this._showBullets}setDataSet(t){if(this._dataSets[t]){this._handleDataSetChange(),this._dataItems=this._dataSets[t],this._markDataSetDirty(),this._dataSetId=t;let e="datasetchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,id:t})}}resetGrouping(){vt(this._dataSets,(t,e)=>{e!=this._mainDataItems&&T(e,i=>{i.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){T(this._dataItems,t=>{let e=t.bullets;e&&T(e,i=>{if(i){let s=i.get("sprite");s&&s.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return kt(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then(()=>{this._isShowing=!1;let s=this.get("xAxis"),a=this.get("yAxis"),o=this.get("baseAxis");a!==o&&a.markDirtySelectionExtremes(),s!==o&&s.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return kt(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];v(e)||(e=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing");T(this._valueFields,o=>{s.push(t.animate({key:o+"Working",to:t.get(o),duration:e,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),v(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=this.get("xAxis"),n=this.get("yAxis"),l=this.get("baseAxis"),h=this.get("stacked");if((l===r||!l)&&T(this._valueYFields,c=>{let d=n.getPrivate("min"),u=n.baseValue();v(d)&&d>u&&(u=d),h&&(u=0),t.get(c)!=null&&s.push(t.animate({key:c+"Working",to:u,duration:e,easing:o}).waitForStop())}),l===n||!l){let c=r.getPrivate("min"),d=r.baseValue();v(c)&&c>d&&(d=c),h&&(d=0),T(this._valueXFields,u=>{t.get(u)!=null&&s.push(t.animate({key:u+"Working",to:d,duration:e,easing:o}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){let t=this._stackedSeries;t&&vt(t,(e,i)=>{i._stackDirty||i._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));let e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),r=t.get("locationX",a),n=t.get("locationY",o),l=this.get("xAxis"),h=this.get("yAxis"),c=this.get("vcx",1),d=this.get("vcy",1),u=l.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*r,c,i),f=h.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*n,d,s),m=this.getPoint(u,f),g=!0;if(T(this._valueFields,p=>{t.get(p)==null&&(g=!1)}),g){let p=this.chart;p&&p.inPlot(m)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:m.x,y:m.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){let t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet"){let e=t.bullets;if(e&&e.length>0){let s=e[0].get("sprite");if(s)return s}}return this}updateLegendValue(t){let e=this.get("legendDataItem");if(e){let i=e.get("label");if(i){let a="";t?(i._setDataItem(t),a=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),a=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",a)}let s=e.get("valueLabel");if(s){let a="";t?(s._setDataItem(t),a=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),a=this.get("legendRangeValueText",s.get("text",""))),s.set("text",a)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){let e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){let s=e.baseDuration(),a=e.getPrivate("selectionMin",e.getPrivate("min",0)),o=s*this.get("locationX",.5),r=-1/0;for(;r<a;){let n=this.dataItems[t];if(n){let l=n.open;if(l?r=l.valueX:r=n.get("valueX",0),r+=o,r<a)t++;else break}else break}}return t}};lt.className="XYSeries";lt.classNames=Te.classNames.concat([lt.className]);var bt=class A extends lt{constructor(){super(...arguments),this._ph=0,this._pw=0,this._columnsUpdated=!1}_makeGraphics(t,e){return this.makeColumn(e,t)}_makeFieldNames(){super._makeFieldNames();let t=this.get("xAxis"),e=this.get("yAxis"),i="CategoryAxis",s="ValueAxis";t.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),t.isType(s)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),e.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),e.isType(s)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.dataItems.length,s=Math.max(0,this.startIndex()-2),a=Math.min(this.endIndex()+2,i-1);if(t.inited&&e.inited)for(let o=s;o<=a;o++){let r=this.dataItems[o];this._createGraphics(r)}}_updateChildren(){let t=this.chart;t&&(this._ph=t.plotContainer.height(),this._pw=t.plotContainer.width());let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis"),a=this.columns.template;this.isDirty("fill")&&a.get("fill")==null&&a.set("fill",this.get("fill")),this.isDirty("fillPattern")&&a.get("fillPattern")==null&&a.set("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&a.get("stroke")==null&&a.set("stroke",this.get("stroke"));let o=0,r=0,n=0;s&&T(s.series,m=>{if(m instanceof A){let g=m.get("stacked");g&&n==0&&r++,!g&&m.get("clustered")&&r++}m===this&&(o=r-1),n++}),this.get("clustered")||(o=0,r=1),r===0&&(r=1,o=0);let l="cellStartLocation",h="cellEndLocation",c=this._xRenderer.get(l,0),d=this._xRenderer.get(h,1),u=this._yRenderer.get(l,0),f=this._yRenderer.get(h,1);if(this._aLocationX0=c+o/r*(d-c),this._aLocationX1=c+(o+1)/r*(d-c),this._aLocationY0=u+o/r*(f-u),this._aLocationY1=u+(o+1)/r*(f-u),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){let m=this.dataItems.length,g=Math.max(0,this.startIndex()-2),p=Math.min(this.endIndex()+2,m-1);for(let y=0;y<g;y++)this._toggleColumn(this.dataItems[y],!1);let _=this.dataItems[g];for(let y=g;y<=p;y++){let b=this.dataItems[y];if(b.get("valueX")!=null&&b.get("valueY")!=null){if(_=b,y>0&&g>0)for(let w=y-1;w>=0;w--){let M=this.dataItems[w];if(M.get("valueX")!=null&&M.get("valueY")!=null){_=M;break}}break}else this._toggleColumn(b,!1)}this._beforeColumnsDraw();let x=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?x=2:e===s?x=0:i===s&&(x=1);for(let y=g;y<=p;y++){let b=this.dataItems[y];this._updateGraphics(b,_,x),b.get("valueX")!=null&&b.get("valueY")!=null&&(_=b)}this._afterColumnsDraw();for(let y=p+1;y<m;y++)this._toggleColumn(this.dataItems[y],!1);this._columnsUpdated=!0}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_afterChanged(){super._afterChanged(),this._columnsUpdated=!1}_beforeColumnsDraw(){}_afterColumnsDraw(){}_createGraphics(t){let e=t.get("graphics");if(!e){e=this._makeGraphics(this.columns,t),t.set("graphics",e),e._setDataItem(t);let i=t.get("legendDataItem");if(i){let a=i.get("markerRectangle");if(a){let o=a.states.lookup("default");T(be,r=>{let n=e.get(r,this.get(r));a.set(r,n),o.set(r,n)})}}let s=t.get("rangeGraphics");s&&T(s,a=>{a.dispose()}),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each(a=>{let o=a.container,r=this._makeGraphics(a.columns,t);s&&s.push(r),r.setPrivate("list",a.columns),o.children.push(r)})}}createAxisRange(t){return T(this.dataItems,e=>{let i=e.get("graphics");i&&(i.dispose(),e.set("graphics",void 0))}),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics"),a=this._xField,o=this._yField,r=t.get(a),n=t.get(o),l=this.get("exactLocationX",!1);if(r!=null&&n!=null){let h=this._xOpenField,c=this._yOpenField,d=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),f=this.get("openLocationX",t.get("openLocationX",d)),m=this.get("openLocationY",t.get("openLocationY",u)),g=s.get("width"),p=s.get("height"),_=this.get("stacked"),x=this.get("xAxis"),y=this.get("yAxis"),b=x.get("start"),w=x.get("end"),M=y.get("start"),D=y.get("end"),P,k,I,C,X=this.get("vcy",1),S=this.get("vcx",1),tt=!1,V=!1;if(i==0){let F=this._aLocationX0+f-.5,N=this._aLocationX1+d-.5;if(g instanceof It){let L=(N-F)*(1-g.value)/2;F+=L,N-=L}if(P=x.getDataItemPositionX(t,h,F,S,l),k=x.getDataItemPositionX(t,a,N,S,l),I=y.getDataItemPositionY(t,o,u,X),this._yOpenField!==this._yField)C=y.getDataItemPositionY(t,c,m,X);else if(_){let L=t.get("stackToItemY");L?C=y.getDataItemPositionY(L,o,m,L.component.get("vcy")):C=y.basePosition()}else C=y.basePosition();t.setRaw("point",{x:P+(k-P)/2,y:I}),V=!0}else if(i==1){let F=this._aLocationY0+m-.5,N=this._aLocationY1+u-.5;if(p instanceof It){let L=(N-F)*(1-p.value)/2;F+=L,N-=L}if(I=y.getDataItemPositionY(t,c,F,X),C=y.getDataItemPositionY(t,o,N,X),k=x.getDataItemPositionX(t,a,d,S,l),this._xOpenField!==this._xField)P=x.getDataItemPositionX(t,h,f,S,l);else if(_){let L=t.get("stackToItemX");L?P=x.getDataItemPositionX(L,a,f,L.component.get("vcx"),l):P=x.basePosition()}else P=x.basePosition();tt=!0,t.setRaw("point",{x:k,y:I+(C-I)/2})}else if(i==2){let F=this._aLocationX0+f-.5,N=this._aLocationX1+d-.5;if(g instanceof It){let L=(N-F)*(1-g.value)/2;F+=L,N-=L}if(P=x.getDataItemPositionX(t,h,F,S),k=x.getDataItemPositionX(t,a,N,S),F=this._aLocationY0+m-.5,N=this._aLocationY1+u-.5,p instanceof It){let L=(N-F)*(1-p.value)/2;F+=L,N-=L}I=y.getDataItemPositionY(t,c,F,X),C=y.getDataItemPositionY(t,o,N,X),t.setRaw("point",{x:P+(k-P)/2,y:I+(C-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,P,k,I,C,tt,V),P<b&&k<b||P>w&&k>w||I<M&&C<=M||I>=D&&C>D||at(P)||at(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let q=t.get("rangeGraphics");q&&T(q,F=>{this._updateSeriesGraphics(t,F,P,k,I,C,tt,V)})}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,r,n){let l=e.get("width"),h=e.get("height"),c=e.get("maxWidth"),d=e.get("maxHeight"),u=this.getPoint(i,a),f=this.getPoint(s,o),m=t.get("point");if(m){let g=this.getPoint(m.x,m.y);m.x=g.x+this._x,m.y=g.y+this._y}if(i=u.x,s=f.x,a=u.y,o=f.y,v(l)){let g=(s-i-l)/2;i+=g,s-=g}if(v(c)&&c<Math.abs(s-i)){let g=(s-i-c)/2;i+=g,s-=g}if(v(h)){let g=(o-a-h)/2;a+=g,o-=g}if(v(d)&&d<Math.abs(o-a)){let g=(o-a-d)/2;a+=g,o-=g}this.get("adjustBulletPosition")&&(r&&(s=Math.min(Math.max(0,s),this._pw),i=Math.min(Math.max(0,i),this._pw)),n&&(a=Math.min(Math.max(0,a),this._ph),o=Math.min(Math.max(0,o),this._ph))),t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),e.setPrivate("width",s-i),e.setPrivate("height",o-a),e.set("x",i),e.set("y",o-(o-a))}_handleDataSetChange(){super._handleDataSetChange(),T(this._dataItems,t=>{this._toggleColumn(t,!1)})}_applyGraphicsStates(t,e){let i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),r=i.states.lookup("riseFromPrevious");if(s||o||a||r){let n=this.get("xAxis"),l=this.get("yAxis"),h=this.get("baseAxis"),c,d,u;h===n&&l.isType("ValueAxis")?(c=t.get(this._yOpenField),d=t.get(this._yField),u=e.get(this._yField)):h===l&&n.isType("ValueAxis")&&(c=t.get(this._xOpenField),d=t.get(this._xField),u=e.get(this._xField)),v(c)&&v(d)&&(d<c?s&&s.apply():a&&a.apply(),v(u)&&(d<u?o&&o.apply():r&&r.apply()))}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("graphics");e&&(this.columns.removeValue(e),e.dispose());let i=t.get("rangeGraphics");i&&T(i,s=>{let a=s.getPrivate("list");a&&a.removeValue(s),s.dispose()})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));let o=t.get("rangeGraphics");o&&T(o,r=>{s.push(r.hide(e))}),yield Promise.all(s)})}_toggleColumn(t,e){let i=t.get("graphics");i&&i.setPrivate("visible",e);let s=t.get("rangeGraphics");s&&T(s,o=>{o.setPrivate("visible",e)});let a=t.bullets;a&&T(a,o=>{o.setPrivate("hidden",!e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));let o=t.get("rangeGraphics");o&&T(o,r=>{s.push(r.show(e))}),yield Promise.all(s)})}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){let i=this.dataItems[this.endIndex()-1];i&&(t=i)}if(e){let i=this.columns.template;if(t){let a=t.get("graphics");a&&(i=a)}let s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){let a=s.states.lookup("default");T(be,o=>{let r=i.get(o,this.get(o));s.set(o,r),a.set(o,r)})}}}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(t);let e=t.get("graphics");return e||this}};bt.className="BaseColumnSeries";bt.classNames=lt.classNames.concat([bt.className]);var ht=class extends Pe{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(U.new(this._root,{})),this.gridContainer=U.new(this._root,{width:$,height:$}),this.topGridContainer=U.new(this._root,{width:$,height:$}),this.bulletsContainer=this.children.push(U.new(this._root,{isMeasured:!1,width:$,height:$,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new ue,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(U.new(this._root,{themeTags:["axis","header"],position:"absolute",background:pt.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if(e.type==="clear")T(e.oldValues,i=>{i.dispose()});else if(e.type==="push")this._processAxisRange(e.newValue,["range"]);else if(e.type==="setIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="insertIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="removeIndex")this.disposeDataItem(e.oldValue);else if(e.type==="moveIndex")this._processAxisRange(e.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));let t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){let e=this.get("renderer").makeLabel(new K(this,void 0,{}),[]);e.adapters.disable("text"),e.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),e.events.disable(),this.ghostLabel=e}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let r=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-r&&(t=-r),e>1+r&&(e=1+r);let n=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),l=n;v(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),e===1&&t!==0&&(t<this.get("start",0)?s="start":s="end"),t===0&&e!==1&&(e>this.get("end",1)?s="end":s="start");let h=this.get("minZoomCount",0),c=this.dataItems;c&&c.length<h&&(h=c.length);let d=this.get("maxZoomCount",1/0);v(h)&&(n=l/h);let u=1;if(v(d)&&(u=l/d),t>e&&([t,e]=[e,t]),s==="start"?(d>0&&1/(e-t)<u&&(e=t+1/u),1/(e-t)>n&&(e=t+1/n),e>1&&e-t<1/n&&(t=e-1/n)):(d>0&&1/(e-t)<u&&(t=e-1/u),1/(e-t)>n&&(t=e-1/n),t<0&&e-t<1/n&&(e=t+1/n)),1/(e-t)>n&&(e=t+1/n),1/(e-t)>n&&(t=e-1/n),d!=null&&h!=null&&t==this.get("start")&&e==this.get("end")){let f=this.chart;f&&f._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let f=this.get("interpolationEasing"),m,g;if(this.get("start")!=t&&(m=this.animate({key:"start",to:t,duration:i,easing:f})),this.get("end")!=e&&(g=this.animate({key:"end",to:e,duration:i,easing:f})),this._sAnimation=m,this._eAnimation=g,m)return m;if(g)return g}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",()=>{this.markDirtyKey("start")})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);let i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);let o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(t=>{this._prepareDataItem(t)}),T(this._seriesAxisRanges,t=>{this._prepareDataItem(t)})}_prepareChildren(){super._prepareChildren();let t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){let i=this.chart;i&&i._updateCursor();let s=this.get("start",0),a=this.get("end",1),o=this.get("maxDeviation",.5)*Math.min(1,a-s);if(s<-o){let r=s+o;s=-o,this.setRaw("start",s),this.isDirty("end")&&this.setRaw("end",a-r)}if(a>1+o){let r=a-1-o;a=1+o,this.setRaw("end",a),this.isDirty("start")&&this.setRaw("start",s-r)}}let e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){let i=this.get("tooltip");if(i){let s=e.get("themeTags");i.addTag("axis"),i.addTag(this.className.toLowerCase()),i._applyThemes(),s&&(i.set("themeTags",Y(i.get("themeTags"),s)),i.label._applyThemes())}}}_updateTooltipBounds(){let t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t;let e=this.get("renderer");e.chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{t._handleAxisSelection(this)}),this.on("end",()=>{t._handleAxisSelection(this)}),t.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),t.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){let i="forceHidden",s=t.get("label");s&&s.set(i,e);let a=t.get("grid");a&&a.set(i,e);let o=t.get("tick");o&&o.set(i,e);let r=t.get("axisFill");r&&r.set(i,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l.set(i,e)}}_toggleDataItem(t,e){let i=t.get("label"),s="visible";i&&i.setPrivate(s,e);let a=t.get("grid");a&&a.setPrivate(s,e);let o=t.get("tick");o&&o.setPrivate(s,e);let r=t.get("axisFill");r&&r.setPrivate(s,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;let r=this.get("renderer"),n="minor",l=t.get("label");if(!l)r.makeLabel(t,e);else{let d=l.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((s=l.parent)===null||s===void 0||s.children.removeValue(l),r.makeLabel(t,e),l.dispose(),r.labels.removeValue(l))}let h=t.get("grid");if(!h)r.makeGrid(t,e);else{let d=h.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((a=h.parent)===null||a===void 0||a.children.removeValue(h),r.makeGrid(t,e),h.dispose(),r.grid.removeValue(h))}let c=t.get("tick");if(!c)r.makeTick(t,e);else{let d=!1,u=c.get("themeTags");i?u?.indexOf(n)==-1&&(d=!0):u?.indexOf(n)!=-1&&(d=!0),d&&((o=c.parent)===null||o===void 0||o.children.removeValue(c),r.makeTick(t,e),c.dispose(),r.ticks.removeValue(c))}(!i&&!t.get("axisFill")||i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled"))&&r.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(!e&&i&&!t.get("isRange")&&(e=i(this._root,this,t)),e){e.axis=this;let s=e.get("sprite");s&&(s._setDataItem(t),t.setRaw("bullet",e),s.parent||this.bulletsContainer.children.push(s))}}_afterChanged(){super._afterChanged();let t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);let e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());let s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());let a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());let o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());let r=t.get("bullet");r&&r.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());let t=this.ghostLabel;if(t){if(!t.isHidden()){let s=t.localBounds(),a=Math.ceil(s.right-s.left),o=t.get("text");T(this.dataItems,r=>{let n=r.get("label");if(n&&!n.isHidden()){let l=n.localBounds();Math.ceil(l.right-l.left)>a&&(o=n.text._getText())}}),t.set("text",o)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+(i-e)*.5)}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){let t=this._snapToSeries,e=this._cursorPosition,i=this.get("tooltip"),s=this.get("renderer");v(e)&&(T(this.series,a=>{if(a.get("baseAxis")===this){let o=this.getSeriesItem(a,e,this.get("tooltipLocation"));t&&t.indexOf(a)!=-1?(a.updateLegendMarker(o),a.updateLegendValue(o),a._settings.tooltipDataItem=o):(a.showDataItemTooltip(o),a.setRaw("tooltipDataItem",o))}}),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),at(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),e<this.get("start",0)||e>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){let e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return .05}};ht.className="Axis";ht.classNames=Pe.classNames.concat([ht.className]);var et=class extends ht{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let s=this.get("syncWithAxis");s&&(this._syncDp=new Oe([s.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),s.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,(t=this.ghostLabel)===null||t===void 0||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){let i=this.chart,s=!1;if(i){let a=this.get("renderer").getPrivate("letter");a=="Y"?i.xAxes.each(o=>{o.className!="ValueAxis"&&(s=!0)}):a=="X"&&i.yAxes.each(o=>{o.className!="ValueAxis"&&(s=!0)})}s&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,(this.getPrivate("selectionMinFinal")!=this.getPrivate("selectionMin")||this.getPrivate("selectionMaxFinal")!=this.getPrivate("selectionMax"))&&(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){let e=this.get("numberFormat"),i=this.getNumberFormatter(),s="";return e?s=i.format(t,e):s=i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(v(t)&&v(e)){let i=this.get("logarithmic"),s=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+s,r=a-s,n=1,l=t;if(i){if(r=this._minLogAdjusted,r<a)for(;r<a;)r+=s;if(l=r,l<=0){let b=this._minRealLog;v(b)||(b=1),l=Math.pow(10,Math.log(b)*Math.LOG10E),s<1&&(v(this._minRealLog)?l=this._minRealLog:l=Math.pow(10,-50))}n=Math.log(o-s)*Math.LOG10E-Math.log(l)*Math.LOG10E,n>2&&(r=Math.pow(10,Math.log(l)*Math.LOG10E-50))}let h=this.get("renderer"),c=h.get("minorLabelsEnabled"),d=h.get("minorGridEnabled",c),u=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E)),f=Math.round(s/u),m=2;G(f/5,10)%1==0&&(m=5),G(f/10,10)%1==0&&(m=10);let g=s/m,p=0,_=0,x=-1/0,y=this.get("renderer").gridCount();for(;r<o;){let b;this.dataItems.length<p+1?(b=new K(this,void 0,{}),this._dataItems.push(b),this.processDataItem(b)):b=this.dataItems[p],this._createAssets(b,[]),this._toggleDataItem(b,!0),b.setRaw("value",r);let w=b.get("label");w&&w.set("text",this._formatText(r)),this._prepareDataItem(b);let M=r;if(!i)M+=s;else if(n>2){let P=Math.max(1,y),k=Math.max(1,Math.ceil(n/P)),I=Math.log(l)*Math.LOG10E+(p+1)*k-50;M=Math.pow(10,I)}else M+=s;if(d){let P=r+g;for(i&&(n>2&&(g=this._adjustMinMax(r,M,10).step),P=r+g);P<M-s*1e-11;){let k;this.minorDataItems.length<_+1?(k=new K(this,void 0,{}),this.minorDataItems.push(k),this.processDataItem(k)):k=this.minorDataItems[_],this._createAssets(k,["minor"],!0),this._toggleDataItem(k,!0),k.setRaw("value",P);let I=k.get("label");I&&(c?I.set("text",this._formatText(P)):I.setPrivate("visible",!1)),this._prepareDataItem(k),P+=g,_++}}if(r=M,x==r)break;let D=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));if(D<1&&!i){let P=Math.round(Math.abs(Math.log(Math.abs(D))*Math.LOG10E))+2;r=G(r,P)}p++,i&&n<=2&&r-s<s&&(r=s),x=r}for(let b=p;b<this.dataItems.length;b++)this._toggleDataItem(this.dataItems[b],!1);for(let b=_;b<this.minorDataItems.length;b++)this._toggleDataItem(this.minorDataItems[b],!1);T(this.series,b=>{b.inited&&b._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,n=this.valueToPosition(s+this.getPrivate("step"));v(a)&&(r=this.valueToPosition(a),n=r),t.get("isRange")&&a==null&&(n=o);let l=r,h=t.get("labelEndValue");h!=null&&(l=this.valueToPosition(h)),i.updateLabel(t.get("label"),o,l,e);let c=t.get("grid");if(i.updateGrid(c,o,r),c&&(s==this.get("baseValue",0)?(c.addTag("base"),c._applyThemes()):c.hasTag("base")&&(c.removeTag("base"),c._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,n),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){let d=this.get("fillRule");d&&d(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1)),i=this.get("renderer").gridCount(),s=this._adjustMinMax(t,e,i,!0),a=He(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=G(t,a),e=G(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,(this.getPrivate("selectionMin")!==t||this.getPrivate("selectionMax")!==e||this.getPrivate("step")!==o)&&(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){let e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){let e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");v(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}valueToFinalPosition(t){let e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");v(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);if(t.get("stackToItemX")){let r=t.component;a=a*s+r.getStackedXValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);if(t.get("stackToItemY")){let r=t.component;a=a*s+r.getStackedYValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){let t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0)),i=this.get("baseValue",0);return i<t&&(i=t),i>e&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i=t.endIndex();i<t.dataItems.length&&i++;let s,a;t.get("yAxis")==this?(s="valueY",a="vcy"):t.get("xAxis")==this&&(s="valueX",a="vcx");let o=s+"Working";if(s){let r=this.series.length,n=[],l=[];for(let f=0;f<r;f++){let m=this.series[f];m.get("excludeFromTotal")||(n.push(m),l.push(m.get(a)))}let h=n.length,c=s+"Total",d=s+"Sum",u=s+"TotalPercent";for(let f=e;f<i;f++){let m=0,g=0;for(let p=0;p<h;p++){let _=n[p].dataItems[f];if(_){let x=_.get(o)*l[p];at(x)||(m+=x,g+=Math.abs(x))}}for(let p=0;p<h;p++){let _=n[p].dataItems[f];if(_){let x=_.get(o)*l[p];at(x)||(_.set(c,g),_.set(d,m),_.set(u,g==0?0:x/g*100))}}}}}}}}_getSelectionMinMax(){let t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max"),a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2));let r=this.get("renderer").gridCount(),n=this.get("strictMinMaxSelection"),l=this.get("strictMinMax");if(v(t)&&v(e)){let h=e,c=t;if(T(this.series,y=>{if(!y.get("ignoreMinMax")){let b,w,M=y.getPrivate("outOfSelection");if(y.get("xAxis")===this){if(!M){let D=y.getPrivate("minX"),P=y.getPrivate("maxX");(y.startIndex()!=0||y.endIndex()!=y.dataItems.length)&&(D=void 0,P=void 0),b=y.getPrivate("selectionMinX",D),w=y.getPrivate("selectionMaxX",P)}}else if(y.get("yAxis")===this&&!M){let D=y.getPrivate("minY"),P=y.getPrivate("maxY");(y.startIndex()!=0||y.endIndex()!=y.dataItems.length)&&(D=void 0,P=void 0),b=y.getPrivate("selectionMinY",D),w=y.getPrivate("selectionMaxY",P)}!y.isHidden()&&!y.isShowing()&&(v(b)&&(h=Math.min(h,b)),v(w)&&(c=Math.max(c,w)))}}),this.axisRanges.each(y=>{if(y.get("affectsMinMax")){let b=y.get("value");b!=null&&(h=Math.min(h,b),c=Math.max(c,b)),b=y.get("endValue"),b!=null&&(h=Math.min(h,b),c=Math.max(c,b))}}),h>c&&([h,c]=[c,h]),v(i)?l?h=i:h=t:l&&v(this._minReal)&&(h=this._minReal),v(s)?l?c=s:c=e:l&&v(this._maxReal)&&(c=this._maxReal),h===c){let y=h;if(h-=this._deltaMinMax,c+=this._deltaMinMax,h<t){let w=y-t;w==0&&(w=this._deltaMinMax),h=y-w,c=y+w,l=!0}let b=this._adjustMinMax(h,c,r,l);h=b.min,c=b.max}let d=h,u=c,f=c-h;h-=f*a,c+=f*o;let m=this._adjustMinMax(h,c,r);h=m.min,c=m.max,h=ot(h,t,e),c=ot(c,t,e),m=this._adjustMinMax(h,c,r,!0),l||(h=m.min,c=m.max);let g=this.get("syncWithAxis");if(g&&(m=this._syncAxes(h,c,m.step,g.getPrivate("selectionMinFinal",g.getPrivate("minFinal",0)),g.getPrivate("selectionMaxFinal",g.getPrivate("maxFinal",1)),g.getPrivate("selectionStepFinal",g.getPrivate("step",1))),h=m.min,c=m.max),l&&!g&&(v(i)&&(h=Math.max(h,i)),v(s)&&(c=Math.min(c,s))),n&&!g&&(h=d-(u-d)*a,c=u+(u-d)*o),l&&!g){v(i)?h=i:h=d,v(s)?c=s:c=u,c-h<=1e-8&&(h-=this._deltaMinMax,c+=this._deltaMinMax);let y=c-h;h-=y*a,c+=y*o}this.get("logarithmic")&&(h<=0&&(h=d*(1-Math.min(a,.99))),h<t&&(h=t),c>e&&(c=e));let p=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),_=G(this.valueToFinalPosition(h),p),x=G(this.valueToFinalPosition(c),p);this.setPrivateRaw("selectionMinFinal",h),this.setPrivateRaw("selectionMaxFinal",c),this.setPrivateRaw("selectionStepFinal",m.step),this.zoom(_,x)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2)));let r=1/0;if(T(this.series,x=>{if(!x.get("ignoreMinMax")){let y,b;if(x.get("xAxis")===this?(y=x.getPrivate("minX"),b=x.getPrivate("maxX")):x.get("yAxis")===this&&(y=x.getPrivate("minY"),b=x.getPrivate("maxY")),v(y)&&v(b)){i=Math.min(i,y),s=Math.max(s,b);let w=b-y;w<=0&&(w=Math.abs(b/100)),w<r&&(r=w)}}}),this.axisRanges.each(x=>{if(x.get("affectsMinMax")){let y=x.get("value");y!=null&&(i=Math.min(i,y),s=Math.max(s,y)),y=x.get("endValue"),y!=null&&(i=Math.min(i,y),s=Math.max(s,y))}}),this.get("logarithmic")){let x=this.get("treatZeroAs");v(x)&&i<=0&&(i=x),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(i===0&&s===0&&(s=.9,i=-.9),v(t)&&(i=t),v(e)&&(s=e),i===1/0||s===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}i>s&&([i,s]=[s,i]);let n=i,l=s,h=this.adapters.fold("min",i),c=this.adapters.fold("max",s);this._minRealLog=i,v(h)&&(i=h),v(c)&&(s=c),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&n>=0&&(i=0),s>0&&l<=0&&(s=0)),this._minReal=i,this._maxReal=s;let d=this.get("strictMinMax"),u=this.get("strictMinMaxSelection",!1);u&&(d=u);let f=d;v(e)&&(f=!0);let m=this.get("renderer").gridCount(),g=this._adjustMinMax(i,s,m,f);if(i=g.min,s=g.max,g=this._adjustMinMax(i,s,m,!0),i=g.min,s=g.max,d){v(t)?i=t:i=this._minReal,v(e)?s=e:s=this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let x=s-i;i-=x*a,s+=x*o}h=this.adapters.fold("min",i),c=this.adapters.fold("max",s),v(h)&&(i=h),v(c)&&(s=c),r==1/0&&(r=s-i);let p=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=G(i,p),s=G(s,p);let _=this.get("syncWithAxis");if(_&&(g=this._syncAxes(i,s,g.step,_.getPrivate("minFinal",_.getPrivate("min",0)),_.getPrivate("maxFinal",_.getPrivate("max",1)),_.getPrivate("step",1)),i=g.min,s=g.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/r*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=n*(1-Math.min(a,.99)))),v(i)&&v(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);let x=this.get("interpolationDuration",0),y=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:x,easing:y}),this.animatePrivate({key:"max",to:s,duration:x,easing:y})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i=i/10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;r===0&&(r=Math.abs(e));let n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n));l=l/10;let h=l;s&&(h=0),s?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n)),l=l/100;let c=Math.ceil(r/i/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),u=Math.ceil(c/d);u>5?u=10:u<=5&&u>2&&(u=5),c=Math.ceil(c/(d*u))*d*u;let f=this.get("maxPrecision");if(v(f)){let _=ye(c,f);f<Number.MAX_VALUE&&c!==_&&(c=_,c==0&&(c=1))}let m=0;d<1&&(m=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,c=G(c,m));let g=Math.floor(t/c);t=G(c*g,m);let p;return s?p=Math.floor(e/c):p=Math.ceil(e/c),p===g&&p++,e=G(c*p,m),e<o&&(e=e+c),t>a&&(t=t-c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){let i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,r=G(this.positionToValue(t),o);return i?s.format(r,i):s.format(r,void 0,o)}getSeriesItem(t,e){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.positionToValue(e),a,o;if(T(t.dataItems,(r,n)=>{let l=Math.abs(r.get(i)-s);(a===void 0||l<o)&&(a=n,o=l)}),a!=null)return t.dataItems[a]}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",1));this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}_syncAxes(t,e,i,s,a,o){if(this.get("syncWithAxis")){let n=Math.round((a-s)/o);if(n>0)if(this.get("syncZeros")&&s<=0&&a>=0){let l=Math.round((0-s)/o),h=n-l,c=0;l>0&&t<0&&(c=Math.abs(t)/l),h>0&&e>0&&(c=Math.max(c,e/h)),c==0&&(c=(e-t)/n),i=this._niceStep(c),t=-i*l,e=i*h}else{let l=(e-t)/n;i=this._niceStep(l);let h=Math.floor(t/i)*i,c=h+i*n;c<e&&(h=Math.ceil(e/i)*i-i*n,c=h+i*n),t>=0&&h<0&&(h=0,c=i*n),e<=0&&c>0&&(c=0,h=-(i*n)),t=h,e=c}}return{min:t,max:e,step:i}}_niceStep(t){let e=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),i=t/e;i<=1?i=1:i<=2?i=2:i<=5?i=5:i=10;let s=i*e,a=this.get("maxPrecision");if(v(a)){let o=ye(s,a);a<Number.MAX_VALUE&&s!==o&&(s=o,s==0&&(s=1))}return s}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return v(t)&&v(e)?this.getPrivate("step",1)/(t-e):.05}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.positionToValue(this.getPrivate("tooltipPosition",0));return e+=this.getPrivate("step",1)*t,e=ot(e,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(e))}};et.className="ValueAxis";et.classNames=ht.classNames.concat([et.className]);var Dt=class A extends ht{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();let t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();let t=this.dataItems.length,e=0;this._valuesDirty&&(this._itemMap={},T(this.dataItems,o=>{o.setRaw("index",e),this._itemMap[o.get("category")]=o,e++}),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){let t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0),r=this._sAnimation,n=this._eAnimation,l=this.get("start",0),h=!1;r&&!r.stopped&&(l=Number(r.to),h=!0);let c=this.get("end",1);if(n&&!n.stopped&&(c=Number(n.to),h=!0),h){let d=this._getIndices(l,c);a=d.startIndex,o=d.endIndex}for(let d=a;d<o;d++){let u=this.dataItems[d];s+=u.get("finalCellSize",1)}if(s<=i){let d=0;for(let u=a;u<t;u++){let f=this.dataItems[u];if(d+=f.get("finalCellSize",1),o=u+1,d>=i)break}if(d<i)for(let u=a-1;u>=0;u--){let f=this.dataItems[u];if(d+=f.get("finalCellSize",1),a=u,d>=i)break}this.zoomToIndexes(a,o)}else if(s>=e){let d=s;for(let u=o-1;u>=a;u--){let f=this.dataItems[u];if(d-=f.get("finalCellSize",1),d<=e){o=u+1;break}}this.zoomToIndexes(a,o)}}}_handleRangeChange(){T(this.series,t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),o=t.get("yAxis");if(a instanceof A&&o instanceof A)t._markDirtyAxes();else if(s===this){let r,n,l=o;if(a===s?(t.get("categoryXField")&&(r="categoryX"),t.get("openCategoryXField")&&(n="openCategoryX")):o===s&&(t.get("categoryYField")&&(r="categoryY"),t.get("openCategoryYField")&&(n="openCategoryY"),l=a),l instanceof et&&(r||n)){let d=function(g,p,_,x,y,b){let w,M=p.categoryToIndex(y);for(;!w&&M>=0&&M<p.dataItems.length;){let D=p.dataItems[M].get("category");if(b=="previous")for(let P=g.dataItems.length-1;P>=0;P--){let k=g.dataItems[P];if(_&&k.get(_)===D){w=k;break}if(x&&k.get(x)===D){w=k;break}}else for(let P=0,k=g.dataItems.length;P<k;P++){let I=g.dataItems[P];if(_&&I.get(_)===D){w=I;break}if(x&&I.get(x)===D){w=I;break}}w||(M+=b==="previous"?-1:1)}return w},h,c;h=d(t,this,r,n,e,"next"),c=d(t,this,r,n,i,"previous");let u=0,f=t.dataItems.length;h&&(u=t.dataItems.indexOf(h)),c&&(f=t.dataItems.indexOf(c)+1),t.setPrivate("startIndex",u),t.setPrivate("endIndex",f);let m=!1;for(let g=u;g<f;g++){let p=t.dataItems[g];if(T(t.__valueXShowFields,_=>{p.get(_)!=null&&(m=!0)}),T(t.__valueYShowFields,_=>{p.get(_)!=null&&(m=!0)}),m)break}t.setPrivate("outOfSelection",!m)}t._markDirtyAxes()}})}_prepareAxisItems(){var t;let e=this.get("renderer"),i=this.dataItems.length,s=this.startIndex();s>0&&s--;let a=this.endIndex();a<i&&a++;let o=e.get("minorLabelsEnabled"),r=e.get("minorGridEnabled",o),n=e.axisLength()/Math.max(e.get("minGridDistance"),1),l=Math.max(1,Math.min(i,Math.ceil((a-s)/n)));s=Math.floor(s/l)*l,this._frequency=l;for(let c=0;c<i;c++)this._toggleDataItem(this.dataItems[c],!1);let h=this.dataItems[s].get("index",0);for(let c=s;c<a;c=c+l){let d=this.dataItems[c];this._createAssets(d,[]),this._toggleDataItem(d,!0);let u=l;r&&(u=1),this._prepareDataItem(d,h,u),h++}if(e.get("minorGridEnabled"))for(let c=s;c<a;c++){let d=this.dataItems[c];c%l!=0&&(this._createAssets(d,["minor"],!0),this._toggleDataItem(d,!0),this._prepareDataItem(d,0,1),o||(t=d.get("label"))===null||t===void 0||t.setPrivate("visible",!1))}this._updateGhost()}_prepareDataItem(t,e,i){let s=this.get("renderer"),a=t.get("categoryLocation",0),o=t.get("endCategoryLocation",1),r=t.get("index");v(r)||(r=this.categoryToIndex(t.get("category")));let n=this.indexToPosition(r,a),l=t.get("endCategory"),h;l?(h=this.categoryToIndex(l),v(h)||(h=r)):h=r;let c=this.indexToPosition(h,o),d,u;if(t.get("isRange")){if(d=h,!v(r)){this._toggleDataItem(t,!1);return}}else d=r+this._frequency-1;u=this.indexToPosition(d,o),s.updateLabel(t.get("label"),n,c,i),s.updateGrid(t.get("grid"),n,c),s.updateTick(t.get("tick"),n,c,i),s.updateFill(t.get("axisFill"),n,u),this._processBullet(t),s.updateBullet(t.get("bullet"),n,c);let f=this.get("fillRule");f&&f(t,e)}startIndex(){let t=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),t-1)}endIndex(){let t=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",t),t))}baseValue(){}basePosition(){return 0}getX(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getY(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getDataItemPositionX(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}indexToPosition(t,e,i){let s=this.dataItems.length,a=0;if(s==0||(t>=s&&(t=s-1,e=1),v(e)||(e=.5),!v(t)))return 0;let o=this.get("startLocation",0),r=this.get("endLocation",1);if(!this.get("cellSizeField"))s-=o,s-=1-r,a=(t+e-o)/s;else{let n=i?"finalCellSize":"cellSize",l=this.dataItems,h=0;T(this.dataItems,u=>{h+=u.get(n,1)}),h-=o*l[0].get(n,1),h-=(1-r)*l[l.length-1].get(n,1);let c=0;for(let u=0;u<t;u++)c+=l[u].get(n,1);let d=l[t].get(n,1);a=(c+e*d-o*l[0].get(n,1))/h}if(!i){let n=this.dataItems[t];n&&(a+=n.get("deltaPosition",0))}return a}categoryToPosition(t){let e=this._itemMap[t];return e?this.indexToPosition(e.get("index")):NaN}categoryToIndex(t){let e=this._itemMap[t];return e?e.get("index"):NaN}dataItemToPosition(t){return this.indexToPosition(t.get("index"))}roundAxisPosition(t,e){return t+=(.5-e)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(t),e)}axisPositionToIndex(t){let e=this.dataItems.length;if(e===0)return 0;if(this.get("cellSizeField")){let i=0,s=[];T(this.dataItems,l=>{let h=l.get("cellSize",1);s.push(h),i+=h});let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,n=0;for(let l=0;l<e;l++){let h=s[l];if(r<n+h)return l;n+=h}return e-1}else return ot(Math.floor(t*e),0,e-1)}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=i.get("label");if(s)return Ke(s,this.get("tooltipText",""))}}_updateTooltipText(t,e){t._setDataItem(this.dataItems[this.axisPositionToIndex(e)]),t.label.text.markDirtyText()}getSeriesItem(t,e){if(this.dataItems.length>0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],r=o.get("category");if(a&&o&&a.get(i)===r)return a;for(let n=0,l=t.dataItems.length;n<l;n++){let h=t.dataItems[n];if(h.get(i)===r)return h}}}_getIndices(t,e){let i=this.dataItems.length,s=0,a=i,o="cellSize";if(this.get("cellSizeField")){let r=0,n=this.dataItems;if(n.length==0)return{startIndex:0,endIndex:0};T(n,h=>{r+=h.get(o,1)}),r-=this.get("startLocation",0)*n[0].get(o,1),r-=(1-this.get("endLocation",1))*n[n.length-1].get(o,1);let l=0;for(let h=0;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>Math.round(t*r)){s=h;break}for(let h=s+1;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>=Math.round(e*r)){a=h+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.getPrivate("tooltipPosition",0),i=ot(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}};Dt.className="CategoryAxis";Dt.classNames=ht.classNames.concat([Dt.className]);var Wt=class extends Dt{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));let t=this.get("renderer"),e=this.dataItems.length,i=this.startIndex();i>0&&i--;let s=this.endIndex();s<e&&s++;let a=t.axisLength()/Math.max(t.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),o=Math.min(e,Math.ceil((s-i)/a));i=Math.floor(i/o)*o,this._frequency=o;for(let y=0;y<e;y++)this._toggleDataItem(this.dataItems[y],!1);let r=Number(this.dataItems[i].get("category")),n=Number(this.dataItems[s-1].get("category")),l=n-r;s-i<a&&(l=n-r-((n-r)/this.baseDuration()-(s-i))*this.baseDuration());let h=Ft(0,l,a,this.get("gridIntervals")),c=Ot(h.timeUnit),d=this.getPrivate("baseInterval");j(h)<this.baseDuration()&&(h=Object.assign({},d));let u=this.get("dateFormats"),f=-1/0,m=-1/0,g=-1/0,p,_=[],x=!1;for(let y=i;y<s;y++){let b=this.dataItems[y],w=b.get("index"),M=!1,D=Number(b.get("category")),P=new Date(D),k=ei(P,h.timeUnit);p=u[h.timeUnit];let I=!1;h.timeUnit!="year"&&h.timeUnit!="week"&&c&&this.get("markUnitChange")&&v(f)&&Ut(D,f,c,this._root.utc)&&(p=this.get("periodChangeDateFormats")[h.timeUnit],w-o*.5<m&&_.pop(),_.push({format:p,dataItem:b}),x=!0,I=!0,m=w,g=k);let C=!1;h.timeUnit==="day"||h.timeUnit==="week"?w-m>=o&&(C=!0):k%h.count===0&&k!=g&&(C=!0),!I&&C&&(w-o*.7<m&&x&&(M=!0),M||(_.push({format:p,dataItem:b}),m=w,g=k),x=!1),f=D}if(_.length>0){let y=_[0].dataItem.get("index",0);T(_,b=>{let w=b.dataItem,M=b.format;this._createAssets(w,[]),this._toggleDataItem(w,!0);let D=Number(w.get("category")),P=new Date(D),k=w.get("label");k&&k.set("text",this._root.dateFormatter.format(P,M)),y++,this._prepareDataItem(w,y,o)})}}baseDuration(){return j(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",s))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}};Wt.className="CategoryDateAxis";Wt.classNames=Dt.classNames.concat([Wt.className]);var Pt=class extends et{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=j(t)}_fixZoomFactor(){let t=this.get("maxZoomFactor");t!=null&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(v(t)&&v(e)){this._fixZoomFactor();let i=this.getPrivate("groupInterval");if(i?this._setBaseInterval(i):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let s=this.get("groupInterval");s&&(this.setRaw("groupIntervals",[s]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))T(this.series,s=>{this._groupSeriesData(s)}),this._handleRangeChange();else{let s=this.get("baseInterval"),a=s.timeUnit+s.count;T(this.series,o=>{o.setDataSet(a),o.resetGrouping()}),this._setBaseInterval(s),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),s=this.get("groupIntervals");T(s,u=>{j(u)>i&&e.push(u)}),t._dataSets={};let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o,r=t.get("baseAxis");t.get("xAxis")===r?o=t._valueYFields:t.get("yAxis")===r&&(o=t._valueXFields);let n=t._mainDataItems,l=this.get("baseInterval"),h=l.timeUnit+l.count;t._dataSets[h]=n;let c=t.get("groupDataCallback"),d=t.get("groupDataWithOriginals",!1);c&&(d=!0),T(e,u=>{let f=-1/0,m=u.timeUnit+u.count;t._dataSets[m]=[];let g,p={},_={},x={},y={};T(o,P=>{p[P]=0,_[P]=0,x[P]=t.get(P+"Grouped"),y[P]=P+"Working"});let b=Q(u.timeUnit),w=n[0],M;w&&(M=n[0].get(a));let D;T(n,P=>{let k=P.get(a),I=R(k,u.timeUnit,u.count,this._root,M),C;if(f<I-b/24)C=Ct(P.dataContext),g=new K(t,C,t._makeDataItem(C)),g.setRaw(a,I),t._dataSets[m].push(g),T(o,X=>{let S=P.get(X);v(S)?(g.setRaw(X,S),g.setRaw(y[X],S),_[X]=1,p[X]=S):(p[X]=0,_[X]=0)}),d&&g.set("originals",[P]),c&&D&&c(D,u),D=g;else{let X=!1;if(T(o,S=>{let tt=x[S],V=P.get(S);if(V!=null){X=!0;let q=g.get(S);switch(tt){case"close":g.setRaw(S,V);break;case"sum":g.setRaw(S,q+V);break;case"open":break;case"low":V<q&&g.setRaw(S,V);break;case"high":V>q&&g.setRaw(S,V);break;case"average":_[S]++,p[S]+=V;let F=p[S]/_[S];g.setRaw(S,F);break;case"extreme":Math.abs(V)>Math.abs(q)&&g.setRaw(S,V);break}g.setRaw(y[S],g.get(S))}}),X){let S=Ct(P.dataContext);S[a]=I,g.dataContext=S}d&&g.get("originals").push(P)}f=I}),c&&D&&c(D,u)}),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=Ft(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return j(i)<j(e)&&(i=Object.assign({},e)),i}getIntervalMax(t){return this._intervalMax[t.timeUnit+t.count]}getIntervalMin(t){return this._intervalMin[t.timeUnit+t.count]}_handleRangeChange(){super._handleRangeChange();let t=Math.round(this.getPrivate("selectionMin")),e=Math.round(this.getPrivate("selectionMax"));if(v(t)&&v(e)){if(this.get("endLocation")==0&&(e+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=e-t+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this._baseDuration);if(s){let o=j(s);a=Math.ceil(a/o)*o}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let o=i.timeUnit+i.count;T(this.series,r=>{r.get("baseAxis")===this&&r.setDataSet(o)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{let r="groupintervalchanged";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})})})}}T(this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=Ee(i.dataItems,g=>ft(g.get(s),t)).index;o>0&&(o-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let n=mt(i.dataItems,g=>ft(g.get(s),e)).index,l=n;l>1&&l--;let h=i.dataItems[o],c=i.dataItems[l],d,u;h&&(u=h.get(s)),c&&(d=c.get(s));let f=!1;d!=null&&u!=null&&(d<t||u>e)&&(f=!0),i.setPrivate("outOfSelection",f),i.setPrivate("startIndex",o);let m=i._adjustStartIndex(o);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})),i.setPrivate("endIndex",n)}})}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return t=="day"||t=="month"||t=="year"?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(s==10||s==15?s=5:s==12?s=2:s==6?s=1:s==30?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),a=="week"&&(((e=this.getPrivate("baseInterval"))===null||e===void 0?void 0:e.timeUnit)!="week"?i={timeUnit:"day",count:1}:i={timeUnit:"week",count:1}),a=="year"&&s==1&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<4*366*24*60*60*1e3&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(v(t)&&v(e)){let i=this._root,s=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),o=this.get("renderer"),r=this.getPrivate("baseInterval"),n=s,l=0,h=this.get("gridIntervals"),c=Ft(0,a-s,o.gridCount(),h);j(c)<this._baseDuration&&(c=Object.assign({},r));let d=j(c);this._intervalDuration=d;let u=Ot(c.timeUnit),f=i.utc,m=i.timezone;n=R(s-d,c.timeUnit,c.count,i,t);let g=n-d,p,_=this.get("dateFormats");this.setPrivateRaw("gridInterval",c);let x=o.get("minorLabelsEnabled"),y=o.get("minorGridEnabled",x),b,w=0;y&&(b=this._getMinorInterval(c),w=j(b));let M=0;for(;n<a+d;){let D;this.dataItems.length<l+1?(D=new K(this,void 0,{}),this._dataItems.push(D),this.processDataItem(D)):D=this.dataItems[l],this._createAssets(D,[]),this._toggleDataItem(D,!0),D.setRaw("value",n),D.setRaw("labelEndValue",void 0);let P=n+Q(c.timeUnit,c.count*this._getM(c.timeUnit));P=R(P,c.timeUnit,1,i),D.setRaw("endValue",P);let k=new Date(n);p=_[c.timeUnit],u&&this.get("markUnitChange")&&v(g)&&c.timeUnit!="year"&&Ut(n,g,u,f,m)&&(p=this.get("periodChangeDateFormats")[c.timeUnit]);let I=D.get("label");I&&I.set("text",i.dateFormatter.format(k,p));let C=c.count;if(c.timeUnit=="week"?I?.set("location",this.get("weekLabelLocation",0)):I?.set("location",o.labels.template.get("location")),y){C=1;let X=c.timeUnit;X=="week"&&this.get("skipFirstMinor")&&(X="day");let S=n+Q(X,this._getM(X));S=R(S,X,1,i),D.setRaw("labelEndValue",S)}if(this._prepareDataItem(D,C),g=n,n=P,b){let X=b.timeUnit,S=b.count,tt=this._getM(X);this.get("skipFirstMinor")||(g-=w*tt);let V=R(g+w*tt,X,S,i,g),q,F=this.get("minorDateFormats",this.get("dateFormats"));for(;V<n-.01*w;){let N;this.minorDataItems.length<M+1?(N=new K(this,void 0,{}),this.minorDataItems.push(N),this.processDataItem(N)):N=this.minorDataItems[M],this._createAssets(N,["minor"],!0),this._toggleDataItem(N,!0),N.setRaw("value",V);let L=V+Q(X,S*tt);L=R(L,X,1,i),N.setRaw("endValue",L);let xt=new Date(V);p=F[X];let _t=N.get("label");if(_t&&(x?_t.set("text",i.dateFormatter.format(xt,p)):_t.setPrivate("visible",!1)),this._prepareDataItem(N,1),V==q)break;if(!N.get("isRange")){let it=this.get("fillRule");it&&it(N)}q=V,V=L,M++}}if(n==g)break;l++}for(let D=l;D<this.dataItems.length;D++)this._toggleDataItem(this.dataItems[D],!1);for(let D=M;D<this.minorDataItems.length;D++)this._toggleDataItem(this.minorDataItems[D],!1);T(this.series,D=>{D.inited&&D._markDirtyAxes()})}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+Q(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+Q(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return j(this.get("baseInterval"))}processSeriesDataItem(t,e){let i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),T(e,s=>{let a=t.get(s);if(v(a)){let o=t.open[s],r=t.close[s];if(!(a>=o&&a<=r)){let n=i.timeUnit,l=i.count;o=R(a,n,l,this._root),r=o+Q(n,l*this._getM(n)),r=R(r,n,1,this._root),t.open[s]=o,t.close[s]=r}this._updateDates(o,t.component)}})}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i=i-(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!at(i)){let a=this._root.locale.firstDayOfWeek,o=s.timeUnit,r=this._root.utc,n=this._root.timezone,l=s.count;i=R(i,o,l,this._root,this.getPrivate("min",0));let h=de(s,new Date(i),a,r,n);return n&&(i=R(i+this._baseDuration*.05,o,l,this._root,this.getPrivate("min",0)),h=de(s,new Date(i+h*e),a,r,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(this.getPrivate("min")!=null){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(v(s)){let a=new Date(s),o=this.getPrivate("baseInterval"),r=de(o,a,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return e!==!1&&(a=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*r)),this._root.dateFormatter.format(a,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);i==null&&(i=.5),o=o-(i-.5)*this._baseDuration;let r=mt(t.dataItems,n=>{let l=0;return n.open&&(l=n.open[a]),ft(l,o)});if(s||t.get("snapTooltip")){let n=t.dataItems[r.index-1],l=t.dataItems[r.index];if(n&&l&&n.open&&l.close){let h=n.open[a],c=l.close[a];if(Math.abs(o-h)>Math.abs(o-c))return l}if(n)return n;if(l)return l}else{let n=t.dataItems[r.index-1];if(n&&n.open&&n.close){let l=n.open[a],h=n.close[a];if(o>=l&&o<=h)return n}}}shouldGap(t,e,i,s){let a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(this.getPrivate("min")!=null&&this.getPrivate("max")!=null)if(this.get("groupData")){let o=this.getGroupInterval(e-t),r=this.get("baseInterval"),n=this.getIntervalMin(r),l=this.getIntervalMax(r)-1;l=R(l,o.timeUnit,o.count,this.root),l+=this._getM(o.timeUnit)*j(o),l=R(l,o.timeUnit,o.count,this.root);let h=R(n,o.timeUnit,o.count,this.root),c=R(l,o.timeUnit,o.count,this.root),d=(t-h)/(c-h),u=(e-h)/(c-h);this.zoom(d,u,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return v(t)&&v(e)?this._intervalDuration/(t-e):.05}nextPosition(t){t==null&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0)),s=this.getPrivate("baseInterval"),a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),n=R(o,s.timeUnit,s.count,this._root),l=R(r,s.timeUnit,s.count,this._root);return a+=e,a=ot(a,n+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return R(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}};Pt.className="DateAxis";Pt.classNames=et.classNames.concat([Pt.className]);var Ht=class extends Pt{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){let i=this._getDates(),s=mt(i,a=>ft(a,t));s.found||Ge(i,s.index,t)}}_updateAllDates(){if(!this._customDates){let t=new Set;T(this.series,l=>{if(l.get("ignoreMinMax"))return;let h="valueX";l.get("yAxis")==this&&(h="valueY"),T(l.dataItems,c=>{let d=c.get(h);v(d)&&c.open&&t.add(c.open[h])})}),this._dates=Array.from(t).sort((l,h)=>l-h);let e=this._dates,i=this.get("extraMax",0),s=this.get("extraMin",0),a=e.length,o=this.getPrivate("baseInterval"),r=o.count,n=o.timeUnit;if(i>0){let l=a*i,h=e[a-1];if(v(h))for(let c=a-1;c<a+l;c++)h+=Q(n,r*this._getM(n)),h=R(h,n,r,this._root),e.push(h)}if(s>0){let l=a*s,h=e[0];if(v(h)){let c=[];for(let d=0;d<l;d++)h-=Q(n,r),h=R(h,n,r,this._root),c.push(h);c.reverse(),e.unshift(...c)}}}}valueToPosition(t){let e=this._getDates(),i=this.get("startLocation",0),s=this.get("endLocation",1),a=e.length-i-(1-s),o=mt(e,n=>ft(n,t)),r=o.index;if(o.found)return(r-i)/a;{r>0&&(r-=1);let n=e[r],l=e[r+1];if(l){let c=l;Math.abs(c-t)<Math.abs(n-t)&&(n=c,r++)}let h=t-n;return(r-i)/a+h/this._baseDuration/a}}valueToIndex(t){let e=this._getDates(),i=mt(e,a=>ft(a,t)),s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){let e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates(),a=Math.round(s.length-e-(1-i)),o=t*a,r=Math.floor(o);return r<0&&(r=0),r>a-1&&(r=a-1),s[r]+(o-r+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){let s=this._getDates(),a=s.length,o=mt(s,l=>ft(l,t.getTime())),r=s[Math.min(o.index,a-1)];o=mt(s,l=>ft(l,e.getTime()));let n=s[o.index];o.index>=a&&(n=s[a-1]+this._baseDuration),this.zoomToValues(r,n,i)}zoomToValues(t,e,i){let s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=ot(t,s,a),e=ot(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(v(t)&&v(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());let i=this._root,s=i.utc,a=i.timezone,o=this._getDates(),r=this.get("renderer"),n=o.length,l=this._baseDuration,h=this.valueToIndex(t);h>0&&h--;let c=this.valueToIndex(e);c<n-1&&c++;let d=r.axisLength()/Math.max(r.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),u=Math.min(n,Math.ceil((c-h)/d));u=Math.max(1,u),h=Math.floor(h/u)*u,this._frequency=u,T(this.dataItems,C=>{this._toggleDataItem(C,!1)}),T(this.minorDataItems,C=>{this._toggleDataItem(C,!1)});let f=e-t-((e-t)/l-(c-h))*l,m=Ft(0,f,d,this.get("gridIntervals")),g=this.getPrivate("baseInterval"),p=j(m);p<l&&(m=Object.assign({},g),p=j(m)),this.setPrivateRaw("gridInterval",m),this._intervalDuration=p;let _=m.timeUnit,x=this.get("dateFormats"),y=Date.now();o[0]&&(y=o[0]);let b=R(this.getPrivate("selectionMin",0),_,m.count,i,y),w=r.get("minorLabelsEnabled"),M=r.get("minorGridEnabled",w),D,P=0,k;M&&(D=this._getMinorInterval(m),P=j(D));let I=this._getIndexes(b,this.getPrivate("selectionMax",b)+p,m,this.getPrivate("min",b));if(I.length>0){let C=0;this._m=0;let X=b-p*10,S=Ot(_);if(D){let V=o[I[0]];this._addMinorGrid(V-p,V,P,D)}let tt=r.axisLength()/r.gridCount()*.5;T(I,V=>{var q;let F;this.dataItems.length<C+1?(F=new K(this,void 0,{}),this._dataItems.push(F),this.processDataItem(F)):F=this.dataItems[C];let N=o[V],L=new Date(N),xt=N;C<I.length-1?xt=o[I[C+1]]:xt+=p,F.setRaw("value",N),F.setRaw("endValue",xt),F.setRaw("index",C),F.setRaw("labelEndValue",void 0);let _t=x[_];S&&this.get("markUnitChange")&&v(X)&&_!="year"&&Ut(N,X,S,s,a)&&(_t=this.get("periodChangeDateFormats")[_]),this._createAssets(F,[]);let it=F.get("label");it&&it.set("text",i.dateFormatter.format(L,_t)),this._toggleDataItem(F,!0);let Mt=m.count;if(_=="week"&&F.setRaw("labelEndValue",N),M){let st=m.timeUnit;if(st=="week"&&(st="day"),Mt>1||m.timeUnit=="week"){let W=R(N,st,1,i)+Q(st,this._getM(st)),dt=this.valueToIndex(W);if(W=o[dt],W==N){let yt=o[dt+1];yt?W=yt:W+=P}F.setRaw("labelEndValue",W)}Mt=1}if(this._prepareDataItem(F,Mt),it&&k&&r.getPrivate("letter")=="X"){let st=k.get("label");if(st){let W=it.x(),dt=st.x();if(W-dt<tt){let yt=this._pickWorse(k,F,m);yt&&((q=yt.get("label"))===null||q===void 0||q.setPrivate("visible",!1))}}}D&&this._addMinorGrid(N,xt,P,D),C++,it&&it.getPrivate("visible")&&(k=F),X=N})}T(this.series,C=>{C.inited&&C._markDirtyAxes()})}this._updateGhost()}_pickWorse(t,e,i){let s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return s=="hour"&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){let a=this.get("minorDateFormats",this.get("dateFormats")),o=s.timeUnit,r=t+Q(o,this._getM(o));r=R(r,o,1,this._root);let n=e-i*.5,l=this._getIndexes(r,n,s,r),h=this._getDates();T(l,c=>{let d;this.minorDataItems.length<this._m+1?(d=new K(this,void 0,{}),this.minorDataItems.push(d),this.processDataItem(d)):d=this.minorDataItems[this._m],r=h[c],d.setRaw("value",r),d.setRaw("endValue",r+i),d.setRaw("index",c),this._createAssets(d,["minor"],!0);let u=d.get("label");if(u)if(this.get("renderer").get("minorLabelsEnabled")){let f=new Date(r),m=a[o];u.set("text",this._root.dateFormatter.format(f,m))}else u.setPrivate("visible",!1);this._toggleDataItem(d,!0),this._prepareDataItem(d,1),this._m++})}_getIndexes(t,e,i,s){let a=[],o=i.timeUnit,r=i.count,n=this._getM(o),l=this.getPrivate("baseInterval"),h=this._root,c=this._getDates(),d=r-1,u=-1/0,f=Q(o,n),m=Q(o,r*n),g=t;for(o=="day"&&(t=s);t<=e;){t=R(t,o,r,h);let p=this.valueToIndex(t),_=c[p];if(o=="day"&&l.timeUnit=="day")this._hasDate(t)&&d++,d==r&&(t>=g-m*2&&Vt(a,p),d=0),t+=f,t=R(t,o,1,h);else{if(_<t){for(let x=p,y=c.length;x<y;x++)if(_=c[x],_>=t){p=x;break}}Vt(a,p),t+=m,t=R(t,o,r,h)}if(t==u&&(t+=m+f,t=R(t,o,r,h)),t==u)break;u=t}return a}_hasDate(t){return mt(this._getDates(),i=>re(i,t)).found}_nextTime(t,e,i){let s=ot(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}};Ht.className="GaplessDateAxis";Ht.classNames=Pt.classNames.concat([Ht.className]);var jt=class extends et{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a,o=this.getDurationFormatter(),r=this.get("baseUnit");if(this.setRaw("maxPrecision",0),r=="millisecond"||r=="second"||r=="minute"||r=="hour"){i<=1&&(i=1),i=Math.round(i);let n=e-t;n===0&&(n=Math.abs(e));let l=n/i,h=[60,30,20,15,10,2,1],c=1;r=="hour"&&(h=[24,12,6,4,2,1]);for(let p of h)if(n/p>i){c=p;break}let d=Math.ceil((e-t)/c/i),u=Math.log(Math.abs(d))*Math.LOG10E,f=Math.pow(10,Math.floor(u))/10,m=d/f;d=qe(h,m)*f,l=c*d,t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l,a={min:t,max:e,step:l}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,r)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){let i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=G(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}};jt.className="DurationAxis";jt.classNames=et.classNames.concat([jt.className]);var Zt=class extends ve{_beforeChanged(){super._beforeChanged();let t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){let e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){let t=this.axis;t&&vt(t._bullets,(e,i)=>{i.uid==this.uid&&delete t._bullets[e]}),super._dispose()}};Zt.className="AxisBullet";Zt.classNames=ve.classNames.concat([Zt.className]);var St=class extends De{constructor(){super(...arguments),this._tickPoints=[]}};St.className="AxisLabel";St.classNames=De.classNames.concat([St.className]);var qt=class extends Ae{constructor(){super(...arguments),this._tickPoints=[]}};qt.className="AxisLabelRadial";qt.classNames=Ae.classNames.concat([qt.className]);var Xt=class extends Ce{constructor(){super(...arguments),this._tickPoints=[]}};Xt.className="AxisTick";Xt.classNames=Ce.classNames.concat([Xt.className]);var Kt=class extends we{constructor(){super(...arguments),this._tickPoints=[]}};Kt.className="EditableAxisLabel";Kt.classNames=we.classNames.concat([Kt.className]);var ct=class extends E{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new H(z.new({}),()=>Xt._new(this._root,{themeTags:Y(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))),this.grid=this.addDisposer(new H(z.new({}),()=>gt._new(this._root,{themeTags:Y(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))),this.axisFills=this.addDisposer(new H(z.new({}),()=>E._new(this._root,{themeTags:Y(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))),this.labels=this.addDisposer(new H(z.new({}),()=>St._new(this._root,{themeTags:Y(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}makeTick(t,e){let i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",Y(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){let i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",Y(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){let i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",Y(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){let i=this.labels.make();return i.set("themeTags",Y(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);let t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(t.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(t.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){let t=this.thumb;if(t){let e=this.axis.labelsContainer,i=this.get("pan");i=="zoom"?e.children.push(t):i=="none"&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);let e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){let e=this._thumbDownPoint;if(e){let i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t=t*(i-e),this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e),t}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis,o=a.get("start",0),r=a.get("end",1),n=o+(r-o)*(i-1e-4),l=o+(r-o)*(s+1e-4);e<n||e>l?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){let i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}};ct.className="AxisRenderer";ct.classNames=E.classNames.concat([ct.className]);var Jt=class extends ct{constructor(){super(...arguments),this.thumb=pt.new(this._root,{width:$,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");let t=this.grid.template;t.set("height",$),t.set("width",0),t.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)})}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));let s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){let o=this.chart,r=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),o){if(this.get(s)){let n=o.topAxesContainer.children;n.indexOf(e)==-1&&n.insertIndex(0,e),e.addTag(s),r.moveValue(this)}else{let n=o.bottomAxesContainer.children;n.indexOf(e)==-1&&n.moveValue(e),e.removeTag(s),r.moveValue(this,0)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(n=>{n._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e)*this._lc,t+=this._ls,t}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){let t=this.axis,e=t.x()-Lt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginLeft",0),r=t.x()-o,n=t.parent;n&&(r-=n.get("paddingLeft",0)),a.children.length>0?(o=t.axisHeader.width(),t.set("marginLeft",o+1)):a.set("width",o),a.setAll({x:r,y:-1,height:s.height()+2})}}processAxis(){super.processAxis();let t=this.axis;t.get("width")==null&&t.set("width",$);let e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",$),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){v(e)||(e=0);let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("x",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",$),r||(o*=-1)):(t.set("y",0),r&&(o*=-1)),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(0,o)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),v(e)||(e=0);let o=t.get("inside",this.get("inside",!1));this.get("opposite")?o?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",$)):o?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){v(e)||(e=0);let s=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){v(e)||(e=0);let a=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=-1;if(this.get("opposite")&&(n=1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s.set("y",l.y()+l.height()*n)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){v(e)||(e=0),v(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.height(),o=this.width();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(e,0),s.lineTo(i,0),s.lineTo(i,a),s.lineTo(e,a),s.lineTo(e,0))})}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,r=this.axisLength(),n=i,l="up";this.get("opposite")?e?(l="up",o=s.y,n=i):(l="down",o=s.y-i,n=i):e?(l="down",o=s.y-i,n=i):(l="up",o=s.y,n=i);let h={left:a,right:a+r,top:o,bottom:o+n},c=t.get("bounds");ce(h,c)||(t.set("bounds",h),t.set("pointerOrientation",l))}};Jt.className="AxisRendererX";Jt.classNames=ct.classNames.concat([Jt.className]);var Qt=class extends ct{constructor(){super(...arguments),this.thumb=pt.new(this._root,{height:$,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");let t=this.grid.template;t.set("width",$),t.set("height",0),t.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())})}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));let s=this.thumb,a="opposite",o="inside",r=this.chart;if(this.isDirty(a)||this.isDirty(o)){let l=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),r){if(this.get(a)){let h=r.rightAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e,0),e.addTag(a),l.moveValue(this,0)}else{let h=r.leftAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e),e.removeTag(a),l.moveValue(this)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(h=>{h._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}let n=e.labelsContainer.width();r&&(this.get(a)?s.set("centerX",0):s.set("centerX",n)),s.setPrivate("width",n)}processAxis(){super.processAxis();let t=this.axis;t.get("height")==null&&t.set("height",$);let e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",$),t.axisHeader.set("layout",e)}_updatePositions(){let t=this.axis,e=t.y()-Lt(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginTop",0);a.children.length>0?(o=t.axisHeader.height(),t.set("marginTop",o+1)):a.set("height",o),a.setAll({y:t.y()-o,x:-1,width:s.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){v(e)||(e=0);let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a);let o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){v(e)||(e=0);let s=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){v(e)||(e=0);let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(o,0)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){v(e)||(e=0);let a=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=1;if(this.get("opposite")&&(n=-1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s.set("x",l.x()+l.width()*n)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){v(e)||(e=0),v(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.width(),o=this.height();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(0,e),s.lineTo(a,e),s.lineTo(a,i),s.lineTo(0,i),s.lineTo(0,e))})}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,r=this.axisLength(),n=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,n=i):(l="left",o=s.x,n=i):e?(l="left",o=s.x,n=i):(l="right",o=s.x-i,n=i);let h={left:o,right:o+n,top:a,bottom:a+r},c=t.get("bounds");ce(h,c)||(t.set("bounds",h),t.set("pointerOrientation",l))}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=e+t:t=i-t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=t-e:t=i-t,t=t/(i-e)*this._lc,t+=this._ls,t}fixPosition(t){return this.get("inversed")?t:1-t}};Qt.className="AxisRendererY";Qt.classNames=ct.classNames.concat([Qt.className]);var ut=class extends Et{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();let t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}};ut.className="Candlestick";ut.classNames=Et.classNames.concat([ut.className]);var wt=class extends bt{constructor(){super(...arguments),this.allColumns=this.children.push(E.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new H(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:Y(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new H(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:Y(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template]))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),T(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()})})}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,r,n){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);let l=e.get("stroke"),h=e.get("fillOpacity",1),c=e.get("strokeOpacity",1),d=e.get("strokeWidth",1),u=e.get("fill"),f=this.getPoint(i,a),m=this.getPoint(s,o),g=t.get("point");if(g){let p=this.getPoint(g.x,g.y);g.x=p.x+this._x,g.y=p.y+this._y}i=f.x,s=m.x,a=f.y,o=m.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:l,fill:u,strokeWidth:d,strokeOpacity:c,fillOpacity:h})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,r,n)}};wt.className="ColumnSeries";wt.classNames=bt.classNames.concat([wt.className]);var Tt=class extends wt{constructor(){super(...arguments),this.columns=this.addDisposer(new H(z.new({themeTags:["autocolor"]}),()=>ut._new(this._root,{themeTags:Y(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);let s=this.getRaw("xAxis"),a=this.getRaw("yAxis"),o=this.get("vcy",1),r=this.get("vcx",1),n,l,h,c,d,u,f,m,g=this.get("locationX",t.get("locationX",.5)),p=this.get("locationY",t.get("locationY",.5)),_=this.get("openLocationX",t.get("openLocationX",g)),x=this.get("openLocationY",t.get("openLocationY",p)),y;if(i==0){let b=a.getDataItemPositionY(t,this._yOpenField,1,o),w=a.getDataItemPositionY(t,this._yField,1,o);c=a.getDataItemPositionY(t,this._yLowField,1,o),m=a.getDataItemPositionY(t,this._yHighField,1,o),f=Math.max(b,w),h=Math.min(b,w);let M=this._aLocationX0+_-.5,D=this._aLocationX1+g-.5;n=s.getDataItemPositionX(t,this._xField,M+(D-M)/2,r),l=n,d=n,u=n,y="vertical"}else{let b=s.getDataItemPositionX(t,this._xOpenField,1,r),w=s.getDataItemPositionX(t,this._xField,1,r);l=s.getDataItemPositionX(t,this._xLowField,1,r),u=s.getDataItemPositionX(t,this._xHighField,1,r),d=Math.max(b,w),n=Math.min(b,w);let M=this._aLocationY0+x-.5,D=this._aLocationY1+p-.5;h=a.getDataItemPositionY(t,this._yField,M+(D-M)/2,o),c=h,f=h,m=h,y="horizontal"}this._updateCandleGraphics(t,n,l,h,c,d,u,f,m,y)}_updateCandleGraphics(t,e,i,s,a,o,r,n,l,h){let c=t.get("graphics");if(c){let d=this.getPoint(e,s),u=this.getPoint(i,a),f=this.getPoint(o,n),m=this.getPoint(r,l);if(this.get("turboMode")){let g=this.allColumnsData[this.allColumnsData.length-1];g.lowX0=d.x,g.lowY0=d.y,g.lowX1=u.x,g.lowY1=u.y,g.highX0=f.x,g.highY0=f.y,g.highX1=m.x,g.highY1=m.y}else{let g=c.x(),p=c.y();c.set("lowX0",d.x-g),c.set("lowY0",d.y-p),c.set("lowX1",u.x-g),c.set("lowY1",u.y-p),c.set("highX0",f.x-g),c.set("highY0",f.y-p),c.set("highX1",m.x-g),c.set("highY1",m.y-p),c.set("orientation",h);let _=t.get("rangeGraphics");_&&T(_,x=>{x.set("lowX0",d.x-g),x.set("lowY0",d.y-p),x.set("lowX1",u.x-g),x.set("lowY1",u.y-p),x.set("highX0",f.x-g),x.set("highY0",f.y-p),x.set("highX1",m.x-g),x.set("highY1",m.y-p),x.set("orientation",h)})}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),T(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity,d=e.lowX0,u=e.lowY0,f=e.lowX1,m=e.lowY1,g=e.highX0,p=e.highY0,_=e.highX1,x=e.highY1;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.moveTo(d,u),t.lineTo(f,m),t.moveTo(g,p),t.lineTo(_,x),t.endStroke(),t.endFill()})})}_processAxisRange(t){super._processAxisRange(t),t.columns=new H(z.new({}),()=>ut._new(this._root,{themeTags:Y(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template]))}};Tt.className="CandlestickSeries";Tt.classNames=wt.classNames.concat([Tt.className]);var At=class extends ut{_draw(){let t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if(this.get("orientation")=="vertical"){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}};At.className="OHLC";At.classNames=ut.classNames.concat([At.className]);var te=class extends Tt{constructor(){super(...arguments),this.columns=this.addDisposer(new H(z.new({themeTags:["autocolor"]}),()=>At._new(this._root,{themeTags:Y(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new H(z.new({}),()=>At._new(this._root,{themeTags:Y(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template]))}};te.className="OHLCSeries";te.classNames=Tt.classNames.concat([te.className]);var Z=class extends lt{constructor(){super(...arguments),this._strokeGenerator=ii(),this._fillGenerator=si(),this.strokes=this.addDisposer(new H(z.new({}),()=>E._new(this._root,{themeTags:Y(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))),this.fills=this.addDisposer(new H(z.new({}),()=>E._new(this._root,{themeTags:Y(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0(function(t){return t[3]}),this._fillGenerator.x0(function(t){return t[2]}),this._fillGenerator.y1(function(t){return t[1]}),this._fillGenerator.x1(function(t){return t[0]}),super._afterNew()}makeStroke(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){let i=this.get("stroke");this.strokes.template.set("stroke",i);let s=this._legendStroke;s&&s.states.lookup("default").set("stroke",i)}if(this.isDirty("fill")){let i=this.get("fill");this.fills.template.set("fill",i);let s=this._legendFill;s&&s.states.lookup("default").set("fill",i)}if(this.isDirty("fillPattern")){let i=this.get("fillPattern");this.fills.template.set("fillPattern",i);let s=this._legendFill;s&&s.states.lookup("default").set("fillPattern",i)}if(this.isDirty("curveFactory")){let i=this.get("curveFactory");i&&(this._strokeGenerator.curve(i),this._fillGenerator.curve(i))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){let i=this.dataItems;this.fills.each(c=>{c.setPrivate("visible",!1)}),this.strokes.each(c=>{c.setPrivate("visible",!1)}),this.axisRanges.each(c=>{let d=c.fills;d&&d.each(f=>{f.setPrivate("visible",!1)});let u=c.strokes;u&&u.each(f=>{f.setPrivate("visible",!1)})});let s=this.startIndex(),a=this.strokes.template.get("templateField"),o=this.fills.template.get("templateField"),r=!0,n=!0;a&&(r=!1),o&&(n=!1);for(let c=s-1;c>=0;c--){let d=i[c],u=!0,f=d.dataContext;a&&f[a]&&(r=!0),o&&f[o]&&(n=!0);for(let m=0,g=this._valueFields.length;m<g;m++)if(!v(d.get(this._valueFields[m]))){u=!1;break}if(u&&r&&n){s=c;break}}let l=i.length,h=this.endIndex();if(h<l){h++;for(let c=h;c<l;c++){let d=i[c],u=!0;for(let f=0,m=this._valueFields.length;f<m;f++)if(!v(d.get(this._valueFields[f]))){u=!1;break}if(u){h=c+1;break}}}if(s>0&&s--,this._endIndex=h,this._clearGraphics(),this._sindex=0,this._dindex=s,l==1)this._startSegment(0);else for(;this._dindex<h-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(t=>{t.fills.clear(),t.strokes.clear()})}_startSegment(t){let e=this.dataItems,i=this._endIndex,s=i,a=this.get("autoGapCount"),o=this.get("connect"),r=this.makeFill(this.fills),n=this._fillTemplate,l=this.fills.template;n&&n!=l&&(r.template=n),r.setPrivate("visible",!0);let h=this.makeStroke(this.strokes),c=this._strokeTemplate;c&&c!=this.strokes.template&&(h.template=c),h.setPrivate("visible",!0);let d=this.get("xAxis"),u=this.get("yAxis"),f=this.get("baseAxis"),m=this.get("vcx",1),g=this.get("vcy",1),p=this._xField,_=this._yField,x=this._xOpenField,y=this._yOpenField,b=this.get("openValueXField"),w=this.get("openValueYField");b||(x=this._xField),w||(y=this._yField);let M=this.get("stacked"),D=d.basePosition(),P=u.basePosition(),k;f===u?k=this._yField:k=this._xField;let I=[],C=[];I.push(C);let X=this.strokes.template.get("templateField"),S=this.fills.template.get("templateField"),tt=this.get("locationX",.5),V=this.get("locationY",.5),q=this.get("openLocationX",tt),F=this.get("openLocationY",V),N=this.get("minDistance",0),L,xt=this.fills.template.get("visible");this.axisRanges.length>0&&(xt=!0);let _t=!1;(M||b||w)&&(_t=!0);let it={points:C,segments:I,stacked:M,getOpen:_t,basePosX:D,basePosY:P,fillVisible:xt,xField:p,yField:_,xOpenField:x,yOpenField:y,vcx:m,vcy:g,baseAxis:f,xAxis:d,yAxis:u,locationX:tt,locationY:V,openLocationX:q,openLocationY:F,minDistance:N},Mt=this._strokeTemplate,st=this._fillTemplate;for(L=t;L<s;L++){this._dindex=L;let W=e[L],dt=W.get(p),yt=W.get(_);if(dt==null||yt==null?o||(C=[],I.push(C),it.points=C):this._getPoints(W,it),X){let O=W.dataContext[X];if(O)if(O instanceof z||(O=z.new(O)),this._strokeTemplate=O,L>t){s=L;break}else Mt=O,h.template=O}if(S){let O=W.dataContext[S];if(O)if(O instanceof z||(O=z.new(O)),this._fillTemplate=O,L>t){s=L;break}else st=O,r.template=O}if(!o){let O=e[L+1];O&&f.shouldGap(W,O,a,k)&&(C=[],I.push(C),it.points=C)}}r.setRaw("userData",[t,L]),h.setRaw("userData",[t,L]),L===i&&this._endLine(C,I[0][0]),h&&this._drawStroke(h,I),r&&this._drawFill(r,I),this.axisRanges.each(W=>{let dt=W.container,yt=W.fills,O=this.makeFill(yt);dt&&dt.children.push(O),O.setPrivate("visible",!0),this._drawFill(O,I);let di=W.strokes,oe=this.makeStroke(di);dt&&dt.children.push(oe),Mt&&Mt!=this.strokes.template&&(oe.template=Mt),st&&st!=this.fills.template&&(O.template=st),oe.setPrivate("visible",!0),this._drawStroke(oe,I),O.setRaw("userData",[t,L]),oe.setRaw("userData",[t,L])})}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY),o=this.get("exactLocationX",!1),r=this.get("exactLocationY",!1),n=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),l=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,r);if(this._shouldInclude(n)){let h=this.getPoint(n,l),c=[h.x,h.y];if(h.x+=this._x,h.y+=this._y,t.set("point",h),e.fillVisible){let d=n,u=l;if(e.baseAxis===e.xAxis?u=e.basePosY:e.baseAxis===e.yAxis&&(d=e.basePosX),e.getOpen){let m=t.get(e.xOpenField),g=t.get(e.yOpenField);if(m!=null&&g!=null){let p=t.get("openLocationX",e.openLocationX),_=t.get("openLocationY",e.openLocationY);if(e.stacked){let x=t.get("stackToItemX"),y=t.get("stackToItemY");x?(d=e.xAxis.getDataItemPositionX(x,e.xField,p,x.component.get("vcx"),o),at(d)&&(d=e.basePosX)):e.yAxis===e.baseAxis?d=e.basePosX:d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),y?(u=e.yAxis.getDataItemPositionY(y,e.yField,_,y.component.get("vcy"),r),at(u)&&(u=e.basePosY)):e.xAxis===e.baseAxis?u=e.basePosY:u=e.yAxis.getDataItemPositionY(t,e.yOpenField,_,e.vcy,r)}else d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),u=e.yAxis.getDataItemPositionY(t,e.yOpenField,_,e.vcy,r)}}let f=this.getPoint(d,u);c[2]=f.x,c[3]=f.y}if(e.minDistance>0){let d=c[0],u=c[1],f=c[2],m=c[3],g=this._previousPoint,p=g[0],_=g[1],x=g[2],y=g[3];(Math.hypot(d-p,u-_)>e.minDistance||f&&m&&Math.hypot(f-x,m-y)>e.minDistance)&&(i.push(c),this._previousPoint=c)}else i.push(c)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{T(e,s=>{this._strokeGenerator.context(i),this._strokeGenerator(s)})})}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{T(e,s=>{this._fillGenerator.context(i),this._fillGenerator(s)})})}_processAxisRange(t){super._processAxisRange(t),t.fills=new H(z.new({}),()=>E._new(this._root,{themeTags:Y(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template])),t.strokes=new H(z.new({}),()=>E._new(this._root,{themeTags:Y(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template]))}createLegendMarker(t){let e=this.get("legendDataItem");if(e){let i=e.get("marker"),s=e.get("markerRectangle");s&&s.setPrivate("visible",!1),i.set("background",pt.new(i._root,{fillOpacity:0,fill:je(0)}));let a=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=a;let o=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;let r=this._root.interfaceColors.get("disabled");if(a.states.create("disabled",{fill:r,stroke:r}),o.states.create("disabled",{fill:r,stroke:r}),this.bullets.length>0){let n=this.bullets.getIndex(0);if(n){let l=n(i._root,this,new K(this,{legend:!0},{}));if(l){let h=l.get("sprite");h instanceof E&&h.states.create("disabled",{fill:r,stroke:r}),h&&(h.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),i.children.push(h),h.setAll({x:i.width()/2,y:i.height()/2}),i.events.on("boundschanged",()=>{h.setAll({x:i.width()/2,y:i.height()/2})}))}}}}}};Z.className="LineSeries";Z.classNames=lt.classNames.concat([Z.className]);var Fe=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Le(this,this._t0,li(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Le(this,li(this,i=ri(this,t,e)),i);break;default:Le(this,this._t0,i=ri(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ge(A){function t(e){return new Fe(e,A)}return t.tension=function(e){return ge(+e)},t}function ni(A){return A<0?-1:1}function ri(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(ni(a)+ni(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function li(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Le(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(s+r*t,i+r,o-r*e,a-r,o,a)}var ee=class extends Z{_afterNew(){this._setDefault("curveFactory",ge(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",ge(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ee.className="SmoothedYLineSeries";ee.classNames=Z.classNames.concat([ee.className]);var Re=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ne(this,this._t0,ui(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ne(this,ui(this,i=ci(this,t,e)),i);break;default:Ne(this,this._t0,i=ci(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ve(A){function t(e){return new Re(e,A)}return t}function hi(A){return A<0?-1:1}function ci(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(hi(a)+hi(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function ui(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Ne(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(i+r,s+r*t,a-r,o-r*e,a,o)}var ie=class extends Z{_afterNew(){this._setDefault("curveFactory",Ve(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",Ve(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ie.className="SmoothedXLineSeries";ie.classNames=Z.classNames.concat([ie.className]);var se=class extends Z{_afterNew(){this._setDefault("curveFactory",ke.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",ke.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};se.className="SmoothedXYLineSeries";se.classNames=Z.classNames.concat([se.className]);var ae=class extends Z{_afterNew(){this._setDefault("curveFactory",ai),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",$).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),r=a,n=o;e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s);let l=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),h=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),c=e.xAxis.getDataItemPositionX(t,e.xField,r,e.vcx),d=e.yAxis.getDataItemPositionY(t,e.yField,n,e.vcy);if(this._shouldInclude(l)){let u=this.getPoint(l,h),f=[u.x,u.y],m=this.getPoint(c,d),g=[m.x,m.y];if(e.fillVisible){let p=l,_=h,x=c,y=d;if(e.baseAxis===e.xAxis?(_=e.basePosY,y=e.basePosY):e.baseAxis===e.yAxis&&(p=e.basePosX,x=e.basePosX),e.getOpen){let M=t.get(e.xOpenField),D=t.get(e.yOpenField);if(M!=null&&D!=null)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),r=a,n=o,e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s),e.stacked){let P=t.get("stackToItemX"),k=t.get("stackToItemY");P?(p=e.xAxis.getDataItemPositionX(P,e.xField,a,P.component.get("vcx")),x=e.xAxis.getDataItemPositionX(P,e.xField,r,P.component.get("vcx"))):e.yAxis===e.baseAxis?(p=e.basePosX,x=e.basePosX):e.baseAxis===e.yAxis&&(p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),x=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx)),k?(_=e.yAxis.getDataItemPositionY(k,e.yField,o,k.component.get("vcy")),y=e.yAxis.getDataItemPositionY(k,e.yField,n,k.component.get("vcy"))):e.xAxis===e.baseAxis?(_=e.basePosY,y=e.basePosY):e.baseAxis===e.yAxis&&(_=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),y=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy))}else p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),x=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx),y=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy)}let b=this.getPoint(p,_),w=this.getPoint(x,y);f[2]=b.x,f[3]=b.y,g[2]=w.x,g[3]=w.y}i.push(f),i.push(g),t.set("point",{x:f[0]+(g[0]-f[0])/2,y:f[1]+(g[1]-f[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}};ae.className="StepLineSeries";ae.classNames=Z.classNames.concat([ae.className]);export{ht as Axis,Zt as AxisBullet,St as AxisLabel,qt as AxisLabelRadial,ct as AxisRenderer,Jt as AxisRendererX,Qt as AxisRendererY,Xt as AxisTick,bt as BaseColumnSeries,ut as Candlestick,Tt as CandlestickSeries,Dt as CategoryAxis,Wt as CategoryDateAxis,wt as ColumnSeries,Pt as DateAxis,le as DefaultTheme,jt as DurationAxis,Kt as EditableAxisLabel,Ht as GaplessDateAxis,gt as Grid,Z as LineSeries,At as OHLC,te as OHLCSeries,ie as SmoothedXLineSeries,se as SmoothedXYLineSeries,ee as SmoothedYLineSeries,ae as StepLineSeries,et as ValueAxis,$t as XYChart,zt as XYChartScrollbar,Bt as XYCursor,lt as XYSeries};
2
+ import{a as Et,b as Qe,c as we,d as Me}from"./6ADPAEGR.js";import{$ as de,D as be,E,F as pt,L as Ke,P as U,R as De,S as B,W as K,X as Pe,Y as Ot,Z as Q,_ as j,a as ue,aa as Ut,b as _e,ba as R,c as H,ca as ti,da as Ft,ea as ei,f as G,g as ye,ga as Te,h as ot,ja as Ae,la as ii,ma as si,na as ke,oa as ai,p as qe,qa as Ie,ra as Ce,sa as $e,y as ve}from"./3HYZ3J2E.js";import{M as xe,N as Y,O as ce,Q as je,R as Ze,a as kt,d as Ue,f as pe,k as ze,o as Be,q as We,u as Lt,v as He}from"./I747LK4V.js";import{a as It,b as Yt,d as $,e as ne}from"./Q2Q2Z6PD.js";import{A as mt,B as Ee,E as Gt,H as Ct,I as vt,O as Oe,S as ft,U as re,V as z,W as Je,a as at,g as v,o as T,r as Rt,s as me,t as Vt,v as fe,w as Ge}from"./KVPWONPB.js";import"./3TTFCHAA.js";var le=class extends Je{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:$e.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:Ze.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:$e.new(this._root,{saturation:0})});{let n=i("Graphics",["scrollbar","overlay"]);n.setAll({fillOpacity:.5}),B(n,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:$,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:$}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:$}),i("AxisLabel",["y"]).setAll({centerX:$}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:$}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{let n=i("Grid",["cursor","x"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Grid",["cursor","y"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Graphics",["cursor","selection"]);n.setAll({fillOpacity:.15}),B(n,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:ne,centerY:ne,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{let n=i("AxisRenderer");n.setAll({crisp:!0,strokeOpacity:0}),B(n,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:$}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:$});{let n=i("Rectangle",["axis","thumb","zoomgrip"]);n.setAll({fillOpacity:0}),B(n,"fill",t,"alternativeBackground"),n.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{let n=i("Grid");n.setAll({location:0,strokeOpacity:.15,crisp:!0}),B(n,"stroke",t,"grid")}{let n=i("Grid",["minor"]);n.setAll({location:0,strokeOpacity:.07,crisp:!0}),B(n,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{let n=i("Graphics",["axis","fill"]);n.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),B(n,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{let n=i("AxisTick");n.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),B(n,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(n,l)=>{let h=n.get("axisFill");h&&(!v(l)||l%2==0?h.setPrivate("visible",!0):h.setPrivate("visible",!1))}});let s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],a={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},o={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},r={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:fe(s),dateFormats:Ct(a),periodChangeDateFormats:Ct(o)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:fe(s),dateFormats:Ct(a),periodChangeDateFormats:Ct(o),tooltipDateFormats:r,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=n.get("endValue"),u=h.intervalDuration(),f=h.getPrivate("baseInterval"),m=h.getPrivate("gridInterval",f),g=h.getPrivate("min",0);if(g=ti(new Date(g),m.timeUnit,m.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),c!=null&&d!=null){let p=Math.round(Math.round((c-g)/u))/2;p==Math.round(p)?l.setPrivate("visible",!0):l.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.get("index"),c=!1;(!v(h)||h%2==0)&&(c=!0),l.setPrivate("visible",c)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=h.getPrivate("step");v(c)&&v(d)&&(G(c/d/2,5)==Math.round(c/d/2)?l.setPrivate("visible",!1):l.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:Yt(70),height:Yt(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,c/2),n.lineTo(d,c/2)}}});{let n=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,0),n.lineTo(d,0),n.lineTo(d,c),n.lineTo(0,c),n.lineTo(0,0)}}});{let n=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:Yt(50),height:Yt(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:Yt(80),height:Yt(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{let n=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{let n=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{let n=i("Graphics",["rangegrip","button","icon"]);n.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:l=>{l.moveTo(0,.5),l.lineTo(0,12.5),l.moveTo(2,.5),l.lineTo(2,12.5),l.moveTo(4,.5),l.lineTo(4,12.5)}}),B(n,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:ne}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:ne}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:$}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:$})}};var $t=class extends Ie{constructor(){super(...arguments),this.xAxes=new _e,this.yAxes=new _e,this.topAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:$,layout:this._root.verticalLayout})),this.yAxesAndPlotContainer=this.chartContainer.children.push(U.new(this._root,{width:$,height:$,layout:this._root.horizontalLayout})),this.bottomAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:$,layout:this._root.verticalLayout})),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:$,layout:this._root.horizontalLayout})),this.plotsContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{width:$,height:$,maskContent:!1})),this.plotContainer=this.plotsContainer.children.push(U.new(this._root,{width:$,height:$})),this.topPlotContainer=this.plotsContainer.children.push(U.new(this._root,{width:$,height:$})),this.gridContainer=this.plotContainer.children.push(U.new(this._root,{width:$,height:$,isMeasured:!1})),this.topGridContainer=U.new(this._root,{width:$,height:$,isMeasured:!1}),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:$,layout:this._root.horizontalLayout})),this.axisHeadersContainer=this.plotContainer.children.push(U.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(Qe.new(this._root,{themeTags:["zoom"],icon:E.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(le.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);let t=this._root,e=this._root.verticalLayout,i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);let s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",pt.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(s.events.on("pointerdown",a=>{this._handlePlotDown(a)})),this._disposers.push(s.events.on("globalpointerup",a=>{this._handlePlotUp(a)})),this._disposers.push(s.events.on("globalpointermove",a=>{this._handlePlotMove(a)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);let e=t.get("xAxis");e&&(Rt(e.series,t),e.markDirtyExtremes());let i=t.get("yAxis");i&&(Rt(i.series,t),i.markDirtyExtremes());let s=this.get("cursor");if(s){let a=s.get("snapToSeries");a&&Rt(a,t)}super._removeSeries(t)}_applyThemes(t=!1){let e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){let e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent,o=!1;if(Be(a,this))o=!0;else return;let r=s.toLocal(t.point),n=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,c=this.get("wheelZoomPositionX"),d=this.get("wheelZoomPositionY");(e==="zoomX"||e==="zoomXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*h*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*h*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(i==="zoomX"||i==="zoomXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*l*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*l*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(e==="zoomY"||e==="zoomXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*h*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*h*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(i==="zoomY"||i==="zoomXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),_=Math.min(1+p,Math.max(-p,f-n*(m-f)*l*g)),x=Math.max(-p,Math.min(1+p,m+n*(m-f)*l*(1-g)));_==f&&x==m&&(o=!1),1/(x-_)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(_,x)):o=!1}}),(e==="panX"||e==="panXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("panX")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*h,p=f+g,_=m+g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),(i==="panX"||i==="panXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("panX")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*l,p=f+g,_=m+g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),(e==="panY"||e==="panXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("panY")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*h,p=f+g,_=m+g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),(i==="panY"||i==="panXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("panY")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*n*(m-f)*l,p=f-g,_=m-g,x=this._fixWheel(p,_);p=x[0],_=x[1],p==f&&_==m&&(o=!1),this._handleWheelAnimation(u.zoom(p,_))}}),o&&a.preventDefault()}_handleSetWheel(){let t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;t!=="none"||e!=="none"?(this._wheelDp=i.events.on("wheel",s=>{let a=s.originalEvent;(t!=="none"&&Math.abs(a.deltaX)!=0||e!=="none"&&Math.abs(a.deltaY)!=0)&&this.handleWheel(s)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){let i=e-t;return t<0&&(t=0,e=t+i),e>1&&(e=1,t=e-i),[t,e]}_handlePlotDown(t){let e=t.originalEvent;if(e.button==2)return;let i=this.plotContainer,s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&Gt(i._downPoints).length>0){let o=this.xAxes.getIndex(0),r=this.yAxes.getIndex(0);o&&(this._downStartX=o.get("start",0),this._downEndX=o.get("end",1)),r&&(this._downStartY=r.get("start",0),this._downEndY=r.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};let a=this.get("panX"),o=this.get("panY");a&&this.xAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")}),o&&this.yAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")});let r="panstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){let t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){let e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){let s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent})}let i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each(i=>{i._isPanning=!1}),this.yAxes.each(i=>{i._isPanning=!1})}_handlePlotMove(t){let e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){let a=t.originalEvent.pointerId;if(a&&(this._movePoints[a]=t.point,Gt(e._downPoints).length>1)){this._handlePinch();return}}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point),a=this.get("panX"),o=this.get("panY");if(a){let r=this.get("scrollbarX");r&&r.events.disableType("rangechanged"),this.xAxes.each(n=>{if(n.get("panX")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.x-s.x)/e.width();n.get("renderer").get("inversed")&&(d*=-1);let u=l+d,f=h+d;f-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",f))}}),r&&r.events.enableType("rangechanged")}if(o){let r=this.get("scrollbarY");r&&r.events.disableType("rangechanged"),this.yAxes.each(n=>{if(n.get("panY")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.y-s.y)/e.height();n.get("renderer").get("inversed")&&(d*=-1);let u=l-d,f=h-d;f-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",f))}}),r&&r.events.enableType("rangechanged")}}}_handlePinch(){let t=this.plotContainer,e=0,i=[],s=[];if(vt(t._downPoints,(a,o)=>{i[e]=o;let r=this._movePoints[a];r&&(s[e]=r),e++}),i.length>1&&s.length>1){let a=t.width(),o=t.height(),r=i[0],n=i[1],l=s[0],h=s[1];if(r&&n&&l&&h){if(l=t.toLocal(l),h=t.toLocal(h),r=t.toLocal(r),n=t.toLocal(n),this.get("pinchZoomX")){let c=this._downStartX,d=this._downEndX;if(c!=null&&d!=null){r.x>n.x&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+r.x/a*(d-c),f=c+n.x/a*(d-c),m=c+l.x/a*(d-c),g=c+h.x/a*(d-c),p=Math.max(.001,f-u),_=Math.max(.001,g-m),x=p/_,y=c*x+u-m*x,b=d*x+f-g*x;this.xAxes.each(w=>{let M=w.fixPosition(y),D=w.fixPosition(b);w.zoom(M,D,0)})}}if(this.get("pinchZoomY")){let c=this._downStartY,d=this._downEndY;if(c!=null&&d!=null){r.y<n.y&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+(1-r.y/o)*(d-c),f=c+(1-n.y/o)*(d-c),m=c+(1-l.y/o)*(d-c),g=c+(1-h.y/o)*(d-c),p=Math.max(.001,f-u),_=Math.max(.001,g-m),x=p/_,y=c*x+u-m*x,b=d*x+f-g*x;this.yAxes.each(w=>{let M=w.fixPosition(y),D=w.fixPosition(b);w.zoom(M,D,0)})}}}}}_handleCursorPosition(){let t=this.get("cursor");if(t){let e=t.getPrivate("point"),i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){let s=t.get("snapToSeriesBy"),a=[];T(i,n=>{if(!n.isHidden()&&!n.isHiding())if(s!="x!"&&s!="y!"){let l=n.startIndex(),h=n.endIndex();for(let c=l;c<h;c++){let d=n.dataItems[c];d&&!d.isHidden()&&a.push(d)}}else{let l=n.get("tooltipDataItem");l&&a.push(l)}});let o=1/0,r;if(T(a,n=>{let l=n.get("point");if(l){let h=0;s=="x"||s=="x!"?h=Math.abs(e.x-l.x):s=="y"||s=="y!"?h=Math.abs(e.y-l.y):h=Math.hypot(e.x-l.x,e.y-l.y),h<o&&(o=h,r=n)}}),T(i,n=>{let l=n.get("tooltip");l&&l._setDataItem(void 0)}),r){let n=r.component;n.showDataItemTooltip(r),n.setRaw("tooltipDataItem",r);let l=r.get("point");l&&t.handleMove(n.toGlobal({x:l.x-n.x(),y:l.y-n.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each(t=>{this._colorize(t)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){let t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){let t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",i=>{this._handleScrollbar(this.xAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarX",e.events.on("released",()=>{this.xAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.xAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){let t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",i=>{this._handleScrollbar(this.yAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarY",e.events.on("released",()=>{this.yAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.yAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);let e=t.get("xAxis"),i=t.get("yAxis");Vt(e.series,t),Vt(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",()=>{t._fixPosition()})),t._posXDp=t.addDisposer(i.events.on("positionchanged",()=>{t._fixPosition()})),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),T(t.dataItems,s=>{s.set("stackToItemY",void 0),s.set("stackToItemX",void 0)})),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){let e=this.get("colors");if(e&&t.get("fill")==null){let s=e.next();t._setSoft("stroke",s),t._setSoft("fill",s)}let i=this.get("patterns");if(i&&t.get("fillPattern")==null){let s=i.next();t._setSoft("fillPattern",s)}}_handleCursorSelectEnd(){let t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each(r=>{if(e==="zoomX"||e==="zoomXY"){let n=r.toAxisPosition(i),l=r.toAxisPosition(a);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)}),this.yAxes.each(r=>{if(e==="zoomY"||e==="zoomXY"){let n=r.toAxisPosition(s),l=r.toAxisPosition(o);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)})}_handleScrollbar(t,e,i,s){t.each(a=>{let o=a.fixPosition(e),r=a.fixPosition(i),n=a.zoom(o,r,void 0,s),l="updateScrollbar";a.setPrivateRaw(l,!1),n?n.events.on("stopped",()=>{a.setPrivateRaw(l,!0)}):a.setPrivateRaw(l,!0)})}_processAxis(t,e){return t.events.onAll(i=>{if(i.type==="clear")T(i.oldValues,s=>{this._removeAxis(s)});else if(i.type==="push")e.children.push(i.newValue),i.newValue.processChart(this);else if(i.type==="setIndex")e.children.setIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="insertIndex")e.children.insertIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="removeIndex")this._removeAxis(i.oldValue);else if(i.type==="moveIndex")e.children.moveValue(i.value,i.newIndex),i.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(t){if(!t.isDisposed()){let e=t.parent;e&&e.children.removeValue(t);let i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);let a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){let t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);let s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){var e=this.get("cursor");e&&(this.addDisposer(t.on("start",()=>{this._updateCursor()})),this.addDisposer(t.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),this.xAxes.indexOf(t)!=-1){if(e||t.getPrivate("updateScrollbar")){let a=this.get("scrollbarX");a&&(!a.getPrivate("isBusy")||e)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}}else if(this.yAxes.indexOf(t)!=-1&&(e||t.getPrivate("updateScrollbar"))){let a=this.get("scrollbarY");a&&(!a.getPrivate("isBusy")||e)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each(i=>{i.get("zoomOut",!0)&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),this.yAxes.each(i=>{i.get("zoomOut",!0)&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){let e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){let o=i[a];if(o!=this){let r=o.plotContainer,n=this._root.rootPointToDocument(s),l=o._root.documentPointToRoot(n),h=r.toLocal(l);if(h.x>=-.1&&h.y>=-.1&&h.x<=r.width()+.1&&h.y<=r.height()+.1)return!0}}return!1}arrangeTooltips(){let t=this.plotContainer,e=t.width(),i=t.height(),s=this.height(),a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),r=t._display.toGlobal({x:e,y:i}),n=[],l=0,h=1/0,c=this._movePoint,d=this.get("maxTooltipDistance"),u=this.get("maxTooltipDistanceBy","xy"),f,m;v(d)&&this.series.each(p=>{if(!p.isHidden()){let _=p.get("tooltip");if(_){let x=_.get("pointTo");if(x){let y=Math.hypot(c.x-x.x,c.y-x.y);u=="x"?y=Math.abs(c.x-x.x):u=="y"&&(y=Math.abs(c.y-x.y)),y<h&&(h=y,f=p,m=x)}}}});let g=[];if(this.series.each(p=>{let _=p.get("tooltip");if(_&&!_.get("forceHidden")){let x=!1,y=_.get("pointTo");if(y){if(d>=0){let b=_.get("pointTo");if(b&&m&&p!=f){let w=Math.hypot(m.x-b.x,m.y-b.y);u=="x"?w=Math.abs(m.x-b.x):u=="y"&&(w=Math.abs(m.y-b.y)),w>d&&(x=!0)}}else d==-1&&p!=f&&(x=!0);!this.inPlot(this._tooltipToLocal(y))||!_.dataItem?x=!0:x||(l+=y.y),x||p.isHidden()||p.isHiding()?_.hide(0):(_.show(),n.push(_),g.push(p))}}}),this.setPrivate("tooltipSeries",g),this.get("arrangeTooltips")){let p=0,_=0,x=this._root.tooltipContainer,y=n.length;if(l/y>i/2+o.y){n.sort((M,D)=>re(D.get("pointTo").y,M.get("pointTo").y));let w=r.y;if(T(n,M=>{let D=M.height();_++,p+=D;let P=M.get("centerY");P instanceof It&&(D*=P.value),D+=M.get("marginBottom",0),M.set("bounds",{left:o.x,top:o.y,right:r.x,bottom:w}),M.setPrivate("customData",{left:o.x,top:o.y,right:r.x,bottom:w}),w=Math.min(w-D,M._fy-D),M.parent==x&&x.children.moveValue(M,0)}),w<0){n.reverse();let M=w;T(n,D=>{_++;let P=D.get("bounds");if(P){let k=P.top-w,I=P.bottom-w;k<M&&(k=M,I=k+D.height()),D.set("bounds",{left:P.left,top:k,right:P.right,bottom:I}),M=P.bottom-w+D.get("marginBottom",0)}})}}else{n.reverse(),n.sort((M,D)=>re(M.get("pointTo").y,D.get("pointTo").y));let w=0;if(T(n,M=>{_++;let D=M.height();p+=D;let P=M.get("centerY");P instanceof It&&(D*=P.value),D+=M.get("marginBottom",0),M.set("bounds",{left:o.x,top:w,right:r.x,bottom:Math.max(o.y+s,w+D)}),M.parent==x&&x.children.moveValue(M,0),w=Math.max(w+D,M._fy+D)}),w>s){n.reverse();let M=s;T(n,D=>{_++;let P=D.get("bounds");if(P){let k=P.top-(s-w),I=P.bottom-(s-w);I>M&&(I=M,k=I-D.height()),D.set("bounds",{left:P.left,top:k,right:P.right,bottom:I}),M=I-D.height()-D.get("marginBottom",0)}})}}p==0&&_>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each(t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}),this.yAxes.each(t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})}_dispose(){super._dispose();let t=this.get("cursor");t&&t.dispose()}};$t.className="XYChart";$t.classNames=Ie.classNames.concat([$t.className]);var zt=class extends Me{constructor(){super(...arguments),this.chart=this.children.push($t.new(this._root,{themeTags:["chart"],interactive:!1,interactiveChildren:!1,panX:!1,panY:!1,wheelX:"none",wheelY:"none"})),this.overlay=this.children.push(E.new(this._root,{themeTags:["overlay"],interactive:!1}))}_afterNew(){this._addOrientationClass(),this._settings.themeTags=Y(this._settings.themeTags,["scrollbar","xy","chart",this._settings.orientation]);let t=this.children;t.moveValue(this.thumb),t.moveValue(this.startGrip),t.moveValue(this.endGrip),this.thumb.set("opacity",0),this.thumb.states.create("hover",{opacity:.2});let e=this.chart.plotContainer;e.set("interactive",!1),e.remove("background"),e.children.removeValue(this.chart.zoomOutButton),super._afterNew()}_updateThumb(){super._updateThumb(),this.overlay.set("draw",t=>{let e=this.startGrip,i=this.endGrip,s=e.x(),a=e.y(),o=i.x(),r=i.y(),n=this.height(),l=this.width();s>o&&([s,o]=[o,s]),a>r&&([a,r]=[r,a]),this.get("orientation")==="horizontal"?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,n),t.lineTo(0,n),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(l,0),t.lineTo(l,n),t.lineTo(o,n),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(l,a),t.lineTo(l,0),t.lineTo(0,0),t.moveTo(0,r),t.lineTo(0,n),t.lineTo(l,n),t.lineTo(l,r),t.lineTo(0,r))})}};zt.className="XYChartScrollbar";zt.classNames=Me.classNames.concat([zt.className]);var gt=class extends E{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}};gt.className="Grid";gt.classNames=E.classNames.concat([gt.className]);var Bt=class extends U{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(gt.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(gt.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(E.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:$,height:$,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),pe("keyboardevents")&&this._disposers.push(Ue(document,"keydown",t=>{this._handleLineMove(We(t),t.ctrlKey)}))}_setUpTouch(){let t=this.chart;t&&(t.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="",s=this.chart,a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let r=a.get("renderer").get("inversed",!1),n;t=="ArrowRight"||t=="ArrowDown"?n=1:t=="ArrowLeft"||t=="ArrowUp"?n=-1:t=="Tab"&&(n=0),n!=null&&(r&&(n*=-1),this.set(i,a.nextPosition(n*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;let t=this.get("xAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",()=>{this._updateXLine(e)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;let t=this.get("yAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",()=>{this._updateYLine(e)})))}}}_handleSyncWith(){let t=this.chart;if(t){let e=this.get("syncWith"),i=[];e&&T(e,s=>{let a=s.chart;a&&i.push(a)}),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){let t=this.get("positionX"),e=this.get("positionY");t==null&&e==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",t=>{t.moveTo(0,0),t.lineTo(0,this.height())}),this.lineY.set("draw",t=>{t.moveTo(0,0),t.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();let e=t.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),pe("touchevents")&&(this._disposers.push(e.events.on("click",s=>{ze(s.originalEvent)&&this._handleMove(s)})),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",s=>{this._handleCursorDown(s)})),this._disposers.push(e.events.on("globalpointerup",s=>{this._handleCursorUp(s),!s.native&&!this.isHidden()&&this._handleMove(s)})),this._disposers.push(e.events.on("globalpointermove",s=>{!this.get("syncWith")&&Gt(e._downPoints).length==0&&!s.native&&this.isHidden()||(this._handleMove(s),Math.hypot(this._lastPoint2.x-s.point.x,this._lastPoint2.y-s.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=s.point))}));let i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){let e=this.chart;return e?e.inPlot(t):!1}_handleCursorDown(t){if(t.originalEvent.button==2)return;let e=t.point,i=this._display.toLocal(e),s=this.chart;if(this.selection.set("draw",()=>{}),s&&this._inPlot(i)){if(this._downPoint=i,this.get("behavior")!="none"){this.selection.show();let r="selectstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:t.originalEvent})}let a=this._getPosition(i).x,o=this._getPosition(i).y;this.setPrivate("downPositionX",a),this.setPrivate("downPositionY",o)}}_handleCursorUp(t){if(this._downPoint){let e=this.get("behavior","none");if(e!="none"){e.charAt(0)==="z"&&this.selection.hide();let i=t.point,s=this._display.toLocal(i),a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let r=!1;if((e==="zoomX"||e==="zoomXY"||e==="selectX"||e==="selectXY")&&Math.abs(s.x-a.x)>o&&(r=!0),(e==="zoomY"||e==="zoomXY"||e==="selectY"||e==="selectXY")&&Math.abs(s.y-a.y)>o&&(r=!0),r){let n="selectended";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}else{let n="selectcancelled";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){let e=this.chart;if(e&&Gt(e.plotContainer._downPoints).length>1){this.set("forceHidden",!0);return}else this.set("forceHidden",!1);let i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);let s=this.get("alwaysShow");if(!t){this.hide(0);return}this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let r=a.x,n=a.y,l=this._getPosition(a);this.setPrivate("point",a);let h=this.get("snapToSeries");this._downPoint&&(h=void 0);let c=this.get("positionX"),d=l.x;v(c)&&(d=c);let u=this.get("positionY"),f=l.y;v(u)&&(f=u),this.setPrivate("positionX",d),this.setPrivate("positionY",f);let m=this._getPoint(d,f);if(r=m.x,n=m.y,o.xAxes.each(g=>{g._handleCursorPosition(d,h),s&&g.handleCursorShow()}),o.yAxes.each(g=>{g._handleCursorPosition(f,h),s&&g.handleCursorShow()}),!e){o._handleCursorPosition();let g="cursormoved";this.events.isEnabled(g)&&this.events.dispatch(g,{type:g,target:this,point:t,originalEvent:i})}this._updateLines(r,n),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);let r="cursorhidden";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){let e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",o=>{let r=this._downPoint;r&&(i==="zoomXY"||i==="selectXY"?(o.moveTo(r.x,r.y),o.lineTo(r.x,t.y),o.lineTo(t.x,t.y),o.lineTo(t.x,r.y),o.lineTo(r.x,r.y)):i==="zoomX"||i==="selectX"?(o.moveTo(r.x,0),o.lineTo(r.x,a),o.lineTo(t.x,a),o.lineTo(t.x,0),o.lineTo(r.x,0)):(i==="zoomY"||i==="selectY")&&(o.moveTo(0,r.y),o.lineTo(s,r.y),o.lineTo(s,t.y),o.lineTo(0,t.y),o.lineTo(0,r.y)))})}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorHide()}),t.yAxes.each(e=>{e.handleCursorHide()}),t.series.each(e=>{e.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorShow()}),t.yAxes.each(e=>{e.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}};Bt.className="XYCursor";Bt.classNames=U.classNames.concat([Bt.className]);function Xe(A,t){return A==null?t:t==null?A:t<A?t:A}function Ye(A,t){return A==null?t:t==null||A>t?A:t}var lt=class extends Te{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(U.new(this._root,{})),this.axisRanges=new ue,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new K(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");let t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));let e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(i=>{if(i.type==="clear")T(i.oldValues,s=>{this._removeAxisRange(s)});else if(i.type==="push")this._processAxisRange(i.newValue);else if(i.type==="setIndex")this._processAxisRange(i.newValue);else if(i.type==="insertIndex")this._processAxisRange(i.newValue);else if(i.type==="removeIndex")this._removeAxisRange(i.oldValue);else if(i.type==="moveIndex")this._processAxisRange(i.value);else throw new Error("Unknown IStreamEvent type")})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(t){let e=U.new(this._root,{});t.container=e,this.children.push(e),t.series=this;let i=t.axisDataItem;i.setRaw("isRange",!0);let s=i.component;if(s){s._processAxisRange(i,["range","series"]);let a=i.get("bullet");if(a){let r=a.get("sprite");r&&r.setPrivate("visible",!1)}let o=i.get("axisFill");o&&e.set("mask",o),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),vt(this._dataSets,(t,e)=>{T(e,i=>{i.dispose()}),e.length=0})}_removeAxisRange(t){let e=t.axisDataItem,i=e.component;e.dispose(),Rt(i._seriesAxisRanges,e);let s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&T(this.valueXFields,t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let i=this.get(t+"Show");this.__valueXShowFields.push(i),i.indexOf("Working")!=-1?this._valueXShowFields.push(i.split("Working")[0]):this._valueXShowFields.push(i)}}),this.valueYFields&&T(this.valueYFields,t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let i=this.get(t+"Show");this.__valueYShowFields.push(i),i.indexOf("Working")!=-1?this._valueYShowFields.push(i.split("Working")[0]):this._valueYShowFields.push(i)}})}_dispose(){super._dispose(),this._bullets={};let t=this.chart;t&&t.series.removeValue(this),me(this.get("xAxis").series,this),me(this.get("yAxis").series,this)}_min(t,e){let i=Xe(this.getPrivate(t),e);this.setPrivate(t,i)}_max(t,e){let i=Ye(this.getPrivate(t),e);this.setPrivate(t,i)}_shouldMakeBullet(t){let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;let a=this.get("minBulletDistance",0);if(a>0){let o=this.startIndex(),n=this.endIndex()-o;if(e==s){if(this._xRenderer.axisLength()/n<a/5)return!1}else if(i==s&&this._yRenderer.axisLength()/n<a/5)return!1}return t.get(this._xField)!=null&&t.get(this._yField)!=null}_makeFieldNames(){let t=this.get("xAxis"),e=this.get("yAxis"),i=t.getPrivate("name"),s=xe(i),a=e.getPrivate("name"),o=xe(a),r=t.get("renderer").getPrivate("letter"),n=e.get("renderer").getPrivate("letter"),l="open",h="low",c="high",d="Show";t.className==="ValueAxis"?(this._xField=this.get(i+r+d),this._xOpenField=this.get(l+s+r+d),this._xLowField=this.get(h+s+r+d),this._xHighField=this.get(c+s+r+d)):(this._xField=i+r,this._xOpenField=l+s+r,this._xLowField=h+s+r,this._xHighField=c+s+r),e.className==="ValueAxis"?(this._yField=this.get(a+n+d),this._yOpenField=this.get(l+o+n+d),this._yLowField=this.get(h+o+n+d),this._yHighField=this.get(c+o+n+d)):(this._yField=a+n,this._yOpenField=l+o+n,this._yLowField=h+o+n,this._yHighField=c+o+n)}_fixVC(){let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let o=0;a&&(o=.999999999999),t===i?s.set("vcy",o):(e===i||s.set("vcy",o),s.set("vcx",o))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){let t=this.get("xAxis"),e=this.get("yAxis");this.set("x",t.x()-Lt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0)),this.set("y",e.y()-Lt(e.get("centerY",0),e.height())-e.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._xRenderer=this.get("xAxis").get("renderer"),this._yRenderer=this.get("yAxis").get("renderer"),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX"),a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;let o=this.get("tooltipPositionY"),r;switch(o){case"open":r=this._yOpenField;break;case"low":r=this._yLowField;break;case"high":r=this._yHighField;break;default:r=this._yField}this._tooltipFieldY=r,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();let n=this.get("stacked");if(this.isDirty("stacked")&&(n?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed){this._dataProcessed=!0,n&&this._stack();let l,h,c,d;T(this.dataItems,u=>{T(this._valueXShowFields,f=>{let m=u.get(f);m!=null&&(n&&(m+=this.getStackedXValue(u,f)),l=Xe(l,m),h=Ye(h,m))}),T(this._valueYShowFields,f=>{let m=u.get(f);m!=null&&(n&&(m+=this.getStackedYValue(u,f)),c=Xe(c,m),d=Ye(d,m))}),t.processSeriesDataItem(u,this._valueXFields),e.processSeriesDataItem(u,this._valueYFields)}),this._min("minX",l),this._max("maxX",h),this._min("minY",c),this._max("maxY",d),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)}if((this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty||this.isDirty("minBulletDistance")){let l=this.startIndex(),h=this.endIndex(),c=this.get("minBulletDistance",0);if(c>0&&i&&(i.get("renderer").axisLength()/(h-l)>c?this._showBullets=!0:this._showBullets=!1),(this._psi!=l||this._pei!=h||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;let d=this.get("vcx",1),u=this.get("vcy",1),f=this.get("stacked",!1),m=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),m)e.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processYSelectionDataItem(this.dataItems[g],u,f);if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),m)e.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processXSelectionDataItem(this.dataItems[g],d,f);if((i===t||!i)&&(this.get("valueYShow")!=="valueYWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinY");g!=null&&(this.setPrivateRaw("minY",g),e.markDirtyExtremes());let p=this.getPrivate("selectionMaxY");p!=null&&(this.setPrivateRaw("maxY",p),e.markDirtyExtremes())}if((i===e||!i)&&(this.get("valueXShow")!=="valueXWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinX");g!=null&&(this.setPrivateRaw("minX",g),e.markDirtyExtremes());let p=this.getPrivate("selectionMaxX");p!=null&&(this.setPrivateRaw("maxX",p),t.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&t.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&e.markDirtySelectionExtremes()}}}_postUpdateData(){let t=this.get("xAxis"),e=this.get("yAxis");t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,T(this.dataItems,i=>{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;t==null&&(t=this.children.push(E.new(this._root,{})),this._mainContainerMask=t,t.set("draw",(e,i)=>{let s=this.parent;if(s){let a=this._root.container.width(),o=this._root.container.height();e.moveTo(-a,-o),e.lineTo(-a,o*2),e.lineTo(a*2,o*2),e.lineTo(a*2,-o),e.lineTo(-a,-o),this.axisRanges.each(r=>{let n=r.axisDataItem.get("axisFill");if(s&&n){let l=n.get("draw");l&&l(e,i)}})}this.mainContainer._display.mask=t._display})),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){let t=this.chart;if(t){let e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),!(i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked"))));s--);}this._stackDataItems()}}_unstack(){vt(this._reallyStackedTo,(t,e)=>{delete e._stackedSeries[this.uid]}),this._reallyStackedTo={},T(this.dataItems,t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)})}_handleRemoved(){let t=this.get("xAxis");t&&t._handleSeriesRemoved();let e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){let t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis"),s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,r=0,n=this.get("stackToNegative");this._reallyStackedTo={},T(this.dataItems,l=>{for(let h=0;h<o;h++){let c=this._couldStackTo[h],d=c.dataItems[r],u=l.get(s);if(d){let f=d.get(s);if(n)if(v(u)){if(v(f)){if(h==o-1&&l.setRaw(a,void 0),u>=0&&f>=0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}if(u<0&&f<0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}else break;else if(v(u)&&v(f)){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}r++})}processXSelectionDataItem(t,e,i){T(this.__valueXShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))})}processYSelectionDataItem(t,e,i){T(this.__valueYShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))})}getStackedYValueWorking(t,e){let i=t.get("stackToItemY");if(i){let s=i.component;return i.get(e,0)*s.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){let i=t.get("stackToItemX");if(i){let s=i.component;return i.get(e,0)*s.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){let i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){let i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),r=this.get("yAxis"),n=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),n),c=r.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),d=this.getPoint(h,c),u=i.get("left",d.x),f=i.get("right",d.x),m=i.get("top",d.y),g=i.get("bottom",d.y),p=0,_=0,x=f-u,y=g-m;if(this._shouldShowBullet(h,c)){e.setPrivate("visible",!t.getPrivate("hidden"));let b=t.get("field"),w=this.get("baseAxis"),M=this.get("xAxis"),D=this.get("yAxis");if(b!=null){let k;w==M?(b=="value"?k=this._yField:b=="open"?k=this._yOpenField:b=="high"?k=this._yHighField:b=="low"&&(k=this._yLowField),k&&(c=D.getDataItemPositionY(i,k,0,this.get("vcy",1),l),d=this._yRenderer.positionToPoint(c),_=d.y,p=u+x*s)):(b=="value"?k=this._xField:b=="open"?k=this._xOpenField:b=="high"?k=this._xHighField:b=="low"&&(k=this._xLowField),k&&(h=M.getDataItemPositionX(i,k,0,this.get("vcx",1),n),d=this._xRenderer.positionToPoint(h),p=d.x,_=g-y*a))}else p=u+x*s,_=g-y*a;let P=t.get("stacked");if(P){let k=this.chart;if(w==M){let I=this._bullets[h+"_"+c];if(I){let C=I.bounds(),X=e.localBounds(),S=_;_=C.top,P=="down"?_=C.bottom-X.top:P=="auto"?k&&(S<k.plotContainer.height()/2?_=C.bottom-X.top:_+=X.bottom):_+=X.bottom}this._bullets[h+"_"+c]=e}else{let I=this._bullets[h+"_"+c];if(I){let C=I.bounds(),X=e.localBounds(),S=p;p=C.right,P=="down"?p=C.left-X.right:P=="auto"?k&&(S<k.plotContainer.width()/2?p=C.left-X.right:p-=X.left):p-=X.left}this._bullets[h+"_"+c]=e}}e.isType("Label")&&(e.setPrivate("maxWidth",Math.abs(x)),e.setPrivate("maxHeight",Math.abs(y))),e.setAll({x:p,y:_})}else e.setPrivate("visible",!1)}}_shouldShowBullet(t,e){return this._showBullets}setDataSet(t){if(this._dataSets[t]){this._handleDataSetChange(),this._dataItems=this._dataSets[t],this._markDataSetDirty(),this._dataSetId=t;let e="datasetchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,id:t})}}resetGrouping(){vt(this._dataSets,(t,e)=>{e!=this._mainDataItems&&T(e,i=>{i.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){T(this._dataItems,t=>{let e=t.bullets;e&&T(e,i=>{if(i){let s=i.get("sprite");s&&s.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return kt(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then(()=>{this._isShowing=!1;let s=this.get("xAxis"),a=this.get("yAxis"),o=this.get("baseAxis");a!==o&&a.markDirtySelectionExtremes(),s!==o&&s.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return kt(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];v(e)||(e=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing");T(this._valueFields,o=>{s.push(t.animate({key:o+"Working",to:t.get(o),duration:e,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),v(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=this.get("xAxis"),n=this.get("yAxis"),l=this.get("baseAxis"),h=this.get("stacked");if((l===r||!l)&&T(this._valueYFields,c=>{let d=n.getPrivate("min"),u=n.baseValue();v(d)&&d>u&&(u=d),h&&(u=0),t.get(c)!=null&&s.push(t.animate({key:c+"Working",to:u,duration:e,easing:o}).waitForStop())}),l===n||!l){let c=r.getPrivate("min"),d=r.baseValue();v(c)&&c>d&&(d=c),h&&(d=0),T(this._valueXFields,u=>{t.get(u)!=null&&s.push(t.animate({key:u+"Working",to:d,duration:e,easing:o}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){let t=this._stackedSeries;t&&vt(t,(e,i)=>{i._stackDirty||i._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));let e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),r=t.get("locationX",a),n=t.get("locationY",o),l=this.get("xAxis"),h=this.get("yAxis"),c=this.get("vcx",1),d=this.get("vcy",1),u=l.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*r,c,i),f=h.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*n,d,s),m=this.getPoint(u,f),g=!0;if(T(this._valueFields,p=>{t.get(p)==null&&(g=!1)}),g){let p=this.chart;p&&p.inPlot(m)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:m.x,y:m.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){let t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet"){let e=t.bullets;if(e&&e.length>0){let s=e[0].get("sprite");if(s)return s}}return this}updateLegendValue(t){let e=this.get("legendDataItem");if(e){let i=e.get("label");if(i){let a="";t?(i._setDataItem(t),a=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),a=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",a)}let s=e.get("valueLabel");if(s){let a="";t?(s._setDataItem(t),a=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),a=this.get("legendRangeValueText",s.get("text",""))),s.set("text",a)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){let e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){let s=e.baseDuration(),a=e.getPrivate("selectionMin",e.getPrivate("min",0)),o=s*this.get("locationX",.5),r=-1/0;for(;r<a;){let n=this.dataItems[t];if(n){let l=n.open;if(l?r=l.valueX:r=n.get("valueX",0),r+=o,r<a)t++;else break}else break}}return t}};lt.className="XYSeries";lt.classNames=Te.classNames.concat([lt.className]);var bt=class A extends lt{constructor(){super(...arguments),this._ph=0,this._pw=0,this._columnsUpdated=!1}_makeGraphics(t,e){return this.makeColumn(e,t)}_makeFieldNames(){super._makeFieldNames();let t=this.get("xAxis"),e=this.get("yAxis"),i="CategoryAxis",s="ValueAxis";t.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),t.isType(s)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),e.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),e.isType(s)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.dataItems.length,s=Math.max(0,this.startIndex()-2),a=Math.min(this.endIndex()+2,i-1);if(t.inited&&e.inited)for(let o=s;o<=a;o++){let r=this.dataItems[o];this._createGraphics(r)}}_updateChildren(){let t=this.chart;t&&(this._ph=t.plotContainer.height(),this._pw=t.plotContainer.width());let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis"),a=this.columns.template;this.isDirty("fill")&&a.get("fill")==null&&a.set("fill",this.get("fill")),this.isDirty("fillPattern")&&a.get("fillPattern")==null&&a.set("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&a.get("stroke")==null&&a.set("stroke",this.get("stroke"));let o=0,r=0,n=0;s&&T(s.series,m=>{if(m instanceof A){let g=m.get("stacked");g&&n==0&&r++,!g&&m.get("clustered")&&r++}m===this&&(o=r-1),n++}),this.get("clustered")||(o=0,r=1),r===0&&(r=1,o=0);let l="cellStartLocation",h="cellEndLocation",c=this._xRenderer.get(l,0),d=this._xRenderer.get(h,1),u=this._yRenderer.get(l,0),f=this._yRenderer.get(h,1);if(this._aLocationX0=c+o/r*(d-c),this._aLocationX1=c+(o+1)/r*(d-c),this._aLocationY0=u+o/r*(f-u),this._aLocationY1=u+(o+1)/r*(f-u),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){let m=this.dataItems.length,g=Math.max(0,this.startIndex()-2),p=Math.min(this.endIndex()+2,m-1);for(let y=0;y<g;y++)this._toggleColumn(this.dataItems[y],!1);let _=this.dataItems[g];for(let y=g;y<=p;y++){let b=this.dataItems[y];if(b.get("valueX")!=null&&b.get("valueY")!=null){if(_=b,y>0&&g>0)for(let w=y-1;w>=0;w--){let M=this.dataItems[w];if(M.get("valueX")!=null&&M.get("valueY")!=null){_=M;break}}break}else this._toggleColumn(b,!1)}this._beforeColumnsDraw();let x=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?x=2:e===s?x=0:i===s&&(x=1);for(let y=g;y<=p;y++){let b=this.dataItems[y];this._updateGraphics(b,_,x),b.get("valueX")!=null&&b.get("valueY")!=null&&(_=b)}this._afterColumnsDraw();for(let y=p+1;y<m;y++)this._toggleColumn(this.dataItems[y],!1);this._columnsUpdated=!0}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_afterChanged(){super._afterChanged(),this._columnsUpdated=!1}_beforeColumnsDraw(){}_afterColumnsDraw(){}_createGraphics(t){let e=t.get("graphics");if(!e){e=this._makeGraphics(this.columns,t),t.set("graphics",e),e._setDataItem(t);let i=t.get("legendDataItem");if(i){let a=i.get("markerRectangle");if(a){let o=a.states.lookup("default");T(be,r=>{let n=e.get(r,this.get(r));a.set(r,n),o.set(r,n)})}}let s=t.get("rangeGraphics");s&&T(s,a=>{a.dispose()}),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each(a=>{let o=a.container,r=this._makeGraphics(a.columns,t);s&&s.push(r),r.setPrivate("list",a.columns),o.children.push(r)})}}createAxisRange(t){return T(this.dataItems,e=>{let i=e.get("graphics");i&&(i.dispose(),e.set("graphics",void 0))}),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics"),a=this._xField,o=this._yField,r=t.get(a),n=t.get(o),l=this.get("exactLocationX",!1);if(r!=null&&n!=null){let h=this._xOpenField,c=this._yOpenField,d=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),f=this.get("openLocationX",t.get("openLocationX",d)),m=this.get("openLocationY",t.get("openLocationY",u)),g=s.get("width"),p=s.get("height"),_=this.get("stacked"),x=this.get("xAxis"),y=this.get("yAxis"),b=x.get("start"),w=x.get("end"),M=y.get("start"),D=y.get("end"),P,k,I,C,X=this.get("vcy",1),S=this.get("vcx",1),tt=!1,V=!1;if(i==0){let F=this._aLocationX0+f-.5,N=this._aLocationX1+d-.5;if(g instanceof It){let L=(N-F)*(1-g.value)/2;F+=L,N-=L}if(P=x.getDataItemPositionX(t,h,F,S,l),k=x.getDataItemPositionX(t,a,N,S,l),I=y.getDataItemPositionY(t,o,u,X),this._yOpenField!==this._yField)C=y.getDataItemPositionY(t,c,m,X);else if(_){let L=t.get("stackToItemY");L?C=y.getDataItemPositionY(L,o,m,L.component.get("vcy")):C=y.basePosition()}else C=y.basePosition();t.setRaw("point",{x:P+(k-P)/2,y:I}),V=!0}else if(i==1){let F=this._aLocationY0+m-.5,N=this._aLocationY1+u-.5;if(p instanceof It){let L=(N-F)*(1-p.value)/2;F+=L,N-=L}if(I=y.getDataItemPositionY(t,c,F,X),C=y.getDataItemPositionY(t,o,N,X),k=x.getDataItemPositionX(t,a,d,S,l),this._xOpenField!==this._xField)P=x.getDataItemPositionX(t,h,f,S,l);else if(_){let L=t.get("stackToItemX");L?P=x.getDataItemPositionX(L,a,f,L.component.get("vcx"),l):P=x.basePosition()}else P=x.basePosition();tt=!0,t.setRaw("point",{x:k,y:I+(C-I)/2})}else if(i==2){let F=this._aLocationX0+f-.5,N=this._aLocationX1+d-.5;if(g instanceof It){let L=(N-F)*(1-g.value)/2;F+=L,N-=L}if(P=x.getDataItemPositionX(t,h,F,S),k=x.getDataItemPositionX(t,a,N,S),F=this._aLocationY0+m-.5,N=this._aLocationY1+u-.5,p instanceof It){let L=(N-F)*(1-p.value)/2;F+=L,N-=L}I=y.getDataItemPositionY(t,c,F,X),C=y.getDataItemPositionY(t,o,N,X),t.setRaw("point",{x:P+(k-P)/2,y:I+(C-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,P,k,I,C,tt,V),P<b&&k<b||P>w&&k>w||I<M&&C<=M||I>=D&&C>D||at(P)||at(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let q=t.get("rangeGraphics");q&&T(q,F=>{this._updateSeriesGraphics(t,F,P,k,I,C,tt,V)})}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,r,n){let l=e.get("width"),h=e.get("height"),c=e.get("maxWidth"),d=e.get("maxHeight"),u=this.getPoint(i,a),f=this.getPoint(s,o),m=t.get("point");if(m){let g=this.getPoint(m.x,m.y);m.x=g.x+this._x,m.y=g.y+this._y}if(i=u.x,s=f.x,a=u.y,o=f.y,v(l)){let g=(s-i-l)/2;i+=g,s-=g}if(v(c)&&c<Math.abs(s-i)){let g=(s-i-c)/2;i+=g,s-=g}if(v(h)){let g=(o-a-h)/2;a+=g,o-=g}if(v(d)&&d<Math.abs(o-a)){let g=(o-a-d)/2;a+=g,o-=g}this.get("adjustBulletPosition")&&(r&&(s=Math.min(Math.max(0,s),this._pw),i=Math.min(Math.max(0,i),this._pw)),n&&(a=Math.min(Math.max(0,a),this._ph),o=Math.min(Math.max(0,o),this._ph))),t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),e.setPrivate("width",s-i),e.setPrivate("height",o-a),e.set("x",i),e.set("y",o-(o-a))}_handleDataSetChange(){super._handleDataSetChange(),T(this._dataItems,t=>{this._toggleColumn(t,!1)})}_applyGraphicsStates(t,e){let i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),r=i.states.lookup("riseFromPrevious");if(s||o||a||r){let n=this.get("xAxis"),l=this.get("yAxis"),h=this.get("baseAxis"),c,d,u;h===n&&l.isType("ValueAxis")?(c=t.get(this._yOpenField),d=t.get(this._yField),u=e.get(this._yField)):h===l&&n.isType("ValueAxis")&&(c=t.get(this._xOpenField),d=t.get(this._xField),u=e.get(this._xField)),v(c)&&v(d)&&(d<c?s&&s.apply():a&&a.apply(),v(u)&&(d<u?o&&o.apply():r&&r.apply()))}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("graphics");e&&(this.columns.removeValue(e),e.dispose());let i=t.get("rangeGraphics");i&&T(i,s=>{let a=s.getPrivate("list");a&&a.removeValue(s),s.dispose()})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));let o=t.get("rangeGraphics");o&&T(o,r=>{s.push(r.hide(e))}),yield Promise.all(s)})}_toggleColumn(t,e){let i=t.get("graphics");i&&i.setPrivate("visible",e);let s=t.get("rangeGraphics");s&&T(s,o=>{o.setPrivate("visible",e)});let a=t.bullets;a&&T(a,o=>{o.setPrivate("hidden",!e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return kt(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));let o=t.get("rangeGraphics");o&&T(o,r=>{s.push(r.show(e))}),yield Promise.all(s)})}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){let i=this.dataItems[this.endIndex()-1];i&&(t=i)}if(e){let i=this.columns.template;if(t){let a=t.get("graphics");a&&(i=a)}let s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){let a=s.states.lookup("default");T(be,o=>{let r=i.get(o,this.get(o));s.set(o,r),a.set(o,r)})}}}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(t);let e=t.get("graphics");return e||this}};bt.className="BaseColumnSeries";bt.classNames=lt.classNames.concat([bt.className]);var ht=class extends Pe{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(U.new(this._root,{})),this.gridContainer=U.new(this._root,{width:$,height:$}),this.topGridContainer=U.new(this._root,{width:$,height:$}),this.bulletsContainer=this.children.push(U.new(this._root,{isMeasured:!1,width:$,height:$,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new ue,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(U.new(this._root,{themeTags:["axis","header"],position:"absolute",background:pt.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if(e.type==="clear")T(e.oldValues,i=>{i.dispose()});else if(e.type==="push")this._processAxisRange(e.newValue,["range"]);else if(e.type==="setIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="insertIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="removeIndex")this.disposeDataItem(e.oldValue);else if(e.type==="moveIndex")this._processAxisRange(e.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));let t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){let e=this.get("renderer").makeLabel(new K(this,void 0,{}),[]);e.adapters.disable("text"),e.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),e.events.disable(),this.ghostLabel=e}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let r=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-r&&(t=-r),e>1+r&&(e=1+r);let n=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),l=n;v(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),e===1&&t!==0&&(t<this.get("start",0)?s="start":s="end"),t===0&&e!==1&&(e>this.get("end",1)?s="end":s="start");let h=this.get("minZoomCount",0),c=this.dataItems;c&&c.length<h&&(h=c.length);let d=this.get("maxZoomCount",1/0);v(h)&&(n=l/h);let u=1;if(v(d)&&(u=l/d),t>e&&([t,e]=[e,t]),s==="start"?(d>0&&1/(e-t)<u&&(e=t+1/u),1/(e-t)>n&&(e=t+1/n),e>1&&e-t<1/n&&(t=e-1/n)):(d>0&&1/(e-t)<u&&(t=e-1/u),1/(e-t)>n&&(t=e-1/n),t<0&&e-t<1/n&&(e=t+1/n)),1/(e-t)>n&&(e=t+1/n),1/(e-t)>n&&(t=e-1/n),d!=null&&h!=null&&t==this.get("start")&&e==this.get("end")){let f=this.chart;f&&f._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let f=this.get("interpolationEasing"),m,g;if(this.get("start")!=t&&(m=this.animate({key:"start",to:t,duration:i,easing:f})),this.get("end")!=e&&(g=this.animate({key:"end",to:e,duration:i,easing:f})),this._sAnimation=m,this._eAnimation=g,m)return m;if(g)return g}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",()=>{this.markDirtyKey("start")})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);let i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);let o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(t=>{this._prepareDataItem(t)}),T(this._seriesAxisRanges,t=>{this._prepareDataItem(t)})}_prepareChildren(){super._prepareChildren();let t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){let i=this.chart;i&&i._updateCursor();let s=this.get("start",0),a=this.get("end",1),o=this.get("maxDeviation",.5)*Math.min(1,a-s);if(s<-o){let r=s+o;s=-o,this.setRaw("start",s),this.isDirty("end")&&this.setRaw("end",a-r)}if(a>1+o){let r=a-1-o;a=1+o,this.setRaw("end",a),this.isDirty("start")&&this.setRaw("start",s-r)}}let e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){let i=this.get("tooltip");if(i){let s=e.get("themeTags");i.addTag("axis"),i.addTag(this.className.toLowerCase()),i._applyThemes(),s&&(i.set("themeTags",Y(i.get("themeTags"),s)),i.label._applyThemes())}}}_updateTooltipBounds(){let t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t;let e=this.get("renderer");e.chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{t._handleAxisSelection(this)}),this.on("end",()=>{t._handleAxisSelection(this)}),t.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),t.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){let i="forceHidden",s=t.get("label");s&&s.set(i,e);let a=t.get("grid");a&&a.set(i,e);let o=t.get("tick");o&&o.set(i,e);let r=t.get("axisFill");r&&r.set(i,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l.set(i,e)}}_toggleDataItem(t,e){let i=t.get("label"),s="visible";i&&i.setPrivate(s,e);let a=t.get("grid");a&&a.setPrivate(s,e);let o=t.get("tick");o&&o.setPrivate(s,e);let r=t.get("axisFill");r&&r.setPrivate(s,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;let r=this.get("renderer"),n="minor",l=t.get("label");if(!l)r.makeLabel(t,e);else{let d=l.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((s=l.parent)===null||s===void 0||s.children.removeValue(l),r.makeLabel(t,e),l.dispose(),r.labels.removeValue(l))}let h=t.get("grid");if(!h)r.makeGrid(t,e);else{let d=h.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((a=h.parent)===null||a===void 0||a.children.removeValue(h),r.makeGrid(t,e),h.dispose(),r.grid.removeValue(h))}let c=t.get("tick");if(!c)r.makeTick(t,e);else{let d=!1,u=c.get("themeTags");i?u?.indexOf(n)==-1&&(d=!0):u?.indexOf(n)!=-1&&(d=!0),d&&((o=c.parent)===null||o===void 0||o.children.removeValue(c),r.makeTick(t,e),c.dispose(),r.ticks.removeValue(c))}(!i&&!t.get("axisFill")||i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled"))&&r.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(!e&&i&&!t.get("isRange")&&(e=i(this._root,this,t)),e){e.axis=this;let s=e.get("sprite");s&&(s._setDataItem(t),t.setRaw("bullet",e),s.parent||this.bulletsContainer.children.push(s))}}_afterChanged(){super._afterChanged();let t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);let e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());let s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());let a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());let o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());let r=t.get("bullet");r&&r.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());let t=this.ghostLabel;if(t){if(!t.isHidden()){let s=t.localBounds(),a=Math.ceil(s.right-s.left),o=t.get("text");T(this.dataItems,r=>{let n=r.get("label");if(n&&!n.isHidden()){let l=n.localBounds();Math.ceil(l.right-l.left)>a&&(o=n.text._getText())}}),t.set("text",o)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+(i-e)*.5)}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){let t=this._snapToSeries,e=this._cursorPosition,i=this.get("tooltip"),s=this.get("renderer");v(e)&&(T(this.series,a=>{if(a.get("baseAxis")===this){let o=this.getSeriesItem(a,e,this.get("tooltipLocation"));t&&t.indexOf(a)!=-1?(a.updateLegendMarker(o),a.updateLegendValue(o),a._settings.tooltipDataItem=o):(a.showDataItemTooltip(o),a.setRaw("tooltipDataItem",o))}}),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),at(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),e<this.get("start",0)||e>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){let e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return .05}};ht.className="Axis";ht.classNames=Pe.classNames.concat([ht.className]);var et=class extends ht{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let s=this.get("syncWithAxis");s&&(this._syncDp=new Oe([s.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),s.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,(t=this.ghostLabel)===null||t===void 0||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){let i=this.chart,s=!1;if(i){let a=this.get("renderer").getPrivate("letter");a=="Y"?i.xAxes.each(o=>{o.className!="ValueAxis"&&(s=!0)}):a=="X"&&i.yAxes.each(o=>{o.className!="ValueAxis"&&(s=!0)})}s&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,(this.getPrivate("selectionMinFinal")!=this.getPrivate("selectionMin")||this.getPrivate("selectionMaxFinal")!=this.getPrivate("selectionMax"))&&(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){let e=this.get("numberFormat"),i=this.getNumberFormatter(),s="";return e?s=i.format(t,e):s=i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(v(t)&&v(e)){let i=this.get("logarithmic"),s=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+s,r=a-s,n=1,l=t;if(i){if(r=this._minLogAdjusted,r<a)for(;r<a;)r+=s;if(l=r,l<=0){let b=this._minRealLog;v(b)||(b=1),l=Math.pow(10,Math.log(b)*Math.LOG10E),s<1&&(v(this._minRealLog)?l=this._minRealLog:l=Math.pow(10,-50))}n=Math.log(o-s)*Math.LOG10E-Math.log(l)*Math.LOG10E,n>2&&(r=Math.pow(10,Math.log(l)*Math.LOG10E-50))}let h=this.get("renderer"),c=h.get("minorLabelsEnabled"),d=h.get("minorGridEnabled",c),u=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E)),f=Math.round(s/u),m=2;G(f/5,10)%1==0&&(m=5),G(f/10,10)%1==0&&(m=10);let g=s/m,p=0,_=0,x=-1/0,y=this.get("renderer").gridCount();for(;r<o;){let b;this.dataItems.length<p+1?(b=new K(this,void 0,{}),this._dataItems.push(b),this.processDataItem(b)):b=this.dataItems[p],this._createAssets(b,[]),this._toggleDataItem(b,!0),b.setRaw("value",r);let w=b.get("label");w&&w.set("text",this._formatText(r)),this._prepareDataItem(b);let M=r;if(!i)M+=s;else if(n>2){let P=Math.max(1,y),k=Math.max(1,Math.ceil(n/P)),I=Math.log(l)*Math.LOG10E+(p+1)*k-50;M=Math.pow(10,I)}else M+=s;if(d){let P=r+g;for(i&&(n>2&&(g=this._adjustMinMax(r,M,10).step),P=r+g);P<M-s*1e-11;){let k;this.minorDataItems.length<_+1?(k=new K(this,void 0,{}),this.minorDataItems.push(k),this.processDataItem(k)):k=this.minorDataItems[_],this._createAssets(k,["minor"],!0),this._toggleDataItem(k,!0),k.setRaw("value",P);let I=k.get("label");I&&(c?I.set("text",this._formatText(P)):I.setPrivate("visible",!1)),this._prepareDataItem(k),P+=g,_++}}if(r=M,x==r)break;let D=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));if(D<1&&!i){let P=Math.round(Math.abs(Math.log(Math.abs(D))*Math.LOG10E))+2;r=G(r,P)}p++,i&&n<=2&&r-s<s&&(r=s),x=r}for(let b=p;b<this.dataItems.length;b++)this._toggleDataItem(this.dataItems[b],!1);for(let b=_;b<this.minorDataItems.length;b++)this._toggleDataItem(this.minorDataItems[b],!1);T(this.series,b=>{b.inited&&b._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,n=this.valueToPosition(s+this.getPrivate("step"));v(a)&&(r=this.valueToPosition(a),n=r),t.get("isRange")&&a==null&&(n=o);let l=r,h=t.get("labelEndValue");h!=null&&(l=this.valueToPosition(h)),i.updateLabel(t.get("label"),o,l,e);let c=t.get("grid");if(i.updateGrid(c,o,r),c&&(s==this.get("baseValue",0)?(c.addTag("base"),c._applyThemes()):c.hasTag("base")&&(c.removeTag("base"),c._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,n),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){let d=this.get("fillRule");d&&d(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1)),i=this.get("renderer").gridCount(),s=this._adjustMinMax(t,e,i,!0),a=He(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=G(t,a),e=G(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,(this.getPrivate("selectionMin")!==t||this.getPrivate("selectionMax")!==e||this.getPrivate("step")!==o)&&(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){let e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){let e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");v(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}valueToFinalPosition(t){let e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");v(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);if(t.get("stackToItemX")){let r=t.component;a=a*s+r.getStackedXValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);if(t.get("stackToItemY")){let r=t.component;a=a*s+r.getStackedYValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){let t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0)),i=this.get("baseValue",0);return i<t&&(i=t),i>e&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i=t.endIndex();i<t.dataItems.length&&i++;let s,a;t.get("yAxis")==this?(s="valueY",a="vcy"):t.get("xAxis")==this&&(s="valueX",a="vcx");let o=s+"Working";if(s){let r=this.series.length,n=[],l=[];for(let f=0;f<r;f++){let m=this.series[f];m.get("excludeFromTotal")||(n.push(m),l.push(m.get(a)))}let h=n.length,c=s+"Total",d=s+"Sum",u=s+"TotalPercent";for(let f=e;f<i;f++){let m=0,g=0;for(let p=0;p<h;p++){let _=n[p].dataItems[f];if(_){let x=_.get(o)*l[p];at(x)||(m+=x,g+=Math.abs(x))}}for(let p=0;p<h;p++){let _=n[p].dataItems[f];if(_){let x=_.get(o)*l[p];at(x)||(_.set(c,g),_.set(d,m),_.set(u,g==0?0:x/g*100))}}}}}}}}_getSelectionMinMax(){let t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max"),a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2));let r=this.get("renderer").gridCount(),n=this.get("strictMinMaxSelection"),l=this.get("strictMinMax");if(v(t)&&v(e)){let h=e,c=t;if(T(this.series,y=>{if(!y.get("ignoreMinMax")){let b,w,M=y.getPrivate("outOfSelection");if(y.get("xAxis")===this){if(!M){let D=y.getPrivate("minX"),P=y.getPrivate("maxX");(y.startIndex()!=0||y.endIndex()!=y.dataItems.length)&&(D=void 0,P=void 0),b=y.getPrivate("selectionMinX",D),w=y.getPrivate("selectionMaxX",P)}}else if(y.get("yAxis")===this&&!M){let D=y.getPrivate("minY"),P=y.getPrivate("maxY");(y.startIndex()!=0||y.endIndex()!=y.dataItems.length)&&(D=void 0,P=void 0),b=y.getPrivate("selectionMinY",D),w=y.getPrivate("selectionMaxY",P)}!y.isHidden()&&!y.isShowing()&&(v(b)&&(h=Math.min(h,b)),v(w)&&(c=Math.max(c,w)))}}),this.axisRanges.each(y=>{if(y.get("affectsMinMax")){let b=y.get("value");b!=null&&(h=Math.min(h,b),c=Math.max(c,b)),b=y.get("endValue"),b!=null&&(h=Math.min(h,b),c=Math.max(c,b))}}),h>c&&([h,c]=[c,h]),v(i)?l?h=i:h=t:l&&v(this._minReal)&&(h=this._minReal),v(s)?l?c=s:c=e:l&&v(this._maxReal)&&(c=this._maxReal),h===c){let y=h;if(h-=this._deltaMinMax,c+=this._deltaMinMax,h<t){let w=y-t;w==0&&(w=this._deltaMinMax),h=y-w,c=y+w,l=!0}let b=this._adjustMinMax(h,c,r,l);h=b.min,c=b.max}let d=h,u=c,f=c-h;h-=f*a,c+=f*o;let m=this._adjustMinMax(h,c,r);h=m.min,c=m.max,h=ot(h,t,e),c=ot(c,t,e),m=this._adjustMinMax(h,c,r,!0),l||(h=m.min,c=m.max);let g=this.get("syncWithAxis");if(g&&(m=this._syncAxes(h,c,m.step,g.getPrivate("selectionMinFinal",g.getPrivate("minFinal",0)),g.getPrivate("selectionMaxFinal",g.getPrivate("maxFinal",1)),g.getPrivate("selectionStepFinal",g.getPrivate("step",1))),h=m.min,c=m.max),l&&!g&&(v(i)&&(h=Math.max(h,i)),v(s)&&(c=Math.min(c,s))),n&&!g&&(h=d-(u-d)*a,c=u+(u-d)*o),l&&!g){v(i)?h=i:h=d,v(s)?c=s:c=u,c-h<=1e-8&&(h-=this._deltaMinMax,c+=this._deltaMinMax);let y=c-h;h-=y*a,c+=y*o}this.get("logarithmic")&&(h<=0&&(h=d*(1-Math.min(a,.99))),h<t&&(h=t),c>e&&(c=e));let p=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),_=G(this.valueToFinalPosition(h),p),x=G(this.valueToFinalPosition(c),p);this.setPrivateRaw("selectionMinFinal",h),this.setPrivateRaw("selectionMaxFinal",c),this.setPrivateRaw("selectionStepFinal",m.step),this.zoom(_,x)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2)));let r=1/0;if(T(this.series,x=>{if(!x.get("ignoreMinMax")){let y,b;if(x.get("xAxis")===this?(y=x.getPrivate("minX"),b=x.getPrivate("maxX")):x.get("yAxis")===this&&(y=x.getPrivate("minY"),b=x.getPrivate("maxY")),v(y)&&v(b)){i=Math.min(i,y),s=Math.max(s,b);let w=b-y;w<=0&&(w=Math.abs(b/100)),w<r&&(r=w)}}}),this.axisRanges.each(x=>{if(x.get("affectsMinMax")){let y=x.get("value");y!=null&&(i=Math.min(i,y),s=Math.max(s,y)),y=x.get("endValue"),y!=null&&(i=Math.min(i,y),s=Math.max(s,y))}}),this.get("logarithmic")){let x=this.get("treatZeroAs");v(x)&&i<=0&&(i=x),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(i===0&&s===0&&(s=.9,i=-.9),v(t)&&(i=t),v(e)&&(s=e),i===1/0||s===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}i>s&&([i,s]=[s,i]);let n=i,l=s,h=this.adapters.fold("min",i),c=this.adapters.fold("max",s);this._minRealLog=i,v(h)&&(i=h),v(c)&&(s=c),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&n>=0&&(i=0),s>0&&l<=0&&(s=0)),this._minReal=i,this._maxReal=s;let d=this.get("strictMinMax"),u=this.get("strictMinMaxSelection",!1);u&&(d=u);let f=d;v(e)&&(f=!0);let m=this.get("renderer").gridCount(),g=this._adjustMinMax(i,s,m,f);if(i=g.min,s=g.max,g=this._adjustMinMax(i,s,m,!0),i=g.min,s=g.max,d){v(t)?i=t:i=this._minReal,v(e)?s=e:s=this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let x=s-i;i-=x*a,s+=x*o}h=this.adapters.fold("min",i),c=this.adapters.fold("max",s),v(h)&&(i=h),v(c)&&(s=c),r==1/0&&(r=s-i);let p=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=G(i,p),s=G(s,p);let _=this.get("syncWithAxis");if(_&&(g=this._syncAxes(i,s,g.step,_.getPrivate("minFinal",_.getPrivate("min",0)),_.getPrivate("maxFinal",_.getPrivate("max",1)),_.getPrivate("step",1)),i=g.min,s=g.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/r*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=n*(1-Math.min(a,.99)))),v(i)&&v(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);let x=this.get("interpolationDuration",0),y=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:x,easing:y}),this.animatePrivate({key:"max",to:s,duration:x,easing:y})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i=i/10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;r===0&&(r=Math.abs(e));let n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n));l=l/10;let h=l;s&&(h=0),s?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n)),l=l/100;let c=Math.ceil(r/i/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),u=Math.ceil(c/d);u>5?u=10:u<=5&&u>2&&(u=5),c=Math.ceil(c/(d*u))*d*u;let f=this.get("maxPrecision");if(v(f)){let _=ye(c,f);f<Number.MAX_VALUE&&c!==_&&(c=_,c==0&&(c=1))}let m=0;d<1&&(m=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,c=G(c,m));let g=Math.floor(t/c);t=G(c*g,m);let p;return s?p=Math.floor(e/c):p=Math.ceil(e/c),p===g&&p++,e=G(c*p,m),e<o&&(e=e+c),t>a&&(t=t-c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){let i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,r=G(this.positionToValue(t),o);return i?s.format(r,i):s.format(r,void 0,o)}getSeriesItem(t,e){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.positionToValue(e),a,o;if(T(t.dataItems,(r,n)=>{let l=Math.abs(r.get(i)-s);(a===void 0||l<o)&&(a=n,o=l)}),a!=null)return t.dataItems[a]}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",1));this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}_syncAxes(t,e,i,s,a,o){if(this.get("syncWithAxis")){let n=Math.round((a-s)/o);if(n>0)if(this.get("syncZeros")&&s<=0&&a>=0){let l=Math.round((0-s)/o),h=n-l,c=0;l>0&&t<0&&(c=Math.abs(t)/l),h>0&&e>0&&(c=Math.max(c,e/h)),c==0&&(c=(e-t)/n),i=this._niceStep(c),t=-i*l,e=i*h}else{let l=(e-t)/n;i=this._niceStep(l);let h=Math.floor(t/i)*i,c=h+i*n;c<e&&(h=Math.ceil(e/i)*i-i*n,c=h+i*n),t>=0&&h<0&&(h=0,c=i*n),e<=0&&c>0&&(c=0,h=-(i*n)),t=h,e=c}}return{min:t,max:e,step:i}}_niceStep(t){let e=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),i=t/e;i<=1?i=1:i<=2?i=2:i<=5?i=5:i=10;let s=i*e,a=this.get("maxPrecision");if(v(a)){let o=ye(s,a);a<Number.MAX_VALUE&&s!==o&&(s=o,s==0&&(s=1))}return s}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return v(t)&&v(e)?this.getPrivate("step",1)/(t-e):.05}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.positionToValue(this.getPrivate("tooltipPosition",0));return e+=this.getPrivate("step",1)*t,e=ot(e,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(e))}};et.className="ValueAxis";et.classNames=ht.classNames.concat([et.className]);var Dt=class A extends ht{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();let t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();let t=this.dataItems.length,e=0;this._valuesDirty&&(this._itemMap={},T(this.dataItems,o=>{o.setRaw("index",e),this._itemMap[o.get("category")]=o,e++}),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){let t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0),r=this._sAnimation,n=this._eAnimation,l=this.get("start",0),h=!1;r&&!r.stopped&&(l=Number(r.to),h=!0);let c=this.get("end",1);if(n&&!n.stopped&&(c=Number(n.to),h=!0),h){let d=this._getIndices(l,c);a=d.startIndex,o=d.endIndex}for(let d=a;d<o;d++){let u=this.dataItems[d];s+=u.get("finalCellSize",1)}if(s<=i){let d=0;for(let u=a;u<t;u++){let f=this.dataItems[u];if(d+=f.get("finalCellSize",1),o=u+1,d>=i)break}if(d<i)for(let u=a-1;u>=0;u--){let f=this.dataItems[u];if(d+=f.get("finalCellSize",1),a=u,d>=i)break}this.zoomToIndexes(a,o)}else if(s>=e){let d=s;for(let u=o-1;u>=a;u--){let f=this.dataItems[u];if(d-=f.get("finalCellSize",1),d<=e){o=u+1;break}}this.zoomToIndexes(a,o)}}}_handleRangeChange(){T(this.series,t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),o=t.get("yAxis");if(a instanceof A&&o instanceof A)t._markDirtyAxes();else if(s===this){let r,n,l=o;if(a===s?(t.get("categoryXField")&&(r="categoryX"),t.get("openCategoryXField")&&(n="openCategoryX")):o===s&&(t.get("categoryYField")&&(r="categoryY"),t.get("openCategoryYField")&&(n="openCategoryY"),l=a),l instanceof et&&(r||n)){let d=function(g,p,_,x,y,b){let w,M=p.categoryToIndex(y);for(;!w&&M>=0&&M<p.dataItems.length;){let D=p.dataItems[M].get("category");if(b=="previous")for(let P=g.dataItems.length-1;P>=0;P--){let k=g.dataItems[P];if(_&&k.get(_)===D){w=k;break}if(x&&k.get(x)===D){w=k;break}}else for(let P=0,k=g.dataItems.length;P<k;P++){let I=g.dataItems[P];if(_&&I.get(_)===D){w=I;break}if(x&&I.get(x)===D){w=I;break}}w||(M+=b==="previous"?-1:1)}return w},h,c;h=d(t,this,r,n,e,"next"),c=d(t,this,r,n,i,"previous");let u=0,f=t.dataItems.length;h&&(u=t.dataItems.indexOf(h)),c&&(f=t.dataItems.indexOf(c)+1),t.setPrivate("startIndex",u),t.setPrivate("endIndex",f);let m=!1;for(let g=u;g<f;g++){let p=t.dataItems[g];if(T(t.__valueXShowFields,_=>{p.get(_)!=null&&(m=!0)}),T(t.__valueYShowFields,_=>{p.get(_)!=null&&(m=!0)}),m)break}t.setPrivate("outOfSelection",!m)}t._markDirtyAxes()}})}_prepareAxisItems(){var t;let e=this.get("renderer"),i=this.dataItems.length,s=this.startIndex();s>0&&s--;let a=this.endIndex();a<i&&a++;let o=e.get("minorLabelsEnabled"),r=e.get("minorGridEnabled",o),n=e.axisLength()/Math.max(e.get("minGridDistance"),1),l=Math.max(1,Math.min(i,Math.ceil((a-s)/n)));s=Math.floor(s/l)*l,this._frequency=l;for(let c=0;c<i;c++)this._toggleDataItem(this.dataItems[c],!1);let h=this.dataItems[s].get("index",0);for(let c=s;c<a;c=c+l){let d=this.dataItems[c];this._createAssets(d,[]),this._toggleDataItem(d,!0);let u=l;r&&(u=1),this._prepareDataItem(d,h,u),h++}if(e.get("minorGridEnabled"))for(let c=s;c<a;c++){let d=this.dataItems[c];c%l!=0&&(this._createAssets(d,["minor"],!0),this._toggleDataItem(d,!0),this._prepareDataItem(d,0,1),o||(t=d.get("label"))===null||t===void 0||t.setPrivate("visible",!1))}this._updateGhost()}_prepareDataItem(t,e,i){let s=this.get("renderer"),a=t.get("categoryLocation",0),o=t.get("endCategoryLocation",1),r=t.get("index");v(r)||(r=this.categoryToIndex(t.get("category")));let n=this.indexToPosition(r,a),l=t.get("endCategory"),h;l?(h=this.categoryToIndex(l),v(h)||(h=r)):h=r;let c=this.indexToPosition(h,o),d,u;if(t.get("isRange")){if(d=h,!v(r)){this._toggleDataItem(t,!1);return}}else d=r+this._frequency-1;u=this.indexToPosition(d,o),s.updateLabel(t.get("label"),n,c,i),s.updateGrid(t.get("grid"),n,c),s.updateTick(t.get("tick"),n,c,i),s.updateFill(t.get("axisFill"),n,u),this._processBullet(t),s.updateBullet(t.get("bullet"),n,c);let f=this.get("fillRule");f&&f(t,e)}startIndex(){let t=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),t-1)}endIndex(){let t=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",t),t))}baseValue(){}basePosition(){return 0}getX(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getY(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getDataItemPositionX(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}indexToPosition(t,e,i){let s=this.dataItems.length,a=0;if(s==0||(t>=s&&(t=s-1,e=1),v(e)||(e=.5),!v(t)))return 0;let o=this.get("startLocation",0),r=this.get("endLocation",1);if(!this.get("cellSizeField"))s-=o,s-=1-r,a=(t+e-o)/s;else{let n=i?"finalCellSize":"cellSize",l=this.dataItems,h=0;T(this.dataItems,u=>{h+=u.get(n,1)}),h-=o*l[0].get(n,1),h-=(1-r)*l[l.length-1].get(n,1);let c=0;for(let u=0;u<t;u++)c+=l[u].get(n,1);let d=l[t].get(n,1);a=(c+e*d-o*l[0].get(n,1))/h}if(!i){let n=this.dataItems[t];n&&(a+=n.get("deltaPosition",0))}return a}categoryToPosition(t){let e=this._itemMap[t];return e?this.indexToPosition(e.get("index")):NaN}categoryToIndex(t){let e=this._itemMap[t];return e?e.get("index"):NaN}dataItemToPosition(t){return this.indexToPosition(t.get("index"))}roundAxisPosition(t,e){return t+=(.5-e)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(t),e)}axisPositionToIndex(t){let e=this.dataItems.length;if(e===0)return 0;if(this.get("cellSizeField")){let i=0,s=[];T(this.dataItems,l=>{let h=l.get("cellSize",1);s.push(h),i+=h});let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,n=0;for(let l=0;l<e;l++){let h=s[l];if(r<n+h)return l;n+=h}return e-1}else return ot(Math.floor(t*e),0,e-1)}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=i.get("label");if(s)return Ke(s,this.get("tooltipText",""))}}_updateTooltipText(t,e){t._setDataItem(this.dataItems[this.axisPositionToIndex(e)]),t.label.text.markDirtyText()}getSeriesItem(t,e){if(this.dataItems.length>0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],r=o.get("category");if(a&&o&&a.get(i)===r)return a;for(let n=0,l=t.dataItems.length;n<l;n++){let h=t.dataItems[n];if(h.get(i)===r)return h}}}_getIndices(t,e){let i=this.dataItems.length,s=0,a=i,o="cellSize";if(this.get("cellSizeField")){let r=0,n=this.dataItems;if(n.length==0)return{startIndex:0,endIndex:0};T(n,h=>{r+=h.get(o,1)}),r-=this.get("startLocation",0)*n[0].get(o,1),r-=(1-this.get("endLocation",1))*n[n.length-1].get(o,1);let l=0;for(let h=0;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>Math.round(t*r)){s=h;break}for(let h=s+1;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>=Math.round(e*r)){a=h+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.getPrivate("tooltipPosition",0),i=ot(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}};Dt.className="CategoryAxis";Dt.classNames=ht.classNames.concat([Dt.className]);var Wt=class extends Dt{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));let t=this.get("renderer"),e=this.dataItems.length,i=this.startIndex();i>0&&i--;let s=this.endIndex();s<e&&s++;let a=t.axisLength()/Math.max(t.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),o=Math.min(e,Math.ceil((s-i)/a));i=Math.floor(i/o)*o,this._frequency=o;for(let y=0;y<e;y++)this._toggleDataItem(this.dataItems[y],!1);let r=Number(this.dataItems[i].get("category")),n=Number(this.dataItems[s-1].get("category")),l=n-r;s-i<a&&(l=n-r-((n-r)/this.baseDuration()-(s-i))*this.baseDuration());let h=Ft(0,l,a,this.get("gridIntervals")),c=Ot(h.timeUnit),d=this.getPrivate("baseInterval");j(h)<this.baseDuration()&&(h=Object.assign({},d));let u=this.get("dateFormats"),f=-1/0,m=-1/0,g=-1/0,p,_=[],x=!1;for(let y=i;y<s;y++){let b=this.dataItems[y],w=b.get("index"),M=!1,D=Number(b.get("category")),P=new Date(D),k=ei(P,h.timeUnit);p=u[h.timeUnit];let I=!1;h.timeUnit!="year"&&h.timeUnit!="week"&&c&&this.get("markUnitChange")&&v(f)&&Ut(D,f,c,this._root.utc)&&(p=this.get("periodChangeDateFormats")[h.timeUnit],w-o*.5<m&&_.pop(),_.push({format:p,dataItem:b}),x=!0,I=!0,m=w,g=k);let C=!1;h.timeUnit==="day"||h.timeUnit==="week"?w-m>=o&&(C=!0):k%h.count===0&&k!=g&&(C=!0),!I&&C&&(w-o*.7<m&&x&&(M=!0),M||(_.push({format:p,dataItem:b}),m=w,g=k),x=!1),f=D}if(_.length>0){let y=_[0].dataItem.get("index",0);T(_,b=>{let w=b.dataItem,M=b.format;this._createAssets(w,[]),this._toggleDataItem(w,!0);let D=Number(w.get("category")),P=new Date(D),k=w.get("label");k&&k.set("text",this._root.dateFormatter.format(P,M)),y++,this._prepareDataItem(w,y,o)})}}baseDuration(){return j(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",s))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}};Wt.className="CategoryDateAxis";Wt.classNames=Dt.classNames.concat([Wt.className]);var Pt=class extends et{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=j(t)}_fixZoomFactor(){let t=this.get("maxZoomFactor");t!=null&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(v(t)&&v(e)){this._fixZoomFactor();let i=this.getPrivate("groupInterval");if(i?this._setBaseInterval(i):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let s=this.get("groupInterval");s&&(this.setRaw("groupIntervals",[s]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))T(this.series,s=>{this._groupSeriesData(s)}),this._handleRangeChange();else{let s=this.get("baseInterval"),a=s.timeUnit+s.count;T(this.series,o=>{o.setDataSet(a),o.resetGrouping()}),this._setBaseInterval(s),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),s=this.get("groupIntervals");T(s,u=>{j(u)>i&&e.push(u)}),t._dataSets={};let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o,r=t.get("baseAxis");t.get("xAxis")===r?o=t._valueYFields:t.get("yAxis")===r&&(o=t._valueXFields);let n=t._mainDataItems,l=this.get("baseInterval"),h=l.timeUnit+l.count;t._dataSets[h]=n;let c=t.get("groupDataCallback"),d=t.get("groupDataWithOriginals",!1);c&&(d=!0),T(e,u=>{let f=-1/0,m=u.timeUnit+u.count;t._dataSets[m]=[];let g,p={},_={},x={},y={};T(o,P=>{p[P]=0,_[P]=0,x[P]=t.get(P+"Grouped"),y[P]=P+"Working"});let b=Q(u.timeUnit),w=n[0],M;w&&(M=n[0].get(a));let D;T(n,P=>{let k=P.get(a),I=R(k,u.timeUnit,u.count,this._root,M),C;if(f<I-b/24)C=Ct(P.dataContext),g=new K(t,C,t._makeDataItem(C)),g.setRaw(a,I),t._dataSets[m].push(g),T(o,X=>{let S=P.get(X);v(S)?(g.setRaw(X,S),g.setRaw(y[X],S),_[X]=1,p[X]=S):(p[X]=0,_[X]=0)}),d&&g.set("originals",[P]),c&&D&&c(D,u),D=g;else{let X=!1;if(T(o,S=>{let tt=x[S],V=P.get(S);if(V!=null){X=!0;let q=g.get(S);switch(tt){case"close":g.setRaw(S,V);break;case"sum":g.setRaw(S,q+V);break;case"open":break;case"low":V<q&&g.setRaw(S,V);break;case"high":V>q&&g.setRaw(S,V);break;case"average":_[S]++,p[S]+=V;let F=p[S]/_[S];g.setRaw(S,F);break;case"extreme":Math.abs(V)>Math.abs(q)&&g.setRaw(S,V);break}g.setRaw(y[S],g.get(S))}}),X){let S=Ct(P.dataContext);S[a]=I,g.dataContext=S}d&&g.get("originals").push(P)}f=I}),c&&D&&c(D,u)}),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=Ft(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return j(i)<j(e)&&(i=Object.assign({},e)),i}getIntervalMax(t){return this._intervalMax[t.timeUnit+t.count]}getIntervalMin(t){return this._intervalMin[t.timeUnit+t.count]}_handleRangeChange(){super._handleRangeChange();let t=Math.round(this.getPrivate("selectionMin")),e=Math.round(this.getPrivate("selectionMax"));if(v(t)&&v(e)){if(this.get("endLocation")==0&&(e+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=e-t+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this._baseDuration);if(s){let o=j(s);a=Math.ceil(a/o)*o}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let o=i.timeUnit+i.count;T(this.series,r=>{r.get("baseAxis")===this&&r.setDataSet(o)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{let r="groupintervalchanged";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})})})}}T(this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=Ee(i.dataItems,g=>ft(g.get(s),t)).index;o>0&&(o-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let n=mt(i.dataItems,g=>ft(g.get(s),e)).index,l=n;l>1&&l--;let h=i.dataItems[o],c=i.dataItems[l],d,u;h&&(u=h.get(s)),c&&(d=c.get(s));let f=!1;d!=null&&u!=null&&(d<t||u>e)&&(f=!0),i.setPrivate("outOfSelection",f),i.setPrivate("startIndex",o);let m=i._adjustStartIndex(o);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})),i.setPrivate("endIndex",n)}})}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return t=="day"||t=="month"||t=="year"?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(s==10||s==15?s=5:s==12?s=2:s==6?s=1:s==30?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),a=="week"&&(((e=this.getPrivate("baseInterval"))===null||e===void 0?void 0:e.timeUnit)!="week"?i={timeUnit:"day",count:1}:i={timeUnit:"week",count:1}),a=="year"&&s==1&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<4*366*24*60*60*1e3&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(v(t)&&v(e)){let i=this._root,s=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),o=this.get("renderer"),r=this.getPrivate("baseInterval"),n=s,l=0,h=this.get("gridIntervals"),c=Ft(0,a-s,o.gridCount(),h);j(c)<this._baseDuration&&(c=Object.assign({},r));let d=j(c);this._intervalDuration=d;let u=Ot(c.timeUnit),f=i.utc,m=i.timezone;n=R(s-d,c.timeUnit,c.count,i,t);let g=n-d,p,_=this.get("dateFormats");this.setPrivateRaw("gridInterval",c);let x=o.get("minorLabelsEnabled"),y=o.get("minorGridEnabled",x),b,w=0;y&&(b=this._getMinorInterval(c),w=j(b));let M=0;for(;n<a+d;){let D;this.dataItems.length<l+1?(D=new K(this,void 0,{}),this._dataItems.push(D),this.processDataItem(D)):D=this.dataItems[l],this._createAssets(D,[]),this._toggleDataItem(D,!0),D.setRaw("value",n),D.setRaw("labelEndValue",void 0);let P=n+Q(c.timeUnit,c.count*this._getM(c.timeUnit));P=R(P,c.timeUnit,1,i),D.setRaw("endValue",P);let k=new Date(n);p=_[c.timeUnit],u&&this.get("markUnitChange")&&v(g)&&c.timeUnit!="year"&&Ut(n,g,u,f,m)&&(p=this.get("periodChangeDateFormats")[c.timeUnit]);let I=D.get("label");I&&I.set("text",i.dateFormatter.format(k,p));let C=c.count;if(c.timeUnit=="week"?I?.set("location",this.get("weekLabelLocation",0)):I?.set("location",o.labels.template.get("location")),y){C=1;let X=c.timeUnit;X=="week"&&this.get("skipFirstMinor")&&(X="day");let S=n+Q(X,this._getM(X));S=R(S,X,1,i),D.setRaw("labelEndValue",S)}if(this._prepareDataItem(D,C),g=n,n=P,b){let X=b.timeUnit,S=b.count,tt=this._getM(X);this.get("skipFirstMinor")||(g-=w*tt);let V=R(g+w*tt,X,S,i,g),q,F=this.get("minorDateFormats",this.get("dateFormats"));for(;V<n-.01*w;){let N;this.minorDataItems.length<M+1?(N=new K(this,void 0,{}),this.minorDataItems.push(N),this.processDataItem(N)):N=this.minorDataItems[M],this._createAssets(N,["minor"],!0),this._toggleDataItem(N,!0),N.setRaw("value",V);let L=V+Q(X,S*tt);L=R(L,X,1,i),N.setRaw("endValue",L);let xt=new Date(V);p=F[X];let _t=N.get("label");if(_t&&(x?_t.set("text",i.dateFormatter.format(xt,p)):_t.setPrivate("visible",!1)),this._prepareDataItem(N,1),V==q)break;if(!N.get("isRange")){let it=this.get("fillRule");it&&it(N)}q=V,V=L,M++}}if(n==g)break;l++}for(let D=l;D<this.dataItems.length;D++)this._toggleDataItem(this.dataItems[D],!1);for(let D=M;D<this.minorDataItems.length;D++)this._toggleDataItem(this.minorDataItems[D],!1);T(this.series,D=>{D.inited&&D._markDirtyAxes()})}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+Q(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+Q(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return j(this.get("baseInterval"))}processSeriesDataItem(t,e){let i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),T(e,s=>{let a=t.get(s);if(v(a)){let o=t.open[s],r=t.close[s];if(!(a>=o&&a<=r)){let n=i.timeUnit,l=i.count;o=R(a,n,l,this._root),r=o+Q(n,l*this._getM(n)),r=R(r,n,1,this._root),t.open[s]=o,t.close[s]=r}this._updateDates(o,t.component)}})}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i=i-(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!at(i)){let a=this._root.locale.firstDayOfWeek,o=s.timeUnit,r=this._root.utc,n=this._root.timezone,l=s.count;i=R(i,o,l,this._root,this.getPrivate("min",0));let h=de(s,new Date(i),a,r,n);return n&&(i=R(i+this._baseDuration*.05,o,l,this._root,this.getPrivate("min",0)),h=de(s,new Date(i+h*e),a,r,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(this.getPrivate("min")!=null){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(v(s)){let a=new Date(s),o=this.getPrivate("baseInterval"),r=de(o,a,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return e!==!1&&(a=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*r)),this._root.dateFormatter.format(a,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);i==null&&(i=.5),o=o-(i-.5)*this._baseDuration;let r=mt(t.dataItems,n=>{let l=0;return n.open&&(l=n.open[a]),ft(l,o)});if(s||t.get("snapTooltip")){let n=t.dataItems[r.index-1],l=t.dataItems[r.index];if(n&&l&&n.open&&l.close){let h=n.open[a],c=l.close[a];if(Math.abs(o-h)>Math.abs(o-c))return l}if(n)return n;if(l)return l}else{let n=t.dataItems[r.index-1];if(n&&n.open&&n.close){let l=n.open[a],h=n.close[a];if(o>=l&&o<=h)return n}}}shouldGap(t,e,i,s){let a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(this.getPrivate("min")!=null&&this.getPrivate("max")!=null)if(this.get("groupData")){let o=this.getGroupInterval(e-t),r=this.get("baseInterval"),n=this.getIntervalMin(r),l=this.getIntervalMax(r)-1;l=R(l,o.timeUnit,o.count,this.root),l+=this._getM(o.timeUnit)*j(o),l=R(l,o.timeUnit,o.count,this.root);let h=R(n,o.timeUnit,o.count,this.root),c=R(l,o.timeUnit,o.count,this.root),d=(t-h)/(c-h),u=(e-h)/(c-h);this.zoom(d,u,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return v(t)&&v(e)?this._intervalDuration/(t-e):.05}nextPosition(t){t==null&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0)),s=this.getPrivate("baseInterval"),a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),n=R(o,s.timeUnit,s.count,this._root),l=R(r,s.timeUnit,s.count,this._root);return a+=e,a=ot(a,n+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return R(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}};Pt.className="DateAxis";Pt.classNames=et.classNames.concat([Pt.className]);var Ht=class extends Pt{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){let i=this._getDates(),s=mt(i,a=>ft(a,t));s.found||Ge(i,s.index,t)}}_updateAllDates(){if(!this._customDates){let t=new Set;T(this.series,l=>{if(l.get("ignoreMinMax"))return;let h="valueX";l.get("yAxis")==this&&(h="valueY"),T(l.dataItems,c=>{let d=c.get(h);v(d)&&c.open&&t.add(c.open[h])})}),this._dates=Array.from(t).sort((l,h)=>l-h);let e=this._dates,i=this.get("extraMax",0),s=this.get("extraMin",0),a=e.length,o=this.getPrivate("baseInterval"),r=o.count,n=o.timeUnit;if(i>0){let l=a*i,h=e[a-1];if(v(h))for(let c=a-1;c<a+l;c++)h+=Q(n,r*this._getM(n)),h=R(h,n,r,this._root),e.push(h)}if(s>0){let l=a*s,h=e[0];if(v(h)){let c=[];for(let d=0;d<l;d++)h-=Q(n,r),h=R(h,n,r,this._root),c.push(h);c.reverse(),e.unshift(...c)}}}}valueToPosition(t){let e=this._getDates(),i=this.get("startLocation",0),s=this.get("endLocation",1),a=e.length-i-(1-s),o=mt(e,n=>ft(n,t)),r=o.index;if(o.found)return(r-i)/a;{r>0&&(r-=1);let n=e[r],l=e[r+1];if(l){let c=l;Math.abs(c-t)<Math.abs(n-t)&&(n=c,r++)}let h=t-n;return(r-i)/a+h/this._baseDuration/a}}valueToIndex(t){let e=this._getDates(),i=mt(e,a=>ft(a,t)),s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){let e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates(),a=Math.round(s.length-e-(1-i)),o=t*a,r=Math.floor(o);return r<0&&(r=0),r>a-1&&(r=a-1),s[r]+(o-r+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){let s=this._getDates(),a=s.length,o=mt(s,l=>ft(l,t.getTime())),r=s[Math.min(o.index,a-1)];o=mt(s,l=>ft(l,e.getTime()));let n=s[o.index];o.index>=a&&(n=s[a-1]+this._baseDuration),this.zoomToValues(r,n,i)}zoomToValues(t,e,i){let s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=ot(t,s,a),e=ot(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(v(t)&&v(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());let i=this._root,s=i.utc,a=i.timezone,o=this._getDates(),r=this.get("renderer"),n=o.length,l=this._baseDuration,h=this.valueToIndex(t);h>0&&h--;let c=this.valueToIndex(e);c<n-1&&c++;let d=r.axisLength()/Math.max(r.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),u=Math.min(n,Math.ceil((c-h)/d));u=Math.max(1,u),h=Math.floor(h/u)*u,this._frequency=u,T(this.dataItems,C=>{this._toggleDataItem(C,!1)}),T(this.minorDataItems,C=>{this._toggleDataItem(C,!1)});let f=e-t-((e-t)/l-(c-h))*l,m=Ft(0,f,d,this.get("gridIntervals")),g=this.getPrivate("baseInterval"),p=j(m);p<l&&(m=Object.assign({},g),p=j(m)),this.setPrivateRaw("gridInterval",m),this._intervalDuration=p;let _=m.timeUnit,x=this.get("dateFormats"),y=Date.now();o[0]&&(y=o[0]);let b=R(this.getPrivate("selectionMin",0),_,m.count,i,y),w=r.get("minorLabelsEnabled"),M=r.get("minorGridEnabled",w),D,P=0,k;M&&(D=this._getMinorInterval(m),P=j(D));let I=this._getIndexes(b,this.getPrivate("selectionMax",b)+p,m,this.getPrivate("min",b));if(I.length>0){let C=0;this._m=0;let X=b-p*10,S=Ot(_);if(D){let V=o[I[0]];this._addMinorGrid(V-p,V,P,D)}let tt=r.axisLength()/r.gridCount()*.5;T(I,V=>{var q;let F;this.dataItems.length<C+1?(F=new K(this,void 0,{}),this._dataItems.push(F),this.processDataItem(F)):F=this.dataItems[C];let N=o[V],L=new Date(N),xt=N;C<I.length-1?xt=o[I[C+1]]:xt+=p,F.setRaw("value",N),F.setRaw("endValue",xt),F.setRaw("index",C),F.setRaw("labelEndValue",void 0);let _t=x[_];S&&this.get("markUnitChange")&&v(X)&&_!="year"&&Ut(N,X,S,s,a)&&(_t=this.get("periodChangeDateFormats")[_]),this._createAssets(F,[]);let it=F.get("label");it&&it.set("text",i.dateFormatter.format(L,_t)),this._toggleDataItem(F,!0);let Mt=m.count;if(_=="week"&&F.setRaw("labelEndValue",N),M){let st=m.timeUnit;if(st=="week"&&(st="day"),Mt>1||m.timeUnit=="week"){let W=R(N,st,1,i)+Q(st,this._getM(st)),dt=this.valueToIndex(W);if(W=o[dt],W==N){let yt=o[dt+1];yt?W=yt:W+=P}F.setRaw("labelEndValue",W)}Mt=1}if(this._prepareDataItem(F,Mt),it&&k&&r.getPrivate("letter")=="X"){let st=k.get("label");if(st){let W=it.x(),dt=st.x();if(W-dt<tt){let yt=this._pickWorse(k,F,m);yt&&((q=yt.get("label"))===null||q===void 0||q.setPrivate("visible",!1))}}}D&&this._addMinorGrid(N,xt,P,D),C++,it&&it.getPrivate("visible")&&(k=F),X=N})}T(this.series,C=>{C.inited&&C._markDirtyAxes()})}this._updateGhost()}_pickWorse(t,e,i){let s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return s=="hour"&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){let a=this.get("minorDateFormats",this.get("dateFormats")),o=s.timeUnit,r=t+Q(o,this._getM(o));r=R(r,o,1,this._root);let n=e-i*.5,l=this._getIndexes(r,n,s,r),h=this._getDates();T(l,c=>{let d;this.minorDataItems.length<this._m+1?(d=new K(this,void 0,{}),this.minorDataItems.push(d),this.processDataItem(d)):d=this.minorDataItems[this._m],r=h[c],d.setRaw("value",r),d.setRaw("endValue",r+i),d.setRaw("index",c),this._createAssets(d,["minor"],!0);let u=d.get("label");if(u)if(this.get("renderer").get("minorLabelsEnabled")){let f=new Date(r),m=a[o];u.set("text",this._root.dateFormatter.format(f,m))}else u.setPrivate("visible",!1);this._toggleDataItem(d,!0),this._prepareDataItem(d,1),this._m++})}_getIndexes(t,e,i,s){let a=[],o=i.timeUnit,r=i.count,n=this._getM(o),l=this.getPrivate("baseInterval"),h=this._root,c=this._getDates(),d=r-1,u=-1/0,f=Q(o,n),m=Q(o,r*n),g=t;for(o=="day"&&(t=s);t<=e;){t=R(t,o,r,h);let p=this.valueToIndex(t),_=c[p];if(o=="day"&&l.timeUnit=="day")this._hasDate(t)&&d++,d==r&&(t>=g-m*2&&Vt(a,p),d=0),t+=f,t=R(t,o,1,h);else{if(_<t){for(let x=p,y=c.length;x<y;x++)if(_=c[x],_>=t){p=x;break}}Vt(a,p),t+=m,t=R(t,o,r,h)}if(t==u&&(t+=m+f,t=R(t,o,r,h)),t==u)break;u=t}return a}_hasDate(t){return mt(this._getDates(),i=>re(i,t)).found}_nextTime(t,e,i){let s=ot(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}};Ht.className="GaplessDateAxis";Ht.classNames=Pt.classNames.concat([Ht.className]);var jt=class extends et{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a,o=this.getDurationFormatter(),r=this.get("baseUnit");if(this.setRaw("maxPrecision",0),r=="millisecond"||r=="second"||r=="minute"||r=="hour"){i<=1&&(i=1),i=Math.round(i);let n=e-t;n===0&&(n=Math.abs(e));let l=n/i,h=[60,30,20,15,10,2,1],c=1;r=="hour"&&(h=[24,12,6,4,2,1]);for(let p of h)if(n/p>i){c=p;break}let d=Math.ceil((e-t)/c/i),u=Math.log(Math.abs(d))*Math.LOG10E,f=Math.pow(10,Math.floor(u))/10,m=d/f;d=qe(h,m)*f,l=c*d,t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l,a={min:t,max:e,step:l}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,r)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){let i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=G(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}};jt.className="DurationAxis";jt.classNames=et.classNames.concat([jt.className]);var Zt=class extends ve{_beforeChanged(){super._beforeChanged();let t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){let e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){let t=this.axis;t&&vt(t._bullets,(e,i)=>{i.uid==this.uid&&delete t._bullets[e]}),super._dispose()}};Zt.className="AxisBullet";Zt.classNames=ve.classNames.concat([Zt.className]);var St=class extends De{constructor(){super(...arguments),this._tickPoints=[]}};St.className="AxisLabel";St.classNames=De.classNames.concat([St.className]);var qt=class extends Ae{constructor(){super(...arguments),this._tickPoints=[]}};qt.className="AxisLabelRadial";qt.classNames=Ae.classNames.concat([qt.className]);var Xt=class extends Ce{constructor(){super(...arguments),this._tickPoints=[]}};Xt.className="AxisTick";Xt.classNames=Ce.classNames.concat([Xt.className]);var Kt=class extends we{constructor(){super(...arguments),this._tickPoints=[]}};Kt.className="EditableAxisLabel";Kt.classNames=we.classNames.concat([Kt.className]);var ct=class extends E{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new H(z.new({}),()=>Xt._new(this._root,{themeTags:Y(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))),this.grid=this.addDisposer(new H(z.new({}),()=>gt._new(this._root,{themeTags:Y(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))),this.axisFills=this.addDisposer(new H(z.new({}),()=>E._new(this._root,{themeTags:Y(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))),this.labels=this.addDisposer(new H(z.new({}),()=>St._new(this._root,{themeTags:Y(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}makeTick(t,e){let i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",Y(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){let i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",Y(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){let i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",Y(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){let i=this.labels.make();return i.set("themeTags",Y(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);let t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(t.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(t.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){let t=this.thumb;if(t){let e=this.axis.labelsContainer,i=this.get("pan");i=="zoom"?e.children.push(t):i=="none"&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);let e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){let e=this._thumbDownPoint;if(e){let i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t=t*(i-e),this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e),t}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis,o=a.get("start",0),r=a.get("end",1),n=o+(r-o)*(i-1e-4),l=o+(r-o)*(s+1e-4);e<n||e>l?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){let i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}};ct.className="AxisRenderer";ct.classNames=E.classNames.concat([ct.className]);var Jt=class extends ct{constructor(){super(...arguments),this.thumb=pt.new(this._root,{width:$,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");let t=this.grid.template;t.set("height",$),t.set("width",0),t.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)})}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));let s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){let o=this.chart,r=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),o){if(this.get(s)){let n=o.topAxesContainer.children;n.indexOf(e)==-1&&n.insertIndex(0,e),e.addTag(s),r.moveValue(this)}else{let n=o.bottomAxesContainer.children;n.indexOf(e)==-1&&n.moveValue(e),e.removeTag(s),r.moveValue(this,0)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(n=>{n._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e)*this._lc,t+=this._ls,t}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){let t=this.axis,e=t.x()-Lt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginLeft",0),r=t.x()-o,n=t.parent;n&&(r-=n.get("paddingLeft",0)),a.children.length>0?(o=t.axisHeader.width(),t.set("marginLeft",o+1)):a.set("width",o),a.setAll({x:r,y:-1,height:s.height()+2})}}processAxis(){super.processAxis();let t=this.axis;t.get("width")==null&&t.set("width",$);let e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",$),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){v(e)||(e=0);let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("x",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",$),r||(o*=-1)):(t.set("y",0),r&&(o*=-1)),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(0,o)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),v(e)||(e=0);let o=t.get("inside",this.get("inside",!1));this.get("opposite")?o?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",$)):o?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){v(e)||(e=0);let s=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){v(e)||(e=0);let a=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=-1;if(this.get("opposite")&&(n=1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s.set("y",l.y()+l.height()*n)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){v(e)||(e=0),v(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.height(),o=this.width();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(e,0),s.lineTo(i,0),s.lineTo(i,a),s.lineTo(e,a),s.lineTo(e,0))})}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,r=this.axisLength(),n=i,l="up";this.get("opposite")?e?(l="up",o=s.y,n=i):(l="down",o=s.y-i,n=i):e?(l="down",o=s.y-i,n=i):(l="up",o=s.y,n=i);let h={left:a,right:a+r,top:o,bottom:o+n},c=t.get("bounds");ce(h,c)||(t.set("bounds",h),t.set("pointerOrientation",l))}};Jt.className="AxisRendererX";Jt.classNames=ct.classNames.concat([Jt.className]);var Qt=class extends ct{constructor(){super(...arguments),this.thumb=pt.new(this._root,{height:$,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=Y(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");let t=this.grid.template;t.set("width",$),t.set("height",0),t.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())})}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));let s=this.thumb,a="opposite",o="inside",r=this.chart;if(this.isDirty(a)||this.isDirty(o)){let l=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),r){if(this.get(a)){let h=r.rightAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e,0),e.addTag(a),l.moveValue(this,0)}else{let h=r.leftAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e),e.removeTag(a),l.moveValue(this)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(h=>{h._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}let n=e.labelsContainer.width();r&&(this.get(a)?s.set("centerX",0):s.set("centerX",n)),s.setPrivate("width",n)}processAxis(){super.processAxis();let t=this.axis;t.get("height")==null&&t.set("height",$);let e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",$),t.axisHeader.set("layout",e)}_updatePositions(){let t=this.axis,e=t.y()-Lt(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginTop",0);a.children.length>0?(o=t.axisHeader.height(),t.set("marginTop",o+1)):a.set("height",o),a.setAll({y:t.y()-o,x:-1,width:s.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){v(e)||(e=0);let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a);let o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){v(e)||(e=0);let s=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){v(e)||(e=0);let a=.5;v(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),v(i)&&i!=e&&(e=e+(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(o,0)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){v(e)||(e=0);let a=t.get("location",.5);v(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=1;if(this.get("opposite")&&(n=-1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s.set("x",l.x()+l.width()*n)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){v(e)||(e=0),v(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.width(),o=this.height();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(0,e),s.lineTo(a,e),s.lineTo(a,i),s.lineTo(0,i),s.lineTo(0,e))})}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,r=this.axisLength(),n=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,n=i):(l="left",o=s.x,n=i):e?(l="left",o=s.x,n=i):(l="right",o=s.x-i,n=i);let h={left:o,right:o+n,top:a,bottom:a+r},c=t.get("bounds");ce(h,c)||(t.set("bounds",h),t.set("pointerOrientation",l))}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=e+t:t=i-t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=t-e:t=i-t,t=t/(i-e)*this._lc,t+=this._ls,t}fixPosition(t){return this.get("inversed")?t:1-t}};Qt.className="AxisRendererY";Qt.classNames=ct.classNames.concat([Qt.className]);var ut=class extends Et{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();let t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}};ut.className="Candlestick";ut.classNames=Et.classNames.concat([ut.className]);var wt=class extends bt{constructor(){super(...arguments),this.allColumns=this.children.push(E.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new H(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:Y(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new H(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:Y(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template]))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),T(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()})})}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,r,n){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);let l=e.get("stroke"),h=e.get("fillOpacity",1),c=e.get("strokeOpacity",1),d=e.get("strokeWidth",1),u=e.get("fill"),f=this.getPoint(i,a),m=this.getPoint(s,o),g=t.get("point");if(g){let p=this.getPoint(g.x,g.y);g.x=p.x+this._x,g.y=p.y+this._y}i=f.x,s=m.x,a=f.y,o=m.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:l,fill:u,strokeWidth:d,strokeOpacity:c,fillOpacity:h})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,r,n)}};wt.className="ColumnSeries";wt.classNames=bt.classNames.concat([wt.className]);var Tt=class extends wt{constructor(){super(...arguments),this.columns=this.addDisposer(new H(z.new({themeTags:["autocolor"]}),()=>ut._new(this._root,{themeTags:Y(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);let s=this.getRaw("xAxis"),a=this.getRaw("yAxis"),o=this.get("vcy",1),r=this.get("vcx",1),n,l,h,c,d,u,f,m,g=this.get("locationX",t.get("locationX",.5)),p=this.get("locationY",t.get("locationY",.5)),_=this.get("openLocationX",t.get("openLocationX",g)),x=this.get("openLocationY",t.get("openLocationY",p)),y;if(i==0){let b=a.getDataItemPositionY(t,this._yOpenField,1,o),w=a.getDataItemPositionY(t,this._yField,1,o);c=a.getDataItemPositionY(t,this._yLowField,1,o),m=a.getDataItemPositionY(t,this._yHighField,1,o),f=Math.max(b,w),h=Math.min(b,w);let M=this._aLocationX0+_-.5,D=this._aLocationX1+g-.5;n=s.getDataItemPositionX(t,this._xField,M+(D-M)/2,r),l=n,d=n,u=n,y="vertical"}else{let b=s.getDataItemPositionX(t,this._xOpenField,1,r),w=s.getDataItemPositionX(t,this._xField,1,r);l=s.getDataItemPositionX(t,this._xLowField,1,r),u=s.getDataItemPositionX(t,this._xHighField,1,r),d=Math.max(b,w),n=Math.min(b,w);let M=this._aLocationY0+x-.5,D=this._aLocationY1+p-.5;h=a.getDataItemPositionY(t,this._yField,M+(D-M)/2,o),c=h,f=h,m=h,y="horizontal"}this._updateCandleGraphics(t,n,l,h,c,d,u,f,m,y)}_updateCandleGraphics(t,e,i,s,a,o,r,n,l,h){let c=t.get("graphics");if(c){let d=this.getPoint(e,s),u=this.getPoint(i,a),f=this.getPoint(o,n),m=this.getPoint(r,l);if(this.get("turboMode")){let g=this.allColumnsData[this.allColumnsData.length-1];g.lowX0=d.x,g.lowY0=d.y,g.lowX1=u.x,g.lowY1=u.y,g.highX0=f.x,g.highY0=f.y,g.highX1=m.x,g.highY1=m.y}else{let g=c.x(),p=c.y();c.set("lowX0",d.x-g),c.set("lowY0",d.y-p),c.set("lowX1",u.x-g),c.set("lowY1",u.y-p),c.set("highX0",f.x-g),c.set("highY0",f.y-p),c.set("highX1",m.x-g),c.set("highY1",m.y-p),c.set("orientation",h);let _=t.get("rangeGraphics");_&&T(_,x=>{x.set("lowX0",d.x-g),x.set("lowY0",d.y-p),x.set("lowX1",u.x-g),x.set("lowY1",u.y-p),x.set("highX0",f.x-g),x.set("highY0",f.y-p),x.set("highX1",m.x-g),x.set("highY1",m.y-p),x.set("orientation",h)})}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),T(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity,d=e.lowX0,u=e.lowY0,f=e.lowX1,m=e.lowY1,g=e.highX0,p=e.highY0,_=e.highX1,x=e.highY1;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.moveTo(d,u),t.lineTo(f,m),t.moveTo(g,p),t.lineTo(_,x),t.endStroke(),t.endFill()})})}_processAxisRange(t){super._processAxisRange(t),t.columns=new H(z.new({}),()=>ut._new(this._root,{themeTags:Y(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template]))}};Tt.className="CandlestickSeries";Tt.classNames=wt.classNames.concat([Tt.className]);var At=class extends ut{_draw(){let t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if(this.get("orientation")=="vertical"){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}};At.className="OHLC";At.classNames=ut.classNames.concat([At.className]);var te=class extends Tt{constructor(){super(...arguments),this.columns=this.addDisposer(new H(z.new({themeTags:["autocolor"]}),()=>At._new(this._root,{themeTags:Y(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new H(z.new({}),()=>At._new(this._root,{themeTags:Y(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template]))}};te.className="OHLCSeries";te.classNames=Tt.classNames.concat([te.className]);var Z=class extends lt{constructor(){super(...arguments),this._strokeGenerator=ii(),this._fillGenerator=si(),this.strokes=this.addDisposer(new H(z.new({}),()=>E._new(this._root,{themeTags:Y(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))),this.fills=this.addDisposer(new H(z.new({}),()=>E._new(this._root,{themeTags:Y(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0(function(t){return t[3]}),this._fillGenerator.x0(function(t){return t[2]}),this._fillGenerator.y1(function(t){return t[1]}),this._fillGenerator.x1(function(t){return t[0]}),super._afterNew()}makeStroke(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){let i=this.get("stroke");this.strokes.template.set("stroke",i);let s=this._legendStroke;s&&s.states.lookup("default").set("stroke",i)}if(this.isDirty("fill")){let i=this.get("fill");this.fills.template.set("fill",i);let s=this._legendFill;s&&s.states.lookup("default").set("fill",i)}if(this.isDirty("fillPattern")){let i=this.get("fillPattern");this.fills.template.set("fillPattern",i);let s=this._legendFill;s&&s.states.lookup("default").set("fillPattern",i)}if(this.isDirty("curveFactory")){let i=this.get("curveFactory");i&&(this._strokeGenerator.curve(i),this._fillGenerator.curve(i))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){let i=this.dataItems;this.fills.each(c=>{c.setPrivate("visible",!1)}),this.strokes.each(c=>{c.setPrivate("visible",!1)}),this.axisRanges.each(c=>{let d=c.fills;d&&d.each(f=>{f.setPrivate("visible",!1)});let u=c.strokes;u&&u.each(f=>{f.setPrivate("visible",!1)})});let s=this.startIndex(),a=this.strokes.template.get("templateField"),o=this.fills.template.get("templateField"),r=!0,n=!0;a&&(r=!1),o&&(n=!1);for(let c=s-1;c>=0;c--){let d=i[c],u=!0,f=d.dataContext;a&&f[a]&&(r=!0),o&&f[o]&&(n=!0);for(let m=0,g=this._valueFields.length;m<g;m++)if(!v(d.get(this._valueFields[m]))){u=!1;break}if(u&&r&&n){s=c;break}}let l=i.length,h=this.endIndex();if(h<l){h++;for(let c=h;c<l;c++){let d=i[c],u=!0;for(let f=0,m=this._valueFields.length;f<m;f++)if(!v(d.get(this._valueFields[f]))){u=!1;break}if(u){h=c+1;break}}}if(s>0&&s--,this._endIndex=h,this._clearGraphics(),this._sindex=0,this._dindex=s,l==1)this._startSegment(0);else for(;this._dindex<h-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(t=>{t.fills.clear(),t.strokes.clear()})}_startSegment(t){let e=this.dataItems,i=this._endIndex,s=i,a=this.get("autoGapCount"),o=this.get("connect"),r=this.makeFill(this.fills),n=this._fillTemplate,l=this.fills.template;n&&n!=l&&(r.template=n),r.setPrivate("visible",!0);let h=this.makeStroke(this.strokes),c=this._strokeTemplate;c&&c!=this.strokes.template&&(h.template=c),h.setPrivate("visible",!0);let d=this.get("xAxis"),u=this.get("yAxis"),f=this.get("baseAxis"),m=this.get("vcx",1),g=this.get("vcy",1),p=this._xField,_=this._yField,x=this._xOpenField,y=this._yOpenField,b=this.get("openValueXField"),w=this.get("openValueYField");b||(x=this._xField),w||(y=this._yField);let M=this.get("stacked"),D=d.basePosition(),P=u.basePosition(),k;f===u?k=this._yField:k=this._xField;let I=[],C=[];I.push(C);let X=this.strokes.template.get("templateField"),S=this.fills.template.get("templateField"),tt=this.get("locationX",.5),V=this.get("locationY",.5),q=this.get("openLocationX",tt),F=this.get("openLocationY",V),N=this.get("minDistance",0),L,xt=this.fills.template.get("visible");this.axisRanges.length>0&&(xt=!0);let _t=!1;(M||b||w)&&(_t=!0);let it={points:C,segments:I,stacked:M,getOpen:_t,basePosX:D,basePosY:P,fillVisible:xt,xField:p,yField:_,xOpenField:x,yOpenField:y,vcx:m,vcy:g,baseAxis:f,xAxis:d,yAxis:u,locationX:tt,locationY:V,openLocationX:q,openLocationY:F,minDistance:N},Mt=this._strokeTemplate,st=this._fillTemplate;for(L=t;L<s;L++){this._dindex=L;let W=e[L],dt=W.get(p),yt=W.get(_);if(dt==null||yt==null?o||(C=[],I.push(C),it.points=C):this._getPoints(W,it),X){let O=W.dataContext[X];if(O)if(O instanceof z||(O=z.new(O)),this._strokeTemplate=O,L>t){s=L;break}else Mt=O,h.template=O}if(S){let O=W.dataContext[S];if(O)if(O instanceof z||(O=z.new(O)),this._fillTemplate=O,L>t){s=L;break}else st=O,r.template=O}if(!o){let O=e[L+1];O&&f.shouldGap(W,O,a,k)&&(C=[],I.push(C),it.points=C)}}r.setRaw("userData",[t,L]),h.setRaw("userData",[t,L]),L===i&&this._endLine(C,I[0][0]),h&&this._drawStroke(h,I),r&&this._drawFill(r,I),this.axisRanges.each(W=>{let dt=W.container,yt=W.fills,O=this.makeFill(yt);dt&&dt.children.push(O),O.setPrivate("visible",!0),this._drawFill(O,I);let di=W.strokes,oe=this.makeStroke(di);dt&&dt.children.push(oe),Mt&&Mt!=this.strokes.template&&(oe.template=Mt),st&&st!=this.fills.template&&(O.template=st),oe.setPrivate("visible",!0),this._drawStroke(oe,I),O.setRaw("userData",[t,L]),oe.setRaw("userData",[t,L])})}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY),o=this.get("exactLocationX",!1),r=this.get("exactLocationY",!1),n=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),l=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,r);if(this._shouldInclude(n)){let h=this.getPoint(n,l),c=[h.x,h.y];if(h.x+=this._x,h.y+=this._y,t.set("point",h),e.fillVisible){let d=n,u=l;if(e.baseAxis===e.xAxis?u=e.basePosY:e.baseAxis===e.yAxis&&(d=e.basePosX),e.getOpen){let m=t.get(e.xOpenField),g=t.get(e.yOpenField);if(m!=null&&g!=null){let p=t.get("openLocationX",e.openLocationX),_=t.get("openLocationY",e.openLocationY);if(e.stacked){let x=t.get("stackToItemX"),y=t.get("stackToItemY");x?(d=e.xAxis.getDataItemPositionX(x,e.xField,p,x.component.get("vcx"),o),at(d)&&(d=e.basePosX)):e.yAxis===e.baseAxis?d=e.basePosX:d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),y?(u=e.yAxis.getDataItemPositionY(y,e.yField,_,y.component.get("vcy"),r),at(u)&&(u=e.basePosY)):e.xAxis===e.baseAxis?u=e.basePosY:u=e.yAxis.getDataItemPositionY(t,e.yOpenField,_,e.vcy,r)}else d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),u=e.yAxis.getDataItemPositionY(t,e.yOpenField,_,e.vcy,r)}}let f=this.getPoint(d,u);c[2]=f.x,c[3]=f.y}if(e.minDistance>0){let d=c[0],u=c[1],f=c[2],m=c[3],g=this._previousPoint,p=g[0],_=g[1],x=g[2],y=g[3];(Math.hypot(d-p,u-_)>e.minDistance||f&&m&&Math.hypot(f-x,m-y)>e.minDistance)&&(i.push(c),this._previousPoint=c)}else i.push(c)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{T(e,s=>{this._strokeGenerator.context(i),this._strokeGenerator(s)})})}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{T(e,s=>{this._fillGenerator.context(i),this._fillGenerator(s)})})}_processAxisRange(t){super._processAxisRange(t),t.fills=new H(z.new({}),()=>E._new(this._root,{themeTags:Y(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template])),t.strokes=new H(z.new({}),()=>E._new(this._root,{themeTags:Y(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template]))}createLegendMarker(t){let e=this.get("legendDataItem");if(e){let i=e.get("marker"),s=e.get("markerRectangle");s&&s.setPrivate("visible",!1),i.set("background",pt.new(i._root,{fillOpacity:0,fill:je(0)}));let a=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=a;let o=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;let r=this._root.interfaceColors.get("disabled");if(a.states.create("disabled",{fill:r,stroke:r}),o.states.create("disabled",{fill:r,stroke:r}),this.bullets.length>0){let n=this.bullets.getIndex(0);if(n){let l=n(i._root,this,new K(this,{legend:!0},{}));if(l){let h=l.get("sprite");h instanceof E&&h.states.create("disabled",{fill:r,stroke:r}),h&&(h.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),i.children.push(h),h.setAll({x:i.width()/2,y:i.height()/2}),i.events.on("boundschanged",()=>{h.setAll({x:i.width()/2,y:i.height()/2})}))}}}}}};Z.className="LineSeries";Z.classNames=lt.classNames.concat([Z.className]);var Fe=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Le(this,this._t0,li(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Le(this,li(this,i=ri(this,t,e)),i);break;default:Le(this,this._t0,i=ri(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ge(A){function t(e){return new Fe(e,A)}return t.tension=function(e){return ge(+e)},t}function ni(A){return A<0?-1:1}function ri(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(ni(a)+ni(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function li(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Le(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(s+r*t,i+r,o-r*e,a-r,o,a)}var ee=class extends Z{_afterNew(){this._setDefault("curveFactory",ge(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",ge(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ee.className="SmoothedYLineSeries";ee.classNames=Z.classNames.concat([ee.className]);var Re=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ne(this,this._t0,ui(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ne(this,ui(this,i=ci(this,t,e)),i);break;default:Ne(this,this._t0,i=ci(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ve(A){function t(e){return new Re(e,A)}return t}function hi(A){return A<0?-1:1}function ci(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(hi(a)+hi(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function ui(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Ne(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(i+r,s+r*t,a-r,o-r*e,a,o)}var ie=class extends Z{_afterNew(){this._setDefault("curveFactory",Ve(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",Ve(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ie.className="SmoothedXLineSeries";ie.classNames=Z.classNames.concat([ie.className]);var se=class extends Z{_afterNew(){this._setDefault("curveFactory",ke.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",ke.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};se.className="SmoothedXYLineSeries";se.classNames=Z.classNames.concat([se.className]);var ae=class extends Z{_afterNew(){this._setDefault("curveFactory",ai),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",$).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),r=a,n=o;e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s);let l=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),h=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),c=e.xAxis.getDataItemPositionX(t,e.xField,r,e.vcx),d=e.yAxis.getDataItemPositionY(t,e.yField,n,e.vcy);if(this._shouldInclude(l)){let u=this.getPoint(l,h),f=[u.x,u.y],m=this.getPoint(c,d),g=[m.x,m.y];if(e.fillVisible){let p=l,_=h,x=c,y=d;if(e.baseAxis===e.xAxis?(_=e.basePosY,y=e.basePosY):e.baseAxis===e.yAxis&&(p=e.basePosX,x=e.basePosX),e.getOpen){let M=t.get(e.xOpenField),D=t.get(e.yOpenField);if(M!=null&&D!=null)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),r=a,n=o,e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s),e.stacked){let P=t.get("stackToItemX"),k=t.get("stackToItemY");P?(p=e.xAxis.getDataItemPositionX(P,e.xField,a,P.component.get("vcx")),x=e.xAxis.getDataItemPositionX(P,e.xField,r,P.component.get("vcx"))):e.yAxis===e.baseAxis?(p=e.basePosX,x=e.basePosX):e.baseAxis===e.yAxis&&(p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),x=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx)),k?(_=e.yAxis.getDataItemPositionY(k,e.yField,o,k.component.get("vcy")),y=e.yAxis.getDataItemPositionY(k,e.yField,n,k.component.get("vcy"))):e.xAxis===e.baseAxis?(_=e.basePosY,y=e.basePosY):e.baseAxis===e.yAxis&&(_=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),y=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy))}else p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),x=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx),y=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy)}let b=this.getPoint(p,_),w=this.getPoint(x,y);f[2]=b.x,f[3]=b.y,g[2]=w.x,g[3]=w.y}i.push(f),i.push(g),t.set("point",{x:f[0]+(g[0]-f[0])/2,y:f[1]+(g[1]-f[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}};ae.className="StepLineSeries";ae.classNames=Z.classNames.concat([ae.className]);export{ht as Axis,Zt as AxisBullet,St as AxisLabel,qt as AxisLabelRadial,ct as AxisRenderer,Jt as AxisRendererX,Qt as AxisRendererY,Xt as AxisTick,bt as BaseColumnSeries,ut as Candlestick,Tt as CandlestickSeries,Dt as CategoryAxis,Wt as CategoryDateAxis,wt as ColumnSeries,Pt as DateAxis,le as DefaultTheme,jt as DurationAxis,Kt as EditableAxisLabel,Ht as GaplessDateAxis,gt as Grid,Z as LineSeries,At as OHLC,te as OHLCSeries,ie as SmoothedXLineSeries,se as SmoothedXYLineSeries,ee as SmoothedYLineSeries,ae as StepLineSeries,et as ValueAxis,$t as XYChart,zt as XYChartScrollbar,Bt as XYCursor,lt as XYSeries};