vue-data-ui 3.17.13 → 3.18.1

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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -0,0 +1,4114 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
3
+ import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
4
+ import { t as je } from "./useConfig-BV0kTCnO.js";
5
+ import { t as Me } from "./usePrinter-X0yWOynH.js";
6
+ import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
7
+ import { t as Fe } from "./useSvgExport-Dtu973wa.js";
8
+ import { t as Ie } from "./useNestedProp-Ck4hsrpu.js";
9
+ import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
10
+ import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
11
+ import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
12
+ import { t as Be } from "./img-BjOr008R.js";
13
+ import { n as Ve } from "./Title-__gWq2g6.js";
14
+ import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
15
+ import { t as Ue } from "./Shape-DEGOZ6GG.js";
16
+ import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
+ import { t as Ge } from "./SlicerPreview-BPS8mYO2.js";
18
+ import { t as Ke } from "./vue-ui-accordion-cVv18nTV.js";
19
+ import { t as qe } from "./BaseLegendToggle-DUIqQmwM.js";
20
+ import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
21
+ import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as E, normalizeStyle as D, onBeforeUnmount as at, onMounted as ot, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as st, shallowRef as ct, toDisplayString as lt, toRefs as ut, unref as M, useSlots as dt, vModelCheckbox as ft, watch as pt, watchEffect as mt, withCtx as N, withDirectives as ht } from "vue";
22
+ //#region src/components/vue-ui-xy.vue
23
+ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt = ["id"], bt = { style: { position: "relative" } }, xt = [
24
+ "viewBox",
25
+ "aria-label",
26
+ "aria-describedby"
27
+ ], St = [
28
+ "x",
29
+ "y",
30
+ "width",
31
+ "height"
32
+ ], Ct = { key: 1 }, wt = { class: "vue-ui-xy-grid" }, Tt = [
33
+ "stroke",
34
+ "x1",
35
+ "x2",
36
+ "y1",
37
+ "y2"
38
+ ], Et = [
39
+ "stroke",
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2"
44
+ ], Dt = { key: 1 }, Ot = [
45
+ "x1",
46
+ "x2",
47
+ "y1",
48
+ "y2",
49
+ "stroke"
50
+ ], kt = [
51
+ "x1",
52
+ "x2",
53
+ "y1",
54
+ "y2",
55
+ "stroke"
56
+ ], At = [
57
+ "x1",
58
+ "x2",
59
+ "y1",
60
+ "y2",
61
+ "stroke"
62
+ ], jt = { key: 3 }, Mt = ["d", "stroke"], Nt = { key: 4 }, Pt = ["d", "stroke"], Ft = ["id"], It = ["stop-color"], Lt = ["stop-color"], Rt = ["stop-color"], zt = ["id"], Bt = ["stop-color"], Vt = ["stop-color"], Ht = ["stop-color"], Ut = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Kt = ["id"], qt = ["stop-color"], Jt = ["stop-color"], Yt = ["id"], Xt = ["stop-color"], Zt = ["stop-color"], Qt = { key: 0 }, $t = ["id"], en = ["stop-color", "offset"], tn = [
63
+ "x",
64
+ "y",
65
+ "height",
66
+ "width",
67
+ "fill"
68
+ ], nn = [
69
+ "x",
70
+ "y",
71
+ "width"
72
+ ], rn = { key: 0 }, an = [
73
+ "x",
74
+ "y",
75
+ "height",
76
+ "width",
77
+ "fill"
78
+ ], on = [
79
+ "x",
80
+ "y",
81
+ "height",
82
+ "width",
83
+ "rx",
84
+ "fill",
85
+ "stroke",
86
+ "stroke-width"
87
+ ], sn = [
88
+ "x",
89
+ "y",
90
+ "height",
91
+ "width",
92
+ "rx",
93
+ "fill",
94
+ "stroke",
95
+ "stroke-width"
96
+ ], cn = [
97
+ "width",
98
+ "x",
99
+ "y"
100
+ ], ln = [
101
+ "stroke",
102
+ "x1",
103
+ "x2",
104
+ "y1",
105
+ "y2"
106
+ ], un = { key: 3 }, dn = [
107
+ "x1",
108
+ "x2",
109
+ "y1",
110
+ "y2",
111
+ "stroke",
112
+ "stroke-width",
113
+ "stroke-dasharray"
114
+ ], fn = [
115
+ "x",
116
+ "y",
117
+ "width",
118
+ "height",
119
+ "stroke",
120
+ "stroke-width",
121
+ "stroke-linecap",
122
+ "stroke-linejoin",
123
+ "stroke-dasharray"
124
+ ], pn = [
125
+ "x1",
126
+ "x2",
127
+ "y1",
128
+ "y2",
129
+ "stroke",
130
+ "stroke-width"
131
+ ], mn = [
132
+ "fill",
133
+ "font-size",
134
+ "transform"
135
+ ], hn = [
136
+ "x1",
137
+ "x2",
138
+ "y1",
139
+ "y2",
140
+ "stroke"
141
+ ], gn = [
142
+ "x",
143
+ "y",
144
+ "font-size",
145
+ "fill"
146
+ ], _n = [
147
+ "x1",
148
+ "x2",
149
+ "y1",
150
+ "y2",
151
+ "stroke"
152
+ ], vn = [
153
+ "x",
154
+ "y",
155
+ "font-size",
156
+ "fill"
157
+ ], yn = [
158
+ "width",
159
+ "x",
160
+ "y"
161
+ ], bn = { style: { width: "100%" } }, xn = [
162
+ "d",
163
+ "stroke",
164
+ "stroke-width",
165
+ "stroke-dasharray"
166
+ ], Sn = [
167
+ "d",
168
+ "stroke",
169
+ "stroke-width",
170
+ "stroke-dasharray"
171
+ ], Cn = { key: 6 }, wn = { key: 7 }, Tn = [
172
+ "d",
173
+ "fill",
174
+ "fill-opacity"
175
+ ], En = { key: 0 }, Dn = ["d", "fill"], On = ["d", "fill"], kn = ["d", "fill"], An = ["d", "fill"], jn = [
176
+ "d",
177
+ "stroke",
178
+ "stroke-width",
179
+ "stroke-dasharray"
180
+ ], Mn = [
181
+ "d",
182
+ "stroke",
183
+ "stroke-width",
184
+ "stroke-dasharray"
185
+ ], Nn = [
186
+ "d",
187
+ "stroke",
188
+ "stroke-width",
189
+ "stroke-dasharray"
190
+ ], Pn = [
191
+ "d",
192
+ "stroke",
193
+ "stroke-width",
194
+ "stroke-dasharray"
195
+ ], Fn = [
196
+ "width",
197
+ "x",
198
+ "y"
199
+ ], In = { style: { width: "100%" } }, Ln = { key: 8 }, Rn = [
200
+ "text-anchor",
201
+ "font-size",
202
+ "transform",
203
+ "fill",
204
+ "stroke",
205
+ "innerHTML"
206
+ ], zn = [
207
+ "x",
208
+ "y",
209
+ "font-size",
210
+ "fill",
211
+ "font-weight"
212
+ ], Bn = { key: 9 }, Vn = [
213
+ "transform",
214
+ "text-anchor",
215
+ "font-size",
216
+ "fill",
217
+ "stroke",
218
+ "innerHTML"
219
+ ], Hn = { key: 10 }, Un = ["x", "y"], Wn = ["innerHTML"], Gn = ["x", "y"], Kn = ["innerHTML"], qn = [
220
+ "x1",
221
+ "x2",
222
+ "y1",
223
+ "y2",
224
+ "stroke"
225
+ ], Jn = { key: 11 }, Yn = [
226
+ "transform",
227
+ "text-anchor",
228
+ "font-size",
229
+ "fill",
230
+ "stroke",
231
+ "innerHTML"
232
+ ], Xn = { key: 12 }, Zn = ["x", "y"], Qn = ["innerHTML"], $n = ["x", "y"], er = ["innerHTML"], tr = [
233
+ "x1",
234
+ "x2",
235
+ "y1",
236
+ "y2",
237
+ "stroke"
238
+ ], nr = [
239
+ "x",
240
+ "y",
241
+ "font-size",
242
+ "fill",
243
+ "innerHTML"
244
+ ], rr = [
245
+ "x",
246
+ "y",
247
+ "font-size",
248
+ "fill",
249
+ "innerHTML"
250
+ ], ir = [
251
+ "x",
252
+ "y",
253
+ "font-size",
254
+ "fill",
255
+ "innerHTML"
256
+ ], ar = [
257
+ "x",
258
+ "y",
259
+ "font-size",
260
+ "fill",
261
+ "innerHTML"
262
+ ], or = { key: 0 }, sr = ["id"], cr = ["fill", "stroke"], lr = [
263
+ "x1",
264
+ "x2",
265
+ "y1",
266
+ "y2",
267
+ "stroke",
268
+ "marker-end"
269
+ ], ur = [
270
+ "x1",
271
+ "x2",
272
+ "y1",
273
+ "y2",
274
+ "stroke",
275
+ "marker-end"
276
+ ], dr = [
277
+ "x",
278
+ "y",
279
+ "font-size",
280
+ "fill",
281
+ "stroke"
282
+ ], fr = ["id"], pr = ["stop-color"], mr = ["stop-color"], hr = [
283
+ "x",
284
+ "y",
285
+ "width",
286
+ "height",
287
+ "fill",
288
+ "onMouseenter"
289
+ ], gr = [
290
+ "font-size",
291
+ "fill",
292
+ "transform"
293
+ ], _r = [
294
+ "x",
295
+ "y",
296
+ "font-size",
297
+ "fill"
298
+ ], vr = [
299
+ "text-anchor",
300
+ "font-size",
301
+ "fill",
302
+ "transform",
303
+ "onClick"
304
+ ], yr = [
305
+ "text-anchor",
306
+ "font-size",
307
+ "fill",
308
+ "transform",
309
+ "innerHTML",
310
+ "onClick"
311
+ ], br = { key: 15 }, xr = [
312
+ "x1",
313
+ "y1",
314
+ "x2",
315
+ "y2",
316
+ "stroke",
317
+ "stroke-width",
318
+ "stroke-dasharray"
319
+ ], Sr = [
320
+ "x1",
321
+ "y1",
322
+ "x2",
323
+ "y2",
324
+ "stroke",
325
+ "stroke-width",
326
+ "stroke-dasharray"
327
+ ], Cr = [
328
+ "y",
329
+ "x",
330
+ "width",
331
+ "height",
332
+ "fill"
333
+ ], wr = [
334
+ "id",
335
+ "x",
336
+ "y",
337
+ "font-size",
338
+ "fill",
339
+ "text-anchor"
340
+ ], Tr = {
341
+ key: 16,
342
+ style: { "pointer-events": "none" }
343
+ }, Er = ["x", "y"], Dr = ["innerHTML"], Or = [
344
+ "cx",
345
+ "cy",
346
+ "r",
347
+ "fill"
348
+ ], kr = ["data-start", "data-end"], Ar = {
349
+ key: 0,
350
+ style: {
351
+ position: "absolute",
352
+ top: "100%",
353
+ left: "0",
354
+ width: "100%"
355
+ },
356
+ "data-dom-to-png-ignore": "",
357
+ "aria-hidden": "true"
358
+ }, jr = {
359
+ key: 5,
360
+ class: "vue-data-ui-watermark"
361
+ }, Mr = {
362
+ class: "vue-ui-xy-tag-arrow",
363
+ height: "20",
364
+ viewBox: "0 0 10 20",
365
+ style: {
366
+ position: "absolute",
367
+ right: "100%",
368
+ top: "50%",
369
+ transform: "translateY(-50%)"
370
+ }
371
+ }, Nr = ["fill"], Pr = ["innerHTML"], Fr = {
372
+ class: "vue-ui-xy-tag-arrow",
373
+ height: "100%",
374
+ viewBox: "0 0 10 20",
375
+ style: {
376
+ position: "absolute",
377
+ left: "100%",
378
+ top: "50%",
379
+ transform: "translateY(-50%)"
380
+ }
381
+ }, Ir = ["fill"], Lr = ["innerHTML"], Rr = {
382
+ class: "vue-ui-xy-tag-arrow",
383
+ height: "20",
384
+ viewBox: "0 0 10 20",
385
+ style: {
386
+ position: "absolute",
387
+ right: "100%",
388
+ top: "50%",
389
+ transform: "translateY(-50%)"
390
+ }
391
+ }, zr = ["fill"], Br = ["innerHTML"], Vr = {
392
+ class: "vue-ui-xy-tag-arrow",
393
+ height: "100%",
394
+ viewBox: "0 0 10 20",
395
+ style: {
396
+ position: "absolute",
397
+ left: "100%",
398
+ top: "50%",
399
+ transform: "translateY(-50%)"
400
+ }
401
+ }, Hr = ["fill"], Ur = ["innerHTML"], Wr = ["id"], Gr = ["onClick", "onKeydown"], Kr = {
402
+ key: 0,
403
+ viewBox: "0 0 20 12",
404
+ height: "1em",
405
+ width: "1.43em",
406
+ "aria-hidden": "true"
407
+ }, qr = ["stroke", "fill"], Jr = {
408
+ key: 1,
409
+ viewBox: "0 0 40 40",
410
+ height: "1em",
411
+ width: "1em",
412
+ "aria-hidden": "true"
413
+ }, Yr = ["fill"], Xr = ["fill"], Zr = {
414
+ key: 2,
415
+ viewBox: "0 0 12 12",
416
+ height: "1em",
417
+ width: "1em",
418
+ "aria-hidden": "true"
419
+ }, Qr = {
420
+ style: {
421
+ display: "flex",
422
+ "flex-direction": "row",
423
+ gap: "6px",
424
+ "align-items": "center",
425
+ "padding-left": "6px"
426
+ },
427
+ "data-dom-to-png-ignore": ""
428
+ }, $r = ["innerHTML"], P = /* @__PURE__ */ We({
429
+ __name: "vue-ui-xy",
430
+ props: {
431
+ config: {
432
+ type: Object,
433
+ default() {
434
+ return {};
435
+ }
436
+ },
437
+ dataset: {
438
+ type: Array,
439
+ default() {
440
+ return [];
441
+ }
442
+ },
443
+ selectedXIndex: {
444
+ type: Number,
445
+ default: void 0
446
+ }
447
+ },
448
+ emits: [
449
+ "selectTimeLabel",
450
+ "selectX",
451
+ "selectLegend",
452
+ "zoomStart",
453
+ "zoomEnd",
454
+ "zoomReset",
455
+ "copyAlt"
456
+ ],
457
+ setup(e, { expose: We, emit: gt }) {
458
+ let P = e, ei = et(() => import("./DataTable-BvDJEAma.js")), ti = et(() => import("./Tooltip-B7lmdbac.js")), ni = et(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), ri = et(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), ii = et(() => import("./vue-ui-table-sparkline-BEWWP4Rq.js").then((e) => e.n)), ai = et(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), oi = et(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), si = et(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), ci = gt, li = dt(), ui = tt(), { vue_ui_xy: di } = je(), { isThemeValid: fi, warnInvalidTheme: pi } = Le(), mi = k(null), hi = k(null), gi = k(null), _i = k(null), vi = k(null), yi = k(null), bi = k(null), xi = k(null), Si = k(null), Ci = k(null), wi = k(null), Ti = k(null), Ei = k(null), Di = k(null), Oi = k(0), F = k(null), ki = k(!0), Ai = k(600), I = k(1e3), ji = k("0 0 1000 600"), Mi = k({
459
+ x: 0,
460
+ y: 0
461
+ }), Ni = k({
462
+ line: "line",
463
+ bar: "bar",
464
+ plot: "plot"
465
+ }), Pi = k(!1), Fi = k(!1), Ii = k(!1), Li = k(null), L = k([]), R = k(o()), Ri = k(0), zi = k(0), Bi = k(0), Vi = k(!0), Hi = k(0), z = k(null), Ui = k(!1), Wi = k(!0), Gi = k(!0), B = k(null), Ki = k({}), qi = k(null), Ji = k(!1), Yi = k(null), Xi = k(!1), Zi = k(!1), V = k(null), Qi = k(null), $i = k({
466
+ x: 0,
467
+ y: 0
468
+ }), ea = ct(null), ta = k(!1), na = k(0), ra = k(0), ia = Re({
469
+ elementRef: ea,
470
+ minimumWidth: 2,
471
+ minimumHeight: 2,
472
+ stableFramesRequired: 2,
473
+ once: !1,
474
+ onSizeAccepted: () => {
475
+ sa();
476
+ }
477
+ });
478
+ function aa() {
479
+ ea.value = mi.value?.parentNode ?? null;
480
+ }
481
+ function oa() {
482
+ return new Promise((e) => {
483
+ requestAnimationFrame(() => {
484
+ requestAnimationFrame(e);
485
+ });
486
+ });
487
+ }
488
+ async function sa() {
489
+ let e = ++ra.value;
490
+ ta.value = !1, await rt(), await oa(), await oa(), e === ra.value && (na.value += 1, ta.value = !0);
491
+ }
492
+ let ca = x(() => ({
493
+ height: Ai.value,
494
+ width: I.value
495
+ }));
496
+ function la(e) {
497
+ return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
498
+ }
499
+ function ua(e, t, n = 0) {
500
+ return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
501
+ }
502
+ let da = k(!1), H = k({
503
+ xAxis: 18,
504
+ yAxis: 12,
505
+ dataLabels: 20,
506
+ plotLabels: 10
507
+ }), fa = k({
508
+ plot: 3,
509
+ line: 3
510
+ });
511
+ ot(() => {
512
+ Ji.value = !0, P.dataset.length && P.dataset.forEach((e, t) => {
513
+ [null, void 0].includes(e.series) && se({
514
+ componentName: "VueUiXy",
515
+ type: "datasetSerieAttribute",
516
+ property: "series (number[])",
517
+ index: t,
518
+ debug: va.value
519
+ });
520
+ }), aa(), ia.start(), sa();
521
+ });
522
+ function pa() {
523
+ if (!Object.keys(P.config || {}).length) return di;
524
+ let e = Ie({
525
+ userConfig: P.config,
526
+ defaultConfig: di
527
+ });
528
+ P.config && _(P.config, "chart.highlightArea") && (Array.isArray(P.config.chart.highlightArea) ? e.chart.highlightArea = P.config.chart.highlightArea : e.chart.highlightArea = [P.config.chart.highlightArea]), P.config && _(P.config, "chart.annotations") && Array.isArray(P.config.chart.annotations) && P.config.chart.annotations.length ? e.chart.annotations = P.config.chart.annotations.map((e) => Ie({
529
+ defaultConfig: di.chart.annotations[0],
530
+ userConfig: e
531
+ })) : e.chart.annotations = [], P.config && _(P.config, "chart.grid.position") && P.config.chart.grid.position === "start" && P.dataset.length && P.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _(P.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), P.config && _(P.config, "chart.highlightArea") && (Array.isArray(P.config.chart.highlightArea) ? e.chart.highlightArea = P.config.chart.highlightArea.map((e) => ma({
532
+ defaultConfig: di.chart.highlightArea,
533
+ userConfig: e
534
+ })) : e.chart.highlightArea = ma({
535
+ defaultConfig: di.chart.highlightArea,
536
+ userConfig: P.config.chart.highlightArea
537
+ }));
538
+ let t = e.theme;
539
+ if (!t) return e;
540
+ if (!fi.value(e)) return pi(e), e;
541
+ let n = Ie({
542
+ userConfig: He[t] || P.config,
543
+ defaultConfig: e
544
+ }), r = Ie({
545
+ userConfig: P.config,
546
+ defaultConfig: n
547
+ });
548
+ return {
549
+ ...r,
550
+ customPalette: r.customPalette.length ? r.customPalette : ee[t] || h
551
+ };
552
+ }
553
+ function ma({ defaultConfig: e, userConfig: t }) {
554
+ return Ie({
555
+ defaultConfig: e,
556
+ userConfig: t
557
+ });
558
+ }
559
+ let ha = x({
560
+ get() {
561
+ return !!P.dataset && P.dataset.length;
562
+ },
563
+ set(e) {
564
+ return e;
565
+ }
566
+ }), U = k(pa()), ga = x(() => U.value.chart.userOptions.useCursorPointer), W = k({
567
+ dataLabels: { show: !0 },
568
+ showTooltip: !0,
569
+ showTable: !1,
570
+ isStacked: !1,
571
+ useIndividualScale: !1
572
+ });
573
+ function _a() {
574
+ da.value ? (W.value.showTooltip = U.value.chart.tooltip.show === !0, W.value.isStacked = U.value.chart.grid.labels.yAxis.stacked, W.value.useIndividualScale ?? (W.value.useIndividualScale = U.value.chart.grid.labels.yAxis.useIndividualScale)) : (W.value = {
575
+ dataLabels: { show: !0 },
576
+ showTooltip: U.value.chart.tooltip.show === !0,
577
+ showTable: U.value.showTable === !0,
578
+ isStacked: U.value.chart.grid.labels.yAxis.stacked,
579
+ useIndividualScale: U.value.chart.grid.labels.yAxis.useIndividualScale
580
+ }, da.value = !0);
581
+ }
582
+ let va = x(() => !!U.value.debug), ya = x(() => De({
583
+ defaultConfig: {
584
+ useCssAnimation: !1,
585
+ showTable: !1,
586
+ chart: {
587
+ annotations: [],
588
+ highlightArea: [],
589
+ backgroundColor: "#99999930",
590
+ grid: {
591
+ stroke: "#6A6A6A",
592
+ labels: {
593
+ show: !1,
594
+ axis: {
595
+ yLabel: "",
596
+ xLabel: ""
597
+ },
598
+ xAxisLabels: { show: !1 },
599
+ yAxis: {
600
+ commonScaleSteps: 10,
601
+ useNiceScale: !0,
602
+ scaleMin: 0,
603
+ scaleMax: 134
604
+ },
605
+ zeroLine: { show: !0 }
606
+ }
607
+ },
608
+ padding: {
609
+ top: 12,
610
+ bottom: 24,
611
+ left: 24,
612
+ right: 24
613
+ },
614
+ userOptions: { show: !1 },
615
+ zoom: {
616
+ show: !1,
617
+ startIndex: null,
618
+ endIndex: null
619
+ }
620
+ },
621
+ bar: {
622
+ serieName: { show: !1 },
623
+ labels: { show: !1 },
624
+ border: {
625
+ useSerieColor: !1,
626
+ stroke: "#999999"
627
+ }
628
+ },
629
+ line: {
630
+ dot: {
631
+ useSerieColor: !1,
632
+ fill: "#8A8A8A"
633
+ },
634
+ labels: { show: !1 }
635
+ }
636
+ },
637
+ userConfig: U.value.skeletonConfig ?? {}
638
+ })), ba = x(() => P.config?.skeletonDataset ?? [{
639
+ name: "",
640
+ series: [
641
+ 0,
642
+ 1,
643
+ 2,
644
+ 3,
645
+ 5,
646
+ 8,
647
+ 13,
648
+ 21,
649
+ 34,
650
+ 55,
651
+ 89,
652
+ 134
653
+ ],
654
+ type: "line",
655
+ smooth: !0,
656
+ color: "#BABABA"
657
+ }, {
658
+ name: "",
659
+ series: [
660
+ 0,
661
+ .5,
662
+ 1,
663
+ 1.5,
664
+ 2.5,
665
+ 4,
666
+ 6.5,
667
+ 10.5,
668
+ 17,
669
+ 27.5,
670
+ 44.5,
671
+ 67
672
+ ],
673
+ type: "bar",
674
+ color: "#CACACA"
675
+ }]), { loading: G, FINAL_DATASET: xa, manualLoading: Sa } = Ne({
676
+ ...ut(P),
677
+ FINAL_CONFIG: U,
678
+ prepareConfig: pa,
679
+ callback: () => {
680
+ Promise.resolve().then(async () => {
681
+ await jo(), W.value.showTable = U.value.showTable;
682
+ });
683
+ },
684
+ skeletonDataset: ba.value,
685
+ skeletonConfig: De({
686
+ defaultConfig: U.value,
687
+ userConfig: ya.value
688
+ })
689
+ });
690
+ function Ca(e) {
691
+ let t = /* @__PURE__ */ new WeakMap();
692
+ return (n, ...r) => {
693
+ let i = t.get(n), a = JSON.stringify(r);
694
+ if (i && i.has(a)) return i.get(a);
695
+ let o = e(n, ...r);
696
+ return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
697
+ };
698
+ }
699
+ let wa = Ca((e, t) => ce({
700
+ data: e,
701
+ threshold: t
702
+ })), Ta = (e) => wa(e, U.value.downsample.threshold), Ea = x({
703
+ get: () => Math.max(...xa.value.map((e) => Ta(e.series).length)),
704
+ set: (e) => e
705
+ }), K = k({
706
+ start: 0,
707
+ end: Ea.value
708
+ }), Da = k({
709
+ start: 0,
710
+ end: Ea.value
711
+ }), Oa = x(() => U.value.chart.zoom.preview.enable && (Da.value.start !== K.value.start || Da.value.end !== K.value.end));
712
+ function ka(e, t) {
713
+ Da.value[e] = t;
714
+ }
715
+ function Aa() {
716
+ let e = Math.max(1, ...xa.value.map((e) => Ta(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
717
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
718
+ start: t,
719
+ end: n
720
+ }, Da.value.start = t, Da.value.end = n, gi.value && (gi.value.setStartValue(t), gi.value.setEndValue(n));
721
+ }
722
+ let ja = x(() => {
723
+ let { left: e, top: t, width: n, height: r } = q.value, i = K.value.start, a = K.value.end - i, o = n / a, s = Da.value.start - i, c = Da.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
724
+ return {
725
+ x: e + l * o,
726
+ y: t,
727
+ width: (u - l) * o,
728
+ height: r,
729
+ fill: U.value.chart.zoom.preview.fill,
730
+ stroke: U.value.chart.zoom.preview.stroke,
731
+ "stroke-width": U.value.chart.zoom.preview.strokeWidth,
732
+ "stroke-dasharray": U.value.chart.zoom.preview.strokeDasharray,
733
+ "stroke-linecap": "round",
734
+ "stroke-linejoin": "round",
735
+ style: {
736
+ pointerEvents: "none",
737
+ transition: "none !important",
738
+ animation: "none !important"
739
+ }
740
+ };
741
+ });
742
+ pt(() => P.selectedXIndex, (e) => {
743
+ if ([null, void 0].includes(P.selectedXIndex)) {
744
+ V.value = null;
745
+ return;
746
+ }
747
+ let t = e - K.value.start;
748
+ t < 0 || e >= K.value.end ? V.value = null : V.value = t ?? null;
749
+ }, { immediate: !0 });
750
+ let { isPrinting: Ma, isImaging: Na, generatePdf: Pa, generateImage: Fa } = Me({
751
+ elementId: `vue-ui-xy_${R.value}`,
752
+ fileName: U.value.chart.title.text || "vue-ui-xy",
753
+ options: U.value.chart.userOptions.print
754
+ }), Ia = k(!1), La = x(() => we(U.value.customPalette)), Ra = x(() => {
755
+ let e = U.value.chart.grid.labels.yAxis.scaleMin;
756
+ if (e == null) return null;
757
+ let t = Number(e);
758
+ return Number.isFinite(t) ? t : null;
759
+ }), za = x(() => Ra.value === null ? zo.value : q.value.bottom), Ba = x(() => {
760
+ let e = U.value.chart.grid.labels.yAxis.scaleMax;
761
+ if (e == null) return null;
762
+ let t = Number(e);
763
+ return Number.isFinite(t) ? t : null;
764
+ }), Va = x(() => Ra.value !== null || Ba.value !== null), Ha = x(() => {
765
+ let e = Ja.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
766
+ return e.length ? {
767
+ min: Math.min(...e),
768
+ max: Math.max(...e)
769
+ } : {
770
+ min: 0,
771
+ max: 1
772
+ };
773
+ });
774
+ function Ua(e, t) {
775
+ let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
776
+ return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
777
+ min: n,
778
+ max: r
779
+ };
780
+ }
781
+ let Wa = x(() => {
782
+ let { min: e, max: t } = Ha.value;
783
+ if (!Va.value) {
784
+ let t = e;
785
+ return t > 0 ? 0 : t;
786
+ }
787
+ let n = Ra.value === null ? e > 0 ? 0 : e : Ra.value, r = Ba.value === null ? t : Ba.value;
788
+ return Ua(e < n ? e : n, t > r ? t : r).min;
789
+ }), Ga = x(() => {
790
+ let { min: e, max: t } = Ha.value;
791
+ if (!Va.value) {
792
+ let e = t;
793
+ return Wa.value === e ? e + 1 : e;
794
+ }
795
+ let n = Ra.value === null ? e > 0 ? 0 : e : Ra.value, r = Ba.value === null ? t : Ba.value;
796
+ return Ua(e < n ? e : n, t > r ? t : r).max;
797
+ }), Ka = x(() => U.value.chart.grid.labels.yAxis.useNiceScale ? de(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps)), qa = x(() => [null, void 0].includes(U.value.chart.grid.labels.yAxis.scaleMin) ? Ka.value.min >= 0 ? 0 : Math.abs(Ka.value.min) : -Ka.value.min), Ja = x(() => ki.value ? xa.value.map((e, t) => {
798
+ let n = Ta(e.series), r = `uniqueId_${t}`;
799
+ return {
800
+ ...e,
801
+ slotAbsoluteIndex: t,
802
+ series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
803
+ color: Te(e.color ? e.color : La.value[t] ? La.value[t] : h[t]),
804
+ id: r,
805
+ scaleLabel: e.scaleLabel || r
806
+ };
807
+ }) : xa.value), Ya = x(() => Ja.value.map((e, t) => ({
808
+ absoluteIndex: t,
809
+ ...e,
810
+ series: e.series.map((e) => e + qa.value),
811
+ absoluteValues: e.series,
812
+ segregate: () => rs(e),
813
+ isSegregated: L.value.includes(e.id)
814
+ }))), Xa = x(() => Ja.value.map((e, t) => ({
815
+ ...e,
816
+ series: e.series.map((e) => e + qa.value),
817
+ absoluteValues: e.series
818
+ })).filter((e) => !L.value.includes(e.id))), Za = x(() => L.value.length === Ya.value.length);
819
+ function Qa() {
820
+ let e = 0;
821
+ wi.value && (e = Array.from(wi.value.querySelectorAll("text")).reduce((e, t) => {
822
+ let n = t.getComputedTextLength();
823
+ return (n > e ? n : e) + U.value.chart.grid.labels.yAxis.scaleValueOffsetX;
824
+ }, 0));
825
+ let t = Si.value ? Si.value.getBoundingClientRect().width + U.value.chart.grid.labels.axis.yLabelOffsetX + H.value.yAxis : 0, n = U.value.chart.grid.labels.yAxis.crosshairSize;
826
+ return e + t + n;
827
+ }
828
+ let $a = k(0), eo = k(0);
829
+ function to() {
830
+ let e = Ci.value;
831
+ if (!e) {
832
+ $a.value = 0, eo.value = 0;
833
+ return;
834
+ }
835
+ try {
836
+ let t = e.getBBox();
837
+ $a.value = t?.height ?? 0, eo.value = t?.x ?? 0;
838
+ } catch {
839
+ $a.value = 0, eo.value = 0;
840
+ }
841
+ }
842
+ let no = x(() => {
843
+ let e = 0;
844
+ if (xi.value) try {
845
+ e = xi.value.getBBox().height || 0;
846
+ } catch {
847
+ e = 0;
848
+ }
849
+ return e + $a.value + H.value.xAxis;
850
+ }), ro = x(() => xa.value.some((e) => e.useProgression)), q = x(() => {
851
+ na.value;
852
+ let e = 0;
853
+ U.value.chart.grid.labels.show && (e = W.value.useIndividualScale && !W.value.isStacked ? (xa.value.length - L.value.length) * (U.value.chart.grid.labels.yAxis.labelWidth + 36) : W.value.useIndividualScale && W.value.isStacked ? U.value.chart.grid.labels.yAxis.labelWidth + 36 : Qa());
854
+ let t = U.value.chart.labels.fontSize * 1.1, n = ro.value ? 24 : 6;
855
+ Ci.value && eo.value < 0 && (e += Math.abs(eo.value));
856
+ let r = I.value - e - U.value.chart.grid.labels.yAxis.crosshairSize - n - U.value.chart.padding?.left - U.value.chart.padding?.right, i = U.value.chart.grid.position === "middle" ? 0 : r / Y.value / 2;
857
+ return {
858
+ top: U.value.chart.padding?.top + t,
859
+ right: I.value - n - U.value.chart.padding?.right,
860
+ bottom: Ai.value - no.value - U.value.chart.padding?.bottom - U.value.chart.grid.labels.axis.xLabelOffsetY,
861
+ left: e + U.value.chart.grid.labels.yAxis.crosshairSize - i + U.value.chart.padding?.left,
862
+ height: Ai.value - no.value - U.value.chart.padding?.top - U.value.chart.padding?.bottom - t - U.value.chart.grid.labels.axis.xLabelOffsetY,
863
+ width: r,
864
+ scaleLabelX: e,
865
+ individualOffsetX: 36
866
+ };
867
+ }), io = x(() => {
868
+ let e = +(U.value.chart.grid.position === "middle"), t = Y.value + e, n = v(q.value?.top), r = v(q.value?.bottom);
869
+ return Array.from({ length: t }).map((e, t) => {
870
+ let i = q.value.width / Y.value * t + q.value?.left + Z.value;
871
+ return `M${i},${n} L${i},${r}`;
872
+ }).join(" ");
873
+ }), ao = x(() => {
874
+ if (!U.value.chart.grid.labels.xAxis.showCrosshairs) return "";
875
+ let e = q.value.width / Y.value, t = U.value.chart.grid.labels.xAxis.crosshairSize, n = U.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
876
+ return vo.value.map((r, i) => {
877
+ if (!r || !r.text) return null;
878
+ let a = q.value?.left + e * i + e / 2;
879
+ return `M${a},${n ? zo.value - (zo.value === q.value?.bottom ? 0 : t / 2) : q.value?.bottom} L${a},${n ? zo.value + t / (zo.value === q.value?.bottom ? 1 : 2) : q.value?.bottom + t}`;
880
+ }).filter(Boolean).join(" ");
881
+ });
882
+ function oo() {
883
+ return !!ui?.vnode.props?.onSelectTimeLabel;
884
+ }
885
+ function so(e, t, n) {
886
+ return qi.value ||= document.createElement("canvas").getContext("2d"), qi.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, qi.value;
887
+ }
888
+ function co() {
889
+ let e = mi.value.querySelectorAll(".vue-ui-xy-tag");
890
+ e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
891
+ }
892
+ function lo(e, t, n, r, i) {
893
+ n && (Ki.value[`${e}_${t}_${r}_${i}`] = n);
894
+ }
895
+ let uo = k(!1);
896
+ async function fo(e = !1) {
897
+ await rt(), uo.value = e, Ui.value && (Gi.value = e);
898
+ }
899
+ function po() {
900
+ Pi.value = !Pi.value;
901
+ }
902
+ let J = k([]), mo = k([]), ho = 0;
903
+ mt(() => {
904
+ let e = ++ho;
905
+ (async () => {
906
+ let t = Math.max(...xa.value.map((e) => ce({
907
+ data: e.series,
908
+ threshold: U.value.downsample.threshold
909
+ }).length)), n = await Ae({
910
+ values: U.value.chart.grid.labels.xAxisLabels.values,
911
+ maxDatapoints: t,
912
+ formatter: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
913
+ start: K.value.start,
914
+ end: K.value.end
915
+ });
916
+ e === ho && (J.value = n);
917
+ })();
918
+ });
919
+ let go = 0;
920
+ mt(() => {
921
+ let e = ++go;
922
+ (async () => {
923
+ let t = Math.max(...xa.value.map((e) => ce({
924
+ data: e.series,
925
+ threshold: U.value.downsample.threshold
926
+ }).length)), n = await Ae({
927
+ values: U.value.chart.grid.labels.xAxisLabels.values,
928
+ maxDatapoints: t,
929
+ formatter: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
930
+ start: 0,
931
+ end: Ea.value
932
+ });
933
+ e === go && (mo.value = n);
934
+ })();
935
+ });
936
+ let _o = x(() => {
937
+ let e = U.value.chart.grid.labels.xAxisLabels.modulo;
938
+ return J.value.length ? Math.min(e, [...new Set(J.value.map((e) => e.text))].length) : e;
939
+ }), vo = x(() => {
940
+ let e = U.value.chart.grid.labels.xAxisLabels, t = J.value || [], n = mo.value || [], r = K.value.start ?? 0, i = V.value, a = Y.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
941
+ return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, _o.value || 1), o, s, r, i, a);
942
+ }), yo = x(() => (vo.value || []).map((e) => e?.text ?? "").join("|"));
943
+ ot(() => {
944
+ requestAnimationFrame(() => {
945
+ to();
946
+ }), pt([
947
+ () => yo.value,
948
+ () => U.value.chart.grid.labels.xAxisLabels.rotation,
949
+ () => H.value.xAxis,
950
+ () => I.value,
951
+ () => Ai.value
952
+ ], async () => {
953
+ await rt(), requestAnimationFrame(() => {
954
+ to();
955
+ });
956
+ }, { flush: "post" });
957
+ }), at(() => {
958
+ $a.value = 0, eo.value = 0, ia.stop();
959
+ });
960
+ function bo(e, t) {
961
+ ci("selectTimeLabel", {
962
+ datapoint: Xa.value.map((e) => ({
963
+ shape: e.shape ?? e.type === "bar" ? "square" : "circle",
964
+ name: e.name,
965
+ color: e.color,
966
+ type: e.type,
967
+ value: e.absoluteValues.find((e, n) => n === t),
968
+ comments: e.comments || [],
969
+ prefix: e.prefix || U.value.chart.labels.prefix,
970
+ suffix: e.suffix || U.value.chart.labels.suffix
971
+ })),
972
+ absoluteIndex: e.absoluteIndex,
973
+ label: e.text
974
+ });
975
+ }
976
+ let Y = x(() => {
977
+ let e = la((K.value.end ?? 0) - (K.value.start ?? 0));
978
+ return Math.max(1, e);
979
+ });
980
+ function xo(e) {
981
+ z.value = e;
982
+ }
983
+ function So() {
984
+ W.value.isStacked = !W.value.isStacked, W.value.isStacked ? W.value.useIndividualScale = !0 : W.value.useIndividualScale = U.value.chart.grid.labels.yAxis.useIndividualScale;
985
+ }
986
+ function Co(e) {
987
+ va.value && e.autoScaling && (U.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), U.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
988
+ }
989
+ function wo(e, t) {
990
+ let n = la(e), r = Array(n).fill(0);
991
+ for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
992
+ return r;
993
+ }
994
+ function To(e) {
995
+ let t = Math.max(...xa.value.map((e) => Ta(e.series).length));
996
+ return e > t ? t : e < 0 || U.value.chart.zoom.startIndex !== null && e < U.value.chart.zoom.startIndex ? U.value.chart.zoom.startIndex === null ? 1 : U.value.chart.zoom.startIndex + 1 : e;
997
+ }
998
+ let Eo = k(!1), Do = k(!1), Oo = k(0), ko = k(0);
999
+ function Ao(e, t) {
1000
+ let n = Number(e), r = Number(t);
1001
+ return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
1002
+ }
1003
+ function jo() {
1004
+ if (!Eo.value) {
1005
+ Eo.value = !0;
1006
+ try {
1007
+ let { startIndex: e, endIndex: t } = U.value.chart.zoom, n = Math.max(...xa.value.map((e) => Ta(e.series).length));
1008
+ Oo.value = 0, ko.value = n;
1009
+ let r = e ?? 0, i = t == null ? n : Math.min(To(t + 1), n);
1010
+ Mo.value = !0, K.value.start = r, K.value.end = i, Da.value.start = r, Da.value.end = i, Aa(), Do.value = !0;
1011
+ } finally {
1012
+ queueMicrotask(() => {
1013
+ Mo.value = !1;
1014
+ }), Eo.value = !1;
1015
+ }
1016
+ }
1017
+ }
1018
+ let Mo = k(!1);
1019
+ function No(e) {
1020
+ if (Eo.value || Mo.value) return;
1021
+ let t = Number(e);
1022
+ ci("zoomStart", {
1023
+ index: t,
1024
+ isZoom: Ao(t, Oo.value)
1025
+ }), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, Da.value.start = t, Aa());
1026
+ }
1027
+ function Po(e) {
1028
+ if (Eo.value || Mo.value) return;
1029
+ let t = To(e);
1030
+ ci("zoomEnd", {
1031
+ index: t,
1032
+ isZoom: Ao(t, ko.value)
1033
+ }), t !== K.value.end && (K.value.end = t, Da.value.end = t, Aa());
1034
+ }
1035
+ async function Fo() {
1036
+ await jo(), ci("zoomReset");
1037
+ }
1038
+ function Io(e) {
1039
+ return ![
1040
+ null,
1041
+ void 0,
1042
+ NaN,
1043
+ Infinity,
1044
+ -Infinity
1045
+ ].includes(e);
1046
+ }
1047
+ let Lo = x(() => Ka.value.max + qa.value);
1048
+ function Ro(e) {
1049
+ return e / (Io(Lo.value) ? Lo.value : 1);
1050
+ }
1051
+ let zo = x(() => isNaN(Ro(qa.value)) ? q.value?.bottom : q.value?.bottom - q.value.height * Ro(qa.value));
1052
+ function Bo(e) {
1053
+ let t = ![null, void 0].includes(U.value.chart.grid.labels.yAxis.scaleMin) && U.value.chart.grid.labels.yAxis.scaleMin > 0 && Wa.value >= 0 ? q.value?.bottom : zo.value;
1054
+ return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - zo.value <= 0 ? 1e-5 : e.y - zo.value);
1055
+ }
1056
+ function Vo(e) {
1057
+ return e.value >= 0 ? y(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : y(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1058
+ }
1059
+ let X = x(() => {
1060
+ let e = Math.max(1, Y.value), t = Math.max(1, q.value.width);
1061
+ return {
1062
+ bar: ua(t, e * Math.max(1, Ja.value.filter((e) => e.type === "bar" && !L.value.includes(e.id)).length), 1),
1063
+ plot: ua(t, e, 1),
1064
+ line: ua(t, e, 1)
1065
+ };
1066
+ });
1067
+ function Ho() {
1068
+ return W.value.useIndividualScale && W.value.isStacked ? X.value.line - q.value.width / Y.value * .1 : X.value.bar;
1069
+ }
1070
+ function Uo(e) {
1071
+ return W.value.useIndividualScale && W.value.isStacked ? e.x + q.value.width / Y.value * .05 : e.x + X.value.bar / 2;
1072
+ }
1073
+ function Wo(e) {
1074
+ return e.value >= 0 ? e.y : [
1075
+ null,
1076
+ void 0,
1077
+ NaN,
1078
+ Infinity,
1079
+ -Infinity
1080
+ ].includes(zo.value) ? q?.bottom.value : zo.value;
1081
+ }
1082
+ function Go(e) {
1083
+ return e.value >= 0 ? e.y : [
1084
+ null,
1085
+ void 0,
1086
+ NaN,
1087
+ Infinity,
1088
+ -Infinity
1089
+ ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1090
+ }
1091
+ let Ko = k(null);
1092
+ function qo(e) {
1093
+ let t = B.value;
1094
+ if (!t) return null;
1095
+ if (t.createSVGPoint && t.getScreenCTM) {
1096
+ let n = t.createSVGPoint();
1097
+ n.x = e.clientX, n.y = e.clientY;
1098
+ let r = t.getScreenCTM();
1099
+ if (r) {
1100
+ let e = n.matrixTransform(r.inverse());
1101
+ return {
1102
+ x: e.x,
1103
+ y: e.y,
1104
+ ok: !0
1105
+ };
1106
+ }
1107
+ }
1108
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
1109
+ x: 0,
1110
+ y: 0,
1111
+ width: n.width,
1112
+ height: n.height
1113
+ }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
1114
+ return {
1115
+ x: (e.clientX - n?.left - s) / i + r.x,
1116
+ y: (e.clientY - n?.top - c) / i + r.y,
1117
+ ok: !0
1118
+ };
1119
+ }
1120
+ let Jo = 0;
1121
+ function Yo(e) {
1122
+ Qi.value = null, !Pi.value && (Jo && cancelAnimationFrame(Jo), Jo = requestAnimationFrame(() => {
1123
+ Jo = 0;
1124
+ let t = qo(e);
1125
+ if (!t || !B.value) {
1126
+ Xo();
1127
+ return;
1128
+ }
1129
+ let { left: n, right: r, top: i, bottom: a, width: o } = q.value;
1130
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
1131
+ Xo();
1132
+ return;
1133
+ }
1134
+ let s = t.x - n, c = o / Y.value, l = Math.floor(s / c);
1135
+ l >= 0 && l < Y.value ? Ko.value !== l && (Ko.value = l, Bs(!0, l)) : Xo();
1136
+ }));
1137
+ }
1138
+ function Xo() {
1139
+ Jo &&= (cancelAnimationFrame(Jo), 0), Ko.value = null, Bs(!1, null);
1140
+ }
1141
+ function Zo(e) {
1142
+ let t = qo(e);
1143
+ if (t && B.value) {
1144
+ let { left: e, right: n, top: r, bottom: i, width: a } = q.value;
1145
+ if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1146
+ let n = a / Math.max(1, Y.value), r = Math.floor((t.x - e) / n);
1147
+ if (r >= 0 && r < Y.value) {
1148
+ Qo(r);
1149
+ return;
1150
+ }
1151
+ }
1152
+ }
1153
+ Ko.value != null && Qo(Ko.value);
1154
+ }
1155
+ function Qo(e) {
1156
+ let t = Xa.value.map((t) => ({
1157
+ name: t.name,
1158
+ value: [
1159
+ null,
1160
+ void 0,
1161
+ NaN
1162
+ ].includes(t.absoluteValues[e]) ? null : t.absoluteValues[e],
1163
+ color: t.color,
1164
+ type: t.type
1165
+ }));
1166
+ ci("selectX", {
1167
+ dataset: t,
1168
+ index: e,
1169
+ indexLabel: U.value.chart.grid.labels.xAxisLabels.values[e]
1170
+ }), U.value.events.datapointClick && U.value.events.datapointClick({
1171
+ datapoint: t,
1172
+ seriesIndex: e + K.value.start
1173
+ });
1174
+ }
1175
+ function $o() {
1176
+ return Ya.value.map((e) => ({
1177
+ values: e.absoluteValues,
1178
+ color: e.color,
1179
+ name: e.name,
1180
+ type: e.type
1181
+ }));
1182
+ }
1183
+ async function es({ scale: e = 2 } = {}) {
1184
+ if (!mi.value) return;
1185
+ let { width: t, height: n } = mi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
1186
+ domElement: mi.value,
1187
+ base64: !0,
1188
+ img: !0,
1189
+ scale: e
1190
+ });
1191
+ return {
1192
+ imageUri: i,
1193
+ base64: a,
1194
+ title: U.value.chart.title.text,
1195
+ width: t,
1196
+ height: n,
1197
+ aspectRatio: r
1198
+ };
1199
+ }
1200
+ function ts() {
1201
+ L.value.length ? L.value = [] : Ya.value.forEach((e) => {
1202
+ L.value.push(e.id);
1203
+ });
1204
+ }
1205
+ function ns(e, t) {
1206
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), rs(t));
1207
+ }
1208
+ function rs(e) {
1209
+ if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
1210
+ else {
1211
+ if (L.value.length + 1 === Ja.value.length) return;
1212
+ L.value.push(e.id);
1213
+ }
1214
+ ci("selectLegend", Xa.value.map((e) => ({
1215
+ name: e.name,
1216
+ values: e.absoluteValues,
1217
+ color: e.color,
1218
+ type: e.type
1219
+ }))), Hi.value += 1;
1220
+ }
1221
+ function is(e) {
1222
+ return Ya.value.length ? Ya.value.find((t) => t.name === e) || (U.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (U.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1223
+ }
1224
+ function as(e) {
1225
+ let t = is(e);
1226
+ t !== null && L.value.includes(t.id) && rs({ id: t.id });
1227
+ }
1228
+ function os(e) {
1229
+ let t = is(e);
1230
+ t !== null && (L.value.includes(t.id) || rs({ id: t.id }));
1231
+ }
1232
+ let ss = x(() => `${U.value.chart.title.text || "Chart visualization"}. ${U.value.chart.title.subtitle.text || ""}`), cs = x(() => ({ linePlot: Y.value > U.value.line.dot.hideAboveMaxSerieLength })), ls = x(() => U.value.chart.userOptions.show && (!U.value.chart.title.show || !U.value.chart.title.text)), us = x(() => {
1233
+ if (Array.isArray(U.value.chart.highlightArea)) return U.value.chart.highlightArea.map((e) => {
1234
+ let t = Math.min(e.to, Ea.value - 1);
1235
+ return {
1236
+ ...e,
1237
+ span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
1238
+ };
1239
+ });
1240
+ let e = {
1241
+ ...U.value.chart.highlightArea,
1242
+ to: Math.min(U.value.chart.highlightArea.to, Ea.value - 1)
1243
+ };
1244
+ return [{
1245
+ ...e,
1246
+ span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1247
+ }];
1248
+ }), ds = x(() => ki.value ? xa.value.map((e, t) => ({
1249
+ ...e,
1250
+ series: Ta(e.series),
1251
+ id: `uniqueId_${t}`,
1252
+ color: Te(e.color ? e.color : La.value[t] ? La.value[t] : h[t])
1253
+ })) : xa.value), fs = x(() => Xa.value.map((e) => {
1254
+ let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1255
+ return {
1256
+ id: e.id,
1257
+ name: e.name,
1258
+ color: e.color,
1259
+ values: wo(Y.value, t)
1260
+ };
1261
+ })), ps = x(() => ({
1262
+ responsiveBreakpoint: U.value.table.responsiveBreakpoint,
1263
+ roundingValues: U.value.table.rounding,
1264
+ showAverage: !1,
1265
+ showMedian: !1,
1266
+ showTotal: !1,
1267
+ fontFamily: U.value.chart.fontFamily,
1268
+ prefix: U.value.chart.labels.prefix,
1269
+ suffix: U.value.chart.labels.suffix,
1270
+ colNames: J.value.map((e, t) => U.value.table.useDefaultTimeFormat ? e.text : Ps.value(t + K.value.start, U.value.table.timeFormat)),
1271
+ thead: {
1272
+ backgroundColor: U.value.table.th.backgroundColor,
1273
+ color: U.value.table.th.color,
1274
+ outline: U.value.table.th.outline
1275
+ },
1276
+ tbody: {
1277
+ backgroundColor: U.value.table.td.backgroundColor,
1278
+ color: U.value.table.td.color,
1279
+ outline: U.value.table.td.outline
1280
+ },
1281
+ userOptions: { show: !1 },
1282
+ sparkline: { animation: { show: !1 } }
1283
+ })), Z = x(() => U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value / 2), ms = x(() => g(Ya.value.filter((e) => !L.value.includes(e.id))));
1284
+ function hs(e, t) {
1285
+ let n = Object.create(null);
1286
+ for (let r = 0; r < e.length; r += 1) {
1287
+ let i = e[r], a = String(t(i));
1288
+ n[a] || (n[a] = []), n[a].push(i);
1289
+ }
1290
+ return n;
1291
+ }
1292
+ let Q = x(() => {
1293
+ let e = hs(ms.value, (e) => e.scaleLabel), t = {};
1294
+ for (let [n, r] of Object.entries(e)) {
1295
+ let e = r.flatMap((e) => e.absoluteValues);
1296
+ t[n] = {
1297
+ min: Math.min(...e) || 0,
1298
+ max: Math.max(...e) || 1,
1299
+ groupId: `scale_group_${o()}`
1300
+ };
1301
+ }
1302
+ return t;
1303
+ }), gs = x(() => {
1304
+ let e = Ja.value.filter((e) => e.type === "bar").filter((e) => !L.value.includes(e.id)).length;
1305
+ return q.value.width / Y.value / e - _s.value * e;
1306
+ }), _s = x(() => X.value.line * U.value.bar.periodGap), vs = x(() => Math.max(1e-5, Ho() - (W.value.useIndividualScale && W.value.isStacked ? 0 : _s.value))), ys = x(() => vs.value * Math.min(Math.abs(U.value.bar.innerGap), .95)), bs = x(() => {
1307
+ if (!U.value.chart.zoom.minimap.show) return [];
1308
+ let e = ds.value.filter((e) => !L.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1309
+ for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1310
+ let r = Math.min(...n);
1311
+ return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1312
+ }), xs = x(() => U.value.chart.zoom.minimap.show ? ds.value.map((e) => ({
1313
+ ...e,
1314
+ isVisible: !L.value.includes(e.id)
1315
+ })) : []), Ss = x(() => Xa.value.map((e) => ({
1316
+ slotAbsoluteIndex: e.slotAbsoluteIndex,
1317
+ shape: e.shape || e.type === "bar" ? "square" : "circle",
1318
+ name: e.name,
1319
+ color: e.color,
1320
+ type: e.type,
1321
+ value: e.absoluteValues.find((e, t) => t === V.value),
1322
+ comments: e.comments || [],
1323
+ prefix: e.prefix || U.value.chart.labels.prefix,
1324
+ suffix: e.suffix || U.value.chart.labels.suffix
1325
+ }))), Cs = x(() => Ka.value.ticks.map((e) => ({
1326
+ y: e >= 0 ? zo.value - q.value.height * Ro(e) : zo.value + q.value.height * Ro(Math.abs(e)),
1327
+ value: e,
1328
+ prefix: U.value.chart.labels.prefix,
1329
+ suffix: U.value.chart.labels.suffix
1330
+ }))), ws = x(() => {
1331
+ let e = U.value.chart.annotations;
1332
+ if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1333
+ let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1334
+ if (!t.length) return [];
1335
+ let { left: n, right: r } = q.value, i = zo.value, a = q.value.height, s = Ka.value.min, c = Ka.value.max - s, l = (e) => i - (e - 0) / c * a;
1336
+ return t.map((e) => {
1337
+ let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = so(a.fontSize);
1338
+ ee.font = `${a.fontSize}px sans-serif`;
1339
+ let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, m;
1340
+ m = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
1341
+ let ne = p - d * .75 - a.padding?.top;
1342
+ return {
1343
+ show: ![
1344
+ c,
1345
+ u,
1346
+ ne
1347
+ ].includes(NaN),
1348
+ id: `annotation_y_${o()}`,
1349
+ hasArea: s,
1350
+ areaHeight: s ? Math.abs(c - u) : 0,
1351
+ yTop: c,
1352
+ yBottom: u,
1353
+ config: e.yAxis,
1354
+ x1: n,
1355
+ x2: r,
1356
+ _text: {
1357
+ x: f,
1358
+ y: p
1359
+ },
1360
+ _box: {
1361
+ x: m,
1362
+ y: ne,
1363
+ width: te + a.padding?.left + a.padding?.right,
1364
+ height: d + a.padding?.top + a.padding?.bottom,
1365
+ fill: a.backgroundColor,
1366
+ stroke: a.border.stroke,
1367
+ rx: a.border.rx,
1368
+ ry: a.border.ry,
1369
+ strokeWidth: a.border.strokeWidth
1370
+ }
1371
+ };
1372
+ });
1373
+ });
1374
+ function Ts(e, t) {
1375
+ let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1376
+ return Io(e[t].value) && i && U.value.line.cutNullValues;
1377
+ }
1378
+ function Es({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1379
+ let c = e.scaleSteps || U.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !U.value.chart.grid.labels.yAxis.useNiceScale ? ue : de, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = W.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = W.value.isStacked ? r * ae + n * ie : 0, h = W.value.isStacked ? r * e.stackRatio : q.value.height;
1380
+ return {
1381
+ scaleSteps: c,
1382
+ individualScale: d,
1383
+ autoScaleSteps: f,
1384
+ individualZero: p,
1385
+ autoScaleZero: 0,
1386
+ individualMax: m,
1387
+ autoScaleMax: ne,
1388
+ yOffset: oe,
1389
+ individualHeight: h,
1390
+ zeroPosition: q.value?.bottom - oe - h * p / m,
1391
+ autoScaleZeroPosition: q.value?.bottom - oe - h * 0 / ne
1392
+ };
1393
+ }
1394
+ let Ds = x(() => {
1395
+ let e = ms.value.filter((e) => [
1396
+ "bar",
1397
+ "line",
1398
+ "plot"
1399
+ ].includes(e.type)), t = e.length, n = U.value.chart.grid.labels.yAxis.gap, r = W.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
1400
+ return e.filter((e) => e.type === "bar").map((e, r) => {
1401
+ Co(e);
1402
+ let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1403
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1404
+ valueMin: a,
1405
+ valueMax: o < 0 ? 0 : o
1406
+ }, c = {
1407
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1408
+ min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1409
+ }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Es({
1410
+ datapoint: e,
1411
+ totalSeries: t,
1412
+ gap: n,
1413
+ usableHeight: i,
1414
+ autoScaleValueMin: s.valueMin,
1415
+ autoScaleValueMax: s.valueMax,
1416
+ individualExtremes: c
1417
+ }), re = Ya.value.filter((e) => e.type === "bar").filter((e) => !L.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1418
+ let i = W.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Ro(t), a = W.value.useIndividualScale && W.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left + X.value.bar * r + X.value.bar * n * re - gs.value / 2 - r * _s.value;
1419
+ return {
1420
+ yOffset: y(f),
1421
+ individualHeight: y(p),
1422
+ x: y(a),
1423
+ y: q.value?.bottom - f - p * i,
1424
+ value: e.absoluteValues[n],
1425
+ zeroPosition: y(m),
1426
+ individualMax: y(te),
1427
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1428
+ };
1429
+ }), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
1430
+ let i = W.value.useIndividualScale && W.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left - X.value.bar / 2 + X.value.bar * r + X.value.bar * n * Ya.value.filter((e) => e.type === "bar").filter((e) => !L.value.includes(e.id)).length;
1431
+ return {
1432
+ yOffset: y(f),
1433
+ individualHeight: y(p),
1434
+ x: y(i),
1435
+ y: y(q.value?.bottom - y(f) - (y(p) * ae[n] || 0)),
1436
+ value: e.absoluteValues[n],
1437
+ zeroPosition: y(m),
1438
+ individualMax: y(te),
1439
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1440
+ };
1441
+ }), h = l.ticks.map((t) => ({
1442
+ y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
1443
+ value: t,
1444
+ prefix: e.prefix || U.value.chart.labels.prefix,
1445
+ suffix: e.suffix || U.value.chart.labels.suffix,
1446
+ datapoint: e
1447
+ })), se = u.ticks.map((t) => {
1448
+ let n = (t - u.min) / (u.max - u.min);
1449
+ return {
1450
+ y: t >= 0 ? ne - p * n : ne + p * n,
1451
+ value: t,
1452
+ prefix: e.prefix || U.value.chart.labels.prefix,
1453
+ suffix: e.suffix || U.value.chart.labels.suffix,
1454
+ datapoint: e
1455
+ };
1456
+ });
1457
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1458
+ ...e,
1459
+ yOffset: f,
1460
+ autoScaleYLabels: se,
1461
+ individualHeight: p,
1462
+ scaleYLabels: e.autoScaling ? se : h,
1463
+ individualScale: e.autoScaling ? u : l,
1464
+ individualMax: e.autoScaling ? d : te,
1465
+ zeroPosition: e.autoScaling ? ne : m,
1466
+ plots: e.autoScaling ? oe : ie,
1467
+ groupId: Q.value[e.scaleLabel].groupId
1468
+ };
1469
+ });
1470
+ }), $ = x(() => {
1471
+ let e = ms.value.filter((e) => [
1472
+ "bar",
1473
+ "line",
1474
+ "plot"
1475
+ ].includes(e.type)), t = e.length, n = U.value.chart.grid.labels.yAxis.gap, r = W.value.isStacked ? n * (t - 1) : 0, a = q.value.height - r;
1476
+ return e.filter((e) => e.type === "line").map((e, r) => {
1477
+ Co(e);
1478
+ let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
1479
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (c - o)),
1480
+ valueMin: o,
1481
+ valueMax: c
1482
+ }, ee = {
1483
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1484
+ min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1485
+ }, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: ce } = Es({
1486
+ datapoint: e,
1487
+ totalSeries: t,
1488
+ gap: n,
1489
+ usableHeight: a,
1490
+ autoScaleValueMin: l.valueMin,
1491
+ autoScaleValueMax: l.valueMax,
1492
+ individualExtremes: ee
1493
+ }), g = e.series.map((t, n) => {
1494
+ let r = W.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Ro(t);
1495
+ return {
1496
+ x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
1497
+ y: y(q.value?.bottom - ae - h * r),
1498
+ value: e.absoluteValues[n],
1499
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1500
+ };
1501
+ }), le = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), _ = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
1502
+ x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
1503
+ y: se,
1504
+ value: e.absoluteValues[n],
1505
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1506
+ } : {
1507
+ x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
1508
+ y: y(q.value?.bottom - ae - (h * le[n] || 0)),
1509
+ value: e.absoluteValues[n],
1510
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1511
+ }), v = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, ue = U.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), de = U.value.line.cutNullValues ? pe(_) : he(_.filter((e) => e.value !== null)), fe = U.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), me = U.value.line.cutNullValues ? u(_) : s(_.filter((e) => e.value !== null)), ge = i(U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), _e = i(U.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ve = v ? ne(U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = v ? te(U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
1512
+ y: t >= 0 ? se - t / re * h : se + h * Math.abs(t) / re,
1513
+ value: t,
1514
+ prefix: e.prefix || U.value.chart.labels.prefix,
1515
+ suffix: e.suffix || U.value.chart.labels.suffix,
1516
+ datapoint: e
1517
+ })), xe = p.ticks.map((t) => {
1518
+ let n = (t - p.min) / (p.max - p.min);
1519
+ return {
1520
+ y: t >= 0 ? ce - h * n : ce + h * n,
1521
+ value: t,
1522
+ prefix: e.prefix || U.value.chart.labels.prefix,
1523
+ suffix: e.suffix || U.value.chart.labels.suffix,
1524
+ datapoint: e
1525
+ };
1526
+ });
1527
+ Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1528
+ let Se = W.value.useIndividualScale ? e.autoScaling ? ce : se : za.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, q.value?.top), Se), Ee = e.autoScaling ? _ : g, De = U.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null);
1529
+ return {
1530
+ ...e,
1531
+ temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
1532
+ yOffset: ae,
1533
+ autoScaleYLabels: xe,
1534
+ individualHeight: h,
1535
+ scaleYLabels: e.autoScaling ? xe : be,
1536
+ individualScale: e.autoScaling ? p : d,
1537
+ individualMax: e.autoScaling ? ie : re,
1538
+ zeroPosition: e.autoScaling ? ce : se,
1539
+ curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? de : ue,
1540
+ plots: e.autoScaling ? _ : g,
1541
+ dashedStraight: ve,
1542
+ dashedSmooth: ye,
1543
+ hasDashedSegments: v,
1544
+ area: e.useArea ? e.useStepper ? i(De, we) : W.value.useIndividualScale ? U.value.line.cutNullValues ? oe(e.autoScaling ? _ : g, we) : Ce(e.autoScaling ? _.filter((e) => e.value !== null) : g.filter((e) => e.value !== null), we) : U.value.line.cutNullValues ? oe(g, we) : Ce(g.filter((e) => e.value !== null), we) : "",
1545
+ curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? U.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null) : U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), we, U.value.line.cutNullValues) : [],
1546
+ straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : fe,
1547
+ groupId: Q.value[e.scaleLabel].groupId
1548
+ };
1549
+ });
1550
+ }), Os = x(() => {
1551
+ let e = ms.value.filter((e) => [
1552
+ "bar",
1553
+ "line",
1554
+ "plot"
1555
+ ].includes(e.type)), t = e.length, n = U.value.chart.grid.labels.yAxis.gap, r = W.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
1556
+ return e.filter((e) => e.type === "plot").map((e) => {
1557
+ Co(e);
1558
+ let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1559
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1560
+ valueMin: r,
1561
+ valueMax: a
1562
+ }, s = {
1563
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1564
+ min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1565
+ }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Es({
1566
+ datapoint: e,
1567
+ totalSeries: t,
1568
+ gap: n,
1569
+ usableHeight: i,
1570
+ autoScaleValueMin: o.valueMin,
1571
+ autoScaleValueMax: o.valueMax,
1572
+ individualExtremes: s,
1573
+ forceExactScale: !0
1574
+ }), ne = e.series.map((t, n) => {
1575
+ let r = W.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Ro(t);
1576
+ return {
1577
+ x: y(q.value?.left + X.value.plot / 2 + X.value.plot * n),
1578
+ y: y(q.value?.bottom - d - f * r),
1579
+ value: e.absoluteValues[n],
1580
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1581
+ };
1582
+ }), re = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ie = e.series.map((t, n) => ({
1583
+ x: y(q.value?.left + X.value.plot / 2 + X.value.plot * n),
1584
+ y: y(q.value?.bottom - d - (f * re[n] || 0)),
1585
+ value: e.absoluteValues[n],
1586
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1587
+ })), ae = c.ticks.map((t) => ({
1588
+ y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
1589
+ value: t,
1590
+ prefix: e.prefix || U.value.chart.labels.prefix,
1591
+ suffix: e.suffix || U.value.chart.labels.suffix,
1592
+ datapoint: e
1593
+ })), oe = l.ticks.map((t) => {
1594
+ let n = (t - l.min) / (l.max - l.min);
1595
+ return {
1596
+ y: t >= 0 ? m - f * n : m + f * n,
1597
+ value: t,
1598
+ prefix: e.prefix || U.value.chart.labels.prefix,
1599
+ suffix: e.suffix || U.value.chart.labels.suffix,
1600
+ datapoint: e
1601
+ };
1602
+ });
1603
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1604
+ ...e,
1605
+ yOffset: d,
1606
+ autoScaleYLabels: oe,
1607
+ individualHeight: f,
1608
+ scaleYLabels: e.autoScaling ? oe : ae,
1609
+ individualScale: e.autoScaling ? l : c,
1610
+ individualMax: e.autoScaling ? te : ee,
1611
+ zeroPosition: e.autoScaling ? m : p,
1612
+ plots: e.autoScaling ? ie : ne,
1613
+ groupId: Q.value[e.scaleLabel].groupId
1614
+ };
1615
+ });
1616
+ }), ks = x(() => {
1617
+ let e = $.value.map((e) => ({
1618
+ name: e.name,
1619
+ color: e.color,
1620
+ scale: e.individualScale,
1621
+ scaleYLabels: e.scaleYLabels,
1622
+ zero: e.zeroPosition,
1623
+ max: e.individualMax,
1624
+ scaleLabel: e.scaleLabel || "",
1625
+ id: e.id,
1626
+ yOffset: e.yOffset || 0,
1627
+ individualHeight: e.individualHeight || q.value.height,
1628
+ autoScaleYLabels: e.autoScaleYLabels
1629
+ })), t = Ds.value.map((e) => ({
1630
+ name: e.name,
1631
+ color: e.color,
1632
+ scale: e.individualScale,
1633
+ scaleYLabels: e.scaleYLabels,
1634
+ zero: e.zeroPosition,
1635
+ max: e.individualMax,
1636
+ scaleLabel: e.scaleLabel || "",
1637
+ id: e.id,
1638
+ yOffset: e.yOffset || 0,
1639
+ individualHeight: e.individualHeight || q.value.height
1640
+ })), n = Os.value.map((e) => ({
1641
+ name: e.name,
1642
+ color: e.color,
1643
+ scale: e.individualScale,
1644
+ scaleYLabels: e.scaleYLabels,
1645
+ zero: e.zeroPosition,
1646
+ max: e.individualMax,
1647
+ scaleLabel: e.scaleLabel || "",
1648
+ id: e.id,
1649
+ yOffset: e.yOffset || 0,
1650
+ individualHeight: e.individualHeight || q.value.height
1651
+ })), r = W.value.useIndividualScale && !W.value.isStacked ? Object.values(Q.value) : [
1652
+ ...e,
1653
+ ...t,
1654
+ ...n
1655
+ ], i = r.flatMap((e) => e).length;
1656
+ return r.flatMap((e, t) => {
1657
+ let n = 0;
1658
+ n = W.value.isStacked ? q.value?.left : q.value?.left / i * (t + 1);
1659
+ let r = W.value.useIndividualScale && !W.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
1660
+ return {
1661
+ unique: e.unique,
1662
+ id: e.id,
1663
+ groupId: e.groupId,
1664
+ scaleLabel: e.scaleLabel,
1665
+ name: fe(U.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
1666
+ color: W.value.useIndividualScale && !W.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
1667
+ scale: e.scale,
1668
+ yOffset: e.yOffset,
1669
+ individualHeight: e.individualHeight,
1670
+ x: n,
1671
+ yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
1672
+ y: t >= 0 ? e.zero - e.individualHeight * (t / e.max) : e.zero + e.individualHeight * Math.abs(t) / e.max,
1673
+ value: t
1674
+ }))
1675
+ };
1676
+ });
1677
+ }), As = x(() => {
1678
+ let e = U.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
1679
+ if (!t.length) return [];
1680
+ let r = [];
1681
+ return t.forEach((e, t) => {
1682
+ let [i, a] = Array.isArray(e) ? e : [e.a, e.b];
1683
+ if (!i || !a) return;
1684
+ let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
1685
+ if (!o || !s || o.type !== "line" || s.type !== "line") return;
1686
+ let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
1687
+ le({
1688
+ lineA: o.plots,
1689
+ lineB: s.plots,
1690
+ smoothA: !!o.smooth,
1691
+ smoothB: !!s.smooth,
1692
+ colorLineA: c,
1693
+ colorLineB: l,
1694
+ sampleStepPx: 2,
1695
+ cutNullValues: U.value.line.cutNullValues
1696
+ }).forEach((e, n) => {
1697
+ r.push({
1698
+ ...e,
1699
+ key: `inter_${i}_${a}_${t}_${n}`
1700
+ });
1701
+ });
1702
+ }), r;
1703
+ }), js = x(() => ({
1704
+ timeLabel: J.value[V.value],
1705
+ datapoint: Ss.value,
1706
+ seriesIndex: V.value,
1707
+ series: Ya.value,
1708
+ bars: Ds.value,
1709
+ lines: $.value,
1710
+ plots: Os.value,
1711
+ config: U.value
1712
+ })), Ms = k({
1713
+ months: [],
1714
+ shortMonths: [],
1715
+ days: [],
1716
+ shortDays: []
1717
+ }), Ns = 0;
1718
+ mt(() => {
1719
+ let e = ++Ns, t = U.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
1720
+ (async () => {
1721
+ let n = await ke(t.locale).catch(() => ke("en"));
1722
+ e === Ns && (Ms.value = n.data);
1723
+ })();
1724
+ });
1725
+ let Ps = x(() => {
1726
+ let e = U.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
1727
+ useUTC: e.useUTC,
1728
+ locale: Ms.value,
1729
+ januaryAsYear: e.januaryAsYear
1730
+ });
1731
+ return (e, n) => {
1732
+ let r = U.value.chart.grid.labels.xAxisLabels.values?.[e];
1733
+ return r == null ? "" : t.formatDate(new Date(r), n);
1734
+ };
1735
+ }), Fs = x(() => (U.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
1736
+ text: Ps.value(t, U.value.chart.zoom.timeFormat),
1737
+ absoluteIndex: t
1738
+ }))), Is = x(() => {
1739
+ let e = "", t = Ss.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = J.value[V.value], i = U.value.chart.tooltip.customFormat;
1740
+ if (be(i) && ye(() => i({
1741
+ absoluteIndex: V.value + K.value.start,
1742
+ seriesIndex: V.value,
1743
+ datapoint: Ss.value,
1744
+ series: Ya.value,
1745
+ bars: Ds.value,
1746
+ lines: $.value,
1747
+ plots: Os.value,
1748
+ config: U.value,
1749
+ dateLabel: n
1750
+ }))) return i({
1751
+ absoluteIndex: V.value + K.value.start,
1752
+ seriesIndex: V.value,
1753
+ datapoint: Ss.value,
1754
+ series: Ya.value,
1755
+ bars: Ds.value,
1756
+ lines: $.value,
1757
+ plots: Os.value,
1758
+ config: U.value,
1759
+ dateLabel: n
1760
+ });
1761
+ if (n && n.text && U.value.chart.tooltip.showTimeLabel) {
1762
+ let t = Ps.value(V.value + K.value.start, U.value.chart.tooltip.timeFormat);
1763
+ e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${U.value.chart.tooltip.borderColor}; width:100%">${U.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !U.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
1764
+ }
1765
+ return Ss.value.forEach((n) => {
1766
+ if (_e(n.value)) {
1767
+ let i = "", o = "";
1768
+ switch (Ni.value[n.type]) {
1769
+ case "bar":
1770
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${li.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${n.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${li.pattern ? `url(#pattern_${R.value}_${n.slotAbsoluteIndex}` : n.color}" /></svg>`;
1771
+ break;
1772
+ case "line":
1773
+ !n.shape || ![
1774
+ "star",
1775
+ "triangle",
1776
+ "square",
1777
+ "diamond",
1778
+ "pentagon",
1779
+ "hexagon"
1780
+ ].includes(n.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" />` : n.shape === "triangle" ? o = `<path d="${r({
1781
+ plot: {
1782
+ x: 10,
1783
+ y: 8
1784
+ },
1785
+ radius: 4,
1786
+ sides: 3,
1787
+ rotation: .52
1788
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "square" ? o = `<path d="${r({
1789
+ plot: {
1790
+ x: 10,
1791
+ y: 8
1792
+ },
1793
+ radius: 4,
1794
+ sides: 4,
1795
+ rotation: .8
1796
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "diamond" ? o = `<path d="${r({
1797
+ plot: {
1798
+ x: 10,
1799
+ y: 8
1800
+ },
1801
+ radius: 4,
1802
+ sides: 4,
1803
+ rotation: 0
1804
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "pentagon" ? o = `<path d="${r({
1805
+ plot: {
1806
+ x: 10,
1807
+ y: 8
1808
+ },
1809
+ radius: 4,
1810
+ sides: 5,
1811
+ rotation: .95
1812
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "hexagon" ? o = `<path d="${r({
1813
+ plot: {
1814
+ x: 10,
1815
+ y: 8
1816
+ },
1817
+ radius: 4,
1818
+ sides: 6,
1819
+ rotation: 0
1820
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "star" && (o = `<polygon stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" points="${m({
1821
+ plot: {
1822
+ x: 10,
1823
+ y: 8
1824
+ },
1825
+ radius: 4
1826
+ })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${n.color}" />${o}</svg>`;
1827
+ break;
1828
+ case "plot":
1829
+ if (!n.shape || ![
1830
+ "star",
1831
+ "triangle",
1832
+ "square",
1833
+ "diamond",
1834
+ "pentagon",
1835
+ "hexagon"
1836
+ ].includes(n.shape)) {
1837
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" /></svg>`;
1838
+ break;
1839
+ }
1840
+ if (n.shape === "star") {
1841
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" points="${m({
1842
+ plot: {
1843
+ x: 6,
1844
+ y: 6
1845
+ },
1846
+ radius: 5
1847
+ })}" /></svg>`;
1848
+ break;
1849
+ }
1850
+ if (n.shape === "triangle") {
1851
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1852
+ plot: {
1853
+ x: 6,
1854
+ y: 6
1855
+ },
1856
+ radius: 6,
1857
+ sides: 3,
1858
+ rotation: .52
1859
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1860
+ break;
1861
+ }
1862
+ if (n.shape === "square") {
1863
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1864
+ plot: {
1865
+ x: 6,
1866
+ y: 6
1867
+ },
1868
+ radius: 6,
1869
+ sides: 4,
1870
+ rotation: .8
1871
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1872
+ break;
1873
+ }
1874
+ if (n.shape === "diamond") {
1875
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1876
+ plot: {
1877
+ x: 6,
1878
+ y: 6
1879
+ },
1880
+ radius: 5,
1881
+ sides: 4,
1882
+ rotation: 0
1883
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1884
+ break;
1885
+ }
1886
+ if (n.shape === "pentagon") {
1887
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1888
+ plot: {
1889
+ x: 6,
1890
+ y: 6
1891
+ },
1892
+ radius: 5,
1893
+ sides: 5,
1894
+ rotation: .95
1895
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1896
+ break;
1897
+ }
1898
+ if (n.shape === "hexagon") {
1899
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1900
+ plot: {
1901
+ x: 6,
1902
+ y: 6
1903
+ },
1904
+ radius: 5,
1905
+ sides: 6,
1906
+ rotation: 0
1907
+ }).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1908
+ break;
1909
+ }
1910
+ default: break;
1911
+ }
1912
+ e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${U.value.chart.tooltip.showValue ? fe(n.type === "line" ? U.value.line.labels.formatter : n.type === "bar" ? U.value.bar.labels.formatter : U.value.plot.labels.formatter, n.value, a({
1913
+ p: n.prefix,
1914
+ v: n.value,
1915
+ s: n.suffix,
1916
+ r: U.value.chart.tooltip.roundingValue
1917
+ }), { datapoint: n }) : ""}</b> ${U.value.chart.tooltip.showPercentage ? `(${a({
1918
+ v: y(Math.abs(n.value) / t * 100),
1919
+ s: "%",
1920
+ r: U.value.chart.tooltip.roundingPercentage
1921
+ })})` : ""}</div>`, U.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[V.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[V.value]}</div>`);
1922
+ }
1923
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${U.value.chart.tooltip.color}">${e}</div>`;
1924
+ }), Ls = x(() => {
1925
+ if (Ja.value.length === 0) return {
1926
+ head: [],
1927
+ body: [],
1928
+ config: {},
1929
+ columnNames: []
1930
+ };
1931
+ let e = Xa.value.map((e) => ({
1932
+ label: e.name,
1933
+ color: e.color,
1934
+ type: e.type
1935
+ })), t = [];
1936
+ return J.value.forEach((e, n) => {
1937
+ let r = U.value.table.useDefaultTimeFormat ? [e.text] : [Ps.value(n + K.value.start, U.value.table.timeFormat)];
1938
+ Xa.value.forEach((e) => {
1939
+ r.push(Io(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(U.value.table.rounding)) : "");
1940
+ }), t.push(r);
1941
+ }), {
1942
+ head: e,
1943
+ body: t
1944
+ };
1945
+ }), Rs = x(() => {
1946
+ let e = U.value.table.showSum, t = [""].concat(Xa.value.map((e) => e.name));
1947
+ e && (t = t.concat(" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"));
1948
+ let n = [];
1949
+ for (let t = 0; t < Y.value; t += 1) {
1950
+ let r = Xa.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
1951
+ n.push([U.value.table.useDefaultTimeFormat ? J.value[t]?.text ?? "-" : Ps.value(t + K.value.start, U.value.table.timeFormat)].concat(Xa.value.map((e) => fe(e.type === "line" ? U.value.line.labels.formatter : e.type === "bar" ? U.value.bar.labels.formatter : U.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
1952
+ p: e.prefix || U.value.chart.labels.prefix,
1953
+ v: e.absoluteValues[t] ?? 0,
1954
+ s: e.suffix || U.value.chart.labels.suffix,
1955
+ r: U.value.table.rounding
1956
+ }))), e ? (r ?? 0).toFixed(U.value.table.rounding) : []));
1957
+ }
1958
+ let r = {
1959
+ th: {
1960
+ backgroundColor: U.value.table.th.backgroundColor,
1961
+ color: U.value.table.th.color,
1962
+ outline: U.value.table.th.outline
1963
+ },
1964
+ td: {
1965
+ backgroundColor: U.value.table.td.backgroundColor,
1966
+ color: U.value.table.td.color,
1967
+ outline: U.value.table.td.outline
1968
+ },
1969
+ breakpoint: U.value.table.responsiveBreakpoint
1970
+ }, i = [U.value.table.columnNames.period].concat(Xa.value.map((e) => e.name), U.value.table.columnNames.total);
1971
+ return {
1972
+ head: t,
1973
+ body: n,
1974
+ config: r,
1975
+ colNames: i
1976
+ };
1977
+ });
1978
+ function zs(e = null) {
1979
+ let t = [
1980
+ [U.value.chart.title.text],
1981
+ [U.value.chart.title.subtitle.text],
1982
+ [""]
1983
+ ], n = ["", ...Ls.value.head.map((e) => e.label)], r = Ls.value.body, i = ie(t.concat([n]).concat(r));
1984
+ e ? e(i) : l({
1985
+ csvContent: i,
1986
+ title: U.value.chart.title.text || "vue-ui-xy"
1987
+ });
1988
+ }
1989
+ function Bs(e, t = null) {
1990
+ if (Za.value) return;
1991
+ Ii.value = e;
1992
+ let n = Xa.value.map((e) => ({
1993
+ name: e.name,
1994
+ value: [
1995
+ null,
1996
+ void 0,
1997
+ NaN
1998
+ ].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
1999
+ color: e.color,
2000
+ type: e.type
2001
+ }));
2002
+ e ? (V.value = t, U.value.events.datapointEnter && U.value.events.datapointEnter({
2003
+ datapoint: n,
2004
+ seriesIndex: t + K.value.start
2005
+ })) : (V.value = null, U.value.events.datapointLeave && U.value.events.datapointLeave({
2006
+ datapoint: n,
2007
+ seriesIndex: t + K.value.start
2008
+ }));
2009
+ }
2010
+ function Vs() {
2011
+ W.value.showTable = !W.value.showTable;
2012
+ }
2013
+ function Hs() {
2014
+ W.value.dataLabels.show = !W.value.dataLabels.show;
2015
+ }
2016
+ function Us() {
2017
+ W.value.showTooltip = !W.value.showTooltip;
2018
+ }
2019
+ function Ws(e) {
2020
+ Fi.value = e, Ri.value += 1;
2021
+ }
2022
+ function Gs() {
2023
+ if (!U.value.responsiveProportionalSizing) {
2024
+ H.value.dataLabels = U.value.chart.grid.labels.fontSize, H.value.yAxis = U.value.chart.grid.labels.axis.fontSize, H.value.xAxis = U.value.chart.grid.labels.xAxisLabels.fontSize, H.value.plotLabels = U.value.chart.labels.fontSize, fa.value.plot = U.value.plot.radius, fa.value.line = U.value.line.radius;
2025
+ return;
2026
+ }
2027
+ H.value.dataLabels = re({
2028
+ relator: Ai.value,
2029
+ adjuster: 400,
2030
+ source: U.value.chart.grid.labels.fontSize,
2031
+ threshold: 10,
2032
+ fallback: 10
2033
+ }), H.value.yAxis = re({
2034
+ relator: I.value,
2035
+ adjuster: 1e3,
2036
+ source: U.value.chart.grid.labels.axis.fontSize,
2037
+ threshold: 10,
2038
+ fallback: 10
2039
+ }), H.value.xAxis = re({
2040
+ relator: I.value,
2041
+ adjuster: 1e3,
2042
+ source: U.value.chart.grid.labels.xAxisLabels.fontSize,
2043
+ threshold: 10,
2044
+ fallback: 10
2045
+ }), H.value.plotLabels = re({
2046
+ relator: I.value,
2047
+ adjuster: 800,
2048
+ source: U.value.chart.labels.fontSize,
2049
+ threshold: 10,
2050
+ fallback: 10
2051
+ }), fa.value.plot = re({
2052
+ relator: I.value,
2053
+ adjuster: 800,
2054
+ source: U.value.plot.radius,
2055
+ threshold: 1,
2056
+ fallback: 1
2057
+ }), fa.value.line = re({
2058
+ relator: I.value,
2059
+ adjuster: 800,
2060
+ source: U.value.line.radius,
2061
+ threshold: 1,
2062
+ fallback: 1
2063
+ });
2064
+ }
2065
+ function Ks() {
2066
+ if (ae(P.dataset) ? (se({
2067
+ componentName: "VueUiXy",
2068
+ type: "dataset",
2069
+ debug: va.value
2070
+ }), Sa.value = !0) : P.dataset.forEach((e, t) => {
2071
+ [null, void 0].includes(e.name) && (se({
2072
+ componentName: "VueUiXy",
2073
+ type: "datasetSerieAttribute",
2074
+ property: "name (string)",
2075
+ index: t,
2076
+ debug: va.value
2077
+ }), Sa.value = !0);
2078
+ }), va.value && P.dataset.forEach((e) => {
2079
+ e.series.forEach((t, n) => {
2080
+ _e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2081
+ });
2082
+ }), ae(P.dataset) || (Sa.value = U.value.loading), Ui.value = U.value.chart.userOptions.showOnChartHover, Wi.value = U.value.chart.userOptions.keepStateOnChartLeave, Gi.value = !U.value.chart.userOptions.showOnChartHover, _a(), U.value.responsive) {
2083
+ let e = mi.value.parentNode;
2084
+ Ei.value && (Ei.value.unobserve(Di.value), Ei.value.disconnect());
2085
+ let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2086
+ U.value.chart.title.show && hi.value && (r = hi.value, i = r.getBoundingClientRect().height);
2087
+ let a = null, o = 0;
2088
+ U.value.chart.zoom.show && Ea.value > 6 && ha.value && gi.value && gi.value.$el && (a = gi.value.$el, o = a.getBoundingClientRect().height);
2089
+ let s = null, c = 0;
2090
+ U.value.chart.legend.show && _i.value && (s = _i.value, c = s.getBoundingClientRect().height);
2091
+ let l = 0;
2092
+ vi.value && (l = vi.value.getBoundingClientRect().height);
2093
+ let u = 0;
2094
+ yi.value && (u = yi.value.getBoundingClientRect().height), Ai.value = t - i - c - o - l - u - 12, I.value = n, ji.value = `0 0 ${I.value < 0 ? 10 : I.value} ${Ai.value < 0 ? 10 : Ai.value}`, Gs();
2095
+ let ee = new ResizeObserver((e) => {
2096
+ for (let t of e) i = U.value.chart.title.show && hi.value ? hi.value.getBoundingClientRect().height : 0, o = gi.value && gi.value.$el ? gi.value.$el.getBoundingClientRect().height : 0, c = _i.value ? _i.value.getBoundingClientRect().height : 0, l = vi.value ? vi.value.getBoundingClientRect().height : 0, u = yi.value ? yi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2097
+ Ai.value = t.contentRect.height - i - c - o - l - u - 12, I.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, ji.value = `0 0 ${I.value < 0 ? 10 : I.value} ${Ai.value < 0 ? 10 : Ai.value}`, Gs(), aa(), sa();
2098
+ });
2099
+ });
2100
+ Ei.value = ee, Di.value = e, ee.observe(e);
2101
+ } else Ai.value = U.value.chart.height, I.value = U.value.chart.width, H.value.dataLabels = U.value.chart.grid.labels.fontSize, H.value.yAxis = U.value.chart.grid.labels.axis.fontSize, H.value.xAxis = U.value.chart.grid.labels.xAxisLabels.fontSize, H.value.plotLabels = U.value.chart.labels.fontSize, fa.value.plot = U.value.plot.radius, fa.value.line = U.value.line.radius, ji.value = `0 0 ${I.value} ${Ai.value}`;
2102
+ aa(), sa();
2103
+ }
2104
+ function qs(e) {
2105
+ Mi.value = {
2106
+ x: e.clientX,
2107
+ y: e.clientY
2108
+ };
2109
+ }
2110
+ ot(() => {
2111
+ Ks(), jo(), document.addEventListener("mousemove", qs, { passive: !0 }), document.addEventListener("scroll", co, { passive: !0 });
2112
+ }), at(() => {
2113
+ document.removeEventListener("scroll", co, { passive: !0 }), document.removeEventListener("mousemove", qs, { passive: !0 }), Ei.value &&= (Ei.value.unobserve(Di.value), Ei.value.disconnect(), null);
2114
+ }), ze({
2115
+ timeLabelsEls: Ci,
2116
+ timeLabels: J,
2117
+ slicer: K,
2118
+ configRef: U,
2119
+ rotationPath: [
2120
+ "chart",
2121
+ "grid",
2122
+ "labels",
2123
+ "xAxisLabels",
2124
+ "rotation"
2125
+ ],
2126
+ autoRotatePath: [
2127
+ "chart",
2128
+ "grid",
2129
+ "labels",
2130
+ "xAxisLabels",
2131
+ "autoRotate",
2132
+ "enable"
2133
+ ],
2134
+ isAutoSize: Ia,
2135
+ height: Ai,
2136
+ width: I,
2137
+ rotation: U.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2138
+ });
2139
+ let Js = k(!1), Ys = k(null), Xs = k(200), Zs = x(() => V.value ?? z.value ?? 0);
2140
+ function Qs() {
2141
+ let e = Math.ceil(Xs.value || 200);
2142
+ return Math.min(Math.max(e, 1), 200);
2143
+ }
2144
+ function $s() {
2145
+ let e = Qs(), t = Math.max(1, Y.value), n = q.value.width / t, r = q.value?.left + Zs.value * n + n / 2 - e / 2 - (200 - e) / 2, i = q.value?.left - (200 - e) / 2, a = q.value?.right - (200 + e) / 2;
2146
+ return y(Math.max(i, Math.min(r, a)));
2147
+ }
2148
+ ot(() => {
2149
+ let e = null, t = null, n = (e) => {
2150
+ cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2151
+ Xs.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2152
+ });
2153
+ }, r = new ResizeObserver((t) => {
2154
+ let r = t.find((t) => t.target === e) || t[0];
2155
+ r && n(r.contentRect.width || 200);
2156
+ }), i = mt((t) => {
2157
+ let i = Ys.value;
2158
+ e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
2159
+ i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2160
+ }), r.observe(i), e = i), t(() => {
2161
+ e &&= (r.unobserve(e), null);
2162
+ });
2163
+ });
2164
+ at(() => {
2165
+ try {
2166
+ e && r.unobserve(e), r.disconnect(), i();
2167
+ } catch {}
2168
+ });
2169
+ });
2170
+ let ec = x(() => {
2171
+ if ([null, void 0].includes(V.value) && [null, void 0].includes(z.value)) return "";
2172
+ let e = (V.value == null ? 0 : V.value) || (z.value == null ? 0 : z.value), t = U.value.chart.timeTag.customFormat;
2173
+ if (Js.value = !1, be(t)) try {
2174
+ let n = t({
2175
+ absoluteIndex: e + K.value.start,
2176
+ seriesIndex: e,
2177
+ datapoint: Ss.value,
2178
+ bars: Ds.value,
2179
+ lines: $.value,
2180
+ plots: Os.value,
2181
+ config: U.value
2182
+ });
2183
+ if (typeof n == "string") return Js.value = !0, n;
2184
+ } catch {
2185
+ console.warn("Custom format cannot be applied on timeTag."), Js.value = !1;
2186
+ }
2187
+ if (!Js.value) return [null, void 0].includes(J.value[e]) ? "" : U.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !U.value.chart.timeTag.useDefaultFormat ? Ps.value(e + K.value.start, U.value.chart.timeTag.timeFormat) : J.value[e].text;
2188
+ });
2189
+ function tc({ serie: e, plot: t, type: r }) {
2190
+ return Io(t.value) ? n({
2191
+ content: fe(U.value[r].labels.formatter, t.value, a({
2192
+ p: e.prefix || U.value.chart.labels.prefix,
2193
+ v: t.value,
2194
+ x: e.suffix || U.value.chart.labels.suffix,
2195
+ r: U.value[r].labels.rounding
2196
+ }), {
2197
+ datapoint: t,
2198
+ serie: e
2199
+ }),
2200
+ fontSize: H.value.plotLabels,
2201
+ fill: U.value[r].labels.color,
2202
+ x: 0,
2203
+ y: 0
2204
+ }) : "";
2205
+ }
2206
+ function nc({ plot: e }) {
2207
+ let t = U.value.bar.labels.offsetY, n = Math.abs(Vo(e)), r = e.value < 0, i = {
2208
+ x: (W.value.useIndividualScale && W.value.isStacked ? e.x + X.value.line / 2 : Uo(e) + Ho() / 2 - _s.value / 2) + U.value.bar.labels.offsetX,
2209
+ y: y(e.y) + (U.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2210
+ };
2211
+ return `translate(${i.x}, ${i.y}) rotate(${U.value.bar.labels.rotation})`;
2212
+ }
2213
+ function rc({ plot: e, type: t }) {
2214
+ let n = U.value[t].labels.offsetY, r = {
2215
+ x: e.x + U.value[t].labels.offsetX,
2216
+ y: y(e.y) + (U.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2217
+ };
2218
+ return `translate(${r.x}, ${r.y}) rotate(${U.value[t].labels.rotation})`;
2219
+ }
2220
+ function ic({ plot: e, type: t }) {
2221
+ if (U.value[t].labels.textAnchor != null) return U.value[t].labels.textAnchor;
2222
+ let n = e.value >= 0;
2223
+ return U.value[t].labels.rotation === 0 ? "middle" : U.value[t].labels.alwaysOnTop || n ? "start" : "end";
2224
+ }
2225
+ pt(() => P.dataset, (e) => {
2226
+ Array.isArray(e) && e.length > 0 && (Sa.value = !1), Ea.value = Math.max(...xa.value.map((e) => Ta(e.series).length)), K.value = {
2227
+ start: 0,
2228
+ end: Ea.value
2229
+ }, Oi.value += 1, Hi.value += 1, aa(), sa(), Aa();
2230
+ }, { deep: !0 }), pt(() => P.config, (e) => {
2231
+ G.value || (U.value = pa()), Ks(), Bi.value += 1, zi.value += 1, _a(), aa(), sa(), Aa();
2232
+ }, { deep: !0 });
2233
+ let ac = k(!1);
2234
+ function oc() {
2235
+ let e = mi.value?.parentNode;
2236
+ if (!e) {
2237
+ ac.value = !1;
2238
+ return;
2239
+ }
2240
+ let t = e.getBoundingClientRect();
2241
+ ac.value = t.width > 2 && t.height > 2;
2242
+ }
2243
+ ot(() => {
2244
+ oc();
2245
+ let e = new ResizeObserver(() => {
2246
+ oc(), ac.value && (Ks(), Aa(), jo());
2247
+ });
2248
+ mi.value?.parentNode && e.observe(mi.value.parentNode);
2249
+ }), pt(U, () => {
2250
+ _a();
2251
+ }, { immediate: !0 });
2252
+ let sc = x(() => {
2253
+ let e = U.value.table.useDialog && !U.value.showTable, t = W.value.showTable;
2254
+ return {
2255
+ component: e ? si : Ke,
2256
+ title: `${U.value.chart.title.text}${U.value.chart.title.subtitle.text ? `: ${U.value.chart.title.subtitle.text}` : ""}`,
2257
+ props: e ? {
2258
+ backgroundColor: U.value.table.th.backgroundColor,
2259
+ color: U.value.table.th.color,
2260
+ headerColor: U.value.table.th.color,
2261
+ headerBg: U.value.table.th.backgroundColor,
2262
+ isFullscreen: Fi.value,
2263
+ fullscreenParent: mi.value,
2264
+ forcedWidth: Math.min(800, window.innerWidth * .8)
2265
+ } : {
2266
+ hideDetails: !0,
2267
+ config: {
2268
+ open: t,
2269
+ maxHeight: 1e4,
2270
+ body: {
2271
+ backgroundColor: U.value.chart.backgroundColor,
2272
+ color: U.value.chart.color
2273
+ },
2274
+ head: {
2275
+ backgroundColor: U.value.chart.backgroundColor,
2276
+ color: U.value.chart.color
2277
+ }
2278
+ }
2279
+ }
2280
+ };
2281
+ });
2282
+ pt(() => W.value.showTable, (e) => {
2283
+ U.value.showTable || (e && U.value.table.useDialog && Yi.value ? Yi.value.open() : Yi.value && Yi.value.close && Yi.value.close());
2284
+ });
2285
+ function cc() {
2286
+ W.value.showTable = !1, Ti.value && Ti.value.setTableIconState(!1);
2287
+ }
2288
+ let lc = x(() => Ya.value.map((e) => ({
2289
+ shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2290
+ color: e.color,
2291
+ name: e.name
2292
+ }))), uc = x(() => U.value.chart.backgroundColor), dc = x(() => U.value.chart.legend), { exportSvg: fc, getSvg: pc } = Fe({
2293
+ svg: B,
2294
+ title: x(() => U.value.chart.title),
2295
+ legend: dc,
2296
+ legendItems: lc,
2297
+ backgroundColor: uc
2298
+ });
2299
+ async function mc({ isCb: e }) {
2300
+ Zi.value = !0, await rt();
2301
+ try {
2302
+ if (e) {
2303
+ let { blob: e, url: t, text: n, dataUrl: r } = await pc();
2304
+ await Promise.resolve(U.value.chart.userOptions.callbacks.svg({
2305
+ blob: e,
2306
+ url: t,
2307
+ text: n,
2308
+ dataUrl: r
2309
+ }));
2310
+ } else await Promise.resolve(fc());
2311
+ } finally {
2312
+ Zi.value = !1;
2313
+ }
2314
+ }
2315
+ function hc(e) {
2316
+ if (e?.stage === "start") {
2317
+ Xi.value = !0;
2318
+ return;
2319
+ }
2320
+ if (e?.stage === "end") {
2321
+ Xi.value = !1;
2322
+ return;
2323
+ }
2324
+ Fa();
2325
+ }
2326
+ async function gc() {
2327
+ if (ci("copyAlt", {
2328
+ config: {
2329
+ ...U.value,
2330
+ formattedDates: J.value
2331
+ },
2332
+ dataset: {
2333
+ lines: $.value,
2334
+ bars: Ds.value,
2335
+ plots: Os.value
2336
+ }
2337
+ }), !U.value.chart.userOptions.callbacks.altCopy) {
2338
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2339
+ return;
2340
+ }
2341
+ await Promise.resolve(U.value.chart.userOptions.callbacks.altCopy({
2342
+ config: {
2343
+ ...U.value,
2344
+ formattedDates: J.value
2345
+ },
2346
+ dataset: {
2347
+ lines: $.value,
2348
+ bars: Ds.value,
2349
+ plots: Os.value
2350
+ }
2351
+ }));
2352
+ }
2353
+ let _c = k(!1);
2354
+ function vc() {
2355
+ K.value.end > K.value.start && (Qi.value = null), uo.value = !0, _c.value = !0;
2356
+ }
2357
+ function yc() {
2358
+ Qi.value = null, Xo(), _c.value = !1, uo.value = !1;
2359
+ }
2360
+ function bc(e) {
2361
+ if (!B.value || Pi.value || document.activeElement !== B.value) return;
2362
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2363
+ if (!t && !n || !K.value.end && K.value.end !== 0) return;
2364
+ let r = K.value.end - K.value.start;
2365
+ if (r <= 0) return;
2366
+ e.preventDefault(), e.stopPropagation();
2367
+ let i = Qi.value, a = Ko.value;
2368
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, Qi.value = i, xc(i), Bs(!0, i);
2369
+ }
2370
+ function xc(e) {
2371
+ let t = K.value.end - K.value.start;
2372
+ if (t <= 0) return;
2373
+ let n = q.value.width / t, r = c(q.value.left + n * e + n / 2, q.value.top + q.value.height / 2, B.value);
2374
+ r && ($i.value = r);
2375
+ }
2376
+ let Sc = x(() => {
2377
+ if (!Rs.value) return null;
2378
+ let e = U.value.table.showSum, t = [U.value.table.columnNames.period].concat(Xa.value.map((e) => e.name));
2379
+ e && (t = t.concat(U.value.table.columnNames.total));
2380
+ let n = Rs.value.body.slice(K.value.start, K.value.end);
2381
+ return {
2382
+ headers: t,
2383
+ rows: n
2384
+ };
2385
+ });
2386
+ return We({
2387
+ getData: $o,
2388
+ getImage: es,
2389
+ generatePdf: Pa,
2390
+ generateImage: Fa,
2391
+ generateSvg: mc,
2392
+ generateCsv: zs,
2393
+ hideSeries: os,
2394
+ showSeries: as,
2395
+ toggleStack: So,
2396
+ toggleTable: Vs,
2397
+ toggleLabels: Hs,
2398
+ toggleTooltip: Us,
2399
+ toggleAnnotator: po,
2400
+ toggleFullscreen: Ws,
2401
+ copyAlt: gc
2402
+ }), (r, i) => (O(), C("div", {
2403
+ id: `vue-ui-xy_${R.value}`,
2404
+ class: it(`vue-data-ui-component vue-ui-xy ${Fi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${U.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2405
+ ref_key: "chart",
2406
+ ref: mi,
2407
+ style: D(`background:${U.value.chart.backgroundColor}; color:${U.value.chart.color};width:100%;font-family:${U.value.chart.fontFamily};${U.value.responsive ? "height: 100%" : ""}`),
2408
+ onMouseenter: i[6] ||= () => fo(!0),
2409
+ onMouseleave: i[7] ||= () => fo(!1),
2410
+ onClick: Zo
2411
+ }, [
2412
+ w("div", {
2413
+ id: `chart-instructions-${R.value}`,
2414
+ class: "sr-only"
2415
+ }, [w("p", null, lt(U.value.a11y.translations.keyboardNavigation), 1)], 8, vt),
2416
+ Sc.value?.rows?.length ? (O(), Xe(Je, {
2417
+ key: 0,
2418
+ uid: R.value,
2419
+ head: Sc.value.headers,
2420
+ body: Sc.value.rows,
2421
+ notice: U.value.a11y.translations.tableAvailable,
2422
+ caption: U.value.a11y.translations.tableCaption
2423
+ }, null, 8, [
2424
+ "uid",
2425
+ "head",
2426
+ "body",
2427
+ "notice",
2428
+ "caption"
2429
+ ])) : S("", !0),
2430
+ U.value.chart.userOptions.buttons.annotator && B.value ? (O(), Xe(M(oi), {
2431
+ key: 1,
2432
+ svgRef: B.value,
2433
+ backgroundColor: U.value.chart.backgroundColor,
2434
+ color: U.value.chart.color,
2435
+ active: Pi.value,
2436
+ isCursorPointer: ga.value,
2437
+ onClose: po
2438
+ }, {
2439
+ "annotator-action-close": N(() => [j(r.$slots, "annotator-action-close", {}, void 0, !0)]),
2440
+ "annotator-action-color": N(({ color: e }) => [j(r.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
2441
+ "annotator-action-draw": N(({ mode: e }) => [j(r.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
2442
+ "annotator-action-undo": N(({ disabled: e }) => [j(r.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
2443
+ "annotator-action-redo": N(({ disabled: e }) => [j(r.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
2444
+ "annotator-action-delete": N(({ disabled: e }) => [j(r.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
2445
+ _: 3
2446
+ }, 8, [
2447
+ "svgRef",
2448
+ "backgroundColor",
2449
+ "color",
2450
+ "active",
2451
+ "isCursorPointer"
2452
+ ])) : S("", !0),
2453
+ ls.value ? (O(), C("div", {
2454
+ key: 2,
2455
+ ref_key: "noTitle",
2456
+ ref: yi,
2457
+ class: "vue-data-ui-no-title-space",
2458
+ style: "height:36px; width: 100%; background:transparent"
2459
+ }, null, 512)) : S("", !0),
2460
+ U.value.chart.title.show ? (O(), C("div", {
2461
+ key: 3,
2462
+ ref_key: "chartTitle",
2463
+ ref: hi,
2464
+ class: "vue-ui-xy-title",
2465
+ style: D(`font-family:${U.value.chart.fontFamily}`)
2466
+ }, [(O(), Xe(Ve, {
2467
+ key: `title_${Bi.value}`,
2468
+ config: {
2469
+ title: {
2470
+ cy: "xy-div-title",
2471
+ ...U.value.chart.title
2472
+ },
2473
+ subtitle: {
2474
+ cy: "xy-div-subtitle",
2475
+ ...U.value.chart.title.subtitle
2476
+ }
2477
+ }
2478
+ }, null, 8, ["config"]))], 4)) : S("", !0),
2479
+ w("div", { id: `legend-top-${R.value}` }, null, 8, yt),
2480
+ U.value.chart.userOptions.show && (Wi.value || Gi.value) ? (O(), Xe(M(ni), {
2481
+ ref_key: "userOptionsRef",
2482
+ ref: Ti,
2483
+ key: `user_options_${Ri.value}`,
2484
+ backgroundColor: U.value.chart.backgroundColor,
2485
+ color: U.value.chart.color,
2486
+ isPrinting: M(Ma),
2487
+ isImaging: M(Na),
2488
+ uid: R.value,
2489
+ hasTooltip: U.value.chart.userOptions.buttons.tooltip && U.value.chart.tooltip.show,
2490
+ hasPdf: U.value.chart.userOptions.buttons.pdf,
2491
+ hasXls: U.value.chart.userOptions.buttons.csv,
2492
+ hasImg: U.value.chart.userOptions.buttons.img,
2493
+ hasSvg: U.value.chart.userOptions.buttons.svg,
2494
+ hasLabel: U.value.chart.userOptions.buttons.labels,
2495
+ hasTable: U.value.chart.userOptions.buttons.table,
2496
+ hasStack: e.dataset.length > 1 && U.value.chart.userOptions.buttons.stack,
2497
+ hasFullscreen: U.value.chart.userOptions.buttons.fullscreen,
2498
+ hasAltCopy: U.value.chart.userOptions.buttons.altCopy,
2499
+ isStacked: W.value.isStacked,
2500
+ isFullscreen: Fi.value,
2501
+ chartElement: r.$refs.chart,
2502
+ position: U.value.chart.userOptions.position,
2503
+ isTooltip: W.value.showTooltip,
2504
+ titles: { ...U.value.chart.userOptions.buttonTitles },
2505
+ hasAnnotator: U.value.chart.userOptions.buttons.annotator,
2506
+ isAnnotation: Pi.value,
2507
+ callbacks: U.value.chart.userOptions.callbacks,
2508
+ tableDialog: U.value.table.useDialog,
2509
+ printScale: U.value.chart.userOptions.print.scale,
2510
+ isCursorPointer: ga.value,
2511
+ onToggleFullscreen: Ws,
2512
+ onGeneratePdf: M(Pa),
2513
+ onGenerateCsv: zs,
2514
+ onGenerateImage: hc,
2515
+ onGenerateSvg: mc,
2516
+ onToggleTable: Vs,
2517
+ onToggleLabels: Hs,
2518
+ onToggleStack: So,
2519
+ onToggleTooltip: Us,
2520
+ onToggleAnnotator: po,
2521
+ onCopyAlt: gc,
2522
+ style: D({ visibility: Wi.value ? Gi.value ? "visible" : "hidden" : "visible" })
2523
+ }, Ze({ _: 2 }, [
2524
+ r.$slots.menuIcon ? {
2525
+ name: "menuIcon",
2526
+ fn: N(({ isOpen: e, color: t }) => [j(r.$slots, "menuIcon", E(T({
2527
+ isOpen: e,
2528
+ color: t
2529
+ })), void 0, !0)]),
2530
+ key: "0"
2531
+ } : void 0,
2532
+ r.$slots.optionTooltip ? {
2533
+ name: "optionTooltip",
2534
+ fn: N(() => [j(r.$slots, "optionTooltip", {}, void 0, !0)]),
2535
+ key: "1"
2536
+ } : void 0,
2537
+ r.$slots.optionPdf ? {
2538
+ name: "optionPdf",
2539
+ fn: N(() => [j(r.$slots, "optionPdf", {}, void 0, !0)]),
2540
+ key: "2"
2541
+ } : void 0,
2542
+ r.$slots.optionCsv ? {
2543
+ name: "optionCsv",
2544
+ fn: N(() => [j(r.$slots, "optionCsv", {}, void 0, !0)]),
2545
+ key: "3"
2546
+ } : void 0,
2547
+ r.$slots.optionImg ? {
2548
+ name: "optionImg",
2549
+ fn: N(() => [j(r.$slots, "optionImg", {}, void 0, !0)]),
2550
+ key: "4"
2551
+ } : void 0,
2552
+ r.$slots.optionSvg ? {
2553
+ name: "optionSvg",
2554
+ fn: N(() => [j(r.$slots, "optionSvg", {}, void 0, !0)]),
2555
+ key: "5"
2556
+ } : void 0,
2557
+ r.$slots.optionTable ? {
2558
+ name: "optionTable",
2559
+ fn: N(() => [j(r.$slots, "optionTable", {}, void 0, !0)]),
2560
+ key: "6"
2561
+ } : void 0,
2562
+ r.$slots.optionLabels ? {
2563
+ name: "optionLabels",
2564
+ fn: N(() => [j(r.$slots, "optionLabels", {}, void 0, !0)]),
2565
+ key: "7"
2566
+ } : void 0,
2567
+ r.$slots.optionStack ? {
2568
+ name: "optionStack",
2569
+ fn: N(({ isStack: e }) => [j(r.$slots, "optionStack", E(T({ isStack: e })), void 0, !0)]),
2570
+ key: "8"
2571
+ } : void 0,
2572
+ r.$slots.optionFullscreen ? {
2573
+ name: "optionFullscreen",
2574
+ fn: N(({ toggleFullscreen: e, isFullscreen: t }) => [j(r.$slots, "optionFullscreen", E(T({
2575
+ toggleFullscreen: e,
2576
+ isFullscreen: t
2577
+ })), void 0, !0)]),
2578
+ key: "9"
2579
+ } : void 0,
2580
+ r.$slots.optionAnnotator ? {
2581
+ name: "optionAnnotator",
2582
+ fn: N(({ toggleAnnotator: e, isAnnotator: t }) => [j(r.$slots, "optionAnnotator", E(T({
2583
+ toggleAnnotator: e,
2584
+ isAnnotator: t
2585
+ })), void 0, !0)]),
2586
+ key: "10"
2587
+ } : void 0,
2588
+ r.$slots.optionAltCopy ? {
2589
+ name: "optionAltCopy",
2590
+ fn: N(({ altCopy: e }) => [j(r.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
2591
+ key: "11"
2592
+ } : void 0
2593
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
2594
+ w("div", bt, [(O(), C("svg", {
2595
+ ref_key: "svgRef",
2596
+ ref: B,
2597
+ xmlns: "http://www.w3.org/2000/svg",
2598
+ class: it([{
2599
+ "vue-data-ui-fullscreen--on": Fi.value,
2600
+ "vue-data-ui-fulscreen--off": !Fi.value
2601
+ }, "vue-ui-xy-svg vue-data-ui-svg"]),
2602
+ width: "100%",
2603
+ viewBox: ji.value,
2604
+ style: D({
2605
+ background: "transparent",
2606
+ color: U.value.chart.color,
2607
+ fontFamily: U.value.chart.fontFamily
2608
+ }),
2609
+ "aria-label": ss.value,
2610
+ "aria-describedby": `chart-instructions-${R.value}`,
2611
+ "aria-live": "polite",
2612
+ role: "img",
2613
+ tabindex: "0",
2614
+ preserveAspectRatio: "xMidYMid",
2615
+ onMousemove: Yo,
2616
+ onMouseleave: Xo,
2617
+ onClick: Zo,
2618
+ onFocus: vc,
2619
+ onBlur: yc,
2620
+ onKeydown: bc
2621
+ }, [w("g", {
2622
+ ref_key: "G",
2623
+ ref: bi,
2624
+ class: "vue-data-ui-g"
2625
+ }, [
2626
+ $e(M(ai)),
2627
+ r.$slots["chart-background"] ? (O(), C("foreignObject", {
2628
+ key: 0,
2629
+ x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
2630
+ y: q.value?.top,
2631
+ width: q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
2632
+ height: q.value.height < 0 ? 0 : q.value.height,
2633
+ style: { pointerEvents: "none" }
2634
+ }, [j(r.$slots, "chart-background", {}, void 0, !0)], 8, St)) : S("", !0),
2635
+ Y.value > 0 ? (O(), C("g", Ct, [
2636
+ w("g", wt, [
2637
+ U.value.chart.grid.labels.xAxis.showBaseline ? (O(), C("line", {
2638
+ key: 0,
2639
+ stroke: U.value.chart.grid.stroke,
2640
+ "stroke-width": "1",
2641
+ x1: q.value?.left + Z.value,
2642
+ x2: q.value?.right - Z.value,
2643
+ y1: M(v)(q.value?.bottom),
2644
+ y2: M(v)(q.value?.bottom),
2645
+ "stroke-linecap": "round",
2646
+ style: { animation: "none !important" }
2647
+ }, null, 8, Tt)) : S("", !0),
2648
+ W.value.useIndividualScale ? U.value.chart.grid.showHorizontalLines ? (O(!0), C(b, { key: 2 }, A(ks.value, (e) => (O(), C("g", null, [e.id === F.value && e.yLabels.length ? (O(!0), C(b, { key: 0 }, A(e.yLabels, (t) => (O(), C("line", {
2649
+ x1: q.value?.left + Z.value,
2650
+ x2: q.value?.right - Z.value,
2651
+ y1: M(v)(t.y),
2652
+ y2: M(v)(t.y),
2653
+ stroke: e.color,
2654
+ "stroke-width": .5,
2655
+ "stroke-linecap": "round",
2656
+ style: { animation: "none !important" }
2657
+ }, null, 8, kt))), 256)) : e.yLabels.length ? (O(!0), C(b, { key: 1 }, A(e.yLabels, (e) => (O(), C("line", {
2658
+ x1: q.value?.left + Z.value,
2659
+ x2: q.value?.right - Z.value,
2660
+ y1: M(v)(e.y),
2661
+ y2: M(v)(e.y),
2662
+ stroke: U.value.chart.grid.stroke,
2663
+ "stroke-width": .5,
2664
+ "stroke-linecap": "round",
2665
+ style: { animation: "none !important" }
2666
+ }, null, 8, At))), 256)) : S("", !0)]))), 256)) : S("", !0) : (O(), C(b, { key: 1 }, [U.value.chart.grid.labels.yAxis.showBaseline ? (O(), C("line", {
2667
+ key: 0,
2668
+ stroke: U.value.chart.grid.stroke,
2669
+ "stroke-width": "1",
2670
+ x1: q.value?.left + Z.value,
2671
+ x2: q.value?.left + Z.value,
2672
+ y1: M(v)(q.value?.top),
2673
+ y2: M(v)(q.value?.bottom),
2674
+ "stroke-linecap": "round",
2675
+ style: { animation: "none !important" }
2676
+ }, null, 8, Et)) : S("", !0), U.value.chart.grid.showHorizontalLines ? (O(), C("g", Dt, [(O(!0), C(b, null, A(Cs.value, (e) => (O(), C("line", {
2677
+ x1: q.value?.left + Z.value,
2678
+ x2: q.value?.right,
2679
+ y1: M(v)(e.y),
2680
+ y2: M(v)(e.y),
2681
+ stroke: U.value.chart.grid.stroke,
2682
+ "stroke-width": .5,
2683
+ "stroke-linecap": "round",
2684
+ style: { animation: "none !important" }
2685
+ }, null, 8, Ot))), 256))])) : S("", !0)], 64)),
2686
+ U.value.chart.grid.showVerticalLines ? (O(), C("g", jt, [w("path", {
2687
+ d: io.value,
2688
+ "stroke-width": .5,
2689
+ stroke: U.value.chart.grid.stroke,
2690
+ "stroke-linecap": "round",
2691
+ style: { animation: "none !important" }
2692
+ }, null, 8, Mt)])) : S("", !0),
2693
+ U.value.chart.grid.labels.xAxisLabels.show ? (O(), C("g", Nt, [w("path", {
2694
+ d: ao.value,
2695
+ stroke: U.value.chart.grid.stroke,
2696
+ "stroke-width": 1,
2697
+ "stroke-linecap": "round",
2698
+ style: { animation: "none !important" }
2699
+ }, null, 8, Pt)])) : S("", !0)
2700
+ ]),
2701
+ (O(!0), C(b, null, A(Ds.value, (e, t) => (O(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? j(r.$slots, "bar-gradient", nt({
2702
+ key: 0,
2703
+ ref_for: !0
2704
+ }, {
2705
+ series: e,
2706
+ positiveId: `rectGradient_pos_${t}_${R.value}`,
2707
+ negativeId: `rectGradient_neg_${t}_${R.value}`
2708
+ }), void 0, !0) : (O(), C(b, { key: 1 }, [w("linearGradient", {
2709
+ id: `rectGradient_pos_${t}_${R.value}`,
2710
+ x2: "0%",
2711
+ y2: "100%"
2712
+ }, [
2713
+ w("stop", {
2714
+ offset: "0%",
2715
+ "stop-color": e.color
2716
+ }, null, 8, It),
2717
+ w("stop", {
2718
+ offset: "62%",
2719
+ "stop-color": `${M(d)(e.color, .02)}`
2720
+ }, null, 8, Lt),
2721
+ w("stop", {
2722
+ offset: "100%",
2723
+ "stop-color": `${M(d)(e.color, .05)}`
2724
+ }, null, 8, Rt)
2725
+ ], 8, Ft), w("linearGradient", {
2726
+ id: `rectGradient_neg_${t}_${R.value}`,
2727
+ x2: "0%",
2728
+ y2: "100%"
2729
+ }, [
2730
+ w("stop", {
2731
+ offset: "0%",
2732
+ "stop-color": `${M(d)(e.color, .05)}`
2733
+ }, null, 8, Bt),
2734
+ w("stop", {
2735
+ offset: "38%",
2736
+ "stop-color": `${M(d)(e.color, .02)}`
2737
+ }, null, 8, Vt),
2738
+ w("stop", {
2739
+ offset: "100%",
2740
+ "stop-color": e.color
2741
+ }, null, 8, Ht)
2742
+ ], 8, zt)], 64))]))), 128)),
2743
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
2744
+ id: `plotGradient_${t}_${R.value}`,
2745
+ cx: "50%",
2746
+ cy: "50%",
2747
+ r: "50%",
2748
+ fx: "50%",
2749
+ fy: "50%"
2750
+ }, [w("stop", {
2751
+ offset: "0%",
2752
+ "stop-color": `${M(d)(e.color, .05)}`
2753
+ }, null, 8, Wt), w("stop", {
2754
+ offset: "100%",
2755
+ "stop-color": e.color
2756
+ }, null, 8, Gt)], 8, Ut)]))), 128)),
2757
+ (O(!0), C(b, null, A($.value, (e, n) => (O(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
2758
+ id: `lineGradient_${n}_${R.value}`,
2759
+ cx: "50%",
2760
+ cy: "50%",
2761
+ r: "50%",
2762
+ fx: "50%",
2763
+ fy: "50%"
2764
+ }, [w("stop", {
2765
+ offset: "0%",
2766
+ "stop-color": `${M(d)(e.color, .05)}`
2767
+ }, null, 8, qt), w("stop", {
2768
+ offset: "100%",
2769
+ "stop-color": e.color
2770
+ }, null, 8, Jt)], 8, Kt), r.$slots["area-gradient"] ? j(r.$slots, "area-gradient", nt({
2771
+ key: 0,
2772
+ ref_for: !0
2773
+ }, {
2774
+ series: e,
2775
+ id: `areaGradient_${n}_${R.value}`
2776
+ }), void 0, !0) : (O(), C("linearGradient", {
2777
+ key: 1,
2778
+ id: `areaGradient_${n}_${R.value}`,
2779
+ x1: "0%",
2780
+ x2: "100%",
2781
+ y1: "0%",
2782
+ y2: "0%"
2783
+ }, [w("stop", {
2784
+ offset: "0%",
2785
+ "stop-color": `${M(me)(M(d)(e.color, .03), U.value.line.area.opacity)}`
2786
+ }, null, 8, Xt), w("stop", {
2787
+ offset: "100%",
2788
+ "stop-color": `${M(me)(e.color, U.value.line.area.opacity)}`
2789
+ }, null, 8, Zt)], 8, Yt))]), e.temperatureColors ? (O(), C("defs", Qt, [w("linearGradient", {
2790
+ id: `temperature_grad_line_${n}_${R.value}`,
2791
+ gradientTransform: "rotate(90)"
2792
+ }, [(O(!0), C(b, null, A(e.temperatureColors, (r, i) => (O(), C("stop", {
2793
+ key: `temperature_grad_stop_${n}_${i}_${R.value}`,
2794
+ "stop-color": r,
2795
+ offset: M(t)(i, e.temperatureColors.length)
2796
+ }, null, 8, en))), 128))], 8, $t)])) : S("", !0)], 64))), 128)),
2797
+ (O(!0), C(b, null, A(us.value, (e) => (O(), C("g", null, [e.show ? (O(), C(b, { key: 0 }, [(O(!0), C(b, null, A(e.span, (t, n) => (O(), C("g", null, [w("rect", {
2798
+ style: D({
2799
+ transition: "none",
2800
+ opacity: +(e.from + n >= K.value.start && e.from + n <= K.value.end - 1)
2801
+ }),
2802
+ x: q.value?.left + q.value.width / Y.value * (e.from + n - K.value.start),
2803
+ y: q.value?.top,
2804
+ height: q.value.height < 0 ? 10 : q.value.height,
2805
+ width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
2806
+ fill: M(me)(e.color, e.opacity)
2807
+ }, null, 12, tn)]))), 256)), (O(!0), C(b, null, A(e.span, (t, n) => (O(), C("g", null, [e.caption.text && n === 0 ? (O(), C("foreignObject", {
2808
+ key: 0,
2809
+ x: q.value?.left + q.value.width / Y.value * (e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - q.value.width / Y.value * e.span / 2),
2810
+ y: q.value?.top + e.caption.offsetY,
2811
+ style: D({
2812
+ overflow: "visible",
2813
+ opacity: +(e.to >= K.value.start && e.from < K.value.end)
2814
+ }),
2815
+ height: "1",
2816
+ width: e.caption.width === "auto" ? q.value.width / Y.value * e.span : e.caption.width
2817
+ }, [w("div", { style: D(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, lt(e.caption.text), 5)], 12, nn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
2818
+ uo.value ? (O(), C("g", rn, [(O(!0), C(b, null, A(Y.value, (e, t) => (O(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2819
+ x: q.value?.left + q.value.width / Y.value * t,
2820
+ y: q.value?.top,
2821
+ height: q.value.height < 0 ? 10 : q.value.height,
2822
+ width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
2823
+ fill: [
2824
+ z.value,
2825
+ V.value,
2826
+ Li.value
2827
+ ].includes(t) ? M(me)(U.value.chart.highlighter.color, U.value.chart.highlighter.opacity) : "transparent",
2828
+ style: {
2829
+ transition: "none !important",
2830
+ animation: "none !important"
2831
+ }
2832
+ }, null, 8, an)]))), 128))])) : S("", !0),
2833
+ Ds.value.length ? (O(!0), C(b, { key: 1 }, A(Ds.value, (e, t) => (O(), C("g", {
2834
+ key: `serie_bar_${e.id}`,
2835
+ class: it(`serie_bar_${t}`),
2836
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2837
+ }, [(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C("g", { key: `bar_plot_${t}_${i}` }, [
2838
+ Io(n.value) ? (O(), C("rect", {
2839
+ key: 0,
2840
+ x: Uo(n) + ys.value / 2,
2841
+ y: W.value.useIndividualScale ? Go(n) : Wo(n),
2842
+ height: W.value.useIndividualScale ? Math.abs(Vo(n)) : Math.abs(Bo(n)),
2843
+ width: vs.value - ys.value,
2844
+ rx: U.value.bar.borderRadius,
2845
+ fill: U.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${R.value})` : `url(#rectGradient_neg_${t}_${R.value})` : e.color,
2846
+ stroke: U.value.bar.border.useSerieColor ? e.color : U.value.bar.border.stroke,
2847
+ "stroke-width": U.value.bar.border.strokeWidth,
2848
+ style: D({ transition: M(G) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
2849
+ }, null, 12, on)) : S("", !0),
2850
+ Io(n.value) && r.$slots.pattern ? (O(), C("rect", {
2851
+ key: 1,
2852
+ x: Uo(n) - ys.value / 2,
2853
+ y: W.value.useIndividualScale ? Go(n) : Wo(n),
2854
+ height: W.value.useIndividualScale ? Math.abs(Vo(n)) : Math.abs(Bo(n)),
2855
+ width: vs.value - ys.value,
2856
+ rx: U.value.bar.borderRadius,
2857
+ fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
2858
+ stroke: U.value.bar.border.useSerieColor ? e.color : U.value.bar.border.stroke,
2859
+ "stroke-width": U.value.bar.border.strokeWidth,
2860
+ style: D({ transition: M(G) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
2861
+ }, null, 12, sn)) : S("", !0),
2862
+ n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
2863
+ key: 2,
2864
+ style: { overflow: "visible" },
2865
+ height: "12",
2866
+ width: vs.value + U.value.chart.comments.width,
2867
+ x: Uo(n) - U.value.chart.comments.width / 2 + U.value.chart.comments.offsetX,
2868
+ y: M(y)(n.y) + U.value.chart.comments.offsetY + 6
2869
+ }, [j(r.$slots, "plot-comment", { plot: {
2870
+ ...n,
2871
+ color: e.color,
2872
+ seriesIndex: t,
2873
+ datapointIndex: i
2874
+ } }, void 0, !0)], 8, cn)) : S("", !0)
2875
+ ]))), 128))], 6))), 128)) : S("", !0),
2876
+ !W.value.useIndividualScale && U.value.chart.grid.labels.zeroLine.show ? (O(), C("line", {
2877
+ key: 2,
2878
+ stroke: U.value.chart.grid.stroke,
2879
+ "stroke-width": "1",
2880
+ x1: q.value?.left + Z.value,
2881
+ x2: q.value?.right,
2882
+ y1: M(v)(zo.value),
2883
+ y2: M(v)(zo.value),
2884
+ "stroke-linecap": "round",
2885
+ style: { animation: "none !important" }
2886
+ }, null, 8, ln)) : S("", !0),
2887
+ U.value.chart.highlighter.useLine && (![null, void 0].includes(V.value) || ![null, void 0].includes(z.value)) ? (O(), C("g", un, [w("line", {
2888
+ x1: q.value?.left + q.value.width / Y.value * ((V.value === null ? 0 : V.value) || (z.value === null ? 0 : z.value)) + q.value.width / Y.value / 2,
2889
+ x2: q.value?.left + q.value.width / Y.value * ((V.value === null ? 0 : V.value) || (z.value === null ? 0 : z.value)) + q.value.width / Y.value / 2,
2890
+ y1: M(v)(q.value?.top),
2891
+ y2: M(v)(q.value?.bottom),
2892
+ stroke: U.value.chart.highlighter.color,
2893
+ "stroke-width": U.value.chart.highlighter.lineWidth,
2894
+ "stroke-dasharray": U.value.chart.highlighter.lineDasharray,
2895
+ "stroke-linecap": "round",
2896
+ style: {
2897
+ transition: "none !important",
2898
+ animation: "none !important",
2899
+ "pointer-events": "none"
2900
+ }
2901
+ }, null, 8, dn)])) : S("", !0),
2902
+ U.value.chart.grid.frame.show ? (O(), C("rect", {
2903
+ key: 4,
2904
+ style: {
2905
+ pointerEvents: "none",
2906
+ transition: "none",
2907
+ animation: "none !important"
2908
+ },
2909
+ x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
2910
+ y: q.value?.top,
2911
+ width: q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
2912
+ height: q.value.height < 0 ? 0 : q.value.height,
2913
+ fill: "transparent",
2914
+ stroke: U.value.chart.grid.frame.stroke,
2915
+ "stroke-width": U.value.chart.grid.frame.strokeWidth,
2916
+ "stroke-linecap": U.value.chart.grid.frame.strokeLinecap,
2917
+ "stroke-linejoin": U.value.chart.grid.frame.strokeLinejoin,
2918
+ "stroke-dasharray": U.value.chart.grid.frame.strokeDasharray
2919
+ }, null, 8, fn)) : S("", !0),
2920
+ U.value.chart.grid.labels.show ? (O(), C("g", {
2921
+ key: 5,
2922
+ ref_key: "scaleLabels",
2923
+ ref: wi
2924
+ }, [W.value.useIndividualScale ? (O(), C(b, { key: 0 }, [(O(!0), C(b, null, A(ks.value, (e) => (O(), C("g", null, [w("line", {
2925
+ x1: e.x + Z.value - q.value.individualOffsetX,
2926
+ x2: e.x + Z.value - q.value.individualOffsetX,
2927
+ y1: W.value.isStacked ? M(v)(q.value?.bottom - e.yOffset - e.individualHeight) : M(v)(q.value?.top),
2928
+ y2: W.value.isStacked ? M(v)(q.value?.bottom - e.yOffset) : M(v)(q.value?.bottom),
2929
+ stroke: e.color,
2930
+ "stroke-width": U.value.chart.grid.stroke,
2931
+ "stroke-linecap": "round",
2932
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2933
+ }, null, 12, pn)]))), 256)), (O(!0), C(b, null, A(ks.value, (e) => (O(), C("g", { style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
2934
+ w("text", {
2935
+ fill: e.color,
2936
+ "font-size": H.value.dataLabels * .8,
2937
+ "text-anchor": "middle",
2938
+ transform: `translate(${e.x - H.value.dataLabels * .8 / 2 + Z.value}, ${W.value.isStacked ? q.value?.bottom - e.yOffset - e.individualHeight / 2 : q.value?.top + q.value.height / 2}) rotate(-90)`
2939
+ }, lt(e.name) + " " + lt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2940
+ ${e.scaleLabel}` : ""), 9, mn),
2941
+ (O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C(b, null, [U.value.chart.grid.labels.yAxis.showCrosshairs ? (O(), C("line", {
2942
+ key: 0,
2943
+ x1: e.x + 3 + Z.value - U.value.chart.grid.labels.yAxis.crosshairSize - q.value.individualOffsetX,
2944
+ x2: e.x + Z.value - q.value.individualOffsetX,
2945
+ y1: M(v)(t.y),
2946
+ y2: M(v)(t.y),
2947
+ stroke: e.color,
2948
+ "stroke-width": 1,
2949
+ "stroke-linecap": "round",
2950
+ style: { animation: "none !important" }
2951
+ }, null, 8, hn)) : S("", !0)], 64))), 256)),
2952
+ (O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C("text", {
2953
+ x: e.x - 5 + Z.value - q.value.individualOffsetX,
2954
+ y: M(v)(t.y) + H.value.dataLabels / 3,
2955
+ "font-size": H.value.dataLabels,
2956
+ "text-anchor": "end",
2957
+ fill: e.color
2958
+ }, lt(M(fe)(U.value.chart.grid.labels.yAxis.formatter, t.value, M(a)({
2959
+ p: t.prefix,
2960
+ v: t.value,
2961
+ s: t.suffix,
2962
+ r: U.value.chart.grid.labels.yAxis.rounding
2963
+ }), {
2964
+ datapoint: t.datapoint,
2965
+ seriesIndex: n
2966
+ })), 9, gn))), 256))
2967
+ ], 4))), 256))], 64)) : (O(!0), C(b, { key: 1 }, A(Cs.value, (e, t) => (O(), C("g", { key: `yLabel_${t}` }, [Io(e) && e.value >= Ka.value.min && e.value <= Ka.value.max && U.value.chart.grid.labels.yAxis.showCrosshairs ? (O(), C("line", {
2968
+ key: 0,
2969
+ x1: q.value?.left + Z.value,
2970
+ x2: q.value?.left + Z.value - U.value.chart.grid.labels.yAxis.crosshairSize,
2971
+ y1: M(v)(e.y),
2972
+ y2: M(v)(e.y),
2973
+ stroke: U.value.chart.grid.stroke,
2974
+ "stroke-width": "1",
2975
+ "stroke-linecap": "round",
2976
+ style: { animation: "none !important" }
2977
+ }, null, 8, _n)) : S("", !0), e.value >= Ka.value.min && e.value <= Ka.value.max ? (O(), C("text", {
2978
+ key: 1,
2979
+ x: q.value.scaleLabelX - U.value.chart.grid.labels.yAxis.crosshairSize,
2980
+ y: M(y)(e.y + H.value.dataLabels / 3),
2981
+ "font-size": H.value.dataLabels,
2982
+ "text-anchor": "end",
2983
+ fill: U.value.chart.grid.labels.color
2984
+ }, lt(Io(e.value) ? M(fe)(U.value.chart.grid.labels.yAxis.formatter, e.value, M(a)({
2985
+ p: e.prefix,
2986
+ v: e.value,
2987
+ s: e.suffix,
2988
+ r: U.value.chart.grid.labels.yAxis.rounding
2989
+ })) : ""), 9, vn)) : S("", !0)]))), 128))], 512)) : S("", !0),
2990
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C("g", {
2991
+ key: `serie_plot_${e.id}`,
2992
+ class: it(`serie_plot_${t}`),
2993
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2994
+ }, [(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Io(n.value) ? (O(), Xe(Ue, {
2995
+ key: 0,
2996
+ shape: [
2997
+ "triangle",
2998
+ "square",
2999
+ "diamond",
3000
+ "pentagon",
3001
+ "hexagon",
3002
+ "star"
3003
+ ].includes(e.shape) ? e.shape : "circle",
3004
+ color: U.value.plot.useGradient ? `url(#plotGradient_${t}_${R.value})` : U.value.plot.dot.useSerieColor ? e.color : U.value.plot.dot.fill,
3005
+ plot: {
3006
+ x: M(y)(n.x),
3007
+ y: M(y)(n.y)
3008
+ },
3009
+ radius: V.value !== null && V.value === i || z.value !== null && z.value === i ? (fa.value.plot || 6) * 1.5 : fa.value.plot || 6,
3010
+ stroke: U.value.plot.dot.useSerieColor ? U.value.chart.backgroundColor : e.color,
3011
+ strokeWidth: U.value.plot.dot.strokeWidth,
3012
+ transition: M(G) || !U.value.plot.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.plot.transitionDurationMs}ms ease-in-out`
3013
+ }, null, 8, [
3014
+ "shape",
3015
+ "color",
3016
+ "plot",
3017
+ "radius",
3018
+ "stroke",
3019
+ "strokeWidth",
3020
+ "transition"
3021
+ ])) : S("", !0), n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
3022
+ key: 1,
3023
+ style: { overflow: "visible" },
3024
+ height: "12",
3025
+ width: U.value.chart.comments.width,
3026
+ x: n.x - U.value.chart.comments.width / 2 + U.value.chart.comments.offsetX,
3027
+ y: n.y + U.value.chart.comments.offsetY + 6
3028
+ }, [w("div", bn, [j(r.$slots, "plot-comment", { plot: {
3029
+ ...n,
3030
+ color: e.color,
3031
+ seriesIndex: t,
3032
+ datapointIndex: i
3033
+ } }, void 0, !0)])], 8, yn)) : S("", !0)]))), 128))], 6))), 128)),
3034
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
3035
+ key: `serie_line_${e.id}`,
3036
+ class: it(`serie_line_${t}`),
3037
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3038
+ }, [e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
3039
+ key: 0,
3040
+ d: `M${e.curve}`,
3041
+ stroke: U.value.chart.backgroundColor,
3042
+ "stroke-width": U.value.line.strokeWidth + 1,
3043
+ "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3044
+ fill: "none",
3045
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3046
+ }, null, 12, xn)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
3047
+ key: 1,
3048
+ d: `M${e.straight}`,
3049
+ stroke: U.value.chart.backgroundColor,
3050
+ "stroke-width": U.value.line.strokeWidth + 1,
3051
+ "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3052
+ fill: "none",
3053
+ "stroke-linecap": "round",
3054
+ "stroke-linejoin": "round",
3055
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3056
+ }, null, 12, Sn)) : S("", !0)], 6))), 128)),
3057
+ r.$slots.pattern ? (O(), C("defs", Cn, [(O(!0), C(b, null, A(Ja.value, (e, t) => j(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3058
+ ...e,
3059
+ seriesIndex: e.slotAbsoluteIndex,
3060
+ patternId: `pattern_${R.value}_${t}`
3061
+ }), void 0, !0)), 128))])) : S("", !0),
3062
+ As.value.length && !W.value.isStacked ? (O(), C("g", wn, [(O(!0), C(b, null, A(As.value, (e) => (O(), C("path", {
3063
+ key: e.key,
3064
+ d: e.d,
3065
+ fill: e.color,
3066
+ "fill-opacity": U.value.line.interLine.fillOpacity,
3067
+ stroke: "none",
3068
+ "pointer-events": "none",
3069
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3070
+ }, null, 12, Tn))), 128))])) : S("", !0),
3071
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
3072
+ key: `serie_line_above_${e.id}`,
3073
+ class: it(`serie_line_${t}`),
3074
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3075
+ }, [
3076
+ e.useArea && e.plots.length > 1 ? (O(), C("g", En, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.curveAreas, (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
3077
+ key: 0,
3078
+ d: n,
3079
+ fill: U.value.line.area.useGradient ? `url(#areaGradient_${t}_${R.value})` : M(me)(e.color, U.value.line.area.opacity),
3080
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3081
+ }, null, 12, Dn)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
3082
+ key: 1,
3083
+ d: n,
3084
+ fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
3085
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3086
+ }, null, 12, On)) : S("", !0)], 64))), 128)) : (O(!0), C(b, { key: 1 }, A(e.area.split(";"), (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
3087
+ key: 0,
3088
+ d: `M${n}Z`,
3089
+ fill: U.value.line.area.useGradient ? `url(#areaGradient_${t}_${R.value})` : M(me)(e.color, U.value.line.area.opacity),
3090
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3091
+ }, null, 12, kn)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
3092
+ key: 1,
3093
+ d: `M${n}Z`,
3094
+ fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
3095
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3096
+ }, null, 12, An)) : S("", !0)], 64))), 128))])) : S("", !0),
3097
+ !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
3098
+ key: 1,
3099
+ d: `M${e.curve}`,
3100
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3101
+ "stroke-width": U.value.line.strokeWidth,
3102
+ "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3103
+ fill: "none",
3104
+ "stroke-linecap": "round",
3105
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3106
+ }, null, 12, jn)) : e.hasDashedSegments ? (O(), C(b, { key: 2 }, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.dashedSmooth, (n) => (O(), C("path", {
3107
+ key: n.path,
3108
+ fill: "none",
3109
+ "stroke-linecap": "round",
3110
+ "stroke-linejoin": "round",
3111
+ d: `M ${n.path}`,
3112
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3113
+ "stroke-width": U.value.line.strokeWidth,
3114
+ "stroke-dasharray": n.dashed ? U.value.line.strokeWidth * 2 : 0
3115
+ }, null, 8, Mn))), 128)) : (O(!0), C(b, { key: 1 }, A(e.dashedStraight, (n) => (O(), C("path", {
3116
+ key: n.path,
3117
+ fill: "none",
3118
+ "stroke-linecap": "round",
3119
+ "stroke-linejoin": "round",
3120
+ d: `M ${n.path}`,
3121
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3122
+ "stroke-width": U.value.line.strokeWidth,
3123
+ "stroke-dasharray": n.dashed ? U.value.line.strokeWidth * 2 : 0
3124
+ }, null, 8, Nn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
3125
+ key: 3,
3126
+ d: `M${e.straight}`,
3127
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3128
+ "stroke-width": U.value.line.strokeWidth,
3129
+ "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3130
+ fill: "none",
3131
+ "stroke-linecap": "round",
3132
+ "stroke-linejoin": "round",
3133
+ style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3134
+ }, null, 12, Pn)) : S("", !0),
3135
+ (O(!0), C(b, null, A(e.plots, (n, i) => (O(), C(b, { key: `circle_line_${t}_${i}` }, [!cs.value.linePlot && n && Io(n.value) || cs.value.linePlot && n && Io(n.value) && (V.value !== null && V.value === i || z.value !== null && z.value === i) || Ts(e.plots, i) ? (O(), Xe(Ue, {
3136
+ key: 0,
3137
+ shape: [
3138
+ "triangle",
3139
+ "square",
3140
+ "diamond",
3141
+ "pentagon",
3142
+ "hexagon",
3143
+ "star"
3144
+ ].includes(e.shape) ? e.shape : "circle",
3145
+ color: U.value.line.useGradient ? `url(#lineGradient_${t}_${R.value})` : U.value.line.dot.useSerieColor ? e.color : U.value.line.dot.fill,
3146
+ plot: {
3147
+ x: M(y)(n.x),
3148
+ y: M(y)(n.y)
3149
+ },
3150
+ radius: V.value !== null && V.value === i || z.value !== null && z.value === i ? (fa.value.line || 6) * 1.5 : (Ts(e.plots, i), fa.value.line || 6),
3151
+ stroke: U.value.line.dot.useSerieColor ? U.value.chart.backgroundColor : e.color,
3152
+ strokeWidth: U.value.line.dot.strokeWidth,
3153
+ transition: M(G) || !U.value.line.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out`
3154
+ }, null, 8, [
3155
+ "shape",
3156
+ "color",
3157
+ "plot",
3158
+ "radius",
3159
+ "stroke",
3160
+ "strokeWidth",
3161
+ "transition"
3162
+ ])) : S("", !0), n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
3163
+ key: 1,
3164
+ style: { overflow: "visible" },
3165
+ height: "12",
3166
+ width: U.value.chart.comments.width,
3167
+ x: n.x - U.value.chart.comments.width / 2 + U.value.chart.comments.offsetX,
3168
+ y: n.y + U.value.chart.comments.offsetY + 6
3169
+ }, [w("div", In, [j(r.$slots, "plot-comment", { plot: {
3170
+ ...n,
3171
+ color: e.color,
3172
+ seriesIndex: t,
3173
+ datapointIndex: i
3174
+ } }, void 0, !0)])], 8, Fn)) : S("", !0)], 64))), 128))
3175
+ ], 6))), 128)),
3176
+ (U.value.bar.labels.show || U.value.bar.serieName.show) && W.value.dataLabels.show ? (O(), C("g", Ln, [(O(!0), C(b, null, A(Ds.value, (e, t) => (O(), C(b, { key: `xLabel_bar_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || V.value !== null && V.value === r || z.value !== null && z.value === r) && U.value.bar.labels.show ? (O(), C("text", {
3177
+ key: 0,
3178
+ "text-anchor": ic({
3179
+ plot: n,
3180
+ type: "bar"
3181
+ }),
3182
+ "font-size": H.value.plotLabels,
3183
+ transform: nc({ plot: n }),
3184
+ fill: U.value.bar.labels.color,
3185
+ stroke: U.value.chart.backgroundColor,
3186
+ "paint-order": "stroke",
3187
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3188
+ innerHTML: tc({
3189
+ serie: e,
3190
+ plot: n,
3191
+ type: "bar"
3192
+ })
3193
+ }, null, 12, Rn)) : S("", !0), n && U.value.bar.serieName.show ? (O(), C("text", {
3194
+ key: 1,
3195
+ x: W.value.useIndividualScale && W.value.isStacked ? n.x + X.value.line / 2 : n.x + Ho() * 1.1,
3196
+ y: n.y + (n.value > 0 ? U.value.bar.serieName.offsetY : -U.value.bar.serieName.offsetY * 3),
3197
+ "text-anchor": "middle",
3198
+ "font-size": H.value.plotLabels,
3199
+ fill: U.value.bar.serieName.useSerieColor ? e.color : U.value.bar.serieName.color,
3200
+ "font-weight": U.value.bar.serieName.bold ? "bold" : "normal",
3201
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3202
+ }, lt(U.value.bar.serieName.useAbbreviation ? M(ve)({
3203
+ source: e.name,
3204
+ length: U.value.bar.serieName.abbreviationSize
3205
+ }) : e.name), 13, zn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
3206
+ U.value.plot.labels.show && W.value.dataLabels.show ? (O(), C("g", Bn, [(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || V.value !== null && V.value === r || z.value !== null && z.value === r ? (O(), C("text", {
3207
+ key: 0,
3208
+ transform: rc({
3209
+ plot: n,
3210
+ type: "plot"
3211
+ }),
3212
+ "text-anchor": ic({
3213
+ plot: n,
3214
+ type: "plot"
3215
+ }),
3216
+ "font-size": H.value.plotLabels,
3217
+ fill: U.value.plot.labels.color,
3218
+ stroke: U.value.chart.backgroundColor,
3219
+ "paint-order": "stroke",
3220
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3221
+ innerHTML: tc({
3222
+ serie: e,
3223
+ plot: n,
3224
+ type: "plot"
3225
+ })
3226
+ }, null, 12, Vn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (O(), C("g", Hn, [(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [U.value.plot.tag.followValue ? (O(), C(b, { key: 1 }, [[
3227
+ z.value,
3228
+ V.value,
3229
+ Li.value
3230
+ ].includes(r) && e.useTag ? (O(), C("line", {
3231
+ key: 0,
3232
+ class: "vue-ui-xy-tag-plot",
3233
+ x1: q.value?.left,
3234
+ x2: q.value?.right,
3235
+ y1: n.y,
3236
+ y2: n.y,
3237
+ "stroke-width": 1,
3238
+ "stroke-linecap": "round",
3239
+ "stroke-dasharray": "2",
3240
+ stroke: e.color
3241
+ }, null, 8, qn)) : S("", !0)], 64)) : (O(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (O(), C("foreignObject", {
3242
+ key: 0,
3243
+ x: n.x,
3244
+ y: n.y - 20,
3245
+ height: 24,
3246
+ width: "150",
3247
+ style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3248
+ }, [w("div", {
3249
+ style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
3250
+ innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
3251
+ datapoint: n,
3252
+ seriesIndex: r,
3253
+ serieName: e.name
3254
+ })
3255
+ }, null, 12, Wn)], 12, Un)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (O(), C("foreignObject", {
3256
+ key: 1,
3257
+ x: n.x - e.name.length * (H.value.plotLabels / 2),
3258
+ y: n.y - 20,
3259
+ height: 24,
3260
+ width: "150",
3261
+ style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3262
+ }, [w("div", {
3263
+ style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
3264
+ innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
3265
+ datapoint: n,
3266
+ seriesIndex: r,
3267
+ serieName: e.name
3268
+ })
3269
+ }, null, 12, Kn)], 12, Gn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3270
+ U.value.line.labels.show && W.value.dataLabels.show ? (O(), C("g", Jn, [(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || V.value !== null && V.value === r || z.value !== null && z.value === r ? (O(), C("text", {
3271
+ key: 0,
3272
+ transform: rc({
3273
+ plot: n,
3274
+ type: "line"
3275
+ }),
3276
+ "text-anchor": ic({
3277
+ plot: n,
3278
+ type: "line"
3279
+ }),
3280
+ "font-size": H.value.plotLabels,
3281
+ fill: U.value.line.labels.color,
3282
+ stroke: U.value.chart.backgroundColor,
3283
+ "paint-order": "stroke",
3284
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3285
+ innerHTML: tc({
3286
+ serie: e,
3287
+ plot: n,
3288
+ type: "line"
3289
+ })
3290
+ }, null, 12, Yn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (O(), C("g", Xn, [(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [U.value.line.tag.followValue ? (O(), C(b, { key: 1 }, [[
3291
+ z.value,
3292
+ V.value,
3293
+ Li.value
3294
+ ].includes(r) && e.useTag ? (O(), C("line", {
3295
+ key: 0,
3296
+ class: "vue-ui-xy-tag-line",
3297
+ x1: q.value?.left,
3298
+ x2: q.value?.right,
3299
+ y1: n.y,
3300
+ y2: n.y,
3301
+ "stroke-width": 1,
3302
+ "stroke-linecap": "round",
3303
+ "stroke-dasharray": "2",
3304
+ stroke: e.color
3305
+ }, null, 8, tr)) : S("", !0)], 64)) : (O(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (O(), C("foreignObject", {
3306
+ key: 0,
3307
+ x: n.x,
3308
+ y: n.y - 20,
3309
+ height: 24,
3310
+ width: "150",
3311
+ style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3312
+ }, [w("div", {
3313
+ style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
3314
+ innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
3315
+ datapoint: n,
3316
+ seriesIndex: r,
3317
+ serieName: e.name
3318
+ })
3319
+ }, null, 12, Qn)], 12, Zn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (O(), C("foreignObject", {
3320
+ key: 1,
3321
+ x: n.x,
3322
+ y: n.y - 20,
3323
+ height: 24,
3324
+ width: "150",
3325
+ style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3326
+ }, [w("div", {
3327
+ style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
3328
+ innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
3329
+ datapoint: n,
3330
+ seriesIndex: r,
3331
+ serieName: e.name
3332
+ })
3333
+ }, null, 12, er)], 12, $n)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3334
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (O(), C("text", {
3335
+ key: 0,
3336
+ x: n.x - H.value.plotLabels,
3337
+ y: n.y,
3338
+ "font-size": H.value.plotLabels,
3339
+ "text-anchor": "end",
3340
+ fill: e.color,
3341
+ innerHTML: M(Ee)({
3342
+ content: e.name,
3343
+ fontSize: H.value.plotLabels,
3344
+ fill: e.color,
3345
+ x: n.x - H.value.plotLabels,
3346
+ y: n.y,
3347
+ maxWords: 2
3348
+ }),
3349
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3350
+ }, null, 12, nr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (O(), C("text", {
3351
+ key: 1,
3352
+ x: n.x + H.value.plotLabels,
3353
+ y: n.y,
3354
+ "font-size": H.value.plotLabels,
3355
+ "text-anchor": "start",
3356
+ fill: e.color,
3357
+ innerHTML: M(Ee)({
3358
+ content: e.name,
3359
+ fontSize: H.value.plotLabels,
3360
+ fill: e.color,
3361
+ x: n.x + H.value.plotLabels,
3362
+ y: n.y,
3363
+ maxWords: 2
3364
+ }),
3365
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3366
+ }, null, 12, rr)) : S("", !0)], 64))), 128))], 64))), 128)),
3367
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (O(), C("text", {
3368
+ key: 0,
3369
+ x: n.x - H.value.plotLabels,
3370
+ y: n.y,
3371
+ "font-size": H.value.plotLabels,
3372
+ "text-anchor": "end",
3373
+ fill: e.color,
3374
+ innerHTML: M(Ee)({
3375
+ content: e.name,
3376
+ fontSize: H.value.plotLabels,
3377
+ fill: e.color,
3378
+ x: n.x - H.value.plotLabels,
3379
+ y: n.y,
3380
+ maxWords: 2
3381
+ }),
3382
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3383
+ }, null, 12, ir)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (O(), C("text", {
3384
+ key: 1,
3385
+ x: n.x + H.value.plotLabels,
3386
+ y: n.y,
3387
+ "font-size": H.value.plotLabels,
3388
+ "text-anchor": "start",
3389
+ fill: e.color,
3390
+ innerHTML: M(Ee)({
3391
+ content: e.name,
3392
+ fontSize: H.value.plotLabels,
3393
+ fill: e.color,
3394
+ x: n.x + H.value.plotLabels,
3395
+ y: n.y,
3396
+ maxWords: 2
3397
+ }),
3398
+ style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3399
+ }, null, 12, ar)) : S("", !0)], 64))), 128))], 64))), 128)),
3400
+ (O(!0), C(b, null, A([
3401
+ ...Os.value,
3402
+ ...$.value,
3403
+ ...Ds.value
3404
+ ], (e, t) => (O(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(M(ge)(e.plots).trend) ? (O(), C("g", or, [
3405
+ w("defs", null, [w("marker", {
3406
+ id: `progression_arrow_${t}`,
3407
+ markerWidth: "9",
3408
+ markerHeight: "9",
3409
+ viewBox: "-1 -1 9 9",
3410
+ markerUnits: "userSpaceOnUse",
3411
+ refX: "7",
3412
+ refY: 7 / 2,
3413
+ orient: "auto",
3414
+ overflow: "visible"
3415
+ }, [w("polygon", {
3416
+ points: "0,0 7,3.5 0,7",
3417
+ fill: e.color,
3418
+ stroke: U.value.chart.backgroundColor,
3419
+ "stroke-width": "1",
3420
+ "stroke-linejoin": "round"
3421
+ }, null, 8, cr)], 8, sr)]),
3422
+ e.plots.length > 1 ? (O(), C("line", {
3423
+ key: 0,
3424
+ x1: M(ge)(e.plots).x1 + (e.type === "bar" ? Ho() : 0),
3425
+ x2: M(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
3426
+ y1: M(v)(M(ge)(e.plots).y1),
3427
+ y2: M(v)(M(ge)(e.plots).y2),
3428
+ "stroke-width": 1,
3429
+ stroke: U.value.chart.backgroundColor,
3430
+ "stroke-dasharray": 2,
3431
+ "stroke-linecap": "round",
3432
+ "stroke-linejoin": "round",
3433
+ "marker-end": `url(#progression_arrow_${t})`
3434
+ }, null, 8, lr)) : S("", !0),
3435
+ e.plots.length > 1 ? (O(), C("line", {
3436
+ key: 1,
3437
+ x1: M(ge)(e.plots).x1 + (e.type === "bar" ? Ho() : 0),
3438
+ x2: M(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
3439
+ y1: M(v)(M(ge)(e.plots).y1),
3440
+ y2: M(v)(M(ge)(e.plots).y2),
3441
+ "stroke-width": 1,
3442
+ stroke: e.color,
3443
+ "stroke-dasharray": 2,
3444
+ "stroke-linecap": "round",
3445
+ "stroke-linejoin": "round",
3446
+ "marker-end": `url(#progression_arrow_${t})`
3447
+ }, null, 8, ur)) : S("", !0),
3448
+ e.plots.length > 1 ? (O(), C("text", {
3449
+ key: 2,
3450
+ "text-anchor": "middle",
3451
+ x: M(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
3452
+ y: M(ge)(e.plots).y2 - 12,
3453
+ "font-size": H.value.plotLabels,
3454
+ fill: e.color,
3455
+ stroke: U.value.chart.backgroundColor,
3456
+ "stroke-width": 4,
3457
+ "stroke-linecap": "round",
3458
+ "stroke-linejoin": "round",
3459
+ "paint-order": "stroke fill"
3460
+ }, lt(M(a)({
3461
+ v: M(ge)(e.plots).trend * 100,
3462
+ s: "%",
3463
+ r: 2
3464
+ })), 9, dr)) : S("", !0)
3465
+ ])) : S("", !0)], 64))), 128)),
3466
+ W.value.useIndividualScale && !W.value.isStacked ? (O(), C(b, { key: 13 }, [w("defs", null, [(O(!0), C(b, null, A(ks.value, (e, t) => (O(), C("linearGradient", {
3467
+ id: `individual_scale_gradient_${R.value}_${t}`,
3468
+ x1: "0%",
3469
+ x2: "100%",
3470
+ y1: "0%",
3471
+ y2: "0%"
3472
+ }, [w("stop", {
3473
+ offset: "0%",
3474
+ "stop-color": U.value.chart.backgroundColor,
3475
+ "stop-opacity": "0"
3476
+ }, null, 8, pr), w("stop", {
3477
+ offset: "100%",
3478
+ "stop-color": e.color,
3479
+ "stop-opacity": "0.2"
3480
+ }, null, 8, mr)], 8, fr))), 256))]), (O(!0), C(b, null, A(ks.value, (e, t) => (O(), C("rect", {
3481
+ x: e.x - U.value.chart.grid.labels.yAxis.labelWidth + Z.value - q.value.individualOffsetX,
3482
+ y: q.value?.top,
3483
+ width: U.value.chart.grid.labels.yAxis.labelWidth + q.value.individualOffsetX,
3484
+ height: q.value.height < 0 ? 10 : q.value.height,
3485
+ fill: F.value === e.groupId ? `url(#individual_scale_gradient_${R.value}_${t})` : "transparent",
3486
+ onMouseenter: (t) => F.value = e.groupId,
3487
+ onMouseleave: i[0] ||= (e) => F.value = null
3488
+ }, null, 40, hr))), 256))], 64)) : S("", !0),
3489
+ w("g", null, [U.value.chart.grid.labels.axis.yLabel && !W.value.useIndividualScale ? (O(), C("text", {
3490
+ key: 0,
3491
+ ref_key: "yAxisLabel",
3492
+ ref: Si,
3493
+ "font-size": H.value.yAxis,
3494
+ fill: U.value.chart.grid.labels.color,
3495
+ transform: `translate(${U.value.chart.grid.labels.axis.fontSize}, ${q.value?.top + q.value.height / 2}) rotate(-90)`,
3496
+ "text-anchor": "middle",
3497
+ style: { transition: "none" }
3498
+ }, lt(U.value.chart.grid.labels.axis.yLabel), 9, gr)) : S("", !0), U.value.chart.grid.labels.axis.xLabel ? (O(), C("text", {
3499
+ key: 1,
3500
+ ref_key: "xAxisLabel",
3501
+ ref: xi,
3502
+ "text-anchor": "middle",
3503
+ x: I.value / 2,
3504
+ y: Ai.value - 3,
3505
+ "font-size": H.value.yAxis,
3506
+ fill: U.value.chart.grid.labels.color
3507
+ }, lt(U.value.chart.grid.labels.axis.xLabel), 9, _r)) : S("", !0)]),
3508
+ U.value.chart.grid.labels.xAxisLabels.show ? (O(), C("g", {
3509
+ key: 14,
3510
+ ref_key: "timeLabelsEls",
3511
+ ref: Ci
3512
+ }, [r.$slots["time-label"] ? (O(!0), C(b, { key: 0 }, A(vo.value, (e, t) => j(r.$slots, "time-label", nt({
3513
+ key: `time_label_${e.id}`,
3514
+ ref_for: !0
3515
+ }, {
3516
+ x: q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2,
3517
+ y: q.value?.bottom,
3518
+ fontSize: H.value.xAxis,
3519
+ fill: U.value.chart.grid.labels.xAxisLabels.color,
3520
+ transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + H.value.xAxis * 1.3 + U.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${U.value.chart.grid.labels.xAxisLabels.rotation})`,
3521
+ absoluteIndex: e.absoluteIndex,
3522
+ content: e.text,
3523
+ textAnchor: U.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : U.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3524
+ show: e && e.text
3525
+ }), void 0, !0)), 128)) : (O(!0), C(b, { key: 1 }, A(vo.value, (e, t) => (O(), C("g", { key: `time_label_${t}` }, [e && e.text ? (O(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (O(), C("text", {
3526
+ key: 1,
3527
+ class: "vue-data-ui-time-label",
3528
+ "text-anchor": U.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : U.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3529
+ "font-size": H.value.xAxis,
3530
+ fill: U.value.chart.grid.labels.xAxisLabels.color,
3531
+ transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + H.value.xAxis * 1.5}), rotate(${U.value.chart.grid.labels.xAxisLabels.rotation})`,
3532
+ style: D({ cursor: oo() && ga.value ? "pointer" : "default" }),
3533
+ innerHTML: M(n)({
3534
+ content: String(e.text),
3535
+ fontSize: H.value.xAxis,
3536
+ fill: U.value.chart.grid.labels.xAxisLabels.color,
3537
+ x: 0,
3538
+ y: 0
3539
+ }),
3540
+ onClick: () => bo(e, t)
3541
+ }, null, 12, yr)) : (O(), C("text", {
3542
+ key: 0,
3543
+ class: "vue-data-ui-time-label",
3544
+ "text-anchor": U.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : U.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3545
+ "font-size": H.value.xAxis,
3546
+ fill: U.value.chart.grid.labels.xAxisLabels.color,
3547
+ transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + H.value.xAxis * 1.5}), rotate(${U.value.chart.grid.labels.xAxisLabels.rotation})`,
3548
+ style: D({ cursor: oo() && ga.value ? "pointer" : "default" }),
3549
+ onClick: () => bo(e, t)
3550
+ }, lt(e.text || ""), 13, vr))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
3551
+ ws.value.length && !W.value.isStacked ? (O(), C("g", br, [(O(!0), C(b, null, A(ws.value, (e) => (O(), C("g", { key: e.uid }, [
3552
+ e.yTop && e.show && isFinite(e.yTop) ? (O(), C("line", {
3553
+ key: 0,
3554
+ x1: e.x1,
3555
+ y1: e.yTop,
3556
+ x2: e.x2,
3557
+ y2: e.yTop,
3558
+ stroke: e.config.line.stroke,
3559
+ "stroke-width": e.config.line.strokeWidth,
3560
+ "stroke-dasharray": e.config.line.strokeDasharray,
3561
+ "stroke-linecap": "round",
3562
+ style: { animation: "none !important" }
3563
+ }, null, 8, xr)) : S("", !0),
3564
+ e.yBottom && e.show && isFinite(e.yBottom) ? (O(), C("line", {
3565
+ key: 1,
3566
+ x1: e.x1,
3567
+ y1: e.yBottom,
3568
+ x2: e.x2,
3569
+ y2: e.yBottom,
3570
+ stroke: e.config.line.stroke,
3571
+ "stroke-width": e.config.line.strokeWidth,
3572
+ "stroke-dasharray": e.config.line.strokeDasharray,
3573
+ "stroke-linecap": "round",
3574
+ style: { animation: "none !important" }
3575
+ }, null, 8, Sr)) : S("", !0),
3576
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (O(), C("rect", {
3577
+ key: 2,
3578
+ y: Math.min(e.yTop, e.yBottom),
3579
+ x: e.x1,
3580
+ width: q.value.width,
3581
+ height: M(y)(e.areaHeight, 0),
3582
+ fill: M(me)(e.config.area.fill, e.config.area.opacity),
3583
+ style: { animation: "none !important" }
3584
+ }, null, 8, Cr)) : S("", !0),
3585
+ e.config.label.text && e.show && isFinite(e._box.y) ? (O(), C("rect", nt({
3586
+ key: 3,
3587
+ class: "vue-ui-xy-annotation-label-box"
3588
+ }, { ref_for: !0 }, e._box, { style: {
3589
+ animation: "none !important",
3590
+ transition: "none !important"
3591
+ } }), null, 16)) : S("", !0),
3592
+ e.config.label.text && e.show && isFinite(e._text.y) ? (O(), C("text", {
3593
+ key: 4,
3594
+ id: e.id,
3595
+ class: "vue-ui-xy-annotation-label",
3596
+ x: e._text.x,
3597
+ y: e._text.y,
3598
+ "font-size": e.config.label.fontSize,
3599
+ fill: e.config.label.color,
3600
+ "text-anchor": e.config.label.textAnchor
3601
+ }, lt(e.config.label.text), 9, wr)) : S("", !0)
3602
+ ]))), 128))])) : S("", !0),
3603
+ U.value.chart.timeTag.show && (![null, void 0].includes(V.value) || ![null, void 0].includes(z.value)) ? (O(), C("g", Tr, [(O(), C("foreignObject", {
3604
+ x: $s(),
3605
+ y: q.value?.bottom,
3606
+ width: "200",
3607
+ height: "40",
3608
+ style: { overflow: "visible !important" }
3609
+ }, [w("div", {
3610
+ ref_key: "timeTagEl",
3611
+ ref: Ys,
3612
+ class: "vue-ui-xy-time-tag",
3613
+ style: D(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${U.value.chart.timeTag.backgroundColor};color:${U.value.chart.timeTag.color};font-size:${U.value.chart.timeTag.fontSize}px`),
3614
+ innerHTML: ec.value
3615
+ }, null, 12, Dr)], 8, Er)), w("circle", {
3616
+ cx: q.value?.left + q.value.width / Y.value * ((V.value === null ? 0 : V.value) || (z.value === null ? 0 : z.value)) + q.value.width / Y.value / 2,
3617
+ cy: q.value?.bottom,
3618
+ r: U.value.chart.timeTag.circleMarker.radius,
3619
+ fill: U.value.chart.timeTag.circleMarker.color
3620
+ }, null, 8, Or)])) : S("", !0)
3621
+ ])) : S("", !0),
3622
+ Oa.value ? (O(), C("rect", nt({ key: 2 }, ja.value, {
3623
+ "data-start": K.value.start,
3624
+ "data-end": K.value.end
3625
+ }), null, 16, kr)) : S("", !0),
3626
+ j(r.$slots, "svg", { svg: {
3627
+ ...ca.value,
3628
+ isPrintingImg: M(Ma) || M(Na) || Xi.value,
3629
+ isPrintingSvg: Zi.value,
3630
+ data: [
3631
+ ...$.value,
3632
+ ...Ds.value,
3633
+ ...Os.value
3634
+ ],
3635
+ drawingArea: q.value
3636
+ } }, void 0, !0)
3637
+ ], 512)], 46, xt)), r.$slots.hint ? (O(), C("div", Ar, [j(r.$slots, "hint", E(T({
3638
+ hint: U.value.a11y.translations.keyboardNavigation,
3639
+ isVisible: _c.value
3640
+ })), void 0, !0)])) : S("", !0)]),
3641
+ r.$slots.watermark ? (O(), C("div", jr, [j(r.$slots, "watermark", E(T({ isPrinting: M(Ma) || M(Na) || Xi.value || Zi.value })), void 0, !0)])) : S("", !0),
3642
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `tag_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `tag_line_${t}_${r}` }, [[
3643
+ z.value,
3644
+ V.value,
3645
+ Li.value
3646
+ ].includes(r) && e.useTag && e.useTag === "end" && U.value.line.tag.followValue ? (O(), C("div", {
3647
+ key: 0,
3648
+ ref_for: !0,
3649
+ ref: (e) => lo(t, r, e, "right", "line"),
3650
+ class: "vue-ui-xy-tag",
3651
+ "data-tag": "right",
3652
+ style: D({
3653
+ position: "fixed",
3654
+ top: M(p)({
3655
+ svgElement: B.value,
3656
+ x: q.value?.right + U.value.line.tag.fontSize / 1.5,
3657
+ y: n.y,
3658
+ element: Ki.value[`${t}_${r}_right_line`],
3659
+ position: "right"
3660
+ })?.top + "px",
3661
+ left: M(p)({
3662
+ svgElement: B.value,
3663
+ x: q.value?.right + U.value.line.tag.fontSize / 1.5,
3664
+ y: n.y,
3665
+ element: Ki.value[`${t}_${r}_right_line`],
3666
+ position: "right"
3667
+ })?.left + "px",
3668
+ height: "fit-content",
3669
+ width: "fit-content",
3670
+ background: e.color,
3671
+ color: M(xe)(e.color),
3672
+ padding: "0 6px",
3673
+ fontSize: U.value.line.tag.fontSize + "px",
3674
+ opacity: 1
3675
+ })
3676
+ }, [(O(), C("svg", Mr, [w("path", {
3677
+ d: "M 0,10 10,0 10,20 Z",
3678
+ fill: e.color,
3679
+ stroke: "none"
3680
+ }, null, 8, Nr)])), w("div", {
3681
+ class: "vue-ui-xy-tag-content",
3682
+ innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
3683
+ datapoint: n,
3684
+ seriesIndex: r,
3685
+ serieName: e.name
3686
+ })
3687
+ }, null, 8, Pr)], 4)) : S("", !0), [
3688
+ z.value,
3689
+ V.value,
3690
+ Li.value
3691
+ ].includes(r) && e.useTag && e.useTag === "start" && U.value.line.tag.followValue ? (O(), C("div", {
3692
+ key: 1,
3693
+ ref_for: !0,
3694
+ ref: (e) => lo(t, r, e, "left", "line"),
3695
+ class: "vue-ui-xy-tag",
3696
+ "data-tag": "left",
3697
+ style: D({
3698
+ position: "fixed",
3699
+ top: M(p)({
3700
+ svgElement: B.value,
3701
+ x: q.value?.left - U.value.line.tag.fontSize / 1.5,
3702
+ y: n.y,
3703
+ element: Ki.value[`${t}_${r}_left_line`],
3704
+ position: "left"
3705
+ })?.top + "px",
3706
+ left: M(p)({
3707
+ svgElement: B.value,
3708
+ x: q.value?.left - U.value.line.tag.fontSize / 1.5,
3709
+ y: n.y,
3710
+ element: Ki.value[`${t}_${r}_left_line`],
3711
+ position: "left"
3712
+ })?.left + "px",
3713
+ height: "fit-content",
3714
+ width: "fit-content",
3715
+ background: e.color,
3716
+ color: M(xe)(e.color),
3717
+ padding: "0 6px",
3718
+ fontSize: U.value.line.tag.fontSize + "px",
3719
+ opacity: 1
3720
+ })
3721
+ }, [(O(), C("svg", Fr, [w("path", {
3722
+ d: "M 0,0 10,10 0,20 Z",
3723
+ fill: e.color,
3724
+ stroke: "none"
3725
+ }, null, 8, Ir)])), w("div", {
3726
+ class: "vue-ui-xy-tag-content",
3727
+ innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
3728
+ datapoint: n,
3729
+ seriesIndex: r,
3730
+ serieName: e.name
3731
+ })
3732
+ }, null, 8, Lr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3733
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `tag_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `tag_plot_${t}_${r}` }, [[
3734
+ z.value,
3735
+ V.value,
3736
+ Li.value
3737
+ ].includes(r) && e.useTag && e.useTag === "end" && U.value.plot.tag.followValue ? (O(), C("div", {
3738
+ key: 0,
3739
+ ref_for: !0,
3740
+ ref: (e) => lo(t, r, e, "right", "plot"),
3741
+ class: "vue-ui-xy-tag",
3742
+ "data-tag": "right",
3743
+ style: D({
3744
+ position: "fixed",
3745
+ top: M(p)({
3746
+ svgElement: B.value,
3747
+ x: q.value?.right + U.value.plot.tag.fontSize / 1.5,
3748
+ y: n.y,
3749
+ element: Ki.value[`${t}_${r}_right_plot`],
3750
+ position: "right"
3751
+ })?.top + "px",
3752
+ left: M(p)({
3753
+ svgElement: B.value,
3754
+ x: q.value?.right + U.value.plot.tag.fontSize / 1.5,
3755
+ y: n.y,
3756
+ element: Ki.value[`${t}_${r}_right_plot`],
3757
+ position: "right"
3758
+ })?.left + "px",
3759
+ height: "fit-content",
3760
+ width: "fit-content",
3761
+ background: e.color,
3762
+ color: M(xe)(e.color),
3763
+ padding: "0 6px",
3764
+ fontSize: U.value.plot.tag.fontSize + "px",
3765
+ opacity: 1
3766
+ })
3767
+ }, [(O(), C("svg", Rr, [w("path", {
3768
+ d: "M 0,10 10,0 10,20 Z",
3769
+ fill: e.color,
3770
+ stroke: "none"
3771
+ }, null, 8, zr)])), w("div", {
3772
+ class: "vue-ui-xy-tag-content",
3773
+ innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
3774
+ datapoint: n,
3775
+ seriesIndex: r,
3776
+ serieName: e.name
3777
+ })
3778
+ }, null, 8, Br)], 4)) : S("", !0), [
3779
+ z.value,
3780
+ V.value,
3781
+ Li.value
3782
+ ].includes(r) && e.useTag && e.useTag === "start" && U.value.plot.tag.followValue ? (O(), C("div", {
3783
+ key: 1,
3784
+ ref_for: !0,
3785
+ ref: (e) => lo(t, r, e, "left", "plot"),
3786
+ class: "vue-ui-xy-tag",
3787
+ "data-tag": "left",
3788
+ style: D({
3789
+ position: "fixed",
3790
+ top: M(p)({
3791
+ svgElement: B.value,
3792
+ x: q.value?.left - U.value.plot.tag.fontSize / 1.5,
3793
+ y: n.y,
3794
+ element: Ki.value[`${t}_${r}_left_plot`],
3795
+ position: "left"
3796
+ })?.top + "px",
3797
+ left: M(p)({
3798
+ svgElement: B.value,
3799
+ x: q.value?.left - U.value.plot.tag.fontSize / 1.5,
3800
+ y: n.y,
3801
+ element: Ki.value[`${t}_${r}_left_plot`],
3802
+ position: "left"
3803
+ })?.left + "px",
3804
+ height: "fit-content",
3805
+ width: "fit-content",
3806
+ background: e.color,
3807
+ color: M(xe)(e.color),
3808
+ padding: "0 6px",
3809
+ fontSize: U.value.plot.tag.fontSize + "px",
3810
+ opacity: 1
3811
+ })
3812
+ }, [(O(), C("svg", Vr, [w("path", {
3813
+ d: "M 0,0 10,10 0,20 Z",
3814
+ fill: e.color,
3815
+ stroke: "none"
3816
+ }, null, 8, Hr)])), w("div", {
3817
+ class: "vue-ui-xy-tag-content",
3818
+ innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
3819
+ datapoint: n,
3820
+ seriesIndex: r,
3821
+ serieName: e.name
3822
+ })
3823
+ }, null, 8, Ur)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3824
+ U.value.chart.zoom.show && Ea.value > 6 && ha.value && Do.value ? (O(), Xe(Ge, {
3825
+ key: 6,
3826
+ ref_key: "chartSlicer",
3827
+ ref: gi,
3828
+ uuid: R.value,
3829
+ allMinimaps: xs.value,
3830
+ background: U.value.chart.zoom.color,
3831
+ borderColor: U.value.chart.backgroundColor,
3832
+ customFormat: U.value.chart.zoom.customFormat,
3833
+ cutNullValues: U.value.line.cutNullValues,
3834
+ enableRangeHandles: U.value.chart.zoom.enableRangeHandles,
3835
+ enableSelectionDrag: U.value.chart.zoom.enableSelectionDrag,
3836
+ end: K.value.end,
3837
+ focusOnDrag: U.value.chart.zoom.focusOnDrag,
3838
+ focusRangeRatio: U.value.chart.zoom.focusRangeRatio,
3839
+ fontSize: U.value.chart.zoom.fontSize,
3840
+ useResetSlot: U.value.chart.zoom.useResetSlot,
3841
+ immediate: !U.value.chart.zoom.preview.enable,
3842
+ inputColor: U.value.chart.zoom.color,
3843
+ isPreview: Oa.value,
3844
+ labelLeft: J.value[0] ? J.value[0].text : "",
3845
+ labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
3846
+ max: Ea.value,
3847
+ min: 0,
3848
+ minimap: bs.value,
3849
+ minimapCompact: U.value.chart.zoom.minimap.compact,
3850
+ minimapFrameColor: U.value.chart.zoom.minimap.frameColor,
3851
+ minimapIndicatorColor: U.value.chart.zoom.minimap.indicatorColor,
3852
+ minimapLineColor: U.value.chart.zoom.minimap.lineColor,
3853
+ minimapMerged: U.value.chart.zoom.minimap.merged,
3854
+ minimapSelectedColor: U.value.chart.zoom.minimap.selectedColor,
3855
+ minimapSelectedColorOpacity: U.value.chart.zoom.minimap.selectedColorOpacity,
3856
+ minimapSelectedIndex: V.value,
3857
+ minimapSelectionRadius: U.value.chart.zoom.minimap.selectionRadius,
3858
+ preciseLabels: Fs.value.length ? Fs.value : mo.value,
3859
+ refreshEndPoint: U.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ta(e.series).length)) : U.value.chart.zoom.endIndex + 1,
3860
+ refreshStartPoint: U.value.chart.zoom.startIndex === null ? 0 : U.value.chart.zoom.startIndex,
3861
+ selectColor: U.value.chart.zoom.highlightColor,
3862
+ selectedSeries: Ss.value,
3863
+ smoothMinimap: U.value.chart.zoom.minimap.smooth,
3864
+ start: K.value.start,
3865
+ textColor: U.value.chart.color,
3866
+ timeLabels: mo.value,
3867
+ usePreciseLabels: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !U.value.chart.zoom.useDefaultFormat,
3868
+ valueEnd: K.value.end,
3869
+ valueStart: K.value.start,
3870
+ verticalHandles: U.value.chart.zoom.minimap.verticalHandles,
3871
+ minScale: U.value.chart.grid.labels.yAxis.scaleMin,
3872
+ maxScale: U.value.chart.grid.labels.yAxis.scaleMax,
3873
+ maxWidth: U.value.chart.zoom.maxWidth,
3874
+ additionalMinimapHeight: U.value.chart.zoom.minimap.additionalHeight,
3875
+ handleType: U.value.chart.zoom.minimap.handleType,
3876
+ handleIconColor: U.value.chart.zoom.minimap.handleIconColor,
3877
+ handleBorderWidth: U.value.chart.zoom.minimap.handleBorderWidth,
3878
+ handleBorderColor: U.value.chart.zoom.minimap.handleBorderColor,
3879
+ handleFill: U.value.chart.zoom.minimap.handleFill,
3880
+ handleWidth: U.value.chart.zoom.minimap.handleWidth,
3881
+ isCursorPointer: ga.value,
3882
+ onFutureEnd: i[1] ||= (e) => ka("end", e),
3883
+ onFutureStart: i[2] ||= (e) => ka("start", e),
3884
+ onReset: Fo,
3885
+ onTrapMouse: xo,
3886
+ "onUpdate:end": Po,
3887
+ "onUpdate:start": No
3888
+ }, {
3889
+ "reset-action": N(({ reset: e }) => [j(r.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
3890
+ _: 3
3891
+ }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
3892
+ w("div", { id: `legend-bottom-${R.value}` }, null, 8, Wr),
3893
+ Ji.value && (U.value.chart.legend.show || r.$slots.legend) ? (O(), Xe(Ye, {
3894
+ key: 7,
3895
+ to: U.value.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
3896
+ }, [w("div", {
3897
+ ref_key: "chartLegend",
3898
+ ref: _i
3899
+ }, [j(r.$slots, "legend", { legend: Ya.value }, () => [U.value.chart.legend.show ? (O(), C("div", {
3900
+ key: 0,
3901
+ class: "vue-ui-xy-legend",
3902
+ style: D({ fontSize: `var(--legend-font-size, ${U.value.chart.legend.fontSize ?? 14}px)` })
3903
+ }, [U.value.chart.legend.selectAllToggle.show && Ya.value.length > 2 && !M(G) ? (O(), Xe(qe, {
3904
+ key: 0,
3905
+ backgroundColor: U.value.chart.legend.selectAllToggle.backgroundColor,
3906
+ color: U.value.chart.legend.selectAllToggle.color,
3907
+ fontSize: U.value.chart.legend.fontSize,
3908
+ checked: L.value.length > 0,
3909
+ onToggle: ts
3910
+ }, null, 8, [
3911
+ "backgroundColor",
3912
+ "color",
3913
+ "fontSize",
3914
+ "checked"
3915
+ ])) : S("", !0), (O(!0), C(b, null, A(Ya.value, (e, t) => (O(), C("div", {
3916
+ key: `div_legend_item_${t}`,
3917
+ onClick: (t) => rs(e),
3918
+ onKeydown: (t) => ns(t, e),
3919
+ role: "button",
3920
+ tabindex: "0",
3921
+ class: it({
3922
+ "vue-ui-xy-legend-item-alone": Ya.value.length === 1,
3923
+ "vue-ui-xy-legend-item": !0,
3924
+ "vue-ui-xy-legend-item-segregated": L.value.includes(e.id)
3925
+ }),
3926
+ style: D({ cursor: ga.value ? "pointer" : "default" })
3927
+ }, [Ni.value[e.type] === "line" ? (O(), C("svg", Kr, [w("rect", {
3928
+ x: "0",
3929
+ y: "7.5",
3930
+ rx: "1.5",
3931
+ stroke: U.value.chart.backgroundColor,
3932
+ "stroke-width": .5,
3933
+ height: "3",
3934
+ width: "20",
3935
+ fill: e.color
3936
+ }, null, 8, qr), $e(Ue, {
3937
+ plot: {
3938
+ x: 10,
3939
+ y: 9
3940
+ },
3941
+ radius: 4,
3942
+ color: e.color,
3943
+ shape: [
3944
+ "triangle",
3945
+ "square",
3946
+ "diamond",
3947
+ "pentagon",
3948
+ "hexagon",
3949
+ "star"
3950
+ ].includes(e.shape) ? e.shape : "circle",
3951
+ stroke: U.value.chart.backgroundColor,
3952
+ strokeWidth: .5
3953
+ }, null, 8, [
3954
+ "color",
3955
+ "shape",
3956
+ "stroke"
3957
+ ])])) : Ni.value[e.type] === "bar" ? (O(), C("svg", Jr, [Ni.value[e.type] === "bar" && r.$slots.pattern ? (O(), C("rect", {
3958
+ key: 0,
3959
+ x: "4",
3960
+ y: "4",
3961
+ rx: "1",
3962
+ height: "32",
3963
+ width: "32",
3964
+ stroke: "none",
3965
+ fill: e.color
3966
+ }, null, 8, Yr)) : S("", !0), Ni.value[e.type] === "bar" ? (O(), C("rect", {
3967
+ key: 1,
3968
+ x: "4",
3969
+ y: "4",
3970
+ rx: "1",
3971
+ height: "32",
3972
+ width: "32",
3973
+ stroke: "none",
3974
+ fill: r.$slots.pattern ? `url(#pattern_${R.value}_${e.slotAbsoluteIndex})` : e.color
3975
+ }, null, 8, Xr)) : S("", !0)])) : (O(), C("svg", Zr, [$e(Ue, {
3976
+ plot: {
3977
+ x: 6,
3978
+ y: 6
3979
+ },
3980
+ radius: 5,
3981
+ color: e.color,
3982
+ shape: [
3983
+ "triangle",
3984
+ "square",
3985
+ "diamond",
3986
+ "pentagon",
3987
+ "hexagon",
3988
+ "star"
3989
+ ].includes(e.shape) ? e.shape : "circle"
3990
+ }, null, 8, ["color", "shape"])])), w("span", { style: D(`color:${U.value.chart.legend.color}`) }, lt(e.name), 5)], 46, Gr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
3991
+ r.$slots.source ? (O(), C("div", {
3992
+ key: 8,
3993
+ ref_key: "source",
3994
+ ref: vi,
3995
+ dir: "auto"
3996
+ }, [j(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
3997
+ $e(M(ti), {
3998
+ teleportTo: U.value.chart.tooltip.teleportTo,
3999
+ show: W.value.showTooltip && Ii.value,
4000
+ backgroundColor: U.value.chart.tooltip.backgroundColor,
4001
+ color: U.value.chart.tooltip.color,
4002
+ fontSize: U.value.chart.tooltip.fontSize,
4003
+ borderRadius: U.value.chart.tooltip.borderRadius,
4004
+ borderColor: U.value.chart.tooltip.borderColor,
4005
+ borderWidth: U.value.chart.tooltip.borderWidth,
4006
+ backgroundOpacity: U.value.chart.tooltip.backgroundOpacity,
4007
+ position: U.value.chart.tooltip.position,
4008
+ offsetY: U.value.chart.tooltip.offsetY,
4009
+ parent: r.$refs.chart,
4010
+ content: Is.value,
4011
+ isFullscreen: Fi.value,
4012
+ isCustom: U.value.chart.tooltip.customFormat && typeof U.value.chart.tooltip.customFormat == "function",
4013
+ smooth: U.value.chart.tooltip.smooth,
4014
+ backdropFilter: U.value.chart.tooltip.backdropFilter,
4015
+ smoothForce: U.value.chart.tooltip.smoothForce,
4016
+ smoothSnapThreshold: U.value.chart.tooltip.smoothSnapThreshold,
4017
+ isA11yMode: Qi.value != null,
4018
+ a11yPosition: $i.value
4019
+ }, {
4020
+ "tooltip-before": N(() => [j(r.$slots, "tooltip-before", E(T({ ...js.value })), void 0, !0)]),
4021
+ tooltip: N(() => [j(r.$slots, "tooltip", E(T({ ...js.value })), void 0, !0)]),
4022
+ "tooltip-after": N(() => [j(r.$slots, "tooltip-after", E(T({ ...js.value })), void 0, !0)]),
4023
+ _: 3
4024
+ }, 8, [
4025
+ "teleportTo",
4026
+ "show",
4027
+ "backgroundColor",
4028
+ "color",
4029
+ "fontSize",
4030
+ "borderRadius",
4031
+ "borderColor",
4032
+ "borderWidth",
4033
+ "backgroundOpacity",
4034
+ "position",
4035
+ "offsetY",
4036
+ "parent",
4037
+ "content",
4038
+ "isFullscreen",
4039
+ "isCustom",
4040
+ "smooth",
4041
+ "backdropFilter",
4042
+ "smoothForce",
4043
+ "smoothSnapThreshold",
4044
+ "isA11yMode",
4045
+ "a11yPosition"
4046
+ ]),
4047
+ ha.value && U.value.chart.userOptions.buttons.table ? (O(), Xe(st(sc.value.component), nt({ key: 9 }, sc.value.props, {
4048
+ ref_key: "tableUnit",
4049
+ ref: Yi,
4050
+ onClose: cc
4051
+ }), Ze({
4052
+ content: N(() => [w("div", { style: D(`${M(Ma) || U.value.table.useDialog ? "" : "max-height:400px"};${U.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${U.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", Qr, [ht(w("input", {
4053
+ type: "checkbox",
4054
+ "onUpdate:modelValue": i[4] ||= (e) => Vi.value = e
4055
+ }, null, 512), [[ft, Vi.value]]), w("div", {
4056
+ onClick: i[5] ||= (e) => Vi.value = !Vi.value,
4057
+ style: D({ cursor: ga.value ? "pointer" : "default" })
4058
+ }, [$e(M(ri), {
4059
+ name: "chartLine",
4060
+ size: 20,
4061
+ stroke: U.value.chart.color
4062
+ }, null, 8, ["stroke"])], 4)]), Vi.value ? (O(), Xe(M(ii), {
4063
+ key: `sparkline_${Hi.value}`,
4064
+ dataset: fs.value,
4065
+ config: ps.value
4066
+ }, null, 8, ["dataset", "config"])) : (O(), Xe(M(ei), {
4067
+ key: `table_${zi.value}`,
4068
+ colNames: Rs.value.colNames,
4069
+ head: Rs.value.head,
4070
+ body: Rs.value.body,
4071
+ config: Rs.value.config,
4072
+ title: U.value.table.useDialog ? "" : sc.value.title,
4073
+ withCloseButton: !U.value.table.useDialog,
4074
+ onClose: cc
4075
+ }, {
4076
+ th: N(({ th: e }) => [w("div", { innerHTML: e }, null, 8, $r)]),
4077
+ td: N(({ td: e }) => [Qe(lt(isNaN(Number(e)) ? e : M(a)({
4078
+ p: U.value.chart.labels.prefix,
4079
+ v: e,
4080
+ s: U.value.chart.labels.suffix,
4081
+ r: U.value.table.rounding
4082
+ })), 1)]),
4083
+ _: 1
4084
+ }, 8, [
4085
+ "colNames",
4086
+ "head",
4087
+ "body",
4088
+ "config",
4089
+ "title",
4090
+ "withCloseButton"
4091
+ ]))], 4)]),
4092
+ _: 2
4093
+ }, [U.value.table.useDialog ? {
4094
+ name: "title",
4095
+ fn: N(() => [Qe(lt(sc.value.title), 1)]),
4096
+ key: "0"
4097
+ } : void 0, U.value.table.useDialog ? {
4098
+ name: "actions",
4099
+ fn: N(() => [w("button", {
4100
+ tabindex: "0",
4101
+ class: "vue-ui-user-options-button",
4102
+ onClick: i[3] ||= (e) => zs(U.value.chart.userOptions.callbacks.csv)
4103
+ }, [$e(M(ri), {
4104
+ name: "fileCsv",
4105
+ stroke: sc.value.props.color
4106
+ }, null, 8, ["stroke"])])]),
4107
+ key: "1"
4108
+ } : void 0]), 1040)) : S("", !0),
4109
+ j(r.$slots, "skeleton", {}, () => [M(G) ? (O(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4110
+ ], 46, _t));
4111
+ }
4112
+ }, [["__scopeId", "data-v-e28cb293"]]);
4113
+ //#endregion
4114
+ export { gt as n, P as t };