vue-data-ui 3.23.0 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,67 +1,67 @@
1
- import { A as e, B as t, Bt as n, G as r, H as i, I as a, Jt as o, Kt as s, L as c, N as l, P as u, Pt as d, S as f, U as p, V as m, Vt as h, X as g, _, c as v, i as y, k as b, l as x, nt as S, o as ee, q as C, t as te, v as ne, vt as w, zt as T } from "./lib-BuMGJ_a0.js";
2
- import { t as E } from "./useTimeLabels-B9CEuiLZ.js";
3
- import { t as D } from "./useConfig-BilxnBNr.js";
4
- import { t as re } from "./vue_ui_xy-BA3-_LCx.js";
5
- import { _ as O, d as k, f as A, g as j, h as M, l as ie, m as ae, p as N, u as P, v as F } from "./render-common-Ktg2LZFG.js";
1
+ import { A as e, B as t, Bt as n, G as r, H as i, I as a, Jt as o, Kt as s, L as c, N as l, P as u, Pt as d, S as f, U as p, V as m, Vt as h, X as g, _, c as v, i as y, k as b, l as x, nt as S, o as ee, q as C, t as w, v as te, vt as T, zt as E } from "./lib-Bttd6u5E.js";
2
+ import { t as D } from "./useTimeLabels-d2f-W1L4.js";
3
+ import { t as O } from "./useConfig-DlNpz6P8.js";
4
+ import { t as ne } from "./vue_ui_xy-BA3-_LCx.js";
5
+ import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-C0PEe9so.js";
6
6
  //#region src/svg/vue-ui-xy/create.js
7
- var { vue_ui_xy: I } = D();
8
- function oe({ config: e = {}, dataset: t = [] } = {}) {
7
+ var { vue_ui_xy: z } = O();
8
+ function re({ config: e = {}, dataset: t = [] } = {}) {
9
9
  let n = e ?? {}, r = o({
10
10
  userConfig: n,
11
- defaultConfig: I
11
+ defaultConfig: z
12
12
  });
13
- w(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => o({
14
- defaultConfig: I.chart.highlightArea,
13
+ T(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => o({
14
+ defaultConfig: z.chart.highlightArea,
15
15
  userConfig: e
16
16
  })) : r.chart.highlightArea = [o({
17
- defaultConfig: I.chart.highlightArea,
17
+ defaultConfig: z.chart.highlightArea,
18
18
  userConfig: n.chart.highlightArea
19
- })]), w(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => o({
20
- defaultConfig: I.chart.annotations[0],
19
+ })]), T(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => o({
20
+ defaultConfig: z.chart.annotations[0],
21
21
  userConfig: e
22
- })) : r.chart.annotations = [], w(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (r.chart.grid.position = "middle");
22
+ })) : r.chart.annotations = [], T(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (r.chart.grid.position = "middle");
23
23
  let i = r.theme;
24
24
  if (!i) return {
25
25
  ...r,
26
26
  customPalette: r.customPalette?.length ? r.customPalette : d
27
27
  };
28
28
  let a = o({
29
+ userConfig: ne[i] || {},
30
+ defaultConfig: r
31
+ }), c = o({
29
32
  userConfig: n,
30
- defaultConfig: o({
31
- userConfig: re[i] || {},
32
- defaultConfig: r
33
- })
33
+ defaultConfig: a
34
34
  });
35
35
  return {
36
- ...a,
37
- customPalette: a.customPalette?.length ? a.customPalette : s[i] || d
36
+ ...c,
37
+ customPalette: c.customPalette?.length ? c.customPalette : s[i] || d
38
38
  };
39
39
  }
40
- function L(e) {
40
+ function B(e) {
41
41
  return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
42
42
  }
43
- function se(e) {
43
+ function ie(e) {
44
44
  return e != null && Number.isFinite(Number(e));
45
45
  }
46
- function ce(e) {
47
- return e.flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(L).map((e) => Number(e.x));
46
+ function ae(e) {
47
+ return e.flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(B).map((e) => Number(e.x));
48
48
  }
49
- function le({ dataset: e, config: t }) {
50
- let n = ce(e);
49
+ function oe({ dataset: e, config: t }) {
50
+ let n = ae(e);
51
51
  if (!n.length) return {
52
52
  min: 0,
53
53
  max: 1,
54
54
  ticks: [0, 1]
55
55
  };
56
- let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = se(r) ? Number(r) : Math.min(...n), o = se(i) ? Number(i) : Math.max(...n);
57
- return _(a === o ? a - 1 : a, a === o ? o + 1 : o, Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6);
56
+ let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n), s = a === o ? a - 1 : a, c = a === o ? o + 1 : o, l = Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6;
57
+ return _(s, c, l);
58
58
  }
59
- function ue({ xValue: e, xScale: t, drawingArea: n, config: r }) {
59
+ function se({ xValue: e, xScale: t, drawingArea: n, config: r }) {
60
60
  let i = (Number(e) - t.min) / (t.max - t.min || 1), a = r?.chart?.grid?.labels?.xAxis?.reverse ? 1 - i : i;
61
61
  return n.left + n.width * a;
62
62
  }
63
- function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600, selectedXIndex: i, additionalSvgContent: a = "", svgTitle: o = "" } = {}) {
64
- let s = oe({
63
+ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600, selectedXIndex: i, additionalSvgContent: a = "", svgTitle: o = "" } = {}) {
64
+ let s = re({
65
65
  config: t,
66
66
  dataset: e
67
67
  }), c = {
@@ -71,18 +71,18 @@ function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
71
71
  bottom: r - s.chart.padding.bottom
72
72
  };
73
73
  c.width = c.right - c.left, c.height = c.bottom - c.top;
74
- let l = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), u = _(Math.min(0, ...l), Math.max(1, ...l), 6), p = e.some((e) => Array.isArray(e.series) ? e.series.some(L) : !1), m = p ? le({
74
+ let l = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), u = Math.min(0, ...l), p = Math.max(1, ...l), m = _(u, p, 6), h = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), g = h ? oe({
75
75
  dataset: e,
76
76
  config: s
77
- }) : null, h = Math.max(0, ...e.map((e) => e.series?.length || 0)), g = (e) => h <= 1 ? c.left + c.width / 2 : c.left + e / (h - 1) * c.width, v = (e, t) => p ? L(e) ? ue({
77
+ }) : null, v = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => v <= 1 ? c.left + c.width / 2 : c.left + e / (v - 1) * c.width, b = (e, t) => h ? B(e) ? se({
78
78
  xValue: e.x,
79
- xScale: m,
79
+ xScale: g,
80
80
  drawingArea: c,
81
81
  config: s
82
- }) : null : g(t), y = (e) => {
83
- let t = (Number(e) - u.min) / (u.max - u.min || 1);
82
+ }) : null : y(t), x = (e) => {
83
+ let t = (Number(e) - m.min) / (m.max - m.min || 1);
84
84
  return c.bottom - t * c.height;
85
- }, b = Array.isArray(s.customPalette) ? s.customPalette : [], x = b.length ? b : d;
85
+ }, S = Array.isArray(s.customPalette) ? s.customPalette : [], ee = S.length ? S : d;
86
86
  return {
87
87
  width: n,
88
88
  height: r,
@@ -90,18 +90,18 @@ function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
90
90
  dataset: e,
91
91
  config: s,
92
92
  drawingArea: c,
93
- scale: u,
94
- xScale: m,
95
- isContinuous: p,
93
+ scale: m,
94
+ xScale: g,
95
+ isContinuous: h,
96
96
  series: e.map((e, t) => {
97
- let n = (e.color ? f(e.color) : "") || x[t % x.length], r = (e.series || []).map((e, t) => {
97
+ let n = (e.color ? f(e.color) : "") || ee[t % ee.length], r = (e.series || []).map((e, t) => {
98
98
  let n = e == null ? null : typeof e == "object" ? e.y ?? null : Number(e);
99
99
  return {
100
- x: v(e, t),
101
- y: n === null || !Number.isFinite(Number(n)) ? null : y(n),
100
+ x: b(e, t),
101
+ y: n === null || !Number.isFinite(Number(n)) ? null : x(n),
102
102
  value: n,
103
103
  index: t,
104
- rawX: L(e) ? Number(e.x) : null,
104
+ rawX: B(e) ? Number(e.x) : null,
105
105
  label: e?.name ?? e?.x ?? String(t)
106
106
  };
107
107
  });
@@ -118,65 +118,65 @@ function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
118
118
  }
119
119
  //#endregion
120
120
  //#region src/svg/vue-ui-xy/render.js
121
- function R(e) {
122
- return !!N(e, "chart.grid.labels.yAxis.useIndividualScale", !1);
121
+ function V(e) {
122
+ return !!I(e, "chart.grid.labels.yAxis.useIndividualScale", !1);
123
123
  }
124
- function z(e) {
124
+ function le(e) {
125
125
  return String(e.scaleLabel ?? e.id ?? e.name ?? "");
126
126
  }
127
- function B(e) {
128
- return O(N(e, "chart.grid.labels.yAxis.labelWidth", 40), 40) + 36;
127
+ function ue(e) {
128
+ return k(I(e, "chart.grid.labels.yAxis.labelWidth", 40), 40) + 36;
129
129
  }
130
- function fe(e) {
131
- return j(e).flatMap((e) => j(e.plots)).map((e) => e?.value === null || e?.value === void 0 ? null : Number(e.value)).filter(Number.isFinite);
130
+ function de(e) {
131
+ return M(e).flatMap((e) => M(e.plots)).map((e) => e?.value === null || e?.value === void 0 ? null : Number(e.value)).filter(Number.isFinite);
132
132
  }
133
- function pe(e, t, n) {
134
- let r = fe(n), i = N(e, "chart.grid.labels.yAxis.scaleMin", null), a = N(e, "chart.grid.labels.yAxis.scaleMax", null), o = X(i) ? Number(i) : Math.min(0, ...r), s = X(a) ? Number(a) : Math.max(1, ...r), c = O(N(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6);
133
+ function fe(e, t, n) {
134
+ let r = de(n), i = I(e, "chart.grid.labels.yAxis.scaleMin", null), a = I(e, "chart.grid.labels.yAxis.scaleMax", null), o = X(i) ? Number(i) : Math.min(0, ...r), s = X(a) ? Number(a) : Math.max(1, ...r), c = k(I(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6);
135
135
  return !r.length && !X(i) && !X(a) ? t : Oe(e, o, s === o ? o + 1 : s, c);
136
136
  }
137
- function me(e, t) {
138
- let { drawingArea: n } = e, r = O(t.__yOffset, 0), i = O(t.__individualHeight, n.height);
137
+ function pe(e, t) {
138
+ let { drawingArea: n } = e, r = k(t.__yOffset, 0), i = k(t.__individualHeight, n.height);
139
139
  return {
140
140
  top: n.bottom - r - i,
141
141
  bottom: n.bottom - r
142
142
  };
143
143
  }
144
- function V(e, t, n, r) {
145
- let i = me(e, t), a = Math.min(n.y, r), o = Math.max(n.y, r), s = Math.max(i.top, a), c = Math.min(i.bottom, o);
144
+ function H(e, t, n, r) {
145
+ let i = pe(e, t), a = Math.min(n.y, r), o = Math.max(n.y, r), s = Math.max(i.top, a), c = Math.min(i.bottom, o);
146
146
  return {
147
147
  y: s,
148
148
  height: Math.max(1e-5, c - s)
149
149
  };
150
150
  }
151
- function H(e, t) {
151
+ function me(e, t) {
152
152
  let n = {};
153
- return j(t).forEach((t, r) => {
154
- let i = z(t) || `serie_${r}`, a = j(t.plots).map((e) => Number(e.value)).filter(Number.isFinite);
153
+ return M(t).forEach((t, r) => {
154
+ let i = le(t) || `serie_${r}`, a = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite);
155
155
  n[i] || (n[i] = {
156
156
  scaleLabel: i,
157
157
  name: t.name ?? i,
158
- color: N(e, "chart.grid.labels.yAxis.groupColor", null) || t.color,
158
+ color: I(e, "chart.grid.labels.yAxis.groupColor", null) || t.color,
159
159
  series: [],
160
160
  values: []
161
161
  }), n[i].series.push(t), n[i].values.push(...a);
162
162
  }), Object.values(n).forEach((t) => {
163
163
  t.scale = ke(e, {
164
164
  ...t.series[0],
165
- plots: t.series.flatMap((e) => j(e.plots))
165
+ plots: t.series.flatMap((e) => M(e.plots))
166
166
  });
167
167
  }), n;
168
168
  }
169
169
  function he(e, t, n, r, i, a) {
170
- return !i && !a ? r : n[z(t)]?.scale ?? ke(e, t);
170
+ return !i && !a ? r : n[le(t)]?.scale ?? ke(e, t);
171
171
  }
172
172
  function ge(e) {
173
173
  return e === "bar" || e === "line" || e === "plot" ? e : "line";
174
174
  }
175
175
  function _e(e) {
176
- return j(e.series).map((e) => ({
176
+ return M(e.series).map((e) => ({
177
177
  ...e,
178
178
  type: ge(e.type),
179
- plots: j(e.plots).filter((e) => e && ae(e.x))
179
+ plots: M(e.plots).filter((e) => e && F(e.x))
180
180
  }));
181
181
  }
182
182
  function U(e) {
@@ -204,94 +204,94 @@ function Se(e, t) {
204
204
  }
205
205
  function Ce(e, t, n) {
206
206
  let { config: r } = e;
207
- return N(r, "line.useGradient", !1) ? `url(#${ye(e, n)})` : N(r, "line.dot.useSerieColor", !0) ? t.color : N(r, "line.dot.fill", "#FFFFFF");
207
+ return I(r, "line.useGradient", !1) ? `url(#${ye(e, n)})` : I(r, "line.dot.useSerieColor", !0) ? t.color : I(r, "line.dot.fill", "#FFFFFF");
208
208
  }
209
209
  function we(e, t, r) {
210
210
  let { config: i } = e;
211
- return N(i, "line.area.useGradient", !1) ? `url(#${rt(e, r)})` : n(t.color, O(N(i, "line.area.opacity", 30), 30));
211
+ return I(i, "line.area.useGradient", !1) ? `url(#${rt(e, r)})` : n(t.color, k(I(i, "line.area.opacity", 30), 30));
212
212
  }
213
213
  function K(e, t, n, r) {
214
- return N(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
214
+ return I(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
215
215
  }
216
216
  function Te(e, t) {
217
217
  let { config: n } = e, r = [];
218
- return N(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
219
- r.push(P("linearGradient", {
218
+ return I(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
219
+ r.push(L("linearGradient", {
220
220
  id: G(e, n, "pos"),
221
221
  x2: "0%",
222
222
  y2: "100%"
223
223
  }, [
224
- k("stop", {
224
+ A("stop", {
225
225
  offset: "0%",
226
226
  "stop-color": f(t.color)
227
227
  }),
228
- k("stop", {
228
+ A("stop", {
229
229
  offset: "62%",
230
230
  "stop-color": h(f(t.color), .02)
231
231
  }),
232
- k("stop", {
232
+ A("stop", {
233
233
  offset: "100%",
234
234
  "stop-color": h(f(t.color), .05)
235
235
  })
236
- ].join(""))), r.push(P("linearGradient", {
236
+ ].join(""))), r.push(L("linearGradient", {
237
237
  id: G(e, n, "neg"),
238
238
  x2: "0%",
239
239
  y2: "100%"
240
240
  }, [
241
- k("stop", {
241
+ A("stop", {
242
242
  offset: "0%",
243
243
  "stop-color": h(f(t.color), .05)
244
244
  }),
245
- k("stop", {
245
+ A("stop", {
246
246
  offset: "38%",
247
247
  "stop-color": h(f(t.color), .02)
248
248
  }),
249
- k("stop", {
249
+ A("stop", {
250
250
  offset: "100%",
251
251
  "stop-color": f(t.color)
252
252
  })
253
253
  ].join("")));
254
254
  }), t.filter((e) => e.type === "line").forEach((t, i) => {
255
- N(n, "line.useGradient", !1) && r.push(P("radialGradient", {
255
+ I(n, "line.useGradient", !1) && r.push(L("radialGradient", {
256
256
  id: ye(e, i),
257
257
  cx: "50%",
258
258
  cy: "50%",
259
259
  r: "50%",
260
260
  fx: "50%",
261
261
  fy: "50%"
262
- }, [k("stop", {
262
+ }, [A("stop", {
263
263
  offset: "0%",
264
264
  "stop-color": h(f(t.color), .05)
265
- }), k("stop", {
265
+ }), A("stop", {
266
266
  offset: "100%",
267
267
  "stop-color": f(t.color)
268
- })].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(P("linearGradient", {
268
+ })].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(L("linearGradient", {
269
269
  id: be(e, i),
270
270
  gradientTransform: "rotate(90)"
271
- }, t.temperatureColors.map((e, n) => k("stop", {
272
- offset: T(n, t.temperatureColors.length),
271
+ }, t.temperatureColors.map((e, n) => A("stop", {
272
+ offset: E(n, t.temperatureColors.length),
273
273
  "stop-color": f(e)
274
274
  })).join("")));
275
275
  }), t.filter((e) => e.type === "plot").forEach((t, i) => {
276
- N(n, "plot.useGradient", !1) && r.push(P("radialGradient", {
276
+ I(n, "plot.useGradient", !1) && r.push(L("radialGradient", {
277
277
  id: Se(e, i),
278
278
  cx: "50%",
279
279
  cy: "50%",
280
280
  r: "50%",
281
281
  fx: "50%",
282
282
  fy: "50%"
283
- }, [k("stop", {
283
+ }, [A("stop", {
284
284
  offset: "0%",
285
285
  "stop-color": h(f(t.color), .05)
286
- }), k("stop", {
286
+ }), A("stop", {
287
287
  offset: "100%",
288
288
  "stop-color": f(t.color)
289
289
  })].join("")));
290
- }), r.length ? P("defs", { "data-layer": "gradients" }, r.join("")) : "";
290
+ }), r.length ? L("defs", { "data-layer": "gradients" }, r.join("")) : "";
291
291
  }
292
292
  function Ee(e) {
293
- let t = N(e.config, "chart.backgroundColor", "#FFFFFF");
294
- return k("rect", {
293
+ let t = I(e.config, "chart.backgroundColor", "#FFFFFF");
294
+ return A("rect", {
295
295
  width: e.width,
296
296
  height: e.height,
297
297
  fill: t
@@ -299,40 +299,40 @@ function Ee(e) {
299
299
  }
300
300
  function q(e) {
301
301
  return {
302
- dataLabels: O(N(e, "chart.grid.labels.fontSize", 12), 12),
303
- xAxis: O(N(e, "chart.grid.labels.xAxisLabels.fontSize", 12), 12),
304
- yAxis: O(N(e, "chart.grid.labels.axis.fontSize", 12), 12)
302
+ dataLabels: k(I(e, "chart.grid.labels.fontSize", 12), 12),
303
+ xAxis: k(I(e, "chart.grid.labels.xAxisLabels.fontSize", 12), 12),
304
+ yAxis: k(I(e, "chart.grid.labels.axis.fontSize", 12), 12)
305
305
  };
306
306
  }
307
307
  function J(e) {
308
- return N(e, "chart.grid.labels.yAxis.position", "left") === "right";
308
+ return I(e, "chart.grid.labels.yAxis.position", "left") === "right";
309
309
  }
310
310
  function De(e, t) {
311
311
  let n = g({
312
- p: N(t, "chart.labels.prefix", ""),
312
+ p: I(t, "chart.labels.prefix", ""),
313
313
  v: e,
314
- s: N(t, "chart.labels.suffix", ""),
315
- r: N(t, "chart.grid.labels.yAxis.rounding", 0)
314
+ s: I(t, "chart.labels.suffix", ""),
315
+ r: I(t, "chart.grid.labels.yAxis.rounding", 0)
316
316
  });
317
- return y(N(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
317
+ return y(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
318
318
  }
319
319
  function Y(e) {
320
- return !!N(e, "chart.grid.labels.yAxis.stacked", !1);
320
+ return !!I(e, "chart.grid.labels.yAxis.stacked", !1);
321
321
  }
322
322
  function X(e) {
323
323
  return e != null && Number.isFinite(Number(e));
324
324
  }
325
325
  function Oe(e, t, n, r) {
326
- return N(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? _(t, n, r) : ne(t, n, r);
326
+ return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? _(t, n, r) : te(t, n, r);
327
327
  }
328
328
  function ke(e, t) {
329
- let n = j(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = N(e, "chart.grid.labels.yAxis.scaleMin", null), i = N(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
330
- return Oe(e, a, o === a ? a + 1 : o, O(t.scaleSteps ?? N(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6));
329
+ let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = I(e, "chart.grid.labels.yAxis.scaleMin", null), i = I(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
330
+ return Oe(e, a, o === a ? a + 1 : o, k(t.scaleSteps ?? I(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6));
331
331
  }
332
332
  function Ae(e, t, n = []) {
333
- let r = q(e), i = Y(e), a = R(e), o = B(e);
333
+ let r = q(e), i = Y(e), a = V(e), o = ue(e);
334
334
  if (a && !i) {
335
- let t = Object.keys(H(e, n)).length;
335
+ let t = Object.keys(me(e, n)).length;
336
336
  return {
337
337
  left: J(e) ? 0 : t * o,
338
338
  right: J(e) ? t * o : 0,
@@ -346,7 +346,7 @@ function Ae(e, t, n = []) {
346
346
  scaleLabelsOffset: o,
347
347
  yAxisLabelWidth: 0
348
348
  };
349
- let s = (i ? n.flatMap((t) => ke(e, t).ticks) : j(t.ticks)).reduce((t, n) => Math.max(t, A(De(n, e), r.dataLabels)), 0), c = N(e, "chart.grid.labels.axis.yLabel", "") ? r.yAxis * 2 + 24 + O(N(e, "chart.grid.labels.axis.yLabelOffsetX", 0), 0) + r.yAxis : 0, l = s + O(N(e, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0) + O(N(e, "chart.grid.labels.yAxis.crosshairSize", 0), 0);
349
+ let s = (i ? n.flatMap((t) => ke(e, t).ticks) : M(t.ticks)).reduce((t, n) => Math.max(t, j(De(n, e), r.dataLabels)), 0), c = I(e, "chart.grid.labels.axis.yLabel", "") ? r.yAxis * 2 + 24 + k(I(e, "chart.grid.labels.axis.yLabelOffsetX", 0), 0) + r.yAxis : 0, l = s + k(I(e, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0) + k(I(e, "chart.grid.labels.yAxis.crosshairSize", 0), 0);
350
350
  return {
351
351
  left: J(e) ? 0 : l + c,
352
352
  right: J(e) ? l + c : 0,
@@ -357,43 +357,43 @@ function Ae(e, t, n = []) {
357
357
  function je(e, t) {
358
358
  let { config: n, scale: r, width: i, height: a } = e, o = q(n);
359
359
  e.drawingArea;
360
- let s = Ae(n, r, t), c = N(n, "chart.legend.position", "bottom"), l = N(n, "chart.legend.show", !0), u = l ? tt({
360
+ let s = Ae(n, r, t), c = I(n, "chart.legend.position", "bottom"), l = I(n, "chart.legend.show", !0), u = l ? tt({
361
361
  ...e,
362
362
  width: i,
363
363
  height: a
364
- }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = N(n, "chart.grid.labels.axis.xLabel", ""), m = N(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = gt(n) + O(N(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = O(N(n, "chart.padding.top", 12), 12), v = O(N(n, "chart.padding.right", 12), 12), y = O(N(n, "chart.padding.bottom", 12), 12), b = O(N(n, "chart.padding.left", 12), 12), x = O(N(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = O(N(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, te = s.right, ne = i - C - te - 6 - b - v, w = {
364
+ }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(I(n, "chart.padding.top", 12), 12), v = k(I(n, "chart.padding.right", 12), 12), y = k(I(n, "chart.padding.bottom", 12), 12), b = k(I(n, "chart.padding.left", 12), 12), x = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, w = s.right, te = i - C - w - 6 - b - v, T = {
365
365
  top: _ + g + d,
366
- right: C + (J(n) ? 0 : S) + b + ne,
366
+ right: C + (J(n) ? 0 : S) + b + te,
367
367
  bottom: a - h - y - x - f,
368
368
  left: C + (J(n) ? 0 : S) + b,
369
- width: Math.max(1, ne),
369
+ width: Math.max(1, te),
370
370
  height: 1,
371
371
  scaleLabelX: C,
372
- rightScaleLabelX: te,
372
+ rightScaleLabelX: w,
373
373
  scaleLabelsOffset: s.scaleLabelsOffset,
374
374
  yAxisLabelWidth: s.yAxisLabelWidth,
375
375
  individualOffsetX: 36
376
376
  };
377
- w.height = Math.max(1, w.bottom - w.top);
378
- let T = Y(n), E = T ? ee(t) : t, D = Math.max(1, E.length), re = T ? O(N(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, k = re * Math.max(0, D - 1), A = Math.max(1, w.height - k), M = R(n), ie = H(n, t), ae = Math.max(1, ...t.map((e) => j(e.plots).length));
379
- function P(t, n) {
377
+ T.height = Math.max(1, T.bottom - T.top);
378
+ let E = Y(n), D = E ? ee(t) : t, O = Math.max(1, D.length), ne = E ? k(I(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, A = ne * Math.max(0, O - 1), j = Math.max(1, T.height - A), N = V(n), P = me(n, t), F = Math.max(1, ...t.map((e) => M(e.plots).length));
379
+ function L(t, n) {
380
380
  if (Z(e)) {
381
381
  let n = Number(t.rawX);
382
382
  return Number.isFinite(n) ? We({
383
383
  ...e,
384
- drawingArea: w
384
+ drawingArea: T
385
385
  }, n) : null;
386
386
  }
387
387
  return Q({
388
388
  ...e,
389
- drawingArea: w
390
- }, t.index ?? n, ae);
389
+ drawingArea: T
390
+ }, t.index ?? n, F);
391
391
  }
392
- let F = t.map((e, t) => {
393
- let i = e.id !== void 0 && e.id !== null ? E.find((t) => t.id === e.id) ?? E[t] ?? e : E[t] ?? e, a = he(n, e, ie, r, M, T), o = O(i.stackIndex, t), s = O(i.stackRatio, 1 / D), c = O(i.cumulatedStackRatio, s * (o + 1)), l = D - 1 - o, u = T ? 1 - c : 0, d = T ? A * u + re * l : 0, f = T ? A * s : w.height;
392
+ let R = t.map((e, t) => {
393
+ let i = e.id !== void 0 && e.id !== null ? D.find((t) => t.id === e.id) ?? D[t] ?? e : D[t] ?? e, a = he(n, e, P, r, N, E), o = k(i.stackIndex, t), s = k(i.stackRatio, 1 / O), c = k(i.cumulatedStackRatio, s * (o + 1)), l = O - 1 - o, u = E ? 1 - c : 0, d = E ? j * u + ne * l : 0, f = E ? j * s : T.height;
394
394
  function p(e) {
395
395
  let t = (e - a.min) / (a.max - a.min || 1);
396
- return w.bottom - d - t * f;
396
+ return T.bottom - d - t * f;
397
397
  }
398
398
  let m = p(0);
399
399
  return {
@@ -402,7 +402,7 @@ function je(e, t) {
402
402
  __yOffset: d,
403
403
  __individualHeight: f,
404
404
  __zeroY: m,
405
- __scaleYLabels: j(a.ticks).map((t) => ({
405
+ __scaleYLabels: M(a.ticks).map((t) => ({
406
406
  value: t,
407
407
  y: p(t),
408
408
  serie: e
@@ -412,7 +412,7 @@ function je(e, t) {
412
412
  return {
413
413
  ...e,
414
414
  value: n,
415
- x: P(e, t),
415
+ x: L(e, t),
416
416
  y: n === null || !Number.isFinite(n) ? null : p(n)
417
417
  };
418
418
  })
@@ -420,18 +420,18 @@ function je(e, t) {
420
420
  });
421
421
  return {
422
422
  ...e,
423
- drawingArea: w,
424
- series: F,
425
- __scaleGroups: ie,
426
- __useIndividualScale: M
423
+ drawingArea: T,
424
+ series: R,
425
+ __scaleGroups: P,
426
+ __useIndividualScale: N
427
427
  };
428
428
  }
429
429
  function Me(e) {
430
430
  let { config: t, drawingArea: n, scale: r, series: i } = e;
431
- if (!N(t, "chart.grid.labels.show", !0) || !N(t, "chart.grid.labels.yAxis.show", !0)) return "";
432
- let a = R(t), o = Y(t);
431
+ if (!I(t, "chart.grid.labels.show", !0) || !I(t, "chart.grid.labels.yAxis.show", !0)) return "";
432
+ let a = V(t), o = Y(t);
433
433
  if (a) return Ne(e);
434
- let s = q(t), c = J(t), l = N(t, "chart.grid.labels.yAxis.showCrosshairs", !1), u = O(N(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = O(N(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = N(t, "chart.grid.labels.color", "#2A2A2A"), p = N(t, "chart.grid.stroke", "#CCCCCC"), m = o ? i.flatMap((e) => j(e.__scaleYLabels)) : j(r.ticks).map((e) => {
434
+ let s = q(t), c = J(t), l = I(t, "chart.grid.labels.yAxis.showCrosshairs", !1), u = k(I(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(I(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = I(t, "chart.grid.labels.color", "#2A2A2A"), p = I(t, "chart.grid.stroke", "#CCCCCC"), m = o ? i.flatMap((e) => M(e.__scaleYLabels)) : M(r.ticks).map((e) => {
435
435
  let t = (e - r.min) / (r.max - r.min || 1);
436
436
  return {
437
437
  value: e,
@@ -439,7 +439,7 @@ function Me(e) {
439
439
  };
440
440
  }), h = [];
441
441
  return m.forEach((e) => {
442
- Number.isFinite(e.y) && (l && h.push(k("line", {
442
+ Number.isFinite(e.y) && (l && h.push(A("line", {
443
443
  "data-cy": "axis-y-tick",
444
444
  x1: c ? n.right : n.left,
445
445
  x2: c ? n.right + u : n.left - u,
@@ -448,39 +448,39 @@ function Me(e) {
448
448
  stroke: p,
449
449
  "stroke-width": 1,
450
450
  "stroke-linecap": "round"
451
- })), h.push(F(De(e.value, t), {
451
+ })), h.push(R(De(e.value, t), {
452
452
  "data-cy": "axis-y-label",
453
453
  transform: `translate(${c ? n.right + u + d + 5 : n.scaleLabelX - u}, ${e.y + s.dataLabels / 3})`,
454
454
  "font-size": s.dataLabels,
455
455
  "text-anchor": c ? "start" : "end",
456
- fill: o && e.serie?.color ? N(t, "chart.grid.labels.yAxis.groupColor", null) || e.serie.color : f
456
+ fill: o && e.serie?.color ? I(t, "chart.grid.labels.yAxis.groupColor", null) || e.serie.color : f
457
457
  })));
458
- }), P("g", { "data-layer": "scale-labels" }, h.join(""));
458
+ }), L("g", { "data-layer": "scale-labels" }, h.join(""));
459
459
  }
460
460
  function Ne(e) {
461
- let { config: t, drawingArea: n, series: r } = e, i = q(t), a = J(t), o = Y(t), s = e.__scaleGroups ?? H(t, r), c = N(t, "chart.grid.labels.yAxis.showCrosshairs", !1), l = O(N(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), u = O(N(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), d = O(N(t, "chart.grid.labels.yAxis.labelWidth", 40), 40), f = O(n.individualOffsetX, 36), p = [], m = Object.values(s);
461
+ let { config: t, drawingArea: n, series: r } = e, i = q(t), a = J(t), o = Y(t), s = e.__scaleGroups ?? me(t, r), c = I(t, "chart.grid.labels.yAxis.showCrosshairs", !1), l = k(I(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), u = k(I(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), d = k(I(t, "chart.grid.labels.yAxis.labelWidth", 40), 40), f = k(n.individualOffsetX, 36), p = [], m = Object.values(s);
462
462
  return m.forEach((e, s) => {
463
- let h = r.find((t) => z(t) === e.scaleLabel) ?? r[s];
463
+ let h = r.find((t) => le(t) === e.scaleLabel) ?? r[s];
464
464
  if (!h) return;
465
- let g = o ? a ? n.right : n.left : a ? n.right + B(t) * s : n.left - B(t) * (m.length - s - 1), _ = O(h.__yOffset, 0), v = O(h.__individualHeight, n.height), y = o ? n.bottom - _ - v : n.top, b = o ? n.bottom - _ : n.bottom;
466
- p.push(k("line", {
465
+ let g = o ? a ? n.right : n.left : a ? n.right + ue(t) * s : n.left - ue(t) * (m.length - s - 1), _ = k(h.__yOffset, 0), v = k(h.__individualHeight, n.height), y = o ? n.bottom - _ - v : n.top, b = o ? n.bottom - _ : n.bottom;
466
+ p.push(A("line", {
467
467
  x1: o || a ? g : g - f,
468
468
  x2: o || a ? g : g - f,
469
469
  y1: y,
470
470
  y2: b,
471
471
  stroke: e.color,
472
- "stroke-width": N(t, "chart.grid.strokeWidth", 1),
472
+ "stroke-width": I(t, "chart.grid.strokeWidth", 1),
473
473
  "stroke-linecap": "round"
474
474
  }));
475
475
  let x = o ? a ? n.right + l + u + 5 + d + f : n.left - l - u - d : a ? g + l + u + 5 + d : g - i.dataLabels / 2;
476
- p.push(F(e.name, {
476
+ p.push(R(e.name, {
477
477
  transform: `translate(${x}, ${y + (b - y) / 2}) rotate(-90)`,
478
478
  "font-size": i.dataLabels * .8,
479
479
  "text-anchor": "middle",
480
480
  fill: e.color
481
- })), j(e.scale.ticks).forEach((r) => {
481
+ })), M(e.scale.ticks).forEach((r) => {
482
482
  let s = (r - e.scale.min) / (e.scale.max - e.scale.min || 1), d = b - s * (b - y);
483
- Number.isFinite(d) && (c && p.push(k("line", {
483
+ Number.isFinite(d) && (c && p.push(A("line", {
484
484
  "data-cy": "axis-y-tick",
485
485
  x1: o || a ? g : g + 3 - l - f,
486
486
  x2: o ? a ? g + l : g - l : a ? g + l : g - f,
@@ -489,7 +489,7 @@ function Ne(e) {
489
489
  stroke: e.color,
490
490
  "stroke-width": 1,
491
491
  "stroke-linecap": "round"
492
- })), p.push(F(De(r, t), {
492
+ })), p.push(R(De(r, t), {
493
493
  "data-cy": "axis-y-label",
494
494
  transform: `translate(${o ? a ? n.right + l + u + 5 : n.left - l - u - 5 : a ? g + l + u + 5 : g - 5 - f}, ${d + i.dataLabels / 3})`,
495
495
  "font-size": i.dataLabels,
@@ -497,10 +497,10 @@ function Ne(e) {
497
497
  fill: e.color
498
498
  })));
499
499
  });
500
- }), P("g", { "data-layer": "individual-scale-labels" }, p.join(""));
500
+ }), L("g", { "data-layer": "individual-scale-labels" }, p.join(""));
501
501
  }
502
502
  function Pe(e) {
503
- return [...new Set(e.flatMap((e) => j(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
503
+ return [...new Set(e.flatMap((e) => M(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
504
504
  }
505
505
  function Fe(e, t, n = 1) {
506
506
  let { drawingArea: r, config: i } = e, a = Pe(t), o = r.width * .05;
@@ -508,19 +508,19 @@ function Fe(e, t, n = 1) {
508
508
  let s = a.slice(1).reduce((e, t, n) => {
509
509
  let r = a[n], i = Math.abs(t - r);
510
510
  return i > 0 ? Math.min(e, i) : e;
511
- }, Infinity), c = O(N(i, "bar.periodGap", .2), .2), l = Number.isFinite(s) && s > 0 ? s * (1 - c) : o;
511
+ }, Infinity), c = k(I(i, "bar.periodGap", .2), .2), l = Number.isFinite(s) && s > 0 ? s * (1 - c) : o;
512
512
  return Math.max(1e-5, l / Math.max(1, n));
513
513
  }
514
514
  function Ie(e, t, n) {
515
- let { config: r } = e, i = O(N(r, "bar.innerGap", .05), .05), a = N(r, "bar.borderRadius", 0), o = [];
515
+ let { config: r } = e, i = k(I(r, "bar.innerGap", .05), .05), a = I(r, "bar.borderRadius", 0), o = [];
516
516
  if (n) {
517
517
  let n = Fe(e, t, 1), r = n * Math.min(Math.abs(i), .95), s = Math.max(1e-5, n - r);
518
518
  return t.forEach((t, n) => {
519
519
  let r = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
520
- j(t.plots).forEach((i) => {
520
+ M(t.plots).forEach((i) => {
521
521
  if (!i || i.value === null || i.value === void 0 || !Number.isFinite(Number(i.value)) || !Number.isFinite(Number(i.x)) || !Number.isFinite(Number(i.y))) return;
522
- let c = i.x - s / 2, { y: l, height: u } = V(e, t, i, r);
523
- i.__barLabelX = i.x, o.push(k("rect", {
522
+ let c = i.x - s / 2, { y: l, height: u } = H(e, t, i, r);
523
+ i.__barLabelX = i.x, o.push(A("rect", {
524
524
  "data-cy": "datapoint-bar",
525
525
  x: c,
526
526
  y: l,
@@ -531,15 +531,15 @@ function Ie(e, t, n) {
531
531
  ...$(e, t)
532
532
  }));
533
533
  });
534
- }), P("g", { "data-layer": "bars" }, o.join(""));
534
+ }), L("g", { "data-layer": "bars" }, o.join(""));
535
535
  }
536
536
  let s = Math.max(1, t.length), c = Fe(e, t, s), l = c * Math.min(Math.abs(i), .95), u = Math.max(1e-5, c - l), d = c * s;
537
537
  return t.forEach((t, n) => {
538
538
  let r = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
539
- j(t.plots).forEach((i) => {
539
+ M(t.plots).forEach((i) => {
540
540
  if (!i || i.value === null || i.value === void 0 || !Number.isFinite(Number(i.value)) || !Number.isFinite(Number(i.x)) || !Number.isFinite(Number(i.y))) return;
541
- let s = i.x - d / 2 + c * n + l / 2, { y: f, height: p } = V(e, t, i, r);
542
- i.__barLabelX = s + u / 2, o.push(k("rect", {
541
+ let s = i.x - d / 2 + c * n + l / 2, { y: f, height: p } = H(e, t, i, r);
542
+ i.__barLabelX = s + u / 2, o.push(A("rect", {
543
543
  "data-cy": "datapoint-bar",
544
544
  x: s,
545
545
  y: f,
@@ -550,21 +550,21 @@ function Ie(e, t, n) {
550
550
  ...$(e, t)
551
551
  }));
552
552
  });
553
- }), P("g", { "data-layer": "bars" }, o.join(""));
553
+ }), L("g", { "data-layer": "bars" }, o.join(""));
554
554
  }
555
555
  function Le(e, t) {
556
556
  let { config: n, drawingArea: r } = e, i = Y(n), a = t.filter((e) => e.type === "bar");
557
557
  if (!a.length) return "";
558
558
  if (Z(e)) return Ie(e, a, i);
559
- let o = Math.max(1, ...t.map((e) => j(e.plots).length)), s = r.width / o, c = O(N(n, "bar.periodGap", .2), .2), l = O(N(n, "bar.innerGap", .05), .05), u = N(n, "bar.borderRadius", 0), d = [];
559
+ let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = r.width / o, c = k(I(n, "bar.periodGap", .2), .2), l = k(I(n, "bar.innerGap", .05), .05), u = I(n, "bar.borderRadius", 0), d = [];
560
560
  if (i) {
561
561
  let t = Math.max(1e-5, s * .9), n = t * Math.min(Math.abs(l), .95);
562
562
  return a.forEach((i, a) => {
563
563
  let o = Number.isFinite(Number(i.__zeroY)) ? Number(i.__zeroY) : U(e);
564
- j(i.plots).forEach((c, l) => {
564
+ M(i.plots).forEach((c, l) => {
565
565
  if (!c || c.value === null || c.value === void 0 || !Number.isFinite(Number(c.value)) || !Number.isFinite(Number(c.y))) return;
566
- let f = r.left + s * l + s * .05 + n / 2, { y: p, height: m } = V(e, i, c, o);
567
- c.__barLabelX = f + Math.max(1e-5, t - n) / 2, d.push(k("rect", {
566
+ let f = r.left + s * l + s * .05 + n / 2, { y: p, height: m } = H(e, i, c, o);
567
+ c.__barLabelX = f + Math.max(1e-5, t - n) / 2, d.push(A("rect", {
568
568
  "data-cy": "datapoint-bar",
569
569
  x: f,
570
570
  y: p,
@@ -575,15 +575,15 @@ function Le(e, t) {
575
575
  ...$(e, i)
576
576
  }));
577
577
  });
578
- }), P("g", { "data-layer": "bars" }, d.join(""));
578
+ }), L("g", { "data-layer": "bars" }, d.join(""));
579
579
  }
580
580
  let f = s * (1 - c), p = f / Math.max(1, a.length), m = p * Math.min(Math.abs(l), .95);
581
581
  return U(e), a.forEach((t, n) => {
582
582
  let i = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
583
- j(t.plots).forEach((a, o) => {
583
+ M(t.plots).forEach((a, o) => {
584
584
  if (!a || a.value === null || a.value === void 0 || !Number.isFinite(Number(a.value)) || !Number.isFinite(Number(a.y))) return;
585
- let c = r.left + s * o + (s - f) / 2 + p * n + m / 2, { y: l, height: h } = V(e, t, a, i);
586
- a.__barLabelX = c + Math.max(1e-5, p - m) / 2, d.push(k("rect", {
585
+ let c = r.left + s * o + (s - f) / 2 + p * n + m / 2, { y: l, height: h } = H(e, t, a, i);
586
+ a.__barLabelX = c + Math.max(1e-5, p - m) / 2, d.push(A("rect", {
587
587
  "data-cy": "datapoint-bar",
588
588
  x: c,
589
589
  y: l,
@@ -594,11 +594,11 @@ function Le(e, t) {
594
594
  ...$(e, t)
595
595
  }));
596
596
  });
597
- }), P("g", { "data-layer": "bars" }, d.join(""));
597
+ }), L("g", { "data-layer": "bars" }, d.join(""));
598
598
  }
599
599
  function Re(e) {
600
600
  let { config: t, drawingArea: n, scale: r, series: i } = e;
601
- return R(t) || Y(t) ? i.flatMap((e) => j(e.__scaleYLabels)) : j(r.ticks).map((e) => {
601
+ return V(t) || Y(t) ? i.flatMap((e) => M(e.__scaleYLabels)) : M(r.ticks).map((e) => {
602
602
  let t = (e - r.min) / (r.max - r.min || 1);
603
603
  return {
604
604
  value: e,
@@ -611,25 +611,25 @@ function ze(e, t, n) {
611
611
  return r.left + i * t;
612
612
  }
613
613
  function Be(e, t) {
614
- let { config: n, drawingArea: r } = e, i = Math.max(1, ...t.map((e) => j(e.plots).length)), a = r.top, o = r.bottom;
614
+ let { config: n, drawingArea: r } = e, i = Math.max(1, ...t.map((e) => M(e.plots).length)), a = r.top, o = r.bottom;
615
615
  if (Z(e)) {
616
- let e = [...new Set(t.flatMap((e) => j(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
617
- return e.length ? N(n, "chart.grid.position", "middle") === "middle" ? e.map((e, t, n) => {
616
+ let e = [...new Set(t.flatMap((e) => M(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
617
+ return e.length ? I(n, "chart.grid.position", "middle") === "middle" ? e.map((e, t, n) => {
618
618
  if (t === 0) return null;
619
619
  let r = n[t - 1], i = r + (e - r) / 2;
620
620
  return `M${i},${a} L${i},${o}`;
621
621
  }).filter(Boolean).join(" ") : e.map((e) => `M${e},${a} L${e},${o}`).join(" ") : "";
622
622
  }
623
- let s = i + +(N(n, "chart.grid.position", "middle") === "middle");
623
+ let s = i + +(I(n, "chart.grid.position", "middle") === "middle");
624
624
  return Array.from({ length: s }).map((t, r) => {
625
- let s = N(n, "chart.grid.position", "middle") === "middle" ? ze(e, r, i) : Q(e, r, i);
625
+ let s = I(n, "chart.grid.position", "middle") === "middle" ? ze(e, r, i) : Q(e, r, i);
626
626
  return `M${s},${a} L${s},${o}`;
627
627
  }).join(" ");
628
628
  }
629
629
  function Ve(e) {
630
- let { config: t, drawingArea: n, scale: r, series: i } = e, a = N(t, "chart.grid.show", !0), o = N(t, "chart.grid.showHorizontalLines", !0), s = N(t, "chart.grid.showVerticalLines", !1), c = N(t, "chart.grid.stroke", "#CCCCCC"), l = O(N(t, "chart.grid.strokeWidth", .5), .5), u = [];
630
+ let { config: t, drawingArea: n, scale: r, series: i } = e, a = I(t, "chart.grid.show", !0), o = I(t, "chart.grid.showHorizontalLines", !0), s = I(t, "chart.grid.showVerticalLines", !1), c = I(t, "chart.grid.stroke", "#CCCCCC"), l = k(I(t, "chart.grid.strokeWidth", .5), .5), u = [];
631
631
  if (a && o && Re(e).forEach((e) => {
632
- Number.isFinite(Number(e.y)) && u.push(k("line", {
632
+ Number.isFinite(Number(e.y)) && u.push(A("line", {
633
633
  "data-cy": "xy-grid-horizontal-line",
634
634
  x1: n.left,
635
635
  x2: n.right,
@@ -641,7 +641,7 @@ function Ve(e) {
641
641
  }));
642
642
  }), a && s) {
643
643
  let t = Be(e, i);
644
- t && u.push(k("path", {
644
+ t && u.push(A("path", {
645
645
  "data-cy": "xy-grid-vertical-line",
646
646
  d: t,
647
647
  stroke: c,
@@ -649,7 +649,7 @@ function Ve(e) {
649
649
  "stroke-linecap": "round"
650
650
  }));
651
651
  }
652
- u.push(k("line", {
652
+ u.push(A("line", {
653
653
  x1: n.left,
654
654
  y1: n.bottom,
655
655
  x2: n.right,
@@ -659,7 +659,7 @@ function Ve(e) {
659
659
  "stroke-linecap": "round"
660
660
  }));
661
661
  let d = J(t) ? n.right : n.left;
662
- return u.push(k("line", {
662
+ return u.push(A("line", {
663
663
  x1: d,
664
664
  y1: n.top,
665
665
  x2: d,
@@ -667,7 +667,7 @@ function Ve(e) {
667
667
  stroke: c,
668
668
  "stroke-width": l,
669
669
  "stroke-linecap": "round"
670
- })), r.min < 0 && r.max > 0 && u.push(k("line", {
670
+ })), r.min < 0 && r.max > 0 && u.push(A("line", {
671
671
  x1: n.left,
672
672
  y1: U(e),
673
673
  x2: n.right,
@@ -676,20 +676,20 @@ function Ve(e) {
676
676
  "stroke-width": l,
677
677
  "stroke-dasharray": 4,
678
678
  "stroke-linecap": "round"
679
- })), P("g", { "data-layer": "grid" }, u.join(""));
679
+ })), L("g", { "data-layer": "grid" }, u.join(""));
680
680
  }
681
681
  function He(e) {
682
682
  return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
683
683
  }
684
684
  function Z(e) {
685
- return e.isContinuous ? !0 : j(e.series).some((e) => j(e.series).some(He));
685
+ return e.isContinuous ? !0 : M(e.series).some((e) => M(e.series).some(He));
686
686
  }
687
687
  function Ue(e) {
688
688
  if (e.xScale && Number.isFinite(Number(e.xScale.min)) && Number.isFinite(Number(e.xScale.max))) return {
689
689
  min: Number(e.xScale.min),
690
690
  max: Number(e.xScale.max)
691
691
  };
692
- let t = j(e.series).flatMap((e) => j(e.series)).filter(He).map((e) => Number(e.x));
692
+ let t = M(e.series).flatMap((e) => M(e.series)).filter(He).map((e) => Number(e.x));
693
693
  if (!t.length) return {
694
694
  min: 0,
695
695
  max: 1
@@ -704,24 +704,24 @@ function Ue(e) {
704
704
  };
705
705
  }
706
706
  function We(e, t) {
707
- let { drawingArea: n, config: r } = e, i = Ue(e), a = (Number(t) - i.min) / (i.max - i.min || 1), o = N(r, "chart.grid.labels.xAxis.reverse", !1) ? 1 - a : a;
707
+ let { drawingArea: n, config: r } = e, i = Ue(e), a = (Number(t) - i.min) / (i.max - i.min || 1), o = I(r, "chart.grid.labels.xAxis.reverse", !1) ? 1 - a : a;
708
708
  return n.left + n.width * o;
709
709
  }
710
710
  function Ge(e, t, n) {
711
711
  let { config: r } = e, i = g({
712
712
  v: t,
713
- p: N(r, "chart.labels.prefix", ""),
714
- s: N(r, "chart.labels.suffix", ""),
715
- r: N(r, "chart.grid.labels.xAxis.rounding", 0)
713
+ p: I(r, "chart.labels.prefix", ""),
714
+ s: I(r, "chart.labels.suffix", ""),
715
+ r: I(r, "chart.grid.labels.xAxis.rounding", 0)
716
716
  });
717
- return y(N(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
717
+ return y(I(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
718
718
  datapoint: t,
719
719
  seriesIndex: null
720
720
  });
721
721
  }
722
722
  function Ke(e) {
723
- let { xScale: t, config: n } = e, r = j(t?.ticks);
724
- return (N(n, "chart.grid.labels.xAxis.reverse", !1) ? [...r].reverse() : r).map((t, n) => ({
723
+ let { xScale: t, config: n } = e, r = M(t?.ticks);
724
+ return (I(n, "chart.grid.labels.xAxis.reverse", !1) ? [...r].reverse() : r).map((t, n) => ({
725
725
  id: `continuous_x_label_${n}`,
726
726
  text: Ge(e, t, n),
727
727
  value: t,
@@ -731,28 +731,28 @@ function Ke(e) {
731
731
  }));
732
732
  }
733
733
  function Q(e, t, n) {
734
- let { drawingArea: r, config: i } = e, a = N(i, "chart.grid.position", "middle"), o = r.width, s = a === "middle" ? o / Math.max(1, n) : o / Math.max(1, n - 1);
734
+ let { drawingArea: r, config: i } = e, a = I(i, "chart.grid.position", "middle"), o = r.width, s = a === "middle" ? o / Math.max(1, n) : o / Math.max(1, n - 1);
735
735
  return a === "middle" ? r.left + s / 2 + s * t : r.left + s * t;
736
736
  }
737
737
  async function qe(e, t) {
738
- let { config: n } = e, r = Math.max(0, ...t.map((e) => j(e.plots).length));
739
- return await E({
740
- values: N(n, "chart.grid.labels.xAxisLabels.values", []),
738
+ let { config: n } = e, r = Math.max(0, ...t.map((e) => M(e.plots).length));
739
+ return await D({
740
+ values: I(n, "chart.grid.labels.xAxisLabels.values", []),
741
741
  maxDatapoints: r,
742
- formatter: N(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
743
- start: O(e.slotStartIndex ?? e.startAbs, 0),
744
- end: O(e.slotEndIndex ?? e.endAbs, r)
742
+ formatter: I(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
743
+ start: k(e.slotStartIndex ?? e.startAbs, 0),
744
+ end: k(e.slotEndIndex ?? e.endAbs, r)
745
745
  });
746
746
  }
747
747
  async function Je(e, t) {
748
- let { config: n } = e, r = N(n, "chart.grid.labels.xAxisLabels", {}), i = Math.max(0, ...t.map((e) => j(e.plots).length)), a = await qe(e, t), o = await E({
749
- values: N(n, "chart.grid.labels.xAxisLabels.values", []),
748
+ let { config: n } = e, r = I(n, "chart.grid.labels.xAxisLabels", {}), i = Math.max(0, ...t.map((e) => M(e.plots).length)), a = await qe(e, t), o = await D({
749
+ values: I(n, "chart.grid.labels.xAxisLabels.values", []),
750
750
  maxDatapoints: i,
751
- formatter: N(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
751
+ formatter: I(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
752
752
  start: 0,
753
753
  end: i
754
- }), s = a.map((e) => e?.text ?? ""), c = o.map((e) => e?.text ?? ""), l = Math.min(O(r.modulo, 1), Math.max(1, new Set(s).size));
755
- return v(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, O(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
754
+ }), s = a.map((e) => e?.text ?? ""), c = o.map((e) => e?.text ?? ""), l = Math.min(k(r.modulo, 1), Math.max(1, new Set(s).size));
755
+ return v(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
756
756
  }
757
757
  async function Ye(e, t) {
758
758
  return Z(e) ? Ke(e) : await Je(e, t);
@@ -761,18 +761,18 @@ function Xe(e, t, n, r) {
761
761
  return Z(e) ? t.x : Q(e, n, r);
762
762
  }
763
763
  function Ze(e) {
764
- return w(e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {}, "chart.grid.labels.xAxisLabels.rotation") ? O(N(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : N(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? O(N(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : O(N(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
764
+ let t = e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {};
765
+ return T(t, "chart.grid.labels.xAxisLabels.rotation") ? k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
765
766
  }
766
767
  async function Qe(e, t) {
767
768
  let { config: n, drawingArea: i } = e;
768
- if (!t[0] || !N(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
769
- N(n, "chart.grid.labels.xAxisLabels", {});
770
- let a = O(N(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), o = N(n, "chart.grid.labels.xAxisLabels.color", N(n, "chart.grid.labels.color", "#2A2A2A")), s = Ze(e), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle";
771
- return P("g", { "data-layer": "x-axis-labels" }, l.map((t, n) => {
769
+ if (!t[0] || !I(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
770
+ I(n, "chart.grid.labels.xAxisLabels", {});
771
+ let a = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), o = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), s = Ze(e), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, n) => {
772
772
  let l = typeof t == "string" ? t : t?.text;
773
773
  if (!l) return "";
774
774
  let d = `translate(${Xe(e, t, n, c)}, ${i.bottom + a * 1.5}), rotate(${s})`;
775
- return String(l).includes("\n") ? P("text", {
775
+ return String(l).includes("\n") ? L("text", {
776
776
  class: "vue-data-ui-time-label",
777
777
  "data-cy": "time-label",
778
778
  "text-anchor": u,
@@ -785,7 +785,7 @@ async function Qe(e, t) {
785
785
  fill: o,
786
786
  x: 0,
787
787
  y: 0
788
- })) : F(l, {
788
+ })) : R(l, {
789
789
  class: "vue-data-ui-time-label",
790
790
  "data-cy": "time-label",
791
791
  "text-anchor": u,
@@ -793,11 +793,12 @@ async function Qe(e, t) {
793
793
  fill: o,
794
794
  transform: d
795
795
  });
796
- }).join(""));
796
+ }).join("");
797
+ return L("g", { "data-layer": "x-axis-labels" }, d);
797
798
  }
798
799
  function $e(e) {
799
- let { config: t, drawingArea: n, height: r } = e, i = q(t), a = N(t, "chart.grid.labels.axis.xLabel", ""), o = N(t, "chart.grid.labels.axis.yLabel", ""), s = N(t, "chart.grid.labels.axis.color", N(t, "chart.grid.labels.color", "#2A2A2A")), c = O(N(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = O(N(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = O(N(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = O(N(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = O(N(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
800
- if (a && m.push(F(a, {
800
+ let { config: t, drawingArea: n, height: r } = e, i = q(t), a = I(t, "chart.grid.labels.axis.xLabel", ""), o = I(t, "chart.grid.labels.axis.yLabel", ""), s = I(t, "chart.grid.labels.axis.color", I(t, "chart.grid.labels.color", "#2A2A2A")), c = k(I(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = k(I(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = k(I(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(I(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = k(I(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
801
+ if (a && m.push(R(a, {
801
802
  x: n.left + n.width / 2,
802
803
  y: Math.min(r - 4, n.bottom + i.xAxis * 3 + l),
803
804
  "font-size": i.yAxis,
@@ -805,7 +806,7 @@ function $e(e) {
805
806
  fill: s
806
807
  })), o) {
807
808
  let e = p ? n.right + u + d + 5 + f + c : n.scaleLabelX - u - d - f - c, t = n.top + n.height / 2;
808
- m.push(F(o, {
809
+ m.push(R(o, {
809
810
  x: e,
810
811
  y: t,
811
812
  transform: `rotate(-90 ${e} ${t})`,
@@ -814,28 +815,28 @@ function $e(e) {
814
815
  fill: s
815
816
  }));
816
817
  }
817
- return P("g", { "data-layer": "axis-labels" }, m.join(""));
818
+ return L("g", { "data-layer": "axis-labels" }, m.join(""));
818
819
  }
819
820
  async function et(e, t) {
820
- let { config: n, drawingArea: r } = e, i = N(n, "chart.grid.labels.xAxisLabels.show", !0), a = N(n, "chart.grid.labels.xAxis.showCrosshairs", !1);
821
+ let { config: n, drawingArea: r } = e, i = I(n, "chart.grid.labels.xAxisLabels.show", !0), a = I(n, "chart.grid.labels.xAxis.showCrosshairs", !1);
821
822
  if (!i || !a || !t[0]) return "";
822
- let o = O(N(n, "chart.grid.labels.xAxis.crosshairSize", 6), 6), s = !!N(n, "chart.grid.labels.xAxis.crosshairsAlwaysAtZero", !1), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = U(e), d = l.map((t, n) => {
823
+ let o = k(I(n, "chart.grid.labels.xAxis.crosshairSize", 6), 6), s = !!I(n, "chart.grid.labels.xAxis.crosshairsAlwaysAtZero", !1), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = U(e), d = l.map((t, n) => {
823
824
  if (!(typeof t == "string" ? t : t?.text)) return "";
824
825
  let i = Z(e) ? t.x : Q(e, n, c);
825
826
  return `M${i},${s ? u - (u === r.bottom ? 0 : o / 2) : r.bottom} L${i},${s ? u + o / (u === r.bottom ? 1 : 2) : r.bottom + o}`;
826
827
  }).filter(Boolean).join(" ");
827
- return d ? P("g", { "data-layer": "x-axis-ticks" }, k("path", {
828
+ return d ? L("g", { "data-layer": "x-axis-ticks" }, A("path", {
828
829
  d,
829
- stroke: N(n, "chart.grid.stroke", "#CCCCCC"),
830
+ stroke: I(n, "chart.grid.stroke", "#CCCCCC"),
830
831
  "stroke-width": 1,
831
832
  "stroke-linecap": "round",
832
833
  "data-cy": "axis-x-tick"
833
834
  })) : "";
834
835
  }
835
836
  function tt(e, t) {
836
- let { config: n, width: r } = e, i = N(n, "chart.legend", {}), a = O(i.fontSize, 12), o = O(i.markerSize, 10), s = O(i.itemGap, 16), c = O(i.rowGap, 8), l = O(i.padding, 8), u = Math.max(1, r - l * 2), d = [], f = [], p = 0;
837
+ let { config: n, width: r } = e, i = I(n, "chart.legend", {}), a = k(i.fontSize, 12), o = k(i.markerSize, 10), s = k(i.itemGap, 16), c = k(i.rowGap, 8), l = k(i.padding, 8), u = Math.max(1, r - l * 2), d = [], f = [], p = 0;
837
838
  return t.forEach((e) => {
838
- let t = String(e.name ?? ""), n = o + 6 + A(t, a) + s;
839
+ let t = String(e.name ?? ""), n = o + 6 + j(t, a) + s;
839
840
  f.length && p + n > u && (d.push({
840
841
  items: f,
841
842
  width: p
@@ -859,19 +860,19 @@ function tt(e, t) {
859
860
  }
860
861
  function nt(e, t) {
861
862
  let { config: n, width: r, height: i } = e;
862
- if (!N(n, "chart.legend.show", !0) || !t.length) return "";
863
- let a = N(n, "chart.legend", {}), o = a.position || "bottom", s = a.color || N(n, "chart.color", "#2A2A2A"), c = tt(e, t), l = Math.max(c.markerSize, c.fontSize), u = o === "top" ? c.padding + l : i - c.height + c.padding + l, d = [];
863
+ if (!I(n, "chart.legend.show", !0) || !t.length) return "";
864
+ let a = I(n, "chart.legend", {}), o = a.position || "bottom", s = a.color || I(n, "chart.color", "#2A2A2A"), c = tt(e, t), l = Math.max(c.markerSize, c.fontSize), u = o === "top" ? c.padding + l : i - c.height + c.padding + l, d = [];
864
865
  return c.rows.forEach((e, t) => {
865
866
  let n = Math.max(c.padding, r / 2 - e.width / 2), i = u + t * (l + c.rowGap);
866
867
  e.items.forEach(({ serie: e, label: t, itemWidth: r }) => {
867
- d.push(k("rect", {
868
+ d.push(A("rect", {
868
869
  x: n,
869
870
  y: i - c.markerSize / 2,
870
871
  width: c.markerSize,
871
872
  height: c.markerSize,
872
873
  rx: 2,
873
874
  fill: e.color
874
- })), d.push(F(t, {
875
+ })), d.push(R(t, {
875
876
  x: n + c.markerSize + 6,
876
877
  y: i + 2,
877
878
  "font-size": c.fontSize,
@@ -879,40 +880,40 @@ function nt(e, t) {
879
880
  fill: s
880
881
  })), n += r;
881
882
  });
882
- }), P("g", { "data-layer": "legend" }, d.join(""));
883
+ }), L("g", { "data-layer": "legend" }, d.join(""));
883
884
  }
884
885
  function rt(e, t) {
885
886
  return `areaGradient_${t}_${W()}`;
886
887
  }
887
888
  function it(e, t) {
888
889
  let { config: r } = e;
889
- if (!N(r, "line.area.useGradient", !1)) return "";
890
- let i = O(N(r, "line.area.opacity", 30), 30), a = t.filter((e) => e.type === "line" && e.useArea).map((t, r) => P("linearGradient", {
890
+ if (!I(r, "line.area.useGradient", !1)) return "";
891
+ let i = k(I(r, "line.area.opacity", 30), 30), a = t.filter((e) => e.type === "line" && e.useArea).map((t, r) => L("linearGradient", {
891
892
  id: rt(e, r),
892
893
  x1: "0%",
893
894
  x2: "0%",
894
895
  y1: "0%",
895
896
  y2: "100%"
896
- }, [k("stop", {
897
+ }, [A("stop", {
897
898
  offset: "0%",
898
899
  "stop-color": n(h(f(t.color), .03), i),
899
900
  "stop-opacity": 1
900
- }), k("stop", {
901
+ }), A("stop", {
901
902
  offset: "100%",
902
903
  "stop-color": t.color,
903
904
  "stop-opacity": 0
904
905
  })].join(""))).join("");
905
- return a ? P("defs", {}, a) : "";
906
+ return a ? L("defs", {}, a) : "";
906
907
  }
907
908
  function at(n, r) {
908
- let { config: i } = n, a = !!N(i, "line.cutNullValues", !1), o = [];
909
+ let { config: i } = n, a = !!I(i, "line.cutNullValues", !1), o = [];
909
910
  return r.filter((e) => e.type === "line" && e.useArea).forEach((r, i) => {
910
- let s = j(r.plots), c = s.filter((e) => e && e.value !== null);
911
+ let s = M(r.plots), c = s.filter((e) => e && e.value !== null);
911
912
  if (c.length < 2) return;
912
913
  let u = Number.isFinite(Number(r.__zeroY)) ? Number(r.__zeroY) : U(n), d = we(n, r, i);
913
914
  if (r.smooth && !r.useStepper) {
914
915
  l(a ? s : c, u, a).forEach((e) => {
915
- e && o.push(k("path", {
916
+ e && o.push(A("path", {
916
917
  d: e,
917
918
  fill: d,
918
919
  "data-cy": "datapoint-line-area-smooth"
@@ -921,21 +922,21 @@ function at(n, r) {
921
922
  return;
922
923
  }
923
924
  (r.useStepper ? t(a ? s : c, u) : a ? e(s, u) : b(c, u)).split(";").filter(Boolean).forEach((e) => {
924
- o.push(k("path", {
925
+ o.push(A("path", {
925
926
  d: `M${e}Z`,
926
927
  fill: d,
927
928
  "data-cy": "datapoint-line-area-straight"
928
929
  }));
929
930
  });
930
- }), P("g", { "data-layer": "line-areas" }, o.join(""));
931
+ }), L("g", { "data-layer": "line-areas" }, o.join(""));
931
932
  }
932
933
  function ot(e, t) {
933
- let n = O(t.slotStartIndex ?? t.startAbs, 0);
934
- return j(e.dashIndices).map((e) => Number(e) - n).filter(Number.isFinite);
934
+ let n = k(t.slotStartIndex ?? t.startAbs, 0);
935
+ return M(e.dashIndices).map((e) => Number(e) - n).filter(Number.isFinite);
935
936
  }
936
937
  function st(e, t, n, r, i) {
937
- let { config: a } = e, o = O(t.strokeWidth || N(a, "line.strokeWidth", 2), 2);
938
- return k("path", {
938
+ let { config: a } = e, o = k(t.strokeWidth || I(a, "line.strokeWidth", 2), 2);
939
+ return A("path", {
939
940
  d: `M${r}`,
940
941
  fill: "none",
941
942
  stroke: xe(e, t, n),
@@ -946,49 +947,49 @@ function st(e, t, n, r, i) {
946
947
  });
947
948
  }
948
949
  function ct(e, n) {
949
- let { config: r } = e, o = n.filter((e) => e.type === "line"), s = !!N(r, "line.cutNullValues", !1), l = [];
950
+ let { config: r } = e, o = n.filter((e) => e.type === "line"), s = !!I(r, "line.cutNullValues", !1), l = [];
950
951
  return o.forEach((n, o) => {
951
- let d = s ? j(n.plots) : j(n.plots).filter((e) => e.value !== null), f = d.filter((e) => e.value !== null);
952
+ let d = s ? M(n.plots) : M(n.plots).filter((e) => e.value !== null), f = d.filter((e) => e.value !== null);
952
953
  if (!(f.length < 2)) {
953
- if (j(n.dashIndices).length > 0 && !n.useStepper) {
954
+ if (M(n.dashIndices).length > 0 && !n.useStepper) {
954
955
  let t = ot(n, e);
955
- (n.smooth || N(r, "line.smooth", !1) ? c(d, t) : p(d, t)).forEach((t) => {
956
+ (n.smooth || I(r, "line.smooth", !1) ? c(d, t) : p(d, t)).forEach((t) => {
956
957
  t?.path && l.push(st(e, n, o, t.path, !!t.dashed));
957
958
  });
958
959
  return;
959
960
  }
960
- (n.useStepper ? t(d).split(";").filter(Boolean) : [n.smooth || N(r, "line.smooth", !1) ? s ? a(d) : u(f) : s ? i(d) : m(f, !1, !0)]).forEach((t) => {
961
+ (n.useStepper ? t(d).split(";").filter(Boolean) : [n.smooth || I(r, "line.smooth", !1) ? s ? a(d) : u(f) : s ? i(d) : m(f, !1, !0)]).forEach((t) => {
961
962
  t && l.push(st(e, n, o, t, !!n.dashed));
962
963
  });
963
964
  }
964
- }), P("g", { "data-layer": "lines" }, l.join(""));
965
+ }), L("g", { "data-layer": "lines" }, l.join(""));
965
966
  }
966
967
  function lt(e, t, n) {
967
968
  let { config: r } = e;
968
- return N(r, "plot.useGradient", !1) ? `url(#${Se(e, n)})` : N(r, "plot.dot.useSerieColor", !0) ? t.color : N(r, "plot.dot.fill", t.color);
969
+ return I(r, "plot.useGradient", !1) ? `url(#${Se(e, n)})` : I(r, "plot.dot.useSerieColor", !0) ? t.color : I(r, "plot.dot.fill", t.color);
969
970
  }
970
971
  function $(e, t) {
971
- let n = N(e.config, "bar.border", {});
972
+ let n = I(e.config, "bar.border", {});
972
973
  return {
973
974
  stroke: n.useSerieColor ? t.color : n.stroke,
974
- "stroke-width": O(n.strokeWidth, 0)
975
+ "stroke-width": k(n.strokeWidth, 0)
975
976
  };
976
977
  }
977
978
  function ut(e, t) {
978
- let { config: n } = e, r = t.filter((e) => e.type === "plot"), i = N(n, "plot.radius", 4), a = N(n, "plot.dot.strokeWidth", 2), o = N(n, "chart.backgroundColor", "#FFFFFF"), s = [];
979
+ let { config: n } = e, r = t.filter((e) => e.type === "plot"), i = I(n, "plot.radius", 4), a = I(n, "plot.dot.strokeWidth", 2), o = I(n, "chart.backgroundColor", "#FFFFFF"), s = [];
979
980
  return r.forEach((t, r) => {
980
981
  t.plots.forEach((c, l) => {
981
- ae(c.value) && s.push(M({
982
+ F(c.value) && s.push(N({
982
983
  dataCy: `xy-plot-${r}-${l}`,
983
984
  shape: t.shape,
984
985
  plot: c,
985
986
  radius: t.radius || i,
986
987
  fill: lt(e, t, r),
987
- stroke: N(n, "plot.dot.useSerieColor", !0) ? o : t.color,
988
+ stroke: I(n, "plot.dot.useSerieColor", !0) ? o : t.color,
988
989
  strokeWidth: a
989
990
  }));
990
991
  });
991
- }), P("g", { "data-layer": "plots" }, s.join(""));
992
+ }), L("g", { "data-layer": "plots" }, s.join(""));
992
993
  }
993
994
  function dt(e) {
994
995
  return ![
@@ -1001,37 +1002,37 @@ function dt(e) {
1001
1002
  }
1002
1003
  function ft(e, t, n) {
1003
1004
  let r = e[t - 1], i = e[t + 1], a = !!r && !!i && r.value == null && i.value == null || !r && !!i && i.value == null || !!r && !i && r.value == null;
1004
- return dt(e[t]?.value) && a && !!N(n, "line.cutNullValues", !1);
1005
+ return dt(e[t]?.value) && a && !!I(n, "line.cutNullValues", !1);
1005
1006
  }
1006
1007
  function pt(e, t, n, r, i) {
1007
1008
  let { config: a } = e;
1008
1009
  if (!n || !dt(n.value)) return !1;
1009
- if (!(i > O(N(a, "line.dot.hideAboveMaxSerieLength", Infinity), Infinity))) return !0;
1010
+ if (!(i > k(I(a, "line.dot.hideAboveMaxSerieLength", Infinity), Infinity))) return !0;
1010
1011
  let o = e.selectedSerieIndex ?? null, s = e.selectedMinimapIndex ?? null;
1011
1012
  return o !== null && o === r || s !== null && s === r || ft(t.plots, r, a);
1012
1013
  }
1013
1014
  function mt(e, t) {
1014
- let { config: n } = e, r = t.filter((e) => e.type === "line"), i = Math.max(0, ...r.map((e) => j(e.plots).length)), a = N(n, "line.radius", 4), o = N(n, "line.dot.strokeWidth", 2), s = N(n, "chart.backgroundColor", "#FFFFFF"), c = [];
1015
+ let { config: n } = e, r = t.filter((e) => e.type === "line"), i = Math.max(0, ...r.map((e) => M(e.plots).length)), a = I(n, "line.radius", 4), o = I(n, "line.dot.strokeWidth", 2), s = I(n, "chart.backgroundColor", "#FFFFFF"), c = [];
1015
1016
  return r.forEach((t, r) => {
1016
1017
  t.plots.forEach((l, u) => {
1017
- pt(e, t, l, u, i) && c.push(M({
1018
+ pt(e, t, l, u, i) && c.push(N({
1018
1019
  dataCy: "datapoint-line-plot",
1019
1020
  shape: t.shape,
1020
1021
  plot: l,
1021
1022
  radius: t.radius || a,
1022
1023
  fill: Ce(e, t, r),
1023
- stroke: N(n, "line.dot.useSerieColor", !0) ? s : t.color,
1024
+ stroke: I(n, "line.dot.useSerieColor", !0) ? s : t.color,
1024
1025
  strokeWidth: o
1025
1026
  }));
1026
1027
  });
1027
- }), P("g", { "data-layer": "line-dots" }, c.join(""));
1028
+ }), L("g", { "data-layer": "line-dots" }, c.join(""));
1028
1029
  }
1029
1030
  function ht(e, t) {
1030
1031
  let { config: n } = e;
1031
1032
  if (Y(n)) return "";
1032
- let r = N(n, "line.interLine", {}), i = j(r.pairs), a = j(r.colors);
1033
+ let r = I(n, "line.interLine", {}), i = M(r.pairs), a = M(r.colors);
1033
1034
  if (!i.length) return "";
1034
- let o = t.filter((e) => e.type === "line"), s = O(r.fillOpacity, .2), c = !!N(n, "line.cutNullValues", !1), l = [];
1035
+ let o = t.filter((e) => e.type === "line"), s = k(r.fillOpacity, .2), c = !!I(n, "line.cutNullValues", !1), l = [];
1035
1036
  return i.forEach((e, t) => {
1036
1037
  let [n, r] = Array.isArray(e) ? e : [e?.a, e?.b];
1037
1038
  if (!n || !r) return;
@@ -1039,8 +1040,8 @@ function ht(e, t) {
1039
1040
  if (!i || !u) return;
1040
1041
  let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
1041
1042
  x({
1042
- lineA: j(i.plots),
1043
- lineB: j(u.plots),
1043
+ lineA: M(i.plots),
1044
+ lineB: M(u.plots),
1044
1045
  smoothA: !!i.smooth,
1045
1046
  smoothB: !!u.smooth,
1046
1047
  colorLineA: d,
@@ -1048,7 +1049,7 @@ function ht(e, t) {
1048
1049
  sampleStepPx: 2,
1049
1050
  cutNullValues: c
1050
1051
  }).forEach((e, i) => {
1051
- l.push(k("path", {
1052
+ l.push(A("path", {
1052
1053
  "data-cy": "interline-area",
1053
1054
  d: e.d,
1054
1055
  fill: e.color,
@@ -1058,57 +1059,59 @@ function ht(e, t) {
1058
1059
  "data-key": `inter_${n}_${r}_${t}_${i}`
1059
1060
  }));
1060
1061
  });
1061
- }), l.length ? P("g", { "data-layer": "interline-areas" }, l.join("")) : "";
1062
+ }), l.length ? L("g", { "data-layer": "interline-areas" }, l.join("")) : "";
1062
1063
  }
1063
1064
  function gt(e) {
1064
- let t = N(e, "chart.title", {}), n = N(t, "subtitle", {});
1065
+ let t = I(e, "chart.title", {}), n = I(t, "subtitle", {});
1065
1066
  if (!t.show) return 0;
1066
- let r = O(t.fontSize, 20), i = n.text ? O(n.fontSize, 14) : 0, a = O(t.paddingTop, 12), o = O(t.paddingBottom, 6);
1067
+ let r = k(t.fontSize, 20), i = n.text ? k(n.fontSize, 14) : 0, a = k(t.paddingTop, 12), o = k(t.paddingBottom, 6);
1067
1068
  return a + r + (n.text ? i + 4 : 0) + o;
1068
1069
  }
1069
1070
  function _t(e) {
1070
- let { config: t, width: n } = e, r = N(t, "chart.title", {}), i = N(r, "subtitle", {});
1071
+ let { config: t, width: n } = e, r = I(t, "chart.title", {}), i = I(r, "subtitle", {});
1071
1072
  if (!r.show || !r.text) return "";
1072
- let a = r.textAlign || "center", o = a === "left" ? O(r.paddingLeft, 12) : a === "right" ? n - O(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = O(r.fontSize, 20), l = O(i.fontSize, 14), u = O(r.paddingTop, 12) + c, d = [F(r.text, {
1073
+ let a = r.textAlign || "center", o = a === "left" ? k(r.paddingLeft, 12) : a === "right" ? n - k(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = k(r.fontSize, 20), l = k(i.fontSize, 14), u = k(r.paddingTop, 12) + c, d = [R(r.text, {
1073
1074
  "data-cy": "xy-div-title",
1074
1075
  x: o,
1075
1076
  y: u,
1076
1077
  "font-size": c,
1077
1078
  "font-weight": r.bold ? "700" : "400",
1078
1079
  "text-anchor": s,
1079
- fill: r.color || N(t, "chart.color", "#2A2A2A")
1080
+ fill: r.color || I(t, "chart.color", "#2A2A2A")
1080
1081
  })];
1081
- return i.text && d.push(F(i.text, {
1082
+ return i.text && d.push(R(i.text, {
1082
1083
  "data-cy": "xy-div-subtitle",
1083
1084
  x: o,
1084
1085
  y: u + l + 4,
1085
1086
  "font-size": l,
1086
1087
  "font-weight": i.bold ? "700" : "400",
1087
1088
  "text-anchor": s,
1088
- fill: i.color || r.color || N(t, "chart.color", "#2A2A2A")
1089
- })), P("g", { "data-layer": "title" }, d.join(""));
1089
+ fill: i.color || r.color || I(t, "chart.color", "#2A2A2A")
1090
+ })), L("g", { "data-layer": "title" }, d.join(""));
1090
1091
  }
1091
1092
  function vt(e) {
1092
- return e.svgTitle ? P("desc", { "aria-hidden": "true" }, [e.svgTitle].join("")) : "";
1093
+ if (!e.svgTitle) return "";
1094
+ let t = [e.svgTitle];
1095
+ return L("desc", { "aria-hidden": "true" }, t.join(""));
1093
1096
  }
1094
1097
  function yt(e, t, n, r, i) {
1095
- return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !N(e.config, "dataLabels.show", !0) || !N(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
1098
+ return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !I(e.config, "dataLabels.show", !0) || !I(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
1096
1099
  }
1097
1100
  function bt(e, t, n, i) {
1098
- let { config: a } = e, o = O(N(a, `${i}.labels.fontSize`, N(a, "chart.labels.fontSize", 12)), 12), s = N(a, `${i}.labels.color`, N(a, "chart.color", "#2A2A2A")), c = g({
1099
- p: t.prefix || N(a, "chart.labels.prefix", ""),
1101
+ let { config: a } = e, o = k(I(a, `${i}.labels.fontSize`, I(a, "chart.labels.fontSize", 12)), 12), s = I(a, `${i}.labels.color`, I(a, "chart.color", "#2A2A2A")), c = g({
1102
+ p: t.prefix || I(a, "chart.labels.prefix", ""),
1100
1103
  v: n.value,
1101
- s: t.suffix || N(a, "chart.labels.suffix", ""),
1102
- r: N(a, `${i}.labels.rounding`, 0)
1104
+ s: t.suffix || I(a, "chart.labels.suffix", ""),
1105
+ r: I(a, `${i}.labels.rounding`, 0)
1106
+ }), l = Z(e) && Number.isFinite(Number(n.x)) ? `x: ${g({
1107
+ v: n.x,
1108
+ r: I(a, "chart.grid.labels.xAxis.rounding", 0)
1109
+ })}\ny: ${c}` : y(I(a, `${i}.labels.formatter`, null), n.value, c, {
1110
+ datapoint: n,
1111
+ serie: t
1103
1112
  });
1104
1113
  return r({
1105
- content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${g({
1106
- v: n.x,
1107
- r: N(a, "chart.grid.labels.xAxis.rounding", 0)
1108
- })}\ny: ${c}` : y(N(a, `${i}.labels.formatter`, null), n.value, c, {
1109
- datapoint: n,
1110
- serie: t
1111
- }),
1114
+ content: l,
1112
1115
  fontSize: o,
1113
1116
  fill: s,
1114
1117
  x: 0,
@@ -1116,52 +1119,52 @@ function bt(e, t, n, i) {
1116
1119
  });
1117
1120
  }
1118
1121
  function xt(e, t, n) {
1119
- let r = N(e.config, `${n}.labels.textAnchor`, null);
1120
- return r === null ? O(N(e.config, `${n}.labels.rotation`, 0), 0) === 0 ? "middle" : N(e.config, `${n}.labels.alwaysOnTop`, !1) || t.value >= 0 ? "start" : "end" : r;
1122
+ let r = I(e.config, `${n}.labels.textAnchor`, null);
1123
+ return r === null ? k(I(e.config, `${n}.labels.rotation`, 0), 0) === 0 ? "middle" : I(e.config, `${n}.labels.alwaysOnTop`, !1) || t.value >= 0 ? "start" : "end" : r;
1121
1124
  }
1122
1125
  function St(e, t, n) {
1123
- let r = O(N(e.config, `${n}.labels.offsetX`, 0), 0), i = O(N(e.config, `${n}.labels.offsetY`, -12), -12), a = O(N(e.config, `${n}.labels.rotation`, 0), 0), o = !!N(e.config, `${n}.labels.alwaysOnTop`, !1);
1126
+ let r = k(I(e.config, `${n}.labels.offsetX`, 0), 0), i = k(I(e.config, `${n}.labels.offsetY`, -12), -12), a = k(I(e.config, `${n}.labels.rotation`, 0), 0), o = !!I(e.config, `${n}.labels.alwaysOnTop`, !1);
1124
1127
  return `translate(${t.x + r}, ${t.y + (o || t.value >= 0 ? i : -i * 3)}) rotate(${a})`;
1125
1128
  }
1126
1129
  function Ct(e, t, n) {
1127
- let r = O(N(e.config, "bar.labels.offsetX", 0), 0), i = O(N(e.config, "bar.labels.offsetY", -6), -6), a = O(N(e.config, "bar.labels.rotation", 0), 0), o = !!N(e.config, "bar.labels.alwaysOnTop", !1), s = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), c = Math.abs(s - n.y), l = n.__barLabelX ?? n.x, u = n.y + (o ? i - (n.value < 0 ? c : 0) : n.value >= 0 ? i : -i * 3);
1130
+ let r = k(I(e.config, "bar.labels.offsetX", 0), 0), i = k(I(e.config, "bar.labels.offsetY", -6), -6), a = k(I(e.config, "bar.labels.rotation", 0), 0), o = !!I(e.config, "bar.labels.alwaysOnTop", !1), s = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), c = Math.abs(s - n.y), l = n.__barLabelX ?? n.x, u = n.y + (o ? i - (n.value < 0 ? c : 0) : n.value >= 0 ? i : -i * 3);
1128
1131
  return `translate(${l + r}, ${u}) rotate(${a})`;
1129
1132
  }
1130
1133
  function wt(e, t) {
1131
- let { config: n } = e, r = O(N(n, "chart.labels.fontSize", 12), 12), i = N(n, "chart.backgroundColor", "#FFFFFF"), a = [];
1134
+ let { config: n } = e, r = k(I(n, "chart.labels.fontSize", 12), 12), i = I(n, "chart.backgroundColor", "#FFFFFF"), a = [];
1132
1135
  return t.forEach((t) => {
1133
- j(t.plots).forEach((o, s) => {
1136
+ M(t.plots).forEach((o, s) => {
1134
1137
  let c = t.type;
1135
1138
  [
1136
1139
  "line",
1137
1140
  "bar",
1138
1141
  "plot"
1139
- ].includes(c) && yt(e, t, o, s, c) && a.push(P("text", {
1142
+ ].includes(c) && yt(e, t, o, s, c) && a.push(L("text", {
1140
1143
  "data-cy": `datapoint-${c}-label`,
1141
1144
  transform: c === "bar" ? Ct(e, t, o) : St(e, o, c),
1142
1145
  "text-anchor": xt(e, o, c),
1143
- "font-size": N(n, `${c}.labels.fontSize`, r),
1144
- fill: N(n, `${c}.labels.color`, N(n, "chart.color", "#2A2A2A")),
1146
+ "font-size": I(n, `${c}.labels.fontSize`, r),
1147
+ fill: I(n, `${c}.labels.color`, I(n, "chart.color", "#2A2A2A")),
1145
1148
  stroke: i,
1146
1149
  "paint-order": "stroke"
1147
1150
  }, bt(e, t, o, c)));
1148
1151
  });
1149
- }), P("g", { "data-layer": "datapoint-labels" }, a.join(""));
1152
+ }), L("g", { "data-layer": "datapoint-labels" }, a.join(""));
1150
1153
  }
1151
1154
  function Tt(e) {
1152
- return O(e.slotStartIndex ?? e.startAbs, 0);
1155
+ return k(e.slotStartIndex ?? e.startAbs, 0);
1153
1156
  }
1154
1157
  function Et(e, t) {
1155
- let n = Math.max(0, ...t.map((e) => j(e.plots).length));
1156
- return O(e.slotEndIndex ?? e.endAbs, n);
1158
+ let n = Math.max(0, ...t.map((e) => M(e.plots).length));
1159
+ return k(e.slotEndIndex ?? e.endAbs, n);
1157
1160
  }
1158
1161
  function Dt(e, t) {
1159
1162
  let { drawingArea: n, config: r } = e;
1160
- return N(r, "chart.grid.position", "middle") === "middle" ? n.width / Math.max(1, t) : n.width / Math.max(1, t - 1);
1163
+ return I(r, "chart.grid.position", "middle") === "middle" ? n.width / Math.max(1, t) : n.width / Math.max(1, t - 1);
1161
1164
  }
1162
1165
  function Ot(e, t, n) {
1163
1166
  let { drawingArea: r, config: i } = e, a = Dt(e, n);
1164
- return N(i, "chart.grid.position", "middle") === "middle" ? r.left + a * t : r.left + a * t - a / 2;
1167
+ return I(i, "chart.grid.position", "middle") === "middle" ? r.left + a * t : r.left + a * t - a / 2;
1165
1168
  }
1166
1169
  function kt(e, t) {
1167
1170
  return Dt(e, t);
@@ -1169,51 +1172,51 @@ function kt(e, t) {
1169
1172
  function At(e, t, n, r, i, a) {
1170
1173
  let { drawingArea: o } = e, s = t.caption ?? {};
1171
1174
  if (!s.text) return "";
1172
- let c = kt(e, a) * i, l = s.width === "auto" ? c : O(s.width, c), u = Ot(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + O(s.offsetY, 0);
1173
- return P("foreignObject", {
1175
+ let c = kt(e, a) * i, l = s.width === "auto" ? c : k(s.width, c), u = Ot(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + k(s.offsetY, 0);
1176
+ return L("foreignObject", {
1174
1177
  "data-key": `highlight_area_caption_${n}`,
1175
1178
  x: u,
1176
1179
  y: d,
1177
1180
  width: l,
1178
1181
  height: 1,
1179
1182
  overflow: "visible"
1180
- }, P("div", {
1183
+ }, L("div", {
1181
1184
  xmlns: "http://www.w3.org/1999/xhtml",
1182
1185
  "data-cy": "highlight-area-caption",
1183
1186
  style: [
1184
- `padding:${O(s.padding, 0)}px`,
1187
+ `padding:${k(s.padding, 0)}px`,
1185
1188
  `text-align:${s.textAlign || "center"}`,
1186
- `font-size:${O(s.fontSize, 12)}px`,
1189
+ `font-size:${k(s.fontSize, 12)}px`,
1187
1190
  `color:${s.color || "#2A2A2A"}`,
1188
1191
  `font-weight:${s.bold ? "bold" : "normal"}`
1189
1192
  ].join(";")
1190
1193
  }, S(s.text)));
1191
1194
  }
1192
1195
  function jt(e, t) {
1193
- let { config: r, drawingArea: i } = e, a = j(N(r, "chart.highlightArea", []));
1196
+ let { config: r, drawingArea: i } = e, a = M(I(r, "chart.highlightArea", []));
1194
1197
  if (!a.length) return "";
1195
- let o = Math.max(1, ...t.map((e) => j(e.plots).length)), s = Tt(e), c = Et(e, t), l = [];
1198
+ let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = Tt(e), c = Et(e, t), l = [];
1196
1199
  return a.forEach((t, r) => {
1197
1200
  if (!t?.show) return;
1198
- let a = O(t.from, 0), u = Math.min(O(t.to, a), o - 1);
1201
+ let a = k(t.from, 0), u = Math.min(k(t.to, a), o - 1);
1199
1202
  if (u < a) return;
1200
1203
  for (let d = a; d <= u; d += 1) {
1201
1204
  if (d < s || d > c - 1) continue;
1202
1205
  let a = d - s;
1203
- l.push(k("rect", {
1206
+ l.push(A("rect", {
1204
1207
  "data-cy": "highlight-area",
1205
1208
  "data-key": `highlight_area_${r}_${d}`,
1206
1209
  x: Ot(e, a, o),
1207
1210
  y: i.top,
1208
1211
  width: kt(e, o),
1209
1212
  height: Math.max(1, i.height),
1210
- fill: n(t.color, O(t.opacity, 20)),
1213
+ fill: n(t.color, k(t.opacity, 20)),
1211
1214
  "pointer-events": "none"
1212
1215
  }));
1213
1216
  }
1214
1217
  let d = Math.max(a, s);
1215
1218
  d <= Math.min(u, c - 1) && l.push(At(e, t, r, d - s, u - a + 1, o));
1216
- }), l.length ? P("g", { "data-layer": "highlight-areas" }, l.join("")) : "";
1219
+ }), l.length ? L("g", { "data-layer": "highlight-areas" }, l.join("")) : "";
1217
1220
  }
1218
1221
  function Mt(e, t) {
1219
1222
  if (t == null) return null;
@@ -1221,15 +1224,15 @@ function Mt(e, t) {
1221
1224
  return i - (Number(t) - 0) / a * n.height;
1222
1225
  }
1223
1226
  function Nt(e) {
1224
- return A(e.text, O(e.fontSize, 12));
1227
+ return j(e.text, k(e.fontSize, 12));
1225
1228
  }
1226
1229
  function Pt(e, t, n) {
1227
- let r = O(e.fontSize, 12), i = e.padding ?? {}, a = e.border ?? {}, o = Nt(e), s = r, c;
1228
- return c = e.textAnchor === "middle" ? t - o / 2 - O(i.left, 0) : e.textAnchor === "end" ? t - o - O(i.right, 0) : t - O(i.left, 0), {
1230
+ let r = k(e.fontSize, 12), i = e.padding ?? {}, a = e.border ?? {}, o = Nt(e), s = r, c;
1231
+ return c = e.textAnchor === "middle" ? t - o / 2 - k(i.left, 0) : e.textAnchor === "end" ? t - o - k(i.right, 0) : t - k(i.left, 0), {
1229
1232
  x: c,
1230
- y: n - s * .75 - O(i.top, 0),
1231
- width: o + O(i.left, 0) + O(i.right, 0),
1232
- height: s + O(i.top, 0) + O(i.bottom, 0),
1233
+ y: n - s * .75 - k(i.top, 0),
1234
+ width: o + k(i.left, 0) + k(i.right, 0),
1235
+ height: s + k(i.top, 0) + k(i.bottom, 0),
1233
1236
  fill: e.backgroundColor,
1234
1237
  stroke: a.stroke,
1235
1238
  rx: a.rx,
@@ -1240,14 +1243,14 @@ function Pt(e, t, n) {
1240
1243
  function Ft(e) {
1241
1244
  let { config: t, drawingArea: r } = e;
1242
1245
  if (Y(t)) return "";
1243
- let i = j(N(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
1246
+ let i = M(I(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
1244
1247
  if (!i.length) return "";
1245
1248
  let a = [];
1246
1249
  return i.forEach((t, i) => {
1247
1250
  let o = t.yAxis ?? {}, s = o.label ?? {}, c = o.line ?? {}, l = o.area ?? {}, u = o.yTop, d = o.yBottom, f = u != null && d != null && u !== d, p = Mt(e, u), m = Mt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
1248
1251
  if (!h && !g) return;
1249
1252
  let _ = [];
1250
- if (h && _.push(k("line", {
1253
+ if (h && _.push(A("line", {
1251
1254
  x1: r.left,
1252
1255
  y1: p,
1253
1256
  x2: r.right,
@@ -1257,7 +1260,7 @@ function Ft(e) {
1257
1260
  "stroke-dasharray": c.strokeDasharray,
1258
1261
  "stroke-linecap": "round",
1259
1262
  "data-cy": "xy-annotation-y-top-line"
1260
- })), g && _.push(k("line", {
1263
+ })), g && _.push(A("line", {
1261
1264
  x1: r.left,
1262
1265
  y1: m,
1263
1266
  x2: r.right,
@@ -1267,21 +1270,21 @@ function Ft(e) {
1267
1270
  "stroke-dasharray": c.strokeDasharray,
1268
1271
  "stroke-linecap": "round",
1269
1272
  "data-cy": "xy-annotation-y-bottom-line"
1270
- })), f && h && g && _.push(k("rect", {
1273
+ })), f && h && g && _.push(A("rect", {
1271
1274
  x: r.left,
1272
1275
  y: Math.min(p, m),
1273
1276
  width: r.width,
1274
1277
  height: Math.abs(p - m),
1275
- fill: n(l.fill, O(l.opacity, 20)),
1278
+ fill: n(l.fill, k(l.opacity, 20)),
1276
1279
  "data-cy": "xy-annotation-y-area",
1277
1280
  "pointer-events": "none"
1278
1281
  })), s.text) {
1279
- let e = s.padding ?? {}, t = h && g ? Math.min(p, m) : h ? p : m, n = (s.position === "start" ? r.left + O(e.left, 0) : r.right - O(e.right, 0)) + O(s.offsetX, 0), i = t - O(s.fontSize, 12) / 3 + O(s.offsetY, 0) - O(e.top, 0), a = Pt(s, n, i);
1280
- Number.isFinite(a.y) && Number.isFinite(i) && (_.push(k("rect", {
1282
+ let e = s.padding ?? {}, t = h && g ? Math.min(p, m) : h ? p : m, n = (s.position === "start" ? r.left + k(e.left, 0) : r.right - k(e.right, 0)) + k(s.offsetX, 0), i = t - k(s.fontSize, 12) / 3 + k(s.offsetY, 0) - k(e.top, 0), a = Pt(s, n, i);
1283
+ Number.isFinite(a.y) && Number.isFinite(i) && (_.push(A("rect", {
1281
1284
  class: "vue-ui-xy-annotation-label-box",
1282
1285
  ...a,
1283
1286
  "data-cy": "xy-annotation-label-box"
1284
- })), _.push(F(s.text, {
1287
+ })), _.push(R(s.text, {
1285
1288
  class: "vue-ui-xy-annotation-label",
1286
1289
  x: n,
1287
1290
  y: i,
@@ -1291,11 +1294,11 @@ function Ft(e) {
1291
1294
  "data-cy": "xy-annotation-label"
1292
1295
  })));
1293
1296
  }
1294
- a.push(P("g", {
1297
+ a.push(L("g", {
1295
1298
  "data-layer": "annotation",
1296
1299
  "data-key": `annotation_y_${i}`
1297
1300
  }, _.join("")));
1298
- }), a.length ? P("g", { "data-layer": "annotations" }, a.join("")) : "";
1301
+ }), a.length ? L("g", { "data-layer": "annotations" }, a.join("")) : "";
1299
1302
  }
1300
1303
  function It(e, t) {
1301
1304
  let n = e.additionalSvgContent;
@@ -1307,12 +1310,12 @@ function It(e, t) {
1307
1310
  config: e.config,
1308
1311
  series: t.map((e) => ({
1309
1312
  ...e,
1310
- plots: j(e.plots).map((e) => ({ ...e }))
1313
+ plots: M(e.plots).map((e) => ({ ...e }))
1311
1314
  }))
1312
1315
  }) ?? "" : n ?? "";
1313
1316
  }
1314
1317
  async function Lt(e) {
1315
- let t = e.config, n = O(e.width, t.chart.width ?? 1e3), r = O(e.height, t.chart.height ?? 600), i = _e({
1318
+ let t = e.config, n = k(e.width, t.chart.width ?? 1e3), r = k(e.height, t.chart.height ?? 600), i = _e({
1316
1319
  ...e,
1317
1320
  config: t,
1318
1321
  width: n,
@@ -1322,16 +1325,16 @@ async function Lt(e) {
1322
1325
  config: t,
1323
1326
  width: n,
1324
1327
  height: r,
1325
- scale: pe(t, e.scale, i)
1328
+ scale: fe(t, e.scale, i)
1326
1329
  }, i), o = a.series;
1327
1330
  return `
1328
1331
  <svg
1329
- xmlns="${te}"
1332
+ xmlns="${w}"
1330
1333
  width="100%"
1331
1334
  viewBox="0 0 ${n} ${r}"
1332
1335
  role="img"
1333
1336
  >
1334
- ${ie()}
1337
+ ${P()}
1335
1338
  ${vt(a)}
1336
1339
  ${it(a, o)}
1337
1340
  ${Te(a, o)}
@@ -1358,7 +1361,7 @@ async function Lt(e) {
1358
1361
  //#endregion
1359
1362
  //#region src/svg/vue-ui-xy/index.js
1360
1363
  async function Rt(e = {}) {
1361
- return await Lt(de(e));
1364
+ return await Lt(ce(e));
1362
1365
  }
1363
1366
  //#endregion
1364
1367
  export { Rt as t };